Hi,
I would really appreciate if someone can point me in the right direction.
My objective here is to execute some code after previous 10 images are completely loaded. Those 10 images, I am loading them one by one sequentially with the following code -
i = 0
function time:timer(e)
i = i + 1
timeNum = display.newImage(ball[i], 230, 290)
timeNum.alpha = 0
transition.to(timeNum , {alpha=1.0, time= 800})
end
timer.performWithDelay(4000 , time, 10)
local text = display.newText(“All images loaded”)
I want this text to be displayed only after all the 10 images are loaded. Right now, with the above code the text is displayed right after the first image is displayed.
I am not sure how to go about this. Can someone help?
Thanks, [import]uid: 36520 topic_id: 10054 reply_id: 310054[/import]
[import]uid: 3826 topic_id: 10054 reply_id: 36726[/import]