Caching an instance as a bitmap with an opaque background


show more Caching an instance as a bitmap with an opaque background provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash Professional CS5.5 New Features show less
please wait ...

Caching an instance as a bitmap with an opaque background

Caching an object as a bitmap has always increased runtime performance, but maybe you've wanted to add a background to that bitmap graphic without having to manually add in a shape in Flash. So on the stage here I am going to demonstrate one of the uses for caching a bitmap with an opaque background. So here I have a movie clip instance and the symbol is called opaque_bg. So this is a vector graphic and I am going to cache this as a bitmap by going to the Properties panel, and for Render I'll choose Cache as Bitmap.

So this can improve my runtime performance, like it has for several versions of Flash. But now I can change the background to be Transparent or Opaque. So I'll set the background to be Opaque. And now I can do something like apply a sunset type background or a daytime background or something that's more gray or anything I want without having to add another rectangle and modify its color. So I can quickly adjust my cached bitmaps directly in the Properties panel...

Caching an instance as a bitmap with an opaque background
Video duration: 1m 31s 45m 47s Intermediate

Viewers:

Caching an instance as a bitmap with an opaque background provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash Professional CS5.5 New Features

Subject:
Web
Software:
Flash Professional
Author:
please wait ...