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

Seminar 7. Site Interactivity and Button... > Labeling Keyframes for More Dynamic ...

Labeling Keyframes for More Dynamic Scripting

Another nice feature of Flash that lends itself well to ActionScript is labels. Labels can be attached to a keyframe in the Timeline to name a specific location. After it’s named, you can then call that frame of the Timeline through the label name. By using a label for a location in the Timeline, you do not have to worry about any changes or edits that you might make to the Timeline. For instance, if you attach the goto action, call Frame 45 in the action, and then delete four frames before Frame 45 from the Timeline, Frame 45 becomes Frame 41. The goto action is still calling Frame 45, though, so your movie is now off. However, if you attached a label to Frame 45, it does not matter whether you add or delete frames because the label stays with the keyframe no matter where it is relocated in the Timeline. Labels make a movie more dynamic!

To create a label for a frame in the Timeline, you again must have a keyframe inserted at that location in the Timeline. Select the keyframe, and in the Property Inspector, type in the label name (see Figure 7.14).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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