# onMouseDown problems

**URL:** <https://forum.kirupa.com/t/onmousedown-problems/162756>\
**Category:** flash\
**Created:** [September 16, 2005, 12:20am UTC](https://forum.kirupa.com/t/onmousedown-problems/162756 "2005-09-16T00:20:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saveth](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@saveth](https://forum.kirupa.com/u/saveth)\
**Post date:** [September 16, 2005, 12:20am UTC](https://forum.kirupa.com/t/onmousedown-problems/162756/1 "2005-09-16T00:20:07Z")

</div>

ok,

my stage has two buttons on it named button1\_mc and button2\_mc with there identifier name set accordingly.

I have the actionscript

```auto
button1_mc.onMouseDown = function() {
getURL ("http://www.google.com", "_self")
};

button2_mc.onMouseDown = function() {
getURL ("http://www.newegg.com", "_self")
};

```

in my actions layer

the problem that is occuring is that clicking on each button ends up with a random opening of newegg or google. I can click button1 and sometimes it will open newegg and vice-versa.

I have also tried applying the correct code to the individual mc’s with onClipEvent.onMouseDown and the same thing occurs

any help would be appreciated.

Thanks,  
Saveth
