I have a question: how is loading of assets processed by Corona?
example
I load some images through the entire app life cycle. Are all images loaded at the launch time? Or maybe they are loaded when i invoke newImage function? How to process preloading (with progress bar)?
Thanks in advance
Marcin [import]uid: 12119 topic_id: 6384 reply_id: 306384[/import]
they are loaded when you call display.newImage. if an image is already loaded and you load it again it reuses the texture (it doesn’t load it twice)
i don’t think there is any kind of preloaded event. it’s quite instantaneous, although if you are loading a lot maybe you could check your texture memory on a timer/enterframe, and if it’s stopped changing over a few frames then it’s probably finished loading. [import]uid: 6645 topic_id: 6384 reply_id: 22096[/import]