// 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
before the
enterFrame
An
on startMovie
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
startMovie
event.
handler is a good place to put Lingo that initializes sprites in the first frame of
event occurs after the
event and
prepareFrame
on startMovie
195
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers