Tag Archives: system.TemporaryDirectory

How to download an image in corona SDK?

By | January 26, 2012

Downloading an image in corona is really easy. Check out the example. [java] module(…, package.seeall) _W = display.contentWidth; _H = display.contentHeight; function new() local grp = display.newGroup(); local myImage; local function networkListener( event ) if ( event.isError ) then print ( "Network error – download failed" ) else myImage = display.newImage( "helloCopy.png", system.TemporaryDirectory, 60, 40 ) myImage.alpha =… Read More »