FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


_root what the use of this?





cvkien
as i see in most of the flash actionscript, i saw a lot of function using _root.*** and i just wanna know what the main function for this?? Thanks.
brokenadvice
_root.something calls an object or variable in reference to the stage rather than the movie clip it is called in. For instance, if you had a MC called "wheel" and another called "car", In order to control one with another, actionscript in the "car" MC would have to declare _root.wheel.play(); in order for the wheel to hear it. Just writing play(); would make the car MC play.
Peterssidan
You can see it as a movieclip that is the stage and contains all other movieclips.
Related topics
Oq ta no seu Ctrl+V agora ?
Macromedia Flash Action Scripting
Flash script problem
SUPER FLASH STORE {CLOSED}
Buying a logo for my site.
error
Doctor Who Flash Game - 50 (or more) FRIH$
Need a flash play-button
rotation script for flash
Flash AS help, loading external movies
Actionscript Problem: array failure?
create swishmax Login with phpbb db
200 frih for a flash animation
ActionScript2.0 - importing an external movie clip
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.