swftools-common
[Top][All Lists]
Advanced

[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: Tue, 3 Mar 2009 08:34:21 +0000

2009/3/2 Pablo Rodríguez <address@hidden>:
> 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";

Line three above sets the color, not line four.  And, the example
below, works for me
without problem!  Thus,

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
.flash filename="01.swf" bbox=300x200 version=10 fps=60 compress
    .font tahoma "fonts/tahoma.ttf"
    .edittext edata font=tahoma size=10pt width=100 height=50
color=green text="Do I look
               Green?" variable=etext

.action:
       colStr="0xff0000";
       myColor= new Color(edata);
       myColor.setRGB(colStr);
.end
.put edata x=20 y=30
.end
------------------------------------------------

If upu have no joy, then why not post the whole script section (
within reason )?

> 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?

As far as I am aware ( from my investigations ), it doesn't need it.
See above,

Regards,


Chris.




reply via email to

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