Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you format text in Flash MX?

Status
Not open for further replies.

AudreyLucy

Technical User
Jul 19, 2002
42
US
How do you format text (FlashMX) in a INPUT text block? I've tried using the properties panel, it changes the text on the stage but then when the movie is tested it all looks the same, no italics or underlining (just an example) or anything.

Then I tried to do the same Formating with ActionScript I used the tutorial in Macromedia's FLASH MX ADVANCED TRAINNING FROM THE SOURCE. That didn't work either.

Is ActionScript only for use controlling Dynamic Text Fields? I suspect that "style1" was to represent the text file that the text field would draw from. But would It work if I used it as an instance name for my text block? Heres the script:

style1 = new TextFormat();
with (style1) {
align = "left";
bold = false;
color = 0x1A1917;
font = arial;
indent = 2;
italic = true;
leading = 0;
leftMargin = 20;
rightMargin = 20;
size = 20;
target = null;
underline = false;
url = null;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top