1 Reply Latest reply on Apr 26, 2010 8:04 AM by Ned Murphy

    Removing FLVPlayback from stage + gotoAndPlay Mc

    jreich9484

      I am trying to remove an FLVPlayback from stage at its completion and gotoAndPlay a mc from my library.  Nothing seems to work. I am using CS4 and as 2.0.  Any help would really be appreciated!  Here is the code im trying to use now to load and remove FLVPlayback:

       

      import mx.video.*;

       

      var Player:FLVPlayback = attachMovie

      ("FLVPlayback", "Player", getNextHighestDepth());

      Player._x=0

      Player._y=0

       

      Player.autoSize=true;

      Player.contentPath =  "QHAZ10025_RideEasyRev25_lo_1_1.flv";

       

      Player.stop();

      removeMovieClip(Player);

        • 1. Re: Removing FLVPlayback from stage + gotoAndPlay Mc
          Ned Murphy Adobe Community Professional & MVP

          You need to add an event listener and assign it to the Player...

           

          import mx.video.*;


          var Player:FLVPlayback = attachMovie

          ("FLVPlayback", "Player", getNextHighestDepth());

          Player._x=0

          Player._y=0


          Player.autoSize=true;

          Player.contentPath =  "QHAZ10025_RideEasyRev25_lo_1_1.flv";

           

          var listener:Object = new Object();
          listener.complete = function(evtObj:Object):Void {
              Player.stop();
              removeMovieClip(Player);
          };
          Player.addEventListener("complete", listener);