3 Replies Latest reply on Jul 3, 2006 10:34 AM by ntsiii

    How can I access a component inside a class file?

    Level 7
      If I set up a component in Main.mxml e.g.

      <mx:Text id="stxt" text="" width="240" height="650"/>

      How can I set the text in an imported class file e.g.

      var txtblk = Main.stxt;//What should this line be?
      txtblk.text = "abc";

      Doug