Layer.update

Function/Meaning
Update image
Type
Method of Layer class
Syntax
update(left, top, width, height)
Arguments
left Specifies the left edge position of the rectangle to update, in pixels, in display coordinates.
top Specifies the top edge position of the rectangle to update, in pixels, in display coordinates.
width Specifies the width of the rectangle to update, in pixels, in display coordinates.
height Specifies the height of the rectangle to update, in pixels, in display coordinates.
Return Value
None (void)
Description
This method forces the layer to be drawn on the screen.
Screen updates occur automatically when drawing methods are executed, but this method can be used to force a screen redraw.
If all arguments are omitted, the entire layer is redrawn.
This method sets the Layer.callOnPaint property to true.
Until the screen is actually drawn, no matter how many times this method is called, the screen drawing will only occur once (it is cached).