Removing table full of images

I have a table full of images (100 to be exact). I’ve attached a listener to the animate the images.

When I change screens in director I’m wanting to remove these images from the screen (and memory). I haven’t added the table to the group - as doing so has given me headaches beyond belief.

On changing screens I remove the listener, but the images still remain on the screen, though now inanimate.

nil the table doesn’t seem work.

[import]uid: 31718 topic_id: 7303 reply_id: 307303[/import]

Hello,

@3saul: you may can erase and empty the images table like:
[lua]for i = #imagesTable, 1, -1 do
local child = table.remove(imagesTable, i)
if child ~= nil then
child:removeSelf()
child = nil
end
end[/lua]

Regards.
Francisco.
[import]uid: 11749 topic_id: 7303 reply_id: 25670[/import]