# Check if button has been pressed

**URL:** <https://forum.kirupa.com/t/check-if-button-has-been-pressed/135401>\
**Category:** Uncategorized\
**Created:** [January 27, 2005, 2:46am UTC](https://forum.kirupa.com/t/check-if-button-has-been-pressed/135401 "2005-01-27T02:46:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ellare](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@ellare](https://forum.kirupa.com/u/ellare)\
**Post date:** [January 27, 2005, 2:46am UTC](https://forum.kirupa.com/t/check-if-button-has-been-pressed/135401/1 "2005-01-27T02:46:52Z")

</div>

how would i write a frame script to check if a button has been pressed ?

i tried this and it doesnt work

var release = true // pressed  
if (rwnd\_btn=release)  
{movieHolder\_mc.gotoAndPlay(movieHolder\_mc.\_currentframe);}

i know its gotta be in my var release = true

**how do i tell it that ‘true’ really means pressed ?**
