PDA

View Full Version : _root?


B-HOLM
07-27-2002, 05:58 PM
hey, got a stupid question

when is _root used, and why?

oh BTW
is there any other good sites other than Flashkit and Actionscript.org ?

Billy T
07-27-2002, 06:04 PM
_root is the main timeline

ie

when you make a new flash movie and you see the blank timeline - that is _root

so if you wanted to target an mc on the stage you'd say

_root.mcInstanceName

where mcInstanceName is the instance name of the movieclip on the stage

ya dig?


why would you need anything other than actionscript.org? ;)

B-HOLM
07-27-2002, 10:37 PM
ok, so I use it for stuff that is going toget shown on the scene?...so I shouldn't use it when I wanna do background stuff (as in things working in the background)

Billy T
07-28-2002, 03:11 AM
huh?

B-HOLM
07-28-2002, 04:12 PM
sorry for confusing you....could you give any links to nywhere to read about it....?

Billy T
07-28-2002, 11:37 PM
this should help - http://www.actionscripts.org/tutorials/beginner/paths/index.shtml

cheers