Flash drawing
It is used when replacing the renderTarget that you want to reflect the drawing. If you swap renderTargets during onDraw, flush is called internally, so no explicit call is needed.