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()


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/director/mx2004/release_update_en/07_met48.htm