If your png image appears in the jaggy flash (or with an alias rather than anti-aliasing) but it looks great in Photoshop, then it’s probably due to the fact that they have size A: resized and B: not has ' smoothing ' (smoothing is, in fact, dynamic smoothing).
Whenever you resize an image from a 1: 1 pixel ratio to the screen, the rendering needs to decide which pixels will be either cut off (if reduced) or duplicated (if expanded).
If anti-aliasing is not performed, you will see jagged artifacts, especially along the extreme areas with high contrast.
You can enable anti-aliasing in the IDE by double-clicking on the bitmap in your library and selecting the " Enable anti-aliasing " checkbox.
You can also enable it programmatically like this:
myBitmap.smoothing = true;
source share