var i:Number = 0;
onMouseDown = function () {
this.onEnterFrame = function() {
i++;
var b:MovieClip = this.attachMovie(“brush”, “brush”+i, this.getNextHighestDepth());
b._x = this._xmouse;
b._y = this._ymouse;
b._rotation = Math.floor(Math.random()*360);
b._xscale = b._yscale=Math.floor(Math.random()*40)+30;
b._alpha = Math.floor(Math.random()*40)+40;
};
};
onMouseUp = function () {
delete this.onEnterFrame;
};
This function basically attaches a movie clip from the library onto the mouse cursor when you drag. But how can I turn it off? And how can I remove the drawings it creates if I want to ‘clear’ everything?
This function is in a movieclip called ‘we’ on the root timeline.
Thanks.