Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top