package {
import flash.display.*;
public class main extends Sprite {
[Embed(source="file.swf")]
public static const MY_FILE:Class;
public function main() {
var mySprite:Sprite = new MY_FILE() as Sprite;
trace("done " + MY_FILE);
addChild(mySprite);
}
}
}
получаю эту ошибку.
done [class main_MY_FILE]
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Filters()
Кто-нибудь знает в чем причина?