EventDispatcher - please help

I have a Preloader class which loads any stuff passed to it - swf, jpg, xml, etc.
Second class called Controller is responsible for calling Preloader class to load any stuff.
The Preloader class, dispatches an event to Controller class whenever the specified entity completes loadding.

sequence of events:

  1. Controller class - call Preloader to load swf1
  2. Preloader class - loads swf1 and dispatches event to Controller
  3. Controller class - play swf1
  4. Controller class - when swf1 is played completely call Preloader to load and xml
  5. Preloader class - loads xml and dispatches back the event to Controller
  6. Controller class - now i’m trying to trace the nodes of xml.

Now my problem is that if i do steps 1, 2 and 3 only the code works fine. But as i do steps 1-6, nothing seems to happen.

The swf1 plays, i get the xml into the preloader class but i am not able to trace the nodes of the xml in the Controller class.

It seems that the Controller does not get an event notification for the second event.

I know i’m doing something wrong, but that i hv no idea :frowning:

Can anyone please look at the attached code and identify what wrong with this.

Any other example with multiple events one after another will also do.