Not sure if bug or me.
My code:
[lua]local function networkListener( event )
if ( event.isError ) then
print ( “Network error - download failed” )
else
event.target.alpha = 0
transition.to( event.target, { alpha = 1.0 } )
end
print ( "RESPONSE: " … event.response )
end
local imagefile = “http://shop.rareparts.com/img/img300/” … mastnum … “.jpg”
print(“imagefile=” … imagefile)
display.loadRemoteImage( imagefile, “GET”, networkListener, mastnum … “.jpg”, system.TemporaryDirectory, 10, 170 )[/lua]
If the image file doesn’t exist the temp still get created but is unreadable by Preview (Snow Leopard).
It’s a smaller size too. Corona is happy, just nothing displayed.
What I’m trying to display is an alternate image or simply text “Image not available”
If it’s me, where am I going wrong? If a bug, is there another way to check the results/image to confirm download good/bad?
TIA
[import]uid: 6547 topic_id: 10035 reply_id: 310035[/import]