Skip to main content
Inspiring
Jan 29, 2015 8:30 PM UTC
Answered

PNGs from older FLA's don't compile in Air

I have some older Air apps I'm updating and I'm getting a graphic bug. How my process works is I create a graphical asset ( image, button, animation or control skin ) in Flash CC, assign it a class name and publish a SWC. I then use the SWC as a graphical asset library in Flash Builder.

I've noticed recently that PNG's from my older projects display fine in Flash CC but when I compile the app the image data is transparent in the app. This is only PNG's not JPG's.

I also have the same issue with a modern Air app created only 7 months ago when I migrate from Mac to PC or back and forth ( I develop on both OS' ). I have to export the image and then re-import it. Again the image appears fine in Flash CC, it's only when I compile it into the App that the bitmap data seems to go transparent.

Running Flash CC and Air 15.

This topic is closed to new replies. Start a new post to keep the conversation going.
Wolfgang Klopf
Wolfgang KlopfCorrect answer
Inspiring
Jan 30, 2015 1:11 PM UTC

Hi Pete,


check the compression you have selected for the PNGs (in Flash CC Library -> right click the PNG -> properties). If you selected "Photo (JPEG)" compression then the PNGs are not displayed. Select "Lossless (PNG/GIF)" and export the SWC again.

Hope this helps.

Best regards

Wolfgang

7 replies

Inspiring
Feb 4, 2015 1:35 AM UTC

So I tried changing the photo format in Flash CC in Air 15 and it didn't work but when I updated to Air 16 that did work... not sure why.

Translate
Wolfgang Klopf
Wolfgang KlopfCorrect answer
Inspiring
Jan 30, 2015 1:11 PM UTC

Hi Pete,


check the compression you have selected for the PNGs (in Flash CC Library -> right click the PNG -> properties). If you selected "Photo (JPEG)" compression then the PNGs are not displayed. Select "Lossless (PNG/GIF)" and export the SWC again.

Hope this helps.

Best regards

Wolfgang

Translate
Inspiring
Feb 2, 2015 6:37 PM UTC

Ya tried that first thing. It didn't have any effect.

Translate
Adobe Employee
Jan 30, 2015 12:26 PM UTC

hi Pete,

Can you please share the test content and detailed steps which helps to reproduce this issue.

Rgds,

Mukesh

Translate
Inspiring
Feb 2, 2015 10:49 PM UTC

Mukesh, I'll try to put something together for you in a day or two.

Translate
Adobe Employee
Feb 3, 2015 5:13 AM UTC

Thanks Pete. Will wait for the content and detailed steps to reproduce this issue.

Translate
chris.campbell
Legend
Jan 29, 2015 11:30 PM UTC

Hi Pete,

I'm asking the Flash CC team if they have any guidance for you.  I haven't heard of this occurring before.

Thanks,

Chris

Translate