278
ActionScript classes
_height (Button._height property)
public _height :
Number
The height of the button, in pixels.
Availability:
ActionScript 1.0; Flash Lite 2.0
Example
The following example sets the height and width of a button called
my_btn
to a specified
width and height.
my_btn._width = 500;
my_btn._height = 200;
_highquality (Button._highquality property)
public _highquality :
Number
Deprecated
since Flash Player 7. This property was deprecated in favor of
Button._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 smooths bitmaps if the SWF file does not contain animation and is the default
value. Specify 0 (low quality) to prevent anti-aliasing.
Availability:
ActionScript 1.0; Flash Lite 2.0
Example
Add a button instance on the Stage and name it myBtn_btn. Draw an oval on the Stage using
the Oval tool that has a stroke and fill color. Select Frame 1 and add the following
ActionScript using the Actions panel:
myBtn_btn.onRelease = function() {
myBtn_btn._highquality = 0;
};
When you click myBtn_btn, the circle's stroke will look jagged. You could add the following
ActionScript instead to affect the SWF globally:
_quality = 0;
See also
_quality (Button._quality property)
,
_quality property
_name (Button._name property)
public _name :
String
Summary of Contents for Flash Lite 2
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...