3 Replies Latest reply on Mar 11, 2011 2:44 PM by Ned Murphy

    fade out command

    h_perrobirdo

      I have a fade out comand called out on the first frame 1 of 7 frames

      it runs the fade out as it is saposed to on the first frame, but I want this one code to run on every frame.

      is there a way to get this code to recognize that the timeline has moved to frame 2 etc. and re-run the fade out command at that frame.

       

      fade_clip.addEventListener(Event.ENTER_FRAME, fl_FadeSymbolOut);

      fade_clip.alpha = 1;

      function fl_FadeSymbolOut(event:Event)

      {

           fade_clip.alpha -= 0.1;

           if(fade_clip.alpha <= 0)

      {

      fade_clip.removeEventListener(Event.ENTER_FRAME, fl_FadeSymbolOut);}

      }