Frame 1
function loadFinish() {
fade1.startFade();
this.gotoAndPlay(2);
}
Stage.scaleMode = "exactFit";
var menu = new ContextMenu();
menu.hideBuiltInItems();
menu.builtInItems.quality = true;
fade1._visible = false;
king.setMask(fade1);
this.stop();
Frame 2
function endFade() {
this.gotoAndStop(3);
}
stop();
function collideUFO() {
var boyoyon_size = 30;
var boyoyon_rot = 0;
if (sun.onEnterFrame === undefined) {
sun.r.max = false;
sun.r.min = false;
sun.onPress = function () {
sun.r.begin();
delete sun.onPress;
};
sun.onEnterFrame = function () {
if (sun.r.max) {
sun.r.max = false;
sun.onPress = function () {
sun.r.end();
delete sun.onPress;
};
}
if (sun.r.min) {
sun.r.min = false;
sun.r.finish();
sun.onEnterFrame = function () {
sun._y = sun._y + 3;
if (sun._y > 302) {
delete sun.onEnterFrame;
}
};
}
if (sun._y > 250) {
sun._y = sun._y - 3;
}
boyoyon_rot++;
sun._rotation = Math.sin(boyoyon_rot) * boyoyon_size;
boyoyon_size--;
if (boyoyon_size < 0) {
boyoyon_size = 0;
}
};
}
}
Instance of Symbol 232 MovieClip in Frame 2
on (press) {
_rotation = 0;
delete this.onEnterFrame;
play();
}
Instance of Symbol 232 MovieClip in Frame 3
on (press) {
_rotation = 0;
delete this.onEnterFrame;
play();
}
Frame 4
_quality = "high";
Mouse.show();
stop();
Instance of Symbol 252 MovieClip in Frame 4
on (rollOver) {
_xscale = 102;
_yscale = 102;
}
on (rollOut) {
_xscale = 100;
_yscale = 100;
}
on (press) {
_global.mode_name = "vs";
_global.katamari_max = 3;
_global.irruption_mode = false;
_root.gotoAndPlay("Game");
}
Instance of Symbol 254 MovieClip in Frame 4
on (rollOver) {
_xscale = 102;
_yscale = 102;
}
on (rollOut) {
_xscale = 100;
_yscale = 100;
}
on (press) {
_global.mode_name = "vs";
_global.katamari_max = 2;
_global.irruption_mode = false;
_root.gotoAndPlay("Game");
}
Instance of Symbol 256 MovieClip in Frame 4
on (rollOver) {
_xscale = 102;
_yscale = 102;
}
on (rollOut) {
_xscale = 100;
_yscale = 100;
}
on (press) {
_global.mode_name = "vs";
_global.katamari_max = 1;
_global.irruption_mode = false;
_root.gotoAndPlay("Game");
}
Instance of Symbol 258 MovieClip in Frame 4
on (rollOver) {
_xscale = 102;
_yscale = 102;
}
on (rollOut) {
_xscale = 100;
_yscale = 100;
}
on (press) {
_global.mode_name = "vs";
_global.katamari_max = 6;
_global.irruption_mode = false;
_root.gotoAndPlay("Game");
}
Instance of Symbol 269 MovieClip "p48" in Frame 4
/* no clip actions */
Instance of Symbol 272 MovieClip in Frame 4
on (press) {
var count = 0;
var size = 50;
this.onEnterFrame = function () {
_xscale = ((Math.sin(count) * size) + 100);
_yscale = ((Math.sin(count) * size) + 100);
count++;
size--;
if (size < 0) {
delete this.onEnterFrame;
}
};
}
Instance of Symbol 285 MovieClip in Frame 4
on (press) {
var s = new Sound();
s.attachSound("fw.wav");
s.setVolume(_global.volume);
s.start();
for (a in _parent) {
a = _parent[a];
if (a.aaa) {
a.vx = (Math.random() * 30) - 15;
a.vy = (-Math.random()) * 30;
}
}
this.onEnterFrame = function () {
for (a in _parent) {
a = _parent[a];
if (a.aaa) {
a._rotation = a._rotation + a.vx;
a._x = a._x + a.vx;
a._y = a._y + a.vy;
a.vy = a.vy + 2;
}
}
};
_parent.p48.onPress = function () {
_global.mode_name = "vs";
_global.katamari_max = 1;
_global.irruption_mode = true;
_root.gotoAndPlay("Game");
};
}
Frame 5
_quality = "low";
stop();
Instance of Symbol 344 MovieClip "map" in Frame 5
onClipEvent (mouseDown) {
if ((_root._xmouse > (_global.screen_width - 64)) && ((_root._ymouse > (_global.screen_height - 24)) || (_root._ymouse < 24))) {
} else {
var i = 1;
while (i <= katamaris.length) {
katamaris[i].crashAll();
i++;
}
}
}
Instance of Symbol 348 MovieClip "komado" in Frame 5
onClipEvent (load) {
_global.bgm.attachSound("FlashDamacy_BGM_loop.aif");
_global.bgm.start();
_global.bgm.onSoundComplete = function () {
_global.bgm.start(1.466, 999999);
};
}
onClipEvent (unload) {
_global.bgm.stop();
}
Symbol 20 MovieClip Frame 1
function adjustMaxVisible() {
if (_global.fps < 25) {
if (max_visible > 50) {
max_visible = max_visible - 5;
}
} else if (_global.fps > 28) {
if (max_visible < 300) {
max_visible = max_visible + 5;
}
}
}
function addMono(mono) {
adjustMaxVisible();
if ((monos.length != 0) && (monos[monos.length - 1].is_katamari || (monos[monos.length - 1].is_king))) {
var _local1 = monos[monos.length - 1];
monos[monos.length - 1] = mono;
monos.push(_local1);
} else {
monos.push(mono);
}
if (monos.length > max_visible) {
monos[monos.length - max_visible]._visible = false;
}
}
function removeMono(mono) {
var _local1 = monos.length - 1;
while (_local1 >= 0) {
if (mono === monos[_local1]) {
monos.splice(_local1, 1);
break;
}
_local1--;
}
}
function resetVisible() {
adjustMaxVisible();
var _local2 = 0;
var _local1 = monos.length - 1;
while (_local1 >= 0) {
monos[_local1]._visible = ((_local2 < max_visible) ? true : false);
_local2++;
_local1--;
}
}
var monos = [];
var max_visible = 200;
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 2
stop();
Symbol 119 MovieClip Frame 3
stop();
Symbol 119 MovieClip Frame 4
stop();
Symbol 119 MovieClip Frame 5
stop();
Symbol 119 MovieClip Frame 6
stop();
Symbol 119 MovieClip Frame 7
stop();
Symbol 119 MovieClip Frame 8
stop();
Symbol 119 MovieClip Frame 9
stop();
Symbol 119 MovieClip Frame 10
stop();
Symbol 119 MovieClip Frame 11
stop();
Symbol 119 MovieClip Frame 12
stop();
Symbol 119 MovieClip Frame 13
stop();
Symbol 119 MovieClip Frame 14
stop();
Symbol 119 MovieClip Frame 15
stop();
Symbol 119 MovieClip Frame 16
stop();
Symbol 119 MovieClip Frame 17
stop();
Symbol 119 MovieClip Frame 18
stop();
Symbol 119 MovieClip Frame 19
stop();
Symbol 119 MovieClip Frame 20
stop();
Symbol 119 MovieClip Frame 21
stop();
Symbol 119 MovieClip Frame 22
stop();
Symbol 119 MovieClip Frame 23
stop();
Symbol 119 MovieClip Frame 24
stop();
Symbol 119 MovieClip Frame 25
stop();
Symbol 119 MovieClip Frame 26
stop();
Symbol 119 MovieClip Frame 27
stop();
Symbol 119 MovieClip Frame 28
stop();
Symbol 119 MovieClip Frame 29
stop();
Symbol 119 MovieClip Frame 30
stop();
Symbol 119 MovieClip Frame 31
stop();
Symbol 119 MovieClip Frame 32
stop();
Symbol 119 MovieClip Frame 33
stop();
Symbol 119 MovieClip Frame 34
stop();
Symbol 119 MovieClip Frame 35
stop();
Symbol 119 MovieClip Frame 36
stop();
Symbol 119 MovieClip Frame 37
stop();
Symbol 119 MovieClip Frame 38
stop();
Symbol 119 MovieClip Frame 39
stop();
Symbol 119 MovieClip Frame 40
stop();
Symbol 119 MovieClip Frame 41
stop();
Symbol 119 MovieClip Frame 42
stop();
Symbol 119 MovieClip Frame 43
stop();
Symbol 119 MovieClip Frame 44
stop();
Symbol 119 MovieClip Frame 45
stop();
Symbol 119 MovieClip Frame 46
stop();
Symbol 119 MovieClip Frame 47
stop();
Symbol 119 MovieClip Frame 48
stop();
Symbol 124 MovieClip [Katamari] Frame 1
function clamp(x, min, max) {
if (x < min) {
return(min);
}
if (x > max) {
return(max);
}
return(x);
}
function randRange(min, max) {
return((Math.random() * (max - min)) + min);
}
function collideK(k) {
var _local4 = k.core.monos;
var _local3 = 0;
while (_local3 < _local4.length) {
var _local2 = _local4[_local3];
var _local8 = _local2.body._width * _local2.body._height;
var _local7 = core.getNextHighestDepth();
core.attachMovie("Mono", "mono" + _local7, _local7);
var _local5 = core["mono" + _local7];
_local5.attachMovie(_local2.body.name, "body", 1);
_local5._x = randRange((-hit._width) / 2, hit._width / 2);
_local5._y = randRange((-hit._height) / 2, hit._height / 2);
_local5._rotation = randRange(0, 360);
_local5.holded = true;
_local5.stop();
addVolume(_local8);
if (_local2.body.name == "MonoPrince") {
_local5.first_size = _local2.first_size;
_local5.last_vvolume = _local2.last_vvolume;
_local5.body.gotoAndStop(_local2.body._currentFrame);
}
_local2.removeMovieClip();
_local3++;
}
k.core.monos.splice(0, _local4.length);
var _local7 = core.getNextHighestDepth();
core.attachMovie("Mono", "mono" + _local7, _local7, {is_katamari:true});
var _local5 = core["mono" + _local7];
_local5.attachMovie("MonoPrince", "body", 1);
_local5._x = randRange((-hit._width) / 2, hit._width / 2);
_local5._y = randRange((-hit._height) / 2, hit._height / 2);
_local5._rotation = randRange(0, 360);
_local5.holded = true;
_local5.stop();
_local5.body.gotoAndStop(k.player_num);
_local5.first_size = k.first_size;
_local5.last_vvolume = k.vvolume - first_vvolume;
var _local8 = _local5.body._width * _local5.body._height;
addVolume(_local8);
_parent._parent.komado.displayK(k.player_num, player_num);
_parent.katamaris[k.player_num] = undefined;
k.removeMovieClip();
}
function collideG(mono) {
if (!mono._visible) {
return(true);
}
var _local5 = mono._width * mono._height;
if (hit.hitTest(mono)) {
if (_local5 < (vvolume * 0.2)) {
mono.endurance--;
if (mono.endurance > 0) {
return(false);
}
mono._visible = false;
var _local4 = core.getNextHighestDepth();
core.attachMovie("Mono", "mono" + _local4, _local4);
var _local2 = core["mono" + _local4];
_local2.attachMovie("MonoGround", "body", 1);
_local2._x = randRange((-hit._width) / 2, hit._width / 2);
_local2._y = randRange((-hit._height) / 2, hit._height / 2);
_local2._rotation = randRange(0, 360);
_local2.holded = true;
_local2.stop();
addVolume(_local5);
_parent._parent.komado.display("MonoGround", player_num);
return(true);
}
}
return(false);
}
function collide(mono) {
if (inv_time > 0) {
return(undefined);
}
var _local8 = mono.body._width * mono.body._height;
if (hit.hitTest(mono.body)) {
if (_local8 < (vvolume * 0.75)) {
var _local12 = core.getNextHighestDepth();
core.attachMovie("Mono", "mono" + _local12, _local12);
var _local4 = core["mono" + _local12];
_local4.attachMovie(mono.body.name, "body", 1);
_local4._x = randRange((-hit._width) / 2, hit._width / 2);
_local4._y = randRange((-hit._height) / 2, hit._height / 2);
_local4._rotation = randRange(0, 360);
_local4.holded = true;
_local4.stop();
addVolume(_local8);
if (mono.body.name == "MonoKing") {
_local4.is_king = true;
}
_parent._parent.komado.display(mono.body.name, player_num);
mono.remove();
} else if (mono.body.name == "MonoKing") {
var _local6 = _local8 - (vvolume * 0.75);
var _local5 = clamp(mono.kvelx / 5, -10, 10);
if (Math.abs(_local5) > 3) {
dropping = true;
_rotation = randRange(0, 360);
vdx = _local5 * (1 + (_local6 * 0.0005));
fallmax = (fall = (Math.abs(_local5) * 2) + Math.abs(_local5 * (1 + (_local6 * 0.0005))));
vdy = -((Math.random() * 5) + 5);
crash(Math.abs(vdx * 0.5));
} else {
var _local11 = _x - (mono._x - (mono.kvelx * 3));
var _local10 = _y - (mono._y - (mono.kvely * 3));
var _local9 = Math.sqrt((_local11 * _local11) + (_local10 * _local10));
var _local7 = Math.sqrt((dx * dx) + (dy * dy));
if (_local9 != 0) {
_local7 = clamp(_local7, -5, 5);
dx = dx + (((_local11 / _local9) * _local7) * 3);
dy = dy + (((_local10 / _local9) * _local7) * 3);
}
}
} else {
var _local6 = _local8 - (vvolume * 0.75);
var _local13 = mono.collide(_local6);
var _local5 = mono.getVel();
if (_local5) {
if (_local13 && (Math.abs(_local5) > 3)) {
dropping = true;
_rotation = randRange(0, 360);
vdx = (-_local5) * (1 + (_local6 * 0.0005));
vdx = clamp(vdx, -15, 15);
fallmax = (fall = (Math.abs(_local5) * 2) + (Math.abs(_local5 * (1 + (_local6 * 0.0005))) * 0.5));
vdy = (-fallmax) * 0.25;
crash(Math.abs(vdx * 0.5));
} else {
dx = (-_local5) * (1 + (_local6 * 0.0005));
var _local3 = 0;
do {
if (!hit.hitTest(mono.body)) {
break;
}
_x = (_x + dx);
_local3++;
} while (_local3 <= 2);
}
} else {
dx = (-dx) / 2;
dy = -dy;
var _local3 = 0;
do {
if (!hit.hitTest(mono.body)) {
break;
}
_x = (_x + dx);
_y = (_y + dy);
_local3++;
} while (_local3 <= 10);
}
}
}
}
function targeting() {
if (_parent.monos[0].body.name != "MonoKing") {
if (!((0 <= target) && (target < _parent.monos.length))) {
target = Math.floor(Math.random() * _parent.monos.length);
}
} else {
target_count--;
if (target_count < 0) {
if (target == -1) {
target = Math.floor(Math.random() * _parent.monos.length);
target_count = (Math.random() * 100) + 50;
} else {
target = -1;
target_count = (Math.random() * 50) + 50;
}
}
}
}
function dropping_update() {
if (fallmax > 2) {
_rotation = (_rotation + (vdx * 2));
_x = (_x + vdx);
_y = (_y + vdy);
vdy = vdy + 0.5;
fall--;
if (fall < 0) {
vdy = (-vdy) * 0.4;
vdx = vdx * 0.9;
fall = fallmax / 2;
fallmax = fall;
if (fallmax <= 2) {
_rotation = (Math.abs(_rotation) % 360);
}
}
} else {
_rotation = (_rotation * 0.6);
if (Math.abs(_rotation) < 5) {
dropping = false;
_rotation = 0;
}
}
_x = clamp(_x, hit._width / 2, _global.world_width - (hit._width / 2));
_y = clamp(_y, hit._height / 2, _global.world_height - (hit._height / 2));
}
function update() {
if (_rotation == 0) {
if (pname._visible) {
pname_alpha = pname_alpha - 5;
if (pname_alpha < 0) {
pname._visible = false;
}
}
} else {
pname._visible = false;
}
if (dropping) {
dropping_update();
return(undefined);
}
var _local6 = _xmouse / 10;
var _local5 = _ymouse / 10;
if (_parent.monos[0].body.name == "MonoKing") {
_local6 = (_parent.monos[0]._x + target_offsetx) - _x;
_local5 = (_parent.monos[0]._y + target_offsety) - _y;
} else {
switch (Math.floor(target_area_pos / 30) % 4) {
case 0 :
_local6 = 0;
_local5 = 0;
break;
case 1 :
_local6 = _global.screen_width;
_local5 = 0;
break;
case 2 :
_local6 = _global.screen_width;
_local5 = _global.screen_height;
break;
case 3 :
_local6 = 0;
_local5 = _global.screen_height;
}
_local6 = _local6 - _x;
_local5 = _local5 - _y;
target_area_pos++;
}
var _local10 = 0.85;
var _local9 = 0.85;
if ((_parent.monos[0].body.name == "MonoKing") && (!_parent.king_control)) {
_parent.king_control = true;
} else {
targeting();
if ((0 <= target) && (target < _parent.monos.length)) {
var _local8 = _parent.monos[target];
var _local12 = _local8.body._width * _local8.body._height;
if (_local12 < (vvolume * 0.75)) {
_local6 = _local8._x - _x;
_local5 = _local8._y - _y;
} else {
target = -1;
}
} else {
target = -1;
}
}
prince._rotation = (Math.atan2(_local5, _local6) * 180) / Math.PI;
if ((prince._rotation < -90) || (prince._rotation > 90)) {
prince._rotation = prince._rotation + 180;
prince._xscale = -100;
} else {
prince._xscale = 100;
}
var _local7 = (vvolume / 30000) + 0.8;
_local6 = clamp(_local6, -_local7, _local7);
_local5 = clamp(_local5, -_local7, _local7);
damege = damege * 0.9;
if (damege > 0.02) {
_local10 = 0.8;
_local9 = 0.8;
}
if (damege < -0.02) {
_local10 = 0.9;
_local9 = 0.9;
}
if ((_parent.grounds[0]._width * _parent.grounds[0]._height) < (vvolume * 0.2)) {
var _local4 = 0;
while (_local4 < _parent.grounds.length) {
collideG(_parent.grounds[_local4]);
_local4++;
}
_parent.cong_visible = true;
}
dx = dx + _local6;
dy = dy + _local5;
dx = dx * _local10;
dy = dy * _local9;
_x = (_x + dx);
_y = (_y + dy);
_x = clamp(_x, hit._width * 0.25, _global.world_width - (hit._width * 0.25));
_y = clamp(_y, hit._height * 0.25, _global.world_height - (hit._height * 0.25));
if ((Math.abs(dx) < 3) && ((Math.abs(dx) * 4) < Math.abs(dy))) {
core._rotation = core._rotation + ((dy * 2) / _local7);
} else {
core._rotation = core._rotation + ((dx * 2) / _local7);
}
var _local11 = Math.sqrt(vvolume);
hit._width = _local11;
hit._height = _local11;
inv_time--;
if (inv_time < 0) {
inv_time = 0;
}
_parent.collideTest(this);
if (crashing) {
crash(10);
}
core.core._width = hit._width;
core.core._height = hit._height;
}
function crashAll() {
crashing = true;
if (core.monos.length != 0) {
_parent._parent.komado.playSound("Crash");
}
}
function addVolume(n) {
vvolume = vvolume + (n * grow_rate);
if (vvolume < first_vvolume) {
vvolume = first_vvolume;
}
var _local1 = Math.sqrt(vvolume);
hit._width = _local1;
hit._height = _local1;
}
function subVolume(n) {
addVolume(-n);
}
function holdMono(mono) {
var _local2 = core.getNextHighestDepth();
core.attachMovie("Mono", "mono" + _local2, _local2);
var _local1 = core["mono" + _local2];
_local1.attachMovie(mono.body.name, "body", 1);
_local1._x = randRange((-hit._width) / 2, hit._width / 2);
_local1._y = randRange((-hit._height) / 2, hit._height / 2);
_local1._rotation = randRange(0, 360);
_local1.holded = true;
_local1.stop();
addVolume(mono_size);
}
function crashRate(rate) {
crash(core.monos.length * rate);
}
function crash(num) {
var _local4 = core.monos;
if ((num === undefined) || (num >= _local4.length)) {
num = _local4.length;
}
num = Math.floor(num);
if (num <= 0) {
return(undefined);
}
_parent._parent.komado.playSoundCollide();
inv_time = 30;
var _local7;
var _local8 = 0;
while (_local8 < num) {
if (((_local4.length - 1) - _local8) < 0) {
break;
}
var _local2 = _local4[(_local4.length - 1) - _local8];
var _local5 = _local2.body._width * _local2.body._height;
subVolume(_local5);
if (_local2.body.name == "MonoPrince") {
var _local11 = _local2.body._currentFrame;
var _local6 = _parent.makeKatamari(_local11, _local2.first_size, _x, _y);
_local6.dropping = true;
_local6._x = _x + randRange((-hit._width) / 2, hit._width / 2);
_local6._y = _y + randRange((-hit._width) / 2, hit._width / 2);
_local6._rotation = randRange(0, 360);
_local6.vdx = (Math.random() * 20) - 10;
_local6.vdy = -(Math.random() * 10);
_local6.fallmax = (_local6.fall = (Math.random() * 15) + 15);
if (_local7 === undefined) {
_local7 = [];
}
_local7.push([_local11, _local2.last_vvolume]);
_local2.removeMovieClip();
} else {
var _local6 = _parent.makeMono(_local2.body.name);
_local6._x = _x + randRange((-hit._width) / 2, hit._width / 2);
_local6._y = _y + randRange((-hit._width) / 2, hit._width / 2);
_local6._rotation = _rotation + randRange(0, 360);
_local6.crashed = true;
_local6.rev = Math.random() < 0.5;
_local2.removeMovieClip();
}
_local8++;
}
_local4.splice(_local4.length - num, num);
if ((!crashing) && (!(_local7 === undefined))) {
_local8 = 0;
while (_local8 < _local7.length) {
var _local6 = _parent.katamaris[_local7[_local8][0]];
var _local10 = _local7[_local8][1];
_local6.presents = [];
var _local9 = 0;
var _local3 = 0;
while (_local3 < _local4.length) {
var _local2 = _local4[_local3];
var _local5 = _local2.body._width * _local2.body._height;
if (_local2.body.name == "MonoPrince") {
break;
}
subVolume(_local5);
_local6.presents.push(_local2.body.name);
_local2.removeMovieClip();
_local9 = _local9 + (_local5 * grow_rate);
if (_local9 > _local10) {
break;
}
_local3++;
}
if (_local6.presents.length > 0) {
_local4.splice(0, _local6.presents.length);
}
_local8++;
}
}
if (_local4.length < 1) {
vvolume = first_vvolume;
crashing = false;
}
core.resetVisible();
}
var inv_time = 0;
var dx = 0;
var dy = 0;
var grow_rate = 0.2;
var crashing = false;
var target = -1;
var target_count = 0;
var target_offsetx = 0;
var target_offsety = 0;
var target_area_pos = 0;
var damege = 0;
var pname_alpha = 300;
pname.txt = _parent._parent.komado.getPrinceName(player_num);
if (dropping) {
pname._visible = false;
}
if (first_size === undefined) {
first_size = 1;
}
core.core._width = core.core._width * first_size;
core.core._height = core.core._height * first_size;
var first_vvolume = (((20 * first_size) * 20) * first_size);
var vvolume = first_vvolume;
hit._width = Math.sqrt(vvolume);
hit._height = Math.sqrt(vvolume);
hit._visible = false;
prince.gotoAndStop(player_num);
if (!(presents === undefined)) {
var i = 0;
while (i < presents.length) {
var depth = core.getNextHighestDepth();
core.attachMovie("Mono", "mono" + depth, depth);
var obj = core["mono" + depth];
obj.attachMovie(presents[i], "body", 1);
obj._x = randRange((-hit._width) / 2, hit._width / 2);
obj._y = randRange((-hit._height) / 2, hit._height / 2);
obj._rotation = randRange(0, 360);
obj.holded = true;
obj.stop();
var mono_size = (obj.body._width * obj.body._height);
addVolume(mono_size);
i++;
}
presents = undefined;
}
this.onEnterFrame = update;
stop();
Symbol 129 MovieClip [MonoYankee] Frame 1
var name = "MonoYankee";
var velx = 5;
Symbol 129 MovieClip [MonoYankee] Frame 16
this.gotoAndPlay(2);
Symbol 134 MovieClip [MonoObasan] Frame 1
var name = "MonoObasan";
var velx = 4.5;
Symbol 134 MovieClip [MonoObasan] Frame 12
this.gotoAndPlay(2);
Symbol 137 MovieClip [MonoKing] Frame 1
var name = "MonoKing";
var nocheck_worldin = true;
stop();
Symbol 142 MovieClip [MonoOssan] Frame 1
var name = "MonoOssan";
var velx = 1;
Symbol 142 MovieClip [MonoOssan] Frame 22
this.gotoAndPlay(2);
Symbol 147 MovieClip [MonoBoy] Frame 1
var name = "MonoBoy";
var velx = 3;
Symbol 147 MovieClip [MonoBoy] Frame 19
this.gotoAndPlay(2);
Symbol 150 MovieClip [MonoFireCar] Frame 1
var name = "MonoFireCar";
var velx = 10;
stop();
Symbol 155 MovieClip [MonoYankeeCar] Frame 1
var name = "MonoYankeeCar";
var velx = 12;
stop();
Symbol 155 MovieClip [MonoYankeeCar] Frame 6
this.gotoAndPlay(2);
Symbol 158 MovieClip [MonoCar] Frame 1
var name = "MonoCar";
var velx = 7;
stop();
Symbol 161 MovieClip [MonoKamome] Frame 1
var name = "MonoKamome";
var velx = 4;
var vely = ((Math.random() * 2) - 1);
Symbol 161 MovieClip [MonoKamome] Frame 2
if (Math.random() < 0.01) {
_parent._parent.makeMono("MonoEgg", _parent._x, _parent._y);
}
Symbol 161 MovieClip [MonoKamome] Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 164 MovieClip [MonoEgg] Frame 1
var name = "MonoEgg";
Symbol 164 MovieClip [MonoEgg] Frame 2
if (Math.random() < 0.01) {
var obj = _parent._parent.makeMono("MonoHiyoko", _parent._x, _parent._y);
obj.rev = Math.random() < 0.5;
_parent.remove();
}
Symbol 164 MovieClip [MonoEgg] Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 169 MovieClip [MonoGirl] Frame 1
var name = "MonoGirl";
var velx = 2;
Symbol 169 MovieClip [MonoGirl] Frame 15
this.gotoAndPlay(2);
Symbol 172 MovieClip [MonoHiyoko] Frame 1
var name = "MonoHiyoko";
var velx = 1;
stop();
Symbol 176 MovieClip [MonoGround] Frame 1
var name = "MonoGround";
var nocheck_worldin = true;
Symbol 176 MovieClip [MonoGround] Frame 2
function initg(i) {
number = i;
_root.map.grounds[i]._visible = true;
_root.map.grounds[i]._alpha = 0;
_root.map.grounds[i].init();
}
var number = -1;
if (Math.random() < 0.5) {
var i = 0;
while (i < _root.map.grounds.length) {
if (!_root.map.grounds[i]._visible) {
initg(i);
break;
}
i++;
}
} else {
var i = (_root.map.grounds.length - 1);
while (i >= 0) {
if (!_root.map.grounds[i]._visible) {
initg(i);
break;
}
i--;
}
}
Symbol 176 MovieClip [MonoGround] Frame 3
_root.map.grounds[i]._alpha = _root.map.grounds[i]._alpha + 20;
if (_root.map.grounds[i]._alpha > 100) {
_root.map.grounds[i]._alpha = 100;
}
Symbol 176 MovieClip [MonoGround] Frame 4
_root.map.grounds[i]._alpha = _root.map.grounds[i]._alpha + 20;
if (_root.map.grounds[i]._alpha > 100) {
_root.map.grounds[i]._alpha = 100;
}
Symbol 176 MovieClip [MonoGround] Frame 5
_root.map.grounds[i]._alpha = _root.map.grounds[i]._alpha + 20;
if (_root.map.grounds[i]._alpha > 100) {
_root.map.grounds[i]._alpha = 100;
}
Symbol 176 MovieClip [MonoGround] Frame 6
_root.map.grounds[i]._alpha = _root.map.grounds[i]._alpha + 20;
if (_root.map.grounds[i]._alpha > 100) {
_root.map.grounds[i]._alpha = 100;
}
Symbol 176 MovieClip [MonoGround] Frame 7
_root.map.grounds[i]._alpha = _root.map.grounds[i]._alpha + 20;
if (_root.map.grounds[i]._alpha > 100) {
_root.map.grounds[i]._alpha = 100;
}
Symbol 176 MovieClip [MonoGround] Frame 8
_root.map.grounds[i]._alpha = _root.map.grounds[i]._alpha + 30;
if (_root.map.grounds[i]._alpha > 100) {
_root.map.grounds[i]._alpha = 100;
}
Symbol 176 MovieClip [MonoGround] Frame 9
_root.map.grounds[i]._alpha = 100;
_parent.remove();
Symbol 179 MovieClip [MonoTree] Frame 1
var name = "MonoTree";
stop();
Symbol 179 MovieClip [MonoTree] Frame 2
var name = "MonoTree";
play();
Symbol 179 MovieClip [MonoTree] Frame 20
this.gotoAndPlay(1);
Symbol 182 MovieClip [MonoMelon] Frame 1
var name = "MonoMelon";
stop();
Symbol 182 MovieClip [MonoMelon] Frame 2
var name = "MonoMelon";
play();
Symbol 182 MovieClip [MonoMelon] Frame 20
Symbol 182 MovieClip [MonoMelon] Frame 21
if (Math.random() < 0.005) {
this.gotoAndPlay(_currentframe + 2);
}
Symbol 182 MovieClip [MonoMelon] Frame 22
this.gotoAndPlay(_currentframe - 1);
Symbol 182 MovieClip [MonoMelon] Frame 40
_parent.remove();
Symbol 187 MovieClip [MonoDaikon] Frame 1
var name = "MonoDaikon";
stop();
Symbol 187 MovieClip [MonoDaikon] Frame 2
var name = "MonoDaikon";
play();
Symbol 187 MovieClip [MonoDaikon] Frame 20
Symbol 187 MovieClip [MonoDaikon] Frame 21
if (Math.random() < 0.005) {
this.gotoAndPlay(_currentframe + 2);
}
Symbol 187 MovieClip [MonoDaikon] Frame 22
this.gotoAndPlay(_currentframe - 1);
Symbol 187 MovieClip [MonoDaikon] Frame 40
_parent.remove();
Symbol 190 MovieClip [MonoLemon] Frame 1
var name = "MonoLemon";
stop();
Symbol 190 MovieClip [MonoLemon] Frame 2
var name = "MonoLemon";
play();
Symbol 190 MovieClip [MonoLemon] Frame 20
Symbol 190 MovieClip [MonoLemon] Frame 21
if (Math.random() < 0.005) {
this.gotoAndPlay(_currentframe + 2);
}
Symbol 190 MovieClip [MonoLemon] Frame 22
this.gotoAndPlay(_currentframe - 1);
Symbol 190 MovieClip [MonoLemon] Frame 40
_parent.remove();
Symbol 193 MovieClip [MonoKinoko] Frame 1
var name = "MonoKinoko";
stop();
Symbol 193 MovieClip [MonoKinoko] Frame 2
var name = "MonoKinoko";
play();
Symbol 193 MovieClip [MonoKinoko] Frame 20
Symbol 193 MovieClip [MonoKinoko] Frame 21
if (Math.random() < 0.005) {
this.gotoAndPlay(_currentframe + 2);
}
Symbol 193 MovieClip [MonoKinoko] Frame 22
this.gotoAndPlay(_currentframe - 1);
Symbol 193 MovieClip [MonoKinoko] Frame 40
_parent.remove();
Symbol 194 MovieClip [MonoPrince] Frame 1
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 2
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 3
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 4
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 5
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 6
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 7
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 8
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 9
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 10
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 11
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 12
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 13
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 14
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 15
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 16
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 17
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 18
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 19
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 20
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 21
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 22
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 23
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 24
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 25
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 26
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 27
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 28
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 29
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 30
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 31
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 32
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 33
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 34
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 35
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 36
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 37
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 38
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 39
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 40
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 41
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 42
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 43
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 44
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 45
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 46
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 47
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 194 MovieClip [MonoPrince] Frame 48
var name = "MonoPrince";
var velx = 3;
var nocheck_worldin = true;
if (!(_parent.first_size === undefined)) {
core._xscale = _parent.first_size * 100;
core._yscale = _parent.first_size * 100;
}
stop();
Symbol 199 MovieClip [MonoDog] Frame 1
var name = "MonoDog";
var velx = 3;
Symbol 199 MovieClip [MonoDog] Frame 14
this.gotoAndPlay(2);
Symbol 204 MovieClip [MonoCat] Frame 1
var name = "MonoCat";
var velx = 1.5;
Symbol 204 MovieClip [MonoCat] Frame 16
this.gotoAndPlay(2);
Symbol 205 MovieClip [Mono] Frame 1
function world_in() {
if (body.nocheck_worldin) {
return(undefined);
}
if ((((_x < 0) || (_x > world_width)) || (_y < 0)) || (_y > world_height)) {
remove();
}
}
function kingUpdate() {
if (crashed) {
return(undefined);
}
kvelx = _xmouse / 3;
kvely = _ymouse / 3;
_x = (_x + kvelx);
_y = (_y + kvely);
}
function collide(power) {
if ((power == 0) || (body.name == "MonoKing")) {
return(true);
}
power = (1 / power) * 2000;
if (power > 5) {
if (power > 30) {
power = 30;
}
rotvel = ((Math.random() < 0.5) ? (power) : (-power));
this.gotoAndPlay("gura");
return(false);
}
return(true);
}
function remove() {
body.onRemove();
_parent.removeMono(this);
delete this.onEnterFrame;
this.removeMovieClip();
}
function getVel() {
if (body.velx) {
return(body.velx);
}
return(0);
}
var rotvel = 0;
var guraed = false;
var kvelx = 0;
var kvely = 0;
_parent.addMono(this);
if (body.name == "MonoKing") {
if (crashed) {
this.gotoAndPlay("crash");
} else {
this.gotoAndPlay("king_move");
}
} else if (crashed) {
this.gotoAndPlay("crash");
} else if (holded) {
body.stop();
this.gotoAndPlay("hold");
} else {
this.gotoAndPlay("move");
}
Symbol 205 MovieClip [Mono] Frame 2
var dx = ((Math.random() * 20) - 10);
var dy = (-(Math.random() * 10));
var fall = ((Math.random() * 15) + 15);
var fallmax = fall;
Symbol 205 MovieClip [Mono] Frame 3
this.onEnterFrame = function () {
if (fallmax > 2) {
_rotation = (_rotation + (dx * 2));
_x = (_x + dx);
_y = (_y + dy);
dy = dy + 0.5;
fall--;
if (fall < 0) {
dy = (-dy) * 0.4;
dx = dx * 0.9;
fall = fallmax * 0.5;
fallmax = fall;
if (fallmax <= 2) {
_rotation = (Math.abs(rotation) % 360);
}
}
} else {
_rotation = (_rotation * 0.6);
if (Math.abs(_rotation) < 5) {
crashed = false;
_rotation = 0;
if (body.name == "MonoKing") {
this.gotoAndPlay("king_move");
} else {
this.gotoAndPlay("move");
body.gotoAndPlay("land");
}
delete this.onEnterFrame;
}
}
world_in();
};
stop();
Symbol 205 MovieClip [Mono] Frame 4
if (body.velx) {
if (rev) {
body.velx = -Math.abs(body.velx);
body._xscale = -100;
} else {
body.velx = Math.abs(body.velx);
body._xscale = 100;
}
}
this.onEnterFrame = function () {
if (body.velx) {
_x = (_x - body.velx);
}
if (body.vely) {
_y = (_y - body.vely);
}
world_in();
};
stop();
Symbol 205 MovieClip [Mono] Frame 5
stop();
Symbol 205 MovieClip [Mono] Frame 6
this.onEnterFrame = function () {
rotvel = rotvel * 0.8;
_rotation = (_rotation + rotvel);
guraed = true;
if (Math.abs(rotvel) < 4) {
rotvel = 0;
guraed = false;
delete this.onEnterFrame;
_rotation = 0;
if (body.name == "MonoKing") {
this.gotoAndPlay("king_move");
} else {
this.gotoAndPlay("move");
body.gotoAndPlay("land");
}
}
};
stop();
Symbol 205 MovieClip [Mono] Frame 7
stop();
Symbol 206 MovieClip [MapGround] Frame 1
function init() {
endurance = (Math.random() * 25) + 25;
}
_parent._parent.addGround(this);
var endurance = 10;
init();
stop();
Symbol 210 MovieClip [LoadingCh] Frame 287
this.removeMovieClip();
Symbol 212 MovieClip [RainbowPiece] Frame 1
this.onEnterFrame = function () {
_rotation = (_rotation + 8);
};
Symbol 212 MovieClip [RainbowPiece] Frame 47
stop();
Symbol 214 MovieClip [KingRainbow] Frame 1
function begin() {
_alpha = 100;
count = 0;
rot = 0;
rrr = 0;
max = false;
min = false;
this.onEnterFrame = function () {
if ((count % 5) == 0) {
this.attachMovie("RainbowPiece", "r" + count, this.getNextHighestDepth());
var _local2 = this["r" + count];
_local2._rotation = rot;
}
rrr = rrr + 8;
if (rrr >= 360) {
rot = 20;
}
if (rrr >= 720) {
max = true;
delete this.onEnterFrame;
}
count++;
};
}
function end() {
_alpha = 100;
alpha = 100;
max = false;
min = false;
var _local2 = 0;
while (_local2 < count) {
this["r" + _local2]._xscale = 5;
_local2++;
}
this.onEnterFrame = function () {
alpha = alpha - 2;
if (alpha < 0) {
var _local2 = 0;
while (_local2 < count) {
this["r" + _local2].removeMovieClip();
_local2++;
}
min = true;
delete this.onEnterFrame;
} else {
_alpha = alpha;
}
};
}
var count = 0;
var rot = 0;
var rrr = 0;
var alpha = 100;
var max = false;
var min = false;
stop();
Symbol 219 MovieClip Frame 1
var message = " ";
var messages = ["Now loading... ", "Lalalalala... ", "Loading... Too much stuff! Forgetting... ", "Too much stuff to load... ", "Ka-ta-ma-ri Da-ma-cy ", "Na na na na na na na na... ", "Hmm... ", "A little more... ", "Hang on... ", "Nearly finished... "];
var count = 0;
var end = false;
var finish = false;
king.gotoAndStop(1);
Symbol 219 MovieClip Frame 5
var pr = _parent;
var n = pr.getNextHighestDepth();
pr.attachMovie("LoadingCh", "l" + n, n);
var obj = pr["l" + n];
obj._x = king._x + _x;
obj._y = king._y + _y;
obj.txt = message.substr(count, 1);
count = (count + 1) % message.length;
if (count == 0) {
if (end && (!finish)) {
finish = true;
_parent._parent.loadFinish();
}
var ret = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (ret >= 100) {
message = "Loading... ";
end = true;
} else {
message = messages[Math.floor(ret / 10)];
}
}
if (obj.txt != " ") {
king.gotoAndStop(2);
}
Symbol 219 MovieClip Frame 8
king.gotoAndStop(1);
this.gotoAndPlay(2);
Symbol 223 MovieClip Frame 1
function startFade() {
fade = true;
}
var fade = false;
_xscale = 1500;
_yscale = 1500;
this.onEnterFrame = function () {
if (fade) {
_rotation = (_rotation + 60);
_xscale = (_xscale - 50);
_yscale = (_yscale - 50);
if (_xscale < 100) {
_xscale = 100;
_yscale = 100;
delete this.onEnterFrame;
_visible = false;
_parent.endFade();
}
}
};
stop();
Symbol 227 MovieClip Frame 1
_xscale = 1500;
_yscale = 1500;
this.onEnterFrame = function () {
_rotation = (_rotation + 73);
_xscale = (_xscale - 50);
_yscale = (_yscale - 50);
if (_xscale < 100) {
_xscale = 100;
_yscale = 100;
delete this.onEnterFrame;
_visible = false;
}
};
stop();
Symbol 229 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 1
var count = 0;
this.onEnterFrame = function () {
if ((count / 4) == 0) {
_rotation = -15;
} else if ((count / 4) == 1) {
_rotation = 15;
} else if ((count / 4) == 2) {
_rotation = -15;
} else if ((count / 4) == 3) {
_rotation = 15;
}
count++;
count = count % 40;
};
stop();
Symbol 232 MovieClip Frame 14
_parent.collideUFO();
Symbol 239 Button
on (press) {
_root.gotoAndPlay("Manual", 1);
_global.volume = 25;
_global.se = [];
_global.bgm = new Sound();
_global.bgm.setVolume(_global.volume);
_global.fps = 30;
_global.irruption_mode = false;
}
on (rollOver) {
b._xscale = 102;
b._yscale = 102;
}
on (rollOut) {
b._xscale = 100;
b._yscale = 100;
}
Symbol 242 Button
on (press) {
_root.gotoAndPlay("Manual", 1);
_global.volume = 25;
_global.se = [];
_global.bgm = new Sound();
_global.bgm.setVolume(_global.volume);
_global.fps = 30;
}
on (rollOver) {
b._xscale = 102;
b._yscale = 102;
}
on (rollOut) {
b._xscale = 100;
b._yscale = 100;
}
Symbol 250 MovieClip Frame 1
var dx = 0.18;
Symbol 250 MovieClip Frame 2
_x = (_x - dx);
if ((_x > 200) || (_x < -200)) {
dx = -dx;
_x = (_x + dx);
}
Symbol 250 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 263 MovieClip Frame 1
gotoAndStop((_global.volume / 25) + 1);
this.onPress = function () {
_global.volume = (_global.volume + 25) % 100;
gotoAndStop((_global.volume / 25) + 1);
var _local2 = 0;
while (_local2 < _global.se.length) {
se[_local2].setVolume(_global.volume);
_local2++;
}
bgm.setVolume(_global.volume);
};
stop();
Symbol 265 MovieClip Frame 1
var aaa = true;
Symbol 268 MovieClip Frame 1
if (init == undefined) {
this.gotoAndPlay(Math.floor(Math.random() * 30));
init = true;
}
Symbol 268 MovieClip Frame 17
this.gotoAndPlay(2);
Symbol 275 MovieClip Frame 1
var aaa = true;
Symbol 277 MovieClip Frame 1
var aaa = true;
Symbol 279 MovieClip Frame 1
var aaa = true;
Symbol 281 MovieClip Frame 1
var aaa = true;
Symbol 283 MovieClip Frame 1
var aaa = true;
Symbol 285 MovieClip Frame 1
var aaa = true;
Symbol 287 MovieClip Frame 1
var aaa = true;
Symbol 289 MovieClip Frame 1
var aaa = true;
Symbol 291 MovieClip Frame 1
var aaa = true;
Symbol 293 MovieClip Frame 1
var aaa = true;
Symbol 295 MovieClip Frame 1
var aaa = true;
Symbol 297 MovieClip Frame 1
var aaa = true;
Symbol 299 MovieClip Frame 1
var aaa = true;
Symbol 301 MovieClip Frame 1
var aaa = true;
Symbol 303 MovieClip Frame 1
var aaa = true;
Symbol 306 MovieClip Frame 1
var aaa = true;
Symbol 307 MovieClip Frame 1
var aaa = true;
Symbol 309 MovieClip Frame 1
var aaa = true;
Symbol 311 MovieClip Frame 1
var aaa = true;
Symbol 313 MovieClip Frame 1
var aaa = true;
Symbol 315 MovieClip Frame 1
var aaa = true;
Symbol 317 MovieClip Frame 1
var aaa = true;
Symbol 319 MovieClip Frame 1
var aaa = true;
Symbol 321 MovieClip Frame 1
var aaa = true;
Symbol 323 MovieClip Frame 1
var aaa = true;
Symbol 325 MovieClip Frame 1
var aaa = true;
Symbol 327 MovieClip Frame 1
var aaa = true;
Symbol 329 MovieClip Frame 1
var aaa = true;
Symbol 331 MovieClip Frame 1
var aaa = true;
Symbol 333 MovieClip Frame 1
var aaa = true;
Symbol 335 MovieClip Frame 1
var aaa = true;
Symbol 344 MovieClip Frame 1
function addMono(mono) {
if (mono.body.name == "MonoKing") {
monos.unshift(mono);
} else {
monos.push(mono);
}
}
function removeMono(mono) {
var _local1 = 0;
while (_local1 < monos.length) {
if (mono === monos[_local1]) {
monos.splice(_local1, 1);
break;
}
_local1++;
}
}
function addGround(mono) {
grounds.push(mono);
}
function initGrounds() {
var _local2 = 0;
var _local3 = 0;
while (_local3 < 13) {
var _local1 = 0;
while (_local1 < 12) {
gbase.attachMovie("MapGround", "g" + _local2, gbase.getNextHighestDepth());
if ((_local1 & 1) == 0) {
gbase["g" + _local2]._x = (_local3 * 50) - 25;
gbase["g" + _local2]._y = _local1 * 50;
} else {
gbase["g" + _local2]._x = _local3 * 50;
gbase["g" + _local2]._y = _local1 * 50;
}
_local2++;
_local1++;
}
_local3++;
}
_local3 = 0;
while (_local3 < grounds.length) {
var _local5 = grounds[_local3];
var _local4 = Math.floor(Math.random() * grounds.length);
grounds[_local3] = grounds[_local4];
grounds[_local4] = _local5;
_local3++;
}
}
function makeKatamari(n, first_size, x, y) {
this.attachMovie("Katamari", "katamari" + n, next_depth);
next_depth++;
katamaris[n] = this["katamari" + n];
katamaris[n]._x = ((x === undefined) ? (Math.random() * _global.world_width) : (x));
katamaris[n]._y = ((y === undefined) ? (Math.random() * _global.world_height) : (y));
katamaris[n].player_num = n;
katamaris[n].first_size = first_size;
katamaris2[n] = true;
return(katamaris[n]);
}
function initKatamaris() {
var _local2 = new Array();
var _local3 = 1;
while (_local3 <= 48) {
_local2.push(_local3);
_local3++;
}
var _local7 = [1, 1, 0.8, 1, 0.9, 1.1, 0.7, 1, 1, 1, 1];
_local3 = 0;
while (_local3 < _local2.length) {
var _local6 = _local2[_local3];
var _local4 = Math.floor(Math.random() * _local2.length);
_local2[_local3] = _local2[_local4];
_local2[_local4] = _local6;
_local3++;
}
var _local5 = 180;
_local3 = 1;
while (_local3 <= _global.katamari_max) {
makeKatamari(_local2[_local3 - 1], _local7[_local3], (Math.cos(_local5) * 150) + (_global.world_width / 2), (Math.sin(_local5) * 150) + (_global.world_height / 2));
_local5 = _local5 + ((Math.PI*2) / _global.katamari_max);
_local3++;
}
}
function collideTest(k) {
var _local1 = 0;
while (_local1 < monos.length) {
if (monos[_local1].body.hitTest(k)) {
k.collide(monos[_local1]);
}
_local1++;
}
}
function makeMono(name, x, y) {
var _local3;
if (name == "MonoKing") {
_local3 = 1048565 /* 0x0FFFF5 */;
} else {
_local3 = next_depth;
next_depth++;
}
this.attachMovie("Mono", "mono" + _local3, _local3);
var _local2 = this["mono" + _local3];
_local2.attachMovie(name, "body", 1);
_local2.body.name = name;
_local2._x = x;
_local2._y = y;
_local2._rotation = 0;
return(_local2);
}
function clamp(x, min, max) {
if (x < min) {
return(min);
}
if (x > max) {
return(max);
}
return(x);
}
function update() {
if (_global.irruption_mode && (Math.random() < 0.03)) {
var _local11 = 1;
while (_local11 < katamaris2.length) {
if (!katamaris2[_local11]) {
makeKatamari(_local11, Math.random() + 0.5, 0, 0);
break;
}
_local11++;
}
}
king_control = false;
if (monos[0].body.name == "MonoKing") {
monos[0].kingUpdate();
if ((_root._xmouse > (_global.screen_width - 64)) && ((_root._ymouse > (_global.screen_height - 24)) || (_root._ymouse < 24))) {
Mouse.show();
} else {
Mouse.hide();
}
} else {
Mouse.show();
}
if (cong_visible) {
parole = 0;
} else {
parole++;
if (parole < 10) {
cong_visible = true;
}
}
cong._visible = cong_visible;
gbase._visible = cong_visible;
gall._visible = !cong_visible;
cong_visible = false;
var _local13 = 0;
var _local12 = {_x:0, _y:0};
var _local14 = 0;
var _local11 = 1;
while (_local11 < katamaris.length) {
var _local4 = katamaris[_local11];
if (_local4 === undefined) {
} else {
var _local8 = _local11 + 1;
while (_local8 < katamaris.length) {
var _local5 = katamaris[_local8];
if (_local5 === undefined) {
} else if (((_local4.inv_time == 0) && (_local5.inv_time == 0)) && (_local5.hit.hitTest(_local4.hit))) {
if (_local4.hit._width > (_local5.hit._width * 2)) {
_local4.collideK(_local5);
} else if (_local5.hit._width > (_local4.hit._width * 2)) {
_local5.collideK(_local4);
} else {
var _local10 = _local5.vvolume / _local4.vvolume;
var _local9 = _local4.vvolume / _local5.vvolume;
var _local7 = _local4.dx - _local5.dx;
var _local6 = _local4.dy - _local5.dy;
if ((-5 < _local7) && (_local7 < 5)) {
_local7 = (Math.random() * 10) - 5;
}
if ((-5 < _local6) && (_local6 < 5)) {
_local6 = (Math.random() * 10) - 5;
}
_parent.komado.playSound("Collide");
if (Math.random() < 0.5) {
_local4.crashRate(0.1);
} else {
_local5.crashRate(0.1);
}
_local4.dx = _local4.dx - (_local7 * _local10);
_local4.dy = _local4.dy - (_local6 * _local10);
_local5.dx = _local5.dx + (_local7 * _local9);
_local5.dy = _local5.dy + (_local6 * _local9);
_local4.dx = clamp(_local4.dx, -20, 20);
_local4.dy = clamp(_local4.dy, -20, 20);
_local5.dx = clamp(_local5.dx, -20, 20);
_local5.dy = clamp(_local5.dy, -20, 20);
_local4.damege = 1;
_local5.damege = -1;
_local4.inv_time = 10;
_local5.inv_time = 10;
}
}
_local8++;
}
_local13 = _local13 + _local4.core.monos.length;
_local12._x = _local12._x + _local4._x;
_local12._y = _local12._y + _local4._y;
_local14++;
}
_local11++;
}
_local12._x = _local12._x / _local14;
_local12._y = _local12._y / _local14;
if (Math.random() < 0.1) {
}
if ((((monos.length + _local13) < 300) && (Math.random() < 0.15)) || ((monos.length < 3) && (Math.random() < 0.02))) {
var _local16;
if (Math.random() < 0.2) {
_local16 = mono_list[Math.floor(Math.random() * mono_list.length)];
} else {
var _local17 = 4 + (_local13 / 20);
if (_local17 > mono_list.length) {
_local17 = mono_list.length;
}
_local16 = mono_list[Math.floor((Math.random() * 4) + (_local17 - 4))];
}
var _local15 = makeMono(_local16[0]);
if (_local16[1] == MOVE_TYPE) {
if (Math.random() < 0.5) {
_local15._x = 1;
_local15.rev = true;
} else {
_local15._x = world_width;
}
_local15._y = Math.random() * world_height;
} else if (_local16[1] == RANDOM_TYPE) {
_local15._x = Math.random() * world_width;
_local15._y = Math.random() * world_height;
_local15.body.gotoAndPlay("advent");
}
}
var _local18 = 1;
_x = ((_x * 0.9) + ((((-_local12._x) * _local18) + (_global.screen_width / 2)) * 0.1));
if (_x < ((-(world_width - _global.screen_width)) + 3)) {
_x = ((-(world_width - _global.screen_width)) + 3);
}
if (_x > -3) {
_x = -3;
}
_y = ((_y * 0.9) + ((((-_local12._y) * _local18) + (_global.screen_height / 2)) * 0.1));
if (_y < ((-(world_height - _global.screen_height)) + 3)) {
_y = ((-(world_height - _global.screen_height)) + 3);
}
if (_y > -3) {
_y = -3;
}
time_count = time_count + 1;
if ((getTimer() - old_timer) >= time) {
_global.fps = Math.floor((time_count * 1000) / (getTimer() - old_timer));
old_timer = getTimer();
time_count = 0;
}
}
_global.world_width = 600;
_global.world_height = 600;
_global.screen_width = 550;
_global.screen_height = 400;
var king_control = false;
var next_depth = 1000;
var fr = 30;
var time_count = 0;
var old_timer = getTimer();
var parole = 10;
var MOVE_TYPE = 1;
var RANDOM_TYPE = 2;
_global.mono_list = [["MonoLemon", RANDOM_TYPE], ["MonoKamome", MOVE_TYPE], ["MonoCat", MOVE_TYPE], ["MonoDog", MOVE_TYPE], ["MonoKinoko", RANDOM_TYPE], ["MonoBoy", MOVE_TYPE], ["MonoGirl", MOVE_TYPE], ["MonoDaikon", RANDOM_TYPE], ["MonoMelon", RANDOM_TYPE], ["MonoOssan", MOVE_TYPE], ["MonoObasan", MOVE_TYPE], ["MonoYankee", MOVE_TYPE], ["MonoCar", MOVE_TYPE], ["MonoFireCar", MOVE_TYPE], ["MonoYankeeCar", MOVE_TYPE]];
var monos = [];
var grounds = [];
initGrounds();
cong._visible = false;
gall._visible = true;
var katamaris = new Array(49);
var katamaris2 = new Array(49);
initKatamaris();
makeMono("MonoKing", _global.world_width / 2, _global.world_height / 2);
_x = ((((-_global.world_width) / 2) + (_global.screen_width / 2)) - 1);
_y = ((((-_global.world_height) / 2) + (_global.screen_height / 2)) - 1);
this.onEnterFrame = update;
Symbol 348 MovieClip Frame 1
function inputSe(name, sound_name) {
if (mapSe[name] === undefined) {
var _local2 = _global.se.length;
_global.se[_local2] = new Sound();
_global.se[_local2].attachSound(sound_name);
_global.se[_local2].setVolume(_global.volume);
mapSe[name] = _global.se[_local2];
}
}
function getPrinceName(n) {
return(mapK["" + n]);
}
function playSound(name) {
mapSe[name].start();
}
function playSoundCollide() {
if (collide_se_count > 10) {
playSound("Collide");
collide_se_count = 0;
}
}
function display(name, player_num) {
if (mapSe[name] == undefined) {
var _local3 = Math.floor(Math.random() * 3) + 1;
playSound("Maki" + _local3);
} else {
playSound(name);
}
if (name == "MonoKing") {
back.attachMovie(name, "Mono", 1);
back.Mono.stop();
var _local2 = (60 / back.Mono._width) * 200;
back.Mono._xscale = _local2;
back.Mono._yscale = _local2;
next_mono_name = map[name];
count = 0;
forced = true;
return(undefined);
}
if (forced) {
return(undefined);
}
_visible = true;
back.attachMovie(name, "Mono", 1);
back.Mono.stop();
var _local2 = (60 / ((back.Mono._width < back.Mono._height) ? (back.Mono._height) : (back.Mono._width))) * 100;
back.Mono._xscale = _local2;
back.Mono._yscale = _local2;
next_mono_name = map[name];
count = 0;
}
function displayK(player_num, m) {
var _local3 = Math.floor(Math.random() * 3) + 1;
playSound("Maki" + _local3);
_visible = true;
forced = true;
back.attachMovie("MonoPrince", "Mono", 1);
back.Mono.stop();
back.Mono.gotoAndPlay(player_num);
back.Mono.core._visible = false;
var _local1 = (200 / back.Mono._width) * 100;
back.Mono._xscale = _local1;
back.Mono._yscale = _local1;
next_mono_name = mapK["" + player_num];
count = 0;
}
var map = {};
map.MonoBoy = "Boy";
map.MonoCar = "Car";
map.MonoCat = "Cat";
map.MonoDog = "Dog";
map.MonoEgg = "Egg";
map.MonoGirl = "Girl";
map.MonoHiyoko = "Chick";
map.MonoKinoko = "Mushroom";
map.MonoLemon = "Lemon";
map.MonoKamome = "Seagull";
map.MonoGround = "Grass";
map.MonoYankee = "Gang";
map.MonoObasan = "Woman";
map.MonoOssan = "Man";
map.MonoMelon = "Melon";
map.MonoKing = "King";
map.MonoDaikon = "Radish";
map.MonoYankeeCar = "Gang Bike";
map.MonoFireCar = "Fire Truck";
var mapK = {};
mapK["1"] = "The Prince";
mapK["2"] = "Lalala";
mapK["3"] = "Nik";
mapK["4"] = "Ace";
mapK["5"] = "Johnson";
mapK["6"] = "Velvet";
mapK["7"] = "Fujio";
mapK["8"] = "Havana";
mapK["9"] = "Peso";
mapK["10"] = "Shikao";
mapK["11"] = "Odeko";
mapK["12"] = "Honey";
mapK["13"] = "Marny";
mapK["14"] = "Kuro";
mapK["15"] = "Foomin";
mapK["16"] = "June";
mapK["17"] = "Ichigo";
mapK["18"] = "Marcy";
mapK["19"] = "Colombo";
mapK["20"] = "Dipp";
mapK["21"] = "Opeo";
mapK["22"] = "Nickel";
mapK["23"] = "Jungle";
mapK["24"] = "Miso";
mapK["25"] = "Twinkle";
mapK["26"] = "Huey";
mapK["27"] = "Nutsuo";
mapK["28"] = "Beyond";
mapK["29"] = "Kinoko";
mapK["30"] = "Macho";
mapK["31"] = "L'Amour";
mapK["32"] = "Daisy";
mapK["33"] = "Lucha";
mapK["34"] = "Miki";
mapK["35"] = "Odeon";
mapK["36"] = "Can-Can";
mapK["37"] = "Shy";
mapK["38"] = "Slip";
mapK["39"] = "Drooby";
mapK["40"] = "Signolo";
mapK["41"] = "Norn";
mapK["42"] = "Ban-Ban";
mapK["43"] = "Nai-Nai";
mapK["44"] = "Paula";
mapK["45"] = "Kenta";
mapK["46"] = "Hans";
mapK["47"] = "Mu";
mapK["48"] = "Pokkle";
var mapSe = {};
inputSe("MonoHiyoko", "hiyoko.wav");
inputSe("MonoKamome", "kamome.wav");
inputSe("MonoDog", "dog.wav");
inputSe("MonoCat", "cat.wav");
inputSe("MonoBoy", "boy.wav");
inputSe("MonoGirl", "girl.wav");
inputSe("MonoOssan", "ossan.wav");
inputSe("MonoObasan", "obachan.wav");
inputSe("MonoYankee", "yankee.wav");
inputSe("MonoYankeeCar", "yankee.wav");
inputSe("MonoKing", "king.wav");
inputSe("Maki1", "maki1.wav");
inputSe("Maki2", "maki2.wav");
inputSe("Maki3", "maki3.wav");
inputSe("Crash", "fw.wav");
inputSe("Collide", "collide.wav");
var count = 0;
var next_mono_name = "";
var forced = false;
var collide_se_count = 0;
back.stop();
_alpha = 0;
_visible = false;
Symbol 348 MovieClip Frame 2
collide_se_count++;
if (forced) {
count = count + 0.5;
back.play();
} else {
count = count + 1;
}
if (Math.floor(count * 0.1) <= next_mono_name.length) {
_alpha = (_alpha + 30);
if (_alpha > 85) {
_alpha = 85;
}
mono_name = next_mono_name.substr(0, Math.floor(count * 0.2));
} else {
mono_name = next_mono_name;
back.gotoAndStop(1);
forced = false;
_alpha = (_alpha - 10);
if (_alpha < 10) {
_alpha = 0;
_visible = false;
}
}
Symbol 348 MovieClip Frame 3
this.gotoAndPlay(2);
Symbol 352 Button
on (press) {
gotoAndPlay (4);
}