2 Replies Latest reply on Oct 12, 2010 12:09 PM by rtalton

    how to add a label to an application

    Maximist Level 1

      Hallo, i am trying to add a label to an application and this code doesn't work:

       

      var myLabel:Label = new Label();

      myLabel.text = "wait...";

      myLabel.setStyle('color', '0xFFFFFF');

      var ui:UIComponent = new UIComponent();

      ui.addChild(myLabel);

      ui.x = 300;

      ui.y = 300;

      this.addElement(ui);

       

      I don't receive any sintax error but i can't see the label in runtime.

       

      Max