# Timer and variable rate

**URL:** https://forum.kirupa.com/t/timer-and-variable-rate/256508
**Category:** flash
**Created:** [April 3, 2008, 6:01pm UTC](https://forum.kirupa.com/t/timer-and-variable-rate/256508 "2008-04-03T18:01:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tpann](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tpann](https://forum.kirupa.com/u/tpann)
#### Post date: [April 3, 2008, 6:01pm UTC](https://forum.kirupa.com/t/timer-and-variable-rate/256508/1 "2008-04-03T18:01:36Z")

</div>

Haven’t found this by searching…

I have a simple class that puts a fan on the stage, and when I click a button, the button starts a timer and the fan begins to rotate.

I would like to use a slider rather than a button to activate the fan, and what’s more, I would like the fan to rotate faster or slower depending on the position I choose on the slider.

Any insights into how to do this? I believe it involves changing the delay, but I don’t know how to do that.

Thanks,  
Tim
