The first thing were going to do is define what happens when the brush tool is clicked. Mainly we just want Flash to know that the brush tool is now active - so that when it checks for certain conditions when the mouse is pressed, moved, or released, it knows how to behave. Were again using that variable _root.isactive for this; last time we set the value to null/nothing, but this time we want to give it an actual value:
on (release) {
_root.isactive = brush;
}


