7 Replies Latest reply on Nov 8, 2009 11:49 AM by zeroskillz

    flash won't play in browser, only on local system

    r_tist Level 1



      When I use 'finder' to open and play this SWF, the track plays fine. As soon as I drag the SWF onto my html web page and preview in the browser, it is not functioning, so no sound plays. How do I need to tweak this so it could play? Here are the actions also:


      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;



      Here is the page:



      Please advise as to what I need to modify...thought it may have been a path issue, but now I do not know for certain. Thanks!