Posted By

orazal on 10/16/10


Tagged

null stage utils scrollrect


Versions (?)

Force Stage Redraw


 / Published in: ActionScript
 

Forces a stage redraw, useful when setting scrollrect null

  1. AS3:
  2.  
  3. private function updateStage():void
  4. {
  5. var emptyBitmapData:BitmapData = new BitmapData(10,10, true, 0);
  6. }
  7.  
  8.  
  9. AS2:
  10. private function forceRedraw():Void
  11. {
  12. var myBitmap:BitmapData = new BitmapData(scrubber._width, scrubber._height, true);
  13.  
  14. myBitmap.draw(scrubber);
  15. }

Report this snippet  

You need to login to post a comment.