9 Replies Latest reply on Aug 1, 2008 8:21 AM by kglad

    Sound.getBytesLoaded proplems, help!

    bellp629 Level 1
      I am trying to program a preloader for external MP3 files,
      the sound var is called MP3ToPlay so i figure my code should be as follows;

      bytes_loaded = Math.round(_root.MP3ToPlay.getBytesLoaded());
      bytes_total = Math.round(_root.MP3ToPlay.getBytesTotal());
      getPercent = bytes_loaded/bytes_total;
      loadText1 = Math.round(getPercent*100)+"%";

      Though in the text box all i am getting is NaN%
      what might this problem be?
      source files online at
      http://www.philipbell.org/drphil/webtest/