hello all!
i have written a little script for a navigation menu and basically all i want to do is to use hitTest to check if the cursor is on the navigation, and if so i want to play a simple shape tween opening animation, and if the cursor is out of the navigation i want to play a shape tween closing animation sounds simple enough right? but for some reason it doesnt run through the animation it just going there and stops, well heres the code…
onClipEvent (enterFrame)
{
var Mousex = _root._xmouse;
var Mousey = _root._ymouse;
if (this.hitTest(Mousex,Mousey))
{
this.gotoAndPlay("On");
} else {
this.gotoAndPlay("Off");
}
}
Ive included a screen capture of the animation as well
Thanks for watching:)