1 Reply Latest reply on Apr 30, 2008 4:11 PM by kglad

    NetStream Object question

    Level 1
      I'm attempting to control the display of a movie clip during the buffer status and once video playback is completed. (see code below). I want to make the loading message visible while the video buffers, then make it not visible once it starts playing the video, and keep it hidden when the video has stopped playing. But somehow at the end of the video the loading message is visible. I'm guessing it's because the buffer is emptied on end and this is overriding the "NetStream.Play.Stop" property. Any help would be greatly appreciated. THANKS!

      My AS code is as follows:

      var ns:NetStream = new NetStream(nc);
      ns.onStatus = function(info){
      if(info.code == "NetStream.Buffer.Empty"){
      control.loadingvideo._visible = true;
      if(info.code == "NetStream.Buffer.Full"){
      control.loadingvideo._visible = false;
      if(info.code == "NetStream.Play.Stop" ){
      control.loadingvideo._visible = false;