Frame 1
stop();
bg_mc._width = Stage.width;
bg_mc._height = Stage.height;
da_mc._x = (lbc._x = (bg_mc._width / 2) - (da_mc._width / 2));
da_mc._y = (bg_mc._height / 2) - (da_mc._height / 2);
lbc._y = (da_mc._y + da_mc._height) + 30;
loadbar._x = lbc._x + 91;
loadbar._y = lbc._y;
var bt = 0;
var bl = 0;
var pl = 0;
onEnterFrame = function () {
bt = int(_root.getBytesTotal() / 1000);
bl = int(_root.getBytesLoaded() / 1000);
pl = int((bl / bt) * 200);
loadbar._width = pl;
if ((bt == bl) and (bt != 0)) {
_root.gotoAndStop(3);
delete _root.onEnterFrame;
}
};
friction = 0.96;
v = 1;
g = 0;
ds = 0.9;
hw = ball._width / 2;
hh = ball._height / 2;
yspeed = random(200) - 100;
xspeed = random(200) - 100;
stopall = false;
slide = false;
_root.createEmptyMovieClip("lineDraw", _root.getNextHighestDepth());
lineDraw.swapDepths(ball);
drawLine = function () {
lineDraw.clear();
lineDraw.lineStyle(1, 0, 100);
lineDraw.moveTo(sign._x, sign._y);
lineDraw.lineTo(ball._x, ball._y);
};
moveit = function () {
if (v == 1) {
newX = this._x;
if (xabs > 0.09) {
this._x = this._x + xspeed;
}
this.ball2._rotation = this.ball2._rotation + ((newX - oldX) * 1.9);
xspeed = xspeed * friction;
oldX = newX;
if (!stopall) {
newY = this._y;
this._y = this._y + (yspeed + ((g = g + ds)));
yspeed = yspeed * friction;
oldY = newY;
} else {
if (!slide) {
slide = true;
sign._x = ball._x;
} else {
sign._x = sign._x + ((ball._x - sign._x) / 10);
}
sign._y = int(ball._y - 40);
if ((sign._x + (sign._width / 2)) > bg_mc._width) {
sign._x = bg_mc._width - (sign._width / 2);
} else if ((sign._x - (sign._width / 2)) < 0) {
sign._x = sign._width / 2;
}
drawLine();
sign.gotoAndStop(1);
}
} else {
sign.gotoAndStop(2);
newX = this._x;
newY = this._y;
xspeed = newX - oldX;
yspeed = newY - oldY;
oldX = newX;
oldY = newY;
}
if (!stopall) {
if ((this._y + hh) >= bg_mc._height) {
this._y = bg_mc._height - hh;
g = -(g * 0.4);
yspeed = yspeed * -1;
yabs = Math.abs(g);
if (yabs > 1) {
this.ball2.nextFrame();
}
if (yabs < 0.3) {
stopall = true;
}
}
if ((this._y - hh) <= 0) {
this._y = hh;
g = 0;
yspeed = yspeed * -1;
this.ball2.nextFrame();
}
}
xabs = Math.abs(xspeed);
if ((this._x + hw) >= bg_mc._width) {
this._x = bg_mc._width - hw;
xspeed = xspeed * -1;
if (xabs > 1) {
this.ball2.nextFrame();
}
}
if ((this._x - hw) <= 0) {
this._x = hw;
xspeed = xspeed * -1;
if (xabs > 1) {
this.ball2.nextFrame();
}
}
};
ball.onEnterFrame = moveit;
ball.onPress = function () {
lineDraw.clear();
stopall = (slide = false);
this.startDrag();
v = 0;
};
ball.onRelease = (ball.onReleaseOutside = function () {
stopall = false;
this.stopDrag();
v = 1;
});
Frame 2
stop();
Frame 3
text_mc._x = bg_mc._width / 2;
text_mc._y = bg_mc._height / 2;
bg_mc.useHandCursor = false;
bg_mc.onRelease = function () {
_root.gotoAndStop(4);
delete this.onRelease;
};
stop();
Frame 4
mask_mc._width = bg_mc._width;
mask_mc._height = bg_mc._height;
f4_mc.duplicateMovieClip("image4", _root.getNextHighestDepth());
f3_mc.duplicateMovieClip("image3", _root.getNextHighestDepth());
mask_mc.duplicateMovieClip("mask3", _root.getNextHighestDepth());
image3.setMask("mask3");
mask3.onEnterFrame = function () {
this._x = _xmouse - this._width;
this._y = _ymouse - this._height;
if (this._x > 0) {
this._x = 0;
}
if (this._y > 0) {
this._y = 0;
}
};
f2_mc.duplicateMovieClip("image2", _root.getNextHighestDepth());
mask_mc.duplicateMovieClip("mask2", _root.getNextHighestDepth());
image2.setMask("mask2");
mask2.onEnterFrame = function () {
this._x = _xmouse - this._width;
this._y = _ymouse;
if (this._x > 0) {
this._x = 0;
}
if (this._y < 0) {
this._y = 0;
}
};
f1_mc.duplicateMovieClip("image1", _root.getNextHighestDepth());
mask_mc.duplicateMovieClip("mask1", _root.getNextHighestDepth());
image1.setMask("mask1");
mask1.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
if (this._x < 0) {
this._x = 0;
}
if (this._y < 0) {
this._y = 0;
}
};
i = 4;
while (i > 0) {
var wc = eval (("_root.f" + i) + "_mc");
wc.swapDepths(10000);
wc.removeMovieClip();
i--;
}
mask_mc.swapDepths(10000);
mask_mc.removeMovieClip();
lineH_mc._height = bg_mc._height;
lineV_mc._width = bg_mc._width;
lineH_mc.swapDepths(10000);
lineV_mc.swapDepths(10001);
_root.onEnterFrame = function () {
lineV_mc._y = _ymouse;
if (lineV_mc._y > bg_mc._height) {
lineV_mc._y = bg_mc._height;
}
if (lineV_mc._y < 0) {
lineV_mc._y = 0;
}
lineH_mc._x = _xmouse;
if (lineH_mc._x > bg_mc._width) {
lineH_mc._x = bg_mc._width;
}
if (lineH_mc._x < 0) {
lineH_mc._x = 0;
}
};
Symbol 17 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 8
this.gotoAndStop(1);
Symbol 21 MovieClip Frame 10
stop();