Unfortunately, the only workaround I found was to explicitly reference each of the asset classes somewhere in the code. You can create a dummy class as follows:
public class AssetsExporter extends Sprite { public static function export() { AssetClass1; AssetClass2;
Specify this class as the document class in the Flash IDE, so it will be compiled into the resulting swc. Then in the main code of your application call
AssetsExporter.export();
After that, you can use getDefinitionByName ().
source share