PDA

View Full Version : looping after an on(MouseEvent)?


Odoacer
08-19-2002, 07:11 AM
okay how do I loop after an OnMouseEvent (i'm using "press")

The problem is, my code only executes once per click and doesn't loop.

I hope that's enough info for you guys. I tried to keep it short and simple.

edit: I want it to loop for as long as the button is held down.

sfa
08-19-2002, 07:58 AM
One way of doing this is to create a movie clip with three frames - put a stop() on the first frame, the code you want executed on the secon and a gotoAndPlay(2) on the third. Then on hte button put something like this -

on(press){
movname.gotoAndPlay(2);
}
on (release, releaseOutside, rollOut) {
movname.gotoAndStop(1);
}


SFA

Odoacer
08-19-2002, 08:06 AM
hmmm yeah actually dude i think that'll work

thanks for the help man *high five*