3 Replies Latest reply on Jun 23, 2006 9:11 AM by Rothrock

    Problem with some script--Help???

    hutch-diggens Level 1
      I've been trying to learn some new things with flash and actionscript out of a book, I was trucking along nicely then I hit this rut--

      I keep getting an error with my script, but I am 99.9% sure that the script is the same as it is in the book.

      here is the code:

      //----------<LoadVars>---------//
      var myLV:LoadVars = new LoadVars();

      myLV.onLoad = function (success){
      if (success){
      _level5.loadedInfo.htmlText = myLV.info;
      } else {
      _level5.loadedInfo.text = "There has been an error loading the requested information .
      Please contact the Webmaster and report your error.";
      }
      }

      //---------------</LoadVars>-----------------\\

      and this is the error message:

      **Error** Scene=Scene 1, layer=actions, frame=1:Line 20: String literal was not properly terminated
      _level5.loadedInfo.text = "There has been an error loading the requested information .

      **Error** Scene=Scene 1, layer=actions, frame=1:Line 21: Syntax error.
      Please contact the Webmaster and report your error.";

      **Error** Scene=Scene 1, layer=actions, frame=1:Line 22: Expected a field name after '.' operator.
      }

      Total ActionScript Errors: 3 Reported Errors: 3

      any suggestions??
      thanks,

      hutch