フィールド | 型 | コメント |
Header | RECORDHEADER | タグタイプ = 37. |
CharacterID | UI16 |
ID for this dynamic text character. |
Bounds | RECT |
Rectangle that completely encloses the text field. |
HasText | UB[1] |
0 = text field has no default text. 1 = text field initially displays the string specified by InitialText |
WordWrap | UB[1] |
0 = text will not wrap and will scroll sideways 1 = text will wrap automatically when the end of line is reached. |
Multiline | UB[1] |
0 = text field is one line only. 1 = text field is multi-line and scrollable. |
Password | UB[1] |
0 = characters are displayed as typed. 1 = all characters are displayed as an asterisk. |
ReadOnly | UB[1] |
0 = text editing is enabled. 1 = text editing is disabled. |
HasTextColor | UB[1] |
0 = use default color. 1 = use specified color (TextColor). |
HasMaxLength | UB[1] |
0 = length of text is unlimited. 1 = maximum length of string is specified by MaxLength. |
HasFont | UB[1] |
0 = use default font. 1 = use specified font (FontID) and height (FontHeight). (Can’t be true if HasFontClass is true). |
HasFontClass | UB[1] |
0 = no fontClass, 1 = fontClass and Height specified for this text. (can't be true if HasFont is true). Supported in Flash Player 9.0.45.0 and later. |
AutoSize | UB[1] |
0 = fixed size. 1 = sizes to content (SWF 6 or later only). |
HasLayout | UB[1] | Layout information provided. |
NoSelect | UB[1] |
Enables or disables interactive text selection. |
Border | UB[1] |
Causes a border to be drawn around the text field. |
WasStatic | UB[1] |
0 = Authored as dynamic text 1 = Authored as static text |
HTML | UB[1] |
0 = plaintext content. 1 = HTML content (see following). |
UseOutlines | UB[1] |
0 = use device font. 1 = use glyph font. |
FontID | If HasFont, UI16 | ID of font to use. |
FontClass | If HasFontClass, STRING |
Class name of font to be loaded from another SWF and used for this text. |
FontHeight | If HasFont, UI16 | Height of font in twips. |
TextColor | If HasTextColor, RGBA | Color of text. |
MaxLength | If HasMaxLength, UI16 | Text is restricted to this length. |
Align | If HasLayout, UI8 |
0 = Left 1 = Right 2 = Center 3 = Justify |
LeftMargin | If HasLayout, UI16 | Left margin in twips. |
RightMargin | If HasLayout, UI16 | Right margin in twips. |
Indent | If HasLayout, UI16 | Indent in twips. |
Leading | If HasLayout, SI16 |
Leading in twips (vertical distance between bottom of descender of one line and top of ascender of the next). |
VariableName | STRING |
Name of the variable where the contents of the text field are stored. May be qualified with dot syntax or slash syntax for non-global variables. |
InitialText | If HasText STRING | Text that is initially displayed. |
フィールド | 型 | コメント |
Header | RECORDHEADER | タグタイプ = 74. |
TextID | UI16 |
ID for the DefineText, DefineText2, or DefineEditText to which this tag applies. |
UseFlashType | UB[2] |
0 = use normal renderer. 1 = use advanced text rendering engine. |
GridFit | UB[3] |
0 = Do not use grid fitting. AlignmentZones and LCD sub-pixel information will not be used. 1 = Pixel grid fit. Only supported for left-aligned dynamic text. This setting provides the ultimate in advanced anti-aliased text readability, with crisp letters aligned to pixels. 2 = Sub-pixel grid fit. Align letters to the 1/3 pixel used by LCD monitors. Can also improve quality for CRT output. |
Reserved | UB[3] | Must be 0. |
Thickness | F32 |
The thickness attribute for the associated text field. Set to 0.0 to use the default (anti-aliasing table) value. |
Sharpness | F32 |
The sharpness attribute for the associated text field. Set to 0.0 to use the default (anti-aliasing table) value. |
Reserved | UI8 | Must be 0. |
フィールド | 型 | コメント |
Header | RECORDHEADER | タグタイプ = 91 |
FontID | UI16 | ID for this font character. |
FontFlagsReserved | UB[5] | Reserved bit fields. |
FontFlagsHasFontData | UB[1] |
Font is embedded. Font tag includes SFNT font data block. |
FontFlagsItalic | UB[1] | Italic font |
FontFlagsBold | UB[1] | Bold font |
FontName | STRING | Name of the font. |
FontData | FONTDATA[0 or 1] |
When present, this is an OpenType CFF font, as defined in the OpenType specification at www.microsoft.com/ typography/otspec. The following tables must be present: ‘CFF ’, ‘cmap’, ‘head’, ‘maxp’, ‘OS/2’, ‘post’, and either (a) ‘hhea’ and ‘hmtx’, or (b) ‘vhea’, ‘vmtx’, and ‘VORG’. The ‘cmap’ table must include one of the following kinds of Unicode ‘cmap’ subtables: (0, 4), (0, 3), (3, 10), (3, 1), or (3, 0) [notation: (platform ID, platformspecific encoding ID)]. Tables such as ‘GSUB’, ‘GPOS’, ‘GDEF’, and ‘BASE’ may also be present. Only present for embedded fonts. |