fatal error building from command line (EmbeddedMovieClip not found)
I've been unable to build with the command line since embedding a swf file in my project. If I do "export release build" from builder, it's ok, but that is insufficient for my needs. I really need to be able to build with ant from the command line. Here is my error:
Error: Could not find definition flash.compiler.embed.EmbeddedMovieClip referenced by embedded source C:\_projects\MyGame\src\embed\loadingGraphicAnimation.swf.
Warning: Definition flash.compiler.embed.EmbeddedMovieClip could not be found.
Error: The definition of base class EmbeddedMovieClip was not found.
I'm using FlashBuilder 4.7 with AIRSDK 3.7 (although I have the same problem with 3.6 and 3.5).
Since it works from FlashBuilder as export release build, there must be a way to get it to work. Clearly I'm just missing something.
Can anyone help me figure out what it is I'm missing that doesn't allow the EmbeddedMovieClip class to be found and used on this swf embed?
EDIT: A workaround I found was to embed the swf as binary, and then Loader.loadBytes() on an instance of it. This works, but it means I'll have to change a bunch of code across many projects. ![]()
[Embed(source="/embed/loadingGraphicAnimation.swf", mimeType="application/octet-stream")]
private static var LoadingSwf: Class;
_loadingSwf = new Loader();
_loadingSwf.loadBytes(new LoadingSwf());
addChild(_loadingSwf);
Thanks!
Craig
PS It would be really awesome to be able to see what "export release build" actually does. I'm not even asking to be able to change it's settings, just to see them would be extremely helpful. If there is such a way, I have not found it. Anyone know if there is a config file somewhere that manages that?
