4 Replies Latest reply on May 4, 2007 8:49 AM by jerza

    Trouble loading variables in nested clips

    jerza
      I am having trouble loading variables from a text file into a dynamic text box that is nested in a movie clip. I have a stage then a movieclip with an instance of lot25 then inside that I have a dynamic text box called lot25text. I can get it to load on the main stage. I can get it to trace the variable in the text file but nothing when I put it in the MC. I did have it masked and I took that off. Can't think of anything else. Using MX2004.

      Here is the actionscript:
      thisText = new LoadVars();
      thisText.load("flash-variables.php");
      thisText.onLoad = function(success) {
      if (success) {
      _root.lot25.lot25text.text = thisText.varLot25;
      trace(thisText.varLot25);
      } else {
      trace("not loaded");
      }
      };
      stop();

      And here is the text file (it is a PHP file but it outputs this:
      &varLot25=SOLD