Win 80% performance on Flash ActionScript 2 project

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.

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

Finnaly compile your AS 3 loader.

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

Very important notes :

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
  • Share/Bookmark
Posted on March 18, 2009 at 13:17 by admin · Permalink
  • Share/Bookmark

In: ActionScript · Tagged with: , ,

Leave a Reply