A technical question?

Hello all,

I am doing a movie where i declare some variables and then use those declared varibales in a loaded swf file.

In the loaded swf i am using an array and a constant from the basic movie.

When i declared the constant as _root.name and used it in the loaded movie as _root.name it worked fine.

But when i did the same thing for the array it didn’t work and the loaded movie didn’t recognize the array. The problem was solved when i declared the arrays as globals _global.arrayname in the basic movie and use it as arrayname in the loaded swf.

WHY what is the difference between objects loaded as a _root or as a _global.

Thanks

The _root is relative. When you load the movie in a clip, what used to be the _root becomes the container clip. To avoid that kind of problems, you can read this: http://www.kirupa.com/developer/actionscript/tricks/relativeaddressing.asp