-- Lingo syntax _movie.deleteFrame() // JavaScript syntax _movie.deleteFrame();
Movie method; deletes the current frame and makes the next frame the new current frame during a Score generation session only.
None.
The following handler checks whether the sprite in channel 10 of the current frame has gone past the right edge of a 640-by-480-pixel Stage and deletes the frame if it has:
-- Lingo syntax
on testSprite
_movie.beginRecording()
if (sprite(10).locH > 640) then
_movie.deleteFrame()
end if
_movie.endRecording()
end
// JavaScript syntax
function testSprite() {
_movie.beginRecording();
if (sprite(10).locH > 640) {
_movie.deleteFrame();
}
_movie.endRecording();
}