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

How to convert a cursor into painting brush?

New Here ,
Nov 26, 2015 Nov 26, 2015

I need brush tool while playing the flash .swf file. I need to know how to convert the mouse cursor into brush tool.

TOPICS
ActionScript
631
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
Enthusiast ,
Nov 26, 2015 Nov 26, 2015

Craete the new cursor movie clip or sprite and add it to the stage.

Use the following code to change the cursor in runtime:

Mouse.hide();

cursor_mc.visible = true; // if it's invisible.

cursor_mc.startDrag(true);

To reset the default cursor:

cursor_mc.stopDrag();

cursor_mc.visible = false;

Mouse.show();

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
New Here ,
Nov 27, 2015 Nov 27, 2015

It is not working. It just makes cursor disappear. I want brush tool instead of cursor.

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 ,
Nov 27, 2015 Nov 27, 2015
LATEST

does your brush tool have an instance name of cursor_mc?

if not, fix that.

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