STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/27883617?noj=FRM27883617-22DC" width="1" height="1"></div>

little-prince.swf

This is the info page for
Flash #125871

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 45 { } movieClip 47 { } movieClip 61 { frame 29 { _parent.jump_check = undefined; } } movieClip 76 { frame 29 { _parent.removeMovieClip(); } } movieClip 77 { } movieClip 82 { frame 9 { _parent.jump_check = undefined; } } movieClip 83 picsy_m { frame 7 { stop(); } } movieClip 85 { } movieClip 87 { } movieClip 88 { } movieClip 89 { } movieClip 90 hit_txt_m { frame 12 { --_parent.num; this.removeMovieClip(); } } movieClip 101 { } movieClip 109 { frame 18 { _parent.jump_check = undefined; } } movieClip 120 { frame 25 { _parent.removeMovieClip(); } } movieClip 123 { } movieClip 126 { frame 11 { _parent.jump_check = undefined; } } movieClip 127 clang_m { frame 7 { stop(); } } movieClip 133 { } movieClip 149 { frame 27 { _parent.run_check = undefined; } } movieClip 162 { frame 26 { _parent.removeMovieClip(); } } movieClip 168 { } movieClip 169 slame_m { frame 7 { stop(); } } movieClip 173 { } movieClip 174 item4 { frame 13 { stop(); } } movieClip 182 { } movieClip 190 { frame 14 { _parent.run_check = undefined; } } movieClip 201 { frame 25 { _parent.removeMovieClip(); } } movieClip 202 mush_m { frame 7 { stop(); } } movieClip 207 fire_m { frame 1 { gotoAndStop('f' + random(4)); } } movieClip 219 { } movieClip 222 { } movieClip 235 { frame 19 { _parent.removeMovieClip(); } } movieClip 236 { } movieClip 237 dal_m { frame 5 { stop(); } } movieClip 245 { } movieClip 246 { } movieClip 256 { frame 11 { _parent.removeMovieClip(); } } movieClip 258 { } movieClip 259 snake_m { frame 7 { stop(); } } // unknown tag 88 length 58 movieClip 282 { } movieClip 283 damage_score_m { frame 22 { --_parent.num; this.removeMovieClip(); } } movieClip 285 { } movieClip 286 item1 { frame 13 { stop(); } } movieClip 288 { } movieClip 289 item2 { frame 13 { stop(); } } movieClip 291 { } movieClip 292 item3 { frame 13 { stop(); } } movieClip 294 { } movieClip 295 score_disp { frame 1 { stop(); } } movieClip 298 { } movieClip 301 cursor_m { } frame 1 { stop(); Mouse.hide(); } movieClip 305 { } movieClip 308 { } instance of movieClip 308 { onClipEvent (load) { this.bar._xscale = 0; if (_root.getBytesLoaded() == _root.getBytesTotal()) { _root.load_check = true; _root.play(); } else { _root.stop(); } } onClipEvent (enterFrame) { var loaded = _root.getBytesLoaded(); var total = _root.getBytesTotal(); percent = (loaded / total) * 100; this.percent_txt.text = Math.floor(percent * 10) / 10 + '%'; this.bar._xscale = percent; if (percent >= 100) { _root.load_check = true; this.loading_txt_m.gotoAndStop('loaded'); _root.play(); } } } button 311 { on (release) { getURL('http://www.funfastgame.com/', ''); } } frame 2 { cursor.stop(); cursor.onEnterFrame = function () { this._x = _root._xmouse; this._y = _root._ymouse; }; cursor.onMouseDown = function () { this.gotoAndStop('click'); }; cursor.onMouseUp = function () { this.gotoAndStop(1); }; } movieClip 314 { } movieClip 317 { } button 319 { on (release) { getURL('http://www.funfastgame.com/', ''); } } button 325 { on (release) { gotoAndStop(146); } } button 334 { on (release) { _root.cursor.onEnterFrame = null; play(); } } frame 146 { stop(); } button 344 { on (release) { _root.cursor.onEnterFrame = null; play(); } } button 345 { on (release) { gotoAndPlay('instruction'); } } button 346 { on (release) { getURL('http://www.funfastgame.com/', ''); } } button 351 { on (release) { _root.cursor.onEnterFrame = null; gotoAndPlay(147); } } frame 147 { cursor.stop(); cursor.onEnterFrame = function () { this._x = _root._xmouse; this._y = _root._ymouse; }; cursor.onMouseDown = function () { this.gotoAndStop('click'); trace('click'); }; cursor.onMouseUp = function () { this.gotoAndStop(1); }; } frame 179 { stop(); } button 356 { on (release) { _root.cursor.onEnterFrame = null; play(); } } frame 180 { Stage.ScaleMode = 'noScale'; Stage.showMenu = false; System.useCodepage = true; gameInit = function () { Mouse.hide(); cursor._visible = false; _quality = 'Medium'; movie_type = 'b_type'; time_value = 120; time = time_value; set_timer(); g = 3; score = 0; life = 3; m_value = 5; x_min = 15; x_max = 535; y_array = 418; jump_value = 18; up_value = 3; max_add_y = 20; block_w = 35; block_h = 35; set_timer(); set_score(); stage_num = 0; cha.swapDepths(100); cursor.swapDepths(101); grid._visible = false; cha_init_x = 500; cha_init_y = 420; next_stage(); }; game_restart = function () { state = 1; removeAllInterval(); time = time_value; time_interval = setInterval(time_f, 1000); var v2 = 0; while (v2 <= 13) { this['s' + v2] = new Array(); ++v2; } if (stage_num == 1) { s0 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; s1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; s2 = ['b', 'b', 'b', 'b', 'b', 'b', 'b', 0, 'b', 'b', 'b', 'E', 'b', 'b', 'b', 'b']; s3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'L', 0, 0, 0, 0]; s4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'L', 0, 0, 0, 0]; s5 = ['b', 'E', 'b', 0, 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 0, 'b', 'b', 0]; s6 = [0, 'L', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; s7 = [0, 'L', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; s8 = ['b', 'b', 'b', 'b', 'b', 'b', 'b', 0, 'b', 'b', 'b', 'b', 'b', 'b', 'E', 'b']; s9 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'L', 0]; s10 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'b', 'b', 'b', 'b', 'b']; s11 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 'b', 'E', 0, 0, 0, 0, 0]; s12 = ['b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 's', 's', 'L', 0, 0, 0, 0, 0]; s13 = ['b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b']; } else { if (stage_num == 2) { s0 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; s1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; s2 = ['b', 'b', 'b', 0, 'b', 'b', 0, 'b', 'b', 0, 'b', 'b', 0, 'b', 'b', 'E']; s3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'L']; s4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'L']; s5 = ['b', 'E', 'b', 'b', 'b', 0, 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b']; s6 = [0, 'L', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; s7 = [0, 'L', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; s8 = ['b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 0, 'b', 'b', 'b', 'E', 'b']; s9 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'L', 0]; s10 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'L', 0]; s11 = [0, 0, 0, 's', 'b', 'b', 0, 'b', 'b', 0, 'b', 'b', 0, 'b', 'b', 'b']; s12 = [0, 's', 'b', 'b', 'b', 'b', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; s13 = ['b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b']; } else { if (stage_num == 3) { s0 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; s1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; s2 = ['b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'E', 'b']; s3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'L', 0]; s4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'L', 0]; s5 = ['b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'E', 'b', 'b', 'b']; s6 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'L', 0, 0, 0]; s7 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'L', 0, 0, 0]; s8 = ['b', 'b', 'E', 'E', 'E', 'E', 'E', 'E', 'E', 'E', 'E', 'E', 'b', 'b', 'b', 'b']; s9 = [0, 0, 'L', 'S', 'S', 'S', 'S', 'S', 'S', 'S', 'S', 'S', 0, 0, 0, 0]; s10 = ['b', 'b', 'b', 'S', 'S', 'S', 'S', 'S', 'S', 'S', 'S', 'S', 0, 0, 0, 0]; s11 = [0, 0, 0, 'S', 'S', 'S', 'S', 'S', 'S', 'S', 'S', 'S', 0, 0, 0, 0]; s12 = [0, 0, 0, 'S', 'S', 'S', 'S', 'S', 'S', 'S', 'S', 'S', 0, 0, 0, 0]; s13 = ['b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b']; } } } create_evil(); }; game_out = function (input) { if (ladderSound != undefined) { ladderSound.stop('ladder_up_sound'); delete ladderSound; } success_check = input; if (success_check == 'success') { snd_attach('stage_finish_sound'); if (stage_num == 3) { game_over_interval = setInterval(game_over_f, 2000); } else { time = time_value; set_timer(); game_restart_interval = setInterval(next_stage, 2000); } return undefined; } if (success_check == 'fail') { --life; score_m.life_mc.gotoAndStop(4 - life); if (life <= 0) { game_over(); } else { time = time_value; set_timer(); } score_m.life_mc.gotoAndStop(4 - life); } }; game_over = function () { removeAllInterval(); state = 0; cha.gotoAndStop('die'); cha.alpha = 100; cha._alpha = 100; cha.onEnterFrame = function () { this.alpha -= 3; if (this.alpha <= 0) { this.onEnterFrame = null; game_over_f(); } }; }; game_over_f = function () { _quality = 'High'; cursor._visible = true; evil_control.removeMovieClip(); effect_control.removeMovieClip(); item_union.removeMovieClip(); fire_control.removeMovieClip(); cha.removeMovieClip(); if (success_check == 'success') { gotoAndStop(204); snd_attach('success_sound'); } else { gotoAndStop(212); snd_attach('fail_sound'); replay_btn.onPress = function () { game_replay(); }; exit_btn.onPress = function () { getURL('javascript:self.close()', ''); }; } _root.onEnterFrame = function () { cursor._x = _root._xmouse; cursor._y = _root._ymouse; }; removeAllInterval(); }; goto_scene = function () { gotoAndStop(204); }; next_stage = function () { removeAllInterval(); remove_evil(); state = 0; ++stage_num; if (stage_num == 1) { cha_init_x = 500; cha_init_y = 420; } else { if (stage_num == 2) { cha_init_x = 500; cha_init_y = 420; jump_value = 18; } else { if (stage_num == 3) { cha_init_x = 500; cha_init_y = 420; } } } cha._x = cha_init_x; cha._y = cha_init_y; cha._xscale = 100; cha.gotoAndStop('ready'); cha.mode = undefined; cha.attack_check = undefined; cha.attack_after = undefined; _root.gotoAndStop('stage' + stage_num); stage_message.stage_txt.gotoAndStop('stage' + stage_num); stage_message.gotoAndPlay(1); stopAllSounds(); snd_attach('bg' + stage_num + '_sound', 'loop'); }; time_f = function () { --time; if (time <= 0) { time_over(); } set_timer(); }; time_over = function () { state = 0; cha.gotoAndStop('time_over'); game_out('fail'); time_over_interval = setInterval(time_over_f, 2000); snd_attach('cha_die_sound'); }; time_over_f = function () { if (state == 0) { state = 1; } clearInterval(time_over_interval); }; set_timer = function () { var v3 = String(time); var v2 = 1; while (v2 <= 3) { score_m.timer_mc['timer' + v2].gotoAndStop('blind'); ++v2; } v2 = 1; for (;;) { if (v2 > v3.length) { return undefined; } var v1 = Number(v3.substr(v2 - 1, 1)); if (v1 == 0) { v1 = 10; } score_m.timer_mc['timer' + v2].gotoAndStop(v1); ++v2; } }; _global.snd_attach = function (name, loop) { mySound = new Sound(); mySound.attachSound(name); if (loop == undefined) { mySound.start(); return undefined; } mySound.start(0, 999); }; removeAllInterval = function () { var v2 = setInterval(function () {}, 1000); var v1 = 0; for (;;) { if (v1 > v2) { return undefined; } clearInterval(v1); ++v1; } }; score_cul = function (item) { if (item === 'evil_die') { var v1 = 10; } else { if (item === 'evil_damage') { var v1 = 1; } else { if (item === 'get_item') { var v1 = 5; } else { if (item === 'damage_cha') { var v1 = -2; } } } } score += v1; score_disp._x = cha._x; score_disp._y = cha._y - 20; score_disp.gotoAndPlay('show'); if (v1 > 0) { score_disp.score_txt_m.score_txt.text = ' +' + v1; } else { score_disp.score_txt_m.score_txt.text = v1; } if (score < 0) { score = 0; } set_score(); }; set_score = function () { var v3 = String(score); var v2 = 1; while (v2 <= 4) { score_m.score_mc['score' + v2].gotoAndStop('blind'); ++v2; } v2 = 1; for (;;) { if (v2 > v3.length) { return undefined; } var v1 = Number(v3.substr(v2 - 1, 1)); if (v1 == 0) { v1 = 10; } score_m.score_mc['score' + v2].gotoAndStop(v1); ++v2; } }; return_pos = function (x, y) { return this['s' + y][x]; }; cha.onEnterFrame = function () { if (state == 1) { if (slope_m.hitTest(this._x, this._y, true) && this.mode != 'jump') { _root.imsi = true; if (this.mode != 'attack' && this.mode != 'damage') { this.mode = 'slope'; this.add_x = undefined; this.add_y = undefined; } var v5 = this._y + 100; var v3 = this._y - 50; while (v3 < v5) { if (slope_m.guide_m.hitTest(this._x, v3, true)) { break; } v3 += 1; } if (this.mode == 'damage') { if (this.add_y > 0) { this._y = v3; this.gotoAndStop('ready'); this.mode = 'slope'; this.attack_after = undefined; this.attack_check = undefined; } } else { this._y = v3; } if (Key.isDown(37) && this.mode != 'attack') { this._x += -0.838670567945 * m_value * 1.2; if (this._currentframe != 7) { this.gotoAndStop('walk'); } this._xscale = 100; } else { if (Key.isDown(39) && this.mode != 'attack') { this._x += 0.838670567945 * m_value * 1.2; if (this._currentframe != 7) { this.gotoAndStop('walk'); } this._xscale = -100; } } if (Key.isDown(32)) { var v8 = Math.floor(this._x / block_w); var v7 = Math.floor(this._y / block_h); var v12 = return_pos(v8, v7 - 1); if (v12 != 'b' && v12 != 'L' && v12 != 'E') { this.add_y = -jump_value; this.mode = 'jump'; this.gotoAndStop('jump'); if (Key.isDown(37)) { this.add_x = -m_value; } else { if (Key.isDown(39)) { this.add_x = m_value; } } } } if (Key.isDown(88)) { if (this.attack_check != true) { this.gotoAndStop('attack2'); this.mode = 'attack'; this.attack_check = true; attack_after(); } } } else { if (this.mode == 'slope') { this.mode = undefined; } _root.imsi = false; } if (this.mode != 'up' && this.mode != 'slope' && this.mode != 'attack' && this.mode != 'down') { this._x += this.add_x; this._y += this.add_y; if (this._x < x_min) { this._x = x_min; } else { if (this._x > x_max) { this._x = x_max; } } var v8 = Math.floor(this._x / block_w); var v7 = Math.floor(this._y / block_h); var v10 = return_pos(v8, v7); var v6 = return_pos(v8, v7 + 1); if (this.add_y > 0) { if (v6 == 'b' || v6 == 'E' || v6 == 's') { this._y = v7 * block_h; this.add_x = 0; this.add_y = 0; if (this.mode == 'jump' || this.mode == 'fall') { snd_attach('reach_sound'); } this.mode = undefined; if (!Key.isDown(37) && !Key.isDown(39)) { this.gotoAndStop('ready'); } } else { if (v6 == 'L' || v6 == 'S' || v10 == 'L') { if (this.mode != 'damage') { this._x = v8 * block_w + block_w / 2; this.add_x = 0; this.add_y = 0; if (this.mode == 'jump') { snd_attach('ladder_sound'); } this.mode = 'up'; this.gotoAndStop('up'); this.m.stop(); } } else { if (this.mode != 'jump' && this.mode != 'damage') { this.gotoAndStop('jump'); this.mode = 'fall'; if (this._x - v8 * block_w < block_w / 2) { this._x = v8 * block_w + this.hit_m._width / 2; } else { this._x = (v8 + 1) * block_w - this.hit_m._width / 2; } } } } } } if (this.mode == undefined) { if (Key.isDown(37)) { if (this._xscale == -100) { this._xscale = 100; } if (this.hit_m._width / 2 > this._x - v8 * block_w) { var v9 = return_pos(v8 - 1, v7); if (!(v9 == 'b' || v8 == 0)) { this._x -= m_value; if (this._currentframe != 7) { this.gotoAndStop('walk'); } } } else { this._x -= m_value; } } else { if (Key.isDown(39)) { if (this._xscale == 100) { this._xscale = -100; } if ((v8 + 1) * block_w - this._x < this.hit_m._width / 2) { var v11 = return_pos(v8 + 1, v7); if (!(v11 == 'b' || v8 == 15)) { this._x += m_value; if (this._currentframe != 7) { this.gotoAndStop('walk'); } } } else { this._x += m_value; } } } if (Key.isDown(32)) { v8 = Math.floor(this._x / block_w); v7 = Math.floor(this._y / block_h); var v12 = return_pos(v8, v7 - 1); v10 = return_pos(v8, v7); if (v12 != 'b' && v12 != 'E') { this.add_y = -jump_value; this.mode = 'jump'; this.gotoAndStop('jump'); if (Key.isDown(37)) { this.add_x = -m_value; } else { if (Key.isDown(39)) { this.add_x = m_value; } } } } if (Key.isDown(38)) { if (v10 == 'L' || v10 == 'S') { this.mode = 'up'; this._x = v8 * block_w + block_w / 2; this.gotoAndStop('up'); this.xscale = this._xscale; ladderSound = new Sound(); ladderSound.attachSound('ladder_up_sound'); ladderSound.start(0, 999); } } if (Key.isDown(40)) { if (v6 == 'E') { this.mode = 'up'; this._x = v8 * block_w + block_w / 2; this.gotoAndStop('up'); this.xscale = this._xscale; ladderSound = new Sound(); ladderSound.attachSound('ladder_up_sound'); ladderSound.start(0, 999); } else { if (v6 != 'L' && v6 != 'S' && v10 != 'L' && v10 != 'S' && this.attack_check != true) { this.gotoAndStop('down'); this.mode = 'attack'; this.attack_check = true; attack_after(); } } } if (Key.isDown(88)) { if (this.attack_check != true) { this.attack_nife = random(3) + 1; while (this.attack_nife == this.attack_pre_nife) { this.attack_nife = random(3) + 1; } this.attack_pre_nife = this.attack_nife; this.gotoAndStop('attack' + this.attack_nife); attack_after(); this.mode = 'attack'; this.attack_check = true; } } } else { if (this.mode == 'up') { if (Key.isDown(38)) { this.m.play(); this._y -= up_value; v8 = Math.floor(this._x / block_w); v7 = Math.floor(this._y / block_h); v10 = return_pos(v8, v7); if (v10 == 0 && Math.abs(this._y - v7 * block_h) < 5) { this._y = v7 * block_h; this.mode = undefined; this._xscale = this.xscale; } else { if (ladderSound == undefined) { ladderSound = new Sound(); ladderSound.attachSound('ladder_up_sound'); ladderSound.start(0, 999); } } } else { if (Key.isDown(40)) { this.m.play(); this._y += up_value; v8 = Math.floor(this._x / block_w); v7 = Math.floor(this._y / block_h); v6 = return_pos(v8, v7 + 1); if (v6 == 'b' && Math.abs(this._y - v7 * block_h) < 5) { this._y = v7 * block_h; this.mode = undefined; this._xscale = this.xscale; } else { if (ladderSound == undefined) { ladderSound = new Sound(); ladderSound.attachSound('ladder_up_sound'); ladderSound.start(0, 999); } } } else { if (Key.isDown(32)) { v8 = Math.floor(this._x / block_w); v7 = Math.floor(this._y / block_h); var v12 = return_pos(v8, v7 - 1); v10 = return_pos(v8, v7); if (v10 == 'S' && v12 != 'E') { this.add_y = -jump_value; this.mode = 'jump'; this.gotoAndStop('jump'); if (Key.isDown(37)) { this.add_x = -m_value; } else { if (Key.isDown(39)) { this.add_x = m_value; } } } } } } } else { if (this.mode == 'attack' && this.attack_after != true) { for (name in evil_control) { if (typeof evil_control[name] == 'movieclip') { var v4 = evil_control[name]; if (this.m.nife.hitTest(v4.hit_m)) { damage_evil(v4); this.attack_after = true; break; } } } do { } while (undefined != null); } else { if (this.mode == 'damage') { if (this._x < x_min) { this._x = x_min; } else { if (this._x > x_max) { this._x = x_max; } } v8 = Math.floor(this._x / block_w); v7 = Math.floor(this._y / block_h); v6 = return_pos(v8, v7 + 1); v10 = return_pos(v8, v7); if (this.add_y > 0 && v10 == 0 && v6 == 'b' || v6 == 'E' || v6 == 'L' && this._y > this.ty) { this.mode = undefined; this.gotoAndStop('ready'); this.add_x = 0; this.add_y = 0; this.ty = undefined; this.attack_check = undefined; this.attack_after = undefined; } } } } } if (this.add_y < max_add_y && this.mode != 'up') { this.add_y += g; } if (this.mode != 'up') { if (ladderSound != undefined) { ladderSound.stop('ladder_up_sound'); delete ladderSound; } } } }; attack_after = function () { clearInterval(attack_interval); attack_interval = setInterval(attack_interval_f, 500); snd_attach('swing2_sound'); }; down_after = function () { cha.gotoAndStop('ready'); cha.mode = undefined; cha.attack_after = undefined; cha.attack_check = undefined; }; attack_interval_f = function () { if (cha.mode == 'attack') { cha.gotoAndStop('ready'); cha.mode = undefined; cha.attack_after = undefined; cha.attack_check = undefined; clearInterval(attack_interval); } cha.attack_check = undefined; }; create_evil = function () { _root.createEmptyMovieClip('evil_control', 1); _root.createEmptyMovieClip('effect_control', 2); _root.effect_control.num = 0; _root.createEmptyMovieClip('item_union', 3); _root.item_union.num = 0; _root.createEmptyMovieClip('fire_control', 4); _root.fire_control.num = 0; if (stage_num == 1) { evil_pos = [{'x': random(125) + 75, 'y': 70, 'min_x': 18, 'max_x': 210}, {'x': random(200) + 300, 'y': 68, 'min_x': 300, 'max_x': 530}, {'x': random(180) + 180, 'y': 172, 'min_x': 160, 'max_x': 395}, {'x': random(150) + 50, 'y': 278, 'min_x': 16, 'max_x': 219}, {'x': random(200) + 320, 'y': 278, 'min_x': 300, 'max_x': 540}, {'x': random(200) + 35, 'y': 420, 'min_x': 35, 'max_x': 250}, {'x': random(60) + 360, 'y': 455, 'min_x': 354, 'max_x': 535}]; evil_type = ['dal_m', 'dal_m', 'dal_m', 'dal_m', 'snake_m', 'snake_m', 'snake_m']; var v4 = 0; while (v4 < evil_pos.length) { var v5 = random(evil_type.length); var v6 = evil_type[v5]; evil_type.splice(v5, 1); if (v6 == 'dal_m') { evil_control.attachMovie('dal_m', 'evil' + (v4 + 1), v4 + 1, {'type': 'dal'}); } else { evil_control.attachMovie('snake_m', 'evil' + (v4 + 1), v4 + 1, {'type': 'snake'}); } var v3 = evil_control['evil' + (v4 + 1)]; v3._x = evil_pos[v4].x; v3._y = evil_pos[v4].y; v3.min_x = evil_pos[v4].min_x; v3.max_x = evil_pos[v4].max_x; v3.damage_num = 0; if (v3.type == 'dal') { v3.add_x = random(2) + 1; } else { v3.add_x = random(3) + 1; } if (random(2) == 0) { v3.direct = 'right'; v3._xscale = -100; } else { v3.direct = 'left'; v3.add_x *= -1; } ++v4; } evil_num = evil_pos.length; evil_control.num = 0; evil_control._alpha = 0; evil_control.onEnterFrame = function () { this._alpha += 3; if (this._alpha >= 100) { this._alpha = 100; this.onEnterFrame = null; evil_control.onEnterFrame = function () { ++this.num; if (this.num > 100) { this.num = 0; } if (this.num % 3 == 0) { for (name in this) { if (typeof this[name] == 'movieclip') { if (this[name].damage_check != true) { var v2 = this[name]; if (random(10) == 0) { if (v2.type == 'dal') { v2.add_x = random(4); } else { v2.add_x = random(5); } if (v2.direct == 'left') { v2.add_x *= -1; } } else { if (random(20) == 0) { if (v2.type == 'dal') { v2.add_x = random(6) + 1; } else { v2.add_x = random(6) + 2; } if (v2.direct == 'left') { v2.add_x *= -1; } } } if (v2.add_x == 0) { v2.gotoAndStop('ready'); } else { v2.gotoAndStop('walk'); } if (v2._x + v2.add_x <= v2.min_x) { v2.direct = 'right'; if (v2.add_x < 0) { v2.add_x *= -1; } v2._x = v2.min_x; v2._xscale = -100; } else { if (v2._x + v2.add_x >= v2.max_x) { v2.direct = 'left'; if (v2.add_x > 0) { v2.add_x *= -1; } v2._x = v2.max_x; v2._xscale = 100; } } v2._x += v2.add_x; if (v2.hit_m.hitTest(cha.hit_m)) { if (cha.mode != 'damage') { if (cha.damage_check != true && cha._y + 10 < v2._y) { damage_cha(v2); } } } } } } } }; } }; return undefined; } if (stage_num == 2) { evil_pos = [{'x': random(63) + 23, 'y': 74, 'min_x': 23, 'max_x': 86}, {'x': random(50) + 264, 'y': 74, 'min_x': 264, 'max_x': 314}, {'x': random(77) + 463, 'y': 74, 'min_x': 463, 'max_x': 546}, {'x': random(133) + 27, 'y': 178, 'min_x': 27, 'max_x': 160}, {'x': random(300) + 239, 'y': 178, 'min_x': 239, 'max_x': 540}, {'x': random(310) + 25, 'y': 283, 'min_x': 25, 'max_x': 335}, {'x': random(13) + 17, 'y': 456, 'min_x': 17, 'max_x': 30}, {'x': random(155) + 233, 'y': 456, 'min_x': 233, 'max_x': 533}]; evil_type = ['mush_m', 'mush_m', 'mush_m', 'mush_m', 'slame_m', 'slame_m', 'slame_m', 'slame_m']; v4 = 0; while (v4 < evil_pos.length) { v5 = random(evil_type.length); v6 = evil_type[v5]; evil_type.splice(v5, 1); if (v6 == 'mush_m') { evil_control.attachMovie('mush_m', 'evil' + (v4 + 1), v4 + 1, {'type': 'mush'}); } else { evil_control.attachMovie('slame_m', 'evil' + (v4 + 1), v4 + 1, {'type': 'slame'}); } v3 = evil_control['evil' + (v4 + 1)]; v3._x = evil_pos[v4].x; v3._y = evil_pos[v4].y; v3.min_x = evil_pos[v4].min_x; v3.max_x = evil_pos[v4].max_x; v3.damage_num = 0; if (v3.type == 'mush') { v3.add_x = random(2) + 1; } else { v3.add_x = random(3) + 1; } if (random(2) == 0) { v3.direct = 'right'; v3._xscale = -100; } else { v3.direct = 'left'; v3.add_x *= -1; } ++v4; } evil_num = evil_pos.length; evil_control.num = 0; evil_control._alpha = 0; evil_control.onEnterFrame = function () { this._alpha += 3; if (this._alpha >= 100) { this._alpha = 100; this.onEnterFrame = null; evil_control.onEnterFrame = function () { ++this.num; if (this.num > 100) { this.num = 0; } if (this.num % 3 == 0) { for (name in this) { if (typeof this[name] == 'movieclip') { if (this[name].damage_check != true) { var v2 = this[name]; if (random(20) == 0 && v2.run_check == undefined) { if (v2.type == 'mush') { v2.add_x = random(5) + 2; } else { v2.add_x = random(6) + 2; } v2.gotoAndStop('run'); v2.run_check = true; if (v2.direct == 'left') { v2.add_x *= -1; } } else { if (random(20) == 0 && v2.run_check == undefined) { if (v2.type == 'mush') { v2.add_x = random(4); } else { v2.add_x = random(6) + 1; } v2.gotoAndStop('walk'); if (v2.direct == 'left') { v2.add_x *= -1; } } } if (v2._x + v2.add_x <= v2.min_x) { v2.direct = 'right'; if (v2.add_x < 0) { v2.add_x *= -1; } v2._x = v2.min_x; v2._xscale = -100; } else { if (v2._x + v2.add_x >= v2.max_x) { v2.direct = 'left'; if (v2.add_x > 0) { v2.add_x *= -1; } v2._x = v2.max_x; v2._xscale = 100; } } v2._x += v2.add_x; if (v2.hit_m.hitTest(cha.hit_m)) { if (cha.mode != 'damage') { if (cha.damage_check != true && cha._y + 10 < v2._y) { damage_cha(v2); } } } } } } } }; } }; return undefined; } if (stage_num == 3) { evil_pos = [{'x': random(517) + 23, 'y': 67, 'min_x': 23, 'max_x': 540}, {'x': random(517) + 23, 'y': 67, 'min_x': 23, 'max_x': 540}, {'x': random(517) + 23, 'y': 173, 'min_x': 23, 'max_x': 540}, {'x': random(517) + 23, 'y': 173, 'min_x': 23, 'max_x': 540}, {'x': random(517) + 23, 'y': 277, 'min_x': 23, 'max_x': 540}, {'x': random(517) + 23, 'y': 277, 'min_x': 23, 'max_x': 540}, {'x': random(84) + 11, 'y': 350, 'min_x': 18, 'max_x': 95}, {'x': random(317) + 23, 'y': 452, 'min_x': 23, 'max_x': 540}, {'x': random(317) + 23, 'y': 452, 'min_x': 23, 'max_x': 540}, {'x': random(317) + 23, 'y': 452, 'min_x': 23, 'max_x': 540}]; evil_type = ['clang_m', 'clang_m', 'clang_m', 'clang_m', 'clang_m', 'picsy_m', 'picsy_m', 'picsy_m', 'picsy_m', 'picsy_m']; v4 = 0; while (v4 < evil_pos.length) { v5 = random(evil_type.length); v6 = evil_type[v5]; evil_type.splice(v5, 1); if (v6 == 'clang_m') { evil_control.attachMovie('clang_m', 'evil' + (v4 + 1), v4 + 1, {'type': 'clang'}); } else { evil_control.attachMovie('picsy_m', 'evil' + (v4 + 1), v4 + 1, {'type': 'picsy'}); } v3 = evil_control['evil' + (v4 + 1)]; v3._x = evil_pos[v4].x; v3._y = evil_pos[v4].y; v3.min_x = evil_pos[v4].min_x; v3.max_x = evil_pos[v4].max_x; v3.damage_num = 0; if (v3.type == 'clang') { v3.add_x = random(5) + 1; } else { v3.add_x = random(6) + 1; } if (random(2) == 0) { v3.direct = 'right'; v3._xscale = -100; } else { v3.direct = 'left'; v3.add_x *= -1; } ++v4; } evil_num = evil_pos.length; evil_control.num = 0; evil_control._alpha = 0; evil_control.onEnterFrame = function () { this._alpha += 3; if (this._alpha >= 100) { this._alpha = 100; this.onEnterFrame = null; evil_control.onEnterFrame = function () { ++this.num; if (this.num > 100) { this.num = 0; } if (this.num % 3 == 0) { for (name in this) { if (typeof this[name] == 'movieclip') { if (this[name].damage_check != true) { var v2 = this[name]; if (random(20) == 0 && v2.jump_check == undefined) { if (v2.type == 'clang') { v2.add_x = random(7); } else { v2.add_x = random(9); } v2.gotoAndStop('jump'); v2.jump_check = true; if (v2.direct == 'left') { v2.add_x *= -1; } } else { if (random(20) == 0 && v2.jump_check == undefined) { if (v2.type == 'mush') { v2.add_x = random(7); } else { v2.add_x = random(8); } v2.gotoAndStop('walk'); if (v2.direct == 'left') { v2.add_x *= -1; } } } if (v2.add_x == 0) { v2.gotoAndStop('ready'); } else { if (v2.jump_check == undefined) { v2.gotoAndStop('walk'); } } if (v2._x + v2.add_x <= v2.min_x) { v2.direct = 'right'; if (v2.add_x < 0) { v2.add_x *= -1; } v2._x = v2.min_x; v2._xscale = -100; } else { if (v2._x + v2.add_x >= v2.max_x) { v2.direct = 'left'; if (v2.add_x > 0) { v2.add_x *= -1; } v2._x = v2.max_x; v2._xscale = 100; } } v2._x += v2.add_x; if (v2.hit_m.hitTest(cha.hit_m)) { if (cha.mode != 'damage') { if (cha.damage_check != true && cha._y + 10 < v2._y) { damage_cha(v2); } } } } } } } }; } }; } }; remove_evil = function () { for (name in evil_control) { if (typeof evil_control[name] == 'movieclip') { evil_control[name].removeMovieClip(); } } for (name in effect_control) { if (typeof effect_control[name] == 'movieclip') { effect_control[name].removeMovieClip(); } } for (name in item_union) { if (typeof item_union[name] == 'movieclip') { item_union[name].removeMovieClip(); } } }; create_item = function (evil_mc) { ++item_union.num; var v4 = random(4) + 1; item_union.attachMovie('item' + v4, 'item' + item_union.num, item_union.num); var v2 = item_union['item' + item_union.num]; v2._x = evil_mc._x; v2._y = evil_mc._y - 50; v2.ty = evil_mc._y; v2.add_y = -jump_value; snd_attah('click_sound'); v2.onEnterFrame = function () { this._y += this.add_y; this.add_y += g; if (this._y >= this.ty) { this.onEnterFrame = null; this._y = this.ty; snd_attach('reach_sound'); } }; }; get_item = function () { for (name in item_union) { var v2 = item_union[name]; if (typeof v2 == 'movieclip') { if (cha.hit_m.hitTest(v2)) { v2.ty = v2._y - 60; v2.gotoAndPlay(1); v2.onEnterFrame = function () { smoothMove(this, this._x, this.ty, 0.3); this._alpha -= 2; if (Math.abs(this.ty - this._y) < 1) { this.onEnterFrame = null; this.num = 0; this.add_y = 0; this.onEnterFrame = function () { ++this.num; this.add_y += 2; this._y += this.add_y; if (this.num >= 10) { this.onEnterFrame = null; this.removeMovieClip(); } }; } }; score_cul('get_item'); snd_attach('get_item_sound'); } } } }; damage_evil = function (mc) { mc.gotoAndStop('damage'); if (mc._x - cha._x > 0) { mc.tx = mc._x + 50; mc.direct = 'left'; mc._xscale = 100; if (mc.add_x > 0) { mc.add_x *= -1; } } else { mc.tx = mc._x - 50; mc.direct = 'right'; mc._xscale = -100; if (mc.add_x < 0) { mc.add_x *= -1; } } if (mc.tx > mc.max_x) { mc.tx = mc.max_x; } else { if (mc.tx < mc.min_x) { mc.tx = mc.min_x; } } mc.damage_check = true; ++mc.damage_num; score_cul('evil_damage'); if (mc.damage_num < 2) { mc.onEnterFrame = function () { smoothMove(this, this.tx, this._y, 0.3); if (Math.abs(this.tx - this._x) < 1) { this.onEnterFrame = null; this.damage_check = undefined; this.gotoAndStop('walk'); } }; if (mc.type == 'slame') { snd_attach('slame_hit_sound'); } else { if (mc.type == 'clang') { snd_attach('clang_hit_sound'); } else { if (mc.type == 'picsy') { snd_attach('picsy_hit_sound'); } } } } else { mc.gotoAndStop('die'); --evil_num; score_cul('evil_die'); if (evil_num <= 0) { game_out('success'); } if (mc.type == 'dal') { snd_attach('dal_die_sound'); } else { if (mc.type == 'snake') { snd_attach('snake_die_sound'); } else { if (mc.type == 'mush') { snd_attach('mush_die_sound'); } else { if (mc.type == 'slame') { snd_attach('slame_die_sound'); } else { if (mc.type == 'clang') { snd_attach('clang_die_sound'); } else { if (mc.type == 'picsy') { snd_attach('picsy_die_sound'); } } } } } } create_item(mc); } snd_attach('hit_sound'); ++effect_control.num; effect_control.attachMovie('damage_score_m', 'damage' + effect_control.num, effect_control.num); var v7 = effect_control['damage' + effect_control.num]; v7._x = mc._x; v7._y = mc._y - 20; v7.number.gotoAndStop(mc.damage_num); ++effect_control.num; effect_control.attachMovie('hit_txt_m', 'hit_txt' + effect_control.num, effect_control.num); v7 = effect_control['hit_txt' + effect_control.num]; v7._x = mc._x; v7._y = mc._y - 10; var v6 = random(6) + 8; var v5 = 1; for (;;) { if (v5 > v6) { return undefined; } ++fire_control.num; if (fire_control.num > 50) { fire_control.num = 1; } var v3 = fire_control.attachMovie('fire_m', 'fire' + fire_control.num, fire_control.num); v3._x = mc._x; v3._y = mc._y; v3._yscale = random(80) + 20; v3._xscale = v3._yscale; v3.add_x = random(8) - 4; v3.add_y = -random(15) - 10; v3.ty = v3._y + 20 + random(15); v3.onEnterFrame = function () { this._x += this.add_x; this._y += this.add_y; this.add_y += _root.g; if (this._y >= this.ty) { if (random(3) != 0) { this.onEnterFrame = null; this.removeMovieClip(); return undefined; } if (this.bound_check == undefined) { this.add_y *= -0.7; this.bound_check = true; this._yscale *= 0.7; this._xscale = this._yscale; } } }; ++v5; } }; damage_cha = function (evil_mc) { cha.mode = 'damage'; cha.damage_check = true; if (evil_mc._x - cha._x > 0) { cha.add_x = -m_value * 1.5; } else { cha.add_x = m_value * 1.5; } cha.add_y = -jump_value + 5; cha.ty = evil_mc._y; cha.gotoAndStop('damage'); score_cul('damage_cha'); game_out('fail'); damage_cha_effect_interval = setInterval(damage_cha_effect_f, 80); damage_cha_after_interval = setInterval(damage_cha_after_f, 3000); snd_attach('hit_sound'); snd_attach('cha_die_sound'); }; damage_cha_after_f = function () { cha.mode = undefined; cha.damage_check = undefined; cha.attack_after = undefined; cha.attack_check = undefined; cha._alpha = 100; clearInterval(damage_cha_after_interval); clearInterval(damage_cha_effect_interval); }; damage_cha_effect_f = function () { if (random(2) == 0) { cha._alpha = 80; return undefined; } cha._alpha = 20; }; smoothMove = function (mc, tx, ty, sp) { var v3 = tx - mc._x; var v2 = ty - mc._y; mc._x += v3 * sp; mc._y += v2 * sp; }; view_ranking = function () { var v5 = new LoadVars(); var v9 = Math.floor((getTimer() / 1000) * 10) / 10; var v8 = Math.floor((1 / v9) * 800 * 10) / 10; var total_score = score + v8; v5.user_name = popup_box.name_txt.text; v5.user_score = total_score; user_name = v5.user_name; v5.sendAndLoad('http://www.maplestory.com/maple_game_end.aspx', v5, 'POST'); v5.onLoad = function (success) { if (success) { var v3 = 1; while (v3 <= 10) { _root['name_' + v3] = this['name_' + v3]; _root['score_' + v3] = this['score_' + v3]; var v4 = ranking_list['rect' + v3].rect; v4.name.text = _root['name_' + v3]; v4.score.text = _root['score_' + v3]; v4.num.text = v3; v4._visible = false; if (v4.name.text == user_name) { user_active_num = v3; } ++v3; } if (user_active_num == undefined) { ranking_list['rect' + (v3 - 1)].rect.num.text = ''; ranking_list['rect' + (v3 - 1)].rect.name.text = user_name; ranking_list['rect' + (v3 - 1)].rect.score.text = total_score; user_active_num = v3 - 1; } var v6 = new TextFormat(); v6.bold = true; v6.color = '0x336699'; ranking_list['rect' + user_active_num].rect.name.setTextFormat(v6); ranking_list['rect' + user_active_num].rect.score.setTextFormat(v6); ranking_list.attachMovie('cursor_m', 'cursor_m', 102); var v5 = ranking_list.cursor_m; v5._yscale = 60; v5._xscale = 60; v5._x = -171; v5._y = ranking_list['rect' + user_active_num]._y - 5; v5._visible = false; ranking_list.rect1.gotoAndPlay('view'); return undefined; } alert('ranking error !'); }; }; game_replay = function () { for (name in _root) { if (typeof _root[name] == 'movieclip') { _root[name].removeMovieClip(); } else { if (typeof _root[name] == 'string') { delete _root[name]; } } } gotoAndPlay(147); stopAllSounds(); snd_attach('intro_sound'); }; alert = function (input) { getURL('javascript:alert ("' + input + '");', ''); }; myListen = new Object(); myListen.onKeyDown = function () { if (Key.isDown(90)) { get_item(); } }; myListen.onKeyUp = function () { if (state == 1) { if (Key.getCode(37) || Key.getCode(39)) { if (!Key.isDown(37) && !Key.isDown(39)) { if (cha.mode != 'jump' && cha.mode != 'up' && cha.mode != 'attack' && cha.mode != 'down' && cha.mode != 'damage') { cha.gotoAndStop('ready'); } } } if (Key.getCode(38) && cha.mode == 'up') { cha.m.stop(); ladderSound.stop('ladder_up_sound'); delete ladderSound; } } }; Key.addListener(myListen); stop(); gameInit(); } movieClip 359 { } movieClip 372 { frame 7 { stop(); } } movieClip 373 { frame 92 { stop(); _root.game_restart(); snd_attach('click_sound'); } } movieClip 376 { } movieClip 382 { frame 1 { gotoAndStop(4 - _root.life); } frame 4 { stop(); } } movieClip 397 { } movieClip 398 { frame 1 { stop(); } } movieClip 400 { } movieClip 401 { } movieClip 404 { } movieClip 405 { } movieClip 414 { } movieClip 416 { } movieClip 419 { } movieClip 422 { } movieClip 427 { } movieClip 432 { } movieClip 434 { } movieClip 437 { } movieClip 452 { } movieClip 459 { } movieClip 464 { } movieClip 466 { } movieClip 475 { } movieClip 478 { } movieClip 483 { } movieClip 488 { frame 17 { _root.down_after(); } } movieClip 495 { frame 20 { _root.down_after(); } } movieClip 507 { } movieClip 512 { frame 17 { _root.down_after(); } } movieClip 515 { } movieClip 518 { frame 13 { _root.down_after(); } } movieClip 524 { } movieClip 526 { } movieClip 529 { } movieClip 537 { } movieClip 539 { } movieClip 542 { } movieClip 544 { } movieClip 545 { frame 33 { stop(); } } movieClip 548 { } movieClip 557 { } movieClip 558 { } movieClip 560 { frame 12 { _root.down_after(); } } movieClip 567 { } movieClip 568 { } movieClip 571 { } movieClip 575 { } movieClip 576 { frame 26 { _root.state = 1; _parent.gotoAndStop('ready'); } } movieClip 578 { } movieClip 579 { frame 6 { stop(); } } movieClip 581 { } movieClip 583 { } // unknown tag 88 length 39 movieClip 589 { } // unknown tag 88 length 39 movieClip 595 { } movieClip 598 { } movieClip 599 { } movieClip 602 { } frame 204 { stop(); Selection.setFocus('popup_box.name_txt'); popup_box.ok_btn.onPress = function () { if (false && popup_box.name_txt.text.length == 0 || popup_box.name_txt.text == '') { name_check = true; Selection.setFocus('popup_box.name_txt'); return undefined; } popup_box._visible = false; name_check = true; _root.view_ranking(); }; final_ok_btn.onPress = function () { if (name_check) { gotoAndStop(205); return undefined; } Selection.setFocus('popup_box.name_txt'); }; } button 607 { on (release) { gotoAndPlay(146); } } frame 205 { if (movie_type == 'a_type') { button_m.gotoAndStop('a_type'); with (button_m) { submit_btn.onPress = function () { _root.goto_scene(); }; replay_btn.onPress = function () { _root.game_replay(); }; } } else { button_m.gotoAndStop('b_type'); with (button_m) { replay_btn.onPress = function () { _root.game_replay(); }; exit_btn.onPress = function () { getURL('javascript:self.close()'); }; } } } frame 211 { stop(); }




http://swfchan.com/26/125871/info.shtml
Created: 26/2 -2019 15:39:33 Last modified: 26/2 -2019 15:39:33 Server time: 22/12 -2024 08:44:25