2 Replies Latest reply on Nov 5, 2009 7:29 PM by r_tist

    play/stop button plays the SWF, but when I upload to the web, it does not

    r_tist Level 1



      My SWF of the sound clip plays perfectly on my local system...I have the SWF and the MP3 in the same folder. I have transferred these into a 'sounds' folder within my website and dragged the SWF onto the webpage I'm working on. When I upload to the web and preview, the sound will not play when I click the button. Do I need to change something in the URLRequest?

      My ActionScript looks like this:


      var loadSnd:URLRequest = new URLRequest("Snow.mp3");

      var thisSnd:Sound = new Sound();


      var sndTrans:SoundChannel = new SoundChannel();




      play_btn.addEventListener(MouseEvent.CLICK, playF);

      stop_btn.visible = false;

      stop_btn.addEventListener(MouseEvent.CLICK, stopF);


      function playF(event:MouseEvent):void{

      //SoundMixer.stopAll();  << enable only if you don't want sounds to double-up based upon clicking the play button numerous times; avoids overlaps

      sndTrans = thisSnd.play();

      play_btn.visible = false;

      stop_btn.visible = true;



      function stopF(event:MouseEvent):void{


      stop_btn.visible = false;

      play_btn.visible = true;