Can I assign display.loadRemoteImage to variabl?

Hello,

I need to use the loadRemoteImage but would like to assign a variable to it so I can insert it info a listView control. I tried putting local var1 = … and when I try inserting var1 to a listview it is nil. Any suggestions?

Thanks!

display.loadRemoteImage( "http://www.coronalabs.com/demo/hello.png", "GET", networkListener, "helloCopy.png", system.TemporaryDirectory, 50, 50 )

You can’t assign it to a variable.

If you need to do that it would be better to download the image (using network.download) and then load the image using display.newImage/newImageRect instead.

Hope this helps

Gremlin is right, this function doesn’t return any thing.  However, once you get inside your network listener, you can take the event.target value and assign it to a variable there.

Rob

You can’t assign it to a variable.

If you need to do that it would be better to download the image (using network.download) and then load the image using display.newImage/newImageRect instead.

Hope this helps

Gremlin is right, this function doesn’t return any thing.  However, once you get inside your network listener, you can take the event.target value and assign it to a variable there.

Rob