this.attachMovie("title","title",10);
title._x = 349;
title._y = 418;
/////////////////////////////////////////////////
for (i=1; i<5; i++) {
attachMovie("ball"+i, "ball"+i, i);
eval("ball"+i)._x = random(500)+100;
eval("ball"+i)._y = i*50+200;
}
////////////////////////////////////////////////////
function go(k){
if (eval("ball"+k)._y < -100) {
eval("ball"+k)._x = random(500)+100;
eval("ball"+k)._y = 400;
set("speed"+j, random(3)-4);
}
}
/////////////////////////////////////
for(m=1;m<5;m++){
set("speed"+m,random(3)-4);
set("active"+m,false);
}
s = new Sound();
s.attachSound("WEB03_SOUND14");
unction ball(j) {
eval("ball"+j).onRollOver = function() {
set("active"+j, true);
s.start();
};
eval("ball"+j).onRollOut = function() {
set("active"+j, false);
eval("win"+j).removeMovieClip();
s.stop();
};
eval("ball"+j).onRelease = function() {
_root.attachMovie("win"+j, "win"+j, 4+j);
eval("win"+j)._x = eval("ball"+j)._x;
eval("win"+j)._y = eval("ball"+j)._y;
};
if (eval("active"+j) == true) {
eval("ball"+j)._y += 0;
} else {
eval("ball"+j)._y += eval("speed"+j);
}
}
ball(1);
ball(2);
ball(3);
ball(4);
go(1);
go(2);
go(3);
go(4);
gotoAndPlay(2);
嘿嘿 长了1点!