0 Replies Latest reply on Mar 14, 2007 6:35 AM by marcofella

    Pausing a streamed MP3

    marcofella
      Hi All,

      I am using the inbuilt 'Load Streaming mp3 behavior' in flash. I have it attached to a button. I have another button for pause. However, i cannot figure out what Actionscript to attach to this pause button. I am a total novice when it comes to Actionscript. I hope someone can help me.

      THis is the code on the play button -

      on (release) {

      //Load Streaming mp3 behavior
      if(_global.Behaviors == null)_global.Behaviors = {};
      if(_global.Behaviors.Sound == null)_global.Behaviors.Sound = {};
      if(typeof this.createEmptyMovieClip == 'undefined'){
      this._parent.createEmptyMovieClip('BS_AGarden',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
      _global.Behaviors.Sound.AGarden = new Sound(this._parent.BS_AGarden);
      } else {
      this.createEmptyMovieClip('_AGarden_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
      _global.Behaviors.Sound.AGarden = new Sound(this.BS_AGarden);
      }
      _global.Behaviors.Sound.AGarden.loadSound("AGarden.mp3",true);

      }


      Thanks in advance :-)

      Marco