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

Lesson 3. Understanding Target Paths > Creating and Referencing Global Elements

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 and 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 take a look at how you create a global element and how you 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