my_text2.text = "this.gridFitType = advanced";
my_text2.embedFonts = true;
my_text2.antiAliasType = "advanced";
my_text2.gridFitType = "pixel";
my_text2.setTextFormat(my_format);
var my_text3:TextField = this.createTextField("my_text3",
this.getNextHighestDepth(), 9.5, 70, 400, 100);
my_text3.text = "this.gridFitType = subpixel";
my_text3.embedFonts = true;
my_text3.antiAliasType = "advanced";
my_text3.gridFitType = "subpixel";
my_text3.setTextFormat(my_format);
If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
method, which is
MovieClip.getNextHighestDepth()
used in this example.
See also
,
TextRenderer (flash.text.TextRenderer)
antiAliasType
,
(TextField.antiAliasType property)
sharpness (TextField.sharpness property)
_height (TextField._height property)
public _height : Number
The height of the text field in pixels.
Availability: ActionScript 1.0; Flash Player 6
Example
The following code example sets the height and width of a text field:
my_txt._width = 200;
my_txt._height = 200;
_highquality (TextField._highquality property)
public _highquality : Number
Deprecated since Flash Player 7. This property was deprecated in favor of
.
TextField._quality
Specifies the level of anti-aliasing applied to the current SWF file. Specify 2 (best quality) to
apply high quality with bitmap smoothing always on. Specify 1 (high quality) to apply anti-
aliasing; this smoothes bitmaps if the SWF file does not contain animation and is the default
value. Specify 0 (low quality) to prevent anti-aliasing.
1184
ActionScript classes
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?