Hello all –
So I have two classes (classes.XMLLoader) and I am trying to access the xml data from (classes.ActionScripts), but I only get [COLOR=gray]null[/COLOR] returned? The [COLOR=gray]loader.Data()[/COLOR] of [COLOR=gray]classes.XMLLoader[/COLOR] is run before [COLOR=gray]*xml/movies.xml *[/COLOR][COLOR=black]has been loaded.[/COLOR]
public function ActionScripts() {
var loader:XMLLoader = new XMLLoader("xml/movies.xml");
trace( loader.Data() ); [COLOR=gray]// null[/COLOR]
}
I am sure I will need to use addEventListener, but I have done so without success so far…
Any guidence would be grrrreat!
Thank you,
Jon