1 Reply Latest reply on Aug 6, 2007 8:25 PM by kglad

    Help with variables


      I have a a text document with variales. I am using the following code to pull the vaiables into Flash

      loadtextContent = new LoadVars();


      loadtextContent.onLoad = function(success) {
      if (success) {
      totalSlideNumber = this.totalNumberOfSlides;

      This all works fine but I can not trace(totalSlideNumber) or make any reference to the variable totalSlideNumber. I keep on getting "undefined". How can I reference the variable totalSlideNumber to use it in the code.

      Thanks in advance
        • 1. Re: Help with variables
          kglad Adobe Community Professional & MVP
          totalSlideNumber is undefined until your onLoad method executes. after that just reference it if you're on the same timeline and use the correct path if you're referencing it from a timeline other than the one that contains your above code.