Guest

Vsync in Flex/Flash/AS3

By: a guest on Jan 28th, 2012  |  syntax: None  |  size: 0.24 KB  |  hits: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. private var bitmap:Bitmap = new Bitmap();
  2. private var buffer:Bitmap = new Bitmap();
  3.  
  4. private function start():void {
  5.     addChild(bitmap);
  6. }
  7.  
  8. private function onEnterFrame():void {
  9.     // render into "buffer"
  10.     // copy "buffer" -> "bitmap"
  11. }