# Movie Clip as Button Conditional Question

**URL:** <https://forum.kirupa.com/t/movie-clip-as-button-conditional-question/220138>\
**Category:** flash\
**Created:** [March 23, 2007, 2:15am UTC](https://forum.kirupa.com/t/movie-clip-as-button-conditional-question/220138 "2007-03-23T02:15:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![digitalberet](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@digitalberet](https://forum.kirupa.com/u/digitalberet)\
**Post date:** [March 23, 2007, 2:15am UTC](https://forum.kirupa.com/t/movie-clip-as-button-conditional-question/220138/1 "2007-03-23T02:15:40Z")

</div>

Hey everyone,

I was wondering if there was a way to make a movie clip act as a button only when certain criteria was met and then turn back into a regular clip when they are not. I have a gallery that has a zoom-in and zoom-out button. I have the clip dragable when you zoom in, but when you zoom out it is still draggable. Any ideas? Thanks in advance

-JD-

```auto
if(picture._xscale>=100){
  picture.onPress = function() {
  this.startDrag();
 }
 picture.onRelease = function() {
  this.stopDrag();
 }
 }

```
