jeudi 26 novembre 2015

Faults when embedding images in Flash Develope

If I include an embed thingy, it gives a fault when I click Test Project, but works if I click it again. If I add another embed I have to click it twice (with faults each time) and it works on the third try.

This is the code I've been using to embed images:

[Embed(source = "../img/bluebg.png")]
    public var Bg:Class;
    public var bg:DisplayObject = new Bg();

It wasn't working at all, and started working (as it is now) when I added the [Bindable], although now it seems to work when I take it away.

The fault it gives is: [Fault] exception, information=ReferenceError: Error #1065: Variable FlexVersion is not defined.

Aucun commentaire:

Enregistrer un commentaire