This content has been marked as final. Show 5 replies
I'm interested in what happens in this thread. I don't know the answer to your question. Does _lockroot help? I've never used it and I think I've seen it cause a few problems as well.
I've not run into this problem due to: never using _root and avoiding _level. In some circles I'm know for my somewhat militant stance on these issues. :)
So, of course, that would be my recommendation! I am interested to see what others in the community have to say about this. Bring it…
>>never using _root
Must be a error in your approach. Tested this and everything traces as expected.
Remember, every movieclip has a _root but there can only be one _level0. That is where the hierarchy (or the path) starts. Without setting _lockroot to true (available as of player 7) for a child swf, _root will always return _level0. Unless you load in a level. Then _root will return the level in which the script is executed.
"Unless you load in a level. Then _root will return the level in which the
script is executed."
I load in level, e.g. loadMovieNum("movie.swf",1) and publish to flash 6,
everything ist OK.
If I publish to flash 7:
_root from within the main timeline of my movie loaded in _level1 ->
_root from within an AS2 class function created in the movie loaded in
_level1 -> _level0, not correct
I tested that very same setup (as I already mentioned) and everything is ok. So, I can't replicate the error.