Navigating Frame Labels

Add Frame Labels

The buttons will take us to the start of each animation sequence with the gotoAndPlay method. We could simply type in the frame number we want to navigate to. For instance, if the square animation sequence begins on frame 48, we would type:

gotoAndPlay(48);

However, we will have to go back and change that script whenever we make changes to the timeline. That's going to be a hassle. To help prevent that, we will use Frame Labels as our target.

  1. At the start of each animation sequence, Insert Keyframe on the actions layer
  2. Bring up the Properties window
  3. Type an appropriate Name in the Label box

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player