How to pass mouse clicks through TLF text?
-
04-03-2021 - |
Question
The .mouseEnabled
doesn't work like it does on usual MovieClips. What's up?
Solution
Try setting selectable
, mouseEnabled
, mouseChildren
, and for giggles mouseWheelEnabled
all to false
OTHER TIPS
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow