2 Replies Latest reply on Dec 22, 2006 8:10 AM by carlmal2

    createEmptyMovieClip, createTextField as ScrollPane contentPath

      I'm trying to add textfields to a movieclip, then use it as the contentPath on a ScrollPane.
      How do you dynamically alter a movieclip that doesn't have an instance (resides only in the library)?

      I've also tried creating an empty movieclip, adding a textfield then setting the contentPath:

      createEmptyMovieClip("scollPaneContent_mc", 1);
      var myTextField:TextField = spContent_mc.createTextField("myTextField", 1, 0, 0, 150, 20);
      myTextField.text = "Hello World";
      myScrollPane.contentPath = "scollPaneContent_mc";

      This code throws: Error opening URL "file:///D|/SD%5FWeb%5FNew/scrollPaneContent_mc"

      If I have an empty movieclip in the library named scrollPaneContent_mc, there is no error, but there is no textfield added either.