3 Replies Latest reply: Jan 21, 2014 9:23 AM by jurneys RSS

    AS3: Removing playing flv from the scene?

    jurneys Community Member

      Hi all,

       

      I am trying to find the way to completely remove playing stance flv from the scene.

       

      I am embedding flv player into a movie clip, and put another movie clip which works as 'close button'.

       

      When I press this close button this movie clip with flv player is removed by the removeChild command, but however,

      When I press this button while the movie is playing, movie clip disappears but sound track of the movie still plays.

       

      Seems like flv is still alive somewhere in the buffer. Is there any way to completely remove it?

       

      Bellow is the code for this part. Just fading out those movie clips by tweener, then fading in the main interface instead.

      function goBack is just going back to the previous frame.

       

      Any help will be appreciated.

       

       


      function Close(event:MouseEvent)

      {


      CloseButton.gotoAndPlay("down");


      Tweener.addTween(ShowreelField, {time:1, transition:"easeOut", alpha:0});


      Tweener.addTween(ShowreelField, {time:0.3,transition:'Linier',_Blur_blurY:50});


      Tweener.addTween(CloseButton, {time:1, transition:"Linier", alpha:0});


      removeChild(ShowreelField);


      MainButtonFadeIn();


      goBack();

      }