加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

flash – 找不到mx.core :: BitmapAsset

发布时间:2020-12-15 07:29:27 所属栏目:百科 来源:网络整理
导读:我在下面的示例中尝试了以下代码EmbedAssets.as: http://www.senocular.com/flash/tutorials/as3withmxmlc/ 使用mxmlc.exe构建并在Flash Player 9中测试输出EmbedAssets.swf时出现此错误: VerifyError:错误#1014:找不到mx.core :: BitmapAsset package {
我在下面的示例中尝试了以下代码EmbedAssets.as:
http://www.senocular.com/flash/tutorials/as3withmxmlc/

使用mxmlc.exe构建并在Flash Player 9中测试输出EmbedAssets.swf时出现此错误:

VerifyError:错误#1014:找不到mx.core :: BitmapAsset

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-config

<静态链接的运行时共享的库>真< /静态链接运行时共享的库>

或手动将参数传递给mxmlc

mxmlc -static-link-runtime-shared-libraries = true -debug = true Main.swf – Main.as

我遇到了同样的问题 – External Config file in Actionscript 3

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读