2 Replies Latest reply on Aug 18, 2007 7:58 AM by enfantterrible-tijzQ7

    displaying a component using a AS class

    enfantterrible-tijzQ7 Level 1
      I'm wondering if it's possible to display Flex 2 components in an MXML application by calling an AS class?
      This is what on the ways I've tried:
      In my MXML application file I call my class this way: var myTest:IconHints = new IconHints;

      package popups
      import flash.display.MovieClip;
      import mx.containers.Canvas;
      import mx.controls.TextInput;
      import mx.core.UIComponent;
      import flash.display.Sprite;

      public class IconHints extends UIComponent{

      public function IconHints():void{
      var hint_txt:TextInput = new TextInput();
      hint_txt.width = 150;
      hint_txt.height = 25;
      hint_txt.x = 200;
      hint_txt.y = 200;
      hint_txt.text = "I'm still working";