Monday, September 29, 2008

STOP & GO in actionscript...

Here's the actionscript to STOP a flash movie, then start it back up at a desired FRAME after clicking a button... Since Nathan was asking me for this, I decided to post it for everyone.

stop()
play1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
gotoAndPlay(61);
}

replace "play1" with the name of your button's instance and the "61" with the frame you'd like to it to go to...

4 comments:

Shauna said...

thank you! this is very, very helpful

Anonymous said...

man, I wish all the code on the internet laid that out as easily as you just did... I think a lot of programmers can't speak in complete sentances

Anonymous said...

i mean sentences lol

Nathan Linkous said...

Thank You Jason!!!