Articles about optimization’

May 1, 2007

Some ActionScript 3.0 Optimizations

Posted by Dennis in ActionScript, Flash, Flex 37 comments

I’ve been digging into ActionScript optimization and found some interesting results. Mind though that there’s nothing really new here, many of these tricks can be found in articles that I reference at the bottom of this posting.
Array indexing
Let’s start with a simple loop through the items of an array:
private function method1() : void
{
var tmpVar:int;

for(var i:Number=0; [...]