Welcome to WebmasterWorld Guest from 50.17.16.177

Forum Moderators: open

Message Too Old, No Replies

Load movie

font color

     
6:57 pm on Jul 19, 2007 (gmt 0)

New User

5+ Year Member

joined:Nov 3, 2006
posts:20
votes: 0


Is there a way to onLoad , set a text area's font and color? not just have set it, but have set the properties when the movie loads, or upon an event, or on release even.

Hope you can help =)

Woodbury

5:07 pm on July 20, 2007 (gmt 0)

New User

5+ Year Member

joined:Nov 3, 2006
posts:20
votes: 0


Answer:

"Whether in your onPress handler or LoadMovie, create a TextFormat
instance and assign it to the text field. Make sure you set all the
properties you want to set before setting the format. For example:

myButton.onPress=function() {
var myFormat=new TextFormat();
myFormat.font="Arial";
myFormat.color=0xFF0000;
this._parent.textField.setTextFormat(myFormat);
}"

Just though I'd share in case someone else ran into this. Thank Patrick at Adobe forums :) .

woodbury