Event for when an Image or Sprite sheet has loaded

I'm loading a lot of graphics into my app, and there are times when I can begin receiving touch events before all the graphics are displayed on screen. Sometimes I get distorted graphics as a result of too many touch events.

It would be useful to have an event dispatch when an image or sprite sheet has been loaded, so I can determine when the app logic can begin interacting with the graphics.

Corona doesn't load images asynchronously so I don't know what you are talking about.

jhocking, just wondering are you an employee of AnscaMobile or something? You seem to be privy to the internals of the Corona SDK. I'd assume images were loaded synchronously, but the behavior in my application suggests otherwise or possibly a bug.

nah I just know what happens in my own games (execution freezes until loading is complete) and what's in the documentation (which isn't always completely correct, but does match my own observations in this case.)

Whatever is happening to your images is probably a bug, could you describe your problem? If possible a code example would be great.

views:1733 update:2011/9/18 14:43:09
corona forums © 2003-2011