[MX] _root / this / _parent problem


I’ve read this topic http://www.kirupa.com/developer/mx/preloader_transition.htm
and is ofcourse working perfect. :smirk:

But… now I want to use this movieclip in another movieclip using loadmovie.
Ofcourse the “_root referring to”'s have to be changed … but I just can’t get it working.

Mainmovie.fla using as. to get submovie.fla.
submovie contains the as. used in the topic.

Could anybody help me?!

Oh… btw: I’ve also read topic http://www.kirupa.com/developer/actionscript/tricks/root_parent_this.htm

Not sure where your problem lies without looking at the code, but to convert a movie to work inside another movie clip, I would change find everything that says _root. and change it to something relative to the clip itself. For instance a movie clip inside the main movie that has _root. would be changed to _parent. And a movie clip inside a movie clip inside the main movie would have a _root. changed to _parent._parent. Basically anything with _root replace it with the number of _parent’s it takes to count back to the main timeline.