Dynamic Text and changing Text in AS3
I have a Dynamic Text box in my Library. I drag it to my main stage and give it a name..it is now a movieclip. The name is 'mcAdmin'. I added an event listener for MOUSE_OVER. I want the text to change color, but for now I'm just trying to change the text; however, it's not displaying the change in text I want. I do a trace, and the change is in there on the output window, but it is not displayed as such. How can I :
1) use AS3 to change the font color of the text
2) use AS3 to change the text and have it display?
function onMouseOver_txtAdmin(e:MouseEvent):void
{
Mouse.cursor="button";
//Current mcAdmin text is 'Administration'
//I want to change the color of Administartion on Mouse_Over
//but to test if I can get to anything, I'm just trying to change the text.
mcAdmin.text="Hello";
trace(mcAdmin.text);
mcPPMB.alpha=.5;
mcASB.alpha=.5;
mcISO.alpha=.5;
mcEA.alpha=.5;
mcAdmin.alpha=1;
mcAdmin.scaleX=1.25;
mcAdmin.scaleY=1.25;
}
Thanks.
