Stopping Programattic Movement

I was wondering if there was a script or something to stop left over animations from actionscript from playing in the following frames. Thanks