mx.core::BitmapAsset could not be found

Posted by asksuperuser on Stack Overflow See other posts from Stack Overflow or by asksuperuser
Published on 2010-05-22T18:04:44Z Indexed on 2010/05/22 18:10 UTC
Read the original article Hit count: 215

Filed under:

I tried the code EmbedAssets.as below found in sample here: http://www.senocular.com/flash/tutorials/as3withmxmlc/

I got this error when building with mxmlc.exe and testing the ouput EmbedAssets.swf in Flash Player 9:

VerifyError: Error #1014: mx.core::BitmapAsset could not be found

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 is not corrupted so I don't understand why this error message.

© Stack Overflow or respective owner

Related posts about flash