This content has been marked as final. Show 4 replies
Yes you can...you just need the correct 'path' to the right level in the hierachy.
If you consider the main timeline as the _root level, then your Loader class/component might be called myLoader. Its 'content' is your loaded clip. So if it had code saying :
Then it should be accessing a function at the _root level.
or _parent._parent.myVar ++;
In the past I've loaded a form application inside a Loader and I think it was 3 levels up to get to the _root timeline from the loaded root form.
Hope that helps.
you can change access everything no matter its location in a swf file. you just need to use the correct absolute or relative path.
you can't get any help with the relative path because you gave insufficient information except to say using _parent will start moving your reference from a timeline in the child swf towards the main timeline in the main swf.
the absolute path is easier to reference (usually). the main timeline in your main swf is always _level0. and the absolute path to your object/variable is the same no matter where it is used.
sorry,but I used flash9 actionscript3.
_root,_parent can not use in it.
thank your help.
use this.parent.parent in child swf file is ok...
thank you guys again...