[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] ActionScript colorText property not working?

From: Chris Pugh
Subject: Re: [Swftools-common] ActionScript colorText property not working?
Date: Mon, 2 Mar 2009 03:06:08 +0000

2009/3/1 Pablo Rodríguez <address@hidden>:
> Chris Pugh wrote:
>>>           color_text.textColor = 0x00FF00;
>>>           color_text="blue";
>> Missing something maybe.. ;o)  You have to use the Color object to
>> affect the change.
>> See here,
>> http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary142.html
>> I think I could manage an example if still stuck..
> I guess that the example should be similar to this:
>        myColor = new Color(color_text);
>        myColor.setRGB(0xFF0000);
>        color_text="red";
> Text content is set to red, but text color isn't set to 0xFF0000
> (http://ousia.justfree.com/colors.swf).
> Could you show me the example, Chris?

Say you had a button called button1, then ..

      colStr = "0x00ff00";
      myColor = new Color(button1);

would change the color of the button.

Does that help?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]