Welcome to WebmasterWorld Guest from 54.145.173.147

Forum Moderators: open

Message Too Old, No Replies

Load movie

font color

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

5+ Year Member



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 Jul 20, 2007 (gmt 0)

5+ Year Member



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