0 Replies Latest reply on Mar 3, 2009 11:05 AM by Moenizzle

    Registering event handler with preloader

    Moenizzle
      As you can see from the code below, I have an application with a custom preloader designated in the Application tag.

      I would like the preloader to be able to receive a message from my main application but in order to that I need to register a method in the preloader as an event handler for an event fired by my application and in order to do that I have to have a reference to both the preloader and the application.

      Where can I get a reference to both? this.preloader seems to be null when the initialize() event is fired in my application and mx.core.Application.application is null in my preloader. Is there any way at all to do this?

      I would GREATLY appreciate any help with this! I've been struggling with this for hours :(

      Thanks!
      Moshe