Skip to main content
khateebkhan
Participating Frequently
November 27, 2015
Question

How to convert a cursor into painting brush?

  • November 27, 2015
  • 1 reply
  • 668 views

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

This topic has been closed for replies.

1 reply

Inspiring
November 27, 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();

khateebkhan
Participating Frequently
November 27, 2015

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

kglad
Community Expert
November 27, 2015

does your brush tool have an instance name of cursor_mc?

if not, fix that.