Quote Originally Posted by 5TonsOfFlax View Post
When you are creating your myCustomLoaders, are you keeping references to them, or are you creating them as local variables inside a function?
Well, unfortunately I'm trying to sift through somone else's code... but GENERALLY... for the "top-level" instances (Config1, etc.) are created in a global space. Then, my "2nd level" xmls are usually loaded by other classes. But, I usually have a reference to the myCustomLoader at the class level. For example, the classes that need to load 2nd level .xml files generally have the format of:
Actionscript Code:
// any class that needs to load a .xml
package {

    public class otherClass extends MovieClip {
       
        private var myDataSource:myCustomLoader;
               
        public function otherClass(){
        }
       
        public function init(filePath:String):void{
            // myDataSource.addEventListener(Event.COMPLETE, onComplete) // Doesn't work here because myDataSource is null.
            myDataSource = new myCustomLoader(filePath);
            myDataSource.addEventListener(Event.COMPLETE, onComplete);
        }
       
        private function onComplete(e:Event):void{
            // Do something
        }
    }
}

I removed the weak references from the event listener.
Is it possible that the load is actually completing so fast, that it finishes before I explicitly add the listener?