0 Replies Latest reply on Jul 22, 2006 10:08 AM by Bart Cross

    LoadMovie give error message in dynamic text box

    Bart Cross Level 4
      I have a controller movie which bring in other movies.

      In the movie being imported, I have this code:

      var myStyle:TextField.StyleSheet = new TextField.StyleSheet();
      myStyle.load("kcm.css");
      copyHolder.txt.styleSheet = myStyle;

      copyHolder.txt.multiline= true;
      copyHolder.txt.wordWrap = true;
      copyHolder.txt.html = true;

      var story:XML = new XML();
      story.ignoreWhite = true;
      story.load("director.html");
      story.onLoad = function () {
      _root.copyHolder.txt.htmlText = story;
      }

      which works fine in itself, but when I import the movie into the main movie I get this: _level0.buttClip.copyHolder.txt where the HTML text should be. I have tried variations of the last line, but nothing seems to work. Any ideas?


      Well hit me upside the head. Publishing the movie when you make the changes helps, just so used to saving a file to see the changes. The answer was to add 'buttClip' to the last line as per the message.