This content has been marked as final. Show 3 replies
The problem is that the movie you're loading into _level1 has references to _root, which will always refer to _level0.
You can easily solve this by setting the _lockroot property for your loaded movie to true.
i.e. movie1_mc._lockroot = true;
thanks for the reply flash tastic, I must say I was pretty happy to see it. I hit a couple of forums before this and did not get any answers. go ADOBE
I am sorry but I could not get that to work. Do I place that in the movie that is being loaded; or the one doing the loading.
my main movie is called: canvis, in I have a loder: loader_mc. wich in turn loads: logins.swf
Logins.swf is the one with the datagrid.
>>Do I place that in the movie that is being loaded
You lockRoot the movie you want to lock the root of... if that makes sense.
Say you have two movies: a and b. In either movie _root references the root
of that movie. Now lets say movie a loads movie b. Now within movie b _root
reference movie a. This is because movie a loaded movie b and movie b is
just another clip within movie a now. So if you lockroot in b, _root
references the _root of b...
While this will work, it's not a good solution. You should really never use
_root as it leads to these kinds of problems. Instead you should know your
hierarchy and reference the clips you need. And if you never put code
anywhere but frame 1 of the main timeline this is much less an issue - it's
not good practice to place code within clips or buttons, or anywhere but a
script layer in frame 1. Besides these headaches, it makes your code hard to
look through - ie messy... and messy code is bad code.
Adobe Community Expert