• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 14. Using ActionScript Behaviors > Using the Goto Play and Stop Behavio...

Using the Goto Play and Stop Behaviors

The Goto Behaviors give you control over the Timeline of a movie clip that's embedded within the active movie. For example, you can create a Flash movie clip that holds several images spaced equally on the Timeline, and use the Goto and Play options to let the visitor control the slideshow. The Play/Stop Goto Behaviors are different then the Play and Stop Behaviors. With the Goto portion of the behavior, you can direct the playhead to a specific point on the Timeline, and then continue to play, or stop the movie clip.

Use the Goto Play and Stop Behaviors

Select the layer to contain the movie clip.

Drag the movie clip onto the Stage.

Enter a unique instance name for the movie clip.

Select the Play Button object (a button object you designate to play the movie).

Click the Add button (+) in the Behaviors panel, point to Movieclip, and then click Goto And Play At Frame Or Label.

Select the unique instance name for the movie clip.

Enter a frame number where the movie clip begins playing.

Click OK.

Select the Stop Button object (a button object you designate to stop the movie).

Click the Add button (+) in the Behaviors panel, point to Movieclip, and then click Goto And Stop At Frame Or Label.

Select the unique instance name for the movie clip.

Enter a frame number where the movie clip will stop playing.

Click OK.

Click the Event list arrow, and then select an event to trigger the behavior.

Click the Control menu, and then click Test Movie.

Flash displays the movie clip.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint