Accessibility
Matt Chotin

Matt Chotin

Adobe

Created:
2 July 2007
User Level:
All
Products:
Flash
Flex

Tips for tuning ActionScript 3.0 performance for Flex and Flash developers

Note: This article was created based on Flex 2. Minor changes in the description and code may be necessary before it can be applied to Flex 3.

Learn about the Flash Player architecture and ActionScript Virtual Machine 2 (AVM2), and improve performance through typing and data binding in your Flex and Flash application development.

This presentation, given at the FlexManiacs conference in June 2007, gives tips for performance-tuning your ActionScript 3.0 code. While the presentation was given to a predominantly Flex audience, Flash developers can also benefit from these tips.

Requirements

To get the most out of this presentation, you will need the following software and files:

Flex 2 (SDK and Flex Builder)

Download the PDF presentation

Download the demo

Download the ZIP file to watch the demo mentioned in the presentation. The demo code is a single application that demonstrates the use of flash.utils.Timer to measure performance in certain scenarios. Each test executes in a for loop many times to bring the execution time up to a point where comparisons are meaningful. This means you must keep in mind that a single execution of something considered "slower" may not be so bad in the scheme of things.

Learn more about ActionScript 3.0 in the MXML and ActionScript area of the Flex Developer Center, as well as in these areas of the ActionScript Technology Center:

About the author

Matt Chotin is a product manager on the Adobe Flex team who focuses on the Flex SDK. He has been a member of the Flex team since 2003. Prior to joining the "dark side" of Product Management Matt was a principal engineer contributing to the Flex 1.0, 1.5 and 2.0 releases.