-
How do I change the color of dynamic text without making it an object? Eg. If I click on a button (not component button)it should change the color of the text on it.
thanks
-
on the properties panel there's a color thing.
i don't know if that's what you mean though.
-
Not really. I am talking about changing the color thru actionscript.
Thanks
-
It seems that you cannot give a text field on a button an instance name, so you cannot change the color of it. But you can easily do this with a MC that appears to be a button.
Create an MC on the stage and give it an instance name of "myMCButton". In that MC, create a dynamic text field called "mcText" and put whatever text you want in it.
Then in the MC put the following code
on (release) {
this.mcText.textColor = 0x000066; // dark blue
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|