Flash CS4 Professional ActionScript 2.0

Controlling SWF file playback

The following ActionScript functions let you control the playhead in the timeline and load a new web page into a browser window:

  • The gotoAndPlay() and gotoAndStop() functions send the playhead to a frame or scene. These are global functions that you can call from any script. You can also use the MovieClip.gotoAndPlay() and MovieClip.gotoAndStop() methods to navigate the timeline of a specific movie clip object. See Jumping to a frame or scene.
  • The play() and stop() actions play and stop SWF files. See Playing and stopping movie clips.
  • The getURL() action jumps to a different URL. See Jumping to a different URL.

For more information, see the following topics: