Frame 55
stop();
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
randomblick = random(2);
if (randomblick == 1) {
this._xscale = -100;
}
}
onClipEvent (enterFrame) {
randomblick2 = random(15);
if (randomblick2 == 1) {
this._xscale = -100;
}
randomblick3 = random(15);
if (randomblick3 == 1) {
this._xscale = 100;
}
}
Symbol 16 MovieClip Frame 1
xMin = 40;
xMax = 720;
yMin = 40;
yMax = 520;
minSize = 10;
maxSize = 50;
easeFactor = 10;
randomX = (Math.random() * (xMax - xMin)) + xMin;
randomY = (Math.random() * (yMax - yMin)) + yMin;
randomSize = (Math.random() * (maxSize - minSize)) + minSize;
Instance of Symbol 15 MovieClip in Symbol 16 MovieClip Frame 1
onClipEvent (load) {
this._x = Math.round(Math.random() * width);
this._y = Math.round(Math.random() * height);
var temp = ((this._alpha = (Math.random() * 100) + 50));
this._xscale = (this._yscale = temp);
cx = this._x;
cy = this._y;
}
onClipEvent (enterFrame) {
this._x = cx + (1 + (Math.random() * 5));
this._y = cy + (Math.random() * 5);
}
Symbol 16 MovieClip Frame 3
distance = Math.sqrt(Math.pow(this._x - randomX, 2) + Math.pow(this._y - randomY, 2));
if (Math.abs(this._width - maxSize) > 1) {
this._width = this._width + ((randomSize - this._width) / 2);
this._height = this._height + ((randomSize - this._height) / 2);
}
if (distance > 1) {
this._x = this._x + ((randomX - this._x) / easeFactor);
this._y = this._y + ((randomY - this._y) / easeFactor);
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}