4 Replies Latest reply on Sep 18, 2007 2:34 PM by dimival

    Events not captured

      I am experiencing a strange behavior with one of my custom events. (my other events are fine).

      The event is dispatched with this code:

      private function handleLoginResult(event:ResultEvent):void{
      var user:XML = new XML(event.result);
      if (user != null && user.userId != null){
      var e:LoginEvent = new LoginEvent(user,'loginProcessed');
      Alert.show("dispatched event");

      I can see my Alert, every thing's good up until this point. My metadata looks good, here's the listing:


      I have a class LoginEvent.as in package "events". It's standard, extends from flash.events.Event, has a public constructor:
      public function LoginEvent(user:XML, type:String, bubbles:Boolean=false)

      In my main application i create a custom panel and declare the listener:
      <v2:Login title="Login" id="loginPanel" loginProcessed="Alert.show('debug')" />

      Now, when the event is fired i do not see the Alert "debug". Can someone help me understand why that is?