0 Replies Latest reply on Jan 22, 2008 8:29 AM by ooba

    Simple question

    ooba Level 1
      Can someone tell me what I am doing wrong here? Trying to create an empty movie clip and put a textField inside of it.

      var titleBox:MovieClip = _root.createEmptyMovieClip( "titleBox", _root.getNextHighestDepth() );

      var my_fmt:TextFormat = new TextFormat();
      my_fmt.color = 0xFF0000;
      my_fmt.size = 26;
      my_fmt.underline = true;

      var my_txt:TextField = titleBox.createTextField("my_txt", 1, 100, 40, 300, 100);
      my_txt.multiline = true;
      my_txt.wordWrap = true;
      my_txt.text = _root.headline;
      my_txt.setTextFormat(my_fmt);