User Guide

on startMovie 195
// JavaScript syntax
function sendXML(theURL, targetWindow, xmlData) {
gotoNetPage(theURL, targetWindow);
postNetText(theURL, xmlData);
}
on startMovie
Usage
-- Lingo syntax
on startMovie
statement(s)
end
// JavaScript syntax
function startMovie() {
statement(s);
}
Description
System message and event handler; contains statements that run just before the playhead enters
the first frame of the movie. The
startMovie event occurs after the prepareFrame event and
before the
enterFrame event.
An
on startMovie handler is a good place to put Lingo that initializes sprites in the first frame of
the movie.
Example
This handler makes sprites invisible when the movie starts:
-- Lingo syntax
on startMovie
repeat with counter = 10 to 50
sprite(counter).visible = 0
end repeat
end startMovie
// JavaScript syntax
function startMovie() {
for(counter=10;counter<=50;counter++) {
sprite(counter).visible = 0;
}
}
See also
on prepareMovie