Frame 2
stop();
function moveThings() {
i = 0;
while (i <= game.thingNum) {
var _local2 = "thing" + i;
var _local3 = game[_local2];
var _local4 = _local3.angle;
raAngle = _local4 * (Math.PI/180);
sinAngle = Math.sin(raAngle);
cosAngle = Math.cos(raAngle);
thingxmov = sinAngle * game.speed2;
thingymov = cosAngle * game.speed2;
_root[_local2]._x = _root[_local2]._x + thingxmov;
_root[_local2]._y = _root[_local2]._y + thingymov;
_root[_local2]._alpha = _root[_local2]._alpha - 1.5;
i++;
}
}
Mouse.hide();
drop.swapDepths(1000000);
game = {};
game.speed = 20;
game.thingNum = 60;
game.speed2 = 2;
var gravity = 6;
var depth = 2;
var xaccel = 0;
var yaccel = 0;
var xmov = 0;
var ymov = 0;
var angle = 0;
_global.moving = true;
pointer.swapDepths(-1);
onEnterFrame = function () {
pointer._x = _xmouse;
pointer._y = _ymouse;
angle = angle + (game.speed / 2);
xaccel = (_xmouse - drop._x) / game.speed;
yaccel = (_ymouse - drop._y) / game.speed;
xmov = xmov + xaccel;
ymov = ymov + yaccel;
ymov = ymov + gravity;
xmov = xmov * 0.97;
ymov = ymov * 0.97;
drop._x = drop._x + xmov;
drop._y = drop._y + ymov;
drop._width = Math.abs(xmov / 2) + 30;
drop._height = Math.abs(ymov / 2) + 30;
if (drop._width > 60) {
drop._width = 60;
}
if (drop._height > 60) {
drop._height = 60;
}
if (depth < game.thingNum) {
depth++;
} else {
depth = 0;
}
var _local3 = "thing" + depth;
attachMovie("thing", _local3, depth);
_root[_local3]._rotation = angle;
_root[_local3]._x = drop._x;
_root[_local3]._y = drop._y;
game[_local3] = {angle:angle};
if (_global.moving) {
moveThings();
}
attachMovie("string", "string", -2);
string.lineStyle(3, 52479, 100);
string.setStrokeStyle("dashed");
string.moveTo(_xmouse, _ymouse);
string.lineTo(drop._x, drop._y);
};
Instance of Symbol 42 MovieClip "pointer" in Frame 2
onClipEvent (mouseDown) {
_global.moving = false;
}
onClipEvent (mouseUp) {
_global.moving = true;
}
Symbol 28 Button
on (release) {
gotoAndPlay (58);
}
Symbol 32 Button
on (release) {
gotoAndPlay (1);
}
Symbol 38 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndPlay ("loaded");
}
Symbol 38 MovieClip Frame 2
onEnterFrame = function () {
_root.gotoAndPlay("fudge");
};
Symbol 38 MovieClip Frame 57
stop();
Symbol 38 MovieClip Frame 112
_root.play();