Ondragout (Movieclip.ondragout Handler) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

The last function uses onClipEvent(data). The onClipEvent() event handler is invoked for
any movie clip that receives data, whether the movie clip is in the library or not. Therefore,
the last function in this example is invoked when symbol_mc is instantiated and also when
replacement.swf is loaded.
// The following function is triggered for each instance of symbol_mc
// when it receives data.
symbol_mc.onData = function() {
trace("The movie clip has received data");
}
// This code attempts to call a function when the clip is loaded,
// but it will not work, because the loaded SWF is not a symbol
// in the library associated with the MovieClip class.
function output()
{
trace("Will never be called.");
}
dynamic_mc.onData = output;
dynamic_mc.loadMovie("replacement.swf");
// The following function is invoked for any movie clip that
// receives data, whether it is in the library or not.
onClipEvent( data ) {
trace("The movie clip has received data");
}
See also
onClipEvent handler

onDragOut (MovieClip.onDragOut handler)

onDragOut = function() {}
Invoked when the mouse button is pressed and the pointer rolls outside the object. You must
define a function that executes when the event handler is invoked. You can define the
function on the Timeline or in a class file that extends the MovieClip class or is linked to a
symbol in the library.
Note: This event handler is supported in Flash Lite only if
is
or
true
System.capabilities.hasStylus
Availability: ActionScript 1.0; Flash Lite 2.0
System.capabilities.hasMouse
is
.
true
MovieClip
495

Advertisement

Table of Contents
loading

Table of Contents