EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 263

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
clearGlobals() 263
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, updateFrame()
clearGlobals()
Usage
-- Lingo syntax
_global.clearGlobals()
// JavaScript syntax
_global.clearGlobals();
Description
Global method; sets all global variables to VOID (Lingo) or null (JavaScript syntax).

Related product manuals