# On(press)(ure!)

**URL:** <https://forum.kirupa.com/t/on-press-ure/50554>\
**Category:** Uncategorized\
**Created:** [May 4, 2004, 11:54am UTC](https://forum.kirupa.com/t/on-press-ure/50554 "2004-05-04T11:54:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darrengeraghty](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@darrengeraghty](https://forum.kirupa.com/u/darrengeraghty)\
**Post date:** [May 4, 2004, 11:54am UTC](https://forum.kirupa.com/t/on-press-ure/50554/1 "2004-05-04T11:54:48Z")

</div>

Hey Everyone;  
Im trying to limit a button with a variable if clicked once at a time its fine but if the mouse is held down it passes the set limit until the mouse is released!  
ie. it zooms in w/o stopping.  
Im controlling the zooming clip with buttons but I want the on(press) to only  
click once at a time and not zoom constantly once mouse is held down.  
Anyone know of a work around??

```auto

on(press) {
	if (zoomMC.tzoom <= 140){
	zoomMC.tzoomc=0;
	}
	else{
	zoomMC.tzoomc=-2;
	}
	
}

on (release, releaseOutside) {
	_level0.host.zoomMC.tzoomc=0;
}

```

Any help mucho appreciated… 😏  
Darren
