# Clicking on a sprite with a textfield child

**URL:** <https://forum.kirupa.com/t/clicking-on-a-sprite-with-a-textfield-child/266353>\
**Category:** Uncategorized\
**Created:** [July 18, 2008, 7:14pm UTC](https://forum.kirupa.com/t/clicking-on-a-sprite-with-a-textfield-child/266353 "2008-07-18T19:14:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [July 18, 2008, 7:14pm UTC](https://forum.kirupa.com/t/clicking-on-a-sprite-with-a-textfield-child/266353/1 "2008-07-18T19:14:16Z")

</div>

Hello kirupers!!! 🙂

I’ve been out of as3 for a few weeks but when I start coding again, I start coming back again to the forum 😃

I have a movieclip in the library (menu\_button) which only consists of a textfield. This is an item of a dynamic menu I build by adding new instances of the menu\_button class.

It seems that when I click in the movieclip, it’s the textfield that fires the mouse event, instead of the movieclip which contains the textfield.

Whe I do trace(event.target.type) I get “dynamic” (for dynamic textfield I supose…)

Another problem I have is that when I do menu\_button.buttonMode= true I don’t get that gloved hand we all love…

this should be simple… Am I missing something important?

TIA!

Pier
