cannot download images in Corona -
i using corona sdk. parse json , in listener function try load images using links json, says network error. seems cannot run network methods in parallel?
even default corona demo code doesn't work reason:
local function networklistener2( event ) if ( event.iserror ) print ( "network error - download failed" ) else event.target.alpha = 0 transition.to( event.target, { alpha = 1.0 } ) end print ( "response: " .. event.response ) end myimage2 = display.loadremoteimage( "http://developer.anscamobile.com/demo/hello.png", "get", networklistener2, "hellocopy2.png", system.temporarydirectory, 60, 280 ) it fails run on android emulator.
Comments
Post a Comment