SWFTextField

(PHP 4 = 4.0.5)

SWFTextField -- Creates a text field object

Description

new swftextfield ( [int flags])

警告

這個函數是 實驗性質的。這個函數的行為、名稱、 和關於此函數的任何其他文件 在未來PHP的發行中可能會在不通知的情況下改變。 使用此延伸需自行承擔風險。

swftextfield() creates a new text field object. Text Fields are less flexible than swftext() objects- they can't be rotated, scaled non-proportionally, or skewed, but they can be used as form entries, and they can use browser-defined fonts.

The optional flags change the text field's behavior. It has the following possibles values :

Flags are combined with the bitwise OR operation. For example,
 ?php
$t = newSWFTextField(SWFTEXTFIELD_PASSWORD | SWFTEXTFIELD_NOEDIT); 
? 
creates a totally useless non-editable password field.

SWFTextField has the following methods : swftextfield- setfont(), swftextfield- setbounds(), swftextfield- align(), swftextfield- setheight(), swftextfield- setleftmargin(), swftextfield- setrightmargin(), swftextfield- setmargins(), swftextfield- setindentation(), swftextfield- setlinespacing(), swftextfield- setcolor(), swftextfield- setname() and swftextfield- addstring().