<layer name="text" url="textfield.swf" align="lefttop" x="10" y="10" html="Text[br][b]Bold Text[/b]" css="font-family:Arial; font-size:16px; color:#000000;" autowidth="auto" autoheight="auto" vcenter="false" padding="2" wordwrap="true" selectable="false" embeddedfonts="false" background="true" backgroundcolor="0xFFFFFF" backgroundalpha="1.0" border="false" bordercolor="0x000000" borderalpha="1.0" borderwidth="1.0" roundedge="0" shadow="0.0" shadowrange="4.0" shadowangle="45" shadowcolor="0x000000" shadowalpha="1.0" textshadow="0.0" textshadowrange="4.0" textshadowangle="45" textshadowcolor="0x000000" textshadowalpha="1.0" onautosized="" />
Attribute name | Type | Default value | |
html | String | "" | |
---|---|---|---|
|
|||
Attribute name | Type | Default value | |
css | String | "" | |
|
|||
Attribute name | Type | Default value | |
autowidth autoheight | String String | "auto" "auto" | |
Automatic plugin sizing - automatically resize the plugin to the same size as the text. Possible settings:
The onautosized event can be used to get informed about the automatic size changes. |
|||
Attribute name | Type | Default value | |
vcenter | Boolean | false | |
|
|||
Attribute name | Type | Default value | |
padding | String | "2" | |
Padding / space in pixels around the text. Can be individually for each side. There are 4 different ways to set the paddings (same as in CSS):
|
|||
Attribute name | Type | Default value | |
wordwrap | Boolean | true | |
|
|||
Attribute name | Type | Default value | |
selectable | Boolean | false | |
|
|||
Attribute name (Flash only) | Type | Default value | |
embeddedfonts | Boolean | false | |
|
|||
Attribute name | Type | Default value | |
background backgroundcolor backgroundalpha |
Boolean int Number |
true 0xFFFFFF 1.0 |
|
|
|||
Attribute name | Type | Default value | |
border bordercolor borderalpha borderwidth |
Boolean int Number Number | false 0x000000 1.0 1.0 | |
|
|||
Attribute name | Type | Default value | |
roundedge | String | "0" | |
|
|||
Attribute name | Type | Default value | |
shadow shadowrange shadowangle shadowcolor shadowalpha |
Number Number Number int Number |
0.0 4.0 45.0 0x000000 1.0 |
|
Put a box-shadow behind the textfield.
|
|||
Attribute name | Type | Default value | |
textshadow textshadowrange textshadowangle textshadowcolor textshadowalpha |
Number Number Number int Number |
0.0 4.0 45.0 0x000000 1.0 |
|
Put a shadow behind the text.
|
Attribute name | Type | Default value | |
onautosized | String | "" | |
---|---|---|---|
|
<!-- preload the embedded fonts swf --> <plugin url="embeddedfonts.swf" preload="true" devices="flash" /> <!-- the test textfield with 'myFont' and embeddedfonts=true --> <layer name="test" url="textfield.swf" align="center" css="font-family:myFont; font-size:16px;" html="Test text..." embeddedfonts="true" padding="10 20" />