clearFrame()
Usage
-- Lingo syntax
_movie.clearFrame()
// JavaScript syntax
_movie.clearFrame();
Description
Movie method; clears all sprite channels in a frame during Score recording.
Parameters
None.
Example
The following handler clears the content of each frame before it edits that frame during
Score generation:
-- Lingo syntax
on newScore
_movie.beginRecording()
repeat with counter = 1 to 50
_movie.clearFrame()
_movie.frameScript = 25
_movie.updateFrame()
end repeat
_movie.endRecording()
end
// JavaScript syntax
function newScore() {
_movie.beginRecording();
for (var i = 1; i <= 50; i++) {
_movie.clearFrame();
_movie.frameScript = 25;
_movie.updateFrame();
}
_movie.endRecording();
}
See also
beginRecording(), endRecording(), Movie,
clearGlobals()
Usage
-- Lingo syntax
_global.clearGlobals()
// JavaScript syntax
_global.clearGlobals();
Description
Global method; sets all global variables to
updateFrame()
(Lingo) or
VOID
null
(JavaScript syntax).
clearGlobals()
263
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