2 Replies Latest reply: Sep 19, 2007 11:27 AM by BruceCSI2 RSS

    Script works for one frame but not another

    BruceCSI2 Community Member
      I set up 2 keyframes, each one loads a different text file into a dynamic text box. The text box for the first keyframe is named "session" and the text box for the second keyframe is named "oneptq". The text file for the first text box is named Titles.txt and the text file for the second keyframe is 100Q.txt. The code I'm using is identical (except for the respective names of the text boxes and text files) but for some reason the text will load in the first text box but not the second.

      Here's my AS for the first keyframe:

      lvLoader = new LoadVars();
      lvLoader.onLoad = function(success)
      {
      if(success)
      {
      session.text = lvLoader.textbody;
      }
      }
      lvLoader.load("Titles.txt");

      And my AS for the second keyframe:

      lvLoader = new LoadVars();
      lvLoader.onLoad = function(success)
      {
      if(success)
      {
      oneptq.text = lvLoader.textbody;
      }
      }

      lvLoader.load("100Q.txt");

      I can't figure this thing out. Please help. Thanks.