Combined Code
movieClip 9 {
}
movieClip 10 {
frame 1 {
N = 100;
Z = new Array();
Z[N] = 10;
WX0 = 5;
WY0 = 7;
WX = 0;
WY = 0;
A = 1;
X0 = 0;
Y0 = 0;
i = 1;
while (i <= N) {
name = 's' + i;
duplicateMovieClip(s, name, 10 + i);
obj = this[name];
obj._x = X0 + 600 * Math.random();
obj._y = Y0 + 600 * Math.random();
Z[i] = 10 * Math.random();
M = 1 - Z[i] * 9 / 100;
obj._width *= M;
obj._height *= M;
++i;
}
}
frame 2 {
WX += Math.random() / 5;
WY += Math.random() / 5;
if (WX < -A) {
WX = -A;
}
if (WX > A) {
WX = A;
}
if (WY < -A) {
WY = -A;
}
if (WY > A) {
WY = A;
}
i = 1;
while (i <= N) {
name = 's' + i;
obj = this[name];
M = 1 - Z[i] * 9 / 100;
dx = (WX0 + WX + Math.random()) * M;
dy = (WY0 + WY + Math.random()) * M;
obj._x += dx;
obj._y += dy;
if (obj._x > X0 + 600) {
obj._x = X0;
}
if (obj._y > Y0 + 600) {
obj._y = Y0;
}
obj._rotation += 2 * Math.random();
++i;
}
}
frame 3 {
gotoAndPlay(2);
}
}
movieClip 16 {
frame 1 {
stop();
}
}
movieClip 17 {
instance of movieClip 16 {
onClipEvent (enterFrame) {
if (random(20) == 1) {
this.play();
}
}
}
instance of movieClip 16 {
onClipEvent (enterFrame) {
if (random(20) == 1) {
this.play();
}
}
}
instance of movieClip 16 {
onClipEvent (enterFrame) {
if (random(20) == 1) {
this.play();
}
}
}
instance of movieClip 16 {
onClipEvent (enterFrame) {
if (random(20) == 1) {
this.play();
}
}
}
instance of movieClip 16 {
onClipEvent (enterFrame) {
if (random(20) == 1) {
this.play();
}
}
}
instance of movieClip 16 {
onClipEvent (enterFrame) {
if (random(20) == 1) {
this.play();
}
}
}
instance of movieClip 16 {
onClipEvent (enterFrame) {
if (random(20) == 1) {
this.play();
}
}
}
}
movieClip 20 {
}