|
From: | Pablo Rodríguez |
Subject: | Re: [Swftools-common] ActionScript colorText property not working? |
Date: | Mon, 02 Mar 2009 23:11:30 +0100 |
User-agent: | Thunderbird 2.0.0.19 (X11/20090114) |
Chris Pugh wrote:
2009/3/1 Pablo Rodríguez:Chris Pugh wrote:Missing something maybe.. ;o) You have to use the Color object to affect the change.Say you had a button called button1, then .. colStr = "0x00ff00"; myColor = new Color(button1); myColor.setRGB(colStr); would change the color of the button. Does that help?
Thanks, Chris, for the reply.Your code might change the color of a button, but not text. Or at least, this doesn't work:
colStr = "0x00ff00"; myColor = new Color(color_text); myColor.setRGB(colStr); color_text="red";Does .edittext have a match in ActionScript? I mean, is there any AS class or object whose methods, properties and handlers can be applied to .edittext?
Thanks for your help, Pablo
[Prev in Thread] | Current Thread | [Next in Thread] |