How do you listen for custom Spine generated events?

this.yourSpineObject.state.addListener({

    event: function (entry, event) {

        // handle event

    }

}, this);