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/12620373?noj=FRM12620373-22DC" width="1" height="1"></div>

Chicken-Rampage.swf

This is the info page for
Flash #125013

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


ActionScript [AS1/AS2]
Combined Code
// unknown tag 88 length 87 // unknown tag 88 length 214 movieClip 9 { } movieClip 11 { } movieClip 13 { } movieClip 15 { } movieClip 17 { } movieClip 21 { } movieClip 32 slepka { frame 1 { stop(); } frame 21 { gotoAndStop(1); } frame 38 { stop(); } frame 200 { stop(); } } movieClip 35 { } movieClip 36 { } movieClip 43 { } movieClip 44 luk { frame 1 { stop(); } } movieClip 50 { frame 11 { stop(); } } movieClip 53 { } movieClip 54 arrow_nobolt_hlava { frame 1 { stop(); } } movieClip 56 arrow_nobolt { frame 1 { stop(); } } // unknown tag 88 length 87 movieClip 59 obdelnik { } movieClip 61 { } movieClip 63 { } movieClip 70 kure { frame 1 { stop(); } frame 92 { stop(); } } movieClip 72 { } movieClip 74 { } movieClip 75 kohout { frame 1 { stop(); } frame 14 { gotoAndStop(1); } frame 38 { stop(); } frame 200 { stop(); } } movieClip 77 { } movieClip 79 { } movieClip 81 { } movieClip 82 { } movieClip 83 slepka_litaci { frame 19 { gotoAndPlay(1); } frame 20 { stop(); } } movieClip 85 { } movieClip 87 { } movieClip 88 krocan { frame 1 { stop(); } frame 21 { gotoAndStop(1); } frame 40 { stop(); } frame 200 { stop(); } } movieClip 90 { } movieClip 92 { } movieClip 94 { } movieClip 95 boss_1 { frame 1 { stop(); } frame 14 { gotoAndStop(1); } frame 97 { stop(); } frame 200 { stop(); } } movieClip 97 { } movieClip 99 { } movieClip 101 { } movieClip 103 { } movieClip 104 boss_02 { frame 1 { stop(); } frame 12 { gotoAndStop(1); } frame 51 { _root._y += 5; } frame 53 { _root._y -= 5; } frame 55 { _root._y += 3; } frame 57 { _root._y -= 3; stop(); } frame 200 { stop(); } } movieClip 106 { } movieClip 108 { } movieClip 110 { } movieClip 111 boss_03 { frame 1 { stop(); } frame 14 { gotoAndStop(1); } frame 50 { _root._y += 5; } frame 52 { _root._y -= 5; } frame 54 { _root._y += 3; } frame 56 { _root._y -= 3; stop(); } frame 200 { stop(); } } movieClip 113 hovno { } movieClip 119 arrow { frame 1 { stop(); } frame 2 { stop(); } } frame 1 { function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = '__mochibot__'; mbc = 'mochibot.com'; g = _global ? _global : _level0._root; if (g[mb + swfid]) { return g[mb + swfid]; } s = System.security; x = mc._root.getSWFVersion; fv = x ? mc.getSWFVersion() : (_global ? 6 : 5); if (!s) { s = {}; } sb = s.sandboxType; if (sb == 'localWithFile') { return null; } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = (fv == 5) ? /:$version : System.capabilities.version; u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : ''); lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv); g[mb + 'level'] = lv; if (fv == 5) { res = '_level' + lv; if (!eval(res)) { loadMovieNum(u, lv); } return res; } res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); return res; } __com_mochibot__('a5828423', this, 10301, true); } frame 1 { function init_const() { _root.acc_bonus1 = 100; _root.acc_bonus2 = 200; _root.acc_bonus3 = 500; _root.fast_bonus1 = 200; _root.fast_bonus2 = 400; _root.fast_bonus3 = 750; _root.killer_bonus1 = 250; _root.killer_bonus2 = 500; _root.killer_bonus3 = 1000; _root.player.hp = 100; } function mouseDownAndUp() { _root.archer.luk.gotoAndStop(_root.player.luk_num); _root.end_game = false; imdrawing = false; x2 = 0; y2 = 0; onMouseDown = function () { if (imdrawing == false && _xmouse > 50 && _ymouse < 425 && _root._currentframe > 10 && _root.player.act_arrows > 0 && _root.end_game == false) { terrain.moveTo(_xmouse, _ymouse); terrain2.moveTo(_xmouse, _ymouse); terrain3.moveTo(_xmouse, _ymouse); removeMovieClip(_root.luk); _root.attachMovie('luk', 'luk', _root.getNextHighestDepth(), {'_x': _root._xmouse, '_y': _root._ymouse}); _root.attachMovie('shoot_stats', 'shoot_stats', _root.getNextHighestDepth(), {'_x': _root._xmouse, '_y': _root._ymouse - 100}); _root.archer.luk.gotoAndStop(_root.player.luk_num); _root.archer.hlava._rotation = 0; imdrawing = true; start_x = _xmouse; start_y = _ymouse; x1 = _xmouse; y1 = _ymouse; x2 = _xmouse; y2 = _ymouse; } if (imdrawing == true && _root._currentframe > 10) { onEnterFrame = function () { terrain.lineTo(_xmouse, _ymouse); x1 = _xmouse; y1 = _ymouse; if (x1 != x2 || y1 != y2) { removeMovieClip(terrain); createEmptyMovieClip('terrain', 1); x2 = x1; y2 = y1; dx = start_x - x1; dy = start_y - y1; if (dx > 0) { angle = Math.atan2(dy, dx); power = Math.sqrt(dx * dx + dy * dy); uhel = angle * 180 / Math.PI; if (power > _root.player.max_power) { power = _root.player.max_power; } _root.archer._xscale = 30; _root.archer._yscale = 30; _root.archer.luk._rotation = angle * 180 / Math.PI; _root.archer.hlava._rotation = angle * 180 / Math.PI; _root.power_txt.text = _root.texty.power + ':' + Math.round(power); _root.angle_txt.text = _root.texty.angle + ':' + -Math.round(angle * 180 / Math.PI); _root.shoot_stats.power_txt.text = _root.texty.power + ':' + Math.round(power); _root.shoot_stats.angle_txt.text = _root.texty.angle + ':' + -Math.round(angle * 180 / Math.PI); _root.luk._rotation = angle * 180 / Math.PI; removeMovieClip(_root.luk.terrain2); _root.luk.createEmptyMovieClip('terrain2', 2); _root.luk.terrain2.lineStyle(1, 0, 100); _root.luk.terrain2.moveTo(0, 60); _root.luk.terrain2.lineTo(-power / 2, 0); removeMovieClip(_root.luk.terrain3); _root.luk.createEmptyMovieClip('terrain3', 3); _root.luk.terrain3.lineStyle(1, 0, 100); _root.luk.terrain3.moveTo(0, -60); _root.luk.terrain3.lineTo(-power / 2, 0); _root.luk.sip._x = -power / 2; _root.luk.gotoAndStop(_root.player.luk_num); } else { angle = Math.atan2(dy, dx); power = Math.sqrt(dx * dx + dy * dy); uhel = angle * 180 / Math.PI; if (power > _root.player.max_power) { power = _root.player.max_power; } _root.archer._xscale = -30; _root.archer._yscale = 30; _root.archer.luk._rotation = 180 - angle * 180 / Math.PI; _root.archer.hlava._rotation = 180 - angle * 180 / Math.PI; _root.power_txt.text = _root.texty.power + ':' + Math.round(power); _root.angle_txt.text = _root.texty.angle + ':' + -Math.round(180 - angle * 180 / Math.PI); _root.shoot_stats.power_txt.text = _root.texty.power + ':' + Math.round(power); _root.shoot_stats.angle_txt.text = _root.texty.angle + ':' + -Math.round(180 - angle * 180 / Math.PI); _root.luk._rotation = angle * 180 / Math.PI; removeMovieClip(_root.luk.terrain2); _root.luk.createEmptyMovieClip('terrain2', 2); _root.luk.terrain2.lineStyle(1, 0, 100); _root.luk.terrain2.moveTo(0, 60); _root.luk.terrain2.lineTo(-power / 2, 0); removeMovieClip(_root.luk.terrain3); _root.luk.createEmptyMovieClip('terrain3', 3); _root.luk.terrain3.lineStyle(1, 0, 100); _root.luk.terrain3.moveTo(0, -60); _root.luk.terrain3.lineTo(-power / 2, 0); _root.luk.sip._x = -power / 2; _root.luk.gotoAndStop(_root.player.luk_num); } } if (_root._currentframe < 10) { removeMovieClip(_root.luk); } }; } }; onMouseUp = function () { onEnterFrame = function () { if (imdrawing == true && power != 0) { snd = new Sound(); snd.attachSound('snd_sip.wav'); snd.start(); imdrawing = false; terrain.lineTo(x1, y1); jmeno_arrow = 'arrow' + _root.getNextHighestDepth(); _root.attachMovie('arrow', jmeno_arrow, _root.getNextHighestDepth(), {'_x': _root.archer._x, '_y': _root.archer._y, '_rotation': _root.archer.luk._rotation}); arrow_flight(_root[jmeno_arrow], power / 5, angle); _root[jmeno_arrow].num = _root.getNextHighestDepth(); power = 0; _root.player.act_arrows -= 1; ++_root.player.arrow_shooted; _root.lvl.shots += 1; _root.sipy_txt.text = _root.player.act_arrows + '/' + _root.player.max_arrows; removeMovieClip(terrain); removeMovieClip(_root.luk); removeMovieClip(_root.shoot_stats); } }; }; } function arrow_flight(obj, speed, angle) { obj.angle = angle; obj.speed = speed; obj.xspeed = Math.cos(obj.angle) * obj.speed; obj.yspeed = Math.sin(obj.angle) * obj.speed; obj.del = 600; if (_root.player.act_arrows < 2) { obj.last_arrow = true; } else { obj.last_arrow = false; } obj.onEnterFrame = function () { if (this._currentframe == 1) { this.angle2 = Math.atan2(this.yspeed, this.xspeed); this._rotation = this.angle2 * 180 / Math.PI; this._x += this.xspeed; this._y += this.yspeed; this.xspeed = this.xspeed * 0.99 + _root.wind; this.yspeed += 0.4; if (this._y > 420) { _root.to_remove.push(this); this.gotoAndStop(2); } testuj_obj(this.hrot, _root.slama1.tester, _root.rewards.slama, 4); testuj_obj(this.hrot, _root.slama2.tester, _root.rewards.slama, 4); testuj_obj(this.hrot, _root.slama3.tester, _root.rewards.slama, 4); testuj_obj(this.hrot, _root.slama4.tester, _root.rewards.slama, 4); testuj_obj(this.hrot, _root.slama5.tester, _root.rewards.slama, 4); testuj_obj(this.hrot, _root.slama6.tester, _root.rewards.slama, 4); testuj_obj(this.hrot, _root.slama7.tester, _root.rewards.slama, 4); testuj_obj(this.hrot, _root.slama8.tester, _root.rewards.slama, 4); testuj_obj(this.hrot, _root.slama9.tester, _root.rewards.slama, 4); testuj_obj(this.hrot, _root.vozik.tester, _root.rewards.slama, 4); testuj_obj(this.hrot, _root.vozik.tester2, _root.rewards.slama, 4); testuj_obj(this.hrot, _root.terc.slama.tester, _root.rewards.slama, 4); testuj_obj(this.hrot, _root.slepka.tester, _root.rewards.slipka, 2); testuj_obj(this.hrot, _root.slepka1.tester, _root.rewards.slipka, 2); testuj_obj(this.hrot, _root.slepka2.tester, _root.rewards.slipka, 2); testuj_obj(this.hrot, _root.slepka3.tester, _root.rewards.slipka, 2); testuj_obj(this.hrot, _root.slepka4.tester, _root.rewards.slipka, 2); testuj_obj(this.hrot, _root.prase.tester, _root.rewards.prase, 5); testuj_obj(this.hrot, _root.stan.tester, _root.rewards.stan, 9); testuj_obj(this.hrot, _root.stan1.tester, _root.rewards.stan, 9); testuj_mesec(this.hrot, _root.mesec.tester, _root.rewards.mesec); testuj_toulec(this.hrot, _root.toulec.tester, _root.rewards.toulec); testuj_obj(this.hrot, _root.panak.tester, _root.rewards.panak); testuj_obj(this.hrot, _root.sud.tester, _root.rewards.sud, 3); testuj_obj(this.hrot, _root.sud1.tester, _root.rewards.sud, 3); testuj_obj(this.hrot, _root.sud2.tester, _root.rewards.sud, 3); testuj_obj(this.hrot, _root.sud3.tester, _root.rewards.sud, 3); testuj_obj(this.hrot, _root.ohen.tester, _root.rewards.ohen, 6); testuj_obj(this.hrot, _root.jablko.tester, _root.rewards.jablko, 7); testuj_obj(this.hrot, _root.jablko1.tester, _root.rewards.jablko, 7); testuj_obj(this.hrot, _root.jablko2.tester, _root.rewards.jablko, 7); testuj_obj(this.hrot, _root.jablko3.tester, _root.rewards.jablko, 7); testuj_obj(this.hrot, _root.jablko4.tester, _root.rewards.jablko, 7); testuj_obj(this.hrot, _root.jablko5.tester, _root.rewards.jablko, 7); testuj_obj(this.hrot, _root.siska1.tester, _root.rewards.siska, 10); testuj_obj(this.hrot, _root.siska2.tester, _root.rewards.siska, 10); testuj_obj(this.hrot, _root.siska3.tester, _root.rewards.siska, 10); testuj_obj(this.hrot, _root.siska4.tester, _root.rewards.siska, 10); testuj_obj(this.hrot, _root.siska5.tester, _root.rewards.siska, 10); testuj_obj(this.hrot, _root.siska6.tester, _root.rewards.siska, 10); testuj_obj(this.hrot, _root.siska7.tester, _root.rewards.siska, 10); testuj_obj(this.hrot, _root.siska8.tester, _root.rewards.siska, 10); testuj_obj(this.hrot, _root.siska9.tester, _root.rewards.siska, 10); testuj_obj(this.hrot, _root.kralik1.tester, _root.rewards.kralik, 11); testuj_obj(this.hrot, _root.kralik2.tester, _root.rewards.kralik, 11); testuj_obj(this.hrot, _root.kralik3.tester, _root.rewards.kralik, 11); testuj_obj(this.hrot, _root.strasak.tester1, _root.rewards.strasak1, 12); testuj_obj(this.hrot, _root.strasak.tester2, _root.rewards.strasak2, 12); testuj_obj(this.hrot, _root.ptak1.tester, _root.rewards.ptak, 13); testuj_obj(this.hrot, _root.ptak2.tester, _root.rewards.ptak, 13); testuj_obj(this.hrot, _root.ptak3.tester, _root.rewards.ptak, 13); testuj_obj(this.hrot, _root.ptak4.tester, _root.rewards.ptak, 13); testuj_obj(this.hrot, _root.ptak5.tester, _root.rewards.ptak, 13); testuj_obj(this.hrot, _root.ptak6.tester, _root.rewards.ptak, 13); testuj_obj(this.hrot, _root.ptak7.tester, _root.rewards.ptak, 13); testuj_obj(this.hrot, _root.ptak8.tester, _root.rewards.ptak, 13); testuj_obj(this.hrot, _root.ptak9.tester, _root.rewards.ptak, 13); testuj_obj(this.hrot, _root.ptak10.tester, _root.rewards.ptak, 13); testuj_obj(this.hrot, _root.pytel1.tester, _root.rewards.pytel, 14); testuj_obj(this.hrot, _root.pytel2.tester, _root.rewards.pytel, 14); testuj_obj(this.hrot, _root.pytel3.tester, _root.rewards.pytel, 14); testuj_obj(this.hrot, _root.pytel4.tester, _root.rewards.pytel, 14); testuj_obj(this.hrot, _root.pytel5.tester, _root.rewards.pytel, 14); testuj_obj(this.hrot, _root.kul1.tester, _root.rewards.kul, 15); testuj_obj(this.hrot, _root.kul2.tester, _root.rewards.kul, 15); testuj_obj(this.hrot, _root.kul3.tester, _root.rewards.kul, 15); testuj_obj(this.hrot, _root.krabice1.tester, _root.rewards.krabice, 16); testuj_obj(this.hrot, _root.krabice2.tester, _root.rewards.krabice, 16); testuj_obj(this.hrot, _root.krabice3.tester, _root.rewards.krabice, 16); testuj_obj(this.hrot, _root.krabice4.tester, _root.rewards.krabice, 16); testuj_obj(this.hrot, _root.krabice5.tester, _root.rewards.krabice, 16); testuj_obj(this.hrot, _root.krabice6.tester, _root.rewards.krabice, 16); testuj_obj(this.hrot, _root.studna.tester1, _root.rewards.studna, 17); testuj_obj(this.hrot, _root.studna.tester2, _root.rewards.studna, 17); testuj_obj(this.hrot, _root.vosy.tester, _root.rewards.vosy, 18); test_all(this.hrot, _root.enemies); test_all_animals(this.hrot, _root.animals); clear_obj(_root.to_remove); testuj_becher(this.hrot, _root.becherovka.tester, _root.rewards.becher); testuj(this.hrot, _root.terc.slama.tester); testuj_terc(this.hrot, _root.terc.s1); testuj_terc(this.hrot, _root.terc.s2); testuj_terc(this.hrot, _root.terc.s3); testuj_terc(this.hrot, _root.terc.s4); testuj_terc(this.hrot, _root.terc.s5); testuj_terc(this.hrot, _root.terc.s6); testuj_terc(this.hrot, _root.terc.s7); } if (this._currentframe == 4) { testuj_body(this.bolt, _root.terc.t1, _root.rewards.terc1); testuj_body(this.bolt, _root.terc.t2, _root.rewards.terc1); testuj_body(this.bolt, _root.terc.t3, _root.rewards.terc1); testuj_body(this.bolt, _root.terc.tt1, _root.rewards.terc2); testuj_body(this.bolt, _root.terc.tt2, _root.rewards.terc2); testuj_body(this.bolt, _root.terc.tt3, _root.rewards.terc2); testuj_body(this.bolt, _root.terc.tt4, _root.rewards.terc2); testuj_body(this.bolt, _root.terc.tt5, _root.rewards.terc2); testuj_body(this.bolt, _root.terc.tt6, _root.rewards.terc2); testuj_body(this.bolt, _root.terc.tt7, _root.rewards.terc2); testuj_body(this.bolt, _root.terc.tt8, _root.rewards.terc2); testuj_body(this.bolt, _root.terc.tt9, _root.rewards.terc2); testuj_body(this.bolt, _root.terc.tt10, _root.rewards.terc2); testuj_body(this.bolt, _root.terc.ttt1, _root.rewards.terc3); testuj_body(this.bolt, _root.terc.ttt2, _root.rewards.terc3); testuj_body(this.bolt, _root.terc.ttt3, _root.rewards.terc3); testuj_body(this.bolt, _root.terc.ttt4, _root.rewards.terc3); testuj_body(this.bolt, _root.terc.tttt1, _root.rewards.terc4); testuj_body(this.bolt, _root.terc.tttt2, _root.rewards.terc4); testuj_body(this.bolt, _root.terc.tttt3, _root.rewards.terc4); testuj_body(this.bolt, _root.terc.tttt4, _root.rewards.terc4); } this.last_arrow = fase; if (this._currentframe != 1 && this.last_arrow == true) { this.last_arrow = false; _root.btn_back._x = 320; _root.btn_back._y = 280; _root.btn_back._xscale = 100; _root.btn_back._yscale = 100; _root.tabulka._x = 205; _root.tabulka._y = 115; _root.tabulka.txt1.text = _root.texty.score + ': ' + _root.lvl.score; _root.tabulka.txt2.text = _root.texty.time_bonus + ': ' + Math.round(_root.timee / 4); _root.lvl.score += Math.round(_root.timee / 4); _root.tabulka.txt3.text = _root.texty.totalscore + ': ' + _root.lvl.score; } if (_root.animals.length < 1 && _root.end_game == false) { _root.end_game = true; if (_root.lvl.shots > 0) { _root.lvl.finished = true; } _root.tabulka._x = 170; _root.tabulka._y = 75; _root.btn_back._x = 320; _root.btn_back._y = 390; _root.tabulka.txt1.text = _root.texty.score + ': ' + _root.lvl.score; _root.tabulka.txt2.text = _root.texty.time_bonus + ': ' + Math.round(_root.timee / 4); acc_bonus = 0; var v3 = 0; acc_bonus = 0; if (_root.lvl.kill != 0) { v3 = _root.lvl.kill / _root.lvl.shots; if (v3 > 0.7) { _root.tabulka.a1.gotoAndStop(4); acc_bonus = _root.acc_bonus3; } else { if (v3 > 0.4) { _root.tabulka.a1.gotoAndStop(3); acc_bonus = _root.acc_bonus2; } else { if (v3 > 0.2) { _root.tabulka.a1.gotoAndStop(2); acc_bonus = _root.acc_bonus1; } else { _root.tabulka.a1.gotoAndStop(1); acc_bonus = 0; } } } } var v4 = 0; fast_bonus = 0; if (_root.lvl.kill != 0) { v4 = _root.lvl.fastkill / _root.lvl.kill; if (v4 > 0.7) { _root.tabulka.a2.gotoAndStop(4); fast_bonus = _root.fast_bonus3; } else { if (v4 > 0.4) { _root.tabulka.a2.gotoAndStop(3); fast_bonus = _root.fast_bonus2; } else { if (v4 > 0.2) { _root.tabulka.a2.gotoAndStop(2); fast_bonus = _root.fast_bonus1; } else { _root.tabulka.a2.gotoAndStop(1); fast_bonus = 0; } } } } var v5 = 0; killer_bonus = 0; if (_root.lvl.kill != 0) { v5 = _root.lvl.kill / _root.lvl.shots; if (v5 > 0.5) { _root.tabulka.a3.gotoAndStop(4); killer_bonus = _root.killer_bonus3; } else { if (v5 > 0.2) { _root.tabulka.a3.gotoAndStop(3); killer_bonus = _root.killer_bonus2; } else { if (v5 > 0.1) { _root.tabulka.a3.gotoAndStop(2); killer_bonus = _root.killer_bonus1; } else { _root.tabulka.a3.gotoAndStop(1); killer_bonus = 0; } } } } _root.tabulka.txt21.text = 'Accuracy: ' + Math.round(v3 * 100) + '% +' + acc_bonus; _root.tabulka.txt22.text = 'Long shooter: ' + Math.round(v4 * 100) + '% +' + fast_bonus; _root.tabulka.txt23.text = 'Lethality: ' + Math.round(v5 * 100) + '% +' + killer_bonus; _root.lvl.score += Math.round(_root.timee / 4) + acc_bonus + fast_bonus + killer_bonus; _root.tabulka.txt3.text = _root.texty.totalscore + ': ' + _root.lvl.score; } if (_root._currentframe < 10) { removeMovieClip(this); } --this.del; if (this.del < 1) { this._alpha = 0; removeMovieClip(this); } if (this._currentframe == 2) { } }; } function testuj(obj1, obj2) { if (obj2.hitTest(obj1)) { obj1._parent.gotoAndStop(2); } } function testuj_terc(obj1, obj2) { if (obj2.hitTest(obj1)) { obj1._parent.gotoAndStop(4); if (_root._currentframe > 11) { _root.player.terc += 1; } } } function testuj_body(obj1, obj2, odmena) { if (obj2.hitTest(obj1)) { jmeno = 'obd' + _root.getNextHighestDepth(); _root.attachMovie('obdelnik', jmeno, _root.getNextHighestDepth(), {'_x': obj1._parent._x, '_y': obj1._parent._y - 15, '_xscale': 25, '_yscale': 25}); _root[jmeno].txt.text = '+' + odmena; _root.lvl.score += odmena; _root.level_score_txt.text = _root.lvl.score; _root[jmeno].del = 80; obdelnik(_root[jmeno]); obj1._parent.gotoAndStop(3); } } function testuj_obj(obj1, obj2, odmena, type) { var v3 = false; if (obj2.hitTest(obj1)) { jmeno = 'obd' + _root.getNextHighestDepth(); _root.attachMovie('obdelnik', jmeno, _root.getNextHighestDepth(), {'_x': obj1._parent._x, '_y': obj1._parent._y - 10, '_xscale': 25, '_yscale': 25}); _root[jmeno].txt.text = '+' + odmena; _root.lvl.score += odmena; switch (type) { case 2: if (_root._currentframe > 11) { _root.player.slipka += 1; } snd = new Sound(); snd.attachSound('snd_slepka2.wav'); snd.start(); obj2._parent.gotoAndPlay(2); break; case 3: if (_root._currentframe > 11) { _root.player.sud += 1; } break; case 4: if (_root._currentframe > 11) { _root.player.slama += 1; } break; case 5: if (_root._currentframe > 11) { _root.player.prase += 1; } snd = new Sound(); snd.attachSound('snd_prase.wav'); snd.start(); obj2._parent.gotoAndPlay(2); break; case 6: if (_root._currentframe > 11) { _root.player.ohen += 1; } break; case 7: if (_root._currentframe > 11) { _root.player.jablko += 1; ++_root.player.apples; } v3 = true; obj2._parent.hit = true; obj2._parent.onEnterFrame = function () { this._x = obj1._parent._x; this._y = obj1._parent._y; this._rotation = obj1._parent._rotation; this._x += obj1._parent.xspeed; this._y += obj1._parent.yspeed; if (_root._currentframe < 10) { removeMovieClip(this); } if (this.hit == true) { removeMovieClip(obj2); } }; obj2._parent.swapDepths(_root.getNextHighestDepth()); removeMovieClip(obj2); obj2._parent.gotoAndStop(2); break; case 8: if (_root._currentframe > 11) { _root.player.becher += 1; } break; case 9: if (_root._currentframe > 11) { _root.player.stan += 1; } break; case 10: if (_root._currentframe > 11) { _root.player.siska += 1; } v3 = true; obj2._parent.hit = true; obj2._parent.onEnterFrame = function () { this._x = obj1._parent._x; this._y = obj1._parent._y; this._rotation = obj1._parent._rotation; this._x += obj1._parent.xspeed; this._y += obj1._parent.yspeed; if (_root._currentframe < 10) { removeMovieClip(this); } if (this.hit == true) { removeMovieClip(obj2); } }; obj2._parent.swapDepths(_root.getNextHighestDepth()); removeMovieClip(obj2); obj2._parent.gotoAndStop(2); break; case 11: if (_root._currentframe > 10) { _root.player.kralik += 1; } v3 = true; obj2._parent.gotoAndPlay(2); removeMovieClip(obj2); break; case 12: if (_root._currentframe > 11) { _root.player.strasak += 1; } break; case 13: if (_root._currentframe > 11) { _root.player.ptak += 1; } removeMovieClip(obj2._parent); obj2._parent.gotoAndStop(15); v3 = true; jmeno2 = 'ptak_ko' + _root.getNextHighestDepth(); _root.attachMovie('ptak_ko', jmeno2, _root.getNextHighestDepth(), {'_x': obj1._parent._x, '_y': obj1._parent._y}); _root[jmeno2].onEnterFrame = function () { this._x = obj1._parent._x; this._y = obj1._parent._y; this._rotation = obj1._parent._rotation; this._x += obj1._parent.xspeed; this._y += obj1._parent.yspeed; if (_root._currentframe < 10) { removeMovieClip(this); } }; break; case 14: if (_root._currentframe > 11) { _root.player.pytel += 1; } break; case 15: if (_root._currentframe > 11) { _root.player.kul += 1; } break; case 16: if (_root._currentframe > 11) { _root.player.krabice += 1; } break; case 17: if (_root._currentframe > 11) { _root.player.studna += 1; } break; case 18: if (_root._currentframe > 11) { _root.player.vosy += 1; } break; case 19: obj2._parent.attachMovie('arrow', 'arrow' + obj2._parent.getNextHighestDepth(), obj2._parent.getNextHighestDepth(), {'_x': obj1._parent._x - obj2._parent._x, '_y': obj1._parent._y - obj2._parent._y, '_rotation': obj1._parent._rotation}); removeMovieClip(obj1._parent); if (_root.player.arrow_dmg > obj2._parent.armor) { obj2._parent.hp -= _root.player.arrow_dmg - obj2._parent.armor; } if (obj2._parent.hp <= 0) { obj2._parent._alpha = 50; obj2._parent.speed = 0; } } _root.level_score_txt.text = _root.lvl.score; _root[jmeno].del = 120; obdelnik(_root[jmeno]); if (v3 == false) { obj1._parent.gotoAndStop(2); } } } function testuj_mesec(obj1, obj2, odmena) { if (obj2.hitTest(obj1)) { if (obj2._currentframe == 1) { jmeno = 'obd' + _root.getNextHighestDepth(); _root.attachMovie('obdelnik', jmeno, _root.getNextHighestDepth(), {'_x': obj2._parent._x, '_y': obj2._parent._y - 10, '_xscale': 25, '_yscale': 25}); _root[jmeno].txt.text = '+' + odmena; _root.lvl.score += odmena; if (_root._currentframe > 11) { _root.player.mesec += 1; ++_root.player.coins; } _root.level_score_txt.text = _root.level1.score; _root[jmeno].del = 120; obdelnik(_root[jmeno]); obj2._parent.gotoAndPlay(2); snd = new Sound(); snd.attachSound('mesec.wav'); snd.start(); } } } function hidee(obj) { obj._visible = false; } function hide_in(obj) { obj.tester1._visible = false; obj.tester2._visible = false; obj.tester3._visible = false; } function hide_terc() { hidee(_root.terc.t1); hidee(_root.terc.t2); hidee(_root.terc.t3); hidee(_root.terc.tt1); hidee(_root.terc.tt2); hidee(_root.terc.tt3); hidee(_root.terc.tt4); hidee(_root.terc.tt5); hidee(_root.terc.tt6); hidee(_root.terc.tt7); hidee(_root.terc.tt8); hidee(_root.terc.tt9); hidee(_root.terc.tt10); hidee(_root.terc.ttt1); hidee(_root.terc.ttt2); hidee(_root.terc.ttt3); hidee(_root.terc.ttt4); hidee(_root.terc.tttt1); hidee(_root.terc.tttt2); hidee(_root.terc.tttt3); hidee(_root.terc.tttt4); } function hide_all() { hide_terc(); hidee(_root.slepka.tester); hidee(_root.slepka1.tester); hidee(_root.slepka2.tester); hidee(_root.slepka3.tester); hidee(_root.slepka4.tester); hidee(_root.jablko.tester); hidee(_root.jablko1.tester); hidee(_root.jablko2.tester); hidee(_root.jablko3.tester); hidee(_root.jablko4.tester); hidee(_root.jablko5.tester); hidee(_root.siska1.tester); hidee(_root.siska2.tester); hidee(_root.siska3.tester); hidee(_root.siska4.tester); hidee(_root.siska5.tester); hidee(_root.siska6.tester); hidee(_root.siska7.tester); hidee(_root.siska8.tester); hidee(_root.siska9.tester); hidee(_root.kralik1.tester); hidee(_root.kralik2.tester); hidee(_root.kralik3.tester); hidee(_root.strasak.tester1); hidee(_root.strasak.tester2); hidee(_root.ptak1.tester); hidee(_root.ptak2.tester); hidee(_root.ptak3.tester); hidee(_root.ptak4.tester); hidee(_root.ptak5.tester); hidee(_root.ptak6.tester); hidee(_root.ptak7.tester); hidee(_root.ptak8.tester); hidee(_root.ptak9.tester); hidee(_root.ptak10.tester); hidee(_root.pytel1.tester); hidee(_root.pytel2.tester); hidee(_root.pytel3.tester); hidee(_root.pytel4.tester); hidee(_root.pytel5.tester); hidee(_root.studna.tester1); hidee(_root.studna.tester2); hidee(_root.vosy.tester); hidee(_root.prase.tester); hidee(_root.becherovka.tester); hidee(_root.stan.tester); hidee(_root.stan1.tester); hidee(_root.mesec.tester); hidee(_root.toulec.tester); hidee(_root.sipy.tester); hidee(_root.stan.tester); hidee(_root.ohen.tester); hidee(_root.terc.s1); hidee(_root.terc.s2); hidee(_root.terc.s3); hidee(_root.terc.s4); hidee(_root.terc.s5); hidee(_root.terc.s6); hidee(_root.terc.s7); cover(); } function obdelnik(obj) { obj.onEnterFrame = function () { --this.del; if (this._xscale < 100) { this._xscale += 10; this._yscale += 10; } if (this._xscale > 100) { this._xscale = 100; this._yscale = 100; } if (this._xscale > 99 && this.del < 1) { this._alpha -= 3; } if (this._alpha < 30) { removeMovieClip(this); } if (_root._currentframe < 10) { removeMovieClip(this); } }; } function sounds() { _root.sound_ctrl.onPress = function () { if (_root.sound_volume == 100) { _root.sound_volume = 0; this.gotoAndStop(2); } else { _root.sound_volume = 100; this.gotoAndStop(1); } }; _root.sound_ctrl.onEnterFrame = function () { snd.setVolume(_root.sound_volume); if (_root.sound_volume == 0) { this.gotoAndStop(2); } else { if (_root.sound_volume == 100) { this.gotoAndStop(1); } } }; } function back() { _root.btn_back.txt1.text = _root.texty.back; _root.btn_back.onPress = function () { closeLeaderboard(); removeMovieClip(_root.luk); removeMovieClip(terrain); removeMovieClip(_root.shoot_stats); if (_root.lvl.score < _root.tmp_skore) { _root.lvl.score = _root.tmp_skore; _root.lvl.shots = _root.tmp_shots; _root.lvl.kill = _root.tmp_kill; _root.lvl.fastkill = _root.tmp_fastkill; } snd = new Sound(); snd.attachSound('button'); snd.start(); this._visible = false; _root.jumpable = true; _root.gotoAndStop(4); }; _root.btn_back.onEnterFrame = function () { if (_root._currentframe < 10) { this._visible = false; } }; } function minimal_fce() { w1 = 100; _root.attachMovie('minimal', 'minimalll', _root.getNextHighestDepth(), {'_x': 320, '_y': 200}); _root.minimalll.txt.text = _root.texty.targetscore + ':' + _root.lvl.target_score; _root.minimalll.onEnterFrame = function () { --w1; if (w1 < 1) { this._alpha -= 3; } if (this._xscale < 100) { this._xscale += 10; this._yscale += 10; } if (this._xscale > 100) { this._xscale = 100; this._yscale = 100; } if (this._alpha < 10) { this._visible = false; } if (_root._currentframe < 10) { removeMovieClip(this); } }; } function ukazatele(obj) { _root.sipy_txt.text = _root.player.act_arrows + '/' + _root.player.max_arrows; _root.level_score_txt.text = _root.lvl.score; var finished = false; _root.timee = 1200; _root.wind = (Math.random() - 0.5) / 5; _root.wind_txt.text = _root.texty.wind + ': ' + Math.round(100 * _root.wind) / 1; _root.archer.hp_bar._visible = false; obj.onEnterFrame = function () { _root.sipy_txt.text = _root.player.act_arrows + '/' + _root.player.max_arrows; _root.level_score_txt.text = _root.texty.score + ':' + _root.lvl.score; if (finished == false) { if (_root.animals.length < 1 && _root.player.hp > 0) { finished = true; if (_root.lvl.finished == false) { _root.lvl.finished = true; ++_root.player.max_arrows; } } } if (_root.player.act_arrows > 0 && _root.timee > 0 && _root.end_game == false) { _root.timee -= 0.125; time_txt.text = _root.texty.time_bonus + ': ' + Math.round(_root.timee / 4); } if (_root.player.hp != _root.player.hp_max) { _root.archer.hp_bar._visible = true; _root.archer.hp_bar.inside._xscale = 100 * _root.player.hp / _root.player.hp_max; } if (_root.player.hp <= 0 && _root.end_game == false) { acc = 0; if (_root.lvl.kill != 0) { acc = _root.lvl.kill / _root.lvl.shots; } var v2 = 0; if (_root.lvl.kill != 0) { v2 = _root.lvl.fastkill / _root.lvl.kill; } var v3 = 0; if (_root.lvl.kill != 0) { v3 = _root.lvl.kill / _root.lvl.shots; } _root.end_game = true; _root.tabulka._x = 170; _root.tabulka._y = 75; _root.btn_back._x = 320; _root.btn_back._y = 390; acc_bonus = 0; fast_bonus = 0; killer_bonus = 0; _root.tabulka.txt1.text = _root.texty.score + ': ' + _root.lvl.score; _root.tabulka.txt2.text = _root.texty.time_bonus + ': ' + Math.round(_root.timee / 4); _root.tabulka.txt21.text = 'Accuracy: ' + Math.round(acc * 100) + '% +' + acc_bonus; _root.tabulka.txt22.text = 'Long shooter: ' + Math.round(v2 * 100) + '% +' + fast_bonus; _root.tabulka.txt23.text = 'Lethality: ' + Math.round(v3 * 100) + '% +' + killer_bonus; _root.lvl.score += Math.round(_root.timee / 4) + acc_bonus + fast_bonus + killer_bonus; _root.tabulka.txt3.text = _root.texty.totalscore + ': ' + _root.lvl.score; } for (x in _root.animals) { if (_root.animals[x].hp <= 0) { _root.animals.splice(x, 1); trace('pole kurat: ' + pole); trace('pole kurat: ' + pole.length); } } }; } function timee_ctrl(obj) { _root.timee = 1200; obj.onEnterFrame = function () { if (_root.player.act_arrows > 0 && _root.timee > 0 && _root.end_game == false) { _root.timee -= 1; this.txt.text = Math.round(_root.timee / 4) / 10; } }; } function winde_ctrl(obj) { if (_root.wind <= -0.1) { _root.wind_ctrl.gotoAndStop(1); } else { if (_root.wind <= -0.08) { _root.wind_ctrl.gotoAndStop(2); } else { if (_root.wind <= -0.06) { _root.wind_ctrl.gotoAndStop(3); } else { if (_root.wind <= -0.04) { _root.wind_ctrl.gotoAndStop(4); } else { if (_root.wind <= 0) { _root.wind_ctrl.gotoAndStop(5); } else { if (_root.wind > 0.08) { _root.wind_ctrl.gotoAndStop(10); } else { if (_root.wind > 0.06) { _root.wind_ctrl.gotoAndStop(9); } else { if (_root.wind > 0.04) { _root.wind_ctrl.gotoAndStop(8); } else { if (_root.wind > 0.02) { _root.wind_ctrl.gotoAndStop(7); } else { if (_root.wind > 0) { _root.wind_ctrl.gotoAndStop(6); } } } } } } } } } } } function level_all() { init_const(); mouseDownAndUp(); sounds(); back(); ukazatele(_root.archer); minimal_fce(); winde_ctrl(_root.wind_ctrl); } function achievment(ach, cnt, bonus, obj) { if (ach >= cnt) { _root.total_skore += bonus; ++_root.achiev_cnt; obj.gotoAndStop(2); } obj.onPress = function () { _root.nazev1.text = _root.texty.achiev1 + ': ' + ach; _root.nazev2.text = _root.nazev1.text; _root.level_skore1.text = _root.texty.achiev2 + ': ' + cnt; _root.level_skore2.text = _root.level_skore1.text; _root.target_score1.text = _root.texty.achiev3 + ': +' + bonus; _root.target_score2.text = _root.target_score1.text; }; obj.onRollOver = function () { _root.nazev1.text = _root.texty.achiev1 + ': ' + ach; _root.nazev2.text = _root.nazev1.text; _root.level_skore1.text = _root.texty.achiev2 + ': ' + cnt; _root.level_skore2.text = _root.level_skore1.text; _root.target_score1.text = _root.texty.achiev3 + ': +' + bonus; _root.target_score2.text = _root.target_score1.text; _root.next_level._visible = false; _root.play_again._visible = false; }; } function map_btn(obj, lvl, popis) { if (lvl.unlocked == false) { obj._alpha = 50; } else { obj._alpha = 100; } if (lvl.kill != 0) { var v3 = 0; v3 = lvl.kill / lvl.shots; if (v3 > 0.7) { obj.a1.gotoAndStop(4); } else { if (v3 > 0.4) { obj.a1.gotoAndStop(3); } else { if (v3 > 0.2) { obj.a1.gotoAndStop(2); } else { obj.a1.gotoAndStop(1); } } } } if (lvl.kill != 0) { var v4 = 0; v4 = lvl.fastkill / lvl.kill; if (v4 > 0.7) { obj.a2.gotoAndStop(4); } else { if (v4 > 0.4) { obj.a2.gotoAndStop(3); } else { if (v4 > 0.2) { obj.a2.gotoAndStop(2); } else { obj.a2.gotoAndStop(1); } } } } if (lvl.kill != 0) { var v5 = 0; v5 = lvl.kill / lvl.shots; if (v5 > 0.5) { obj.a3.gotoAndStop(4); } else { if (v5 > 0.2) { obj.a3.gotoAndStop(3); } else { if (v5 > 0.1) { obj.a3.gotoAndStop(2); } else { obj.a3.gotoAndStop(1); } } } } trace(lvl.gold); obj.onPress = function () { _root.game_menu.menu_map.txt1.text = lvl.nazev; _root.game_menu.menu_map.txt2.text = lvl.popis; _root.game_menu.menu_map.txt3.text = 'Score: ' + lvl.score; if (lvl.played == false) { _root.game_menu.menu_map.next_level._visible = true; _root.game_menu.menu_map.play_again._visible = false; _root.game_menu.menu_map.next_level.txt1.text = _root.texty.start; _root.game_menu.menu_map.next_level.txt2.text = _root.texty.start; } else { _root.game_menu.menu_map.next_level._visible = false; _root.game_menu.menu_map.play_again._visible = true; _root.game_menu.menu_map.play_again.t1.text = _root.texty.playagain; _root.game_menu.menu_map.play_again.t2.text = _root.texty.score + ' -100'; } if (lvl.unlocked == false) { _root.game_menu.menu_map.next_level._visible = false; _root.game_menu.menu_map.play_again._visible = false; } snd = new Sound(); snd.attachSound('button'); snd.start(); trace(lvl.hit); trace(lvl.shots); trace(lvl.kill); trace(lvl.score); _root.act_level = lvl.no; _root.lvl = lvl; }; } function let_ptaka(obj, speed, angle, src_x, src_y) { obj._x = src_x; obj._y = src_y; obj.angle = angle; obj.speed = speed; obj.xspeed = Math.cos(obj.angle) * obj.speed; obj.yspeed = Math.sin(obj.angle) * obj.speed; if (speed < 0) { obj._xscale = -100; } obj.onEnterFrame = function () { if (this._currentframe < 15) { this.angle2 = Math.atan2(this.yspeed, this.xspeed); this._rotation = this.angle2 * 180 / Math.PI; this._x += this.xspeed; this._y += this.yspeed; } if (this._x > 680 || this._y < -50 || this._x < -50 || this._y > 500) { this._x = random(400) + 80; this._y = src_y; } }; } function bow_btn(obj, str, text, num) { obj.onRollOver = function () { _root.nazev1.text = text; _root.nazev2.text = _root.nazev1.text; _root.level_skore1.text = _root.texty.power + ': ' + str; _root.level_skore2.text = _root.level_skore1.text; _root.target_score1.text = ''; _root.target_score2.text = _root.target_score1.text; _root.next_level._visible = false; _root.play_again._visible = false; }; obj.onPress = function () { _root.luk1.gotoAndStop(1); _root.luk2.gotoAndStop(1); _root.luk3.gotoAndStop(1); _root.luk4.gotoAndStop(1); _root.luk5.gotoAndStop(1); _root.luk6.gotoAndStop(1); _root.player.max_power = str; _root.player.luk_num = num; this.gotoAndStop(2); }; } function koncetina(obj, min, max, speed) { var rot = speed; obj.onEnterFrame = function () { this._rotation += rot; if (this._rotation > max) { rot *= -1; } if (this._rotation < min) { rot *= -1; } }; } function walk(obj) { obj.noha1._rotation = -10; obj.noha2._rotation = 10; obj.ruka1._rotation = -20; obj.ruka2._rotation = 20; obj.rest = 200; koncetina(obj.noha1, -15, 15, 1.5); koncetina(obj.noha2, -15, 15, -1.5); koncetina(obj.ruka1, -25, 25, 2); koncetina(obj.ruka2, -25, 25, -2); obj.hitted = false; obj.onEnterFrame = function () { if (this.death == false && _root.end_game == false) { this._x -= this.speed; } this.hp_bar.inside._xscale = 100 * this.hp / this.hp_max; if (this.death == true) { this.rest -= 1; if (this.rest < 1) { this._alpha -= 2; } } if (_root._currentframe < 10) { removeMovieClip(this); } if (this._x < -50 && _root.end_game == false) { this.hitted = false; this._x = 700; } if (this.hp_max == 1) { if (this.hitted == false && this.hitTest(_root.archer.tester)) { this.gotoAndPlay(22); this.hitted = true; this.hp = 0; _root.player.hp -= this.attack; this.speed = 0; this.death = true; } } if (this.hitted == false && this.hitTest(_root.archer.tester)) { _root.player.hp -= this.attack; this.hitted = true; this.speed = 0; } }; } function fly(obj) { obj.noha1._rotation = -10; obj.noha2._rotation = 10; obj.ruka1._rotation = -20; obj.ruka2._rotation = 20; obj.rest = 200; koncetina(obj.noha1, -15, 15, 1.5); koncetina(obj.noha2, -15, 15, -1.5); koncetina(obj.ruka1, -25, 25, 2); koncetina(obj.ruka2, -25, 25, -2); obj.shitted = false; obj.onEnterFrame = function () { if (this.death == false && _root.end_game == false) { this._x -= this.speed * 1.5; } this.hp_bar.inside._xscale = 100 * this.hp / this.hp_max; if (this._x < -50 && _root.end_game == false) { this._x = 700; this.shitted = false; } if (this.death == true) { this.rest -= 1; this.gotoAndStop(20); if (this.rest < 1) { this._alpha -= 2; } if (this._y < 400) { this._y += 2; this._x -= 0.7; if (this._rotation < 180) { this._rotation += 5; } } } if (this._x - _root.archer._x < 20 && this.shitted == false && this.death == false) { this.shitted = true; hovno_name = 'hovno' + _root.getNextHighestDepth(); _root.attachMovie('hovno', hovno_name, _root.getNextHighestDepth(), {'_x': this._x, '_y': this._y}); _root[hovno_name].dmg = this.attack; hovno(_root[hovno_name]); } if (_root._currentframe < 10) { removeMovieClip(this); } }; } function hovno(obj) { obj.onEnterFrame = function () { this._x -= 0.2; this._y += 2; if (this.hitTest(_root.archer) && this._visible == true) { _root.player.hp -= this.dmg; removeMovieClip(this); } }; } function walk2(obj) { obj.noha1._rotation = -10; obj.noha2._rotation = 10; obj.ruka1._rotation = -20; obj.ruka2._rotation = 20; obj.rest = 100; obj.hitted = false; koncetina(obj.noha1, -15, 15, 1.5); koncetina(obj.noha2, -15, 15, -1.5); koncetina(obj.ruka1, -25, 25, 2); koncetina(obj.ruka2, -25, 25, -2); obj.onEnterFrame = function () { if (this.death == false && _root.end_game == false) { this._x -= this.speed + _root.accel; } this.hp_bar.inside._xscale = 100 * this.hp / this.hp_max; if (this.death == true) { this.rest -= 1; if (this.rest < 1) { this._alpha -= 2; } } if (_root._currentframe < 10) { removeMovieClip(this); } if (this._x < -50 && _root.end_game == false) { this.hitted = false; this._x = 700; } if (this.hp_max == 1 && this.death == false) { if (this.hitted == false && this.hitTest(_root.archer.tester)) { this.gotoAndPlay(22); this.hitted = true; this.hp = 0; _root.player.hp -= this.attack; this.speed = 0; this.death = true; } } if (this.hitted == false && this.hitTest(_root.archer.tester) && this.death == false) { _root.player.hp -= this.attack; this.hitted = true; this.speed = 0; } }; } function boss_01(obj) { prev_hp = obj.hp_max; obj.noha1._rotation = -10; obj.noha2._rotation = 10; obj.ruka1._rotation = -20; obj.ruka2._rotation = 20; obj.rest = 200; koncetina(obj.noha1, -15, 15, 1.5); koncetina(obj.noha2, -15, 15, -1.5); koncetina(obj.ruka1, -25, 25, 2); koncetina(obj.ruka2, -25, 25, -2); obj.create = 200; obj.onEnterFrame = function () { this.create -= 1; if (this.create < 1 && this.death == false) { slepka_name = 'slepkaaab' + random(10000); _root.attachMovie('kure', slepka_name, _root.getNextHighestDepth() + 10, {'_x': this._x, '_y': 400}); init_enemy(_root[slepka_name], kure); walk(_root[slepka_name]); _root.animals.push(_root[slepka_name]); this.create = 100; } this.hp_bar.inside._xscale = 100 * this.hp / this.hp_max; if (this.death == true) { this.rest -= 1; if (this.rest < 1) { this._alpha -= 2; } } if (_root._currentframe < 10) { removeMovieClip(this); } }; } function boss_02(obj) { prev_hp = obj.hp_max; obj.noha1._rotation = -10; obj.noha2._rotation = 10; obj.ruka1._rotation = -20; obj.ruka2._rotation = 20; obj.rest = 200; obj.create = 200; obj.onEnterFrame = function () { this.create -= 1; if (this.create < 1) { slepka_name = 'slepkaaab' + random(10000); _root.attachMovie('kure', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 680 + random(50), '_y': 400}); init_enemy(_root[slepka_name], kure); walk(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaaac' + random(10000); _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700 + random(50), '_y': random(200) + 100}); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); this.create = 200; } if (prev_hp != this.hp) { prev_hp = this.hp; } this.hp_bar.inside._xscale = 100 * this.hp / this.hp_max; if (this.death == true) { this.rest -= 1; if (this.rest < 1) { this._alpha -= 2; } } if (_root._currentframe < 10) { removeMovieClip(this); } }; } function boss_03(obj) { prev_hp = obj.hp_max; obj.noha1._rotation = -10; obj.noha2._rotation = 10; obj.ruka1._rotation = -20; obj.ruka2._rotation = 20; obj.rest = 200; obj.create = 200; obj.onEnterFrame = function () { this.create -= 1; if (this.create < 1) { slepka_name = 'slepkaaab' + random(10000); _root.attachMovie('krocan', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 680 + random(50), '_y': 400}); init_enemy(_root[slepka_name], krocan); walk(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaaac' + random(10000); _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700 + random(50), '_y': random(200) + 100}); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); this.create = 200; } if (prev_hp != this.hp) { prev_hp = this.hp; } this.hp_bar.inside._xscale = 100 * this.hp / this.hp_max; if (this.death == true) { this.rest -= 1; if (this.rest < 1) { this._alpha -= 2; } } if (_root._currentframe < 10) { removeMovieClip(this); } }; } function create_chicken(cnt, wave) { i = 1; while (i <= cnt) { slepka_name = 'slepkaaa' + i + ' ' + cnt + ' ' + wave; _root.attachMovie('kure', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 650 + 25 * i, '_y': 415}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], kure); walk2(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++i; } } function create_arrow(obj, speed) { obj.speed = speed; obj.del = speed; obj.onEnterFrame = function () { --this.del; if (this.del < 1) { this.del = this.speed; if (_root.player.act_arrows < _root.player.max_arrows) { this.gotoAndPlay(2); _root.player.act_arrows += 1; } } }; } function test_human(obj1, obj2, bonus_dmg) { var v5 = false; if (obj2.hitTest(obj1)) { if (bonus_dmg == 3) { obj2._parent.hlava.attachMovie('arrow_nobolt_hlava', 'arrow' + obj2._parent.hlava.getNextHighestDepth(), obj2._parent.hlava.getNextHighestDepth(), {'_x': obj1._parent._x - obj2._parent._x - obj2._parent.hlava._x, '_y': obj1._parent._y - obj2._parent._y - obj2._parent.hlava._y, '_rotation': obj1._parent._rotation}); } else { if (bonus_dmg == 1) { obj2._parent.telo.attachMovie('arrow_nobolt', 'arrow' + obj2._parent.telo.getNextHighestDepth(), obj2._parent.telo.getNextHighestDepth(), {'_x': obj1._parent._x - obj2._parent._x - obj2._parent.telo._x, '_y': obj1._parent._y - obj2._parent._y - obj2._parent.telo._y, '_rotation': obj1._parent._rotation}); } } if (_root.player.arrow_dmg * bonus_dmg > obj2._parent.armor) { obj2._parent.hp -= _root.player.arrow_dmg * bonus_dmg - obj2._parent.armor; } if (obj2._parent.hp <= 0) { obj2._parent.hp = 0; obj2._parent.speed = 0; _root.to_remove.push(obj2._parent); if (obj2._parent.death == false) { jmeno = 'obd' + _root.getNextHighestDepth(); _root.attachMovie('obdelnik', jmeno, _root.getNextHighestDepth(), {'_x': obj2._parent._x, '_y': obj2._parent._y - 25, '_xscale': 25, '_yscale': 25}); _root[jmeno].del = 60; _root[jmeno].txt.text = '+' + obj2._parent.reward; _root.lvl.score += obj2._parent.reward; obj2._parent.death = true; obj2._parent.gotoAndPlay(2); } } removeMovieClip(obj1._parent); _root.level_score_txt.text = _root.lvl.score; obdelnik(_root[jmeno]); if (v5 == false) { obj1._parent.gotoAndStop(2); } } } function test_all(obj, pole) { for (x in pole) { test_human(obj, pole[x].tester1, 3); test_human(obj, pole[x].tester2, 1); if (pole[x].hp <= 0) { pole.splice(x, 1); trace(pole); } } } function test_chicken(obj1, obj2, bonus_dmg) { var v5 = false; if (obj2.hitTest(obj1)) { if (bonus_dmg == 3) { obj2._parent.hlava.attachMovie('arrow_nobolt_hlava', 'arrow' + obj2._parent.hlava.getNextHighestDepth(), obj2._parent.hlava.getNextHighestDepth(), {'_x': obj1._parent._x - obj2._parent._x - obj2._parent.hlava._x, '_y': obj1._parent._y - obj2._parent._y - obj2._parent.hlava._y, '_rotation': obj1._parent._rotation}); } else { if (bonus_dmg == 1) { obj2._parent.telo.attachMovie('arrow_nobolt', 'arrow' + obj2._parent.telo.getNextHighestDepth(), obj2._parent.telo.getNextHighestDepth(), {'_x': obj1._parent._x - obj2._parent._x - obj2._parent.telo._x, '_y': obj1._parent._y - obj2._parent._y - obj2._parent.telo._y, '_rotation': obj1._parent._rotation}); obj2._parent.gotoAndPlay(2); } } _root.lvl.hit += 1; if (_root.player.arrow_dmg * bonus_dmg > obj2._parent.armor) { obj2._parent.hp -= _root.player.arrow_dmg * bonus_dmg - obj2._parent.armor; } if (obj2._parent.hp > 0) { obj2._parent.gotoAndPlay(2); } if (obj2._parent.hp <= 0) { obj2._parent.hp = 0; obj2._parent.speed = 0; _root.to_remove.push(obj2._parent); if (obj2._parent.death == false) { if (obj2._parent._x > 500) { trace(obj2._parent._x); dist_bonus = 5; _root.lvl.fastkill += 1; } else { if (obj2._parent._x > 375) { trace(obj2._parent._x); dist_bonus = 3; _root.lvl.fastkill += 0.75; } else { if (obj2._parent._x > 250) { trace(obj2._parent._x); dist_bonus = 1; _root.lvl.fastkill += 0.5; } else { dist_bonus = 0; } } } jmeno = 'obd' + _root.getNextHighestDepth(); _root.attachMovie('obdelnik', jmeno, _root.getNextHighestDepth(), {'_x': obj2._parent._x, '_y': obj2._parent._y - 25, '_xscale': 25, '_yscale': 25}); _root[jmeno].del = 60; _root[jmeno].txt.text = '+' + (obj2._parent.reward + dist_bonus); _root.lvl.score += obj2._parent.reward + dist_bonus; obj2._parent.death = true; obj2._parent.gotoAndPlay(22); _root.lvl.kill += 1; } } removeMovieClip(obj1._parent); _root.level_score_txt.text = _root.lvl.score; obdelnik(_root[jmeno]); if (v5 == false) { obj1._parent.gotoAndStop(2); } } } function test_all_animals(obj, pole) { for (x in pole) { test_chicken(obj, pole[x].tester, 1); test_chicken(obj, pole[x].tester1, 3); if (pole[x].hp <= 0) { pole.splice(x, 1); trace('pole kurat: ' + pole); trace('pole kurat: ' + pole.length); } } } function clear_obj(pole) { for (x in pole) { if (pole[x]._alpha <= 30) { pole[x].gotoAndStop(200); removeMovieClip(pole[x]); pole.splice(x, 1); trace('jedna ' + pole); } } } function disable_bows() { if (luk1.bought == false) { _root.game_menu.menu_shop.b1.gotoAndStop(1); } else { _root.game_menu.menu_shop.b1.gotoAndStop(2); } if (luk2.bought == false) { _root.game_menu.menu_shop.b2.gotoAndStop(1); } else { _root.game_menu.menu_shop.b2.gotoAndStop(2); } if (luk3.bought == false) { _root.game_menu.menu_shop.b3.gotoAndStop(1); } else { _root.game_menu.menu_shop.b3.gotoAndStop(2); } if (luk4.bought == false) { _root.game_menu.menu_shop.b4.gotoAndStop(1); } else { _root.game_menu.menu_shop.b4.gotoAndStop(2); } if (luk5.bought == false) { _root.game_menu.menu_shop.b5.gotoAndStop(1); } else { _root.game_menu.menu_shop.b5.gotoAndStop(2); } } function hide_buy(obj, luk) { obj.onEnterFrame = function () { if (luk.bought == false) { if (_root.player.gold < luk.cost) { obj._visible = false; } else { obj._visible = true; } } }; } function init_enemy(obj, enemy) { obj.tester1._visible = false; obj.tester2._visible = false; obj.tester3._visible = false; obj.tester._visible = false; obj.hp_max = enemy.hp_max; obj.hp = enemy.hp; obj.armor = enemy.armor; obj.speed = enemy.speed; obj.attack = enemy.attack; obj.reward = enemy.reward; obj.death = false; } function rollover(obj) { obj.onRollOver = function () { obj.gotoAndStop(2); }; obj.onRollOut = function () { obj.gotoAndStop(1); }; } function save_game(player_profile, button) { button.onRelease = function () { trace('saved'); player0 = SharedObject.getLocal(player_profile); player0.data.player = new Object(); player0.data.player = _root.player; player0.data.player_name = _root.player_name; player0.data.level1 = new Object(); player0.data.level1 = _root.level1; player0.data.level2 = new Object(); player0.data.level2 = _root.level2; player0.data.level3 = new Object(); player0.data.level3 = _root.level3; player0.data.level4 = new Object(); player0.data.level4 = _root.level4; player0.data.level5 = new Object(); player0.data.level5 = _root.level5; player0.data.level6 = new Object(); player0.data.level6 = _root.level6; player0.data.level7 = new Object(); player0.data.level7 = _root.level7; player0.data.level8 = new Object(); player0.data.level8 = _root.level8; player0.data.level9 = new Object(); player0.data.level9 = _root.level9; player0.data.level10 = new Object(); player0.data.level10 = _root.level10; player0.data.level11 = new Object(); player0.data.level11 = _root.level11; player0.data.level12 = new Object(); player0.data.level12 = _root.level12; player0.data.luk1 = new Object(); player0.data.luk1 = luk1; player0.data.luk2 = new Object(); player0.data.luk2 = luk2; player0.data.luk3 = new Object(); player0.data.luk3 = luk3; player0.data.luk4 = new Object(); player0.data.luk4 = luk4; player0.data.luk5 = new Object(); player0.data.luk5 = luk5; this._parent.txt1.text = _root.player_name; this._parent.txt2.text = _root.player.score - 100 * _root.player.replays; this._parent.txt3.text = _root.player.gold; this._parent.btn_load._visible = true; player0.flush(); snd = new Sound(); snd.attachSound('button'); snd.start(); }; } function load_game(player0, button) { trace(player0.data.player.score); if (player0.data.player != undefined) { button._parent.txt1.text = player0.data.player_name; button._parent.txt2.text = player0.data.player.score - player0.data.player.replays * 100; button._parent.txt3.text = player0.data.player.gold; button._parent.btn_load._visible = true; } else { button._parent.btn_load._visible = false; } if (_root._currentframe == 7) { button._parent.btn_save._visible = false; } button.onPress = function () { _root.player_name = player0.data.player_name; _root.player = player0.data.player; _root.level1 = player0.data.level1; _root.level2 = player0.data.level2; _root.level3 = player0.data.level3; _root.level4 = player0.data.level4; _root.level5 = player0.data.level5; _root.level6 = player0.data.level6; _root.level7 = player0.data.level7; _root.level8 = player0.data.level8; _root.level9 = player0.data.level9; _root.level10 = player0.data.level10; _root.level11 = player0.data.level11; _root.level12 = player0.data.level12; luk1 = player0.data.luk1; luk2 = player0.data.luk2; luk3 = player0.data.luk3; luk4 = player0.data.luk4; luk5 = player0.data.luk5; snd = new Sound(); snd.attachSound('button'); snd.start(); _root.jumpable = true; _root.gotoAndStop(6); }; } function visibility(player, button) { if (player.data.score == undefined) { button._visible = false; } else { button._visible = true; } } function shield_view(obj) { obj.onEnterFrame = function () { this.txt1.text = _root.player_name; this.txt2.text = _root.player.score - 100 * _root.player.replays; _root.player.gold = _root.player.score - _root.player.gold_spent; this.txt3.text = _root.player.gold; }; } function init_luku() { luk1 = new Object(); luk1.num = 2; luk1.str = 80; luk1.dmg = 7; luk1.cost = 1500; luk1.bought = false; luk2 = new Object(); luk2.num = 3; luk2.str = 85; luk2.dmg = 10; luk2.cost = 3500; luk2.bought = false; luk3 = new Object(); luk3.num = 4; luk3.str = 90; luk3.dmg = 13; luk3.cost = 7500; luk3.bought = false; luk4 = new Object(); luk4.num = 5; luk4.str = 95; luk4.dmg = 15; luk4.cost = 10000; luk4.bought = false; luk5 = new Object(); luk5.num = 6; luk5.str = 100; luk5.dmg = 20; luk5.cost = 15000; luk5.bought = false; } kure = new Object(); kure.hp_max = 1; kure.hp = 1; kure.armor = 1; kure.speed = 0.55; kure.attack = 5; kure.reward = 3; slepka = new Object(); slepka.hp_max = 8; slepka.hp = 8; slepka.armor = 1; slepka.speed = 0.4; slepka.attack = 5; slepka.reward = 10; kohout = new Object(); kohout.hp_max = 25; kohout.hp = 25; kohout.armor = 1; kohout.speed = 0.7; kohout.attack = 10; kohout.reward = 25; krocan = new Object(); krocan.hp_max = 25; krocan.hp = 25; krocan.armor = 1; krocan.speed = 0.53; krocan.attack = 10; krocan.reward = 25; slepka_hp = new Object(); slepka_hp.hp_max = 300; slepka_hp.hp = 300; slepka_hp.armor = 1; slepka_hp.speed = 0; slepka_hp.attack = 5; slepka_hp.reward = 10; boss1 = new Object(); boss1.hp_max = 300; boss1.hp = 300; boss1.armor = 2; boss1.speed = 0; boss1.attack = 5; boss1.reward = 500; boss2 = new Object(); boss2.hp_max = 500; boss2.hp = 500; boss2.armor = 2; boss2.speed = 0; boss2.attack = 5; boss2.reward = 1000; boss3 = new Object(); boss3.hp_max = 1000; boss3.hp = 1000; boss3.armor = 2; boss3.speed = 0; boss3.attack = 5; boss3.reward = 2500; peasant = new Object(); peasant.hp_max = 8; peasant.hp = 8; peasant.armor = 1; peasant.speed = 0.25; peasant.attack = 5; peasant.reward = 5; zbrojnos = new Object(); zbrojnos.hp_max = 20; zbrojnos.hp = 20; zbrojnos.armor = 3; zbrojnos.speed = 0.25; zbrojnos.attack = 5; zbrojnos.reward = 25; rytir = new Object(); rytir.hp_max = 50; rytir.hp = 40; rytir.armor = 5; rytir.speed = 0.15; rytir.attack = 25; rytir.reward = 50; krizak = new Object(); krizak.hp_max = 100; krizak.hp = 100; krizak.armor = 10; krizak.speed = 0.1; krizak.attack = 45; krizak.reward = 100; _root.rewards = new Object(); _root.rewards.slipka = 35; _root.rewards.prase = 50; _root.rewards.ohen = 75; _root.rewards.mesec = 111; _root.rewards.terc1 = 250; _root.rewards.terc2 = 125; _root.rewards.terc3 = 50; _root.rewards.terc4 = 25; _root.rewards.panak = 25; _root.rewards.sud = 10; _root.rewards.stan = 12; _root.rewards.slama = 5; _root.rewards.toulec = 100; _root.rewards.jablko = 55; _root.rewards.becher = 300; _root.rewards.siska = 45; _root.rewards.kralik = 85; _root.rewards.strasak1 = 75; _root.rewards.strasak2 = 25; _root.rewards.ptak = 123; _root.rewards.pytel = 15; _root.rewards.kul = 20; _root.rewards.krabice = 17; _root.rewards.studna = 15; _root.rewards.vosy = 45; _root.texty_cz = new Object(); _root.texty_en = new Object(); _root.texty = new Object(); _root.texty_cz.start = 'Hrát'; _root.texty_cz.authors = 'Autoři'; _root.texty_cz.help = 'Nápověda'; _root.texty_cz.back = 'Zpět'; _root.texty_cz.score1 = 'Aktuální skóre'; _root.texty_cz.playagain = 'Hrát znovu'; _root.texty_cz.score = 'Skóre'; _root.texty_cz.totalscore = 'Celkové skóre'; _root.texty_cz.targetscore = 'Minimální skóre'; _root.texty_cz.targetscore_finished = 'Cíl splněn'; _root.texty_cz.replays = 'Opakování'; _root.texty_cz.achiev = 'Úspěchy'; _root.texty_cz.achiev1 = 'Celkem zásahů'; _root.texty_cz.achiev2 = 'Je potřeba zásahů'; _root.texty_cz.achiev3 = 'Odměna'; _root.texty_cz.progr = 'Programování'; _root.texty_cz.gfx = 'Grafika'; _root.texty_cz.send = 'Odeslat a hrát novou hru'; _root.texty_cz.power = 'Síla'; _root.texty_cz.wind = 'Vítr'; _root.texty_cz.angle = 'Úhel'; _root.texty_cz.time_bonus = 'Bonus za čas'; _root.texty_cz.endgame = 'Konec hry'; _root.texty_cz.tut1 = '1. Kliknout'; _root.texty_cz.tut2 = '2. Táhnout směr a sílu'; _root.texty_cz.tut3 = '3. Pustit myš'; _root.texty_cz.level1 = 'Výcvik'; _root.texty_cz.level2 = 'Slepičí farma'; _root.texty_cz.level3 = 'Sklad slámy'; _root.texty_cz.level4 = 'Vesnický turnaj'; _root.texty_cz.level5 = 'Tábořiště'; _root.texty_cz.level6 = 'Před farmou'; _root.texty_cz.level7 = 'Turnaj na farmě'; _root.texty_cz.level8 = 'Temný les'; _root.texty_cz.level9 = 'Opuštěný povoz'; _root.texty_cz.level10 = 'Lesní turnaj'; _root.texty_cz.level11 = 'Jablečný sad'; _root.texty_cz.level12 = 'Obilné pole'; _root.texty_cz.level13 = 'Sušení sena'; _root.texty_cz.level14 = 'Turnaj u potoka'; _root.texty_cz.level15 = 'Větrný mlýn'; _root.texty_cz.level16 = 'Horský turnaj'; _root.texty_cz.level17 = 'Název levelu'; _root.texty_cz.level18 = 'Název levelu'; _root.texty_cz.bow1 = 'Krátký luk'; _root.texty_cz.bow2 = 'Dlouhý luk'; _root.texty_cz.bow3 = 'Skládaný luk'; _root.texty_cz.bow4 = 'Stříbrný luk'; _root.texty_cz.bow5 = 'Zlatý luk'; _root.texty_cz.bow6 = 'Diamantový luk'; _root.texty_en.start = 'Play'; _root.texty_en.authors = 'Authors'; _root.texty_en.help = 'Help'; _root.texty_en.back = 'Back'; _root.texty_en.score1 = 'Level score'; _root.texty_en.playagain = 'Play again'; _root.texty_en.score = 'Score'; _root.texty_en.totalscore = 'Total score'; _root.texty_en.targetscore = 'Minimal score'; _root.texty_en.targetscore_finished = 'Level finished'; _root.texty_en.replays = 'Replays'; _root.texty_en.achiev = 'Achievments'; _root.texty_en.achiev1 = 'Total hits'; _root.texty_en.achiev2 = 'Hits needed'; _root.texty_en.achiev3 = 'Reward'; _root.texty_en.power = 'Power'; _root.texty_en.wind = 'Wind'; _root.texty_en.angle = 'Angle'; _root.texty_en.time_bonus = 'Time bonus'; _root.texty_en.endgame = 'End game'; _root.texty_en.tut1 = '1.Click'; _root.texty_en.tut2 = '2.Drag strenght and angle'; _root.texty_en.tut3 = '3.Release mouse'; _root.texty_en.send = 'Send and start new game'; _root.texty_en.progr = 'Programming'; _root.texty_en.gfx = 'Graphics'; _root.texty_en.level1 = 'Tutorial'; _root.texty_en.level2 = 'Chicken farm'; _root.texty_en.level3 = 'Straw field'; _root.texty_en.level4 = 'Village tournament'; _root.texty_en.level5 = 'Camp'; _root.texty_en.level6 = 'Farm'; _root.texty_en.level7 = 'Farm tournament'; _root.texty_en.level8 = 'Dark wood'; _root.texty_en.level9 = 'Abandoned carriage'; _root.texty_en.level10 = 'Forest tournament'; _root.texty_en.level11 = 'Apple tree'; _root.texty_en.level12 = 'Cornfield'; _root.texty_en.level13 = 'Haymaking'; _root.texty_en.level14 = 'Creek tournament'; _root.texty_en.level15 = 'Windmill'; _root.texty_en.level16 = 'Mountain tournament'; _root.texty_en.level17 = ''; _root.texty_en.bow1 = 'Short bow'; _root.texty_en.bow2 = 'Long bow'; _root.texty_en.bow3 = 'Composite bow'; _root.texty_en.bow4 = 'Silver bow'; _root.texty_en.bow5 = 'Golden bow'; _root.texty_en.bow6 = 'Diamond bow'; _root.texty = _root.texty_en; } frame 1 { mochi.as2.MochiAd.showPreGameAd({'id': '34dae29cd9fe2dee', 'res': '640x480'}); mochi.as2.MochiServices.connect('34dae29cd9fe2dee'); } movieClip 121 { } movieClip 122 { } movieClip 123 { } movieClip 125 { instance of movieClip 123 { onClipEvent (load) { _visible = false; xspeed = 1; } onClipEvent (enterFrame) { this._parent._x += xspeed * _root.wind; if (this._parent._x > 1000) { this._parent._x = -150; } if (this._parent._x < -500) { this._parent._x = 900; } } } } movieClip 127 { instance of movieClip 123 { onClipEvent (load) { _visible = false; xspeed = 1; } onClipEvent (enterFrame) { this._parent._x += xspeed * _root.wind; if (this._parent._x > 1000) { this._parent._x = -150; } if (this._parent._x < -500) { this._parent._x = 900; } } } } movieClip 129 { instance of movieClip 123 { onClipEvent (load) { _visible = false; xspeed = 2.5; } onClipEvent (enterFrame) { this._parent._x += xspeed * _root.wind; if (this._parent._x > 1000) { this._parent._x = -150; } if (this._parent._x < -500) { this._parent._x = 900; } } } } movieClip 131 { instance of movieClip 123 { onClipEvent (load) { _visible = false; xspeed = 1.5; } onClipEvent (enterFrame) { this._parent._x += xspeed * _root.wind; if (this._parent._x > 1000) { this._parent._x = -150; } if (this._parent._x < -500) { this._parent._x = 900; } } } } movieClip 417 __Packages.mochi.as2.MochiAd { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiAd) { var v1 = function () {}; mochi.as2.MochiAd = v1; var v2 = v1.prototype; v1.getVersion = function () { return '3.02 as2'; }; v1.showPreGameAd = function (options) { var v26 = {'clip': _root, 'ad_timeout': 3000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showPreloaderAd', 'color': 16747008, 'background': 16777161, 'outline': 13994812, 'no_progress_bar': false, 'ad_started': function () { this.clip.stop(); }, 'ad_finished': function () { this.clip.play(); }, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}, 'ad_progress': function (percent) {}}; options = mochi.as2.MochiAd._parseOptions(options, v26); if ('c862232051e0a94e1c3609b3916ddb17'.substr(0) == 'dfeada81ac97cde83665f81c12da7def') { options.ad_started(); options.ad_finished(); return undefined; } var clip = options.clip; var v22 = 11000; var v25 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v14 = mochi.as2.MochiAd._getRes(options); var v4 = v14[0]; var v13 = v14[1]; mc._x = v4 * 0.5; mc._y = v13 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk._x = v4 * -0.5; chk._y = v13 * -0.5; var v6 = chk.createEmptyMovieClip('_mochiad_bar', 4); if (options.no_progress_bar) { v6._visible = false; delete options.no_progress_bar; } else { v6._x = 10; v6._y = v13 - 20; } var v21 = options.color; delete options.color; var v19 = options.background; delete options.background; var v23 = options.outline; delete options.outline; var v5 = v6.createEmptyMovieClip('_outline', 1); v5.beginFill(v19); v5.moveTo(0, 0); v5.lineTo(v4 - 20, 0); v5.lineTo(v4 - 20, 10); v5.lineTo(0, 10); v5.lineTo(0, 0); v5.endFill(); var v3 = v6.createEmptyMovieClip('_inside', 2); v3.beginFill(v21); v3.moveTo(0, 0); v3.lineTo(v4 - 20, 0); v3.lineTo(v4 - 20, 10); v3.lineTo(0, 10); v3.lineTo(0, 0); v3.endFill(); v3._xscale = 0; var v7 = v6.createEmptyMovieClip('_outline', 3); v7.lineStyle(0, v23, 100); v7.moveTo(0, 0); v7.lineTo(v4 - 20, 0); v7.lineTo(v4 - 20, 10); v7.lineTo(0, 10); v7.lineTo(0, 0); chk.ad_msec = v22; chk.ad_timeout = v25; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time); if (v2 > 0) { this._parent._alpha = v2; } else { var v3 = this._parent._parent; mochi.as2.MochiAd.unload(v3); delete this.onEnterFrame; } }; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; var sendHostProgress = false; mc.lc.sendHostLoadProgress = function (lc_name) { sendHostProgress = true; }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var v2 = this.mc._mochiad_wait; v2.server_control = true; v2.started = getTimer(); v2.ad_msec = msec; }; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v6 = this._parent._parent; var v11 = this._parent._mochiad_ctr; var v5 = getTimer() - this.started; var v3 = false; var v4 = v6.getBytesTotal(); var v8 = v6.getBytesLoaded(); var v2 = 100 * v8 / v4; var v10 = 100 * v5 / chk.ad_msec; var v9 = this._mochiad_bar._inside; var v13 = Math.min(100, Math.min(v2 || 0, v10)); v13 = Math.max(this.last_pcnt, v13); this.last_pcnt = v13; v9._xscale = v13; options.ad_progress(v13); if (sendHostProgress) { mochi.as2.MochiAd.containerNotify(clip, {'id': 'hostLoadPcnt', 'pcnt': v2}, clip._mochiad._containerLCName); if (v2 == 100) { sendHostProgress = false; } } if (!chk.showing) { var v7 = v11.getBytesTotal(); if (v7 > 0 || typeof v7 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v5 > chk.ad_timeout && v2 == 100) { options.ad_failed(); v3 = true; } } } if (v5 > chk.ad_msec) { v3 = true; } if (v4 > 0 && v8 >= v4 && v3) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; }; v1.showClickAwayAd = function (options) { var v9 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showClickAwayAd', 'res': '300x250', 'no_bg': true, 'ad_started': function () {}, 'ad_finished': function () {}, 'ad_loaded': function (width, height) {}, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_skipped': function () {}}; options = mochi.as2.MochiAd._parseOptions(options, v9); var clip = options.clip; var v8 = options.ad_timeout; delete options.ad_timeout; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v4 = mochi.as2.MochiAd._getRes(options); var v10 = v4[0]; var v7 = v4[1]; mc._x = v10 * 0.5; mc._y = v7 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_timeout = v8; chk.started = getTimer(); chk.showing = false; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; var v20 = false; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; chk.onEnterFrame = function () { var v5 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v2 = false; if (!chk.showing) { var v3 = v5.getBytesTotal(); if (v3 > 0 || typeof v3 == 'undefined') { v2 = true; chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout) { options.ad_failed(); v2 = true; } } } if (v2) { delete this.onEnterFrame; } }; }; v1.showInterLevelAd = function (options) { var v13 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showTimedAd', 'ad_started': function () { this.clip.stop(); }, 'ad_finished': function () { this.clip.play(); }, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}}; options = mochi.as2.MochiAd._parseOptions(options, v13); var clip = options.clip; var v10 = 11000; var v12 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v5 = mochi.as2.MochiAd._getRes(options); var v14 = v5[0]; var v11 = v5[1]; mc._x = v14 * 0.5; mc._y = v11 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_msec = v10; chk.ad_timeout = v12; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time); if (v2 > 0) { this._parent._alpha = v2; } else { var v3 = this._parent._parent; mochi.as2.MochiAd.unload(v3); delete this.onEnterFrame; } }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var v2 = this.mc._mochiad_wait; v2.server_control = true; v2.started = getTimer(); v2.ad_msec = msec - 250; }; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v5 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v2 = false; if (!chk.showing) { var v3 = v5.getBytesTotal(); if (v3 > 0 || typeof v3 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout) { options.ad_failed(); v2 = true; } } } if (v4 > chk.ad_msec) { v2 = true; } if (v2) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; }; v1.showPreloaderAd = function (options) { trace('[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0'); mochi.as2.MochiAd.showPreGameAd(options); }; v1.showTimedAd = function (options) { trace('[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0'); mochi.as2.MochiAd.showInterLevelAd(options); }; v1._allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.load = function (options) { var v13 = {'clip': _root, 'server': 'http://x.mochiads.com/srv/1/', 'method': 'load', 'depth': 10333, 'id': '_UNKNOWN_'}; options = mochi.as2.MochiAd._parseOptions(options, v13); options.swfv = options.clip.getSWFVersion() || 6; options.mav = mochi.as2.MochiAd.getVersion(); var v7 = options.clip; if (!mochi.as2.MochiAd._isNetworkAvailable()) { return null; } if (v7._mochiad_loaded) { return null; } var v12 = options.depth; delete options.depth; var v6 = v7.createEmptyMovieClip('_mochiad', v12); var v11 = mochi.as2.MochiAd._getRes(options); options.res = v11[0] + 'x' + v11[1]; options.server += options.id; delete options.id; v7._mochiad_loaded = true; if (v7._url.indexOf('http') != 0) { trace('[MochiAd] NOTE: Security Sandbox Violation errors below are normal'); } var v4 = v6.createEmptyMovieClip('_mochiad_ctr', 1); for (var v8 in options) { v4[v8] = options[v8]; } var v10 = v4.server; delete v4.server; var v14 = mochi.as2.MochiAd._allowDomains(v10); v6.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; mochi.as2.MochiAd.unload(this._parent); } }; } }; var v5 = new Object(); var v9 = ['', Math.floor((new Date()).getTime()), random(999999)].join('_'); v5.mc = v6; v5.name = v9; v5.hostname = v14; v5.allowDomain = function (d) { return true; }; v5.allowInsecureDomain = v5.allowDomain; v5.connect(v9); v6.lc = v5; v4.lc = v9; v4.st = getTimer(); v4.loadMovie(v10 + '.swf', 'POST'); return v6; }; v1.unload = function (clip) { if (typeof clip == 'undefined') { clip = _root; } if (clip.clip && clip.clip._mochiad) { clip = clip.clip; } if (!clip._mochiad) { return false; } mochi.as2.MochiAd.containerNotify(clip, {'id': 'unload'}, clip._mochiad._containerLCName); clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return true; }; v1._isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1._getRes = function (options) { var v3 = options.clip.getBounds(); var v2 = 0; var v1 = 0; if (typeof options.res != 'undefined') { var v4 = options.res.split('x'); v2 = parseFloat(v4[0]); v1 = parseFloat(v4[1]); } else { v2 = v3.xMax - v3.xMin; v1 = v3.yMax - v3.yMin; } if (v2 == 0 || v1 == 0) { v2 = Stage.width; v1 = Stage.height; } return [v2, v1]; }; v1._parseOptions = function (options, defaults) { var v4 = {}; for (var v8 in defaults) { v4[v8] = defaults[v8]; } if (options) { for (v8 in options) { v4[v8] = options[v8]; } } if (_root.mochiad_options) { var v5 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v5.length) { var v3 = v5[v2].split('='); v4[unescape(v3[0])] = unescape(v3[1]); ++v2; } } if (v4.id == 'test') { trace('[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!'); } return v4; }; v1.rpc = function (clip, callbackID, arg) { switch (arg.id) { case 'setValue': mochi.as2.MochiAd.setValue(clip, arg.objectName, arg.value); break; case 'getValue': var v4 = mochi.as2.MochiAd.getValue(clip, arg.objectName); mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v4, clip._mochiad._containerLCName); break; case 'runMethod': var v3 = mochi.as2.MochiAd.runMethod(clip, arg.method, arg.args); mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v3, clip._mochiad._containerLCName); break; default: trace('[mochiads rpc] unknown rpc id: ' + arg.id); } }; v1.setValue = function (base, objectName, value) { var v2 = objectName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } base[v2[v1]] = value; }; v1.getValue = function (base, objectName) { var v2 = objectName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } return base[v2[v1]]; }; v1.runMethod = function (base, methodName, argsArray) { var v2 = methodName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } if (typeof base[v2[v1]] == 'function') { return base[v2[v1]].apply(base, argsArray); } else { return undefined; } }; v1.containerNotify = function (clip, args, lcName) { var v1 = clip._mochiad._mochiad_ctr.ad.app; if (v1.notify) { v1.notify(args); } else { (new LocalConnection()).send(lcName, 'notify', args); } }; v1.containerRpcResult = function (clip, callbackID, val, lcName) { var v1 = clip._mochiad._mochiad_ctr.ad.app; if (v1.rpcResult) { v1.rpcResult(callbackID, val); } else { (new LocalConnection()).send(lcName, 'rpcResult', callbackID, val); } }; ASSetPropFlags(mochi.as2.MochiAd.prototype, null, 1); } #endinitclip } movieClip 418 __Packages.mochi.as2.MochiServices { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiServices) { var v1 = function () {}; mochi.as2.MochiServices = v1; var v2 = v1.prototype; v1.__get__id = function () { return mochi.as2.MochiServices._id; }; v1.__get__clip = function () { return mochi.as2.MochiServices._container; }; v1.__get__childClip = function () { return mochi.as2.MochiServices._clip; }; v1.getVersion = function () { return '3.02 as2'; }; v1.allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.__get__isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1.__set__comChannelName = function (val) { if (val != undefined) { if (val.length > 3) { mochi.as2.MochiServices._sendChannelName = val + '_fromgame'; mochi.as2.MochiServices.initComChannels(); } } return mochi.as2.MochiServices.__get__comChannelName(); }; v1.__get__connected = function () { return mochi.as2.MochiServices._connected; }; v1.connect = function (id, clip, onError) { mochi.as2.MochiServices.warnID(id, false); if (!mochi.as2.MochiServices._connected && mochi.as2.MochiServices._clip == undefined) { trace('MochiServices Connecting...'); mochi.as2.MochiServices._connecting = true; mochi.as2.MochiServices.init(id, clip); } if (onError != undefined) { mochi.as2.MochiServices.onError = onError; } else { if (mochi.as2.MochiServices.onError == undefined) { mochi.as2.MochiServices.onError = function (errorCode) { trace(errorCode); }; } } }; v1.disconnect = function () { if (mochi.as2.MochiServices._connected || mochi.as2.MochiServices._connecting) { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._connecting = mochi.as2.MochiServices._connected; mochi.as2.MochiServices.flush(true); if (mochi.as2.MochiServices._clip != undefined) { mochi.as2.MochiServices._clip.removeMovieClip(); delete mochi.as2.MochiServices._clip; } mochi.as2.MochiServices._listenChannel.close(); } }; v1.init = function (id, clip) { mochi.as2.MochiServices._id = id; if (clip != undefined) { mochi.as2.MochiServices._container = clip; } else { mochi.as2.MochiServices._container = _root; } mochi.as2.MochiServices.loadCommunicator(id, mochi.as2.MochiServices._container); }; v1.loadCommunicator = function (id, clip) { var v3 = '_mochiservices_com_' + id; if (mochi.as2.MochiServices._clip != null) { return mochi.as2.MochiServices._clip; } if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) { return null; } if ((mochi.as2.MochiServices.urlOptions()).servicesURL != undefined) { mochi.as2.MochiServices._servicesURL = (mochi.as2.MochiServices.urlOptions()).servicesURL; } mochi.as2.MochiServices.allowDomains(mochi.as2.MochiServices._servicesURL); mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v3, 10336, false); mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999); mochi.as2.MochiServices.listen(); mochi.as2.MochiServices._loader = new MovieClipLoader(); if (mochi.as2.MochiServices._loaderListener.waitInterval != null) { clearInterval(mochi.as2.MochiServices._loaderListener.waitInterval); } mochi.as2.MochiServices._loaderListener = {}; mochi.as2.MochiServices._loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) { trace('MochiServices could not load.'); mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, [errorCode]); }; mochi.as2.MochiServices._loaderListener.onLoadStart = function (target_mc) { this.isLoading = true; }; mochi.as2.MochiServices._loaderListener.startTime = getTimer(); mochi.as2.MochiServices._loaderListener.wait = function () { if (getTimer() - this.startTime > 10000) { if (!this.isLoading) { mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, ['IOError']); } clearInterval(this.waitInterval); } }; mochi.as2.MochiServices._loaderListener.waitInterval = setInterval(mochi.as2.MochiServices._loaderListener, 'wait', 1000); mochi.as2.MochiServices._loader.addListener(mochi.as2.MochiServices._loaderListener); mochi.as2.MochiServices._loader.loadClip(mochi.as2.MochiServices._servicesURL + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options), mochi.as2.MochiServices._clip); mochi.as2.MochiServices._sendChannel = new LocalConnection(); mochi.as2.MochiServices._sendChannel._queue = []; return mochi.as2.MochiServices._clip; }; v1.onStatus = function (infoObject) { if (infoObject.level !== 'error') { } else { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); } }; v1.listen = function () { mochi.as2.MochiServices._listenChannel = new LocalConnection(); mochi.as2.MochiServices._listenChannel.handshake = function (args) { mochi.as2.MochiServices.__set__comChannelName(args.newChannel); }; mochi.as2.MochiServices._listenChannel.allowDomain = function (d) { return true; }; mochi.as2.MochiServices._listenChannel.allowInsecureDomain = mochi.as2.MochiServices._listenChannel.allowDomain; mochi.as2.MochiServices._listenChannel._nextcallbackID = 0; mochi.as2.MochiServices._listenChannel._callbacks = {}; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); trace('Waiting for MochiAds services to connect...'); }; v1.initComChannels = function () { if (!mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'}); mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.as2.MochiServices._id, 'clip': mochi.as2.MochiServices._clip, 'version': /:$version}); mochi.as2.MochiServices._listenChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._listenChannel.onReceive = function (pkg) { var v5 = pkg.callbackID; var v4 = this._callbacks[v5]; if (!v4) { return undefined; } var v2 = v4.callbackMethod; var v3 = v4.callbackObject; if (v3 && typeof v2 == 'string') { v2 = v3[v2]; } if (v2 != undefined) { v2.apply(v3, pkg.args); } delete this._callbacks[v5]; }; mochi.as2.MochiServices._listenChannel.onError = function () { mochi.as2.MochiServices.onError.apply(null, ['IOError']); }; trace('connected!'); mochi.as2.MochiServices._connecting = false; mochi.as2.MochiServices._connected = true; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', mochi.as2.MochiServices._sendChannel._queue.shift()); } } }; v1.flush = function (error) { var v1; var v2; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { v1 = mochi.as2.MochiServices._sendChannel._queue.shift(); false; if (v1.callbackID != null) { v2 = mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; } delete mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; if (error) { mochi.as2.MochiServices.handleError(v1.args, v2.callbackObject, v2.callbackMethod); } } }; v1.handleError = function (args, callbackObject, callbackMethod) { if (args != null) { if (args.onError != null) { args.onError.apply(null, ['NotConnected']); } if (args.options != null && args.options.onError != null) { args.options.onError.apply(null, ['NotConnected']); } } if (callbackMethod != null) { args = {}; args.error = true; args.errorCode = 'NotConnected'; if (callbackObject != null && typeof callbackMethod == 'string') { callbackObject[callbackMethod](args); } else { if (callbackMethod != null) { callbackMethod.apply(args); } } } }; v1.send = function (methodName, args, callbackObject, callbackMethod) { if (mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } else { if (mochi.as2.MochiServices._clip == undefined || !mochi.as2.MochiServices._connecting) { mochi.as2.MochiServices.onError.apply(null, ['NotConnected']); mochi.as2.MochiServices.handleError(args, callbackObject, callbackMethod); mochi.as2.MochiServices.flush(true); return undefined; } else { mochi.as2.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } } mochi.as2.MochiServices._listenChannel._callbacks[mochi.as2.MochiServices._listenChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod}; ++mochi.as2.MochiServices._listenChannel._nextcallbackID; }; v1.urlOptions = function () { var v5 = {}; if (_root.mochiad_options) { var v4 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v4.length) { var v3 = v4[v2].split('='); v5[unescape(v3[0])] = unescape(v3[1]); ++v2; } } return v5; }; v1.warnID = function (bid, leaderboard) { bid = bid.toLowerCase(); if (bid.length != 16) { trace('WARNING: ' + (leaderboard ? 'board' : 'game') + ' ID is not the appropriate length'); return undefined; } else { if (bid == '1e113c7239048b3f') { if (leaderboard) { trace('WARNING: Using testing board ID'); } else { trace('WARNING: Using testing board ID as game ID'); } return undefined; } else { if (bid == '84993a1de4031cd8') { if (leaderboard) { trace('WARNING: Using testing game ID as board ID'); } else { trace('WARNING: Using testing game ID'); } return undefined; } } } var v1 = 0; while (v1 < bid.length) { switch (bid.charAt(v1)) { if (bid.charAt(v1) !== 'f') { } else { case '0': case '1': case '2': case '3': case '4': case '5': case '6': break; case '7': case '8': case '9': case 'a': case 'b': case 'c': case 'd': case 'e': } default: trace('WARNING: Board ID contains illegal characters: ' + bid); return undefined; } ++v1; } }; v1.addLinkEvent = function (url, burl, btn, onClick) { var timeout = 1500; var t0 = getTimer(); var v2 = new Object(); v2.mav = /:$version; v2.swfv = btn.getSWFVersion() || 6; v2.swfurl = btn._url; v2.fv = System.capabilities.version; v2.os = System.capabilities.os; v2.lang = System.capabilities.language; v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY; var s = '?'; var v3 = 0; for (var v6 in v2) { if (v3 != 0) { s += '&'; } ++v3; s = s + v6 + '=' + escape(v2[v6]); } if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) { var ping = btn.createEmptyMovieClip('ping', 777); var v7 = btn.createEmptyMovieClip('nettest', 778); mochi.as2.MochiServices.netupAttempted = true; ping.loadMovie('http://x.mochiads.com/linkping.swf?t=' + getTimer()); v7.onEnterFrame = function () { if (ping._totalframes > 0 && ping._totalframes == ping._framesloaded) { delete this.onEnterFrame; } else { if (getTimer() - t0 > timeout) { delete this.onEnterFrame; mochi.as2.MochiServices.netup = false; } } }; } var v4 = btn.createEmptyMovieClip('clk', 1001); v4._alpha = 0; v4.beginFill(1044735); v4.moveTo(0, 0); v4.lineTo(0, btn._height); v4.lineTo(btn._width, btn._height); v4.lineTo(btn._width, 0); v4.lineTo(0, 0); v4.endFill(); v4.onRelease = function () { if (mochi.as2.MochiServices.netup) { getURL(url + s, '_blank'); } else { getURL(burl, '_blank'); } if (onClick != undefined) { onClick(); } }; }; v1._servicesURL = 'http://www.mochiads.com/static/lib/services/services.swf'; v1._listenChannelName = '__ms_'; v1._connecting = false; v1._connected = false; v1.netup = true; v1.netupAttempted = false; v1.addProperty('childClip', v1.__get__childClip, function () {}); v1.addProperty('clip', v1.__get__clip, function () {}); v1.addProperty('comChannelName', function () {}, v1.__set__comChannelName); v1.addProperty('connected', v1.__get__connected, function () {}); v1.addProperty('id', v1.__get__id, function () {}); v1.addProperty('isNetworkAvailable', v1.__get__isNetworkAvailable, function () {}); ASSetPropFlags(mochi.as2.MochiServices.prototype, null, 1); } #endinitclip } movieClip 419 __Packages.mochi.as2.MochiScores { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiScores) { var v1 = function () {}; mochi.as2.MochiScores = v1; var v2 = v1.prototype; v1.setBoardID = function (boardID) { mochi.as2.MochiServices.warnID(boardID, true); mochi.as2.MochiScores.boardID = boardID; mochi.as2.MochiServices.send('scores_setBoardID', {'boardID': boardID}); }; v1.showLeaderboard = function (options) { if (options.clip == null || options.clip == undefined) { options.clip = mochi.as2.MochiServices.clip; } if (options.clip != mochi.as2.MochiServices.__get__clip() || (mochi.as2.MochiServices.__get__childClip())._target == undefined) { mochi.as2.MochiServices.disconnect(); trace('WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!'); trace('make sure MochiServices.connect is called as early in the application runtime as possible.'); mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip); } delete options.clip; if (options.name != null) { if (typeof options.name == 'object') { if (options.name.text != undefined) { options.name = options.name.text; } } } if (options.score != null) { if (options.score instanceof TextField) { if (options.score.text != undefined) { options.score = options.score.text; } } else { if (options.score instanceof mochi.as2.MochiDigits) { options.score = options.score.value; } } var v1 = Number(options.score); if (isNaN(v1)) { trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is \'Not a Number\''); } else { if (v1 == Number.NEGATIVE_INFINITY || v1 == Number.POSITIVE_INFINITY) { trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is an infinite'); } else { if (Math.floor(v1) != v1) { trace('WARNING: Submitted score \'' + options.score + '\' will be truncated'); } options.score = v1; } } } if (options.onDisplay != null) { options.onDisplay(); } else { (mochi.as2.MochiServices.__get__clip()).stop(); } if (options.onClose != null) { mochi.as2.MochiScores.onClose = options.onClose; } else { mochi.as2.MochiScores.onClose = function () {}; } if (options.onError != null) { mochi.as2.MochiScores.onError = options.onError; } else { mochi.as2.MochiScores.onError = mochi.as2.MochiScores.onClose; } if (options.boardID == null) { if (mochi.as2.MochiScores.boardID != null) { options.boardID = mochi.as2.MochiScores.boardID; } } mochi.as2.MochiServices.warnID(options.boardID, true); trace('[MochiScores] NOTE: Security Sandbox Violation errors below are normal'); mochi.as2.MochiServices.send('scores_showLeaderboard', {'options': options}, null, mochi.as2.MochiScores.doClose); }; v1.closeLeaderboard = function () { mochi.as2.MochiServices.send('scores_closeLeaderboard'); }; v1.getPlayerInfo = function (callbackObj, callbackMethod) { mochi.as2.MochiServices.send('scores_getPlayerInfo', null, callbackObj, callbackMethod); }; v1.submit = function (score, name, callbackObj, callbackMethod) { score = Number(score); if (isNaN(score)) { trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is \'Not a Number\''); } else { if (score == Number.NEGATIVE_INFINITY || score == Number.POSITIVE_INFINITY) { trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is an infinite'); } else { if (Math.floor(score) != score) { trace('WARNING: Submitted score \'' + String(score) + '\' will be truncated'); } score = Number(score); } } mochi.as2.MochiServices.send('scores_submit', {'score': score, 'name': name}, callbackObj, callbackMethod); }; v1.requestList = function (callbackObj, callbackMethod) { mochi.as2.MochiServices.send('scores_requestList', null, callbackObj, callbackMethod); }; v1.scoresArrayToObjects = function (scores) { var v5 = {}; var v1; var v4; var v2; var v6; for (var v8 in scores) { if (typeof scores[v8] == 'object') { if (scores[v8].cols != null && scores[v8].rows != null) { v5[v8] = []; v2 = scores[v8]; v4 = 0; while (v4 < v2.rows.length) { v6 = {}; v1 = 0; while (v1 < v2.cols.length) { v6[v2.cols[v1]] = v2.rows[v4][v1]; ++v1; } v5[v8].push(v6); ++v4; } } else { v5[v8] = {}; for (var v7 in scores[v8]) { v5[v8][v7] = scores[v8][v7]; } } } else { v5[v8] = scores[v8]; } } return v5; }; v1.doClose = function (args) { if (args.error == true) { if (args.errorCode == undefined) { args.errorCode = 'IOError'; } mochi.as2.MochiScores.onError.apply(null, [args.errorCode]); } else { mochi.as2.MochiScores.onClose.apply(); } }; ASSetPropFlags(mochi.as2.MochiScores.prototype, null, 1); } #endinitclip } movieClip 420 __Packages.mochi.as2.MochiDigits { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiDigits) { var v1 = function (digit, index) { this.Encoder = 0; this.setValue(digit, index); }; mochi.as2.MochiDigits = v1; var v2 = v1.prototype; v2.__get__value = function () { return Number(this.toString()); }; v2.__set__value = function (v) { this.setValue(v); return this.__get__value(); }; v2.addValue = function (v) { this.value += v; }; v2.setValue = function (digit, index) { var v3 = digit.toString(); if (index == undefined || isNaN(index)) { index = 0; } this.Fragment = v3.charCodeAt(index++) ^ this.Encoder; if (index < v3.length) { this.Sibling = new mochi.as2.MochiDigits(digit, index); } else { this.Sibling = null; } this.reencode(); }; v2.reencode = function () { var v2 = int(2147483647 * Math.random()); this.Fragment ^= v2 ^ this.Encoder; this.Encoder = v2; }; v2.toString = function () { var v2 = String.fromCharCode(this.Fragment ^ this.Encoder); return (this.Sibling != null) ? v2.concat(this.Sibling.toString()) : v2; }; v2.addProperty('value', v2.__get__value, v2.__set__value); ASSetPropFlags(mochi.as2.MochiDigits.prototype, null, 1); } #endinitclip } frame 2 { function doSomething() { getURL('http://flashlaboratories.ic.cz', _blank); } function doSomething2() { getURL('http://yuri.cz', _blank); } function doSomething0() {} stop(); _root.wind = -0.5; _root.accel = 0; _root.jumpable = true; _root.sound_volume = 100; MENU.customItems.push(Functioned2); MENU = new ContextMenu(); MENU.hideBuiltInItems(); Functioned0 = new ContextMenuItem(' <---<<< Chicken Rampage <---<<< ', doSomething0); Functioned = new ContextMenuItem('Created by Flash Laboratories', doSomething); Functioned2 = new ContextMenuItem('Programming: Jiri Bukovjan', doSomething2); Functioned3 = new ContextMenuItem('Graphics: Petr Bukovjan', doSomething); MENU.customItems.push(Functioned0); MENU.customItems.push(Functioned); MENU.customItems.push(Functioned2); MENU.customItems.push(Functioned3); _root.menu = MENU; stop(); afrodita.pozice = afrodita.obdelnik._y; afrodita.procento = 0; afrodita.onEnterFrame = function () { if (this.procento < 1) { this.procento += 0.01; } this.vzkaz = '.' + Math.round(this.procento * 20) * 5; this.cislo = 10 + random(5); this.potrebne = Math.round(this.procento * this.obdelnik._height / this.cislo) * this.cislo; this.obdelnik._y = this.pozice - this.potrebne; if (this.procento > 0.9 && this.procento < 0.95) { this.play(); } if (this._currentframe > 240) { snd.setVolume(100); _root.gotoAndStop(3); } }; afrodita.onRelease = function () { getURL('http://www.afrodita.name/', '_blank'); }; snd = new Sound(); snd.setVolume(20); } movieClip 134 { } // unknown tag 88 length 132 movieClip 142 { } movieClip 144 { } movieClip 146 { } movieClip 148 { } movieClip 149 { } movieClip 152 { } movieClip 154 { frame 1 { stop(); } frame 243 { _root.kontrola(); stop(); } } instance afrodita of movieClip 154 { } frame 3 { function btn_hraj() { _root.main_menu.btn_play.onPress = function () { started = true; }; } _root.kongregateServices.connect(); stop(); cover(); _root.wind = -0.5; started = false; _root.main_menu.onEnterFrame = function () { _root.main_menu.btn_play.txt.text = _root.texty.start; _root.main_menu.btn_help.txt.text = _root.texty.help; _root.main_menu.btn_authors.txt.text = _root.texty.authors; _root.main_menu.btn_authors.onPress = function () { snd = new Sound(); snd.attachSound('snd_klik.wav'); snd.start(); _root.jumpable = true; _root.gotoAndStop(5); }; _root.main_menu.btn_help.onPress = function () { snd = new Sound(); snd.attachSound('snd_klik.wav'); snd.start(); _root.jumpable = true; _root.gotoAndStop(8); }; _root.main_menu.btn_more.onPress = function () { snd = new Sound(); snd.attachSound('snd_klik.wav'); snd.start(); getURL('http://www.afrodita.name/', '_blank'); }; _root.main_menu.btn_continue.onPress = function () { snd = new Sound(); snd.attachSound('snd_klik.wav'); snd.start(); _root.jumpable = true; _root.gotoAndStop(7); }; btn_hraj(); }; _root.btn_cz.onPress = function () { _root.texty = _root.texty_cz; _root.jumpable = true; _root.gotoAndStop(7); }; _root.btn_en.onPress = function () { _root.texty = _root.texty_en; _root.jumpable = true; _root.gotoAndStop(7); }; sounds(); stop(); _root.enter_name.onEnterFrame = function () { if (started == true) { if (this._x > 333) { this._x -= (this._x - 333) / 5; } if (this._y > 290) { this._y -= (this._y - 290) / 5; } } }; _root.enter_name.btn_start.onRelease = function () { if (_root.enter_name.name_input.text != 'Enter your name' && _root.enter_name.name_input.text != '') { _root.player_name = _root.enter_name.name_input.text; snd = new Sound(); snd.attachSound('snd_klik.wav'); snd.start(); delete _root.player; delete _root.level1; delete _root.level2; delete _root.level3; delete _root.level4; delete _root.level5; delete _root.level6; delete _root.level7; delete _root.level8; delete _root.level9; delete _root.level10; delete _root.level11; delete _root.level12; _root.player = new Object(); _root.player.score = 0; _root.player.max_arrows = 24; _root.player.act_arrows = _root.player.max_arrows; _root.player.arrow_shooted = 0; _root.player.arrow_dmg = 5; _root.player.hp = 100; _root.player.gold = 0; _root.player.gold_spent = 0; _root.player.max_power = 75; _root.player.luk_num = 1; _root.player.replays = 0; _root.player.arrow_bonus_dmg = 1; _root.player.bow_bonus_power = 1; _root.player.hp_max = 100; _root.player.hp = 100; _root.player.apples = 0; _root.player.coins = 0; _root.player.rabbits = 0; _root.player.slama = 0; _root.player.sud = 0; _root.player.terc = 0; _root.player.slipka = 0; _root.player.prase = 0; _root.player.ohen = 0; _root.player.siska = 0; _root.player.stan = 0; _root.player.jablko = 0; _root.player.becher = 0; _root.player.mesec = 0; _root.player.kralik = 0; _root.player.ptak = 0; _root.player.pytel = 0; _root.player.studna = 0; _root.player.krabice = 0; _root.player.kul = 0; _root.player.strasak = 0; _root.player.vosy = 0; init_luku(); kill = 20; _root.level1 = new Object(); _root.level1.score = 0; _root.level1.gold = 100; _root.level1.kill = 0; _root.level1.hit = 0; _root.level1.shots = 0; _root.level1.fastkill = 0; _root.level1.finished = false; _root.level1.played = false; _root.level1.no = 1; _root.level1.unlocked = false; _root.level1.nazev = 'Tutorial'; _root.level1.popis = 'Learn to play'; _root.level2 = new Object(); _root.level2.score = 0; _root.level2.gold = 100; _root.level2.kill = 0; _root.level2.hit = 0; _root.level2.shots = 0; _root.level2.fastkill = 0; _root.level2.finished = false; _root.level2.played = false; _root.level2.no = 2; _root.level2.unlocked = false; _root.level2.nazev = 'First Mission'; _root.level2.popis = 'Kill 25 Chicken'; _root.level3 = new Object(); _root.level3.score = 0; _root.level3.gold = 100; _root.level3.kill = 0; _root.level3.hit = 0; _root.level3.shots = 0; _root.level3.fastkill = 0; _root.level3.finished = false; _root.level3.played = false; _root.level3.no = 3; _root.level3.unlocked = false; _root.level3.nazev = 'First Challenge'; _root.level3.popis = 'Chicken Boss'; _root.level4 = new Object(); _root.level4.score = 0; _root.level4.gold = 100; _root.level4.kill = 0; _root.level4.hit = 0; _root.level4.shots = 0; _root.level4.fastkill = 0; _root.level4.finished = false; _root.level4.played = false; _root.level4.no = 4; _root.level4.unlocked = false; _root.level4.nazev = 'One vs 100'; _root.level4.popis = 'Kill 100 chicken'; _root.level5 = new Object(); _root.level5.score = 0; _root.level5.gold = 100; _root.level5.kill = 0; _root.level5.hit = 0; _root.level5.shots = 0; _root.level5.fastkill = 0; _root.level5.finished = false; _root.level5.played = false; _root.level5.no = 5; _root.level5.unlocked = false; _root.level5.nazev = 'Flying bombarders'; _root.level5.popis = 'They have strange bombs...'; _root.level6 = new Object(); _root.level6.score = 0; _root.level6.gold = 100; _root.level6.kill = 0; _root.level6.hit = 0; _root.level6.shots = 0; _root.level6.fastkill = 0; _root.level6.finished = false; _root.level6.played = false; _root.level6.no = 6; _root.level6.unlocked = false; _root.level6.nazev = 'Roosters are coming'; _root.level6.popis = ''; _root.level7 = new Object(); _root.level7.score = 0; _root.level7.gold = 100; _root.level7.kill = 0; _root.level7.hit = 0; _root.level7.shots = 0; _root.level7.fastkill = 0; _root.level7.finished = false; _root.level7.played = false; _root.level7.no = 7; _root.level7.unlocked = false; _root.level7.nazev = 'Rooster boss'; _root.level7.popis = ''; _root.level8 = new Object(); _root.level8.score = 0; _root.level8.gold = 100; _root.level8.kill = 0; _root.level8.hit = 0; _root.level8.shots = 0; _root.level8.fastkill = 0; _root.level8.finished = false; _root.level8.played = false; _root.level8.no = 8; _root.level8.unlocked = false; _root.level8.nazev = 'Air defense'; _root.level8.popis = '100 Hot Wings'; _root.level9 = new Object(); _root.level9.score = 0; _root.level9.gold = 100; _root.level9.kill = 0; _root.level9.hit = 0; _root.level9.shots = 0; _root.level9.fastkill = 0; _root.level9.finished = false; _root.level9.played = false; _root.level9.no = 9; _root.level9.unlocked = false; _root.level9.nazev = 'Turkey introduction'; _root.level9.popis = ''; _root.level10 = new Object(); _root.level10.score = 0; _root.level10.gold = 100; _root.level10.kill = 0; _root.level10.hit = 0; _root.level10.shots = 0; _root.level10.fastkill = 0; _root.level10.finished = false; _root.level10.played = false; _root.level10.no = 10; _root.level10.unlocked = false; _root.level10.nazev = 'Turkeys strike back'; _root.level10.popis = ''; _root.level11 = new Object(); _root.level11.score = 0; _root.level11.gold = 100; _root.level11.kill = 0; _root.level11.hit = 0; _root.level11.shots = 0; _root.level11.fastkill = 0; _root.level11.finished = false; _root.level11.played = false; _root.level11.no = 11; _root.level11.unlocked = false; _root.level11.nazev = 'Turkey boss'; _root.level11.popis = ''; _root.level12 = new Object(); _root.level12.score = 0; _root.level12.gold = 100; _root.level12.kill = 0; _root.level12.hit = 0; _root.level12.shots = 0; _root.level12.fastkill = 0; _root.level12.finished = false; _root.level12.played = false; _root.level12.no = 12; _root.level12.unlocked = false; _root.level12.nazev = 'Survival'; _root.level12.popis = ''; _root.jumpable = true; _root.gotoAndStop(4); } }; rollover(btn_icons); btn_icons.onPress = function () { _root.jumpable = true; _root.gotoAndStop(27); }; _root.afrodita.onRelease = function () { getURL('http://www.afrodita.name/', '_blank'); }; } movieClip 156 { } movieClip 159 { } movieClip 161 { } movieClip 163 { } movieClip 167 { frame 1 { stop(); } } movieClip 168 { frame 35 { stop(); } instance btn_play of movieClip 167 { onClipEvent (rollOut) { gotoAndStop(1); } onClipEvent (rollOver) { gotoAndStop(2); } } } movieClip 171 { } movieClip 172 { } movieClip 173 { } movieClip 176 { } movieClip 179 { } movieClip 182 { } movieClip 185 { } movieClip 188 { } movieClip 191 { } movieClip 192 { instance btn_play of movieClip 176 { onClipEvent (rollOut) { gotoAndStop(1); } onClipEvent (rollOver) { gotoAndStop(2); } } instance btn_authors of movieClip 179 { onClipEvent (rollOut) { gotoAndStop(1); } onClipEvent (rollOver) { gotoAndStop(2); } } instance btn_help of movieClip 182 { onClipEvent (rollOut) { gotoAndStop(1); } onClipEvent (rollOver) { gotoAndStop(2); } } instance btn_more of movieClip 191 { onClipEvent (rollOut) { gotoAndStop(1); } onClipEvent (rollOver) { gotoAndStop(2); } } } movieClip 197 { } movieClip 198 { } movieClip 200 { } movieClip 203 { frame 1 { stop(); } } movieClip 206 { frame 1 { stop(); } } frame 4 { delete _root.to_remove; _root.player.score = _root.level1.score + _root.level2.score + _root.level3.score + _root.level4.score + _root.level5.score + _root.level6.score + _root.level7.score + _root.level8.score + _root.level9.score + _root.level10.score + _root.level11.score + _root.level2.score; shield.txt1.text = _root.player_name; shield.txt2.text = _root.player.score - 100 * _root.player.replays; _root.player.gold = _root.player.score - _root.player.gold_spent; shield.txt3.text = _root.player.gold; shield_view(shield); _root.menu_archer.hp_bar._visible = false; save_game('player_profile1', _root.game_menu.menu_save.s1.btn_save); save_game('player_profile2', _root.game_menu.menu_save.s2.btn_save); save_game('player_profile3', _root.game_menu.menu_save.s3.btn_save); save_game('player_profile4', _root.game_menu.menu_save.s4.btn_save); player1 = SharedObject.getLocal('player_profile1'); player2 = SharedObject.getLocal('player_profile2'); player3 = SharedObject.getLocal('player_profile3'); player4 = SharedObject.getLocal('player_profile4'); load_game(player1, _root.game_menu.menu_save.s1.btn_load); load_game(player2, _root.game_menu.menu_save.s2.btn_load); load_game(player3, _root.game_menu.menu_save.s3.btn_load); load_game(player4, _root.game_menu.menu_save.s4.btn_load); _root.game_menu.menu_shop.s1.txt1.text = 'Long bow'; _root.game_menu.menu_shop.s1.txt2.text = 'Strength: ' + luk1.str; _root.game_menu.menu_shop.s1.txt3.text = 'Damage: +' + luk1.dmg; _root.game_menu.menu_shop.c1.txt.text = luk1.cost; if (luk1.bought == false) { _root.game_menu.menu_shop.b1.gotoAndStop(1); if (_root.player.gold >= luk1.cost) { _root.game_menu.menu_shop.b1._visible = true; } else { _root.game_menu.menu_shop.b1._visible = false; } } else { _root.game_menu.menu_shop.b1.gotoAndStop(2); } if (_root.player.luk_num == 2) { _root.game_menu.menu_shop.b1.gotoAndStop(3); } _root.game_menu.menu_shop.b1.onPress = function () { if (this._currentframe == 1) { _root.player.gold_spent += luk1.cost; _root.player.gold = _root.player.score - _root.player.gold_spent; luk1.bought = true; _root.game_menu.menu_shop.b1.gotoAndStop(2); shield.txt3.text = _root.player.gold; snd = new Sound(); snd.attachSound('mesec'); snd.start(); } else { if (this._currentframe == 2) { disable_bows(); _root.menu_archer.luk.gotoAndStop(luk1.num); _root.player.max_power = luk1.str; _root.player.arrow_dmg = luk1.dmg; _root.player.luk_num = luk1.num; _root.game_menu.menu_shop.txt1.text = 'Stregth: ' + (_root.player.max_power + _root.player.bow_bonus_power); _root.game_menu.menu_shop.txt2.text = 'Damage: ' + (_root.player.arrow_dmg + _root.player.arrow_bonus_dmg); _root.player.gold = _root.player.score - _root.player.gold_spent; shield.txt3.text = _root.player.gold; _root.game_menu.menu_shop.b1.gotoAndStop(3); } } }; hide_buy(_root.game_menu.menu_shop.b1, luk1); _root.game_menu.menu_shop.s2.txt1.text = 'Composite bow'; _root.game_menu.menu_shop.s2.txt2.text = 'Strength: ' + luk2.str; _root.game_menu.menu_shop.s2.txt3.text = 'Damage: +' + luk2.dmg; _root.game_menu.menu_shop.c2.txt.text = luk2.cost; if (luk2.bought == false) { _root.game_menu.menu_shop.b2.gotoAndStop(1); if (_root.player.gold >= luk2.cost) { _root.game_menu.menu_shop.b2._visible = true; } else { _root.game_menu.menu_shop.b2._visible = false; } } else { _root.game_menu.menu_shop.b2.gotoAndStop(2); } if (_root.player.luk_num == 3) { _root.game_menu.menu_shop.b2.gotoAndStop(3); } _root.game_menu.menu_shop.b2.onPress = function () { if (this._currentframe == 1) { _root.player.gold_spent += luk2.cost; _root.player.gold = _root.player.score - _root.player.gold_spent; luk2.bought = true; _root.game_menu.menu_shop.b2.gotoAndStop(2); shield.txt3.text = _root.player.gold; snd = new Sound(); snd.attachSound('mesec'); snd.start(); } else { if (this._currentframe == 2) { disable_bows(); _root.menu_archer.luk.gotoAndStop(luk2.num); _root.player.max_power = luk2.str; _root.player.arrow_dmg = luk2.dmg; _root.player.luk_num = luk2.num; _root.game_menu.menu_shop.txt1.text = 'Stregth: ' + (_root.player.max_power + _root.player.bow_bonus_power); _root.game_menu.menu_shop.txt2.text = 'Damage: ' + (_root.player.arrow_dmg + _root.player.arrow_bonus_dmg); _root.player.gold = _root.player.score - _root.player.gold_spent; shield.txt3.text = _root.player.gold; _root.game_menu.menu_shop.b2.gotoAndStop(3); } } }; hide_buy(_root.game_menu.menu_shop.b2, luk2); _root.game_menu.menu_shop.s3.txt1.text = 'Silver bow'; _root.game_menu.menu_shop.s3.txt2.text = 'Strength: ' + luk3.str; _root.game_menu.menu_shop.s3.txt3.text = 'Damage: +' + luk3.dmg; _root.game_menu.menu_shop.c3.txt.text = luk3.cost; if (luk3.bought == false) { _root.game_menu.menu_shop.b3.gotoAndStop(1); if (_root.player.gold >= luk3.cost) { _root.game_menu.menu_shop.b3._visible = true; } else { _root.game_menu.menu_shop.b3._visible = false; } } else { _root.game_menu.menu_shop.b3.gotoAndStop(2); } if (_root.player.luk_num == 4) { _root.game_menu.menu_shop.b3.gotoAndStop(3); } _root.game_menu.menu_shop.b3.onPress = function () { if (this._currentframe == 1) { _root.player.gold_spent += luk3.cost; _root.player.gold = _root.player.score - _root.player.gold_spent; luk3.bought = true; _root.game_menu.menu_shop.b3.gotoAndStop(2); shield.txt3.text = _root.player.gold; snd = new Sound(); snd.attachSound('mesec'); snd.start(); } else { if (this._currentframe == 2) { disable_bows(); _root.menu_archer.luk.gotoAndStop(luk3.num); _root.player.max_power = luk3.str; _root.player.arrow_dmg = luk3.dmg; _root.player.luk_num = luk3.num; _root.game_menu.menu_shop.txt1.text = 'Stregth: ' + (_root.player.max_power + _root.player.bow_bonus_power); _root.game_menu.menu_shop.txt2.text = 'Damage: ' + (_root.player.arrow_dmg + _root.player.arrow_bonus_dmg); _root.player.gold = _root.player.score - _root.player.gold_spent; shield.txt3.text = _root.player.gold; _root.game_menu.menu_shop.b3.gotoAndStop(3); } } }; hide_buy(_root.game_menu.menu_shop.b3, luk3); _root.game_menu.menu_shop.s4.txt1.text = 'Golden bow'; _root.game_menu.menu_shop.s4.txt2.text = 'Strength: ' + luk4.str; _root.game_menu.menu_shop.s4.txt3.text = 'Damage: +' + luk4.dmg; _root.game_menu.menu_shop.c4.txt.text = luk4.cost; if (luk4.bought == false) { _root.game_menu.menu_shop.b4.gotoAndStop(1); if (_root.player.gold >= luk4.cost) { _root.game_menu.menu_shop.b4._visible = true; } else { _root.game_menu.menu_shop.b4._visible = false; } } else { _root.game_menu.menu_shop.b4.gotoAndStop(2); } if (_root.player.luk_num == 5) { _root.game_menu.menu_shop.b4.gotoAndStop(3); } _root.game_menu.menu_shop.b4.onPress = function () { if (this._currentframe == 1) { _root.player.gold_spent += luk4.cost; _root.player.gold = _root.player.score - _root.player.gold_spent; luk4.bought = true; _root.game_menu.menu_shop.b4.gotoAndStop(2); shield.txt3.text = _root.player.gold; snd = new Sound(); snd.attachSound('mesec'); snd.start(); } else { if (this._currentframe == 2) { disable_bows(); _root.menu_archer.luk.gotoAndStop(luk4.num); _root.player.max_power = luk4.str; _root.player.arrow_dmg = luk4.dmg; _root.player.luk_num = luk4.num; _root.game_menu.menu_shop.txt1.text = 'Stregth: ' + (_root.player.max_power + _root.player.bow_bonus_power); _root.game_menu.menu_shop.txt2.text = 'Damage: ' + (_root.player.arrow_dmg + _root.player.arrow_bonus_dmg); _root.player.gold = _root.player.score - _root.player.gold_spent; shield.txt3.text = _root.player.gold; _root.game_menu.menu_shop.b4.gotoAndStop(3); } } }; hide_buy(_root.game_menu.menu_shop.b4, luk4); _root.game_menu.menu_shop.s5.txt1.text = 'Diamond bow'; _root.game_menu.menu_shop.s5.txt2.text = 'Strength: ' + luk5.str; _root.game_menu.menu_shop.s5.txt3.text = 'Damage: +' + luk5.dmg; _root.game_menu.menu_shop.c5.txt.text = luk5.cost; if (luk5.bought == false) { _root.game_menu.menu_shop.b5.gotoAndStop(1); if (_root.player.gold >= luk5.cost) { _root.game_menu.menu_shop.b5._visible = true; } else { _root.game_menu.menu_shop.b5._visible = false; } } else { _root.game_menu.menu_shop.b5.gotoAndStop(2); } if (_root.player.luk_num == 6) { _root.game_menu.menu_shop.b5.gotoAndStop(3); } _root.game_menu.menu_shop.b5.onPress = function () { if (this._currentframe == 1) { _root.player.gold_spent += luk5.cost; _root.player.gold = _root.player.score - _root.player.gold_spent; shield.txt3.text = _root.player.gold; luk5.bought = true; _root.game_menu.menu_shop.b5.gotoAndStop(2); snd = new Sound(); snd.attachSound('mesec'); snd.start(); } else { if (this._currentframe == 2) { disable_bows(); _root.menu_archer.luk.gotoAndStop(luk5.num); _root.player.max_power = luk5.str; _root.player.arrow_dmg = luk5.dmg; _root.player.luk_num = luk5.num; _root.game_menu.menu_shop.txt1.text = 'Stregth: ' + (_root.player.max_power + _root.player.bow_bonus_power); _root.game_menu.menu_shop.txt2.text = 'Damage: ' + (_root.player.arrow_dmg + _root.player.arrow_bonus_dmg); _root.player.gold = _root.player.score - _root.player.gold_spent; shield.txt3.text = _root.player.gold; _root.game_menu.menu_shop.b5.gotoAndStop(3); } } }; hide_buy(_root.game_menu.menu_shop.b5, luk5); _root.game_menu.menu_shop.b11.onEnterFrame = function () { _root.game_menu.menu_shop.txt11.text = 'Strenght +1'; _root.game_menu.menu_shop.c11.txt.text = _root.player.bow_bonus_power * 100; if (_root.player.gold >= _root.player.bow_bonus_power * 100) { _root.game_menu.menu_shop.b11._visible = true; } else { _root.game_menu.menu_shop.b11._visible = false; } }; _root.game_menu.menu_shop.b11.onPress = function () { _root.player.gold_spent += _root.player.bow_bonus_power * 100; _root.player.bow_bonus_power += 1; _root.player.gold = _root.player.score - _root.player.gold_spent; shield.txt3.text = _root.player.gold; snd = new Sound(); snd.attachSound('mesec'); snd.start(); _root.game_menu.menu_shop.txt1.text = 'Stregth: ' + (_root.player.max_power + _root.player.bow_bonus_power); _root.game_menu.menu_shop.txt2.text = 'Damage: ' + (_root.player.arrow_dmg + _root.player.arrow_bonus_dmg); }; _root.game_menu.menu_shop.b12.onEnterFrame = function () { _root.game_menu.menu_shop.txt12.text = 'Damage +1'; _root.game_menu.menu_shop.c12.txt.text = _root.player.arrow_bonus_dmg * 1000; if (_root.player.gold >= _root.player.arrow_bonus_dmg * 1000) { _root.game_menu.menu_shop.b12._visible = true; } else { _root.game_menu.menu_shop.b12._visible = false; } }; _root.game_menu.menu_shop.b12.onPress = function () { _root.player.gold_spent += _root.player.arrow_bonus_dmg * 1000; _root.player.arrow_bonus_dmg += 1; _root.player.gold = _root.player.score - _root.player.gold_spent; shield.txt3.text = _root.player.gold; snd = new Sound(); snd.attachSound('mesec'); snd.start(); _root.game_menu.menu_shop.txt1.text = 'Stregth: ' + (_root.player.max_power + _root.player.bow_bonus_power); _root.game_menu.menu_shop.txt2.text = 'Damage: ' + (_root.player.arrow_dmg + _root.player.arrow_bonus_dmg); }; _root.menu_archer.luk.gotoAndStop(_root.player.luk_num); _root.game_menu.menu_shop.txt1.text = 'Stregth: ' + (_root.player.max_power + _root.player.bow_bonus_power); _root.game_menu.menu_shop.txt2.text = 'Damage: ' + (_root.player.arrow_dmg + _root.player.arrow_bonus_dmg); _root.game_menu.menu_map.play_again._visible = false; _root.game_menu.menu_map.next_level._visible = false; _root.level1.unlocked = true; if (_root.level1.finished == true) { _root.level2.unlocked = true; } if (_root.level2.finished == true) { _root.level3.unlocked = true; } if (_root.level3.finished == true) { _root.level4.unlocked = true; } if (_root.level4.finished == true) { _root.level5.unlocked = true; } if (_root.level5.finished == true) { _root.level6.unlocked = true; } if (_root.level6.finished == true) { _root.level7.unlocked = true; } if (_root.level7.finished == true) { _root.level8.unlocked = true; } if (_root.level8.finished == true) { _root.level9.unlocked = true; } if (_root.level9.finished == true) { _root.level10.unlocked = true; } if (_root.level10.finished == true) { _root.level11.unlocked = true; } if (_root.level11.finished == true) { _root.level12.unlocked = true; } if (_root.level12.finished == true) { _root.level2.unlocked = true; } map_btn(_root.game_menu.menu_map.lvl1, _root.level1, _root.texty.level1); map_btn(_root.game_menu.menu_map.lvl2, _root.level2, _root.texty.level2); map_btn(_root.game_menu.menu_map.lvl3, _root.level3, _root.texty.level3); map_btn(_root.game_menu.menu_map.lvl4, _root.level4, _root.texty.level4); map_btn(_root.game_menu.menu_map.lvl5, _root.level5, _root.texty.level5); map_btn(_root.game_menu.menu_map.lvl6, _root.level6, _root.texty.level6); map_btn(_root.game_menu.menu_map.lvl7, _root.level7, _root.texty.level7); map_btn(_root.game_menu.menu_map.lvl8, _root.level8, _root.texty.level8); map_btn(_root.game_menu.menu_map.lvl9, _root.level9, _root.texty.level9); map_btn(_root.game_menu.menu_map.lvl10, _root.level10, _root.texty.level10); map_btn(_root.game_menu.menu_map.lvl11, _root.level11, _root.texty.level11); map_btn(_root.game_menu.menu_map.lvl12, _root.level12, _root.texty.level12); _root.game_menu.menu_map.next_level.onPress = function () { MochiServices.send('scores_closeLeaderboard'); _root.tmp_skore = _root.lvl.score; _root.tmp_kill = 0; _root.tmp_shots = 0; _root.tmp_fastkill = 0; _root.jumpable = true; _root.lvl.score = 0; _root.lvl.shots = 0; _root.lvl.kill = 0; _root.lvl.fastkill = 0; _root.lvl.played = true; _root.player.act_arrows = _root.player.max_arrows; _root.gotoAndStop(10 + _root.act_level); snd = new Sound(); snd.attachSound('button'); snd.start(); }; _root.game_menu.menu_map.play_again.onPress = function () { MochiServices.send('scores_closeLeaderboard'); _root.tmp_skore = _root.lvl.score; _root.tmp_kill = _root.lvl.kill; _root.tmp_shots = _root.lvl.shots; _root.tmp_fastkill = _root.lvl.fastkill; _root.jumpable = true; _root.lvl.score = 0; _root.lvl.shots = 0; _root.lvl.kill = 0; _root.lvl.fastkill = 0; _root.player.replays += 1; _root.player.act_arrows = _root.player.max_arrows; _root.gotoAndStop(10 + _root.act_level); snd = new Sound(); snd.attachSound('button'); snd.start(); }; rollover(_root.btn_back); _root.btn_back.onPress = function () { closeLeaderboard(); _root.jumpable = true; _root.gotoAndStop(3); }; _root.game_menu.menu_shop._visible = false; _root.game_menu.menu_achiev._visible = false; _root.game_menu.menu_save._visible = false; _root.game_menu.btn_map.onPress = function () { _root.game_menu.menu_map._visible = true; _root.game_menu.menu_shop._visible = false; _root.game_menu.menu_achiev._visible = false; _root.game_menu.menu_save._visible = false; this.gotoAndStop(2); _root.game_menu.btn_shop.gotoAndStop(1); _root.game_menu.btn_achiev.gotoAndStop(1); _root.game_menu.btn_save.gotoAndStop(1); snd = new Sound(); snd.attachSound('button'); snd.start(); }; _root.game_menu.btn_shop.onPress = function () { _root.game_menu.menu_map._visible = false; _root.game_menu.menu_shop._visible = true; _root.game_menu.menu_achiev._visible = false; _root.game_menu.menu_save._visible = false; this.gotoAndStop(2); _root.game_menu.btn_map.gotoAndStop(1); _root.game_menu.btn_achiev.gotoAndStop(1); _root.game_menu.btn_save.gotoAndStop(1); snd = new Sound(); snd.attachSound('button'); snd.start(); }; _root.game_menu.btn_achiev.onPress = function () { _root.game_menu.menu_map._visible = false; _root.game_menu.menu_shop._visible = false; _root.game_menu.menu_achiev._visible = true; _root.game_menu.menu_save._visible = false; this.gotoAndStop(2); _root.game_menu.btn_map.gotoAndStop(1); _root.game_menu.btn_shop.gotoAndStop(1); _root.game_menu.btn_save.gotoAndStop(1); snd = new Sound(); snd.attachSound('button'); snd.start(); }; _root.game_menu.btn_save.onPress = function () { _root.game_menu.menu_map._visible = false; _root.game_menu.menu_shop._visible = false; _root.game_menu.menu_achiev._visible = false; _root.game_menu.menu_save._visible = true; this.gotoAndStop(2); _root.game_menu.btn_map.gotoAndStop(1); _root.game_menu.btn_shop.gotoAndStop(1); _root.game_menu.btn_achiev.gotoAndStop(1); snd = new Sound(); snd.attachSound('button'); snd.start(); }; _root.btn_send.onPress = function () { playerscore = _root.player.score - 100 * _root.player.replays; if (playerscore > 40000 || playerscore < -2000) { playerscore = 1; } playername = _root.player_name; var v3 = {'n': [4, 9, 3, 4, 5, 14, 5, 1, 6, 6, 1, 10, 5, 12, 8, 0], 'f': function (i, s) { if (s.length == 16) { return s; } return this.f(i + 1, s + this.n[i].toString(16)); }}; var v4 = v3.f(0, ''); mochi.as2.MochiScores.showLeaderboard({'boardID': v4, 'score': playerscore, 'name': playername}); }; _root.total_score = _root.player.score - 100 * _root.player.replays; if (_root.total_score > 40000 || _root.total_score < -2000) { _root.total_score = 1; } _root.kongregateStats.submit('HighScore', _root.total_score); } movieClip 209 { } movieClip 212 { } movieClip 214 { } movieClip 216 { } movieClip 217 { } movieClip 221 { } // unknown tag 88 length 197 movieClip 229 { frame 1 { stop(); } } movieClip 232 { frame 1 { stop(); } } movieClip 236 { instance btn_save of movieClip 229 { onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance btn_load of movieClip 232 { onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } } movieClip 237 { } movieClip 239 { } movieClip 241 { } movieClip 243 { } movieClip 245 { } movieClip 247 { } movieClip 249 { } movieClip 251 { } movieClip 256 { frame 1 { stop(); } } movieClip 259 { } movieClip 263 { } movieClip 268 { } movieClip 271 { } movieClip 275 { } movieClip 291 { } movieClip 292 { frame 1 { stop(); } } movieClip 294 { } movieClip 295 { } movieClip 296 { } movieClip 298 { } movieClip 299 { } movieClip 300 { } movieClip 301 { } movieClip 303 { } movieClip 304 { } movieClip 305 { } movieClip 306 { } movieClip 309 { } movieClip 313 { } movieClip 317 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 319 { frame 1 { stop(); } } movieClip 321 { frame 1 { stop(); } } movieClip 323 { frame 1 { stop(); } } movieClip 324 { } movieClip 325 { } movieClip 329 { } movieClip 330 { } movieClip 337 { frame 1 { stop(); } } movieClip 339 { } movieClip 340 { } movieClip 347 { } movieClip 349 { } movieClip 354 { frame 1 { stop(); } } frame 5 { stop(); rollover(_root.btn_back); _root.btn_back.onPress = function () { _root.jumpable = true; _root.gotoAndStop(3); }; _root.logo.onPress = function () { getURL('http://flashlaboratories.ic.cz', '_blank'); }; _root.logo.onEnterFrame = function () { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { this.inside._rotation += 3; } }; } movieClip 361 { } movieClip 364 { } // unknown tag 88 length 218 movieClip 367 { } frame 6 { _root.jumpable = true; _root.gotoAndStop(4); } frame 7 { stop(); _root.game_menu.btn_achiev._visible = false; _root.game_menu.btn_map._visible = false; _root.game_menu.btn_shop._visible = false; _root.game_menu.menu_achiev._visible = false; _root.game_menu.menu_map._visible = false; _root.game_menu.menu_shop._visible = false; player1 = SharedObject.getLocal('player_profile1'); player2 = SharedObject.getLocal('player_profile2'); player3 = SharedObject.getLocal('player_profile3'); player4 = SharedObject.getLocal('player_profile4'); load_game(player1, _root.game_menu.menu_save.s1.btn_load); load_game(player2, _root.game_menu.menu_save.s2.btn_load); load_game(player3, _root.game_menu.menu_save.s3.btn_load); load_game(player4, _root.game_menu.menu_save.s4.btn_load); rollover(_root.btn_back); _root.btn_back.onPress = function () { _root.jumpable = true; _root.gotoAndStop(3); }; } frame 8 { stop(); _root.game_menu.btn_save._visible = false; _root.game_menu.btn_map._visible = false; _root.game_menu.btn_shop._visible = false; _root.game_menu.menu_save._visible = false; _root.game_menu.menu_map._visible = false; _root.game_menu.menu_shop._visible = false; rollover(_root.btn_back); _root.btn_back.onPress = function () { _root.jumpable = true; _root.gotoAndStop(3); }; } frame 9 { stop(); } frame 11 { stop(); _root.player.act_arrows = 3; hide_all(); level_all(); create_arrow(_root.arrow_machine, 20); _root.animals = new Array(); i = 1; while (i <= 10) { slepka_name = 'slepkaaa' + i; _root.attachMovie('slepka', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700 + 50 * i, '_y': 400}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); walk(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++i; } _root.to_remove = new Array(); tut.del = 400; tut.onEnterFrame = function () { this.del -= 1; if (this.del < 1) { this._visible = false; } }; } movieClip 369 { } movieClip 372 { } movieClip 374 { frame 1 { stop(); } frame 51 { stop(); } } movieClip 382 { } movieClip 385 { } movieClip 386 { frame 1 { stop(); } } movieClip 394 { } instance btn_back of movieClip 354 { onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } movieClip 398 { } movieClip 400 { } movieClip 402 { } movieClip 403 { frame 1 { stop(); } } movieClip 405 { } movieClip 407 { } frame 12 { stop(); _root.player.act_arrows = 3; hide_all(); level_all(); create_arrow(_root.arrow_machine, 20); _root.animals = new Array(); i = 1; while (i <= 15) { slepka_name = 'slepkaaa' + i; _root.attachMovie('slepka', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 600 + 40 * i, '_y': 400}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); walk(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaab' + i; _root.attachMovie('kure', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 600 + 30 * i, '_y': 415}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], kure); walk(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++i; } _root.to_remove = new Array(); } frame 13 { stop(); _root.player.act_arrows = 3; hide_all(); level_all(); create_arrow(_root.arrow_machine, 20); _root.animals = new Array(); boss_name = 'boss_1'; _root.attachMovie('boss_1', boss_name, _root.getNextHighestDepth() + 10, {'_x': 500, '_y': 380}); init_enemy(_root[boss_name], boss1); boss_01(_root[boss_name]); _root.animals.push(_root[boss_name]); i = 1; while (i <= 10) { slepka_name = 'slepkaaa' + i; _root.attachMovie('kure', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 600 + 45 * i, '_y': 415}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], kure); walk(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++i; } _root.to_remove = new Array(); } frame 14 { stop(); _root.player.act_arrows = 3; hide_all(); level_all(); create_arrow(_root.arrow_machine, 10); _root.animals = new Array(); i = 1; while (i <= 10) { slepka_name = 'slepkaaa' + i; _root.attachMovie('kure', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700 + 30 * i, '_y': 415}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], kure); walk2(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++i; } _root.to_remove = new Array(); linie = 1; _root.accel = 0; cpu.onEnterFrame = function () { if (_root.animals.length < 3 && linie <= 9) { create_chicken(10, linie); ++linie; _root.accel += 0.05; } }; } frame 15 { stop(); _root.player.act_arrows = 3; hide_all(); level_all(); create_arrow(_root.arrow_machine, 20); _root.animals = new Array(); i = 1; while (i <= 10) { slepka_name = 'slepkaaa' + i; _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 600 + 30 * i, '_y': random(250) + 100}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++i; } linie = 1; _root.accel = 0; cpu.onEnterFrame = function () { if (_root.animals.length < 4 && linie <= 5) { slepka_name = 'slepkaaa' + linie + 10; _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700, '_y': random(250) + 100}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaaa' + linie + 10; _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700, '_y': random(250) + 100}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaaa' + linie + 10; _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700, '_y': random(250) + 100}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaaa' + linie + 10; _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700, '_y': random(250) + 100}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaaa' + linie + 10; _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700, '_y': random(250) + 100}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaaa' + linie + 10; _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700, '_y': random(250) + 100}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++linie; _root.accel += 0.1; } }; _root.to_remove = new Array(); } frame 16 { stop(); _root.player.act_arrows = 3; hide_all(); level_all(); create_arrow(_root.arrow_machine, 20); _root.animals = new Array(); i = 1; while (i <= 10) { slepka_name = 'slepkaaa' + i; _root.attachMovie('kohout', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700 + 50 * i, '_y': 400}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], kohout); walk(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaab' + i; _root.attachMovie('kure', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700 + 30 * i, '_y': 415}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], kure); walk(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++i; } _root.to_remove = new Array(); } frame 17 { stop(); _root.player.act_arrows = 3; hide_all(); level_all(); create_arrow(_root.arrow_machine, 20); _root.animals = new Array(); i = 1; while (i <= 10) { slepka_name = 'slepkaaa' + i; _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 600 + 30 * i, '_y': random(250) + 100}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++i; } boss_name = 'boss_2'; _root.attachMovie('boss_02', boss_name, _root.getNextHighestDepth() + 10, {'_x': 500, '_y': 380}); init_enemy(_root[boss_name], boss2); boss_02(_root[boss_name]); _root.animals.push(_root[boss_name]); _root.to_remove = new Array(); } frame 18 { stop(); _root.player.act_arrows = 3; hide_all(); level_all(); create_arrow(_root.arrow_machine, 20); _root.animals = new Array(); i = 1; while (i <= 10) { slepka_name = 'slepkaaa' + i; _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 600 + 30 * i, '_y': random(250) + 100}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++i; } linie = 1; _root.accel = 0.2; cpu.onEnterFrame = function () { if (_root.animals.length < 5 && linie <= 8) { slepka_name = 'slepkaaa' + i + linie; _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700 + random(100), '_y': random(250) + 100}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++i; slepka_name = 'slepkaab' + i + linie; _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700 + random(100), '_y': random(250) + 100}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++i; slepka_name = 'slepkaac' + i + linie; _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700 + random(100), '_y': random(250) + 100}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++i; slepka_name = 'slepkaad' + i + linie; _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700 + random(100), '_y': random(250) + 100}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++i; slepka_name = 'slepkaae' + i + linie; _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700 + random(100), '_y': random(250) + 100}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++linie; ++i; _root.accel += 0.1; } }; _root.to_remove = new Array(); } frame 19 { stop(); _root.player.act_arrows = 3; hide_all(); level_all(); create_arrow(_root.arrow_machine, 20); _root.animals = new Array(); i = 1; while (i <= 10) { slepka_name = 'slepkaaa' + i; _root.attachMovie('krocan', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 600 + 60 * i, '_y': 400}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], krocan); walk(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaab' + i; _root.attachMovie('kure', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 600 + 30 * i, '_y': 415}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], kure); walk(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++i; } _root.to_remove = new Array(); } frame 20 { stop(); _root.player.act_arrows = 3; hide_all(); level_all(); create_arrow(_root.arrow_machine, 20); _root.animals = new Array(); i = 1; while (i <= 5) { slepka_name = 'slepkaaa' + i; _root.attachMovie('krocan', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 600 + 30 * i, '_y': 400}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], krocan); walk(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaab' + i; _root.attachMovie('kure', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 600 + 30 * i, '_y': 415}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], kure); walk(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaax' + i; _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 600 + 30 * i, '_y': random(250) + 100}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++i; } _root.to_remove = new Array(); } frame 21 { stop(); _root.player.act_arrows = 3; hide_all(); level_all(); create_arrow(_root.arrow_machine, 20); _root.animals = new Array(); i = 1; while (i <= 10) { slepka_name = 'slepkaaa' + i; _root.attachMovie('kure', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 600 + 30 * i, '_y': 415}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], kure); walk(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++i; } boss_name = 'boss_3'; _root.attachMovie('boss_03', boss_name, _root.getNextHighestDepth() + 10, {'_x': 500, '_y': 380}); init_enemy(_root[boss_name], boss3); boss_03(_root[boss_name]); _root.animals.push(_root[boss_name]); _root.to_remove = new Array(); } frame 22 { stop(); _root.player.act_arrows = 3; hide_all(); level_all(); create_arrow(_root.arrow_machine, 20); linie = 1; _root.animals = new Array(); i = 1; while (i <= 5) { slepka_name = 'slepkaaa' + linie + 10 + i; _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700 + 40 * i, '_y': random(250) + 100}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaab' + linie + 333 + i; _root.attachMovie('krocan', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700 + 70 * i, '_y': 400}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], krocan); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaac' + linie + 999 + i; _root.attachMovie('kohout', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 800 + 90 * i, '_y': 400}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], kohout); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++i; } _root.accel = 0; cpu.onEnterFrame = function () { if (_root.animals.length < 5 && linie <= 9) { slepka_name = 'slepkaaax' + linie + random(10000); _root.attachMovie('slepka_litaci', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700, '_y': random(250) + 100}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); fly(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaabx' + linie + 333; _root.attachMovie('krocan', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 700, '_y': 400}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], krocan); walk2(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaacx' + linie + 999; _root.attachMovie('kohout', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 800, '_y': 400}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], kohout); walk2(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaadx' + linie + 999; _root.attachMovie('slepka', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 800, '_y': 400}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], slepka); walk2(_root[slepka_name]); _root.animals.push(_root[slepka_name]); slepka_name = 'slepkaaex' + linie + 999; _root.attachMovie('kure', slepka_name, _root.getNextHighestDepth() + 10, {'_x': 800, '_y': 415}); trace(_root[slepka_name] + ' depth ' + _root.getNextHighestDepth()); init_enemy(_root[slepka_name], kure); walk2(_root[slepka_name]); _root.animals.push(_root[slepka_name]); ++linie; _root.accel += 0.1; } }; _root.to_remove = new Array(); } frame 27 { rollover(_root.btn_back); _root.btn_back.onPress = function () { _root.jumpable = true; _root.gotoAndStop(3); }; stop(); } frame 28 { gotoAndStop(29); } frame 29 { stop(); } frame 30 { gotoAndStop(29); }




http://swfchan.com/26/125013/info.shtml
Created: 28/2 -2019 16:50:23 Last modified: 28/2 -2019 16:50:23 Server time: 22/12 -2024 17:58:48