homepage Welcome to WebmasterWorld Guest from 107.21.163.227
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Load movie
font color
firstodd




msg:3399320
 6:57 pm on Jul 19, 2007 (gmt 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

 

firstodd




msg:3400148
 5:07 pm on Jul 20, 2007 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved