Page 1 of 1

Something simple

Posted: Sun Jul 22, 2007 10:18 pm
by dalkin
If anyone has the time:

Create new stack, put one button and one image area.

To the button, attach:

on mouseDown
choose eraser tool
end mouse Down

This doesn't return the eraser in my case and I'm wondering whether it's a Mac thing, a Rev thing, or whether my computer is developing the ability to inflict pain.

Posted: Sun Jul 22, 2007 11:59 pm
by Mark
Dear dalkin,

You are right. Only after using the eraser tool once, I can use the choose command to activate the eraser tool by script.

The RunRev team encountered this bug too. They decided to work around it by adding the following line in the tools palette:

...set the eraser to the eraser

So, your script should be:

Code: Select all

on mouseDown
  choose eraser tool
  set the eraser to the eraser
end mouseDown
Best regards,

Mark

Posted: Mon Jul 23, 2007 12:02 am
by dalkin
Right on the money, Mark. Thanks.