Lingo Dictionary > T-Z > updateStage |  |

updateStage

Syntax

    updateStage

Description

Command; redraws the Stage immediately instead of only between frames.

The `updateStage` command redraws sprites, performs transitions, plays sounds, sends a `prepareFrame` message (affecting movie and behavior scripts), and sends a `stepFrame` message (which affects `actorList`).

Example

This handler changes the sprite's horizontal and vertical locations and redraws the Stage so that the sprite appears in the new location without having to wait for the playback head to move:

    on moveRight whichSprite, howFar
    	sprite(whichSprite).locH = sprite(whichSprite).locH + howFar
    	updateStage
    end moveRight