Skip to content

5. Creating a Label

fahimc edited this page Sep 5, 2012 · 1 revision

You create a label the same way you create a UIElement but the advantages is that you can get and set text easily.

var label = new Label();
label.build();
label.className("label");
label.width(230);
label.text("This is a Label");
this.addChild(label);

Clone this wiki locally