We got a big location map that allows user to zoom in and out and do the panning but the image of the map is not very smooth when you pan it in iOS (Android is ok) so is there a way to fix this problem?
If you're using CPU you may get away with it on Android, and even iPad. If it's GPU, then it'll depend on the maximum texture size the Android device can take. Look to see if 2048 is a common size. If it turns out that a lot are 1024, you might want to have a version of the map at that size, or perhaps move a few of those around together to get a bigger sized image.
Thanks. Do you reckon using PNG or JPEG? I'm using PNG at the moment and the file size is much larger than JPEG. Also I noticed that by turning on "Lossless" in flash will increase the file size a lot more so I only turn on "Allowing smoothing" and not "Lossless".
Which one you use might depend on the nature of the picture, like, a picture with lots of flat colored areas will come out a lot smaller as a lossless PNG than as a 100% JPEG. It would be interesting to try an 8 bit or 16 bit PNG, see if that makes it use less GPU memory. JPEG is usually 24 bit, and it or a 24 bit PNG should take the same amount of GPU memory.
There is a chance that AIR is using 32 bit throughout on iOS, so it won't matter what the original image was if that's the case, just the width and height would determine the amount used.
The smoothing setting is more about whether you're going to scale the image, which I guess you would be if you want the image to be scaled down. If you could have a smaller version that the user then touches to go immediately to the larger version, both could be set to have no smoothing, which may improve performance.