Frame 1
_root.alarmclock = getTimer();
Symbol 41 MovieClip Frame 1
if (this._name != "view1") {
_global.finished = false;
_global.finished2 = false;
_global.playing = true;
}
Symbol 41 MovieClip Frame 51
if (this._name != "view1") {
_global.finished2 = true;
}
stop();
Symbol 41 MovieClip Frame 52
if (this._name != "view1") {
_global.playing2 = true;
}
Symbol 41 MovieClip Frame 83
if (this._name != "view1") {
_global.finished = true;
_global.playing = false;
_global.playing2 = false;
}
stop();
Instance of Symbol 14 MovieClip "action" in Symbol 42 MovieClip Frame 1
onClipEvent (load) {
_global.finished = true;
_global.finished2 = true;
_global.predictions = new Array("Why all these questions?", "I hate brussel sprouts", "Outlook Good", "Outlook Not So Good", "My Reply Is No", "Don't Count On It", "You May Rely On It", "Ask Again Later", "Most Likely", "Cannot Predict Now", "My Sources Say No", "Without a Doubt", "Reply Hazy, Try Again", "As I See It, Yes", "Better Not Tell You Now", "It Is Certain", "Very Doubtful", "It Is Decidedly So", "Concentrate and Ask Again", "Signs Point to Yes", "Yes", "Yes Definately");
light_src_x = -300;
light_src_y = -200;
duplicateMovieClip ("_parent.shine", "shine1", 23);
_parent.shine1._x = 0;
_parent.shine1._y = 0;
duplicateMovieClip ("_parent.rim", "rim1", 22);
_parent.rim1._x = 0;
_parent.rim1._y = 0;
duplicateMovieClip ("_parent.mask", "mask1", 21);
_parent.mask1._x = 0;
_parent.mask1._y = 0;
_parent.mask1._alpha = 0;
_root.gored = false;
_root.num = 10;
delay = Math.random() * 4000;
_root.alarmclock = delay;
lightning_on = false;
i = 1;
while (i <= _root.num) {
duplicateMovieClip ("_parent.swirl", "swirl" + i, i);
_parent["swirl" + i]._x = (Math.random() * 100) - 50;
_parent["swirl" + i]._y = (Math.random() * 100) - 50;
_parent["swirl" + i]._rotation = Math.random() * 360;
_parent["swirl" + i]._alpha = 25;
_parent["swirl" + i].dirn = (Math.round(Math.random()) - 0.5) * 2;
i++;
}
}
onClipEvent (enterFrame) {
timeelapsed = getTimer();
if (timeelapsed > _root.alarmclock) {
delay = (Math.random() * 4000) + 500;
_root.alarmclock = _root.alarmclock + delay;
cloud_num = Math.round(Math.random() * (_root.num - 1)) + 1;
duplicateMovieClip ("_parent.lightning", "lightning1", -1);
_parent.lightning1._x = _parent["swirl" + cloud_num]._x;
_parent.lightning1._y = _parent["swirl" + cloud_num]._y;
_parent.lightning1._rotation = Math.random() * 360;
lightning_on = true;
lightning_time = timeelapsed;
}
if (lightning_on == true) {
if (timeelapsed > (lightning_time + 100)) {
_parent.lightning1._visible = false;
lightning_on = false;
}
}
i = 1;
while (i <= _root.num) {
_parent["swirl" + i]._rotation = _parent["swirl" + i]._rotation + (1 * _parent["swirl" + i].dirn);
i++;
}
if ((_root.gored == true) && (_parent.mask1._alpha < 20)) {
_parent.mask1._alpha = _parent.mask1._alpha + 0.5;
}
if ((_root.gored == false) && (_parent.mask1._alpha > 0)) {
_parent.mask1._alpha = _parent.mask1._alpha - 0.5;
}
angle = (360 * Math.atan((_parent._y - light_src_y) / (_parent._x - light_src_x))) / (Math.PI*2);
_parent.shine1._rotation = angle - 90;
if (ang == 180) {
ang = -180;
}
freq = 0.25;
amp = 5;
a = 5;
b = 5;
c = 5;
d = 5;
if ((_global.finished2 == true) && (_global.finished == false)) {
_parent.viewer._x = ((a * Math.sin(ang / 8)) + (c * Math.sin(ang / 4))) + (amp * Math.sin(ang));
_parent.viewer._y = ((-10 + (b * Math.cos(ang / 32))) + (d * Math.cos(ang / 4))) + (amp * Math.sin(ang + (Math.PI/2)));
}
ang = ang + freq;
}
Instance of Symbol 23 MovieClip "mask" in Symbol 42 MovieClip Frame 1
on (rollOver) {
_root.gored = true;
}
on (rollOut) {
_root.gored = false;
}
on (press) {
if (((_global.finished2 == true) && (_global.playing == true)) && (_global.playing2 != true)) {
_parent.viewer.gotoAndPlay("next");
}
startDrag ("_root.ball");
ran_var = Math.round((Math.random() * _global.predictions.length) - 0.4999999999999);
}
on (release) {
stopDrag();
if (_global.finished == true) {
duplicateMovieClip ("_parent.view1", "viewer", 19);
_parent.viewer.triangle.pred = predictions[ran_var];
_parent.viewer._x = 0;
_parent.viewer._y = -10;
}
}