Search tutorials
Adding some style
The text fields that we've created will display in the default font but we can use a text format object to control the style of the fields.
The label format is defined as shown below:Lformat = new TextFormat();
Lformat.bold = true;
Lformat.font = "Verdana";
Lformat.size = 10;
We use the setTextFormat method to apply the initial formatting and the setNewTextFormat method to apply the formatting after the user types text into the fields.
this["ChartLabel"+i].setTextFormat(Lformat);
this["ChartLabel"+i].setNewTextFormat(Lformat);
| » Level Intermediate |
|
Added: 2002-08-05 Rating: 8 Votes: 41 |
| » Author |
| Applications Developer Marconi Australia |
| » Download |
| Download the files used in this tutorial. |
| Download (158 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!