11 Replies Latest reply on Nov 8, 2007 12:04 AM by Greg Dove

    unloadSound(); ???

    robindean
      I'm using the following two actionscript functions ...

      function audioOn(track) {
      mySound = new Sound();
      mySound.loadSound("audio.php?track=" + track + "&bandwidth=" + bandwidth, true);
      mySound.start();
      audio = "on";
      lower_nav.audio.slash._visible = true;
      }
      function audioOff() {
      delete mySound;
      audio = "off";
      lower_nav.audio.slash._visible = false;
      }

      When I call for the audioOff function, the sound stops but the file continues to download. I'd like for it to stop downloading. Is this possible? If so, how?