stateData.setMix("jump", "run", 0.2f);
stateData.setMix("jump", "jump", 0);
state = new AnimationState(stateData); // Holds the animation state for a skeleton (current animation, time, etc).
state.setTimeScale(0.3f); // Slow all animations down to 30% speed.
state.addListener(new AnimationStateListener() {
public void event (int trackIndex, Event event) {
System.out.println(trackIndex + " event: " + state.getCurrent(trackIndex) + ", " + event.getData().getName() + ", "
+ event.getInt());
}