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

New Here ,
Oct 12, 2020 Oct 12, 2020

Copy link to clipboard

Copied

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

Views

45

Likes

translate

Translate

Translate

Report

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
Adobe Community Professional ,
Oct 12, 2020 Oct 12, 2020

Copy link to clipboard

Copied

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

Likes

translate

Translate

Translate

Report

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