This content has been marked as final. Show 3 replies
try using _parent
Dan Smith > adobe community expert
"DZ-015" <email@example.com> wrote in message
> I have a situation where movieclip A contains movieclip B which contains
> movieclip C.
> Movieclip C calls for a variable at ... _root.myVar, and rather than
> the variable at the root of A, I want it to find the variable at the root
> of B.
> Any tips for me?
unfortunately that's no good... C is being loaded dynamically - so whatever I do I need to do from A or B. So - is there something I can do from A that will make B treat anything inside it as if B itself is the root...?
try something like:
var rootC = _root.movieClipA.movieClipB
so that way when you type rootC it looks for the variable or something in the movieClipC timeline. If you declare the variable in the main timeline you may need to write it like this then:
_root.rootC //so it knows where to find the rootC variable