You can assign frame labels to specific frames in your project. This strategy enables you to assign a descriptive name to an individual frame, making it easier to visually distinguish the different sections in the Timeline and easier to jump to specific frames with ActionScript. A frame must have a keyframe in it to assign a frame label.
Frame labels are helpful because you can reference a specific frame in the Timeline by referring to it by name instead of using frame numbers in your ActionScript code.
It is beneficial to use frame labels because it makes your code more readable. Additionally, if you add or remove frames when you edit the Timeline, the numbers may change later. Using frame labels ensures that the labels you apply will remain the same, eliminating the need to change any hard-coded frame number references in your code.
It is a best practice to place the layers that include ActionScript and a layer for frame labels at the top of the layer stack in the Timeline. For example, rename the layer that contains your ActionScript to actions and rename the layer that contains frame labels to labels and drag them to the top of the layer stack, above the other layers in your project.
To add a frame label, select any keyframe in the Timeline. In the Property inspector, enter the desired text in the Name field of the Label section. If more frames extend to the right past the frame label, the name of the frame label will appear in the frame area of the Timeline.
- Sõnaliik: noun
- Valdkond/domeen: Software
- Category: Graphic design software
- Company: Adobe
Looja
- Rogerwk
- 100% positive feedback