Exclusive to the movieclip

[AS]
// initialize
hit = true;

createMC = function () {
if (hit == true) {
hit = false;
this.createEmptyMovieClip(“shape”+m, m+1);
createShape.apply(this[“shape”+m]);
}
m++;
trace(this[“shape”+m]);
};

createShape = function () {
this.coord_x = new Array();
this.coord_y = new Array();
this.randcol = Math.floor(Math.random()0xFF0000);
this.onMouseDown = function() {
this.coord_x.push(_root._xmouse);
this.coord_y.push(_root._ymouse);
this.attachMovie(“dot”, “dot”+c, c);
this[“dot”+c]._x = this.coord_x[this.coord_x.length-1];
this[“dot”+c]._y = this.coord_y[this.coord_y.length-1];
trace(this[“dot”+c]);
if (this.dot.hitTest(_root._xmouse, _root._ymouse) && this.dot1) {
hit = true;
this[“dot”+c]._visible = false;
this.dot.gotoAndPlay(3);
} else {
this.drawShape();
}
c++;
};
this.drawShape = function() {
this.onEnterFrame = function() {
if (hit == false) {
this.clear();
this.lineStyle(2, this.randcol, 100);
this.moveTo(this.coord_x[this.coord_x.length-1], this.coord_y[this.coord_y.length-1]);
this.lineTo(_root._xmouse, _root._ymouse);
this.moveTo(this.coord_x[0], this.coord_y[0]);
for (i=1; i<this.coord_x.length; i++) {
this.lineTo(this.coord_x
, this.coord_y*);
}
this.dot.gotoAndStop(3);
}
};
};
};
createMC();
[/AS]

please take a look at http://h-y-p-h-e-n-s.net/music6.swf
please roll over the question mark and read the instruction.

what i want to do is, after the user reconnect to the first dot they created to form the shape ( where hit = true ),
i want to create a new movieclip to house the next set of dots that they create. Everything, the dots, arrays, and such will be exclusive to that movieclip only…

right now, it only managed to create the movieclip “_level0.shape”. And the attached dot “_level0.shape.dot1”, “_level0.shape.dot2” etc…

when hit = true

i want it to create a new movieclip "_level0[“shape”+m] and the attached dots to be “_level0[“shape”+m].dot1”

thank you in advance for any valuable help given… thanx!
:geek: