I am using some external swf libraries at openfl project for html5 target. I have embedded them with preload=“true” and generate=“true” options. All assets were placed at bin directory in unpacked swflite .bin format.
Before last openfl big update I have easily instantiated assets by code like this:
var clip:MovieClip = cast Type.createInstance(Type.resolveClass("full.class.Name"), );
Now I see that libraries turns to (unpacked) zip archives that are downloaded by browser, but assets classes became unavailable by name. My small investigation shows that adding direct call to constructor like this:
var preloadDummy = new full.class.Name();
brings followed creation of assets by classified class name to life. But this ruins my approach of dynamic assets creation.
It looks like some sort of ‘unused assets optimization’. If I don’t use them directly at my code they are also unavailable for creation by full path. Is it a new openfl option that should be configured?