Copy link to clipboard
Copied
I need brush tool while playing the flash .swf file. I need to know how to convert the mouse cursor into brush tool.
Copy link to clipboard
Copied
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();
Copy link to clipboard
Copied
It is not working. It just makes cursor disappear. I want brush tool instead of cursor.
Copy link to clipboard
Copied
does your brush tool have an instance name of cursor_mc?
if not, fix that.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now