SWFTextField : SWFCharacter
Text Fields are less flexible than Text 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.
SWFText SWFTextField([flags]);
Create a new text field object.The optional flags change the text field's behavior:
SWFTEXTFIELD_NOEDIT indicates that the field shouldn't be user-editableFlags are combined with the bitwise OR operation. For example,
SWFTEXTFIELD_PASSWORD obscures the data entry
SWFTEXTFIELD_DRAWBOX draws the outline of the textfield
SWFTEXTFIELD_MULTILINE allows multiple lines
SWFTEXTFIELD_WORDWRAP allows text to wrap
SWFTEXTFIELD_NOSELECT makes the field non-selectableSWFTextField t = new SWFTextField(SWFTEXTFIELD_PASSWORD | SWFTEXTFIELD_NOEDIT);creates a totally useless non-editable password field.
SWFBlock getBlock();
SWFBlock Block; (Propertie)
Get the SWFBlock object.
void setFont(SWFBlock font);
Set the text field font to the [browser-defined?] font font.
void setBounds(float width, float height);
Set the text field width and height. If you don't set the bounds yourself, Ming makes a poor guess at what the bounds are.
void setFlags(int flags);
The optional flags change the text field's behavior:SWFTEXTFIELD_NOEDIT indicates that the field shouldn't be user-editableFlags are combined with the bitwise OR operation. For example,
SWFTEXTFIELD_PASSWORD obscures the data entry
SWFTEXTFIELD_DRAWBOX draws the outline of the textfield
SWFTEXTFIELD_MULTILINE allows multiple lines
SWFTEXTFIELD_WORDWRAP allows text to wrap
SWFTEXTFIELD_NOSELECT makes the field non-selectableSWFTextField t = new SWFTextField(SWFTEXTFIELD_PASSWORD | SWFTEXTFIELD_NOEDIT);creates a totally useless non-editable password field.
void setColor(int r, int g, int b [, int a]);
Set the color of the text field. Default is fully opaque black.
void setName(string name);
void setVariableName(string name);
void VariableName; (Propertie)
Set the variable name of this text field, for form posting and action scripting purposes.
void addString(string s);
Concatenate the given string to the text field.
void setHeight(float height);
void Height; (Propertie)
Set the font height of this text field font to the given height. Default is 240.
void setFieldHeight(float heiht);
void FieldHeight; (Propertie)
Set the field height of the text field.
void setLeftMargin(float width);
void LeftMargin; (Propertie)
Set the left margin width of the text field. Default is 0.
void setRightMargin(float width);
void RightMargin; (Propertie)
Set the right margin width of the text field. Default is 0.
void setLeftMargin(float left);
void LeftMargin; (Propertie)
void setRightMargin(float right);
void RightMargin; (Propertie)
void setMargins(float left, float right);
Set both margins at once, for the man on the go.
void setIndentation(float width);
void Indentation; (Propertie)
Set the indentation of the first line in the text field.
void setLineSpacing(float height);
void LineSpacing; (Propertie)
Set the line spacing of the text field. Default is 40.
void setAlignment(SWFTextFieldAlignment alignment);
void Alignment; (Propertie)
void align(SWFTextFieldAlignment alignment);
void aling; (Propertie)
Set the text field alignment. Legit values are:SWFTEXTFIELD_ALIGN_LEFT
SWFTEXTFIELD_ALIGN_RIGHT
SWFTEXTFIELD_ALIGN_CENTER
SWFTEXTFIELD_ALIGN_JUSTIFY
void setLength(int length);
void Length; (Propertie)
Set the length of the text field.
back to index