Enabling bitmap caching

To enable bitmap caching for a display object, you set its cacheAsBitmap property to true:

mySprite.cacheAsBitmap = true;

After you set the cacheAsBitmap property to true, you might notice that the display object automatically pixel-snaps to whole coordinates. When you test the SWF file, you should notice that any animation performed on a complex vector image renders much faster.

A surface (cached bitmap) is not created, even if cacheAsBitmap is set to true, if one or more of the following occurs: