# Changing a variable after a certain time

**URL:** <https://forum.kirupa.com/t/changing-a-variable-after-a-certain-time/189692>\
**Category:** flash\
**Created:** [June 5, 2006, 12:03pm UTC](https://forum.kirupa.com/t/changing-a-variable-after-a-certain-time/189692 "2006-06-05T12:03:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimjiminyjimjim](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jimjiminyjimjim](https://forum.kirupa.com/u/jimjiminyjimjim)\
**Post date:** [June 5, 2006, 12:03pm UTC](https://forum.kirupa.com/t/changing-a-variable-after-a-certain-time/189692/1 "2006-06-05T12:03:36Z")

</div>

I would like to have a button that when clicked changes a variable for 30 seconds and then changes it back. For example:

Variable = false;  
Button clicked, variable = true;  
30 secs passes and variable = false;
