From my main document class I pull a class which loads an xml file:
Main.as:
language = new Language();
Within my Language class I load an xml file using URLLoader and have an internal 'onComplete' function. What would I use to let my Main class know that this event is complete?
I've taken a look at the dispatchEvent() method and only ran into more trouble, probably using it wrong. Any help is greatly appreciated
Edit / Further Explanation:
From what it seems my Main class would contain:
addEventListener("languageLoaded", functionName);
I'm stuck with what my class needs. When I use:
dispatchEvent(new Event("customEvent"));
I have an undefined error. I've read that I need to extend EventDispatcher as my class but that seems off to me and there would be a different way to do this.