mx.core::BitmapAsset could not be found
- by asksuperuser
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.