How can I shrink the overhead in AS3 compiled Flash movie?
Hi.
I've been converting an animation previously compiled with ActionScript 1 to ActionScript 3. Not a huge difference, but AS3 has a few bonus features.
In this day of ultra-fast broadband file size is not much of an issue for most, however I acquired the habit of shrinking everything as much as possible back in the bad old days, and find the habit hard to break.
AS1 file = 57 kb
AS3 file = 63 kb
Notably AS3 exports AS3 classes (in bytes):
11401 Scene 1 (AS 3.0 Classes Export Frame)
compared with (in bytes):
2771 Scene 1 (AS 1.0 Classes Export Frame)
Font subset embedding has gotten more expensive overhead-wise as well:
Verdana = 8244
Tekton Bold = 4472
OCR A Extended = 3800
compared with:
Verdana = 6297
Tekton Bold = 2493
OCR A Extended = 2505
Movie A is Flash 9 compatible and Movie B is Flash 8. Why are fonts bigger in Flash 9? Has anyone else noticed this? I made the Flash 8 movie on Windows Vista originally, and the Flash 9 version on Windows 10, where fonts are larger. Could that account for it? I generated the size reports in Windows 10 for both.
Also, can AS3 classes be optimized?
Thanks.
Tom
