This content has been marked as final. Show 2 replies
Convert the text inside the button to a MovieClip symbol. Then set the
myBtn.myTextClip.myText.textColor = 0x000000;
--> Adobe Community Expert
*Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio* http://www.tornadostream.com
*Must Read* http://www.smithmediafusion.com/blog
"Flashpuke23423" <email@example.com> wrote in message
>I have a button. Create a layer and put text down on each frame for Up,
> Down and Hit. It's dynamic text and has an instance name. How the fudge
> do I
> change this with AkraptionScipt? Nothing in any location will reference
> dynamic text to change it with myText.textColor = 0x000000;
> I mean really, this would be a 10 second task in any real programming
> or even HTML.
"It's not the wrench's fault that the sink still leaks if the plumber sucks at being a plumber." --Andyfucious
An important item to note is that you'll want to make a button with a MovieClip to do ActionScript inside the button, not a Button type.
Here is an easy example that demonstrates this. Create a MovieClip and put a textfield in it called, "txtSample." Select the layer for the button and put the MC on the Stage and name this instance, "btnSample." Create a layer for your ActionScript and put the attached code in the main first frame.
This **IS** a 10-second task in Flash if you know what you're doing. Please stop blaming the tool when it's the craftsman that stinks.