0
How to change the shape of the cursor in javaScript (HTML5) ?
Community Beginner
,
/t5/animate-discussions/how-to-change-the-shape-of-the-cursor-in-javascript-html5/td-p/11500630
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/animate-discussions/how-to-change-the-shape-of-the-cursor-in-javascript-html5/m-p/11500809#M336108
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

