# Why does this open 5 windows?

**URL:** <https://forum.kirupa.com/t/why-does-this-open-5-windows/198832>\
**Category:** Uncategorized\
**Created:** [August 29, 2006, 12:05am UTC](https://forum.kirupa.com/t/why-does-this-open-5-windows/198832 "2006-08-29T00:05:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CraniumDesigns](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/craniumdesigns/32/2523_2.png) [@CraniumDesigns](https://forum.kirupa.com/u/CraniumDesigns)\
**Post date:** [August 29, 2006, 12:05am UTC](https://forum.kirupa.com/t/why-does-this-open-5-windows/198832/1 "2006-08-29T00:05:43Z")

</div>

```auto
bSendMsg.onRollOver = function() {
    this.gotoAndPlay(2);
};
bSendMsg.onRollOut = function() {
    this.gotoAndPlay(11);
};
bSendMsg.onMouseDown = function() {
    getURL("http://messaging.myspace.com/index.cfm?fuseaction=mail.message&friendID=101920599&MyToken=40f64079-8647-4f07-a843-d3d8d69dc89b");
};
bAddFriend.onRollOver = function() {
    this.gotoAndPlay(2);
};
bAddFriend.onRollOut = function() {
    this.gotoAndPlay(11);
};
bAddFriend.onMouseDown = function() {
    getURL("http://collect.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&friendID=101920599");
};
bPostComment.onRollOver = function() {
    this.gotoAndPlay(2);
};
bPostComment.onRollOut = function() {
    this.gotoAndPlay(11);
};
bPostComment.onMouseDown = function() {
    getURL("http://comments.myspace.com/index.cfm?fuseaction=user&circuitaction=viewProfile_commentForm&friendID=101920599&name=Alibris&MyToken=40f64079-8647-4f07-a843-d3d8d69dc89b");
};
bReferFriend.onRollOver = function() {
    this.gotoAndPlay(2);
};
bReferFriend.onRollOut = function() {
    this.gotoAndPlay(11);
};
bReferFriend.onMouseDown = function() {
    getURL("http://mail.myspace.com/index.cfm?fuseaction=mail.forward&friendID=101920599&f=forwardprofile");
};
bAddFave.onRollOver = function() {
    this.gotoAndPlay(2);
};
bAddFave.onRollOut = function() {
    this.gotoAndPlay(11);
};
bAddFave.onMouseDown = function() {
    getURL("http://collect.myspace.com/index.cfm?fuseaction=user.addToFavorite&friendID=101920599&public=0");
};

```

this opens 5 windows. is it because all the functions are named the same? how can i fix this?
