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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -