highlight on mouse over
hi huys i got a question
I have a mc that has a mouse event that when its clicked it plays the animation within its timeline. Can i put a mouse over event on it so it has a yellow glow when my mouse goes over it.
I am using flash cs5. AS3.
here is my code. its very simple.
import flash.display.Sprite;
clue_btn.buttonMode = true;
clue_btn.addEventListener(MouseEvent.CLICK, animate);
function animate(e:MouseEvent)
{
this.addChild(e.currentTarget as Sprite); // puts the clicked object on the top layer
e.currentTarget.play();
}
thanks