質問

I have problem when I try to run unit test when I embed an Image

        [Embed(source="assets/Pen.png")] 
    [Bindable]
    private var PenImageClass:Class;
    private var penCursor:Bitmap= (new PenImageClass());

the error message is :

unable to resolve 'assets/Pen.png' for transcoding

but when I commented the [Embed(source="assets/Pen.png")] It works correctly. > How can I resolve this.

役に立ちましたか?

解決

try to add the assets folder directly beside the as file, the Flex Unit should understand that.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top