this.yourSpineObject.state.addListener({
event: function (entry, event) {
// handle event
}
}, this);
this.yourSpineObject.state.addListener({
event: function (entry, event) {
// handle event
}
}, this);