Monday, August 22, 2005

Flash® 8 - Isometric Image using MovieClip.cacheAsBitmap

Flash® 8 supports a new MovieClip property call cacheAsBitmap. By using cacheAsBitmap, the Flash vector renderer only redraws "dirty" areas of the screen. In this example, Guy Watson uses an isometric image to show the performance gains in using cacheAsBitmap.



Guy's example is able to obtain high frames per second with cacheAsBitmap enabled. As the blocks are only moved using _x and _y the MovieClip is never dirtied and remains a Bitmap in memory. As the Flash® renderer does not have to redraw these complex areas every frame, the performance of the Flash Player is dramatically faster. In this case, the player is well over 50 times faster than when cacheAsBitmap is set to false.

This example will ship with full source and documentation within Flash® by Example.

More to come!

Ted ;)

0 Comments:

Post a Comment

<< Home