# Button inside of a button

**URL:** https://forum.kirupa.com/t/button-inside-of-a-button/253322
**Category:** Uncategorized
**Created:** [February 29, 2008, 3:02am UTC](https://forum.kirupa.com/t/button-inside-of-a-button/253322 "2008-02-29T03:02:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)
#### Post date: [February 29, 2008, 3:02am UTC](https://forum.kirupa.com/t/button-inside-of-a-button/253322/1 "2008-02-29T03:02:48Z")

</div>

if you check out

[http://ronnieswietek.com/hosted/circasurvive/](http://ronnieswietek.com/hosted/circasurvive/)

you can see that scrolling list I have. My problem is, I need the user to be able to click the “send to phone” button, but since I have RollOver and release links on the list, it wont allow me to select the send to phone button. Here is my AS…its loading the text from XML

```auto

    for (var i = 0; i < fileLength; i++) {
        var node = xml.firstChild.childNodes[2].childNodes*.attributes;
        var title:String = node.title;
        var keyID:String = node.keyID;
        var keyName:String = node.keyName;
        var fileID:String = node.fileID;
        titleAR.push(title);
        keyIDAR.push(keyID);
        keyNameAR.push(keyName);
        fileIDAR.push(fileID);
        bttnHeight = 22;
        menu.content_mc.image_mc.duplicateMovieClip("image_mc" + i,i);
        menu.content_mc["image_mc" + i].id = i;
        menu.content_mc["image_mc" + i]._y = (bttnHeight + 1) * i;
        menu.content_mc["image_mc" + i].txt.autoSize = true;
        menu.content_mc["image_mc" + i].txt.text = title;
        var mc = menu.content_mc["image_mc" + i].txt;
        menu.content_mc["image_mc" + i].price_txt._x = mc._x + mc._width + 20;
        menu.content_mc["image_mc" + i].onRelease = function() {
            loadSong(this.id);
        };
        menu.content_mc["image_mc" + i].onRollOver = function() {
            this.bar.colorTo(0xffffff,0,"easeOutExpo");
            this.txt.colorTo(0x1A1A1A,0,"easeOutExpo");
            this.price_txt.colorTo(0x1A1A1A,0,"easeOutExpo");
        };
        menu.content_mc["image_mc" + i].onRollOut = function() {
            this.bar.colorTo(0x1A1A1A,0.5,"easeOutExpo");
            this.txt.colorTo(0xffffff,0.5,"easeOutExpo");
            this.price_txt.colorTo(0xffffff,0.5,"easeOutExpo");
        };
        menu.content_mc["image_mc" + i].sendToPhone.onRelease = function() {
            trace("HI");
        };
        menu.content_mc["image_mc" + i].sendToPhone.onRollOver = function() {
            this.txt.colorTo(0xffffff,0.5,"easeOutExpo");
        };
        menu.content_mc["image_mc" + i].sendToPhone.onRollOut = function() {
            this.txt.colorTo(0x000000,0.5,"easeOutExpo");
        };
    }

```

any ideas?
