What are some performance tips for Flash?
In Flash 10 you have many options if you are bound by code performance. First, make sure you are avoiding Dynamic and untyped{} where performance is critical; the JIT uses type information to speed things up. Second, you have the choice between Vector, List, and FastList as alternatives to Array(which is usually the slowest option). If you install ListTools, you may also use the list class included there, which is again optimized in another way from the other List classes. If you are instancing lots of objects in a short period of time, pre-instancing them and maintaining an object pool that pulls them in and out as necessary is preferred by Flash’s memory management system. Finally, you may use the flash Memory API, which lets you allocate a chunk of memory as a ByteArray and access its bytes directly. If rendering is slow(it is considerably slower outside of the Windows player), avoid alpha transparency and usage of advanced DisplayObject features(rotation, scaling, 3D, filters). Pre