_parent Property specifies or returns a reference to the movie clip or object that contains the current movie clip or object. The current object is the object containing the ActionScript code that references _parent. Use _parent to specify a relative path to movie clips or objects that are above the current movie clip or object.
Ok, now what if you want to access or set information from a movie clip above that one (in the hierarchy structure.)
ex:
_root.thisMc.insideMc
thats the one i want to give info to… (in a variable)
and its comming from
_root.thisMc.insideMc.myMc;
so i want to do something like this…
thisMc.newVar = myMc.SomeVar;
i can do that only if i use… _root.
But i need those paths to be relatvie… is that possible?
the reason i ask is im creating a flash thing that dynamically loads movies into it, and i need to reference stuff correctly in order to work… i need the loaded mc to be pretty much indepentant and relative. =)
Umm, can u rephrase that, i really can’t get what your trying to achieve, anyways, this should work, _parent should be used when u try to access relative path, or accessing an absoulute, like:
_root.MCParent.MCChiled.MCSubChiled.h88 = 23123
Try experimenting with the above code and the last post too, and tell me how it goes!