# clearTimeout syntax help

**URL:** https://forum.kirupa.com/t/cleartimeout-syntax-help/196356
**Category:** flash
**Created:** [August 7, 2006, 9:33pm UTC](https://forum.kirupa.com/t/cleartimeout-syntax-help/196356 "2006-08-07T21:33:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mikedkap](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@mikedkap](https://forum.kirupa.com/u/mikedkap)
#### Post date: [August 7, 2006, 9:33pm UTC](https://forum.kirupa.com/t/cleartimeout-syntax-help/196356/1 "2006-08-07T21:33:13Z")

</div>

Can anyone help me get this right? I want to clear the Timeout set with the first function if this certain button is pressed. This is basically what I have so far, but it isn’t working - thanks!!

```
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#808080]*//set the Timeout*[/COLOR]

```

setTimeout[COLOR=#000000]([/COLOR][COLOR=#000000] **function** [/COLOR] COLOR=#000000[/COLOR]:[COLOR=#0000FF]Void[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#808080]_//load movie_[/COLOR]  
lifestyle\_mc.[COLOR=#0000FF]loadMovie[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR], [COLOR=#000080]7300[/COLOR][COLOR=#000000])[/COLOR];  
[COLOR=#808080]_//_[/COLOR]  
[COLOR=#808080]_//clear timeout button_[/COLOR]  
[COLOR=#808080]_//_[/COLOR]  
recreation\_nav.[COLOR=#0000FF]onPress[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
clearTimeoutCOLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR];  
[/LEFT]  
[/FONT]
