codice:
this.createEmptyMovieClip("draw_mc", 1);
draw_mc.lineStyle(0, 0x000000);
draw_mc.onMouseDown = function()
{
this.liv = this.getNextHighestDepth();
this.createEmptyMovieClip("quad_" + this.liv, this.liv);
this.start_x = _xmouse;
this.start_y = _ymouse;
this.onEnterFrame = function()
{
with (this["quad_" + this.liv])
{
clear();
beginFill(0xFF0000, 30);
moveTo(this.start_x, this.start_y);
lineTo(this.start_x, this.start_y);
lineTo(_xmouse, this.start_y);
lineTo(_xmouse, _ymouse);
lineTo(this.start_x, _ymouse);
endFill();
}
};
};
draw_mc.onMouseUp = function()
{
this.onEnterFrame = null;
};