display.loadRemoteImage

I am using storyboard.

I am looping through facebook friends and for each facebook friend i use display.loadRemoteImage to download facebook profile pic (50X50)

Everything works great if i let all pics download.

But if i leave page before they have downloaded then they appear on my new scene.

Is there a way to cancel any requests before leaving scene so that they do not appear on other scene?
[import]uid: 20289 topic_id: 30425 reply_id: 330425[/import]

Hello,

I had this same problem too with the Weirdstuff app I developed. This is what I did to fix it, first off create a function that has a new Group lets call it rowGroup. Do this:

local function test()  
 local rowGroup = display.newGroup()  
 var = display.loadRemoteImage(etc)  
 rowGroup:insert(var)  
 return rowGroup  
end  

This should work! Good luck :slight_smile:

Regards,
Jordan Schuetz
Ninja Pig Studios [import]uid: 29181 topic_id: 30425 reply_id: 121954[/import]

Thank you very much Ninja Pig Studios.

Unfortunately I could not get this to work.

But I do appreciate you trying to help.

As a workaround I am not allowing the user to change scene until all profile pics are loaded (usually less than 3 seconds). [import]uid: 20289 topic_id: 30425 reply_id: 122183[/import]

Hello,

I had this same problem too with the Weirdstuff app I developed. This is what I did to fix it, first off create a function that has a new Group lets call it rowGroup. Do this:

local function test()  
 local rowGroup = display.newGroup()  
 var = display.loadRemoteImage(etc)  
 rowGroup:insert(var)  
 return rowGroup  
end  

This should work! Good luck :slight_smile:

Regards,
Jordan Schuetz
Ninja Pig Studios [import]uid: 29181 topic_id: 30425 reply_id: 121954[/import]

Thank you very much Ninja Pig Studios.

Unfortunately I could not get this to work.

But I do appreciate you trying to help.

As a workaround I am not allowing the user to change scene until all profile pics are loaded (usually less than 3 seconds). [import]uid: 20289 topic_id: 30425 reply_id: 122183[/import]