|
.frameTo() Applies To MovieClip Availability Flash 6 and above, using AS1 or AS2. Usage <MovieClip>.frameTo(frame [, seconds, animation type, delay, callback, extra1, extra2]); Parameters frame : Frame that the movieclip playhead must be moved to. Returns Nothing. Description Shortcut method; does a playback transition on a MovieClip, moving its playhead based on the animation type selected. This is useful to create different animation effects based on a timeline animation, usually a keyframe animation. Examples // Rewinds a MovieClip to frame 1 in 0.5 seconds <MovieClip>.frameTo(1, 0.5); // Playbacks a Movieclip from start to finish in exactly 2 seconds <MovieClip>.gotoAndStop(1); <MovieClip>.frameTo(<MovieClip>._totalframes, 2, "linear"); |