Error loading images from subdirectory on iOS only

Hi everyone,

First post here so I’d like to say that I’m in love with CoronaSDK and how quick and easy it has been to develop 2d games quickly!

I’ve been having an issue for the last few days that I have been unable to resolve and it is driving me nuts. I’m trying to load an image from the “animaul” subdirectory using a string concatenation and it fails on iOS only, giving a nil DisplayObjects as a result.  This code works fine in the Simulator and on Android.  If I move the images to the root directory and change the string concatenation accordingly, it works fine for iOS as well.  However, I’d much rather not have 50-100 images cluttering up the root directory.  Can someone tell me what I’m doing wrong?

local filename = 'animaul/' .. ani.type .. ".png" print("loading.."..filename) local image = display.newImage( group, filename ,50,250 ) fitImage(image, 100, 100, true) -- this is where the code crashes when it tries to access 'image' which is nil.

Thanks a lot!!

Wes

Are there any messages in your console log?

Rob

Are there any messages in your console log?

Rob