AS3 – Hacking PreloadSwf for fun and profit

PreloadSwf is one fine gem in Flash Player’s mm.cfg, the historical and little known Flash Player configuration file.

In this post I will tell you all you have to know about this feature and how you are going to use it in your projects.

This was invented for Flash profiling: Clement Wong, from the Flex SDK team, presents PreloadSwf as a major piece of the “Flash profiling” puzzle in his about the Flex profiler post in 2008.

If you want to know most of the secrets of mm.cfg, dive into Jean-Philippe “jpauclair” Auclair post on mm.cfg hidden treasures. This is a must read if you like bytecode porn 🙂

Continue reading