_root.Step=10;
xs1=xe1=ys1=ye1=0
xs2=xe2=500
ys2=ye2=0
_root.onEnterFrame=function(){
if(xs1!=xs2 or ys1!=ys2){
_root.lineStyle(1,0x000000,100);
xe1+=_root.Step
ye1+=_root.Step
xe2-=_root.Step
ye2+=_root.Step
_root.moveTo(xs1,ys1);
_root.lineTo(xe1,ye1);
_root.moveTo(xs2,ys2);
_root.lineTo(xe2,ye2);
xs1=xe1
ys1=ye1
xs2=xe2
ys2=ye2
}
}
должно так работать
все дело в условии.