Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Dynamic charts
Author: Sas Jacobs
| Website: http://www.sasjacobs.com |
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: 7.80 Votes: 41
Hits: 2673
|
| » Author |
|
Applications Developer Marconi Australia
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (158 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|