all groups > flash actionscript > may 2006 >
You're in the

flash actionscript

group:

affect color of my text


affect color of my text Dave
5/28/2006 7:58:26 PM
flash actionscript: Hello,

I have a color button (name of my button is bleu) and I would affect this
color to my text (txt is the name of my text) I use this function but it's
not ok why ?

mycolor = new Color(txt);
mycolor.setRGB(bleu.getStyle("color"));

Please could you help me ?

thank you

Re: affect color of my text John Doe
5/29/2006 12:00:00 AM
Color class is intended to use with movie clips not texts fields. use
TextFormat class or styles.

BTW, Color class is deprecated in player 8, in favor of
flash.geom.ColorTransform class

[quoted text, click to view]
AddThis Social Bookmark Button