Hi
Would someone please confirm for me that my code is clean, i.e. that it’s cleaning up after itself?
I created a display group, then a text object. I added the text object to a display group, added an event listener and then applied a transition to it. Then later I removed the group, hopefully removing everything in one sweep.
myGroup=display.newGroup() local myText = display.newText(myGroup,"welcome" , 100,100, FONT\_NAME, 80 ) myText:addEventListener("touch",myListener) myText.transitionfrom = transition.from( myText, { time=1000, delay=0, alpha=0}) myText.transitionto = transition.to( myText, { time=1000, delay=4000, alpha=0} ) ... myGroup:removeSelf()
thanks,
David