Flash 找不到mx.core::BitmapAsset
我尝试了代码EmbedAssets。如以下示例所示: 在使用mxmlc.exe构建和测试Flash Player 9中的Output EmbeddeAssets.swf时,我遇到了此错误: VerifyError:找不到错误#1014:mx.core::BitmapAssetFlash 找不到mx.core::BitmapAsset,flash,Flash,我尝试了代码EmbedAssets。如以下示例所示: 在使用mxmlc.exe构建和测试Flash Player 9中的Output EmbeddeAssets.swf时,我遇到了此错误: VerifyError:找不到错误#1014:mx.core::BitmapAsset package { import flash.display.Sprite; public class EmbedAssets extends Sprite { [Embed(sourc
package {
import flash.display.Sprite;
public class EmbedAssets extends Sprite {
[Embed(source="images/trophy.png")]
private var TrophyImage:Class;
[Embed(source="swfs/satdish.swf")]
private var SatelliteAnimation:Class;
public function EmbedAssets() {
addChild(new SatelliteAnimation());
addChild(new TrophyImage());
}
}
}
satdish.swf没有损坏,所以我不明白为什么会出现此错误消息。或者修改flex配置
true
或者手动将参数传递到mxmlc
mxmlc-static link runtime shared libraries=true-debug=true Main.swf--Main.as
我也有同样的问题-在将图像嵌入到类中时,通常会出现以下错误: 异常错误:VerifyError:错误#1053:在mx.core.BitmapAsset中非法重写z 为了避免再次发生此错误,您只需检查正在运行的flash player的版本。在我的例子中,我运行FlashPlayer9并遵守10,所以我只需将FlashPlayer路径指向FlashPlayer10,它就工作了 .谢谢。根据,这在默认情况下是正确的。似乎Adobe的文档是错误的。