Hi everyone and thanks for reading my question!
I have a button with a text in it called Test1.
I want to change the text of the button in Test2 on RollOver over this button which instance name is btn1.
Initially the color of text of button is black. I also want on rollover to change it to white.
How can I achieve this?
I tried :
btn1.onRollOver = function()
{
//var myText:TextFormat = new TextFormat();
myText.text = 'Test2';
myText.color='#FFFFFF'; // initially the color text (of Test1 word is black so it's #000000)
}
btn1 instance name for button
Test1 is the initial container of my button and it has instance name myText.
Look of my button:
http://img180.imageshack.us/i/butonr.jpg/
Thanks in advance for helping me and sorry if it seems a basic question!