Copy link to clipboard
Copied
I want a hand pointer when pointing to a circle and an arrow outside a circle. The circle is a MovieClip. How do I do this?
If your circle movieclip has an instance name of circlemc, the code would look like this:
stage.enableMouseOver(10);
this.circlemc.on("mouseover",function(e){ this.cursor = "pointer"; });
Copy link to clipboard
Copied
I forgot that it should be HTML5 canvas and CreateJS javascript.
Copy link to clipboard
Copied
Set the cursor property on the movieclip.
https://www.createjs.com/docs/easeljs/classes/DisplayObject.html#property_cursor
https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
Copy link to clipboard
Copied
Can show me that with code.
Copy link to clipboard
Copied
If you set your movieclip property to button in the instance panel (not the library) you will have the hand (pointer) but it will still behave as a movieclip. You can also use it as a button of course.
Copy link to clipboard
Copied
If your circle movieclip has an instance name of circlemc, the code would look like this:
stage.enableMouseOver(10);
this.circlemc.on("mouseover",function(e){ this.cursor = "pointer"; });