views:

340

answers:

2

I'm trying to make a movie clip play once upon hover, currently it repeats endlessly.

My actionscript is as follows:

mc.stop();
mc.addEventListener(MouseEvent.MOUSE_OVER,mover);

function mover(e:MouseEvent):void
{
    mc.play();
}

How do I make it stop once it has finished playing?

Thanks

A: 

On the last frame of the movieclip put a stop() in the Actions

medopal
A: 

You can add an EventListener to the movie clip for the its EXIT_FRAME event, such that calls Stop (or GotoAndStop) if the currentFrame is the last frame.

M.A. Hanin