37 Replies Latest reply on Aug 6, 2009 6:14 AM by rlinsurf1

    loadVariables "undefined" error

    rlinsurf1 Level 1

      I have the following line, which is just a loadVariables:


      loadVariables("data.txt", _root.fa);


      This loads a data file, located at the root level, which includes the name of an .mp3 file, which is located in a folder; root/media:




      And then later I have this line which loads the sound from the .mp3:


      this.sound.loadSound ("media/" + faFile, true);


      But when I run this I get:


      Error opening URL 'file:///jeffrey/Downloads/mp3%5Fplayer%5Ffiles%5Fedit/media/undefined'


      Can someone tell me what I'm doing wrong here?