See also
nextFrame function
method)
onData (MovieClip.onData handler)
onData = function() {}
Invoked when a movie clip receives data from a
MovieClip.loadMovie()
handler is invoked. You can define the function on the Timeline or in a class file that extends
the MovieClip class and is linked to a symbol in the library.
You can use this handler only with the
global function. If you want an event handler to be invoked with
loadVariables()
MovieClip.loadMovie()
onClipEvent(data)
Availability: ActionScript 1.0; Flash Player 6
Example
The following example illustrates the correct use of
named OnData.txt from the same directory as the FLA. When the data from the file is loaded
into the
object,
MovieClip
var mc:MovieClip = this.createEmptyMovieClip("mc",
this.getNextHighestDepth());
mc.onData = function() {
for(var i in this) {
trace(">> " + i + ": " + this[i]);
}
}
mc.loadVariables("OnData.txt");
See also
onClipEvent handler
,
prevFrame function
call. You must define a function that executes when the event
MovieClip.loadVariables()
method or the
loadMovie()
instead of this handler.
executes and we trace out the data.
onData()
,
loadVariables (MovieClip.loadVariables method)
,
prevFrame (MovieClip.prevFrame
MovieClip.loadVariables()
function, you must use
MovieClip.onData()
call or a
method or the
. It loads a file
MovieClip
901
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?