I'm trying to do some complex, smoothly-transitioning animation. I have a "running" animation, an "idle" animation, and a transitional "runningToIdle" animation. I had to make it so the animatedSprite would only start playing "runningToIdle" when "running" was on its final frame. That is unless of course the character was in the process of running, in which case "running" needed to loop.
EDIT: Just to clarify, I was able to get this to work fine with the code I posted above