Xml loader class instance

Hello,
I have a small issue with instantiation of an xml loader class.
I’m using a standard way of loading external data and assigning it to “myXML” variable.
My class uses event.COMPLETE for loader to make sure that data is fully loaded.

Everything works fine until I make an instance of this variable in to my Main() class.
The trace of “myXML” gives me null.
It’s like it didn’t assign data on time.
Since the onComplete event handler should take care of any delays
it is hard for me to figure this out.