7 Replies Latest reply: Aug 15, 2007 11:53 AM by Nickels55 RSS

    Dynamic Text issue

    Nickels55 Community Member
      I used this code to get the variables from a txt file:

      var textVar:LoadVars = new LoadVars();
      textVar.load("specials-for-animation.txt");
      textVar.onLoad = function() {
      _global.dyn1 = (textVar.headline);
      _global.dyn2 = (textVar.textdesc);
      };

      Here is the debugger output for global variables when I test the file:
      Variable _global.dyn1 = "Happy Hour"
      Now I know the variable exists and everything is working so far.

      My movieclip has a dynamic text field with the variable: _global.dyn1

      Nothing is displayed until you click on the window holding the dynamic text. Me confused (and I've done this before I am not sure why I am stumped now).

      Here is the sample:
      http://www.johnkalnin.com/flashhelp/test.html
      All I see is a line, but click just under it... notice how my dynamic text is suddenly visible. What gives?

      Source (Flash 8):
      http://www.johnkalnin.com/flashhelp/test.fla

      I know I am missing something stupid but my brain has given up on figuring it out.