7 Replies Latest reply on Aug 21, 2009 1:36 PM by babo_ya

    swfloader event complete

    Marlene Level 1

      I am loading in a swf animation into a flex application. I want to use the Event.Complete to trigger a change to a different state.

      This is the code I am using. IntroArtwork is the id of the flash animation

       

      public function initApp():void {

      getData.send();

      introArtwork.addEventListener(Event.COMPLETE, changeState)

       

      }

       

      public function changeState(event:Event):void {

       

      currentState='byOffers';

      }

       

      It is not working so I am looking for some guidance.

       

      thankyou