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

Mouseover in Javascript

Participant ,
Oct 10, 2017 Oct 10, 2017

Good Afternoon,

I created a button in Adobe Animate CC. I want to display a circle when I mouse over the button. How do I do that with Javascript in Adobe Animate?

Thank you

274
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 ,
Oct 10, 2017 Oct 10, 2017

use stage.enableMouseOver() and add a 'mouseover' listener to your button.

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
LEGEND ,
Oct 10, 2017 Oct 10, 2017

Another approach is to go into the button and make the Over frame have the circle in it. The Hit frame can be just the shape of the basic button, so that when you move outside of that area the circle would go away.

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
Participant ,
Oct 11, 2017 Oct 11, 2017
LATEST

Thank you this seemed to work

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