Skip to main content
Participant
March 6, 2012
Question

PNG Images Distorted on iOS, AIR 3.1

  • March 6, 2012
  • 5 replies
  • 1156 views

Hi,

In the last 2 projects I exported for iOS devices (iPad 2 and iPod 3rd gen) I noticed that a lot of the png images were being distorted slightly. What I mean by that is, it looks like half of the image has been shifted horizontally to the left or right (depending on the image) by a few pixels. Also, the distortions are the same if I re-export the app.

This has only started happening recently but now happens on all projects I have with PNG files in them. It seems to happen independant of anything I do. I updated to AIR 3.1 about a month ago and haven't had this problem until about a week ago, could it be a bug with Adobe AIR?

Is their anyway to fix this? Any help would be appriciated.

This topic has been closed for replies.

5 replies

nytrusAuthor
Participant
March 6, 2012

Thanks for the responses.

I checked the images and none of them have smoothing enabled.

The only thing I'm doing to the PNGs that have the problem is adding them to the stage (they are in MovieClips). One thing I have noticed which is strange is that the PNGs that are affected are in MovieClips with mouse event listeners added, all the other PNGs seem fine.

Also, it's probably worth mentioning that this only happens to the PNGs when they are on the iPod/iPad. They are fine when I export them on the PC.

Thanks for the help.

March 6, 2012

Do you have "smoothing" turned on? If not when images are scaled above or below original size will look crackled. To turn it on go to your library select the source image (green icon) and right click, select properties and check the box called "Allow Smoothing" or change it to a "Yes" in the drop down.

Adobe why is this not checked by default?

This is for Flash CS 5.5

sinious
Legend
March 6, 2012

That wouldn't explain the picture appearing to tear in a single position.

What are you doing with the PNGs? Are you scaling, filtering, rotating or applying them to anything like a bitmapdata, etc?