Adding functions to display objects that can access self

I have a group that I've attached an update() function to. The function is meant to resize all the elements within the group:

1
2
3
4
local map = display.newGroup()
map.update = function(scale)
  -- scale all children
end
views:1368 update:2011/11/19 17:31:56
corona forums © 2003-2011