I read somewhere that I should return objects at the end of functions, and return true after listeners. So I have implemented these statements but what to they actually do? Are they necessary?
thanks.
----------------------------------- FUNCTION: myListener ----------------------------------- myListener = function ( event ) if ( event.phase == "began" ) then .... elseif ( event.phase == "ended" ) then ... end return true end ----------------------------------- -- 12 FUNCTION: displayMainMenu ----------------------------------- displayMainMenu = function() menuGroup = display.newGroup() local mytextObject = display.newText(menuGroup, "some text here" , 100, 100, FONT\_NAME, MENU\_FONT\_SIZE) ... [add a bunch more objects to menuGroup] return menuGroup end