I'm developing an iPad app using Adobe Air.
I have all my images loaded into BitmapData
objects when the app starts. Then I only need to create Bitmap
objects (which are only containers) to use the pixels that are stored into the BitmapData
objects.
This works fine until I have to create a Bitmap
object with a big image. The app slows down, even freezes, for as much as 1 second.
As AS3 is single threaded, I cannot delegate the Bitmap
creation to a new thread. Also if the UI is frozen, I cannot show a decent spinner to inform the user "something is going on".
How could I solve this problem? Is there a way to create objects in parallel without affecting the UI performance?