Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Does removing a Sprite remove any event listeners attached to it? — Gideros Forum

Does removing a Sprite remove any event listeners attached to it?

amaximovamaximov Member
edited April 2013 in General questions
Say I have
 local mySprite = Sprite.new()
stage:addChild(mySprite)
mySprite:addEventListener(Event.ENTER_FRAME, someFunction)
stage:removeChild(mySprite)
mySprite = nil
Is it safe to do this or do I need to manually remove event listeners from a sprite or event dispatcher?

Comments

Sign In or Register to comment.