Win 80% performance on Flash ActionScript 2 project

Share

If you have lot of AS 2.0 projets like me you should be happy to know that you could win 80% performance on your projets with 4 lines of ActionScript.

First compile your AS 2.0 project with Flash.

Export your swf file in AS 2.0. (eg: your_as2_project.swf)

Then create an AS 3.0 loader with Flash CS3 or better.

Keep the same framerate on your loader. The same dimentions and the same background color. Put those lines into your AS 3.0 loader and replace the swf file with your file name.

1
2
3
4
var request:URLRequest = new URLRequest("your_as2_project.swf");
var loader:Loader = new Loader();
loader.load(request);
addChild(loader);

Finally compile your AS 3 loader.

It’s magic it works perfectly. It’s more smoothly and more faster. Thanks AVM2 ;).

Very important notes :

Posted on Wednesday March 18th, 2009 at 01:17 PM by admin · Permalink
Share

In: ActionScript3 as3, Tip · Tagged with: , , , , , ,

Leave a Reply