About Flash Optimization
- Posted by kajyr on July 1st, 2010
- Comment now »
Working with flash and actionscript I often stumble upon bad and slow code (either old code of mine or written by others – designers); In this post I’ll try to list some resources worth knowing if you want to write fast and nice code.
Best Practices
- Do not use Objects, if you know which properties will be finally involved: dynamic properties are slow to read. Create custom classes instead.
- Strong type everything. If you think there is a reason to avoid strong typing, at least use * as type.
- Try out and test different strategies with Grant Skinner’s performance framework.
Resources
- Quick as a Flash – by Grant Skinner. The bible.
- Best Practices in optimizing content for Flash Player 10.1 by Thibault Imbert (The Product Manager of the Flash Player). It’s about optimizing for Flash Player 10.1 on mobile devices, worth knowing also for the desktop / browser developers.
- Some ActionScript 3.0 Optimizations
Feel free to suggest more :-)
