Frame 1
i = 0;
W = 0;
Instance of Symbol 7 MovieClip "RANDOM_SPECK" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 15 MovieClip "LIGHT" in Frame 1
onClipEvent (mouseDown) {
this.startDrag();
dragging = 1;
}
onClipEvent (mouseUp) {
this.stopDrag();
dragging = 0;
}
onClipEvent (load) {
run = 0;
rise = 0;
n = 0;
speed = 0.03;
multip = 1;
hypot = 3;
angle = 45;
vertswitch = 1;
horiswitch = 1;
maxHeight = 600;
maxWidth = 800;
dragging = 0;
}
onClipEvent (enterFrame) {
if (dragging == 0) {
n = n + speed;
wave = Math.sin(n) * multip;
rise = (Math.sin(angle) * hypot) * vertswitch;
run = (Math.cos(angle) * hypot) * horiswitch;
_x = (_x + (run * wave));
_y = (_y + (rise * wave));
if (n > 3) {
n = 0;
angle = random(88) + 1;
quad = random(4);
if (quad == 0) {
horiswitch = 1;
vertswitch = 1;
}
if (quad == 1) {
horiswitch = -1;
vertswitch = 1;
}
if (quad == 2) {
horiswitch = 1;
vertswitch = -1;
}
if (quad == 3) {
horiswitch = -1;
vertswitch = -1;
}
}
if (_y < 0) {
vertswitch = vertswitch * -1;
_y = (_y + (rise * -1));
}
if (_x < 0) {
horiswitch = horiswitch * -1;
_x = (_x + (run * -1));
}
if (_y > maxHeight) {
vertswitch = vertswitch * -1;
_y = (_y + (rise * -1));
}
if (_x > maxWidth) {
horiswitch = horiswitch * -1;
_x = (_x + (run * -1));
}
}
}
Instance of Symbol 22 MovieClip "BUBBLE8" in Frame 1
onClipEvent (load) {
speed = 0.8;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK3" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK5" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK7" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK9" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK11" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK13" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK15" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK17 " in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK16" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK14" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK12" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK10" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK8" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK6" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK4" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK2" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK18 " in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK19" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 7 MovieClip "RANDOM_SPECK20" in Frame 1
onClipEvent (load) {
speed = 0.4;
tick = 1;
masterAngle = random(358) + 1.5;
setProperty(this, _rotation , 360 - masterAngle);
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
changeDirection = random(80);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
setProperty(this, _rotation , 360 - masterAngle);
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE9" in Frame 1
onClipEvent (load) {
speed = 0.8;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE5" in Frame 1
onClipEvent (load) {
speed = 0.8;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE11" in Frame 1
onClipEvent (load) {
speed = 0.8;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE10" in Frame 1
onClipEvent (load) {
speed = 0.8;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE12" in Frame 1
onClipEvent (load) {
speed = 0.8;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE6" in Frame 1
onClipEvent (load) {
speed = 0.8;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE3" in Frame 1
onClipEvent (load) {
speed = 0.8;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE2" in Frame 1
onClipEvent (load) {
speed = 0.8;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE1" in Frame 1
onClipEvent (load) {
speed = 0.8;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE7" in Frame 1
onClipEvent (load) {
speed = 0.8;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE4" in Frame 1
onClipEvent (load) {
speed = 0.8;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE13" in Frame 1
onClipEvent (load) {
speed = 1;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE24" in Frame 1
onClipEvent (load) {
speed = 1;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE23" in Frame 1
onClipEvent (load) {
speed = 1;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE20" in Frame 1
onClipEvent (load) {
speed = 1;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE21" in Frame 1
onClipEvent (load) {
speed = 1;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE14" in Frame 1
onClipEvent (load) {
speed = 1;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE15" in Frame 1
onClipEvent (load) {
speed = 1;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE17" in Frame 1
onClipEvent (load) {
speed = 1;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE18" in Frame 1
onClipEvent (load) {
speed = 1;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE19" in Frame 1
onClipEvent (load) {
speed = 1;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE16" in Frame 1
onClipEvent (load) {
speed = 1;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE22" in Frame 1
onClipEvent (load) {
speed = 1;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE26" in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE27" in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE28" in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE29" in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE30" in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE31" in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE32" in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE33" in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE34" in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE35" in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE36 " in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE37" in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE38" in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE39 " in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE40" in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE41" in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE42" in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE43" in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}
Instance of Symbol 22 MovieClip "BUBBLE44" in Frame 1
onClipEvent (load) {
speed = 0.6;
tick = 1;
masterAngle = random(358) + 1.5;
hypot = 2;
rise = 0;
run = 0;
vertswitch = -1;
horiswitch = 1;
clockwise = 1;
changeDirection = 0;
maxHeight = 600;
maxWidth = 800;
lightReach = maxWidth / 2;
}
onClipEvent (enterFrame) {
if (masterAngle < 80) {
masterAngle = 80;
clockwise = clockwise * -1;
}
if (masterAngle > 100) {
masterAngle = 100;
clockwise = clockwise * -1;
}
changeDirection = random(20);
if (changeDirection == 0) {
clockwise = clockwise * -1;
}
if (clockwise == 1) {
masterAngle = masterAngle - tick;
}
if (clockwise == -1) {
masterAngle = masterAngle + tick;
}
if (masterAngle > 360) {
masterAngle = masterAngle - 360;
}
if (masterAngle < 0) {
masterAngle = masterAngle + 360;
}
if ((masterAngle > 0) && (masterAngle < 90)) {
angle = masterAngle;
horiswitch = 1;
vertswitch = -1;
}
if ((masterAngle > 90) && (masterAngle < 180)) {
angle = masterAngle - 90;
angle = 90 - angle;
horiswitch = -1;
vertswitch = -1;
}
if ((masterAngle > 180) && (masterAngle < 270)) {
angle = masterAngle - 180;
horiswitch = -1;
vertswitch = 1;
}
if ((masterAngle > 270) && (masterAngle < 360)) {
angle = masterAngle - 270;
angle = 90 - angle;
horiswitch = 1;
vertswitch = 1;
}
rise = (Math.sin((angle * Math.PI) / 180) * hypot) * vertswitch;
run = (Math.cos((angle * Math.PI) / 180) * hypot) * horiswitch;
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
spreadX = Math.abs(_root.LIGHT._x - _x);
spreadY = Math.abs(_root.LIGHT._y - _y);
angleToLight = Math.atan(spreadY / spreadX);
angle = angleToLight / (Math.PI/180);
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , -angle);
}
if ((_root.LIGHT._x > _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y < _y)) {
setProperty(this, _rotation , 180 + angle);
}
if ((_root.LIGHT._x < _x) && (_root.LIGHT._y > _y)) {
setProperty(this, _rotation , 180 - angle);
}
spreadH = Math.abs(Math.sqrt((spreadX * spreadX) + (spreadY * spreadY)));
if (spreadH > lightReach) {
setProperty(this, _alpha , 0);
}
if (spreadH < lightReach) {
setProperty(this, _alpha , 100 - ((spreadH / lightReach) * 100));
}
if (_x < 0) {
_x = maxWidth;
}
if (_x > maxWidth) {
_x = 0;
}
if (_y < 0) {
_y = maxHeight;
}
if (_y > maxHeight) {
_y = 0;
}
}