Image Fill Bug - Failed to find image?

Hey guys please see the code below… Am i missing something? or is this just a bug?

local downloadPhoto=function() native.setActivityIndicator(true) local function networkListener(e) if not(e.isError) then if (e.phase=="ended") then native.setActivityIndicator(false) --local photo=display.newImage(e.response.filename,e.response.baseDirectory) --works local object=display.newCircle(0,0,100) object:translate(display.contentCenterX,display.contentCenterY) object.fill={type="image",baseDir=e.response.baseDirectory,filename=e.response.filename} --doesn't work end end end network.download("http://ejawebdesigns.com/image.jpg","GET",networkListener,"image.jpg",system.TemporaryDirectory) end local buttonText=display.newText("Download Photo",0,0,system.nativeFont,25) buttonText:translate(display.contentCenterX,display.contentCenterY) buttonText:setFillColor(1) buttonText:addEventListener("tap",downloadPhoto)

I tried that code snippet and got a circle with a blue sky/cloud smiley in the middle.

What version of Corona SDK are you using?  There was a bug fix in 2086 that makes fill’s honor the baseDir setting.  If you’re running a version before 2086, you will have issues.

Rob

Ah! Thanks again Rob - I was using build 2085, just updated to the latest and all is working… thank you!

I tried that code snippet and got a circle with a blue sky/cloud smiley in the middle.

What version of Corona SDK are you using?  There was a bug fix in 2086 that makes fill’s honor the baseDir setting.  If you’re running a version before 2086, you will have issues.

Rob

Ah! Thanks again Rob - I was using build 2085, just updated to the latest and all is working… thank you!