Ksan,
the issues that I was using variable assigned to display.loadRemoteImage instead of event.target. As mentioned in docs that you cant use variable with this function. I may not understand you at the beginning. so
fitImage( event.target, 50, 50, false ) – works fine
fitImage( horse, 50, 50, false ) – does not work
One more point if you have experienced with display.loadRemoteImage … i want to load images into Tableview with many rows. i am worried about the space it used in the device as I noticed it saves them locally under temp folder. Assuming you are having Tableview with 100 rows each with an image, you will end up with 100 images downloaded under temp folder. Still i don’t know how to mange this efficiently and how it should behave when user refreshes the tableview. I know temp folder is mangled by device and it gets deleted when the device needs more memory. So what will happen if the user is viewing the tableview and device delete the temp at the same time ?? will that crash the app ??
i have this question long back but no answer yet ?
http://forums.coronalabs.com/topic/48069-does-displayloadremoteimage-always-need-to-be-saved-locally-in-the-device/
I hope someone can share his knowledge ?
Regards
Abdul