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

Chapter 3. Understanding Target Paths > CREATING AND REFERENCING GLOBAL ELEMENT...

CREATING AND REFERENCING GLOBAL ELEMENTS

There’s no denying that even with a thorough understanding of target paths, it’s sometimes hard to keep track of them—especially when you have timelines within timelines within timelines. As you might imagine, target paths can become quite long. To help simplify things, ActionScript provides access to a global object. As a global element, this special Flash object exists apart from any specific timeline but is omnipotent in relation to your Flash project: You can reference it from any timeline without a target path and take advantage of its power to reference other timelines (and the variables, functions, and other dynamic elements they contain).

Let’s first take a look at how you can create a global element, then we’ll show you how you can convert an element with a target path into a global element.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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