Advertisement
lavalevel

stuck trying to clearLayout

Nov 2nd, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. local function removeElements(_elementGroup)
  2.     print ("_elementGroup")
  3.     atrace (_elementGroup)
  4.     local i = _elementGroup.numChildren
  5.     while i > 0 do
  6.         _elementGroup[i]:removeSelf()
  7.         i = i - 1
  8.         print ('removing stuff')
  9.     end
  10.     _elementGroup:removeSelf()
  11. end
  12.  
  13. local function clearLayout()
  14.  
  15.     print ("I am here doing nothing")
  16.  
  17.     atrace (groups['TextAnnouncement2'])
  18.     --removeElements(groups['TextAnnouncement2'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement