okay, i have a feeling this is going to be a stupid simple answer but i am just not getting it..... i have a textfield inside movie clip i am using like a button. i want to roll over the movie clip and have the text change color from grey to blue. i got that part to work. but i cannot for life of me get it to change back when i roll off. i've been trying to think of an if/else statement but can't figure out what to say for the 'if' part. well, IF the mouse is over the movie clip, duh... isn't that what the "onRollOver" means?
the second part is i will want the color to go Blue if i actually click on the movie clip, and then will want it to go back to grey if i click on a different clip, so i'll have to delete out the color change somehow....
.... and i just can't figure out how to actionscript this...
here's what i have:
ActionScript Code:
_root.attachMovie("test_mc", "test", _root.getNextHighestDepth());
test_mc._x=50
test_mc._y=50
test.onRollOver = function() {
//test.test_txt.textColor = 0x0944b3;
var myColor:Color = new Color (test.test_txt)
myColor.setRGB(0x0944b3);
}
test.onRollOut = function() {
test.test_txt.textColor = 0x999999;
}
the "onRollOut" doesn't work at all. notice i can change the color in two ways, one is commented out. don't know which way might be better.....i thought by using variable i could use a delete variable, but couldn't get that to work either...
can someone help me get my code right? this should be so simple, don't know why i can't get it..... thanks....