Try _parent instead of _root. By writing _parent a one level up i.e. parent level is referred.
For example:
----------------
Lets consider a scenario:
(mc = movie clip)
Here's a scene Hierarchy:
_root
|______mc1
| |_________mc1Inside
|______mc2
| |_________mc2Inside
|______mc3
| |_________mc2Inside
Variables on _root: (Actionscript)
--------------------------
checkMovie1=1;
checkMovie2=0;
checkMovie3=0;
If we are in mc1 level:
--------------------------
from mc1 you can access these root variables by just writing:
_root.checkMovie1=0;
but you can also access it through _parent like:
_parent.checkMovie1=0;
If we are in mc1.mc1Inside level:
--------------------------
from mc1.mc1Inside you can access these root variables by just writing:
_root.checkMovie1=0;
now here's a tricky part if you are using _parent, you have to call parent's parent for the checkMovie1 etc variables declared at the _root level i.e.
_parent._parent.checkMovie
Similarly, you can use these _root vairables from mc2, mc2.mc2Inside and mc3, mc3.mc3Inside levels.
If you want me to look at the code send it on:
faizanul_haq@hotmail.com
Main Topics
Browse All Topics





by: ZefferPosted on 2007-03-29 at 21:53:01ID: 18821636
in the second and third movies in the first frame of each put..
this._lockroot = true;
When they are loaded into the main movie they are losing their reference to their _root as the main movie is _root.
Z