Not sure if this is the right forum for this - please point me to the correct one if it is not.
I have a very simple actionscript project which compiles at 2.7k with flex_sdk_126.96.36.19910
and over ten times larger at 28.8k with flex_sdk_188.8.131.5282
I have isolated the code that triggers the problem. When you embed assets in an actionscript project you need to include -static-link-runtime-shared-libraries so that BitMapAsset is properly imported. However, the latest releases seem to bring in a lot more baggage with them, and it is bloating the size of what should be very small files. This is a BIG expense for wanting to simply attach an asset.
Here is the code that I am using:
public class EmbedTest extends Sprite
private static var x_icon :Class;
public function EmbedTest()
var x:Bitmap = new x_icon() as Bitmap;
If this can be fixed with different compiler options or a different Embed method I would like to know, thanks.
Here is a link to the whole project with assets and Ant files - you would have to change the sdk paths.
I am using the nightly builds because I am using the TextLayout Framework which is constantly improving.