6 Replies Latest reply on Mar 13, 2010 2:50 PM by AdrianWiecek

    adding textfields

    adamgeework Level 1

      import flash.text.TextField;


      var tf:TextField = new TextField();


      tf.text = "SfsfSD";



      i've added this to my main application in the script area. Why doesn this work?


      I've seen the examples in the flex help and this is how they do it. Can it only be done in a custom component?