2

The .mouseEnabled doesn't work like it does on usual MovieClips. What's up?

nicks
  • 2,161
  • 8
  • 49
  • 101

2 Answers2

3

Try setting selectable, mouseEnabled, mouseChildren, and for giggles mouseWheelEnabled all to false

divillysausages
  • 7,883
  • 3
  • 25
  • 39
  • Thanks a lot! this problem has been plaguing me all day! I've found that you need both mouseEnabled, and mouseChildren. Enabled only seems to disable mouse interaction with the text while children affects the whole hitbox around the text, but not the text itself. – CuddleBunny May 16 '12 at 21:12
2

Use

 text_field.mouseEnabled = false;
 text_field.mouseChildren = false;

mouseChildren means it's children don't register mouse events, they just dispatch from the parent. To completely disable it, BOTH need to be false.

Since the textfield is a child of the movie clip, the mouseChildren property is what is going to affect it, and you could just set that to false and it would still work.

Swati Singh
  • 1,863
  • 3
  • 19
  • 40