View comments | RSS feed

Example: Animating sprites using an offscreen bitmap

Many Flash games involve hundreds of images animating on the screen at once. This bitmap animation example draws several hundred small bitmaps or sprites on to a big offscreen bitmap, then writes that one bitmap to the screen, which greatly speeds up the animation. For a description of this example and to download the source code, go to www.adobe.com/go/learn_fl_bitmaps.


Flash CS3


Comments


adbe_paul said on May 1, 2007 at 11:17 AM :
Note: this example changed late in the process, after it was too late to update the description. The actual example for this chapter is as follows:

Title: "Example: Animated Spinning Moon"
Description:
The Animated spinning moon example demonstrates techniques for working with Bitmap objects and bitmap image data (BitmapData objects). The example creates an animation of a spinning, spherical moon using a flat image of the moon’s surface as the raw image data. The following techniques are demonstrated:

- Loading an external image and accessing its raw image data
- Creating animation by repeatedly copying pixels from different parts of a source image
- Creating a bitmap image by setting pixel values

The URL to download the sample text is still correct.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00000250.html