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.

Example<br />

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

action to the Output panel:<br />

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

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

}<br />

See also<br />

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

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

onDragOver = function() {}<br />

Invoked when the pointer is dragged outside <strong>and</strong> then over the movie clip. You must define a<br />

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

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

library.<br />

Note: This event h<strong>and</strong>ler is supported in Flash Lite only if System.capabilities.hasMouse<br />

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

Example<br />

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

action to the Output panel:<br />

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

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

}<br />

See also<br />

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

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

onEnterFrame = function() {}<br />

Invoked repeatedly at the frame rate of the SWF file. The function that you assign to the<br />

onEnterFrame event h<strong>and</strong>ler is processed before any other ActionScript code that is attached<br />

to the affected frames.<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 that is linked<br />

to a symbol in the library.<br />

452 ActionScript classes

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

Saved successfully!

Ooh no, something went wrong!