I’m doing a simple mouseOver/mouseOut function,
but it keeps being jerky in it’s animation, it is as if
the mouseover and mouseout collide randomly.
is there a better way to to this?
code below.
hotspot01.addEventListener(MouseEvent.MOUSE_OVER, hotspotOver, false, 0, true);
function hotspotOver(e:Event)
{
hotspot01.gotoAndPlay(2);
}
hotspot01.addEventListener(MouseEvent.MOUSE_OUT, hotspotOut, false, 0, true);
function hotspotOut(e:Event)
{
hotspot01.gotoAndPlay(8);
}