skeleton:eject()

Type: function

Overview:


Removes any previously injected display object from the skeleton. After ejection, the slot is inserted into the stage group and the listener is no longer invoked.

Syntax:


skeleton:eject(object)

Example:


-- Inject an object
hero:inject(myHatObject, "head", onUpdateHat)
...
-- Later, remove that object
hero:eject(myHatObject)