well , maybe … but I’ve checked the path many times…
the external mc is loaded into an empty movie clip called tilemenu which is positioned in the _root
the external MC has 5 different movieclips, each with an id property set.
when i load it into my movie I can target those 5 movie clips but if I try to read the “id” property i get an “undefined” result, which is not what I was expecting.
I am loading an external mc that holds a number of sub-moviclips
Each of these mc has some custom properties already set
When I load this external mc into my movie I catch the “onData” event so that I know when it is fully loaded.
As soon as this event is raised I call a function that reads those properties we were talking about from the loaded external mc.
For some reason this properties are not ready to be read in that moment (the onMovieClipeEvent(onData)) … but if you just let 1 or 2 frames pass then those variables do appear !!
The solution :
I’ve placed a var called “Inited” in the external MC. As soon as the onData event is raised I wait for “Inited” to be set, then I can call my custon function that does what I need. (it is a level-editor for an arcade game I am doing)
This thing really made me go nuts because I’ve never come across such a particularity in actionscript … hope this will help somebody else as well.