did you add Platform simulate moving left or right?
Also you could add instance variables to your Player object so when the action is being executed you can set the boolean to True and trigger your animation.
if you need more help, dont hesitate to post your capx file.