Frame 1
VIS = 20;
manVisibility = VIS;
_root.speaker.stop();
song = new Sound();
song.attachSound("fly_away");
song.start();
playingMusic = true;
_root.playButton.onRelease = function () {
if (playingMusic) {
song.stop();
} else {
song.start();
}
playingMusic = !playingMusic;
};
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (getTimer() > 15000) {
_alpha = (_alpha-1);
}
}
Instance of Symbol 6 MovieClip "cont" in Frame 1
onClipEvent (load) {
_alpha = 0;
fadeRate = 2;
maxSpeed = random(4) + 6;
maxAngle = random(180) - 160;
maxAngle2 = random(180) - 160;
maxWidth = random(250) + 10;
maxWidth2 = random(250) + 10;
duration = random(1000) + 1000;
timeDurration = random(1000) + 6000;
elapsed = getTimer();
rate = 1;
speedRate = 0.1;
count = 0;
cMax = random(400);
count2 = 0;
count3 = 0;
c2Max = random(400) + 100;
c3Max = random(400) + 100;
state = 0;
slowMotion = false;
forceFast = false;
forceSlow = false;
forceNormal = false;
}
onClipEvent (enterFrame) {
elapsed = getTimer();
if ((((elapsed > timeDurration) || (forceSlow)) || (forceFast)) || (forceNormal)) {
slowMotion = false;
timeDurration = getTimer() + random(10000);
if ((random(10) == 0) || (forceSlow)) {
slowMotion = true;
speedRate = 2;
timeDurration = getTimer() + 6000;
_root.body.timeDurration = getTimer() + 6000;
maxSpeed = 2;
} else if ((random(10) == 0) || (forceFast)) {
timeDurration = getTimer() + 20000;
_root.body.timeDurration = getTimer() + 20000;
speedRate = 0.05;
maxSpeed = random(15) + 20;
} else {
speedRate = 0.05;
maxSpeed = random(5) + 9;
}
forceSlow = false;
forceFast = false;
forceNormal = false;
}
if (((count2++) > c2Max) && (!slowMotion)) {
count2 = 0;
c2Max = random(400);
if (random(4) == 0) {
maxWidth = random(250) + 10;
maxWidth2 = random(250) + 10;
} else {
maxWidth = random(250) + 10;
maxWidth2 = maxWidth;
}
maxAngle = random(180) - 180;
if (random(3) == 0) {
maxAngle2 = random(180) - 180;
} else {
maxAngle2 = maxAngle;
}
}
}
Instance of Symbol 8 MovieClip "left" in Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 8 MovieClip "right" in Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 17 MovieClip "body" in Frame 1
onClipEvent (load) {
_alpha = _root.manVisibility;
rXDiff = 0;
rYDiff = 0;
lXDiff = 0;
lYDiff = 0;
count = 0;
timeDurration = getTimer() + random(100);
elapsed = getTimer();
}
onClipEvent (enterFrame) {
_alpha = _root.manVisibility;
elapsed = getTimer();
if ((elapsed > timeDurration) && (!_root.cont.slowMotion)) {
timeDurration = getTimer() + random(1000);
_root.right._x = _x - (random(90) - 25);
_root.left._x = _x + (random(90) - 25);
_root.right._y = _y + (random(110) - 20);
_root.left._y = _y + (random(110) - 20);
count = 0;
}
}
Instance of Symbol 19 MovieClip in Frame 1
onClipEvent (enterFrame) {
_alpha = _root.manVisibility;
_x = _root.twirler_left._x;
_y = _root.twirler_left._y;
xDiff = _root.left_shoulder._x - _x;
yDiff = _root.left_shoulder._y - _y;
if (xDiff > 0) {
_rotation = ((57.2957795130823 * Math.atan(yDiff / xDiff)) + 180);
} else {
_rotation = (57.2957795130823 * Math.atan(yDiff / xDiff));
}
}
Instance of Symbol 19 MovieClip in Frame 1
onClipEvent (enterFrame) {
_alpha = _root.manVisibility;
_x = _root.twirler_right._x;
_y = _root.twirler_right._y;
xDiff = _root.right_shoulder._x - _x;
yDiff = _root.right_shoulder._y - _y;
if (xDiff > 0) {
_rotation = ((57.2957795130823 * Math.atan(yDiff / xDiff)) + 180);
} else {
_rotation = (57.2957795130823 * Math.atan(yDiff / xDiff));
}
}
Instance of Symbol 27 MovieClip in Frame 1
onClipEvent (load) {
_alpha = 0;
act1 = false;
act2 = false;
act3 = false;
act4 = false;
act5 = false;
act6 = false;
}
onClipEvent (enterFrame) {
if ((getTimer() > 158516) && (!act5)) {
act5 = true;
_root.cont.forceSlow = true;
}
}
Instance of Symbol 57 MovieClip "twirler_left" in Frame 1
onClipEvent (enterFrame) {
_x = (_x + (0.01 * (_root.left._x - _x)));
_y = (_y + (0.01 * (_root.left._y - _y)));
}
Instance of Symbol 74 MovieClip "twirler_right" in Frame 1
onClipEvent (enterFrame) {
_x = (_x + (0.01 * (_root.right._x - _x)));
_y = (_y + (0.01 * (_root.right._y - _y)));
}
Instance of Symbol 76 MovieClip "left_shoulder" in Frame 1
onClipEvent (load) {
origX = _x;
origY = _y;
_alpha = 0;
}
onClipEvent (enterFrame) {
xDiff = _root.body._x - _root.left._x;
_x = ((_root.body._x - (0.1 * xDiff)) + 13);
yDiff = _root.body._y - _root.right._y;
_y = ((_root.body._y - (0.1 * yDiff)) + 30);
}
Instance of Symbol 76 MovieClip "right_shoulder" in Frame 1
onClipEvent (load) {
origX = _x;
origY = _y;
_alpha = 0;
}
onClipEvent (enterFrame) {
xDiff = _root.body._x - _root.right._x;
_x = ((_root.body._x - (0.1 * xDiff)) - 13);
yDiff = _root.body._y - _root.right._y;
_y = ((_root.body._y - (0.1 * yDiff)) + 30);
}
Instance of Symbol 78 MovieClip in Frame 1
onClipEvent (enterFrame) {
_alpha = _root.manVisibility;
_x = (_x + (0.1 * (_root.right_shoulder._x - _x)));
_y = (_y + (0.1 * (_root.right_shoulder._y - _y)));
xDiff = _root.twirler_right._x - _x;
yDiff = _root.twirler_right._y - _y;
if (xDiff > 0) {
_rotation = ((57.2957795130823 * Math.atan(yDiff / xDiff)) + 180);
} else {
_rotation = (57.2957795130823 * Math.atan(yDiff / xDiff));
}
}
Instance of Symbol 78 MovieClip in Frame 1
onClipEvent (enterFrame) {
_alpha = _root.manVisibility;
_x = (_x + (0.1 * (_root.left_shoulder._x - _x)));
_y = (_y + (0.1 * (_root.left_shoulder._y - _y)));
xDiff = _root.twirler_left._x - _x;
yDiff = _root.twirler_left._y - _y;
if (xDiff > 0) {
_rotation = ((57.2957795130823 * Math.atan(yDiff / xDiff)) + 180);
} else {
_rotation = (57.2957795130823 * Math.atan(yDiff / xDiff));
}
}
Instance of Symbol 84 MovieClip in Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (((getTimer() > 22000) && (getTimer() < 30000)) && (_alpha < 100)) {
_alpha = (_alpha+1);
} else if (((getTimer() > 155000) && (getTimer() < 171000)) && (_alpha < 100)) {
_alpha = (_alpha+1);
} else if (_alpha > 0) {
_alpha = (_alpha-1);
}
}
Symbol 29 Button
on (release) {
trace(getTimer());
}
Symbol 32 Button
on (release) {
_root.cont.forceNormal = true;
_root.body.timeDurration = getTimer() + 100;
}
Symbol 35 Button
on (release) {
_root.cont.forceSlow = true;
}
Symbol 37 Button
on (release) {
_root.cont.forceFast = true;
}
Instance of Symbol 43 MovieClip in Symbol 52 MovieClip Frame 1
onClipEvent (enterFrame) {
alphaLvl = 100 * ((_parent._parent._parent.speed - 20) / 10);
if (_alpha < alphaLvl) {
_alpha = (_alpha + _root.cont.faderate);
} else {
_alpha = (_alpha - _root.cont.faderate);
}
}
Instance of Symbol 45 MovieClip in Symbol 52 MovieClip Frame 1
onClipEvent (enterFrame) {
_alpha = (100 * ((_parent._parent._parent.speed - 15) / 10));
}
Instance of Symbol 47 MovieClip in Symbol 52 MovieClip Frame 1
onClipEvent (enterFrame) {
_alpha = (100 * ((_parent._parent._parent.speed - 10) / 10));
}
Instance of Symbol 49 MovieClip in Symbol 52 MovieClip Frame 1
onClipEvent (enterFrame) {
_alpha = (100 * ((_parent._parent._parent.speed - 5) / 10));
}
Instance of Symbol 41 MovieClip in Symbol 53 MovieClip Frame 1
onClipEvent (load) {
_alpha = _root.manVisibility;
}
onClipEvent (enterFrame) {
_alpha = _root.manVisibility;
}
Instance of Symbol 53 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
count = 0;
altAngle = 180;
rate = 1;
max = random(1000) + 1000;
}
onClipEvent (enterFrame) {
if (((count++) > max) && (!_root.cont.slowMotion)) {
count = 0;
max = random(1000) + 1000;
_root.cont.alternate = false;
if (altAngle == 180) {
altAngle = 0;
} else {
altAngle = 180;
}
}
if (_rotation < altAngle) {
_rotation = (_rotation + rate);
}
if (_rotation > altAngle) {
_rotation = (_rotation - rate);
}
}
Instance of Symbol 54 MovieClip in Symbol 55 MovieClip Frame 1
onClipEvent (load) {
speed = 0;
rate = 0.05;
}
onClipEvent (enterFrame) {
if (speed < _root.cont.maxSpeed) {
speed = speed + _root.cont.speedRate;
}
if (speed > _root.cont.maxSpeed) {
speed = speed - _root.cont.speedRate;
}
_rotation = (_rotation - speed);
}
Instance of Symbol 55 MovieClip in Symbol 56 MovieClip Frame 1
onClipEvent (load) {
oW = _width;
oH = _height;
rate2 = 2;
}
onClipEvent (enterFrame) {
if (_width < _root.cont.maxWidth) {
_width = (_width + _root.cont.rate);
}
if (_width > _root.cont.maxWidth) {
_width = (_width - _root.cont.rate);
}
}
Instance of Symbol 56 MovieClip in Symbol 57 MovieClip Frame 1
onClipEvent (load) {
oW = _width;
oH = _height;
angle = 0;
rate = 0.1;
rate2 = 3;
}
onClipEvent (enterFrame) {
if (_rotation < (-_root.cont.maxAngle2)) {
_rotation = (_rotation + _root.cont.rate);
} else if (_rotation > (-_root.cont.maxAngle2)) {
_rotation = (_rotation - _root.cont.rate);
}
}
Instance of Symbol 61 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (enterFrame) {
alphaLvl = 100 * ((_parent._parent.speed - 20) / 10);
if (_alpha < alphaLvl) {
_alpha = (_alpha + _root.cont.faderate);
} else {
_alpha = (_alpha - _root.cont.faderate);
}
}
Instance of Symbol 63 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (enterFrame) {
_alpha = (100 * ((_parent._parent.speed - 15) / 10));
}
Instance of Symbol 65 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (enterFrame) {
_alpha = (100 * ((_parent._parent.speed - 10) / 10));
}
Instance of Symbol 67 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (enterFrame) {
_alpha = (100 * ((_parent._parent.speed - 5) / 10));
}
Instance of Symbol 41 MovieClip in Symbol 71 MovieClip Frame 1
onClipEvent (load) {
_alpha = _root.manVisibility;
}
onClipEvent (enterFrame) {
_alpha = _root.manVisibility;
}
Instance of Symbol 71 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
speed = 0;
rate = 0.01;
}
onClipEvent (enterFrame) {
if (speed < _root.cont.maxSpeed) {
speed = speed + _root.cont.speedRate;
}
if (speed > _root.cont.maxSpeed) {
speed = speed - _root.cont.speedRate;
}
_rotation = (_rotation + speed);
}
Instance of Symbol 72 MovieClip in Symbol 73 MovieClip Frame 1
onClipEvent (load) {
oW = _width;
oH = _height;
rate2 = 3;
}
onClipEvent (enterFrame) {
if (_width < _root.cont.maxWidth2) {
_width = (_width + _root.cont.rate);
}
if (_width > _root.cont.maxWidth2) {
_width = (_width - _root.cont.rate);
}
}
Instance of Symbol 73 MovieClip in Symbol 74 MovieClip Frame 1
onClipEvent (load) {
oW = _width;
oH = _height;
angle = 0;
rate = 0.1;
rate2 = 3;
}
onClipEvent (enterFrame) {
if (_rotation < _root.cont.maxAngle) {
_rotation = (_rotation + _root.cont.rate);
} else if (_rotation > _root.cont.maxAngle) {
_rotation = (_rotation - _root.cont.rate);
}
}
Instance of Symbol 80 MovieClip in Symbol 81 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Symbol 82 Button
on (release) {
if (_root.manVisibility == 0) {
_root.manVisibility = _root.VIS;
} else {
_root.manVisibility = 0;
}
}