3 Replies Latest reply on Jul 14, 2006 8:41 AM by skauty

    External Movie....How do I stop this thing?

    wackydesigner
      Hey guys,
      I have one question. I have a flash file that when you go on a particular frame it will "connect" to an flv movie and start playing (using NetStream). Heres my problem...

      I have other buttons on the page that take you out of the movie frame. But the movie keeps on playing! How do I stop this?

      CODE (This code is on a frame, not an object)
      ___________________________________________________
      var nc:NetConnection = new NetConnection();
      nc.connect(null);

      var ns:NetStream = new NetStream(nc);

      player.attachVideo(ns);

      ns.play("movies/reel.flv");

      playButton.onRelease = function() {
      ns.pause();
      }
      ___________________________________________________


      Thanks,
      Peter.