Using Cache as Bitmap Matrix

Cache as Bitmap is extremely useful for display objects that are only affected by two-dimensional translation. However, it is also possible to benefit from bitmap caching when applying other changes to a display object such as scaling and rotation. This is achieved by using a transform matrix in conjunction with a cached bitmap and is known as Cache as Bitmap Matrix.

Let us work through an example.

Getting ready

An FLA has been provided as a starting point. From the book's accompanying code bundle, open chapter6\recipe5\recipe.fla into Flash Professional.

Ten instances of a Monkey movie clip are positioned on top of a Background movie clip. All ten movie clips are continuously rotated and after five seconds, the average ...

Get Flash iOS Apps Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.