problem with _root while loading external movies
Hi,
According to the Flash help, "if a script in level 1 evaluates _root, _level1 is returned."
I have a movie clip in my main file that is placed in level1. I load external swfs into this clip. However, the problem I'm having is when I use "_root" in my external swfs, they treat that as "_level0" instead of "_level1." When I do "targetPath(_root)" inside the external swf, it returns "_level0.containerArea", which is the movie clip into which I'm loading these external swfs. If I do "this.getDepth()" in the external swf, it returns 1. These two things seem to be contradicting one another and I can't get this to work. I'm ripping my hair out while trying to find out why _root won't work in my external swf. Does this behaviour not inherit when you are loading a swf into a movie clip? Any help will be greatly appreciated.
|