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...
Subscribe to:
Post Comments (Atom)
4 comments:
thank you! this is very, very helpful
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
i mean sentences lol
Thank You Jason!!!
Post a Comment