fatal error building from command line (EmbeddedMovieClip not found)
i've been unable build command line since embedding swf file in project. if "export release build" builder, it's ok, insufficient needs. need able build ant command line. here error:
error: not find definition flash.compiler.embed.embeddedmovieclip referenced embedded source c:\_projects\mygame\src\embed\loadinggraphicanimation.swf.
warning: definition flash.compiler.embed.embeddedmovieclip not found.
error: definition of base class embeddedmovieclip not found.
i'm using flashbuilder 4.7 airsdk 3.7 (although have same problem 3.6 , 3.5).
since works flashbuilder export release build, there must way work. i'm missing something.
can me figure out i'm missing doesn't allow embeddedmovieclip class found , used on swf embed?
edit: workaround found embed swf binary, , loader.loadbytes() on instance of it. works, means i'll have change 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 really awesome able see "export release build" does. i'm not asking able change it's settings, see them extremely helpful. if there such way, have not found it. know if there config file somewhere manages that?
i know old thread, can add information might useful if runs same issue today.
the air sdk & compiler contains file named asc-support.swc includes definition flash.compiler.embed.embeddedmovieclip. can find file @ [air sdk path]/frameworks/libs/asc-support.swc. swf embedding built air sdk & compiler. if project in flash builder 4.7 actionscript project (not flex project), uses air sdk & compiler when creates release build, class present.
however, if build script uses flex sdk compile, explain why flash.compiler.embed.embeddedmovieclip missing. don't see asc-support.swc in flex sdk, , suspect isn't in other swcs either. i'll bet "asc" in asc-support.swc refers asc 2.0 compiler, new compiler used air sdk. flex sdk has different compiler, , uses different classes, notably mx.core.movieclipasset, when embeds assets.
anyway, if you're trying build app flex sdk, , error, might try grabbing asc-support.swc air sdk & compiler , adding library path. option skip flex sdk entirely (as long you're not using mxml , flex framework, of course) , compile new compiler in air sdk & compiler instead.
More discussions in AIR Beta Channel
adobe
Comments
Post a Comment