Skip to main content
frankwinter
Participant
July 18, 2017
Answered

TextLine could not disable mouse events

  • July 18, 2017
  • 1 reply
  • 222 views

I create a FTE's TextLine object, and set mouseChildren and mouseEnabled  false, but it is still clickenabled!

and how can I disable mouse enabled on TextLine object?

This topic has been closed for replies.
Correct answer frankwinter

TextLine has this problem, so if you want to textline disable mouse events, you could insert textline into a sprite object, and set the sprite's mouseChildren is false

var container:Sprite = new Sprite();

container.addChild(textline);

container.mouseChildren = container.mouseEnabled = false;

1 reply

frankwinter
frankwinterAuthorCorrect answer
Participant
July 21, 2017

TextLine has this problem, so if you want to textline disable mouse events, you could insert textline into a sprite object, and set the sprite's mouseChildren is false

var container:Sprite = new Sprite();

container.addChild(textline);

container.mouseChildren = container.mouseEnabled = false;