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.

Invoked when a button is released. You must define a function that is executed when the event<br />

h<strong>and</strong>ler is invoked.<br />

Example<br />

In the following example, a function that sends a trace() statement to the Output panel is<br />

defined for the onRelease h<strong>and</strong>ler:<br />

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

trace ("onRelease called");<br />

};<br />

onReleaseOutside (Button.onReleaseOutside<br />

h<strong>and</strong>ler)<br />

onReleaseOutside = function() {}<br />

Invoked when the mouse is released with the pointer outside the button after the mouse<br />

button is pressed with the pointer inside the button. You must define a function that is<br />

executed when the event h<strong>and</strong>ler is invoked.<br />

Note: The onReleaseOutside Event H<strong>and</strong>ler is supported for Flash Lite 2.0 only if<br />

System.capabilities.hasMouse is true or System.capabilities.hasStylus is<br />

true.<br />

Example<br />

In the following example, a function that sends a trace() statement to the Output panel is<br />

defined for the onReleaseOutside h<strong>and</strong>ler:<br />

my_btn.onReleaseOutside = function () {<br />

trace ("onReleaseOutside called");<br />

};<br />

onRollOut (Button.onRollOut h<strong>and</strong>ler)<br />

onRollOut = function() {}<br />

Invoked when the button loses focus. This can happen when the user clicks another button or<br />

area outside of the currently selected button. You must define a function that is executed<br />

when the event h<strong>and</strong>ler is invoked.<br />

Example<br />

In the following example, a function that sends a trace() statement to the Output panel is<br />

defined for the onRollOut h<strong>and</strong>ler:<br />

my_btn.onRollOut = function () {<br />

Button 265

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

Saved successfully!

Ooh no, something went wrong!