loading images

HI
I need to know how can I tell when a series of images are loaded at startup?
IN actionscript3 there is a load event but in corona? [import]uid: 138547 topic_id: 25012 reply_id: 325012[/import]

When your app loads, it executes the in-line code in main.lua. This is where you put your initialization code and any images you want loaded at startup. [import]uid: 7559 topic_id: 25012 reply_id: 101633[/import]

I am converting my AS3 project to corona.

For example I have 4 classes main, player , background and enemy.

Now when I load all the background images , I then load enemy and then player images from their classes. The reason is when I move an image I do so from the class.

I keep track of all their positions. I need to know when each has loaded or I can z-index problems or try to start testing for collisions before images have been loaded.

IT isnt a simple matter of loading images from a main. [import]uid: 138547 topic_id: 25012 reply_id: 101706[/import]

i forgot about this post, but I havent found an answer yet.

In as3 you have an event which tells you when images are loaded.

if you start a gameloop and some images havent loaded then the program can be unstable [import]uid: 138547 topic_id: 25012 reply_id: 102031[/import]

I am making a game on mobile device.
In a game I test for collisions etc.

before I test for collisions on images I need to be sure that those images are loaded first or else the program can crash.

So what do I do in corona sdk to make sure all images are loaded fist before I start a gameloop?
http://www.anscamobile.com/corona/comparison/flash/apis/

I just read an image is loaded and the code will not go ahead until this has happened. In Flash this is not so .
So Corona handles this easily it seems. [import]uid: 138547 topic_id: 25012 reply_id: 102182[/import]