3 Replies Latest reply on Jun 4, 2006 9:58 PM by blueprnt

    Not displaying txt from a txt file.

    blueprnt
      Hi,
      This should be simple but yet I can’t see where I am going wrong. What I am trying to do is load a txt file into _root.blank_mc.menu4 movie clip in the menu4 mc I have this action script

      var news_lv:LoadVars = new LoadVars();
      news_lv.onLoad = onText;
      news_lv.load("latest_news.txt");
      function onText(success:Boolean) {
      if (success) {
      news_txt.text = news_lv.latest_news;
      } else {
      news_txt.text = "unable to load text file.";
      }
      }

      I have a Dynamic Text box with Instance name news_txt on menu4 movie clip, but it doesnt want to work for me.

      Any help is appreciated
      BP