Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flash 找不到mx.core::BitmapAsset_Flash - Fatal编程技术网

Flash 找不到mx.core::BitmapAsset

Flash 找不到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

我尝试了代码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(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的文档是错误的。