# Need help with clicking a movieclip

**URL:** https://forum.kirupa.com/t/need-help-with-clicking-a-movieclip/133427
**Category:** Uncategorized
**Created:** [January 8, 2005, 11:28am UTC](https://forum.kirupa.com/t/need-help-with-clicking-a-movieclip/133427 "2005-01-08T11:28:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sammo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sammo/32/779_2.png) [@Sammo](https://forum.kirupa.com/u/Sammo)
#### Post date: [January 8, 2005, 11:28am UTC](https://forum.kirupa.com/t/need-help-with-clicking-a-movieclip/133427/1 "2005-01-08T11:28:45Z")

</div>

I am building a game that has a power bar and an angle meter. Both, the user sets.  
The power bar works fine (so does the angle meter) except for the fact that it moves whereever the mouse is clicked.

with this code:

```auto
onClipEvent (load) {
     _x = 500;
     _y = 250;
     scrollerClicked = false;
 }
 onClipEvent (mouseDown) {
     scrollerClicked = true;
 }
 onClipEvent (mouseUp) {
     scrollerClicked = false;
 }
 onClipEvent (enterFrame) {
     if (scrollerClicked) {
         endY = _root._ymouse;
         _y += endY-_y;
         if (_y < 160) {
             _y = 160;
         } else if (_y > 340) {
             _y = 340;
         }
     }
 }

```

Is there a way to make the scrollerClicked variable only true when the actual movieclip is clicked, not anywhere on the stage?
