# Help needed with simple animation

**URL:** <https://forum.kirupa.com/t/help-needed-with-simple-animation/328189>\
**Category:** flash\
**Created:** [April 25, 2012, 10:23am UTC](https://forum.kirupa.com/t/help-needed-with-simple-animation/328189 "2012-04-25T10:23:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_G](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@David\_G](https://forum.kirupa.com/u/David_G)\
**Post date:** [April 25, 2012, 10:23am UTC](https://forum.kirupa.com/t/help-needed-with-simple-animation/328189/1 "2012-04-25T10:23:43Z")

</div>

Hi, can someone help me out with the button script for this simple animation?

The functionality I’m after:

- play button: click once to start animation. Once it’s played through I’d like the car to stop on the last frame so we can see where it’s ended up.
- pause button: click to pause animation (play button will resume animation)
- forward button: hold down to fastforward animation, release to pause on current frame, prevent from looping back to start after reaching final frame.
- back button: hold down to rewind animation, release to pause on current frame

As you can see I’m sort of half way there but struggling with the rest.
