Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Movie clip symbol button

New Here ,
Aug 26, 2018 Aug 26, 2018

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.

253
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 27, 2018 Aug 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

Translate
Community Expert ,
Aug 27, 2018 Aug 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 27, 2018 Aug 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 27, 2018 Aug 27, 2018
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines