# Textfield within MC interferes with buttonMode

**URL:** <https://forum.kirupa.com/t/textfield-within-mc-interferes-with-buttonmode/268146>\
**Category:** flash\
**Created:** [August 10, 2008, 9:49pm UTC](https://forum.kirupa.com/t/textfield-within-mc-interferes-with-buttonmode/268146 "2008-08-10T21:49:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Post date:** [August 10, 2008, 9:49pm UTC](https://forum.kirupa.com/t/textfield-within-mc-interferes-with-buttonmode/268146/1 "2008-08-10T21:49:32Z")

</div>

Scenario: a Movieclip used as a button contains the background graphic on the bottom layer and a dynamic textfield on the top layer. The AS 3 code used for this MC uses buttonMode to enable the cursor, but the textfield (gameButton.label) is interfering with this. Anyone know why?

```auto

        public function showGameButton(buttonLabel:String) {
            gameButton = new GameButton();
            gameButton.label.text = buttonLabel;
            gameButton.x = 220;
            gameButton.y = 300;
            gameButton.buttonMode = true;
            gameButton.useHandCursor = true;
            gameSprite.addChild(gameButton);
            gameButton.addEventListener(MouseEvent.CLICK,pressedGameButton);
        }

```
