Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

where is _root & a couple other misc. ?'s

Status
Not open for further replies.

okiiyama

IS-IT--Management
Jan 3, 2003
269
US
1.
I kind of feel dumb to say this, but where are _root variables and objects in flash? Is _root the first frame? Or is it more general than that? I'm personally leaning on that _root is more general, or relative to where an element was initialized.

2.
I guess I've gotten the idea that depth is related to the layout of elements, i.e. which elements are laying on top, which elements are laying on the bottom, and which elements fall in between. Is this the right idea, and also is Depth absolute, or is Depth a relative attribute for elements that have siblings?

3.
Do I have to export elements into a frame before refrencing them in actionscript? In context, I would like to use Movieclip templates that are stored in the library, but not need to export them to the stage or to a frame, but rather use actionscript to place them on the stage at the desired time, or condition. So I guess the closest I can come to a finite question is what is the difference between using elements (or instances of elements, and specifically Movieclips) from the library and creating elements and their instances dynamically in actionscript? Is it a run-time thang?


I could read a book, I know, but everyone here is more fun then reading a book.

Anyways, thanks. That'll be enough to chew on for a while. =)
 
1- _root is the main TIMELINE, same as _level0. You can reference local variables to any timeline, but you must then use the timeline reference to set or retrieve them... If you want to use global variables (can be set or retrieved from anywhere in the movie), you should set them as global variables...

_global.my_var = VALUE;

trace(_global.my_var);

2- Check this as a starting point:

3- Yes, you have to export movie clips for actionscript (and set linkage...), to use actionscript to put those movie on stage.


Regards. Affiliate Program - Web Hosting - Web Design

03/13/05 -> OLDNEWBIE VS FLASHK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top