I have this code that works for a normal hit test that triggers a mc animation in and out. But if i want to add more than one it just plays the last in the chain of events.
//Navigation
_root.finished = 100;
this.onEnterFrame = function() {
cursor._x = _root._xmouse;
cursor._y = _root._ymouse;
if (cursor.hitTest(nav1_mc) == true and _root.expand == false and _root.finished == 100) {
_root.finished = 0;
_root.expand = true;
_root.nav_mc.gotoAndPlay(2);
}
if (cursor.hitTest(nav1_mc) == false and _root.expand == true and _root.finished == 100) {
_root.finished = 0;
_root.expand = false;
_root.nav_mc.gotoAndPlay(11);
}
};
If anyone can let me know what i’m doing wrong that would be very helpful!