Home > Adobe Flex/Air > Error: unable to resolve ‘image name’ for transcoding

Error: unable to resolve ‘image name’ for transcoding

i needed to find some sample about how to customize default flex PreLoader and found two great tutorials

Custom Flex 3 Lightweight Preloader with source code
Flex Custom Preloader

When i tried to add into my project and built it, the [Error: unable to resolve ‘image name’ for transcoding] was thrown. Because i’m using FlashDevelop so it might be a little difference from Flex Builder. Maybe the image path cannot be regconized. The original source code as below:

[Embed("Assets/Pathfinder_Logo_Blue.png") ]
[Bindable] public var Logo:Class;

To handle the error, the solution is kind of simple. Just add [/] before the path that points to the image.

[Embed("/Assets/Pathfinder_Logo_Blue.png") ]
[Bindable] public var Logo:Class;
Advertisements
Categories: Adobe Flex/Air Tags: ,
  1. February 23, 2014 at 3:22 PM

    Heya! I’m at work surfing around your blog from my new
    iphone 4! Just wanted to say I love reading through your blog and look forward to all your posts!
    Carry on the excellent work!

  2. Srilina
    May 26, 2014 at 8:06 PM

    ERROR: Unable to transcode

  3. Srilina
    May 26, 2014 at 8:07 PM

    i hv created a folder ‘image’ under the project…
    icon=”@Embed(‘/../image/delete.jpeg’)”

    but it says
    ERROR: Unable to transcode

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: