Questo cod per disegnare con il mouse...

this.isDrawing = false; // flag che indica se attiva la funzione disegno
this.createEmptyMovieClip("disegno", this.getNextHighestDepth());
var tracciaMouse:Object = new Object();
se il pulsante sx del mouse è premuto
tracciaMouse.onMouseDown = function () {
if (!this.isDrawing) {
this.isDrawing = true;
//this.createEmptyMovieClip("disegno", this.getNextHighestDepth());
disegno.lineStyle(2, 0x000000, 100);
disegno.moveTo(_xmouse, _ymouse);
MouseMov.push({thex:_root._xmouse, they:_root._ymouse});
}
};
// se il mouse si sposta
tracciaMouse.onMouseMove = function() {
if (this.isDrawing) {
disegno.lineTo(_xmouse, _ymouse);
MouseMov.push({thex:_root._xmouse, they:_root._ymouse});
}
updateAfterEvent();
};
// se il pulsante mouse viene rilasciato
tracciaMouse.onMouseUp = function () {
this.isDrawing = false;
};


Ora... una volta che ho disegnato una forma chiusa... (es. un semplice cerchio...) come posso colorarla dinamicamente.. es. di rosso???

GRAZIE AGLI ESPERTI!!! (Pasavign ecc...)