Hey,
I found a script that I use often to manipulate a movieclip to perform the old AS2 rewind function as shown below:
var isOver = false;
function onEnter(event)
{
if (isOver)
{
mcFlip.nextFrame()
}
else
{
mcFlip.prevFrame()
}
}
addEventListener('enterFrame',onEnter);
// mouse over
function onOver(event)
{
isOver = true;
}
addEventListener('rollOver',onOver);
// mouse out
function onOut(event)
{
isOver = false;
}
addEventListener('rollOut',onOut);
// mouse click
function onClick(event)
{
gotoAndPlay('test');
}
addEventListener('click',onClick);
My problem is that I have about 50 movieclips that perform a rewind tween, so is there a quick way to manipulate this script to add additional movie clips i.e. mcFlip2, mcFlip3 than repeating it over and over?
Thanks
Eddie