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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Event Description<br />

onRollOver =<br />

function() {}<br />

Method summary<br />

Methods inherited from class Object<br />

_alpha (Button._alpha property)<br />

public _alpha : Number<br />

The alpha transparency value of the button specified by my_btn. Valid values are 0 (fully<br />

transparent) to 100 (fully opaque). The default value is 100. Objects in a button with _alpha<br />

set to 0 are active, even though they are invisible.<br />

Example<br />

The following code sets the _alpha property of a button named myBtn_btn to 50% when the<br />

user clicks the button. First, add a Button instance on the Stage. Second, give it an instance<br />

name of myBtn_btn. Lastly, with frame 1 selected, place the following code into the Actions<br />

panel:<br />

myBtn_btn.onRelease = function(){<br />

this._alpha = 50;<br />

};<br />

See also<br />

_alpha (MovieClip._alpha property), _alpha (TextField._alpha property)<br />

256 ActionScript classes<br />

Invoked when the button gains focus.<br />

onSetFocus = Invoked when a button receives keyboard focus.<br />

function(oldFocus:O<br />

bject) {}<br />

Modifiers Signature Description<br />

getDepth() : Number Returns the depth of the button instance.<br />

addProperty (Object.addProperty method), hasOwnProperty<br />

(Object.hasOwnProperty method), isPropertyEnumerable<br />

(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf<br />

method), registerClass (Object.registerClass method), toString<br />

(Object.toString method), unwatch (Object.unwatch method), valueOf<br />

(Object.valueOf method), watch (Object.watch method)

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

Saved successfully!

Ooh no, something went wrong!