хочется: есть 2 точки, передвигаются мышой, точки всегда соеденены прямой.
у меня получается только следующее, точки перевигаются мышой, но как тольок передвину хотя бы одну точку, линия, их соеденяющая, исчезает ваще нафиг
вот код

Код:
this.createEmptyMovieClip("pointtt1", this.getNextHighestDepth());
this.createEmptyMovieClip("pointtt2", this.getNextHighestDepth());
this.createEmptyMovieClip("line1", this.getNextHighestDepth());
line1.lineStyle(2,0x234567);
var mouseListener:Object = new Object();
var my_mcl:MovieClipLoader = new MovieClipLoader();
my_mcl.loadClip("C\point.swf","pointtt1";
my_mcl.loadClip("C\point.swf","pointtt2";
pointtt1._x=100;
pointtt1._y=100;
pointtt2._x=200;
pointtt2._y=200;
line1.moveTo(pointtt1._x+1,pointtt1._y+1);
line1.lineTo(pointtt2._x+1,pointtt2._y+1);
mouseListener.onMouseDown = function() {
if ((pointtt1._x > (_xmouse-3)) && (pointtt1._x < (_xmouse+3)) && ((pointtt1._y > (_ymouse-3)) && (pointtt1._y < (_ymouse+3)))){
this.isGo1 = true}
if ((pointtt2._x > (_xmouse-3)) && (pointtt2._x < (_xmouse+3)) && ((pointtt2._y > (_ymouse-3)) && (pointtt1._y < (_ymouse+3)))){
this.isGo2 = true}
};
mouseListener.onMouseMove = function() {
if (this.isGo1) {
pointtt1._x=_xmouse;
pointtt1._y=_ymouse;
line1.clear();
}
if (this.isGo2) {
pointtt2._x=_xmouse;
pointtt2._y=_ymouse;
line1.clear();
}
updateAfterEvent();
};
mouseListener.onMouseUp = function() {
this.isGo1 = false;
this.isGo2 = false;
_root.line2.lineStyle(2, 0x000000);
_root.line2.moveTo(pointtt1._x,pointtt1._y);
_root.line2.lineStyle(2, 0x234567);
_root.line2.moveTo(pointtt2._x,pointtt2._y);
};
Mouse.addListener(mouseListener);
что не так? в каком месте руки карявые?