

The horizontal direction is in pixels, and the vertical direction is in rows: Indicates whether text fields are wrapped automatically Note: Set the Condensewhite property before setting the HTMLText property Removes extra white space (spaces, line breaks, and so on) in text fields that have HTML text, as most HTML browsers do. , and (with Leftmargin,rightmargin,blockindent,indent, Leading and TabStops attributes, corresponding to the TextFormat class's same name property) The supported HTML tag sets are:, (with face,size and color attributes), This method is more efficient than connecting two strings (such as Field.text + = MoreText) by using an addition assignment on the Text property. The Restrict property affects only what the user can enter, A script can put any text in a text field.

Note: ActionScript is case-sensitive, and if the Restrict property is set to ABC, allowing the uppercase form of letters (A,B and C) to be entered in lowercase (a,b and C), and vice versa. You can also use the Unicode escape sequence to specify what is allowed. Let the restrict character contain letters with special meanings (for example-and ^):įield.restrict = "0-9\\-" Allow numbers and dashesįield.restrict = "0-9\\^" Allow numbers and ^įield.restrict = "0-9\\\\" Allow numbers and backslashes The Restrict property supports some styles similar to regular expressions:įield.restrict = "A-za-z" Only size letters allowedįield.restrict = "A-za-z" Only letters and spaces are allowedįield.restrict = "0-9" Allow only numbersįield.restrict = "^ABCDEFG" Except for lowercase letters ABCDEFG are not allowed, others are allowedįield.restrict = "^a-z" All lowercase letters are not allowed, but other content is allowed, including uppercase lettersįield.restrict = "0-9^5" Only numbers are allowed, but 5 exceptions Textfield.restrict = "Here is what can be entered" įield.restrict = "^ Here for the prohibition of input content"
