The following example shows how you can use an embedded font with the Flash ColorPicker component using ActionScript 3.0.
Full code after the jump.
{ 0 comments }
A bunch of ActionScript 2.0 and ActionScript 3.0 examples*
The following example shows how you can use an embedded font with the Flash ColorPicker component using ActionScript 3.0.
Full code after the jump.
{ 0 comments }
By default, the text in a Label component instance isn’t selectable by the user. If you want to allow a user to select the text in a label, set the label’s selectable property to true.
The following example creates a selectable Label instance by setting the selectable property to true.
Full code after the jump.
{ 0 comments }
If you need to display longer amounts of text but don’t want to use a TextArea or TextField, set the label instance’s wordWrap property to true to enable multi-line text labels.
The following example creates a new multi-line label instance by setting the wordWrap property to true. This example sets the height of the Label instance [...]
{ 5 comments }
If you do not know the width or length of the text, set the label instance’s autoSize property to one of the constants in the TextFieldAutoSize class. By setting the autoSize property, the label is resized automatically to match the contents.
Note: Whenever a Label instance is resized, the resize event (represented by the fl.events.ComponentEvent.RESIZE constant) [...]
{ 2 comments }
In a previous example, “Changing the Label instance’s text in Flash using ActionScript 3.0″, we saw how to set a the text in Label control by setting the text property.
When using the Label component, you aren’t limited to plain-text formatting. By setting the label instance’s htmlText property, you can apply rich, HTML formatting such as [...]
{ 0 comments }
To change the text of a Label instance, set either the text or htmlText properties. Similar to working with text fields, setting the text property sets the plain-text , and setting the htmlText property sets the HTML formatted text displayed by the Label. For more information on HTML formatted labels, see “Creating an HTML-enabled label [...]
{ 0 comments }