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

Hand pointer

Participant ,
Nov 11, 2019 Nov 11, 2019

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?

TOPICS
Code , How to
2.1K
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

correct answers 1 Correct answer

Explorer , Nov 12, 2019 Nov 12, 2019

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"; });

 

Translate
Participant ,
Nov 11, 2019 Nov 11, 2019

I forgot that it should be HTML5 canvas and CreateJS javascript.

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 ,
Nov 11, 2019 Nov 11, 2019
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 ,
Nov 11, 2019 Nov 11, 2019

Can show me that with code.

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 ,
Nov 11, 2019 Nov 11, 2019

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.

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
Explorer ,
Nov 12, 2019 Nov 12, 2019
LATEST

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"; });

 

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