# Play/Pause Button

**URL:** <https://forum.kirupa.com/t/play-pause-button/277628>\
**Category:** flash\
**Created:** [December 15, 2008, 4:27am UTC](https://forum.kirupa.com/t/play-pause-button/277628 "2008-12-15T04:27:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![para\_chan](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@para\_chan](https://forum.kirupa.com/u/para_chan)\
**Post date:** [December 15, 2008, 4:27am UTC](https://forum.kirupa.com/t/play-pause-button/277628/1 "2008-12-15T04:27:28Z")

</div>

I need to create a play/pause button that plays the timeline when clicked, then when clicked again, pauses the timeline. I’ve tried using a boolean variable to no success as well as an interger. (If var==5, then)

I’ve googled it and can’t find anything for AS3.  
Thanks!
