Frame 1
MochiAd.showPreloaderAd({id:"cdcf84e06b771d67", res:"450x550"});
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
fscommand ("showmenu", "fasle");
Instance of Symbol 67 MovieClip in Frame 3
//component parameters
onClipEvent (construct) {
_game_name = "saveme";
score_var = "_root.total_score_n";
}
Frame 120
function init_load() {
game_difficulty_s = "NORMAL";
_quality = "HIGH";
stage_width_n = 450;
stage_height_n = 550;
music_on_bo = true;
sound_on_bo = true;
noteed_bo = false;
}
function turn_to(direction_s) {
_root.gotoAndStop(direction_s);
}
function load_music() {
if (!main_music_mc) {
var _local3 = _root.getNextHighestDepth();
this.createEmptyMovieClip("main_music_mc", _local3);
main_music = new Sound(main_music_mc);
main_music.attachSound("main_music");
}
main_music.stop();
main_music.start(0, 999);
main_music.setVolume(30);
}
function load_sound() {
if (!sound_mc) {
var _local3 = _root.getNextHighestDepth();
this.createEmptyMovieClip("sound_mc", _local3);
this.createEmptyMovieClip("running_mc", _local3 + 1);
this.createEmptyMovieClip("splat_mc", _local3 + 2);
bomb_sd = new Sound(sound_mc);
bomb_sd.attachSound("bomb_sd");
running_sd = new Sound(running_mc);
running_sd.attachSound("running_sd");
splat_sd = new Sound(splat_mc);
splat_sd.attachSound("splat_sd");
}
}
function init_main_music() {
main_music.stop();
main_music.start(0, 999);
if (!music_on_bo) {
main_music.setVolume(0);
} else {
main_music.setVolume(30);
}
}
function init_sound() {
if (!sound_on_bo) {
bomb_sd.setVolume(0);
running_sd.setVolume(0);
splat_sd.setVolume(0);
} else {
bomb_sd.setVolume(30);
running_sd.setVolume(2);
splat_sd.setVolume(50);
}
}
init_load();
turn_to("start_menu");
load_music();
load_sound();
init_sound();
turn_to("main_menu");
Frame 131
function clear_scene() {
level_mc.removeMovieClip();
game_menu_mc.removeMovieClip();
game_layout_mc.removeMovieClip();
game_pause_mc.removeMovieClip();
game_pass_mc.removeMovieClip();
game_over_mc.removeMovieClip();
game_end_mc.removeMovieClip();
}
function init_scene() {
instructed_bo = false;
var _local2 = this.getNextHighestDepth();
scene_masker.removeMovieClip();
var scene_masker = this.attachMovie("scene_masker", "scene_masker", _local2);
}
function game_start() {
turn_to("init_game");
}
function init_bt() {
play_bt.onPress = function () {
turn_to("init_game");
};
retry_bt.onPress = function () {
gotoAndPlay ("game_scene");
};
view_highscores.onPress = function () {
viewHighscore();
};
more_bt.onPress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
download_bt.onPress = function () {
getURL ("http://www.ifungames.com", "_blank");
};
setting_bt.onPress = function () {
};
add_game_bt.onPress = function () {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
main_menu_bt.onPress = function () {
gotoAndPlay ("start_menu");
};
}
stop();
init_main_music();
clear_scene();
init_scene();
init_bt();
Instance of Symbol 27 MovieClip in Frame 131
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Frame 144
clearInterval(_root.level_mc.jump_interval_n);
init_game();
game_start_bo = false;
game_pause_bo = true;
game_pass_bo = false;
game_over_bo = false;
game_end_bo = false;
level_score_n = 0;
total_score_n = 0;
used_time_n = 0;
prev_time_n = 0;
life_num_n = 5;
fireman_blood_n = 100;
bed_blood_n = 100;
total_jumper_n = 0;
init_game();
turn_to("game_scene");
Frame 145
function load_game_level() {
var _local2 = this.getNextHighestDepth();
var _local4 = this.attachMovie("level_mc", "level_mc", _local2);
var _local3 = this.attachMovie("game_layout_mc", "game_layout_mc", _local2 + 1);
scene_masker.removeMovieClip();
var scene_masker = this.attachMovie("scene_masker", "scene_masker", _local2 + 2);
}
function check_game_over() {
if (life_num_n == 0) {
game_over_bo = true;
}
if (game_over_bo) {
var _local2 = this.getNextHighestDepth();
var _local3 = this.attachMovie("game_over_mc", "game_over_mc", _local2);
dis_over_score();
init_game_over_music();
delete onEnterFrame;
}
}
function check_game_pause() {
if (!game_start_bo) {
return(undefined);
}
if (game_over_bo) {
return(undefined);
}
game_pause_bo = !game_pause_bo;
if (game_pause_bo) {
var _local2 = this.getNextHighestDepth();
var _local3 = this.attachMovie("game_pause_mc", "game_pause_mc", _local2);
} else {
game_pause_mc.removeMovieClip();
}
}
function dis_game_score() {
with (game_layout_mc) {
level_txt.text = level_num_n;
saved_txt.text = Math.floor(total_score_n);
game_layout_mc.life_bar.gotoAndStop(life_num_n + 1);
}
}
function dis_pass_score() {
}
function dis_over_score() {
if (score_counted_bo) {
return(undefined);
}
score_counted_bo = true;
total_score_n = Math.floor(total_score_n);
}
function get_game_time() {
if (game_pause_bo) {
prev_time_n = getTimer();
return(undefined);
}
if (!game_start_bo) {
return(undefined);
}
if (game_pass_bo) {
return(undefined);
}
if (game_over_bo) {
return(undefined);
}
if (game_end_bo) {
return(undefined);
}
current_time_n = getTimer();
if (!prev_time_n) {
prev_time_n = current_time_n;
}
used_time_n = used_time_n + (current_time_n - prev_time_n);
prev_time_n = getTimer();
pass_minute_n = Math.floor((used_time_n / 1000) / 60);
pass_second_n = Math.floor((used_time_n / 1000) % 60);
}
function onEnterFrame() {
get_game_time();
dis_game_score();
check_game_over();
check_game_end();
check_game_pass();
}
function set_hot_key() {
key_down_bo = false;
hot_key_listener = new Object();
hot_key_listener.onKeyDown = function () {
if (key_down_bo) {
return(undefined);
}
if (Key.isDown(80) && (Key.getCode() == 80)) {
check_game_pause();
}
key_down_bo = true;
};
hot_key_listener.onKeyUp = function () {
key_down_bo = false;
};
Key.addListener(hot_key_listener);
}
stop();
clearInterval(_root.level_mc.jump_interval_n);
clear_scene();
init_main_music();
load_game_level();
set_hot_key();
Frame 146
init_retry();
init_retry();
turn_to("game_scene");
Frame 159
stop();
Symbol 3 MovieClip Frame 1
_visible = false;
Symbol 9 MovieClip Frame 11
stop();
this.removeMovieClip();
Symbol 13 MovieClip [closestool] Frame 1
#initclip 7
Object.registerClass("closestool", Jumper);
#endinitclip
Symbol 13 MovieClip [closestool] Frame 2
stop();
Symbol 13 MovieClip [closestool] Frame 10
_root.bomb_sd.start();
Symbol 13 MovieClip [closestool] Frame 20
stop();
Symbol 20 MovieClip Frame 11
stop();
this.removeMovieClip();
Symbol 24 MovieClip [sofa] Frame 1
#initclip 6
Object.registerClass("sofa", Jumper);
#endinitclip
Symbol 24 MovieClip [sofa] Frame 2
stop();
Symbol 24 MovieClip [sofa] Frame 10
_root.bomb_sd.start();
Symbol 24 MovieClip [sofa] Frame 20
stop();
Symbol 590 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function showPreloaderAd(options) {
var _local29 = {clip:_root, ad_msec:11000, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812};
options = _parseOptions(options, _local29);
var _local15 = options.clip;
var _local25 = options.ad_msec;
delete options.ad_msec;
var _local28 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(null);
}
_local15.stop();
var mc = _local15._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local16 = _getRes(options);
var _local5 = _local16[0];
var _local14 = _local16[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local8 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local8._x = 10;
_local8._y = _local14 - 20;
var _local24 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local26 = options.outline;
delete options.outline;
var _local6 = _local8.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local8.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local24);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local7 = _local8.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local26, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local5 - 20, 0);
_local7.lineTo(_local5 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local25;
chk.ad_timeout = _local28;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local15 = {clip:_root, ad_msec:11000, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"};
options = _parseOptions(options, _local15);
var _local6 = options.clip;
var _local12 = options.ad_msec;
delete options.ad_msec;
var _local14 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(null);
}
_local6.stop();
var mc = _local6._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local7 = _getRes(options);
var _local16 = _local7[0];
var _local13 = _local7[1];
mc._x = _local16 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local12;
chk.ad_timeout = _local14;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function load(options) {
var _local14 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local14);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.3";
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(false);
}
if (_local7._mochiad_loaded) {
return(false);
}
var _local13 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local13);
var _local12 = _getRes(options);
options.res = (_local12[0] + "x") + _local12[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local11 = _local4.server;
delete _local4.server;
var _local10 = _local11.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local10);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local10);
}
}
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local10;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local11 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 591 MovieClip [__Packages.Jumper] Frame 0
class Jumper extends MovieClip
{
var THIS, _name, _parent, LEVEL, ROLE, start_move_bo, land_success_bo, hit_fireman_bo, bounced_bo, die_bo, life_lost_bo, score_added_bo, move_inited_bo, bottom_n, local_bottom_n, speed_n, g_n, init_angle_n, vx_n, vy_n, direction_n, _x, _y, removeMovieClip, type_s;
function Jumper () {
super();
this_init();
}
function this_init() {
THIS = _parent[_name];
LEVEL = _root.level_mc;
ROLE = LEVEL.role_mc;
start_move_bo = false;
land_success_bo = false;
hit_fireman_bo = false;
bounced_bo = false;
die_bo = false;
life_lost_bo = false;
score_added_bo = false;
move_inited_bo = false;
bottom_n = 505;
local_bottom_n = get_local_y(bottom_n);
start_move();
}
function init_move() {
if (move_inited_bo) {
return(undefined);
}
var _local2 = 3.5;
var _local3 = 5;
speed_n = _local2 + (Math.random() * _local3);
g_n = 0.5;
init_angle_n = get_random_angle(50, 10);
vx_n = speed_n * ExtMath.cosD(init_angle_n);
vy_n = speed_n * ExtMath.sinD(init_angle_n);
move_inited_bo = true;
}
function get_random_angle(base_angle_n, offset_angle_n) {
var _local3 = ((Math.random() > 0.5) ? -1 : 1);
offset_angle_n = offset_angle_n * Math.random();
if (direction_n == 1) {
var _local4 = (-1 * base_angle_n) + (_local3 * offset_angle_n);
} else {
var _local4 = ((1 * base_angle_n) + (_local3 * offset_angle_n)) + 180;
}
return(_local4);
}
function init_direction(direction_n_flg) {
direction_n = direction_n_flg;
}
function get_coord() {
var _local2 = ExtMath.to_global(_parent, _x, _y);
return(_local2);
}
function get_local_coord(x_n, y_n) {
var _local2 = ExtMath.to_local(_parent, x_n, y_n);
return(_local2);
}
function get_local_y(y_n) {
var _local2 = ExtMath.to_local(_parent, 0, y_n);
return(_local2.y);
}
function start_move() {
start_move_bo = true;
}
function this_move() {
if (die_bo) {
return(undefined);
}
if (!start_move_bo) {
return(undefined);
}
_x = _x + vx_n;
_y = _y + vy_n;
vy_n = vy_n + g_n;
if ((_x < -100) || (_x > 600)) {
removeMovieClip();
}
}
function start_bomb() {
THIS.gotoAndStop("bomb");
if (type_s != "THING") {
loss_life();
}
delete onEnterFrame;
}
function detect_floor() {
var _local3 = get_coord();
var _local2 = _local3.y;
if ((_local2 + vy_n) >= bottom_n) {
_y = local_bottom_n;
if (land_success_bo) {
if (!bounced_bo) {
vy_n = -9;
vx_n = direction_n * 4;
bounced_bo = true;
THIS.gotoAndStop("jump");
} else if (type_s != "THING") {
THIS.gotoAndStop("walk");
} else {
THIS.gotoAndStop("run");
}
return(undefined);
}
die_bo = true;
start_bomb();
}
}
function detect_role() {
if (die_bo) {
return(undefined);
}
if (land_success_bo) {
return(undefined);
}
var _local2 = THIS.hit_area.hitTest(ROLE.bed_hit_area);
if (_local2) {
if (hit_fireman_bo) {
return(undefined);
}
land_success_bo = true;
add_score();
ROLE.bed.play();
}
}
function loss_life() {
if (life_lost_bo) {
return(undefined);
}
LEVEL.flash_mc.play();
life_lost_bo = true;
if (_root.life_num_n > 0) {
_root.life_num_n = _root.life_num_n - 1;
}
var _local4 = LEVEL.getNextHighestDepth();
var _local3 = LEVEL.attachMovie("lose_life_mc", "lose_life_mc" + _local4, _local4);
_local3._x = _x;
_local3._y = _y;
}
function add_score() {
if (score_added_bo) {
return(undefined);
}
_root.total_score_n = _root.total_score_n + 1;
var _local4 = LEVEL.getNextHighestDepth();
var _local3 = LEVEL.attachMovie("add1_mc", "add1_mc" + _local4, _local4);
_local3._x = _x;
_local3._y = _y;
score_added_bo = true;
}
function onEnterFrame() {
if (!_root.game_start_bo) {
return(undefined);
}
if (_root.game_pause_bo) {
return(undefined);
}
init_move();
this_move();
detect_role();
detect_floor();
}
}
Symbol 592 MovieClip [__Packages.ExtMath] Frame 0
class ExtMath extends Math
{
function ExtMath () {
super();
}
static function distance(x1, y1, x2, y2) {
var _local2 = x2 - x1;
var _local1 = y2 - y1;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
static function distance2(length1, length3) {
return(Math.sqrt((length3 * length3) - (length1 * length1)));
}
static function distance3(length1, length2) {
return(Math.sqrt((length1 * length1) + (length2 * length2)));
}
static function degreesToRadians(angle) {
return(angle * 0.017453);
}
static function radiansToDegrees(radian) {
return(radian * 57.29578);
}
static function sinD(angle) {
return(Math.sin((angle * 3.141593) / 180));
}
static function asinD(ratio) {
return(Math.asin(ratio) * 57.29578);
}
static function cosD(angle) {
return(Math.cos((angle * 3.141593) / 180));
}
static function acosD(ratio) {
return(Math.acos(ratio) * 57.29578);
}
static function tanD(angle) {
return(Math.tan((angle * 3.141593) / 180));
}
static function atan2D(y, x) {
return(Math.atan2(y, x) * 57.29578);
}
static function angleOfLine(x1, y1, x2, y2) {
return(atan2D(y2 - y1, x2 - x1));
}
static function fixAngle(angle) {
var _local1 = angle % 360;
return((((_local1 % 360) < 0) ? (_local1 + 360) : (_local1)));
}
static function to_global(target, target_x, target_y) {
var _local1 = {x:target_x, y:target_y};
target.localToGlobal(_local1);
return(_local1);
}
static function to_local(target, target_x, target_y) {
var _local1 = {x:target_x, y:target_y};
target.globalToLocal(_local1);
return(_local1);
}
}
Symbol 593 MovieClip [__Packages.Role] Frame 0
class Role extends MovieClip
{
var THIS, _name, _parent, LEVEL, speed_n, max_ease_speed_n, ease_speed_n, easing_bo, hit_left_bound_bo, hit_right_bound_bo, start_change_action_bo, die_bo, _x, _y, onKeyUp, direction_n;
function Role () {
super();
this_init();
}
function this_init() {
THIS = _parent[_name];
LEVEL = _root.level_mc;
speed_n = 8;
max_ease_speed_n = speed_n;
ease_speed_n = max_ease_speed_n;
easing_bo = false;
hit_left_bound_bo = false;
hit_right_bound_bo = false;
start_change_action_bo = false;
die_bo = false;
}
function get_coord() {
var _local2 = ExtMath.to_global(_parent, _x, _y);
return(_local2);
}
function get_local_x(x_n) {
var _local2 = ExtMath.to_local(_parent, x_n, 0);
return(_local2.x);
}
function change_action(action_s) {
if (!start_change_action_bo) {
return(undefined);
}
switch (action_s) {
case "STOP" :
THIS.gotoAndStop("stop");
break;
case "MOVE" :
THIS.gotoAndStop("move");
break;
case "LEFT_DIE" :
THIS.gotoAndStop("left_die");
die_bo = true;
break;
case "RIGHT_DIE" :
THIS.gotoAndStop("right_die");
die_bo = true;
break;
case "BOTH_DIE" :
THIS.gotoAndStop("both_die");
die_bo = true;
}
start_change_action_bo = false;
}
function start_die(action_s) {
if (die_bo) {
return(undefined);
}
start_change_action_bo = true;
change_action(action_s);
}
function onEnterFrame() {
if (!_root.game_start_bo) {
return(undefined);
}
if (_root.game_pause_bo) {
return(undefined);
}
this_move();
}
function this_move() {
if (die_bo) {
return(undefined);
}
var _local4 = 100;
var _local3 = _local4;
var _local6 = _root.stage_width_n - _local4;
var _local7 = get_local_x(_local3);
var _local9 = get_local_x(_local6);
var _local8 = get_coord();
var _local5 = _local8.x;
if ((_local5 - speed_n) <= _local3) {
hit_left_bound_bo = true;
easing_bo = false;
ease_speed_n = max_ease_speed_n;
} else if ((_local5 + speed_n) >= _local6) {
hit_right_bound_bo = true;
easing_bo = false;
ease_speed_n = max_ease_speed_n;
} else {
hit_left_bound_bo = false;
hit_right_bound_bo = false;
}
if (Key.isDown(37)) {
if (hit_left_bound_bo) {
_x = _local7;
} else {
_x = _x - speed_n;
}
change_action("MOVE");
_root.running_sd.start();
} else if (Key.isDown(39)) {
if (hit_right_bound_bo) {
_x = _local9;
} else {
_x = _x + speed_n;
}
change_action("MOVE");
_root.running_sd.start();
}
onKeyUp = function () {
_root.running_sd.stop();
if (this.die_bo) {
return(undefined);
}
this.start_change_action_bo = true;
this.change_action("STOP");
this.start_change_action_bo = true;
if (Key.getCode() == 37) {
this.easing_bo = true;
this.direction_n = -1;
} else if (Key.getCode() == 39) {
this.easing_bo = true;
this.direction_n = 1;
}
};
Key.addListener(this);
if (!easing_bo) {
return(undefined);
}
ease_speed_n = ease_speed_n - 2;
_x = _x + (direction_n * ease_speed_n);
if (ease_speed_n == 0) {
easing_bo = false;
ease_speed_n = max_ease_speed_n;
}
}
}
Symbol 594 MovieClip [__Packages.Level] Frame 0
class Level extends MovieClip
{
var THIS, _name, _parent, floor_num_n, human_a, thing_a, human_type_a, thing_type_a, getNextHighestDepth, attachMovie, jump_interval_n;
function Level () {
super();
THIS = _parent[_name];
this_init();
init_jump_control();
load_movie();
}
function this_init() {
floor_num_n = 12;
human_a = new Array("fat", "man", "woman");
thing_a = new Array("tv", "cooker", "bottle", "sofa", "closestool");
human_type_a = new Array("FAT", "MAN", "WOMAN");
thing_type_a = new Array("THING");
}
function load_movie() {
var _local3 = getNextHighestDepth();
var _local2 = attachMovie("role_mc", "role_mc", _local3);
_local2._x = 225;
_local2._y = 510;
}
function init_jump_control() {
clearInterval(jump_interval_n);
jump_interval_n = setInterval(this, "jumper_control", 1000);
}
function jumper_control() {
var _local5 = 1000 - (_root.level_num_n * 60);
if (_local5 <= 0) {
_local5 = 0;
}
var _local10 = 2000 - (_root.level_num_n * 40);
var _local14 = _local5 + (Math.random() * _local10);
clearInterval(jump_interval_n);
jump_interval_n = setInterval(this, "jumper_control", _local14);
if (!_root.game_start_bo) {
return(undefined);
}
if (_root.game_pause_bo) {
return(undefined);
}
var _local4 = Math.random();
var _local9 = 0.7;
var _local11 = 0.2;
if (_local4 < _local9) {
_local4 = Math.random();
if (_local4 <= _local11) {
var _local12 = 0;
} else {
var _local12 = Math.floor((Math.random() * 2) + 1);
}
var _local7 = human_a[_local12];
var _local8 = getNextHighestDepth();
var _local3 = attachMovie(_local7, _local7 + _local8, _local8);
_local3.type_s = human_type_a[_local12];
_root.total_jumper_n = _root.total_jumper_n + 1;
} else {
_local4 = Math.random();
var _local12 = Math.floor(Math.random() * 5);
var _local7 = thing_a[_local12];
var _local8 = getNextHighestDepth();
var _local3 = attachMovie(_local7, _local7 + _local8, _local8);
_local3.type_s = thing_type_a[0];
}
var _local6 = ((Math.random() >= 0.5) ? -1 : 1);
_local3.init_direction(_local6);
_local3._xscale = _local6 * -100;
_local3.swapDepths(THIS.role_mc);
if (_local6 == 1) {
var _local13 = 30;
var _local15 = Math.floor((((Math.random() * floor_num_n) + 1) * 22) + 40);
_local3._x = _local13;
_local3._y = _local15;
} else {
var _local13 = _root.stage_width_n - 30;
var _local15 = Math.floor((((Math.random() * floor_num_n) + 1) * 22) + 40);
_local3._x = _local13;
_local3._y = _local15;
}
}
function check_level() {
var _local2 = _root.total_score_n;
_root.level_num_n = Math.floor((_local2 / 5) + 1);
}
function onEnterFrame() {
check_level();
}
}
Symbol 30 MovieClip Frame 1
onEnterFrame = function () {
var _local5 = _root.getBytesLoaded();
var _local4 = _root.getBytesTotal();
var _local3 = int((_local5 / _local4) * 100);
num_txt.text = _local3 + "%";
if (_root._mochiad instanceof MovieClip) {
this._visible = false;
}
if (_local3 == 100) {
delete this.onEnterFrame;
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
};
Symbol 34 MovieClip Frame 1
this._visible = false;
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.play();
} else {
_root.stop();
}
Symbol 34 MovieClip Frame 2
this._visible = true;
Symbol 34 MovieClip Frame 39
stop();
Instance of Symbol 27 MovieClip in Symbol 34 MovieClip Frame 39
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 40 MovieClip Frame 26
stop();
Symbol 46 Button
on (release) {
gotoAndStop ("submit");
}
Symbol 51 Button
on (release) {
gotoAndStop (1);
}
Symbol 61 Button
on (release) {
gotoAndStop ("submited");
}
Symbol 66 Button
on (release) {
viewHighscore();
}
Symbol 67 MovieClip Frame 1
stop();
_global.game_name = _game_name;
var highscore = eval (score_var);
_global.viewHighscore = function () {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + game_name, "_blank");
};
if (highscore <= 0) {
this._visible = false;
}
trace(game_name);
trace(highscore);
trace("http://www.freeworldgroup.com/score/index.asp?game=" + game_name);
Symbol 67 MovieClip Frame 3
function sendData() {
send_var.game = game_name;
send_var.score = highscore;
send_var.name = name_txt.text;
if (send_var.name == "") {
send_var.name = "guest" + int(Math.random() * 1000);
}
send_var.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", load_var, "POST");
gotoAndStop ("sending");
}
stop();
gold_txt.text = highscore;
send_var = new LoadVars();
load_var = new LoadVars();
ok_btn.onRelease = sendData;
load_var.onLoad = function () {
gotoAndStop ("done");
};
Instance of Symbol 48 MovieClip in Symbol 67 MovieClip Frame 3
on (release) {
}
Symbol 72 MovieClip [scene_masker] Frame 1
bound_n = 500;
stage_width_n = _root.stage_width_n;
stage_height_n = _root.stage_height_n;
top_mask._width = stage_width_n + (2 * bound_n);
top_mask._height = bound_n;
bottom_mask._width = stage_width_n + (2 * bound_n);
bottom_mask._height = bound_n;
left_mask._width = bound_n;
left_mask._height = stage_height_n + (2 * bound_n);
right_mask._width = bound_n;
right_mask._height = stage_height_n + (2 * bound_n);
top_mask._x = -1 * bound_n;
top_mask._y = -1 * bound_n;
bottom_mask._x = -1 * bound_n;
bottom_mask._y = stage_height_n;
left_mask._x = -1 * bound_n;
left_mask._y = -1 * bound_n;
right_mask._x = stage_width_n;
right_mask._y = -1 * bound_n;
this._x = 0;
this._y = 0;
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 2
stop();
Symbol 78 MovieClip Frame 3
stop();
Symbol 78 MovieClip Frame 4
stop();
Symbol 78 MovieClip Frame 5
stop();
Symbol 78 MovieClip Frame 6
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
stop();
Symbol 91 Button
on (press) {
play();
}
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 2
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 2
stop();
Symbol 99 MovieClip Frame 1
if (!_parent.flash_start) {
gotoAndStop (10);
}
Symbol 99 MovieClip Frame 10
stop();
Symbol 100 MovieClip Frame 9
stop();
_parent.flash_start = true;
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 2
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 2
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 10
function quality_init() {
switch (_quality) {
case "LOW" :
bt4.gotoAndStop(2);
return;
case "MEDIUM" :
bt3.gotoAndStop(2);
return;
case "HIGH" :
bt2.gotoAndStop(2);
return;
case "BEST" :
bt1.gotoAndStop(2);
}
}
function bt_init() {
bt1.gotoAndStop(1);
bt2.gotoAndStop(1);
bt3.gotoAndStop(1);
bt4.gotoAndStop(1);
}
stop();
quality_init();
bt1.bt.onPress = function () {
bt_init();
_quality = "BEST";
quality_init();
bt1.gotoAndStop(2);
};
bt2.bt.onPress = function () {
bt_init();
_quality = "HIGH";
quality_init();
bt2.gotoAndStop(2);
};
bt3.bt.onPress = function () {
bt_init();
_quality = "MEDIUM";
quality_init();
bt3.gotoAndStop(2);
};
bt4.bt.onPress = function () {
bt_init();
_quality = "LOW";
quality_init();
bt4.gotoAndStop(2);
};
Symbol 118 MovieClip Frame 1
prev_level_bt.onPress = function () {
};
next_level_bt.onPress = function () {
};
reset_bt.onPress = function () {
_root.turn_to("init_game");
};
Symbol 119 MovieClip [game_layout_mc] Frame 1
hit = false;
opend = false;
onEnterFrame = function () {
if (!_root.game_start_bo) {
return(undefined);
}
if (_root.game_pause_bo) {
return(undefined);
}
check_hit_menu();
check_menu();
};
check_hit_menu = function () {
var _local2 = quality_bt.hitTest(_root._xmouse, _root._ymouse, false);
if (_local2) {
hit = true;
} else {
hit = false;
}
};
check_menu = function () {
if (hit && (!opend)) {
quality_menu.gotoAndPlay(1);
quality_bt.gotoAndStop(2);
trace("hit = true");
opend = true;
}
if (!hit) {
if (opend) {
quality_menu.gotoAndPlay(11);
opend = false;
}
quality_bt.gotoAndStop(1);
}
};
if (!_root.music_on_bo) {
music_bt.gotoAndStop(2);
}
music_bt.onPress = function () {
if (!_root.game_start_bo) {
return(undefined);
}
if (_root.game_pause_bo) {
return(undefined);
}
music_bt.play();
_root.music_on_bo = !_root.music_on_bo;
_root.init_main_music();
};
if (!_root.sound_on_bo) {
sound_bt.gotoAndStop(2);
}
sound_bt.onPress = function () {
if (!_root.game_start_bo) {
return(undefined);
}
if (_root.game_pause_bo) {
return(undefined);
}
sound_bt.play();
_root.sound_on_bo = !_root.sound_on_bo;
_root.init_sound();
};
menu_bt.onPress = function () {
if (!_root.game_start_bo) {
return(undefined);
}
if (_root.game_pause_bo) {
return(undefined);
}
_root.game_pause_bo = true;
depth_n = _root.getNextHighestDepth();
var _local2 = _root.attachMovie("game_menu_mc", "game_menu_mc", depth_n);
};
Instance of Symbol 88 MovieClip "music_bt" in Symbol 119 MovieClip [game_layout_mc] Frame 1
on (release) {
_root.setMusic(this);
}
Instance of Symbol 92 MovieClip "sound_bt" in Symbol 119 MovieClip [game_layout_mc] Frame 1
on (release) {
_root.setSound(this);
}
Symbol 141 MovieClip [game_menu_mc] Frame 1
function init_bt() {
return_bt.onPress = function () {
_root.game_pause_bo = false;
this._parent.removeMovieClip();
};
retry_bt.onPress = function () {
_root.play_type_s = "LEVEL";
_root.level_score_n = 0;
_root.total_score_n = _root.total_score_n * 0.7;
_root.total_score_n = Math.floor(_root.total_score_n);
_root.level_score_n = Math.floor(_root.level_score_n);
_root.used_time_n = 0;
_root.role_life_num_n = 10;
_root.unattack_num_n = 5;
_root.undrop_num_n = 5;
_root.bounce_num_n = 5;
_root.through_num_n = 5;
_root.score_counted_bo = false;
_root.turn_to("retry");
this._parent.removeMovieClip();
};
view_highscores.onPress = function () {
viewHighscore();
};
more_bt.onPress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
download_bt.onPress = function () {
getURL ("http://www.ifungames.com", "_blank");
};
add_game_bt.onPress = function () {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
main_menu_bt.onPress = function () {
_root.turn_to("main_menu");
};
}
init_bt();
Symbol 172 MovieClip Frame 1
function onEnterFrame() {
if (_parent.start_bomb) {
play();
delete onEnterFrame;
}
}
stop();
Symbol 172 MovieClip Frame 175
stop();
Instance of Symbol 67 MovieClip in Symbol 174 MovieClip [game_over_mc] Frame 1
//component parameters
onClipEvent (construct) {
_game_name = "saveme";
score_var = "_root.total_score_n";
}
Symbol 174 MovieClip [game_over_mc] Frame 25
function init_bt() {
retry_bt.onPress = function () {
_root.turn_to("init_game");
this._parent.removeMovieClip();
};
view_highscores.onPress = function () {
viewHighscore();
};
more_bt.onPress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
download_bt.onPress = function () {
getURL ("http://www.ifungames.com", "_blank");
};
add_game_bt.onPress = function () {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
main_menu_bt.onPress = function () {
_root.turn_to("main_menu");
};
}
stop();
_root.game_pause_bo = true;
var start_bomb = true;
init_bt();
Symbol 282 MovieClip Frame 1
if (!started_bo) {
gotoAndPlay(random(35));
}
Symbol 282 MovieClip Frame 36
started_bo = true;
Symbol 285 MovieClip Frame 1
stop();
_visible = false;
Symbol 286 MovieClip Frame 2
stop();
Symbol 297 MovieClip Frame 1
stop();
start_bt.onPress = function () {
_root.game_start_bo = true;
_root.game_pause_bo = false;
this._parent.nextFrame();
};
Symbol 297 MovieClip Frame 2
stop();
Symbol 302 MovieClip Frame 1
stop();
Symbol 303 MovieClip [level_mc] Frame 1
#initclip 16
Object.registerClass("level_mc", Level);
#endinitclip
Symbol 306 MovieClip [add1_mc] Frame 16
stop();
this.removeMovieClip();
Symbol 309 MovieClip [lose_life_mc] Frame 16
stop();
this.removeMovieClip();
Symbol 318 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 1
_visible = false;
Symbol 340 MovieClip Frame 39
stop();
Symbol 341 MovieClip [role_mc] Frame 1
#initclip 8
Object.registerClass("role_mc", Role);
#endinitclip
Symbol 341 MovieClip [role_mc] Frame 2
stop();
Symbol 341 MovieClip [role_mc] Frame 11
stop();
Symbol 364 MovieClip Frame 43
stop();
Symbol 365 MovieClip [fat] Frame 1
#initclip 9
Object.registerClass("fat", Jumper);
#endinitclip
stop();
Symbol 365 MovieClip [fat] Frame 10
stop();
Symbol 365 MovieClip [fat] Frame 20
stop();
Symbol 365 MovieClip [fat] Frame 30
stop();
_root.splat_sd.start();
Symbol 375 MovieClip [man] Frame 1
#initclip 10
Object.registerClass("man", Jumper);
#endinitclip
stop();
Symbol 375 MovieClip [man] Frame 10
stop();
Symbol 375 MovieClip [man] Frame 20
stop();
Symbol 375 MovieClip [man] Frame 30
stop();
_root.splat_sd.start();
Symbol 385 MovieClip [woman] Frame 1
#initclip 11
Object.registerClass("woman", Jumper);
#endinitclip
stop();
Symbol 385 MovieClip [woman] Frame 10
stop();
Symbol 385 MovieClip [woman] Frame 20
stop();
Symbol 385 MovieClip [woman] Frame 30
stop();
_root.splat_sd.start();
Symbol 391 MovieClip Frame 8
stop();
this.removeMovieClip();
Symbol 395 MovieClip [cooker] Frame 1
#initclip 12
Object.registerClass("cooker", Jumper);
#endinitclip
Symbol 395 MovieClip [cooker] Frame 2
stop();
Symbol 395 MovieClip [cooker] Frame 10
_root.bomb_sd.start();
Symbol 395 MovieClip [cooker] Frame 20
stop();
Symbol 404 MovieClip Frame 14
stop();
this.removeMovieClip();
Symbol 408 MovieClip [bottle] Frame 1
#initclip 13
Object.registerClass("bottle", Jumper);
#endinitclip
Symbol 408 MovieClip [bottle] Frame 2
stop();
Symbol 408 MovieClip [bottle] Frame 10
_root.bomb_sd.start();
Symbol 408 MovieClip [bottle] Frame 20
stop();
Symbol 414 MovieClip Frame 8
stop();
this.removeMovieClip();
Symbol 418 MovieClip [tv] Frame 1
#initclip 14
Object.registerClass("tv", Jumper);
#endinitclip
Symbol 418 MovieClip [tv] Frame 2
stop();
Symbol 418 MovieClip [tv] Frame 10
_root.bomb_sd.start();
Symbol 418 MovieClip [tv] Frame 20
stop();
Symbol 477 MovieClip Frame 28
_parent.swapDepths(0);
_parent.removeMovieClip();
Symbol 478 MovieClip [jumper] Frame 1
#initclip 15
Object.registerClass("jumper", Jumper);
#endinitclip
Symbol 478 MovieClip [jumper] Frame 2
stop();
Symbol 478 MovieClip [jumper] Frame 10
stop();
Symbol 478 MovieClip [jumper] Frame 20
stop();
Instance of Symbol 365 MovieClip [fat] in Symbol 483 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
type_s = "FAT";
}
Instance of Symbol 375 MovieClip [man] in Symbol 483 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
type_s = "MAN";
}
Instance of Symbol 385 MovieClip [woman] in Symbol 483 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
type_s = "WOMAN";
}
Instance of Symbol 395 MovieClip [cooker] in Symbol 483 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
type_s = "THING";
}
Instance of Symbol 408 MovieClip [bottle] in Symbol 483 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
type_s = "THING";
}
Instance of Symbol 418 MovieClip [tv] in Symbol 483 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
type_s = "THING";
}
Instance of Symbol 478 MovieClip [jumper] in Symbol 483 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
type_s = "MAN";
}
Instance of Symbol 24 MovieClip [sofa] in Symbol 483 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
type_s = "THING";
}
Symbol 484 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 562 MovieClip Frame 1
go_bt.onPress = function () {
_root.level_num_n = Number(level_txt.text);
_root.game_start();
};
Symbol 577 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 579 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 583 Button
on (release) {
gotoAndPlay ("credits_frame");
}
Symbol 588 Button
on (release) {
_root.gotoAndPlay("main_menu");
}