# On mouseDown problem

**URL:** <https://forum.kirupa.com/t/on-mousedown-problem/190381>\
**Category:** Uncategorized\
**Created:** [June 11, 2006, 7:41am UTC](https://forum.kirupa.com/t/on-mousedown-problem/190381 "2006-06-11T07:41:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr\_vai](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@mr\_vai](https://forum.kirupa.com/u/mr_vai)\
**Post date:** [June 11, 2006, 7:41am UTC](https://forum.kirupa.com/t/on-mousedown-problem/190381/1 "2006-06-11T07:41:00Z")

</div>

hello all!,  
i have a main movie clip with this code:

```auto
onClipEvent (enterFrame) {
    this.onRollOver = function() {
        gotoAndPlay("Over");
        _root.BTN_Over_Sound.start();
    };
    this.onRollOut = function() {
        gotoAndPlay("Out");
    };
    this.onPress = function() {
        _root.BTN_Click_Sound.start();
    };
}

```

inside that mc i have 9 buttons they are also movie clips with the following code:

```auto
onClipEvent (load) {
    var pressed = !true;
}
onClipEvent (enterFrame) {
    var Mousex = _root._xmouse;
    var Mousey = _root._ymouse;
    if (this.hitTest(Mousex, Mousey) && pressed == !true) {
        _root.BTN_Over_Sound.start();
        pressed = true;
    }
    if (!this.hitTest(Mousex, Mousey) && pressed == true) {
        pressed = !true;
    }
}
on (release) {
    getURL("http://www.google.com");
}

```

and for somr reason the getURL part is not working…:diss:  
i’ve tried to do it with a function but when using a function all the buttons  
are being activated instead of just the one i clicked  
im using flash 8 maybe someone could help out here?  
thanks a lot for looking guys…:nerd:
