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 defines a function for the onReleaseOutside method that sends a<br />

trace() action to the Output panel:<br />

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

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

}<br />

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

onRollOut = function() {}<br />

Invoked when the pointer moves outside a movie clip area.<br />

You must define a function that executes when the event h<strong>and</strong>ler is invoked. You can define<br />

the function on the Timeline or in a class file that extends the MovieClip class or is linked to<br />

a symbol in the library.<br />

Example<br />

The following example defines a function for the onRollOut method that sends a trace()<br />

action to the Output panel:<br />

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

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

}<br />

onRollOver (MovieClip.onRollOver h<strong>and</strong>ler)<br />

onRollOver = function() {}<br />

Invoked when the pointer moves over a movie clip area.<br />

You must define a function that executes when the event h<strong>and</strong>ler is invoked. You can define<br />

the function on the Timeline or in a class file that extends the MovieClip class or is linked to<br />

a symbol in the library.<br />

Example<br />

The following example defines a function for the onRollOver method that sends a trace()<br />

action to the Output panel:<br />

my_mc.onRollOver = function () {<br />

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

}<br />

onSetFocus (MovieClip.onSetFocus h<strong>and</strong>ler)<br />

onSetFocus = function(oldFocus:Object) {}<br />

MovieClip 459

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

Saved successfully!

Ooh no, something went wrong!