Skip to main content
Participant
August 27, 2018
Answered

Movie clip symbol button

  • August 27, 2018
  • 2 replies
  • 285 views

I have created  a rectangle and made it into a movie clip symbol with text on it.  I want to use it as a button.  The problem is when I test my movie and I click on the rectangle and the button only activates when I click outside the text.  If I try to click where the text is to activate the button it doesn't work.  The cursor changes and all you can do is highlight the text.  Is there a way to create a movie clip symbol with text that the entire symbol is clickable?  I know I can do it can be done with the button symbol but I wanted to use a movie clip symbol.

This topic has been closed for replies.
Correct answer JoãoCésar17023019

Hi.

Please take a look at the picture. It's located in the last row from the Character section.

About the code to disable mouse interaction for the children, you have to first give a name to the Movie Clip instance in the Properties panel. Then you must open up the Actions panel (F9) and write something like yourButtonName.mouseChildren = false.

Like this:

Hopefully this shed some light.

Thanks,

JC

2 replies

Participant
August 27, 2018

HI thanks for the reply.  I looked in the properties panel and I don't see the choice to make the text not selectable.  As for the second option my ActionScript code does not have mouseChildren property in it.

Thanks

Jennipher

JoãoCésar17023019
Community Expert
JoãoCésar17023019Community ExpertCorrect answer
Community Expert
August 27, 2018

Hi.

Please take a look at the picture. It's located in the last row from the Character section.

About the code to disable mouse interaction for the children, you have to first give a name to the Movie Clip instance in the Properties panel. Then you must open up the Actions panel (F9) and write something like yourButtonName.mouseChildren = false.

Like this:

Hopefully this shed some light.

Thanks,

JC

JoãoCésar17023019
Community Expert
Community Expert
August 27, 2018

Hi.

There two main options:

- Select the text field inside of your button, go to the Properties panel and set the text to not be selectable;

- Set the mouseChidren property to false. E.g.: yourButton.mouseChildren = false.

Regards,

JC