3 Replies Latest reply on Feb 8, 2007 5:06 PM by kglad

    Dynanmic variable name creation with loadMovie

    BobAchgill

      My error indicates that the dynamic variable name is being created OK... the right path to the movie to be loaded shows properly in the error message.., but the movie does not load it. :o(

      THE ERROR MESSAGE:

      Error opening URL "file:///C|/Documents%20and%20Settings/Bob%20Achgill/My%20Documents/Docs%20of%20Bob/Downl oad/hhr/Losha/1/InTheBeginningFeb08/eng_in1.swf

      "

      THE SCRIPT:

      loadVariables("MyVar.txt", _root);

      //canvas_mc.loadMovie(this["wordSWF_" + count]); // This line gives error
      //canvas_mc.loadMovie(this["wordSWF_1"]); // This line gives error
      canvas_mc.loadMovie("eng_in1.swf"); // This line works!


      THE LOAD VARIABLE DATA FILE:

      MyVAR.txt contains...
      &wordSWF_1=eng_in1.swf
      &wordSWF_2=eng_the1.swf
      &wordSWF_3=eng_beginning1.swf