PDA

View Full Version : gotoAndPlay vs gotoAndStop


peltonsweet
05-24-2002, 10:41 PM
I need help clearing something up:

gotoAndPlay jumps to a specified frame and then plays from there to the end of the timeline. gotoAndStop plays to a specified frame and then stops. Are there any options for jumping to a specified frame, playing that frame only, and then stopping?

I'm going crazy trying to play one frame only.

Laura

Jesse
05-25-2002, 07:08 AM
Acutally, gotoAndPlay() plays from a set frame until the next forced stop (either the end of the timeline or a stop() action). gotoAndStop() goes to a set frame and doesn't progress from there until the timeline is trigerred again, which I think is what you're after here. There is no built in method to play from one frame to another then stop.

peltonsweet
05-25-2002, 09:23 PM
Thanks Jesse, sorry about the crossposting.

Does gotoAndStop actually play the specified frame? If it goes to the frame, plays it, then stops, then that is exactly what I need.

Thanks again,
Laura

Billy T
05-26-2002, 12:57 AM
Originally posted by peltonsweet

Does gotoAndStop actually play the specified frame?

yes

peltonsweet
05-26-2002, 02:46 AM
Thank you!