11 Replies Latest reply on May 5, 2006 10:26 PM by kglad

    Help ... path loading problem

    diork
      hi all,
      have u ever experience this problem?

      I wrote a swf which loading bunch of external files (swf that contains sound file) like below:

      function soundSetup() {
      for (i=1; i<=numItem; i++) {
      for (j=1; j<=subItem; j++) {
      var obj = eval("core.set_"+i+"._"+j);
      str = "1_2_"+i+j+".swf";
      loadMovie(str, obj.clip);
      core.LP.core_btn.onRelease = function() {
      };
      obj.core_btn.onRelease = function() {
      itemOnRelease(this);
      };
      }
      }
      }

      it works completely fine as a standalone file, it also works fine when i play it in Dreamweaver,
      but when I test on just the html, I can't hear the sound anymore, the code is just like normal:
      <object classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="410">
      <param name="movie" value="../swf/1_2/tones.1.2.swf">
      <param name="quality" value="high">
      <embed src="../swf/1_2/tones.1.2.swf" quality="high" pluginspage=" http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="410"></embed></object>

      does anyone know why?
      Thanks many....