4 Replies Latest reply on Jan 15, 2007 12:50 AM by Oddsy

    applicationComplete event

    Oddsy Level 1
      I have created a class that extends UIComponent which adds an event listener for FlexEvent.APPLICATION_COMPLETE in the constructor. However, the event is never heard. Any ideas?

      Code:
      ...
      public Foo extends UIComponent
      {
      public function Foo()
      {
      addEventListener(FlexEvent.APPLICATION_COMPLETE,handleEvent);
      }

      private function handleEvent(event:FlexEvent):void
      {
      Alert.show("hello");
      }
      }