03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example<br />

The following example shows how this method works, <strong>and</strong> also shows that the primitive value<br />

type of a new Boolean object is false:<br />

var x:Boolean = new Boolean();<br />

trace(x.valueOf()); // false<br />

x = (6==3+3);<br />

trace(x.valueOf()); // true<br />

Button<br />

Object<br />

|<br />

+-Button<br />

public class Button<br />

extends Object<br />

All button symbols in a SWF file are instances of the Button object. You can give a button an<br />

instance name in the Property inspector, <strong>and</strong> use the methods <strong>and</strong> properties of the Button<br />

class to manipulate buttons with ActionScript. Button instance names are displayed in the<br />

Movie Explorer <strong>and</strong> in the Insert Target Path dialog box in the Actions panel.<br />

The Button class inherits from the Object class.<br />

See also<br />

Object<br />

Property summary<br />

Modifiers Property Description<br />

_alpha:Number The alpha transparency value of the button<br />

specified by my_btn.<br />

enabled:Boolean A Boolean value that specifies whether a button is<br />

enabled.<br />

_focusrect:Boolean A Boolean value that specifies whether a button<br />

has a yellow rectangle around it when it has input<br />

focus.<br />

_height:Number The height of the button, in pixels.<br />

_highquality:Number Deprecated since Flash Player 7. This property<br />

was deprecated in favor of Button._quality.<br />

Specifies the level of anti-aliasing applied to the<br />

current SWF file.<br />

Button 253

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!