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

Add a stop() action

When a Flash application loads in Flash Player, it automatically plays in a continuous loop. You use ActionScript to control playhead movement in a timeline. You will add a stop() action in the first frame of your application so the user can make an entry in the input text field.

1.
In the Timeline, with the Input Text layer selected, add a new layer and name it Actions.

2.
Select Frame 1 of the Actions layer.

3.
In the Actions panel (Window > Actions), verify that Frame 1 is selected.

4.
Click in the Script pane of the Actions panel, and type the following comment:

// Stops the playhead at Frame 1.

Press Enter (Windows) or Return (Macintosh).

5.
Type stop(); to add the stop action.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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