Why developers have flat foreheads
Posted: Fri Jul 20, 2007 5:13 am
Banging their heads on the desk when something simple doesn't work in my case. I have 2 buttons on a stack and 1 rectangular image, filled white. The aim is to provide a user with a simple pencil drawing tool and an eraser.
Pencil button:
on mouseDown
choose pencil tool
end mouseDown
on the eraser button:
on mouseDown
choose eraser tool
end mouseDown
on image:
on mouseLeave
choose browse tool
end mouseLeave
The first issue is that when I select 'run' mode and click the 'Pencil' button, the pencil appears but the browse/edit tools are then both deselected. In that mode, I can draw on the image with the pencil but I can't select the eraser because the "on mouseLeave/choose browse tool" isn't working. Has anyone got the time to duplicate this or otherwise offer advice?
Issue 2: if I change the script of the first button to "choose brush tool" it simply doesn't work.
Issue 3: if I select "edit" mode, the script of the rectangle "on mouse leave/choose browse tool ... " continues to run, switching the environment from "edit" to "browse".
(Bang ... bang ... bang ...)
Pencil button:
on mouseDown
choose pencil tool
end mouseDown
on the eraser button:
on mouseDown
choose eraser tool
end mouseDown
on image:
on mouseLeave
choose browse tool
end mouseLeave
The first issue is that when I select 'run' mode and click the 'Pencil' button, the pencil appears but the browse/edit tools are then both deselected. In that mode, I can draw on the image with the pencil but I can't select the eraser because the "on mouseLeave/choose browse tool" isn't working. Has anyone got the time to duplicate this or otherwise offer advice?
Issue 2: if I change the script of the first button to "choose brush tool" it simply doesn't work.
Issue 3: if I select "edit" mode, the script of the rectangle "on mouse leave/choose browse tool ... " continues to run, switching the environment from "edit" to "browse".
(Bang ... bang ... bang ...)