2 Replies Latest reply on Nov 22, 2006 12:47 PM by ntsiii

    Components with AS3

    AonSao
      Hello,

      I'm making a Flex project, but I am NOT using an MXML file. I set my .as class as the default application. How can I create instances of components? This is what i tried (and yup, I imported the TextInput class!):

      var txtInput:TextInput = new TextInput();
      addChild(txtInput);

      ... No compile errors, but I can't get it to display. Everything else shows up fine.

      Any ideas?

      - Jason Dukleth