Sunday, March 6, 2011

Unable to resolve for transcoding with embed image

If you have ever get this "Unable to resolve for transcoding with embed image" or something similar to this message and wondering what the effF!?!? is going on, then here is the answer...

it's actually so simple that you just want to punch the guy who wrote the compiler in his newbie face...

okay...so some where in your semi-amateur code you probably have...
[Embed(source="../images/HelloNewb.png", mimeType="image/png")]
private var MyImage:Class;

guess what--what you actually need is...

[Embed(source="/../images/HelloNewb.png", mimeType="image/png")]
private var MyImage:Class;

you see it? it's not that hard. it's not like finding Waldo...what you need was to add the "/" where your source file is located.  Retarded? Hell yes!

And if you don't know what I am talking about or how to embed resources in AS3, then see my sample on how to embed images or how to embed fonts.

Related Links:

No comments:

Post a Comment