Frame 1
function InitObject() {
var used = new Array(32);
i = 0;
while (i < 12) {
used[i] = 0;
i++;
}
for (var name in _root) {
trace(name);
if (name.substring(0, 3) == "tgt") {
trace(name);
if (name.substring(3) <= (nowlevel * numperlvl)) {
a = Math.floor(Math.random() * 12);
while (used[a] == 1) {
a = Math.floor(Math.random() * 12);
}
used[a] = 1;
_root[name]._x = 56 + (int(a / 2) * 72);
_root[name]._y = 64 + ((a % 2) * 96);
_root[name]._visible = true;
_root[name].gotoandplay(1);
}
} else if (name.substring(0, 3) == "obj") {
trace(name);
if (name.substring(3) <= (nowlevel * numperlvl)) {
_root[name]._x = 80 + (ycnt * 31);
_root[name]._y = 256;
_root[name]._visible = true;
_root[name].gotoandstop(1);
_root[name].anm.gotoandplay(1);
ycnt = ycnt + 1;
}
}
}
}
timercount = 90;
maxlevel = 4;
numperlvl = 3;
nowlevel = 1;
_root.timer._width = 90;
ycnt = 0;
for (var name in _root) {
if (name.substring(0, 3) == "tgt") {
_root[name]._visible = false;
} else if (name.substring(0, 3) == "obj") {
_root[name]._visible = false;
}
}
stop();
Frame 2
_root.timer._width = timercount;
Frame 12
timercount = timercount - 2;
if (timercount <= 0) {
gotoAndPlay (17);
} else if (ycnt <= 0) {
if (nowlevel == maxlevel) {
gotoAndPlay (13);
} else {
gotoAndPlay (15);
}
} else {
gotoAndPlay (2);
}
Frame 13
stop();
Frame 15
stop();
Frame 17
stop();
Symbol 34 Button
on (press) {
startDrag ("");
}
on (release, releaseOutside) {
stopDrag();
if (this._x < 40) {
this._x = 40;
}
if (this._x > 440) {
this._x = 440;
}
if (this._y < 40) {
this._y = 40;
}
if (this._y > 320) {
this._y = 320;
}
}
on (release) {
var tgtname = ("/tgt" + this._name.substring(3));
if (_droptarget == tgtname) {
_x = _parent[_droptarget.substring(1)]._x;
_y = _parent[_droptarget.substring(1)]._y;
_root.ycnt = _root.ycnt - 1;
gotoAndPlay (2);
_parent[_droptarget.substring(1)]._visible = false;
}
}
Symbol 35 MovieClip Frame 118
gotoAndPlay (1);
gotoAndPlay (1);
gotoAndPlay (1);
gotoAndPlay (1);
gotoAndPlay (1);
gotoAndPlay (1);
gotoAndPlay (1);
gotoAndPlay (1);
gotoAndPlay (1);
gotoAndPlay (1);
gotoAndPlay (1);
gotoAndPlay (1);
gotoAndPlay (1);
gotoAndPlay (1);
gotoAndPlay (1);
gotoAndPlay (1);
Symbol 36 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 2
stop();
Symbol 37 Button
on (press) {
startDrag ("");
}
on (release, releaseOutside) {
stopDrag();
if (this._x < 40) {
this._x = 40;
}
if (this._x > 440) {
this._x = 440;
}
if (this._y < 40) {
this._y = 40;
}
if (this._y > 320) {
this._y = 320;
}
}
on (release) {
var tgtname = ("/tgt" + this._name.substring(3));
if (_droptarget == tgtname) {
_x = _parent[_droptarget.substring(1)]._x;
_y = _parent[_droptarget.substring(1)]._y;
_root.ycnt = _root.ycnt - 1;
gotoAndPlay (2);
_parent[_droptarget.substring(1)]._visible = false;
}
}
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 2
stop();
Symbol 39 Button
on (press) {
startDrag ("");
}
on (release, releaseOutside) {
stopDrag();
if (this._x < 40) {
this._x = 40;
}
if (this._x > 440) {
this._x = 440;
}
if (this._y < 40) {
this._y = 40;
}
if (this._y > 320) {
this._y = 320;
}
}
on (release) {
var tgtname = ("/tgt" + this._name.substring(3));
if (_droptarget == tgtname) {
_x = _parent[_droptarget.substring(1)]._x;
_y = _parent[_droptarget.substring(1)]._y;
_root.ycnt = _root.ycnt - 1;
gotoAndPlay (2);
_parent[_droptarget.substring(1)]._visible = false;
}
}
Symbol 40 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 2
stop();
Symbol 41 Button
on (press) {
startDrag ("");
}
on (release, releaseOutside) {
stopDrag();
if (this._x < 40) {
this._x = 40;
}
if (this._x > 440) {
this._x = 440;
}
if (this._y < 40) {
this._y = 40;
}
if (this._y > 320) {
this._y = 320;
}
}
on (release) {
var tgtname = ("/tgt" + this._name.substring(3));
if (_droptarget == tgtname) {
_x = _parent[_droptarget.substring(1)]._x;
_y = _parent[_droptarget.substring(1)]._y;
_root.ycnt = _root.ycnt - 1;
gotoAndPlay (2);
_parent[_droptarget.substring(1)]._visible = false;
}
}
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 2
stop();
Symbol 43 Button
on (press) {
startDrag ("");
}
on (release, releaseOutside) {
stopDrag();
if (this._x < 40) {
this._x = 40;
}
if (this._x > 440) {
this._x = 440;
}
if (this._y < 40) {
this._y = 40;
}
if (this._y > 320) {
this._y = 320;
}
}
on (release) {
var tgtname = ("/tgt" + this._name.substring(3));
if (_droptarget == tgtname) {
_x = _parent[_droptarget.substring(1)]._x;
_y = _parent[_droptarget.substring(1)]._y;
_root.ycnt = _root.ycnt - 1;
gotoAndPlay (2);
_parent[_droptarget.substring(1)]._visible = false;
}
}
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 2
stop();
Symbol 45 Button
on (press) {
startDrag ("");
}
on (release, releaseOutside) {
stopDrag();
if (this._x < 40) {
this._x = 40;
}
if (this._x > 440) {
this._x = 440;
}
if (this._y < 40) {
this._y = 40;
}
if (this._y > 320) {
this._y = 320;
}
}
on (release) {
var tgtname = ("/tgt" + this._name.substring(3));
if (_droptarget == tgtname) {
_x = _parent[_droptarget.substring(1)]._x;
_y = _parent[_droptarget.substring(1)]._y;
_root.ycnt = _root.ycnt - 1;
gotoAndPlay (2);
_parent[_droptarget.substring(1)]._visible = false;
}
}
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 2
stop();
Symbol 47 Button
on (press) {
startDrag ("");
}
on (release, releaseOutside) {
stopDrag();
if (this._x < 40) {
this._x = 40;
}
if (this._x > 440) {
this._x = 440;
}
if (this._y < 40) {
this._y = 40;
}
if (this._y > 320) {
this._y = 320;
}
}
on (release) {
var tgtname = ("/tgt" + this._name.substring(3));
if (_droptarget == tgtname) {
_x = _parent[_droptarget.substring(1)]._x;
_y = _parent[_droptarget.substring(1)]._y;
_root.ycnt = _root.ycnt - 1;
gotoAndPlay (2);
_parent[_droptarget.substring(1)]._visible = false;
}
}
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 2
stop();
Symbol 49 Button
on (press) {
startDrag ("");
}
on (release, releaseOutside) {
stopDrag();
if (this._x < 40) {
this._x = 40;
}
if (this._x > 440) {
this._x = 440;
}
if (this._y < 40) {
this._y = 40;
}
if (this._y > 320) {
this._y = 320;
}
}
on (release) {
var tgtname = ("/tgt" + this._name.substring(3));
if (_droptarget == tgtname) {
_x = _parent[_droptarget.substring(1)]._x;
_y = _parent[_droptarget.substring(1)]._y;
_root.ycnt = _root.ycnt - 1;
gotoAndPlay (2);
_parent[_droptarget.substring(1)]._visible = false;
}
}
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 2
stop();
Symbol 51 Button
on (press) {
startDrag ("");
}
on (release, releaseOutside) {
stopDrag();
if (this._x < 40) {
this._x = 40;
}
if (this._x > 440) {
this._x = 440;
}
if (this._y < 40) {
this._y = 40;
}
if (this._y > 320) {
this._y = 320;
}
}
on (release) {
var tgtname = ("/tgt" + this._name.substring(3));
if (_droptarget == tgtname) {
_x = _parent[_droptarget.substring(1)]._x;
_y = _parent[_droptarget.substring(1)]._y;
_root.ycnt = _root.ycnt - 1;
gotoAndPlay (2);
_parent[_droptarget.substring(1)]._visible = false;
}
}
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 2
stop();
Symbol 53 Button
on (press) {
startDrag ("");
}
on (release, releaseOutside) {
stopDrag();
if (this._x < 40) {
this._x = 40;
}
if (this._x > 440) {
this._x = 440;
}
if (this._y < 40) {
this._y = 40;
}
if (this._y > 320) {
this._y = 320;
}
}
on (release) {
var tgtname = ("/tgt" + this._name.substring(3));
if (_droptarget == tgtname) {
_x = _parent[_droptarget.substring(1)]._x;
_y = _parent[_droptarget.substring(1)]._y;
_root.ycnt = _root.ycnt - 1;
gotoAndPlay (2);
_parent[_droptarget.substring(1)]._visible = false;
}
}
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 2
stop();
Symbol 55 Button
on (press) {
startDrag ("");
}
on (release, releaseOutside) {
stopDrag();
if (this._x < 40) {
this._x = 40;
}
if (this._x > 440) {
this._x = 440;
}
if (this._y < 40) {
this._y = 40;
}
if (this._y > 320) {
this._y = 320;
}
}
on (release) {
var tgtname = ("/tgt" + this._name.substring(3));
if (_droptarget == tgtname) {
_x = _parent[_droptarget.substring(1)]._x;
_y = _parent[_droptarget.substring(1)]._y;
_root.ycnt = _root.ycnt - 1;
gotoAndPlay (2);
_parent[_droptarget.substring(1)]._visible = false;
}
}
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
stop();
Symbol 57 Button
on (press) {
startDrag ("");
}
on (release, releaseOutside) {
stopDrag();
if (this._x < 40) {
this._x = 40;
}
if (this._x > 440) {
this._x = 440;
}
if (this._y < 40) {
this._y = 40;
}
if (this._y > 320) {
this._y = 320;
}
}
on (release) {
var tgtname = ("/tgt" + this._name.substring(3));
if (_droptarget == tgtname) {
_x = _parent[_droptarget.substring(1)]._x;
_y = _parent[_droptarget.substring(1)]._y;
_root.ycnt = _root.ycnt - 1;
gotoAndPlay (2);
_parent[_droptarget.substring(1)]._visible = false;
}
}
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 2
stop();
Symbol 70 Button
on (release) {
InitObject();
gotoAndPlay (2);
}
Symbol 84 MovieClip Frame 40
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
gotoAndPlay (20);
Symbol 91 Button
on (release) {
gotoAndPlay (1);
}
Symbol 100 Button
on (release) {
nowlevel = nowlevel + 1;
timercount = 90;
InitObject();
gotoAndPlay (2);
}