When using a display group I want to create some objects in a function on the fly like for example:
myGroup=display.newGroup() makeobj = function() local obj=display.newImage(...) myGroup:insert(obj) obj=nil end
Is this okay when I call later at scene change:
display.remove(myGroup) myGroup=nil
will the object generated inside the function then completely removed from memory?