Я тут, как то набросал для одного. Так он, гад, даже спасибо не сказал.
_root.createEmptyMovieClip("line", 1);
with (_root.line) {
_root.line.ttt = 1;
onEnterFrame = function () {
if (ttt == 1) {
x = 30*(Math.random()-0.5);
y = 30*(Math.random()-0.5);
xx = 100*(Math.random()-0.5);
yy = 100*(Math.random()-0.5);
alf = 66*(Math.random()+0.5);
lnt = Math.floor((Math.random()+1)*1.5);
x1 = 200*(Math.random()-0.5);
y1 = 200*(Math.random()-0.5);
alf1 = 66*(Math.random()+0.5);
lnt1 = Math.floor((Math.random()+1)*1.5);
x2 = x1+20*(Math.random()-0.5);
y2 = y1+20*(Math.random()-0.5);
x3 = 200*(Math.random()-0.5);
y3 = 200*(Math.random()-0.5);
x4 = x3+20*(Math.random()-0.5);
y4 = y3+20*(Math.random()-0.5);
x5 = 200*(Math.random()-0.5);
y5 = 200*(Math.random()-0.5);
x6 = x5+20*(Math.random()-0.5);
y6 = y5+20*(Math.random()-0.5);
lineStyle(lnt, 0x666666, alf);
lineTo(x, y);
moveTo(x4, y4);
lineTo(x3, y3);
lineStyle(lnt1, 0x999999, alf1);
moveTo(x2, y2);
lineTo(x1, y1);
moveTo(x6, y6);
lineTo(x5, y5);
ttt *= -1;
_x = 50+xx;//здесь размер экрана
_y = 50+yy;
} else {
clear();
ttt *= -1;
}
};
}