To create user-editable text fields, use the TextInput or TextArea
controls. For more information, see TextInput control and TextArea control.
Creating a Label control
You
define a Label control in MXML by using the <s:Label> tag,
as the following example shows. Specify an id value
if you intend to refer to a component elsewhere in your MXML, either
in another tag or an ActionScript block.
The executing SWF file for the previous example is shown below:
Sizing a Label control
If you do not specify a width, the Label control automatically
resizes when you change the value of the text property.
If you explicitly size a Label control so that it is not large
enough to accommodate its text, the text is truncated and terminated
by an ellipsis (...). The full text displays as a tooltip when you
move the mouse over the Label control. If you also set a tooltip
by using the tooltip property, the tooltip is displayed
rather than the text.