I am remotely loading an image in a scene.
If I switch the scene before the image is loaded, I can see the image on the next scene.
I have other local images along with the remotely loaded image. So I kept the following condition, but it doesn’t help.
local localImage = display.newRect(...); local function networkListener(event) if (event.isError) then print ("Network error - download failed"); else if localImage ~= nil then display the remotely loaded image end end end display.loadRemoteImage( url, "GET", networkListener, ... );
How do I prevent this?