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

How to change the shape of the cursor in javaScript (HTML5) ?

Community Beginner ,
Oct 12, 2020 Oct 12, 2020

Hello,
I would like to use the buttonMode function on a movie clip.
In actionScript it works fine, but in javaSript (HTML5) it does not.
How to change the shape of the cursor when hovering over a movieclip?
Thank you

165
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 12, 2020 Oct 12, 2020
LATEST

Hi.

 

You're gonna need to add a mouseover or rollover event to the Movie Clip instance and then change the cursor property to "pointer". In both cases you're gonna need to enable mouse over and roll over events like this:

stage.enableMouseOver();

 

Or you can place an invisible button inside of your Movie Clip instance if you don't want to deal with events for such a simple task.

 

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