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

Gates of Logic - cool mix of platform and puzzle game.swf

This is the info page for
Flash #90824

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { if (getBytesLoaded() >= Math.floor(1.0 * getBytesTotal())) { gotoAndPlay(5); } } movieClip 17 { } movieClip 19 { } movieClip 21 { } movieClip 32 { } movieClip 40 { } movieClip 44 { } movieClip 64 { } movieClip 69 { } movieClip 71 { } movieClip 72 { } frame 1 { var licz = Math.round(100 * getBytesLoaded() / getBytesTotal()); var perc = licz + ' %'; blueBar.gotoAndStop(1 + licz); MovieClip.prototype.tabEnabled = false; Button.prototype.tabEnabled = false; _quality = 'MEDIUM'; Stage.showMenu = false; if (trackerGo != 233) { trackerGo = 233; if (_url.substring(0, 4) != 'file') { x = new LoadVars(); x.id = 'gatesoflogic'; x.ui = _url; x.sendAndLoad('http://track.g-bot.net/track.php', x, 'POST'); } } } frame 4 { gotoAndPlay(1); } movieClip 89 { frame 1 { if (0.5 < Math.random()) { gotoAndStop(2); } else { gotoAndStop(3); } } } movieClip 90 { } movieClip 91 { } movieClip 92 { frame 1 { function $av(mc) { mc._visible = 1 < mc._alpha; } function $ord(o) { if (o != $pr_ord or 13 < o) { $pr_ord = o; $ta = new Array(); var $i = 0; while ($i < $sub_cnt) { mc = $smc[$i]; $ta[$i] = {'$i': $i}; $ta[$i].s = 20000000 + (o >= 2 ? (o >= 4 ? (o >= 6 ? (o >= 8 ? (o >= 10 ? mc.__x - mc.__y : mc.__x + mc.__y) : mc.__y) : mc.__x) : mc.__x * mc.__x + mc.__y * mc.__y) : mc._i); $ta[$i].s = o >= 12 ? (o >= 14 ? Math.random() : (7.853400230407715 + Math.atan2(mc.__y, mc.__x)) % 6.283199787139893) : $ta[$i].s; ++$i; } $ta.sortOn('s'); if (o % 2) { $ta.reverse(); } var $i = 0; while ($i < $sub_cnt) { $ta[$i] = $smc[$ta[$i].$i]; ++$i; } $smc = $ta; } } initial_wait = 0; $padding = 0; link_name = ''; emission_order = 0; max_particles = 25; first_emission = 0; min_between = 0; stop_emission = 0.2000000029802322; between_change = -0.002499999944120646; min_xvel = -2.0; max_xvel = 2.0; min_yvel = -6.0; max_yvel = -1.0; zero_gravity = 0; nlf = 1; min_scale = 75; max_scale = 150; min_lifetime = 0.75; max_lifetime = 1.5; one_origin = 0; particle_rotation = 0; hide_original = 1; mp_scale = 64; main_init = function (mc) { ep = 0; sub_order = emission_order; loop_delay = -1; sqrt = Math.sqrt; o = {'_visible': false}; atan2 = Math.atan2; rnd = Math.random; floor = Math.floor; le = getTimer() / 1000 + first_emission - min_between; se = 0 >= stop_emission ? Infinity : getTimer() / 1000 + stop_emission; if (zero_gravity) { emit_particle = function (i) { ep = (sub_order != 14) ? (ep + 1) % $sub_cnt : floor(rnd() * $sub_cnt); var p = $smc[ep]; o.i = i; o.sx = !one_origin ? p._x : 0; o._x = o.sx; o.sy = !one_origin ? p._y : 0; o._y = o.sy; o.lt = min_lifetime + rnd() * (max_lifetime - min_lifetime); o.dx = o.sx + o.lt * (min_xvel + rnd() * (max_xvel - min_xvel)) * mp_scale; o.dy = o.sy + o.lt * (min_yvel + rnd() * (max_yvel - min_yvel)) * mp_scale; o._yscale = min_scale + rnd() * (max_scale - min_scale); o._xscale = o._yscale; if (particle_rotation) { o._rotation = 90 + atan2(o.dy - o.sy, o.dx - o.sx) * 57.29600143432617; } if (getTimer() / 1000 - le < min_between) { o.t = le + min_between; } else { o.t = getTimer() / 1000; } le = o.t; min_between += between_change; if (min_between < 0) { min_between = 0; between_change = 0; } if (le < se) { if (0 < link_name.length) { mc.attachMovie(link_name, 'p' + i, -i, o); } else { p.duplicateMovieClip('p' + i, -i, o); } } else { $mmc['p' + i].swapDepths($sub_cnt * 10); $mmc['p' + i].removeMovieClip(); } }; o.onEnterFrame = function () { var tm = getTimer() / 1000 - this.t; if (this.lt < tm) { emit_particle(this.i); } else { if (tm >= 0) { var p = tm / this.lt; var rp = 1 - p; this._x = this.sx * rp + this.dx * p; this._y = this.sy * rp + this.dy * p; this._alpha = !nlf ? rp * 100 : sqrt(rp) * 100; this._visible = true; } } }; } else { emit_particle = function (i) { ep = (sub_order != 14) ? (ep + 1) % $sub_cnt : floor(rnd() * $sub_cnt); var p = $smc[ep]; o.i = i; o.sx = !one_origin ? p._x : 0; o._x = o.sx; o.px = o.sx; o.sy = !one_origin ? p._y : 0; o._y = o.sy; o.py = o.sy; o.xv = min_xvel + rnd() * (max_xvel - min_xvel); o.yv = min_yvel + rnd() * (max_yvel - min_yvel); o._yscale = min_scale + rnd() * (max_scale - min_scale); o._xscale = o._yscale; o.lt = min_lifetime + rnd() * (max_lifetime - min_lifetime); if (getTimer() / 1000 - le < min_between) { o.t = le + min_between; } else { o.t = getTimer() / 1000; } le = o.t; min_between += between_change; if (min_between < 0) { min_between = 0; between_change = 0; } if (le < se) { if (0 < link_name.length) { mc.attachMovie(link_name, 'p' + i, -i, o); } else { p.duplicateMovieClip('p' + i, -i, o); } } else { $mmc['p' + i].swapDepths($sub_cnt * 10); $mmc['p' + i].removeMovieClip(); } }; if (particle_rotation) { o.onEnterFrame = function () { var tm = getTimer() / 1000 - this.t; if (this.lt < tm) { emit_particle(this.i); } else { if (tm >= 0) { var px = this._x; var py = this._y; this._x = this.sx + this.xv * tm * mp_scale; this._y = this.sy + this.yv * tm * mp_scale + 4.900000095367432 * tm * tm * mp_scale; this._rotation = 90 + atan2(this._y - py, this._x - px) * 57.29600143432617; this._alpha = !nlf ? 100 - 100 * tm / this.lt : 100 * sqrt(1 - tm / this.lt); this._visible = true; } } }; } else { o.onEnterFrame = function () { var tm = getTimer() / 1000 - this.t; if (this.lt < tm) { emit_particle(this.i); } else { if (tm >= 0) { this._x = this.sx + this.xv * tm * mp_scale; this._y = this.sy + this.yv * tm * mp_scale + 4.900000095367432 * tm * tm * mp_scale; this._alpha = !nlf ? 100 - 100 * tm / this.lt : 100 * sqrt(1 - tm / this.lt); this._visible = true; } } }; } } }; main_effect = function (mc, frame) { i = 0; while (i < max_particles) { emit_particle(i); ++i; } end_effect = true; }; sub_init = function (mc) { if (hide_original) { mc._alpha = 0; } }; sub_effect = function (mc, frame) {}; for ($i in this) { if (typeof this[$i] == 'movieclip') { $mmc = this[$i]; } } $mmc.swapDepths(5); $smc = new Array(); for ($i in $mmc) { if (typeof $mmc[$i] == 'movieclip') { $smc.push($mmc[$i]); } } $smc.reverse(); $sub_cnt = $smc.length; glow_factor = glow_factor >= 0.1000000014901161 ? (0.8999999761581421 >= glow_factor ? glow_factor : 0.5) : 0.5; $i = 0; while (360 >= $i) { this['deg' + $i] = $i * Math.PI / 180; $i += 15; } $mmc.__x = $mmc._x; $mmc.__y = $mmc._y; main_init($mmc); $av($mmc); $buf = new Array(); $i = 0; while ($i < $sub_cnt) { mc = $smc[$i]; mc._i = $i; mc.$gd = 0; mc.done = 0; mc.__x = mc._x; mc.__y = mc._y; mc.swapDepths($i * 10 + 5); sub_init(mc); $av(mc); if (0 < glow_delay and 1 < mc._alpha) { mc.duplicateMovieClip('$gm' + $i, $i * 10); $mmc['$gm' + $i]._alpha *= glow_factor; } ++$i; } $ord(sub_order); frame = 0; $loop_tm = loop_delay; onEnterFrame = function () { if (end_effect) { if (loop_delay < 0) { onEnterFrame = null; onEnd(); } else { if (0 < $loop_tm) { --$loop_tm; } else { $mmc._x = $mmc.__x; $mmc._y = $mmc.__y; $mmc._alpha = 100; $mmc._yscale = 100; $mmc._xscale = 100; end_effect = 0; subs_done = 0; $mmc._rotation = 0; main_init($mmc); $av($mmc); $i = 0; while ($i < $sub_cnt) { mc = $smc[$i]; $j = mc._i; mc._x = mc.__x; mc._y = mc.__y; mc._alpha = 100; mc._yscale = 100; mc._xscale = 100; mc.$gd = 0; mc.done = 0; mc._rotation = 0; sub_init(mc); $av(mc); if (0 < glow_delay) { if (1 < mc._alpha) { mc.duplicateMovieClip('$gm' + $j, $j * 10); $mmc['$gm' + $j]._alpha *= glow_factor; } else { $mmc['$gm' + $j].removeMovieClip(); } } ++$i; } $ord(sub_order); frame = 0; $loop_tm = loop_delay; onLoop(); } } } else { ++frame; if (!subs_done) { $done_cnt = 0; $buf_idx = (frame % glow_delay) * $sub_cnt; $i = 0; while ($i < $sub_cnt) { mc = $smc[$i]; $j = mc._i; if (mc.done) { if (0 < glow_delay and mc.$gd < glow_delay) { ++mc.$gd; if (mc.$gd == glow_delay and mc._alpha >= 99) { $mmc['$gm' + $j].removeMovieClip(); } else { mc.duplicateMovieClip('$gm' + $j, $j * 10, $buf[$buf_idx]); $av($mmc['$gm' + $j]); } } else { ++$done_cnt; } } else { $sub_fr = frame - $i * sub_delay; if (0 < $sub_fr) { sub_effect(mc, $sub_fr); $av(mc); if (0 < glow_delay) { if (0 < $sub_fr - glow_delay) { mc.duplicateMovieClip('$gm' + $j, $j * 10, $buf[$buf_idx]); $av($mmc['$gm' + $j]); } $buf[$buf_idx] = {'_x': mc._x, '_y': mc._y, '_xscale': mc._xscale, '_yscale': mc._yscale, '_rotation': mc._rotation, '_alpha': mc._alpha * glow_factor}; } } } ++$buf_idx; ++$i; } if ($sub_cnt == $done_cnt) { subs_done = true; } } main_effect($mmc, frame); $av($mmc); } }; if (0 < initial_wait) { $e = onEnterFrame; onEnterFrame = function () { --initial_wait; if (initial_wait == 0) { onEnterFrame = $e; } }; } } } movieClip 96 { frame 1 { if (0.5 < Math.random()) { gotoAndStop(2); } else { gotoAndStop(3); } } } movieClip 97 { } movieClip 98 { } movieClip 99 { frame 1 { function $av(mc) { mc._visible = 1 < mc._alpha; } function $ord(o) { if (o != $pr_ord or 13 < o) { $pr_ord = o; $ta = new Array(); var $i = 0; while ($i < $sub_cnt) { mc = $smc[$i]; $ta[$i] = {'$i': $i}; $ta[$i].s = 20000000 + (o >= 2 ? (o >= 4 ? (o >= 6 ? (o >= 8 ? (o >= 10 ? mc.__x - mc.__y : mc.__x + mc.__y) : mc.__y) : mc.__x) : mc.__x * mc.__x + mc.__y * mc.__y) : mc._i); $ta[$i].s = o >= 12 ? (o >= 14 ? Math.random() : (7.853400230407715 + Math.atan2(mc.__y, mc.__x)) % 6.283199787139893) : $ta[$i].s; ++$i; } $ta.sortOn('s'); if (o % 2) { $ta.reverse(); } var $i = 0; while ($i < $sub_cnt) { $ta[$i] = $smc[$ta[$i].$i]; ++$i; } $smc = $ta; } } initial_wait = 0; $padding = 0; link_name = ''; emission_order = 0; max_particles = 25; first_emission = 0; min_between = 0; stop_emission = 0.2000000029802322; between_change = -0.002499999944120646; min_xvel = -2.0; max_xvel = 2.0; min_yvel = -6.0; max_yvel = -1.0; zero_gravity = 0; nlf = 1; min_scale = 75; max_scale = 150; min_lifetime = 0.75; max_lifetime = 1.5; one_origin = 0; particle_rotation = 0; hide_original = 1; mp_scale = 64; main_init = function (mc) { ep = 0; sub_order = emission_order; loop_delay = -1; sqrt = Math.sqrt; o = {'_visible': false}; atan2 = Math.atan2; rnd = Math.random; floor = Math.floor; le = getTimer() / 1000 + first_emission - min_between; se = 0 >= stop_emission ? Infinity : getTimer() / 1000 + stop_emission; if (zero_gravity) { emit_particle = function (i) { ep = (sub_order != 14) ? (ep + 1) % $sub_cnt : floor(rnd() * $sub_cnt); var p = $smc[ep]; o.i = i; o.sx = !one_origin ? p._x : 0; o._x = o.sx; o.sy = !one_origin ? p._y : 0; o._y = o.sy; o.lt = min_lifetime + rnd() * (max_lifetime - min_lifetime); o.dx = o.sx + o.lt * (min_xvel + rnd() * (max_xvel - min_xvel)) * mp_scale; o.dy = o.sy + o.lt * (min_yvel + rnd() * (max_yvel - min_yvel)) * mp_scale; o._yscale = min_scale + rnd() * (max_scale - min_scale); o._xscale = o._yscale; if (particle_rotation) { o._rotation = 90 + atan2(o.dy - o.sy, o.dx - o.sx) * 57.29600143432617; } if (getTimer() / 1000 - le < min_between) { o.t = le + min_between; } else { o.t = getTimer() / 1000; } le = o.t; min_between += between_change; if (min_between < 0) { min_between = 0; between_change = 0; } if (le < se) { if (0 < link_name.length) { mc.attachMovie(link_name, 'p' + i, -i, o); } else { p.duplicateMovieClip('p' + i, -i, o); } } else { $mmc['p' + i].swapDepths($sub_cnt * 10); $mmc['p' + i].removeMovieClip(); } }; o.onEnterFrame = function () { var tm = getTimer() / 1000 - this.t; if (this.lt < tm) { emit_particle(this.i); } else { if (tm >= 0) { var p = tm / this.lt; var rp = 1 - p; this._x = this.sx * rp + this.dx * p; this._y = this.sy * rp + this.dy * p; this._alpha = !nlf ? rp * 100 : sqrt(rp) * 100; this._visible = true; } } }; } else { emit_particle = function (i) { ep = (sub_order != 14) ? (ep + 1) % $sub_cnt : floor(rnd() * $sub_cnt); var p = $smc[ep]; o.i = i; o.sx = !one_origin ? p._x : 0; o._x = o.sx; o.px = o.sx; o.sy = !one_origin ? p._y : 0; o._y = o.sy; o.py = o.sy; o.xv = min_xvel + rnd() * (max_xvel - min_xvel); o.yv = min_yvel + rnd() * (max_yvel - min_yvel); o._yscale = min_scale + rnd() * (max_scale - min_scale); o._xscale = o._yscale; o.lt = min_lifetime + rnd() * (max_lifetime - min_lifetime); if (getTimer() / 1000 - le < min_between) { o.t = le + min_between; } else { o.t = getTimer() / 1000; } le = o.t; min_between += between_change; if (min_between < 0) { min_between = 0; between_change = 0; } if (le < se) { if (0 < link_name.length) { mc.attachMovie(link_name, 'p' + i, -i, o); } else { p.duplicateMovieClip('p' + i, -i, o); } } else { $mmc['p' + i].swapDepths($sub_cnt * 10); $mmc['p' + i].removeMovieClip(); } }; if (particle_rotation) { o.onEnterFrame = function () { var tm = getTimer() / 1000 - this.t; if (this.lt < tm) { emit_particle(this.i); } else { if (tm >= 0) { var px = this._x; var py = this._y; this._x = this.sx + this.xv * tm * mp_scale; this._y = this.sy + this.yv * tm * mp_scale + 4.900000095367432 * tm * tm * mp_scale; this._rotation = 90 + atan2(this._y - py, this._x - px) * 57.29600143432617; this._alpha = !nlf ? 100 - 100 * tm / this.lt : 100 * sqrt(1 - tm / this.lt); this._visible = true; } } }; } else { o.onEnterFrame = function () { var tm = getTimer() / 1000 - this.t; if (this.lt < tm) { emit_particle(this.i); } else { if (tm >= 0) { this._x = this.sx + this.xv * tm * mp_scale; this._y = this.sy + this.yv * tm * mp_scale + 4.900000095367432 * tm * tm * mp_scale; this._alpha = !nlf ? 100 - 100 * tm / this.lt : 100 * sqrt(1 - tm / this.lt); this._visible = true; } } }; } } }; main_effect = function (mc, frame) { i = 0; while (i < max_particles) { emit_particle(i); ++i; } end_effect = true; }; sub_init = function (mc) { if (hide_original) { mc._alpha = 0; } }; sub_effect = function (mc, frame) {}; for ($i in this) { if (typeof this[$i] == 'movieclip') { $mmc = this[$i]; } } $mmc.swapDepths(5); $smc = new Array(); for ($i in $mmc) { if (typeof $mmc[$i] == 'movieclip') { $smc.push($mmc[$i]); } } $smc.reverse(); $sub_cnt = $smc.length; glow_factor = glow_factor >= 0.1000000014901161 ? (0.8999999761581421 >= glow_factor ? glow_factor : 0.5) : 0.5; $i = 0; while (360 >= $i) { this['deg' + $i] = $i * Math.PI / 180; $i += 15; } $mmc.__x = $mmc._x; $mmc.__y = $mmc._y; main_init($mmc); $av($mmc); $buf = new Array(); $i = 0; while ($i < $sub_cnt) { mc = $smc[$i]; mc._i = $i; mc.$gd = 0; mc.done = 0; mc.__x = mc._x; mc.__y = mc._y; mc.swapDepths($i * 10 + 5); sub_init(mc); $av(mc); if (0 < glow_delay and 1 < mc._alpha) { mc.duplicateMovieClip('$gm' + $i, $i * 10); $mmc['$gm' + $i]._alpha *= glow_factor; } ++$i; } $ord(sub_order); frame = 0; $loop_tm = loop_delay; onEnterFrame = function () { if (end_effect) { if (loop_delay < 0) { onEnterFrame = null; onEnd(); } else { if (0 < $loop_tm) { --$loop_tm; } else { $mmc._x = $mmc.__x; $mmc._y = $mmc.__y; $mmc._alpha = 100; $mmc._yscale = 100; $mmc._xscale = 100; end_effect = 0; subs_done = 0; $mmc._rotation = 0; main_init($mmc); $av($mmc); $i = 0; while ($i < $sub_cnt) { mc = $smc[$i]; $j = mc._i; mc._x = mc.__x; mc._y = mc.__y; mc._alpha = 100; mc._yscale = 100; mc._xscale = 100; mc.$gd = 0; mc.done = 0; mc._rotation = 0; sub_init(mc); $av(mc); if (0 < glow_delay) { if (1 < mc._alpha) { mc.duplicateMovieClip('$gm' + $j, $j * 10); $mmc['$gm' + $j]._alpha *= glow_factor; } else { $mmc['$gm' + $j].removeMovieClip(); } } ++$i; } $ord(sub_order); frame = 0; $loop_tm = loop_delay; onLoop(); } } } else { ++frame; if (!subs_done) { $done_cnt = 0; $buf_idx = (frame % glow_delay) * $sub_cnt; $i = 0; while ($i < $sub_cnt) { mc = $smc[$i]; $j = mc._i; if (mc.done) { if (0 < glow_delay and mc.$gd < glow_delay) { ++mc.$gd; if (mc.$gd == glow_delay and mc._alpha >= 99) { $mmc['$gm' + $j].removeMovieClip(); } else { mc.duplicateMovieClip('$gm' + $j, $j * 10, $buf[$buf_idx]); $av($mmc['$gm' + $j]); } } else { ++$done_cnt; } } else { $sub_fr = frame - $i * sub_delay; if (0 < $sub_fr) { sub_effect(mc, $sub_fr); $av(mc); if (0 < glow_delay) { if (0 < $sub_fr - glow_delay) { mc.duplicateMovieClip('$gm' + $j, $j * 10, $buf[$buf_idx]); $av($mmc['$gm' + $j]); } $buf[$buf_idx] = {'_x': mc._x, '_y': mc._y, '_xscale': mc._xscale, '_yscale': mc._yscale, '_rotation': mc._rotation, '_alpha': mc._alpha * glow_factor}; } } } ++$buf_idx; ++$i; } if ($sub_cnt == $done_cnt) { subs_done = true; } } main_effect($mmc, frame); $av($mmc); } }; if (0 < initial_wait) { $e = onEnterFrame; onEnterFrame = function () { --initial_wait; if (initial_wait == 0) { onEnterFrame = $e; } }; } } } movieClip 101 { } movieClip 127 { } movieClip 129 { } movieClip 131 { } movieClip 133 { } movieClip 175 { } movieClip 180 { } movieClip 196 { } movieClip 211 { } movieClip 213 { } movieClip 215 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 216 { instance logic of movieClip 215 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 218 { } movieClip 260 { frame 4 { stop(); _parent.gotoAndStop('zero'); } } movieClip 302 { frame 4 { _parent.gotoAndStop('one'); stop(); } } movieClip 352 { frame 7 { stop(); } } movieClip 402 { frame 7 { stop(); } } movieClip 419 { } movieClip 429 { } movieClip 462 { instance logic of movieClip 218 { onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (_root.game[_parent.inA].chaos == false) { if (100 >= _parent.state and _parent.state >= 0) { _parent.shock._visible = false; _parent.shock2._visible = false; } else { _parent.shock2.gotoAndStop(Math.floor(Math.random() * 4)); _parent.shock.gotoAndStop(Math.floor(Math.random() * 4)); } } if (_parent.oneActive == true) { if (_root.game[_parent.inA].state == true and _parent.state < 100) { _parent.state += 10; } else { if (_root.game[_parent.inA].state == false and 0 < _parent.state) { _parent.state -= 20; } } if (_root.game[_parent.inA].chaos == true) { _parent.state = 0; _parent.shock._visible = true; _parent.shock2._visible = true; _parent.shock2.gotoAndStop(Math.floor(Math.random() * 4)); _parent.shock.gotoAndStop(Math.floor(Math.random() * 4)); } if (_parent.isOK == false and _parent.state >= 100) { _parent.state = 100; _parent.isOK = true; _parent.gotoAndStop('oneOn'); } else { if (_parent.isOK == true and 0 >= _parent.state) { _parent.state = 0; _parent.isOK = false; _parent.gotoAndStop('oneOff'); } } if (_parent.state < 0) { _parent.state = 0; } else { if (100 < _parent.state) { _parent.state = 100; } } if (_parent.isOK == false and _parent.state < 100 and 12 >= _parent._currentframe) { if (_parent.state >= 100) { _parent.gotoAndStop(10); } else { if (0 >= _parent.state) { _parent.gotoAndStop(1); } else { _parent.gotoAndStop(Math.floor(_parent.state / 10)); } } } if (_root.game[_parent.inA].chaos == true) { _parent.state = 0; } } else { if (_parent.oneActive == false) { if (_root.game[_parent.inA].state == true and _parent.state < 100) { _parent.state += 20; } else { if (_root.game[_parent.inA].state == false and 0 < _parent.state) { _parent.state -= 10; } } if (_root.game[_parent.inA].chaos == true) { _parent.state = 100; _parent.shock._visible = true; _parent.shock2._visible = true; _parent.shock2.gotoAndStop(Math.floor(Math.random() * 4)); _parent.shock.gotoAndStop(Math.floor(Math.random() * 4)); } if (_parent.isOK == false and 0 >= _parent.state) { _parent.state = 0; _parent.isOK = true; _parent.gotoAndStop('zeroOn'); } else { if (_parent.isOK == true and _parent.state >= 100) { _parent.state = 100; _parent.isOK = false; _parent.gotoAndStop('zeroOff'); } } if (_parent.state < 0) { _parent.state = 0; } else { if (100 < _parent.state) { _parent.state = 100; } } if (_parent.isOK == false and 0 < _parent.state and 12 >= _parent._currentframe) { if (100 < _parent.state) { _parent.gotoAndStop(10); } else { if (_parent.state < 0) { _parent.gotoAndStop(1); } else { _parent.gotoAndStop(Math.floor(_parent.state / 10)); } } } if (_root.game[_parent.inA].chaos == true) { _parent.state = 100; } } } if (_parent.isOK == true) { if (_root.game[_parent.controled].state == false and _root.game[_parent.controled].desiredState == true) { _root.game[_parent.controled].state = true; _root.game[_parent.controled].gotoAndPlay('turnOn'); _root.game.walls[_parent.controled]._xscale = 100; } else { if (_root.game[_parent.controled].state == true and _root.game[_parent.controled].desiredState == false) { _root.game[_parent.controled].state = false; _root.game[_parent.controled].gotoAndPlay('turnOff'); _root.game.walls[_parent.controled]._xscale = 0; } } } else { if (_parent.isOK == false) { if (_root.game[_parent.controled].state == true and _root.game[_parent.controled].desiredState == true) { _root.game[_parent.controled].state = false; _root.game[_parent.controled].gotoAndPlay('turnOff'); _root.game.walls[_parent.controled]._xscale = 0; } else { if (_root.game[_parent.controled].state == false and _root.game[_parent.controled].desiredState == false) { _root.game[_parent.controled].state = true; _root.game[_parent.controled].gotoAndPlay('turnOn'); _root.game.walls[_parent.controled]._xscale = 100; } } } } } } } frame 17 { stop(); } } movieClip 477 { } movieClip 492 { } movieClip 518 { } movieClip 602 { } movieClip 704 { } movieClip 750 { } movieClip 842 { } movieClip 862 { } movieClip 876 { } movieClip 886 { } movieClip 890 { } movieClip 964 { } movieClip 978 { } movieClip 1011 { } movieClip 1042 { } movieClip 1051 { } movieClip 1157 { } movieClip 1159 { frame 19 { stop(); } } movieClip 1176 { } movieClip 1182 { } movieClip 1185 { } movieClip 1222 { } movieClip 1224 { } movieClip 1226 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1227 { instance logic of movieClip 1226 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1229 { } movieClip 1231 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1232 { instance logic of movieClip 1231 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1234 { } movieClip 1236 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1237 { instance logic of movieClip 1236 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1239 { } movieClip 1241 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1242 { instance logic of movieClip 1241 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1245 { } movieClip 1247 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1248 { instance logic of movieClip 1247 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1250 { } movieClip 1252 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1253 { instance logic of movieClip 1252 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1256 { } movieClip 1258 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1259 { instance logic of movieClip 1258 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1261 { } movieClip 1263 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1264 { instance logic of movieClip 1263 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1266 { } movieClip 1268 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1269 { instance logic of movieClip 1268 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1271 { } movieClip 1273 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1274 { instance logic of movieClip 1273 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1276 { } movieClip 1278 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1279 { instance logic of movieClip 1278 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1282 { } movieClip 1284 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1285 { instance logic of movieClip 1284 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1287 { } movieClip 1289 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1290 { instance logic of movieClip 1289 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1294 { } movieClip 1296 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1297 { instance logic of movieClip 1296 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1300 { } movieClip 1302 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1303 { instance logic of movieClip 1302 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1306 { } movieClip 1308 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1309 { instance logic of movieClip 1308 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1312 { } movieClip 1314 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1315 { instance logic of movieClip 1314 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1317 { } movieClip 1319 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1320 { instance logic of movieClip 1319 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1322 { } movieClip 1324 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1325 { instance logic of movieClip 1324 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1331 { } movieClip 1333 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1334 { instance logic of movieClip 1333 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1338 { } movieClip 1340 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1341 { instance logic of movieClip 1340 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1367 { } movieClip 1383 { } movieClip 1387 { } movieClip 1389 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1390 { instance logic of movieClip 1389 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1392 { } movieClip 1394 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1395 { instance logic of movieClip 1394 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1399 { } movieClip 1401 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1402 { instance logic of movieClip 1401 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1404 { } movieClip 1406 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1407 { instance logic of movieClip 1406 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1410 { } movieClip 1412 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1413 { instance logic of movieClip 1412 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1418 { } movieClip 1420 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1421 { instance logic of movieClip 1420 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1423 { } movieClip 1425 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1426 { instance logic of movieClip 1425 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1429 { } movieClip 1431 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1432 { instance logic of movieClip 1431 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1436 { } movieClip 1438 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1439 { instance logic of movieClip 1438 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1441 { } movieClip 1443 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1444 { instance logic of movieClip 1443 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1446 { } movieClip 1448 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1449 { instance logic of movieClip 1448 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1451 { } movieClip 1453 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1454 { instance logic of movieClip 1453 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1457 { } movieClip 1459 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1460 { instance logic of movieClip 1459 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1463 { } movieClip 1465 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1466 { instance logic of movieClip 1465 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1470 { } movieClip 1472 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1473 { instance logic of movieClip 1472 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1479 { } movieClip 1481 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1482 { instance logic of movieClip 1481 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1498 { } movieClip 1500 { } movieClip 1501 { instance aaa of movieClip 1500 { onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '111'; _root.hud.info.gotoAndPlay('viewInfo'); } } } } } movieClip 1505 { } movieClip 1507 { } movieClip 1509 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1510 { instance logic of movieClip 1509 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1512 { } movieClip 1514 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1515 { instance logic of movieClip 1514 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1517 { } movieClip 1519 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1520 { instance logic of movieClip 1519 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1522 { } movieClip 1524 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1525 { instance logic of movieClip 1524 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1527 { } movieClip 1531 { } movieClip 1533 { } movieClip 1535 { } movieClip 1536 { } movieClip 1538 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1539 { instance logic of movieClip 1538 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1542 { } movieClip 1544 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1545 { instance logic of movieClip 1544 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1548 { } movieClip 1550 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1551 { instance logic of movieClip 1550 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1553 { } movieClip 1555 { } movieClip 1556 { } movieClip 1558 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1559 { instance logic of movieClip 1558 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1561 { } movieClip 1563 { } movieClip 1564 { } movieClip 1566 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1567 { instance logic of movieClip 1566 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1569 { } movieClip 1571 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1572 { instance logic of movieClip 1571 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1574 { } movieClip 1576 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1577 { instance logic of movieClip 1576 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1579 { } movieClip 1581 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1582 { instance logic of movieClip 1581 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1584 { } movieClip 1586 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1587 { instance logic of movieClip 1586 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1589 { } movieClip 1591 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1592 { instance logic of movieClip 1591 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1594 { } movieClip 1596 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1597 { instance logic of movieClip 1596 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1599 { } movieClip 1601 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1602 { instance logic of movieClip 1601 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1604 { } movieClip 1606 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1607 { instance logic of movieClip 1606 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1609 { } movieClip 1611 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1612 { instance logic of movieClip 1611 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1614 { } movieClip 1616 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1617 { instance logic of movieClip 1616 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1619 { } movieClip 1621 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1622 { instance logic of movieClip 1621 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1624 { } movieClip 1626 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1627 { instance logic of movieClip 1626 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1629 { } movieClip 1631 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1632 { instance logic of movieClip 1631 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1662 { } movieClip 1746 { frame 7 { gotoAndPlay(1); } frame 24 { gotoAndPlay(12); } frame 31 { stop(); } frame 35 { stop(); } frame 39 { stop(); } frame 63 { isReplacing = false; gotoAndPlay(1); } frame 77 { stop(); } } movieClip 1747 { } movieClip 1749 { instance mc11 of movieClip 1747 { onClipEvent (load) { mirrorTurnRight = true; } onClipEvent (enterFrame) { if (_root.reflections == false) { this._visible = false; } else { this._visible = true; if (Math.abs(_root.game.player._x - _parent._x) < 150 and Math.abs(_root.game.player._y - _parent._y) < 150) { _x = _root.game.player._x - _parent._x; _y = _root.game.player._y - _parent._y; xSkala = 150; _xscale = xSkala; ySkala = 150; _yscale = ySkala; this.player.gotoAndStop(_root.game.player._currentframe); if (_root.game.player.turnRight == true and mirrorTurnRight == false) { mirrorTurnRight = true; this.player._xscale *= -1; } if (_root.game.player.turnRight == false and mirrorTurnRight == true) { mirrorTurnRight = false; this.player._xscale *= -1; } } } } } } movieClip 1753 { } movieClip 1755 { } movieClip 1757 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1758 { instance logic of movieClip 1757 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1760 { } movieClip 1762 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1763 { instance logic of movieClip 1762 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1766 { } movieClip 1768 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1769 { instance logic of movieClip 1768 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1772 { } movieClip 1774 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 1775 { instance logic of movieClip 1774 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 1787 { } movieClip 1871 { frame 7 { gotoAndPlay(1); } frame 24 { gotoAndPlay(12); } frame 31 { stop(); } frame 35 { stop(); } frame 39 { stop(); } frame 63 { isReplacing = false; gotoAndPlay(1); } frame 77 { stop(); } } movieClip 1872 { } movieClip 1883 { } movieClip 1894 { } movieClip 1901 { } movieClip 1908 { } movieClip 1965 { } movieClip 1967 { } movieClip 1969 { } movieClip 1971 { } movieClip 1973 { } movieClip 1975 { } movieClip 1985 { } movieClip 1987 { } movieClip 1992 { } movieClip 2000 { frame 1 { content = 'broken'; stop(); } instance brokenLogic of movieClip 1987 { onClipEvent (enterFrame) { if (0.5 < Math.random()) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } _root.game[_parent.out].chaos = true; if (_parent.shock._visible == true) { _parent.shock2.gotoAndStop(Math.floor(Math.random() * 4)); _parent.shock.gotoAndStop(Math.floor(Math.random() * 4)); } if (this.hitTest(_root.game.player) and _root.game.player.alive == true) { if (_root.game.player.targeting != _parent._name) { _root.game.player.targeting = _parent._name; _root.game.crosshair._x = _parent._x; _root.game.crosshair._y = _parent._y; _root.game.crosshair.gotoAndPlay('show'); } } else { if (_root.game.player.targeting == _parent._name) { _root.game.player.targeting = 'none'; _root.game.crosshair.gotoAndStop('hide'); } } } } frame 2 { content = 'and'; } instance mc11 of movieClip 1872 { onClipEvent (load) { mirrorTurnRight = true; this._rotation = -_parent._rotation; } onClipEvent (enterFrame) { if (_root.reflections == false) { this._visible = false; } else { this._visible = true; if (Math.abs(_root.game.player._x - _parent._x) < 50 and Math.abs(_root.game.player._y - _parent._y) < 50) { _x = _root.game.player._x - _parent._x; _y = _root.game.player._y - _parent._y; xSkala = 200 - 0.6000000238418579 * (_x * _x); if (xSkala < 10) { xSkala = 10; } ySkala = 200 - 2 * Math.abs(_y); if (ySkala < 10) { ySkala = 10; } if (_parent._rotation == -90) { temp = _x; _x = -_y; _y = temp; } else { if (_parent._rotation == 90) { temp = _x; _x = _y; _y = -temp; } else { if (_parent._rotation == 180) { _x = -_x; _y = -_y; } } } _xscale = xSkala; _yscale = ySkala; this.player.gotoAndStop(_root.game.player._currentframe); if (_root.game.player.turnRight == true and mirrorTurnRight == false) { mirrorTurnRight = true; this.player._xscale *= -1; } if (_root.game.player.turnRight == false and mirrorTurnRight == true) { mirrorTurnRight = false; this.player._xscale *= -1; } } } } } instance andLogic of movieClip 1975 { onClipEvent (enterFrame) { if (_root.game[_parent.inA].chaos == true or _root.game[_parent.inB].chaos == true) { _root.game[_parent.out].chaos = true; if (0.5 < Math.random()) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } _parent.shock._visible = true; _parent.shock2._visible = true; } else { _root.game[_parent.out].chaos = false; _parent.shock._visible = false; _parent.shock2._visible = false; if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = true; } else { _root.game[_parent.out].state = false; } } if (_parent.shock._visible == true) { _parent.shock2.gotoAndStop(Math.floor(Math.random() * 4)); _parent.shock.gotoAndStop(Math.floor(Math.random() * 4)); } if (this.hitTest(_root.game.player) and _root.game.player.alive == true) { if (_root.game.player.targeting != _parent._name) { _root.game.player.targeting = _parent._name; _root.game.crosshair._x = _parent._x; _root.game.crosshair._y = _parent._y; _root.game.crosshair.gotoAndPlay('show'); } } else { if (_root.game.player.targeting == _parent._name) { _root.game.player.targeting = 'none'; _root.game.crosshair.gotoAndStop('hide'); } } } } frame 3 { content = 'or'; } instance mc22 of movieClip 1872 { onClipEvent (load) { mirrorTurnRight = true; this._rotation = -_parent._rotation; } onClipEvent (enterFrame) { if (_root.reflections == false) { this._visible = false; } else { this._visible = true; if (Math.abs(_root.game.player._x - _parent._x) < 100 and Math.abs(_root.game.player._y - _parent._y) < 100) { _x = _root.game.player._x - _parent._x; _y = _root.game.player._y - _parent._y; xSkala = 200 - 0.6000000238418579 * (_x * _x); if (xSkala < 10) { xSkala = 10; } _xscale = xSkala; ySkala = 200 - 2 * Math.abs(_y); if (ySkala < 10) { ySkala = 10; } _yscale = ySkala; if (_parent._rotation == -90) { temp = _x; _x = -_y; _y = temp; } else { if (_parent._rotation == 90) { temp = _x; _x = _y; _y = -temp; } else { if (_parent._rotation == 180) { _x = -_x; _y = -_y; } } } this.player.gotoAndStop(_root.game.player._currentframe); if (_root.game.player.turnRight == true and mirrorTurnRight == false) { mirrorTurnRight = true; this.player._xscale *= -1; } if (_root.game.player.turnRight == false and mirrorTurnRight == true) { mirrorTurnRight = false; this.player._xscale *= -1; } } } } } instance orLogic of movieClip 1973 { onClipEvent (enterFrame) { if (_root.game[_parent.inA].chaos == true or _root.game[_parent.inB].chaos == true) { _root.game[_parent.out].chaos = true; if (0.5 < Math.random()) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } _parent.shock._visible = true; _parent.shock2._visible = true; } else { _root.game[_parent.out].chaos = false; _parent.shock._visible = false; _parent.shock2._visible = false; if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = true; } if (_root.game[_parent.inA].state == false and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = true; } if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == false) { _root.game[_parent.out].state = true; } if (_root.game[_parent.inA].state == false and _root.game[_parent.inB].state == false) { _root.game[_parent.out].state = false; } } if (_parent.shock._visible == true) { _parent.shock2.gotoAndStop(Math.floor(Math.random() * 4)); _parent.shock.gotoAndStop(Math.floor(Math.random() * 4)); } if (this.hitTest(_root.game.player) and _root.game.player.alive == true) { if (_root.game.player.targeting != _parent._name) { _root.game.player.targeting = _parent._name; _root.game.crosshair._x = _parent._x; _root.game.crosshair._y = _parent._y; _root.game.crosshair.gotoAndPlay('show'); } } else { if (_root.game.player.targeting == _parent._name) { _root.game.player.targeting = 'none'; _root.game.crosshair.gotoAndStop('hide'); } } } } frame 4 { content = 'nand'; } instance mc24 of movieClip 1872 { onClipEvent (load) { mirrorTurnRight = true; this._rotation = -_parent._rotation; } onClipEvent (enterFrame) { if (_root.reflections == false) { this._visible = false; } else { this._visible = true; if (Math.abs(_root.game.player._x - _parent._x) < 100 and Math.abs(_root.game.player._y - _parent._y) < 100) { _x = _root.game.player._x - _parent._x; _y = _root.game.player._y - _parent._y; xSkala = 200 - 0.6000000238418579 * (_x * _x); if (xSkala < 10) { xSkala = 10; } _xscale = xSkala; ySkala = 200 - 2 * Math.abs(_y); if (ySkala < 10) { ySkala = 10; } _yscale = ySkala; if (_parent._rotation == -90) { temp = _x; _x = -_y; _y = temp; } else { if (_parent._rotation == 90) { temp = _x; _x = _y; _y = -temp; } else { if (_parent._rotation == 180) { _x = -_x; _y = -_y; } } } this.player.gotoAndStop(_root.game.player._currentframe); if (_root.game.player.turnRight == true and mirrorTurnRight == false) { mirrorTurnRight = true; this.player._xscale *= -1; } if (_root.game.player.turnRight == false and mirrorTurnRight == true) { mirrorTurnRight = false; this.player._xscale *= -1; } } } } } instance nandLogic of movieClip 1971 { onClipEvent (enterFrame) { if (_root.game[_parent.inA].chaos == true or _root.game[_parent.inB].chaos == true) { _root.game[_parent.out].chaos = true; if (0.5 < Math.random()) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } _parent.shock._visible = true; _parent.shock2._visible = true; } else { _root.game[_parent.out].chaos = false; _parent.shock._visible = false; _parent.shock2._visible = false; if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = false; } if (_root.game[_parent.inA].state == false and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = true; } if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == false) { _root.game[_parent.out].state = true; } if (_root.game[_parent.inA].state == false and _root.game[_parent.inB].state == false) { _root.game[_parent.out].state = true; } } if (_parent.shock._visible == true) { _parent.shock2.gotoAndStop(Math.floor(Math.random() * 4)); _parent.shock.gotoAndStop(Math.floor(Math.random() * 4)); } if (this.hitTest(_root.game.player) and _root.game.player.alive == true) { if (_root.game.player.targeting != _parent._name) { _root.game.player.targeting = _parent._name; _root.game.crosshair._x = _parent._x; _root.game.crosshair._y = _parent._y; _root.game.crosshair.gotoAndPlay('show'); } } else { if (_root.game.player.targeting == _parent._name) { _root.game.player.targeting = 'none'; _root.game.crosshair.gotoAndStop('hide'); } } } } frame 5 { content = 'nor'; } instance mc26 of movieClip 1872 { onClipEvent (load) { mirrorTurnRight = true; this._rotation = -_parent._rotation; } onClipEvent (enterFrame) { if (_root.reflections == false) { this._visible = false; } else { this._visible = true; if (Math.abs(_root.game.player._x - _parent._x) < 100 and Math.abs(_root.game.player._y - _parent._y) < 100) { _x = _root.game.player._x - _parent._x; _y = _root.game.player._y - _parent._y; xSkala = 200 - 0.6000000238418579 * (_x * _x); if (xSkala < 10) { xSkala = 10; } _xscale = xSkala; ySkala = 200 - 2 * Math.abs(_y); if (ySkala < 10) { ySkala = 10; } _yscale = ySkala; if (_parent._rotation == -90) { temp = _x; _x = -_y; _y = temp; } else { if (_parent._rotation == 90) { temp = _x; _x = _y; _y = -temp; } else { if (_parent._rotation == 180) { _x = -_x; _y = -_y; } } } this.player.gotoAndStop(_root.game.player._currentframe); if (_root.game.player.turnRight == true and mirrorTurnRight == false) { mirrorTurnRight = true; this.player._xscale *= -1; } if (_root.game.player.turnRight == false and mirrorTurnRight == true) { mirrorTurnRight = false; this.player._xscale *= -1; } } } } } instance norLogic of movieClip 1969 { onClipEvent (enterFrame) { if (_root.game[_parent.inA].chaos == true or _root.game[_parent.inB].chaos == true) { _root.game[_parent.out].chaos = true; if (0.5 < Math.random()) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } _parent.shock._visible = true; _parent.shock2._visible = true; } else { _root.game[_parent.out].chaos = false; _parent.shock._visible = false; _parent.shock2._visible = false; if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = false; } if (_root.game[_parent.inA].state == false and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = false; } if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == false) { _root.game[_parent.out].state = false; } if (_root.game[_parent.inA].state == false and _root.game[_parent.inB].state == false) { _root.game[_parent.out].state = true; } } if (_parent.shock._visible == true) { _parent.shock2.gotoAndStop(Math.floor(Math.random() * 4)); _parent.shock.gotoAndStop(Math.floor(Math.random() * 4)); } if (this.hitTest(_root.game.player) and _root.game.player.alive == true) { if (_root.game.player.targeting != _parent._name) { _root.game.player.targeting = _parent._name; _root.game.crosshair._x = _parent._x; _root.game.crosshair._y = _parent._y; _root.game.crosshair.gotoAndPlay('show'); } } else { if (_root.game.player.targeting == _parent._name) { _root.game.player.targeting = 'none'; _root.game.crosshair.gotoAndStop('hide'); } } } } frame 6 { content = 'xor'; } instance mc28 of movieClip 1872 { onClipEvent (load) { mirrorTurnRight = true; this._rotation = -_parent._rotation; } onClipEvent (enterFrame) { if (_root.reflections == false) { this._visible = false; } else { this._visible = true; if (Math.abs(_root.game.player._x - _parent._x) < 100 and Math.abs(_root.game.player._y - _parent._y) < 100) { _x = _root.game.player._x - _parent._x; _y = _root.game.player._y - _parent._y; xSkala = 200 - 0.6000000238418579 * (_x * _x); if (xSkala < 10) { xSkala = 10; } _xscale = xSkala; ySkala = 200 - 2 * Math.abs(_y); if (ySkala < 10) { ySkala = 10; } _yscale = ySkala; if (_parent._rotation == -90) { temp = _x; _x = -_y; _y = temp; } else { if (_parent._rotation == 90) { temp = _x; _x = _y; _y = -temp; } else { if (_parent._rotation == 180) { _x = -_x; _y = -_y; } } } this.player.gotoAndStop(_root.game.player._currentframe); if (_root.game.player.turnRight == true and mirrorTurnRight == false) { mirrorTurnRight = true; this.player._xscale *= -1; } if (_root.game.player.turnRight == false and mirrorTurnRight == true) { mirrorTurnRight = false; this.player._xscale *= -1; } } } } } instance xorLogic of movieClip 1967 { onClipEvent (enterFrame) { if (_root.game[_parent.inA].chaos == true or _root.game[_parent.inB].chaos == true) { _root.game[_parent.out].chaos = true; if (0.5 < Math.random()) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } _parent.shock._visible = true; _parent.shock2._visible = true; } else { _parent.shock._visible = false; _parent.shock2._visible = false; _root.game[_parent.out].chaos = false; if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = false; } if (_root.game[_parent.inA].state == false and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = true; } if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == false) { _root.game[_parent.out].state = true; } if (_root.game[_parent.inA].state == false and _root.game[_parent.inB].state == false) { _root.game[_parent.out].state = false; } } if (_parent.shock._visible == true) { _parent.shock2.gotoAndStop(Math.floor(Math.random() * 4)); _parent.shock.gotoAndStop(Math.floor(Math.random() * 4)); } if (this.hitTest(_root.game.player) and _root.game.player.alive == true) { if (_root.game.player.targeting != _parent._name) { _root.game.player.targeting = _parent._name; _root.game.crosshair._x = _parent._x; _root.game.crosshair._y = _parent._y; _root.game.crosshair.gotoAndPlay('show'); } } else { if (_root.game.player.targeting == _parent._name) { _root.game.player.targeting = 'none'; _root.game.crosshair.gotoAndStop('hide'); } } } } } movieClip 2002 { } movieClip 2004 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2005 { instance logic of movieClip 2004 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2018 { } movieClip 2102 { frame 7 { gotoAndPlay(1); } frame 24 { gotoAndPlay(12); } frame 31 { stop(); } frame 35 { stop(); } frame 39 { stop(); } frame 63 { isReplacing = false; gotoAndPlay(1); } frame 77 { stop(); } } movieClip 2103 { } movieClip 2105 { } movieClip 2107 { } movieClip 2117 { } movieClip 2119 { frame 1 { content = 'inv'; } instance mc11 of movieClip 2103 { onClipEvent (load) { mirrorTurnRight = true; this._rotation = -_parent._rotation; } onClipEvent (enterFrame) { if (_root.reflections == false) { this._visible = false; } else { this._visible = true; if (Math.abs(_root.game.player._x - _parent._x) < 50 and Math.abs(_root.game.player._y - _parent._y) < 50) { _x = _root.game.player._x - _parent._x; _y = _root.game.player._y - _parent._y; xSkala = 200 - 0.6000000238418579 * (_x * _x); if (xSkala < 10) { xSkala = 10; } ySkala = 200 - 2 * Math.abs(_y); if (ySkala < 10) { ySkala = 10; } if (_parent._rotation == -90) { temp = _x; _x = -_y; _y = temp; } else { if (_parent._rotation == 90) { temp = _x; _x = _y; _y = -temp; } else { if (_parent._rotation == 180) { _x = -_x; _y = -_y; } } } _xscale = xSkala; _yscale = ySkala; this.player.gotoAndStop(_root.game.player._currentframe); if (_root.game.player.turnRight == true and mirrorTurnRight == false) { mirrorTurnRight = true; this.player._xscale *= -1; } if (_root.game.player.turnRight == false and mirrorTurnRight == true) { mirrorTurnRight = false; this.player._xscale *= -1; } } } } } instance guardian of movieClip 2105 { onClipEvent (load) { _parent.inputs = 1; } } instance invLogic of movieClip 2107 { onClipEvent (enterFrame) { if (_root.game[_parent.inA].chaos == true) { if (0.5 < Math.random()) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } _root.game[_parent.out].chaos = true; _parent.shock._visible = true; _parent.shock2._visible = true; } else { _parent.shock._visible = false; _parent.shock2._visible = false; _root.game[_parent.out].chaos = false; if (_root.game[_parent.inA].state == true) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } } } } instance shock of movieClip 2117 { onClipEvent (enterFrame) { this.gotoAndStop(Math.floor(Math.random() * 4)); } } instance shock2 of movieClip 2117 { onClipEvent (enterFrame) { this.gotoAndStop(Math.floor(Math.random() * 4)); } } } movieClip 2124 { } movieClip 2126 { } movieClip 2131 { } movieClip 2133 { } movieClip 2135 { } movieClip 2136 { instance offLogic of movieClip 2133 { onClipEvent (enterFrame) { _root.game[_parent.out].state = false; _root.game[_parent.out].chaos = false; } } frame 2 { gotoAndPlay(1); } instance onLogic of movieClip 2126 { onClipEvent (enterFrame) { _root.game[_parent.out].state = true; _root.game[_parent.out].chaos = false; } } frame 4 { gotoAndPlay(3); } frame 5 { if (_root.game.player.paused == false) { _root.game[this._name + 'Timer'].gotoAndPlay('clk1s'); } } instance offLogic of movieClip 2133 { onClipEvent (enterFrame) { _root.game[_parent.out].state = false; _root.game[_parent.out].chaos = false; } } frame 30 { if (_root.game.player.paused == false) { _root.game[this._name + 'Timer'].gotoAndPlay('clk1s'); } } instance onLogic of movieClip 2126 { onClipEvent (enterFrame) { _root.game[_parent.out].state = true; _root.game[_parent.out].chaos = false; } } frame 55 { if (_root.game.player.paused == false) { _root.game[this._name + 'Timer'].gotoAndPlay('clk1s'); } this.gotoAndPlay('clk1s'); } frame 56 { if (_root.game.player.paused == false) { _root.game[this._name + 'Timer'].gotoAndPlay('clk2s'); } } instance offLogic of movieClip 2133 { onClipEvent (enterFrame) { _root.game[_parent.out].state = false; _root.game[_parent.out].chaos = false; } } frame 106 { if (_root.game.player.paused == false) { _root.game[this._name + 'Timer'].gotoAndPlay('clk2s'); } } instance onLogic of movieClip 2126 { onClipEvent (enterFrame) { _root.game[_parent.out].state = true; _root.game[_parent.out].chaos = false; } } frame 156 { if (_root.game.player.paused == false) { _root.game[this._name + 'Timer'].gotoAndPlay('clk2s'); } this.gotoAndPlay('clk2s'); } frame 157 { if (_root.game.player.paused == false) { _root.game[this._name + 'Timer'].gotoAndPlay('clk3s'); } } instance offLogic of movieClip 2133 { onClipEvent (enterFrame) { _root.game[_parent.out].state = false; _root.game[_parent.out].chaos = false; } } frame 232 { if (_root.game.player.paused == false) { _root.game[this._name + 'Timer'].gotoAndPlay('clk3s'); } } instance onLogic of movieClip 2126 { onClipEvent (enterFrame) { _root.game[_parent.out].state = true; _root.game[_parent.out].chaos = false; } } frame 307 { if (_root.game.player.paused == false) { _root.game[this._name + 'Timer'].gotoAndPlay('clk3s'); } this.gotoAndPlay('clk3s'); } frame 308 { if (_root.game.player.paused == false) { _root.game[this._name + 'Timer'].gotoAndPlay('clk4s'); } } instance offLogic of movieClip 2133 { onClipEvent (enterFrame) { _root.game[_parent.out].state = false; _root.game[_parent.out].chaos = false; } } frame 408 { if (_root.game.player.paused == false) { _root.game[this._name + 'Timer'].gotoAndPlay('clk4s'); } } instance onLogic of movieClip 2126 { onClipEvent (enterFrame) { _root.game[_parent.out].state = true; _root.game[_parent.out].chaos = false; } } frame 508 { if (_root.game.player.paused == false) { _root.game[this._name + 'Timer'].gotoAndPlay('clk4s'); } this.gotoAndPlay('clk4s'); } } movieClip 2152 { } movieClip 2154 { } movieClip 2155 { instance aaa of movieClip 2154 { onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '61'; _root.hud.info.gotoAndPlay('viewInfo'); } } } } } movieClip 2171 { } movieClip 2173 { } movieClip 2174 { instance aaa of movieClip 2173 { onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '51'; _root.hud.info.gotoAndPlay('viewInfo'); } } } } } movieClip 2176 { } movieClip 2178 { } movieClip 2180 { } movieClip 2182 { } movieClip 2183 { } movieClip 2185 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2186 { instance logic of movieClip 2185 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2188 { } movieClip 2190 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2191 { instance logic of movieClip 2190 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2193 { } movieClip 2195 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2196 { instance logic of movieClip 2195 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2198 { } movieClip 2200 { } movieClip 2202 { } movieClip 2203 { } movieClip 2205 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2206 { instance logic of movieClip 2205 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2213 { } movieClip 2214 { } movieClip 2230 { } movieClip 2232 { } movieClip 2233 { instance aaa of movieClip 2232 { onClipEvent (load) { entered = false; } onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '34'; _root.hud.info.gotoAndPlay('viewInfo'); _root.hud.invHelp.play(); _root.hud.invHelp._visible = true; _root.hud.selected = 2; entered = true; } else { if (entered == true) { entered = false; _root.hud.invHelp.stop(); _root.hud.invHelp._visible = false; } } } } } } movieClip 2249 { } movieClip 2251 { } movieClip 2252 { instance aaa of movieClip 2251 { onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '33'; _root.hud.info.gotoAndPlay('viewInfo'); } } } } } movieClip 2268 { } movieClip 2270 { } movieClip 2271 { instance aaa of movieClip 2270 { onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '32'; _root.hud.info.gotoAndPlay('viewInfo'); } } } } } movieClip 2287 { } movieClip 2289 { } movieClip 2290 { instance aaa of movieClip 2289 { onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '31'; _root.hud.info.gotoAndPlay('viewInfo'); } } } } } movieClip 2292 { } movieClip 2313 { } movieClip 2323 { } movieClip 2325 { } movieClip 2332 { } movieClip 2348 { } movieClip 2350 { } movieClip 2351 { instance aaa of movieClip 2350 { onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '24'; _root.hud.info.gotoAndPlay('viewInfo'); } } } } } movieClip 2377 { } movieClip 2379 { } movieClip 2381 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2382 { instance logic of movieClip 2381 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2385 { } movieClip 2388 { } movieClip 2391 { } movieClip 2394 { } movieClip 2395 { } movieClip 2397 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2398 { instance logic of movieClip 2397 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2401 { } movieClip 2404 { } movieClip 2407 { } movieClip 2410 { } movieClip 2411 { } movieClip 2413 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2414 { instance logic of movieClip 2413 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2417 { } movieClip 2419 { } movieClip 2421 { } movieClip 2423 { } movieClip 2424 { } movieClip 2426 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2427 { instance logic of movieClip 2426 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2429 { } movieClip 2431 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2432 { instance logic of movieClip 2431 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2447 { } movieClip 2449 { } movieClip 2453 { } movieClip 2454 { } movieClip 2456 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2457 { instance logic of movieClip 2456 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2461 { } movieClip 2463 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2464 { instance logic of movieClip 2463 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2467 { } movieClip 2469 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2470 { instance logic of movieClip 2469 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2474 { } movieClip 2476 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2477 { instance logic of movieClip 2476 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2487 { } movieClip 2503 { } movieClip 2505 { } movieClip 2507 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2508 { instance logic of movieClip 2507 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2510 { } movieClip 2512 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2513 { instance logic of movieClip 2512 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2515 { } movieClip 2517 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2518 { instance logic of movieClip 2517 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2520 { } movieClip 2522 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2523 { instance logic of movieClip 2522 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2525 { } movieClip 2527 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2528 { instance logic of movieClip 2527 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2530 { } movieClip 2532 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2533 { instance logic of movieClip 2532 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2539 { } movieClip 2541 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2542 { instance logic of movieClip 2541 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2545 { } movieClip 2547 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2548 { instance logic of movieClip 2547 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2551 { } movieClip 2553 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2554 { instance logic of movieClip 2553 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2556 { } movieClip 2558 { } movieClip 2560 { } movieClip 2561 { } movieClip 2563 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2564 { instance logic of movieClip 2563 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2569 { } movieClip 2571 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2572 { instance logic of movieClip 2571 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2574 { } movieClip 2576 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2577 { instance logic of movieClip 2576 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2580 { } movieClip 2582 { } movieClip 2584 { } movieClip 2585 { } movieClip 2587 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2588 { instance logic of movieClip 2587 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2590 { } movieClip 2592 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 2593 { instance logic of movieClip 2592 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 2727 { } movieClip 2811 { frame 7 { gotoAndPlay(1); } frame 24 { gotoAndPlay(12); } frame 31 { stop(); } frame 35 { stop(); } frame 39 { stop(); } frame 63 { isReplacing = false; gotoAndPlay(1); } frame 77 { stop(); } } movieClip 2812 { } movieClip 2822 { } movieClip 2824 { } movieClip 2826 { instance mc11 of movieClip 2812 { onClipEvent (load) { mirrorTurnRight = true; } onClipEvent (enterFrame) { if (_root.reflections == false) { this._visible = false; } else { this._visible = true; if (Math.abs(_root.game.player._x - _parent._x) < 150 and Math.abs(_root.game.player._y - _parent._y) < 150) { _x = _root.game.player._x - _parent._x; _y = _root.game.player._y - _parent._y; xSkala = 200 - 0.07000000029802322 * (_x * _x); if (xSkala < 10) { xSkala = 10; } _xscale = xSkala; ySkala = 150; _yscale = ySkala; this.player.gotoAndStop(_root.game.player._currentframe); if (_root.game.player.turnRight == true and mirrorTurnRight == false) { mirrorTurnRight = true; this.player._xscale *= -1; } if (_root.game.player.turnRight == false and mirrorTurnRight == true) { mirrorTurnRight = false; this.player._xscale *= -1; } } } } } instance shock of movieClip 2822 { onClipEvent (enterFrame) { this.gotoAndStop(Math.floor(Math.random() * 4)); } } instance shock2 of movieClip 2822 { onClipEvent (enterFrame) { this.gotoAndStop(Math.floor(Math.random() * 4)); } } instance muxLogic of movieClip 2824 { onClipEvent (enterFrame) { if (_root.game[_parent.inA].chaos == true or _root.game[_parent.inB].chaos == true or _root.game[_parent.inC].chaos == true or _root.game[_parent.inD].chaos == true or _root.game[_parent.adA].chaos == true or _root.game[_parent.adB].chaos == true) { _root.game[_parent.out].chaos = true; if (0.5 < Math.random()) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } _parent.shock._visible = true; _parent.shock2._visible = true; } else { _root.game[_parent.out].chaos = false; _parent.shock._visible = false; _parent.shock2._visible = false; if (_root.game[_parent.adA].state == false and _root.game[_parent.adB].state == false) { _root.game[_parent.out].state = _root.game[_parent.inA].state; } if (_root.game[_parent.adA].state == false and _root.game[_parent.adB].state == true) { _root.game[_parent.out].state = _root.game[_parent.inB].state; } if (_root.game[_parent.adA].state == true and _root.game[_parent.adB].state == false) { _root.game[_parent.out].state = _root.game[_parent.inC].state; } if (_root.game[_parent.adA].state == true and _root.game[_parent.adB].state == true) { _root.game[_parent.out].state = _root.game[_parent.inD].state; } } } } } movieClip 2833 { } movieClip 2854 { } movieClip 2860 { } movieClip 2885 { } movieClip 2936 { } movieClip 2938 { } movieClip 3049 { instance killer of movieClip 2938 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player._currentframe == 65) { _root.game.player.nextFrame(); _root.game.player.play(); } if (this.hitTest(_root.game.player) and _root.game.player.aliveAnim == true) { _root.game.player.alive = false; _root.game.player.gotoAndPlay('die'); } } } frame 8 { stop(); } frame 15 { stop(); } } movieClip 3056 { } movieClip 3063 { } movieClip 3070 { } movieClip 3076 { } movieClip 3082 { } movieClip 3089 { } movieClip 3095 { } movieClip 3101 { } movieClip 3107 { } movieClip 3113 { } movieClip 3119 { } movieClip 3125 { } movieClip 3131 { } movieClip 3137 { } movieClip 3143 { } movieClip 3426 { } movieClip 3452 { } movieClip 3467 { } movieClip 3483 { } movieClip 3494 { } movieClip 3504 { } movieClip 3523 { } movieClip 3530 { } movieClip 3540 { } movieClip 3550 { } movieClip 3561 { } movieClip 3645 { frame 7 { gotoAndPlay(1); } frame 24 { gotoAndPlay(12); } frame 31 { stop(); } frame 35 { stop(); } frame 39 { stop(); } frame 63 { isReplacing = false; gotoAndPlay(1); } frame 77 { stop(); } } movieClip 3646 { } movieClip 3653 { } movieClip 3709 { } movieClip 3720 { } movieClip 3722 { } movieClip 3724 { } movieClip 3725 { instance logic of movieClip 3724 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(_root.KOLOR_JEDEN); } } } movieClip 3771 { } movieClip 3773 { } movieClip 3775 { frame 1 { if (_root.blinking == true) { if (0.5 < Math.random()) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } } movieClip 3776 { instance logic of movieClip 3775 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(_root.KOLOR_JEDEN); } } } movieClip 3834 { } movieClip 3836 { } movieClip 3838 { } movieClip 3839 { instance logic of movieClip 3838 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(_root.KOLOR_ZERO); } } } movieClip 3885 { frame 121 { _parent._parent.gotoAndStop('broken'); } } movieClip 3887 { } movieClip 3888 { frame 1 { alive = false; } frame 6 { alive = true; } frame 7 { stop(); } instance killer of movieClip 3887 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player._currentframe == 65) { _root.game.player.nextFrame(); _root.game.player.play(); } if (this.hitTest(_root.game.player) and _root.game.player.aliveAnim == true) { _root.game.player.alive = false; _root.game.player.gotoAndPlay('die'); } } } instance killer2 of movieClip 3887 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player._currentframe == 65) { _root.game.player.nextFrame(); _root.game.player.play(); } if (this.hitTest(_root.game.player) and _root.game.player.aliveAnim == true) { _root.game.player.alive = false; _root.game.player.gotoAndPlay('die'); } } } instance killer3 of movieClip 3887 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player._currentframe == 65) { _root.game.player.nextFrame(); _root.game.player.play(); } if (this.hitTest(_root.game.player) and _root.game.player.aliveAnim == true) { _root.game.player.alive = false; _root.game.player.gotoAndPlay('die'); } } } } movieClip 3890 { } movieClip 3892 { } movieClip 3894 { } movieClip 3896 { } movieClip 3906 { } movieClip 3911 { instance guardian of movieClip 3892 { onClipEvent (load) { _parent.inputs = 1; } onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player.alive == true) { if (_root.game.player.targeting != _parent._name) { _root.game.player.targeting = _parent._name; _root.game.crosshair._x = _parent._x; _root.game.crosshair._y = _parent._y; _root.game.crosshair.gotoAndPlay('show'); } } else { if (_root.game.player.targeting == _parent._name) { _root.game.player.targeting = 'none'; _root.game.crosshair.gotoAndStop('hide'); } } } } instance brokenLogic of movieClip 3890 { onClipEvent (enterFrame) { if (0.5 < Math.random()) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } _root.game[_parent.out].chaos = true; } } frame 2 { content = 'broken'; stop(); } frame 3 { stop(); content = 'virused1'; if (_parent._rotation == 180) { virus1._xscale *= -1; } } instance virus1Logic of movieClip 3890 { onClipEvent (enterFrame) { if (0.5 < Math.random()) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } _root.game[_parent.out].chaos = true; if (_parent.virus1.alive == true) { if (_root.game[_parent.inA].chaos == true) { _parent.virus1.gotoAndStop('chaos'); } else { if (_root.game[_parent.inA].state == true) { _parent.virus1.gotoAndStop('normal'); } else { if (_root.game[_parent.inA].chaos == false and _root.game[_parent.inA].state == false) { _parent.virus1.alive = false; _parent.virus1.gotoAndStop('die'); } } } } } } frame 4 { content = 'norm'; } instance mc33 of movieClip 3646 { onClipEvent (load) { mirrorTurnRight = true; _this._rotation = -_parent._rotation; } onClipEvent (enterFrame) { if (_root.reflections == false) { this._visible = false; } else { this._visible = true; if (Math.abs(_root.game.player._x - _parent._x) < 100 and Math.abs(_root.game.player._y - _parent._y) < 100) { _x = _root.game.player._x - _parent._x; _y = _root.game.player._y - _parent._y; xSkala = 200 - 0.6000000238418579 * (_x * _x); if (xSkala < 10) { xSkala = 10; } _xscale = xSkala; ySkala = 200 - 2 * Math.abs(_y); if (ySkala < 10) { ySkala = 10; } _yscale = ySkala; if (_parent._rotation == -90) { temp = _x; _x = -_y; _y = temp; } else { if (_parent._rotation == 90) { temp = _x; _x = _y; _y = -temp; } else { if (_parent._rotation == 180) { _x = -_x; _y = -_y; } } } this.player.gotoAndStop(_root.game.player._currentframe); if (_root.game.player.turnRight == true and mirrorTurnRight == false) { mirrorTurnRight = true; this.player._xscale *= -1; } if (_root.game.player.turnRight == false and mirrorTurnRight == true) { mirrorTurnRight = false; this.player._xscale *= -1; } } } } } instance guardian of movieClip 3892 { onClipEvent (load) { _parent.inputs = 1; } onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player.alive == true) { if (_root.game.player.targeting != _parent._name) { _root.game.player.targeting = _parent._name; _root.game.crosshair._x = _parent._x; _root.game.crosshair._y = _parent._y; _root.game.crosshair.gotoAndPlay('show'); } } else { if (_root.game.player.targeting == _parent._name) { _root.game.player.targeting = 'none'; _root.game.crosshair.gotoAndStop('hide'); } } } } instance normLogic of movieClip 3896 { onClipEvent (enterFrame) { if (_root.game[_parent.inA].chaos == true) { if (0.5 < Math.random()) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } _root.game[_parent.out].chaos = true; _parent.shock._visible = true; _parent.shock2._visible = true; } else { _parent.shock._visible = false; _parent.shock2._visible = false; _root.game[_parent.out].chaos = false; if (_root.game[_parent.inA].state == true) { _root.game[_parent.out].state = true; } else { _root.game[_parent.out].state = false; } } } } instance shock of movieClip 3906 { onClipEvent (enterFrame) { this.gotoAndStop(Math.floor(Math.random() * 4)); } } instance shock2 of movieClip 3906 { onClipEvent (enterFrame) { this.gotoAndStop(Math.floor(Math.random() * 4)); } } frame 5 { content = 'inv'; } instance mc30 of movieClip 3646 { onClipEvent (load) { mirrorTurnRight = true; _this._rotation = -_parent._rotation; } onClipEvent (enterFrame) { if (_root.reflections == false) { this._visible = false; } else { this._visible = true; if (Math.abs(_root.game.player._x - _parent._x) < 100 and Math.abs(_root.game.player._y - _parent._y) < 100) { _x = _root.game.player._x - _parent._x; _y = _root.game.player._y - _parent._y; xSkala = 200 - 0.6000000238418579 * (_x * _x); if (xSkala < 10) { xSkala = 10; } _xscale = xSkala; ySkala = 200 - 2 * Math.abs(_y); if (ySkala < 10) { ySkala = 10; } _yscale = ySkala; if (_parent._rotation == -90) { temp = _x; _x = -_y; _y = temp; } else { if (_parent._rotation == 90) { temp = _x; _x = _y; _y = -temp; } else { if (_parent._rotation == 180) { _x = -_x; _y = -_y; } } } this.player.gotoAndStop(_root.game.player._currentframe); if (_root.game.player.turnRight == true and mirrorTurnRight == false) { mirrorTurnRight = true; this.player._xscale *= -1; } if (_root.game.player.turnRight == false and mirrorTurnRight == true) { mirrorTurnRight = false; this.player._xscale *= -1; } } } } } instance invLogic of movieClip 3894 { onClipEvent (enterFrame) { if (_root.game[_parent.inA].chaos == true) { if (0.5 < Math.random()) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } _root.game[_parent.out].chaos = true; _parent.shock._visible = true; _parent.shock2._visible = true; } else { _parent.shock._visible = false; _parent.shock2._visible = false; _root.game[_parent.out].chaos = false; if (_root.game[_parent.inA].state == true) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } } } } } movieClip 3962 { } movieClip 3979 { } movieClip 4063 { frame 7 { gotoAndPlay(1); } frame 24 { gotoAndPlay(12); } frame 31 { stop(); } frame 35 { stop(); } frame 39 { stop(); } frame 63 { isReplacing = false; gotoAndPlay(1); } frame 77 { stop(); } } movieClip 4064 { } movieClip 4082 { } movieClip 4100 { } movieClip 4111 { } movieClip 4195 { frame 7 { gotoAndPlay(1); } frame 24 { gotoAndPlay(12); } frame 31 { stop(); } frame 35 { stop(); } frame 39 { stop(); } frame 63 { isReplacing = false; gotoAndPlay(1); } frame 77 { stop(); } } movieClip 4196 { } movieClip 4206 { } movieClip 4208 { } movieClip 4210 { } movieClip 4212 { } movieClip 4214 { } movieClip 4225 { } movieClip 4227 { } movieClip 4237 { } movieClip 4243 { frame 1 { content = 'and'; stop(); } instance mc11 of movieClip 4064 { onClipEvent (load) { mirrorTurnRight = true; _this._rotation = -_parent._rotation; } onClipEvent (enterFrame) { if (_root.reflections == false) { this._visible = false; } else { this._visible = true; if (Math.abs(_root.game.player._x - _parent._x) < 100 and Math.abs(_root.game.player._y - _parent._y) < 100) { _x = _root.game.player._x - _parent._x; _y = _root.game.player._y - _parent._y; xSkala = 200 - 0.6000000238418579 * (_x * _x); if (xSkala < 10) { xSkala = 10; } _xscale = xSkala; ySkala = 200 - 2 * Math.abs(_y); if (ySkala < 10) { ySkala = 10; } _yscale = ySkala; if (_parent._rotation == -90) { temp = _x; _x = -_y; _y = temp; } else { if (_parent._rotation == 90) { temp = _x; _x = _y; _y = -temp; } else { if (_parent._rotation == 180) { _x = -_x; _y = -_y; } } } this.player.gotoAndStop(_root.game.player._currentframe); if (_root.game.player.turnRight == true and mirrorTurnRight == false) { mirrorTurnRight = true; this.player._xscale *= -1; } if (_root.game.player.turnRight == false and mirrorTurnRight == true) { mirrorTurnRight = false; this.player._xscale *= -1; } } } } } instance andLogic of movieClip 4227 { onClipEvent (enterFrame) { _parent.test = 'x=' + _parent._x + ' y=' + _parent._y; if (_root.game[_parent.inA].chaos == true or _root.game[_parent.inB].chaos == true) { _root.game[_parent.out].chaos = true; if (0.5 < Math.random()) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } _parent.shock._visible = true; _parent.shock2._visible = true; _parent.shock2.gotoAndStop(Math.floor(Math.random() * 4)); _parent.shock.gotoAndStop(Math.floor(Math.random() * 4)); } else { _root.game[_parent.out].chaos = false; _parent.shock._visible = false; _parent.shock2._visible = false; if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = true; } else { _root.game[_parent.out].state = false; } } } } frame 2 { content = 'or'; } instance mc11kolejny of movieClip 4196 { onClipEvent (load) { mirrorTurnRight = true; this._rotation = -_parent._rotation; } onClipEvent (enterFrame) { if (_root.reflections == false) { this._visible = false; } else { this._visible = true; if (Math.abs(_root.game.player._x - _parent._x) < 50 and Math.abs(_root.game.player._y - _parent._y) < 50) { _x = _root.game.player._x - _parent._x; _y = _root.game.player._y - _parent._y; xSkala = 200 - 0.6000000238418579 * (_x * _x); if (xSkala < 10) { xSkala = 10; } ySkala = 200 - 2 * Math.abs(_y); if (ySkala < 10) { ySkala = 10; } if (_parent._rotation == -90) { temp = _x; _x = -_y; _y = temp; } else { if (_parent._rotation == 90) { temp = _x; _x = _y; _y = -temp; } else { if (_parent._rotation == 180) { _x = -_x; _y = -_y; } } } _xscale = xSkala; _yscale = ySkala; this.player.gotoAndStop(_root.game.player._currentframe); if (_root.game.player.turnRight == true and mirrorTurnRight == false) { mirrorTurnRight = true; this.player._xscale *= -1; } if (_root.game.player.turnRight == false and mirrorTurnRight == true) { mirrorTurnRight = false; this.player._xscale *= -1; } } } } } instance orLogic of movieClip 4214 { onClipEvent (enterFrame) { if (_root.game[_parent.inA].chaos == true or _root.game[_parent.inB].chaos == true) { _root.game[_parent.out].chaos = true; if (0.5 < Math.random()) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } _parent.shock._visible = true; _parent.shock2._visible = true; _parent.shock2.gotoAndStop(Math.floor(Math.random() * 4)); _parent.shock.gotoAndStop(Math.floor(Math.random() * 4)); } else { _root.game[_parent.out].chaos = false; _parent.shock._visible = false; _parent.shock2._visible = false; if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = true; } else { if (_root.game[_parent.inA].state == false and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = true; } else { if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == false) { _root.game[_parent.out].state = true; } else { if (_root.game[_parent.inA].state == false and _root.game[_parent.inB].state == false) { _root.game[_parent.out].state = false; } } } } } } } frame 3 { content = 'nand'; } instance mc24 of movieClip 4064 { onClipEvent (load) { mirrorTurnRight = true; _this._rotation = -_parent._rotation; } onClipEvent (enterFrame) { if (_root.reflections == false) { this._visible = false; } else { this._visible = true; if (Math.abs(_root.game.player._x - _parent._x) < 100 and Math.abs(_root.game.player._y - _parent._y) < 100) { _x = _root.game.player._x - _parent._x; _y = _root.game.player._y - _parent._y; xSkala = 200 - 0.6000000238418579 * (_x * _x); if (xSkala < 10) { xSkala = 10; } _xscale = xSkala; ySkala = 200 - 2 * Math.abs(_y); if (ySkala < 10) { ySkala = 10; } _yscale = ySkala; if (_parent._rotation == -90) { temp = _x; _x = -_y; _y = temp; } else { if (_parent._rotation == 90) { temp = _x; _x = _y; _y = -temp; } else { if (_parent._rotation == 180) { _x = -_x; _y = -_y; } } } this.player.gotoAndStop(_root.game.player._currentframe); if (_root.game.player.turnRight == true and mirrorTurnRight == false) { mirrorTurnRight = true; this.player._xscale *= -1; } if (_root.game.player.turnRight == false and mirrorTurnRight == true) { mirrorTurnRight = false; this.player._xscale *= -1; } } } } } instance nandLogic of movieClip 4212 { onClipEvent (enterFrame) { if (_root.game[_parent.inA].chaos == true or _root.game[_parent.inB].chaos == true) { _root.game[_parent.out].chaos = true; if (0.5 < Math.random()) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } _parent.shock2.gotoAndStop(Math.floor(Math.random() * 4)); _parent.shock.gotoAndStop(Math.floor(Math.random() * 4)); _parent.shock._visible = true; _parent.shock2._visible = true; } else { _root.game[_parent.out].chaos = false; _parent.shock._visible = false; _parent.shock2._visible = false; if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = false; } if (_root.game[_parent.inA].state == false and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = true; } if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == false) { _root.game[_parent.out].state = true; } if (_root.game[_parent.inA].state == false and _root.game[_parent.inB].state == false) { _root.game[_parent.out].state = true; } } } } frame 4 { content = 'nor'; } instance mc26 of movieClip 4064 { onClipEvent (load) { mirrorTurnRight = true; _this._rotation = -_parent._rotation; } onClipEvent (enterFrame) { if (_root.reflections == false) { this._visible = false; } else { this._visible = true; if (Math.abs(_root.game.player._x - _parent._x) < 100 and Math.abs(_root.game.player._y - _parent._y) < 100) { _x = _root.game.player._x - _parent._x; _y = _root.game.player._y - _parent._y; xSkala = 200 - 0.6000000238418579 * (_x * _x); if (xSkala < 10) { xSkala = 10; } _xscale = xSkala; ySkala = 200 - 2 * Math.abs(_y); if (ySkala < 10) { ySkala = 10; } _yscale = ySkala; if (_parent._rotation == -90) { temp = _x; _x = -_y; _y = temp; } else { if (_parent._rotation == 90) { temp = _x; _x = _y; _y = -temp; } else { if (_parent._rotation == 180) { _x = -_x; _y = -_y; } } } this.player.gotoAndStop(_root.game.player._currentframe); if (_root.game.player.turnRight == true and mirrorTurnRight == false) { mirrorTurnRight = true; this.player._xscale *= -1; } if (_root.game.player.turnRight == false and mirrorTurnRight == true) { mirrorTurnRight = false; this.player._xscale *= -1; } } } } } instance norLogic of movieClip 4210 { onClipEvent (enterFrame) { if (_root.game[_parent.inA].chaos == true or _root.game[_parent.inB].chaos == true) { _root.game[_parent.out].chaos = true; if (0.5 < Math.random()) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } _parent.shock._visible = true; _parent.shock2._visible = true; _parent.shock2.gotoAndStop(Math.floor(Math.random() * 4)); _parent.shock.gotoAndStop(Math.floor(Math.random() * 4)); } else { _root.game[_parent.out].chaos = false; _parent.shock._visible = false; _parent.shock2._visible = false; if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = false; } if (_root.game[_parent.inA].state == false and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = false; } if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == false) { _root.game[_parent.out].state = false; } if (_root.game[_parent.inA].state == false and _root.game[_parent.inB].state == false) { _root.game[_parent.out].state = true; } } } } frame 5 { content = 'xor'; } instance mc28 of movieClip 4064 { onClipEvent (load) { mirrorTurnRight = true; _this._rotation = -_parent._rotation; } onClipEvent (enterFrame) { if (_root.reflections == false) { this._visible = false; } else { this._visible = true; if (Math.abs(_root.game.player._x - _parent._x) < 100 and Math.abs(_root.game.player._y - _parent._y) < 100) { _x = _root.game.player._x - _parent._x; _y = _root.game.player._y - _parent._y; xSkala = 200 - 0.6000000238418579 * (_x * _x); if (xSkala < 10) { xSkala = 10; } _xscale = xSkala; ySkala = 200 - 2 * Math.abs(_y); if (ySkala < 10) { ySkala = 10; } _yscale = ySkala; if (_parent._rotation == -90) { temp = _x; _x = -_y; _y = temp; } else { if (_parent._rotation == 90) { temp = _x; _x = _y; _y = -temp; } else { if (_parent._rotation == 180) { _x = -_x; _y = -_y; } } } this.player.gotoAndStop(_root.game.player._currentframe); if (_root.game.player.turnRight == true and mirrorTurnRight == false) { mirrorTurnRight = true; this.player._xscale *= -1; } if (_root.game.player.turnRight == false and mirrorTurnRight == true) { mirrorTurnRight = false; this.player._xscale *= -1; } } } } } instance xorLogic of movieClip 4208 { onClipEvent (enterFrame) { if (_root.game[_parent.inA].chaos == true or _root.game[_parent.inB].chaos == true) { _root.game[_parent.out].chaos = true; if (0.5 < Math.random()) { _root.game[_parent.out].state = false; } else { _root.game[_parent.out].state = true; } _parent.shock._visible = true; _parent.shock2._visible = true; _parent.shock2.gotoAndStop(Math.floor(Math.random() * 4)); _parent.shock.gotoAndStop(Math.floor(Math.random() * 4)); } else { _parent.shock._visible = false; _parent.shock2._visible = false; _root.game[_parent.out].chaos = false; if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = false; } if (_root.game[_parent.inA].state == false and _root.game[_parent.inB].state == true) { _root.game[_parent.out].state = true; } if (_root.game[_parent.inA].state == true and _root.game[_parent.inB].state == false) { _root.game[_parent.out].state = true; } if (_root.game[_parent.inA].state == false and _root.game[_parent.inB].state == false) { _root.game[_parent.out].state = false; } } } } } movieClip 4258 { } movieClip 4293 { } movieClip 4295 { } movieClip 4297 { } movieClip 4348 { } movieClip 4479 { instance killer of movieClip 4297 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player._currentframe == 65) { _root.game.player.nextFrame(); _root.game.player.play(); } if (this.hitTest(_root.game.player) and _root.game.player.aliveAnim == true) { _root.game.player.alive = false; _root.game.player.gotoAndPlay('die'); } } } frame 8 { stop(); } frame 15 { stop(); } } movieClip 4482 { } movieClip 4484 { } movieClip 4485 { instance sparkle of movieClip 4484 { onClipEvent (load) { speed = 1 + Math.random() * 2; _parent._x = 0.1000000014901161 * _parent._parent._width + Math.random() * (0.699999988079071 * _parent._parent._width); _parent._y = 0.05000000074505806 * _parent._parent._height + Math.random() * (0.8999999761581421 * _parent._parent._height); _parent._yscale = 100 + Math.random * 200; this._alpha = 100; } onClipEvent (enterFrame) { if (0 >= this._alpha) { speed = 1 + Math.random() * 2; _parent._x = 0.1000000014901161 * _parent._parent._width + Math.random() * (0.699999988079071 * _parent._parent._width); _parent._y = 0.05000000074505806 * _parent._parent._height + Math.random() * (0.8999999761581421 * _parent._parent._height); _parent._yscale = 100 + Math.random * 200; this._alpha = 100; } else { _parent._y -= speed; --this._alpha; } if (_parent._y < 100) { this._alpha -= 10; } } } } movieClip 4499 { instance uper of movieClip 4482 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player.alive == true) { if (-10 < _root.game.player.speedY) { _root.game.player.speedY -= 2.5; } if (_root.game.player.isFalling == false) { _root.game.player.gotoAndStop('fallStart'); _root.game.player.isFalling = true; } } } } frame 2 { stop(); } frame 4 { stop(); } } movieClip 4506 { } movieClip 4531 { } movieClip 4537 { } movieClip 4572 { } movieClip 4574 { } movieClip 4625 { } movieClip 4766 { frame 1 { } instance killer of movieClip 4574 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player._currentframe == 65) { _root.game.player.nextFrame(); _root.game.player.play(); } if (this.hitTest(_root.game.player) and _root.game.player.aliveAnim == true) { _root.game.player.alive = false; _root.game.player.gotoAndPlay('die'); } } } frame 2 { stop(); } frame 9 { stop(); } frame 16 { stop(); } } movieClip 4769 { } movieClip 4771 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4772 { instance logic of movieClip 4771 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4774 { } movieClip 4776 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4777 { instance logic of movieClip 4776 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4779 { } movieClip 4781 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4782 { instance logic of movieClip 4781 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4786 { } movieClip 4788 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4789 { instance logic of movieClip 4788 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4791 { } movieClip 4793 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4794 { instance logic of movieClip 4793 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4796 { } movieClip 4798 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4799 { instance logic of movieClip 4798 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4801 { } movieClip 4803 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4804 { instance logic of movieClip 4803 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4806 { } movieClip 4808 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4809 { instance logic of movieClip 4808 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4811 { } movieClip 4813 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4814 { instance logic of movieClip 4813 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4816 { } movieClip 4818 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4819 { instance logic of movieClip 4818 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4822 { } movieClip 4824 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4825 { instance logic of movieClip 4824 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4828 { } movieClip 4830 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4831 { instance logic of movieClip 4830 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4833 { } movieClip 4835 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4836 { instance logic of movieClip 4835 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4838 { } movieClip 4840 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4841 { instance logic of movieClip 4840 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4843 { } movieClip 4845 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4846 { instance logic of movieClip 4845 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4849 { } movieClip 4851 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4852 { instance logic of movieClip 4851 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4854 { } movieClip 4856 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4857 { instance logic of movieClip 4856 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4860 { } movieClip 4864 { } movieClip 4867 { } movieClip 4868 { } movieClip 4870 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4871 { instance logic of movieClip 4870 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4876 { } movieClip 4881 { } movieClip 4882 { } movieClip 4884 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4885 { instance logic of movieClip 4884 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4889 { } movieClip 4894 { } movieClip 4895 { } movieClip 4897 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4898 { instance logic of movieClip 4897 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4902 { } movieClip 4904 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4905 { instance logic of movieClip 4904 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4909 { } movieClip 4911 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4912 { instance logic of movieClip 4911 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4915 { } movieClip 4917 { } movieClip 4918 { instance sparkle of movieClip 4917 { onClipEvent (load) { speed = 1 + Math.random() * 2; _parent._x = 0.1000000014901161 * _parent._parent._width + Math.random() * (0.699999988079071 * _parent._parent._width); _parent._y = 0.05000000074505806 * _parent._parent._height + Math.random() * (0.8999999761581421 * _parent._parent._height); _parent._yscale = 100 + Math.random * 200; this._alpha = 100; } onClipEvent (enterFrame) { if (0 >= this._alpha) { speed = 1 + Math.random() * 2; _parent._x = 0.1000000014901161 * _parent._parent._width + Math.random() * (0.699999988079071 * _parent._parent._width); _parent._y = 0.05000000074505806 * _parent._parent._height + Math.random() * (0.8999999761581421 * _parent._parent._height); _parent._yscale = 100 + Math.random * 200; this._alpha = 100; } else { _parent._y -= speed; --this._alpha; } if (_parent._y < 100) { this._alpha -= 10; } } } } movieClip 4932 { instance uper of movieClip 4915 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player.alive == true) { if (-10 < _root.game.player.speedY) { _root.game.player.speedY -= 2.5; } if (_root.game.player.isFalling == false) { _root.game.player.gotoAndStop('fallStart'); _root.game.player.isFalling = true; } } } } frame 2 { stop(); } frame 4 { stop(); } } movieClip 4939 { } movieClip 4941 { } movieClip 4942 { instance killer of movieClip 4941 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player._currentframe == 65) { _root.game.player.nextFrame(); _root.game.player.play(); } if (this.hitTest(_root.game.player) and _root.game.player.aliveAnim == true) { _root.game.player.alive = false; _root.game.player.gotoAndPlay('die'); } } } } movieClip 4977 { } movieClip 4979 { } movieClip 4981 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4982 { instance logic of movieClip 4981 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4984 { } movieClip 4986 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4987 { instance logic of movieClip 4986 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4989 { } movieClip 4991 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4992 { instance logic of movieClip 4991 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4994 { } movieClip 4996 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 4997 { instance logic of movieClip 4996 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 4999 { } movieClip 5001 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5002 { instance logic of movieClip 5001 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5004 { } movieClip 5006 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5007 { instance logic of movieClip 5006 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5009 { } movieClip 5011 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5012 { instance logic of movieClip 5011 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5016 { } movieClip 5018 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5019 { instance logic of movieClip 5018 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5021 { } movieClip 5023 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5024 { instance logic of movieClip 5023 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5026 { } movieClip 5028 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5029 { instance logic of movieClip 5028 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5032 { } movieClip 5034 { } movieClip 5035 { instance sparkle of movieClip 5034 { onClipEvent (load) { speed = 1 + Math.random() * 2; _parent._x = 0.1000000014901161 * _parent._parent._width + Math.random() * (0.699999988079071 * _parent._parent._width); _parent._y = 0.05000000074505806 * _parent._parent._height + Math.random() * (0.8999999761581421 * _parent._parent._height); _parent._yscale = 100 + Math.random * 200; this._alpha = 100; } onClipEvent (enterFrame) { if (0 >= this._alpha) { speed = 1 + Math.random() * 2; _parent._x = 0.1000000014901161 * _parent._parent._width + Math.random() * (0.699999988079071 * _parent._parent._width); _parent._y = 0.05000000074505806 * _parent._parent._height + Math.random() * (0.8999999761581421 * _parent._parent._height); _parent._yscale = 100 + Math.random * 200; this._alpha = 100; } else { _parent._y -= speed; --this._alpha; } if (_parent._y < 100) { this._alpha -= 10; } } } } movieClip 5049 { instance uper of movieClip 5032 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player.alive == true) { if (-10 < _root.game.player.speedY) { _root.game.player.speedY -= 2.5; } if (_root.game.player.isFalling == false) { _root.game.player.gotoAndStop('fallStart'); _root.game.player.isFalling = true; } } } } frame 2 { stop(); } frame 4 { stop(); } } movieClip 5052 { } movieClip 5054 { } movieClip 5055 { instance sparkle of movieClip 5054 { onClipEvent (load) { speed = 1 + Math.random() * 2; _parent._x = 0.1000000014901161 * _parent._parent._width + Math.random() * (0.699999988079071 * _parent._parent._width); _parent._y = 0.05000000074505806 * _parent._parent._height + Math.random() * (0.8999999761581421 * _parent._parent._height); _parent._yscale = 100 + Math.random * 200; this._alpha = 100; } onClipEvent (enterFrame) { if (0 >= this._alpha) { speed = 1 + Math.random() * 2; _parent._x = 0.1000000014901161 * _parent._parent._width + Math.random() * (0.699999988079071 * _parent._parent._width); _parent._y = 0.05000000074505806 * _parent._parent._height + Math.random() * (0.8999999761581421 * _parent._parent._height); _parent._yscale = 100 + Math.random * 200; this._alpha = 100; } else { _parent._y -= speed; --this._alpha; } if (_parent._y < 100) { this._alpha -= 10; } } } } movieClip 5069 { instance uper of movieClip 5052 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player.alive == true) { if (-10 < _root.game.player.speedY) { _root.game.player.speedY -= 2.5; } if (_root.game.player.isFalling == false) { _root.game.player.gotoAndStop('fallStart'); _root.game.player.isFalling = true; } } } } frame 2 { stop(); } frame 4 { stop(); } } movieClip 5082 { } movieClip 5084 { } movieClip 5086 { } movieClip 5087 { } movieClip 5089 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5090 { instance logic of movieClip 5089 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5092 { } movieClip 5094 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5095 { instance logic of movieClip 5094 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5097 { } movieClip 5101 { } movieClip 5102 { } movieClip 5104 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5105 { instance logic of movieClip 5104 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5107 { } movieClip 5109 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5110 { instance logic of movieClip 5109 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5112 { } movieClip 5114 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5115 { instance logic of movieClip 5114 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5117 { } movieClip 5168 { } movieClip 5299 { instance killer of movieClip 5117 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player._currentframe == 65) { _root.game.player.nextFrame(); _root.game.player.play(); } if (this.hitTest(_root.game.player) and _root.game.player.aliveAnim == true) { _root.game.player.alive = false; _root.game.player.gotoAndPlay('die'); } } } frame 8 { stop(); } frame 15 { stop(); } } movieClip 5301 { } movieClip 5328 { instance logic of movieClip 5301 { onClipEvent (enterFrame) { _parent.shock2.gotoAndStop(Math.floor(Math.random() * 4)); _parent.shock.gotoAndStop(Math.floor(Math.random() * 4)); } } } movieClip 5330 { } movieClip 5381 { } movieClip 5512 { instance killer of movieClip 5330 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player._currentframe == 65) { _root.game.player.nextFrame(); _root.game.player.play(); } if (this.hitTest(_root.game.player) and _root.game.player.aliveAnim == true) { _root.game.player.alive = false; _root.game.player.gotoAndPlay('die'); } } } frame 8 { stop(); } frame 15 { stop(); } } movieClip 5578 { frame 43 { if (_parent.state == true or _parent.chaos == true) { gotoAndPlay(1); } } frame 64 { stop(); } } movieClip 5580 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5581 { instance logic of movieClip 5580 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5584 { } movieClip 5586 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5587 { instance logic of movieClip 5586 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5590 { } movieClip 5592 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5593 { instance logic of movieClip 5592 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5595 { } movieClip 5597 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5598 { instance logic of movieClip 5597 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5602 { } movieClip 5604 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5605 { instance logic of movieClip 5604 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5607 { } movieClip 5609 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5610 { instance logic of movieClip 5609 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5612 { } movieClip 5614 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5615 { instance logic of movieClip 5614 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5617 { } movieClip 5619 { } movieClip 5620 { } movieClip 5622 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5623 { instance logic of movieClip 5622 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5625 { } movieClip 5627 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5628 { instance logic of movieClip 5627 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5630 { } movieClip 5632 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5633 { instance logic of movieClip 5632 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5635 { } movieClip 5637 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5638 { instance logic of movieClip 5637 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5640 { } movieClip 5642 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5643 { instance logic of movieClip 5642 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5645 { } movieClip 5647 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5648 { instance logic of movieClip 5647 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5650 { } movieClip 5652 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5653 { instance logic of movieClip 5652 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5656 { } movieClip 5658 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5659 { instance logic of movieClip 5658 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5662 { } movieClip 5664 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5665 { instance logic of movieClip 5664 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5668 { } movieClip 5670 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5671 { instance logic of movieClip 5670 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5674 { } movieClip 5676 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5677 { instance logic of movieClip 5676 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5679 { } movieClip 5681 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5682 { instance logic of movieClip 5681 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5701 { } movieClip 5703 { } movieClip 5705 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5706 { instance logic of movieClip 5705 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5708 { } movieClip 5710 { } movieClip 5712 { } movieClip 5713 { } movieClip 5715 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5716 { instance logic of movieClip 5715 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5720 { } movieClip 5722 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5723 { instance logic of movieClip 5722 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5725 { } movieClip 5727 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5728 { instance logic of movieClip 5727 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5730 { } movieClip 5732 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5733 { instance logic of movieClip 5732 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5735 { } movieClip 5737 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 5738 { instance logic of movieClip 5737 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 5754 { } movieClip 5756 { } movieClip 5757 { instance aaa of movieClip 5756 { onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '23'; _root.hud.info.gotoAndPlay('viewInfo'); } } } } } movieClip 5773 { } movieClip 5775 { } movieClip 5776 { instance aaa of movieClip 5775 { onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '22'; _root.hud.info.gotoAndPlay('viewInfo'); } } } } } movieClip 5792 { } movieClip 5794 { } movieClip 5795 { instance aaa of movieClip 5794 { onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '21'; _root.hud.info.gotoAndPlay('viewInfo'); } } } } } movieClip 5797 { } movieClip 5799 { } movieClip 5910 { instance killer of movieClip 5797 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player._currentframe == 65) { _root.game.player.nextFrame(); _root.game.player.play(); } if (this.hitTest(_root.game.player) and _root.game.player.aliveAnim == true) { _root.game.player.alive = false; _root.game.player.gotoAndPlay('die'); } } } frame 8 { stop(); } instance killer of movieClip 5799 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player._currentframe == 65) { _root.game.player.nextFrame(); _root.game.player.play(); } if (this.hitTest(_root.game.player) and _root.game.player.aliveAnim == true) { _root.game.player.alive = false; _root.game.player.gotoAndPlay('die'); } } } frame 15 { stop(); } } movieClip 5913 { } movieClip 5915 { } movieClip 5916 { instance sparkle of movieClip 5915 { onClipEvent (load) { speed = 1 + Math.random() * 2; _parent._x = 0.1000000014901161 * _parent._parent._width + Math.random() * (0.699999988079071 * _parent._parent._width); _parent._y = 0.05000000074505806 * _parent._parent._height + Math.random() * (0.8999999761581421 * _parent._parent._height); _parent._yscale = 100 + Math.random * 200; this._alpha = 100; } onClipEvent (enterFrame) { if (0 >= this._alpha) { speed = 1 + Math.random() * 2; _parent._x = 0.1000000014901161 * _parent._parent._width + Math.random() * (0.699999988079071 * _parent._parent._width); _parent._y = 0.05000000074505806 * _parent._parent._height + Math.random() * (0.8999999761581421 * _parent._parent._height); _parent._yscale = 100 + Math.random * 200; this._alpha = 100; } else { _parent._y -= speed; --this._alpha; } if (_parent._y < 100) { this._alpha -= 10; } } } } movieClip 5930 { instance uper of movieClip 5913 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player.alive == true) { if (-10 < _root.game.player.speedY) { _root.game.player.speedY -= 2.5; } if (_root.game.player.isFalling == false) { _root.game.player.gotoAndStop('fallStart'); _root.game.player.isFalling = true; } } } } frame 2 { stop(); } frame 4 { stop(); } } movieClip 5932 { } movieClip 5983 { } movieClip 6114 { frame 8 { stop(); } frame 15 { stop(); } } movieClip 6117 { } movieClip 6119 { } movieClip 6120 { instance sparkle of movieClip 6119 { onClipEvent (load) { speed = 1 + Math.random() * 2; _parent._x = 0.1000000014901161 * _parent._parent._width + Math.random() * (0.699999988079071 * _parent._parent._width); _parent._y = 0.05000000074505806 * _parent._parent._height + Math.random() * (0.8999999761581421 * _parent._parent._height); _parent._yscale = 100 + Math.random * 200; this._alpha = 100; } onClipEvent (enterFrame) { if (0 >= this._alpha) { speed = 1 + Math.random() * 2; _parent._x = 0.1000000014901161 * _parent._parent._width + Math.random() * (0.699999988079071 * _parent._parent._width); _parent._y = 0.05000000074505806 * _parent._parent._height + Math.random() * (0.8999999761581421 * _parent._parent._height); _parent._yscale = 100 + Math.random * 200; this._alpha = 100; } else { _parent._y -= speed; --this._alpha; } if (_parent._y < 100) { this._alpha -= 10; } } } } movieClip 6134 { instance uper of movieClip 6117 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player.alive == true) { if (-10 < _root.game.player.speedY) { _root.game.player.speedY -= 2.5; } if (_root.game.player.isFalling == false) { _root.game.player.gotoAndStop('fallStart'); _root.game.player.isFalling = true; } } } } frame 2 { stop(); } frame 4 { stop(); } } movieClip 6136 { } movieClip 6138 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 6139 { instance logic of movieClip 6138 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 6141 { } movieClip 6143 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 6144 { instance logic of movieClip 6143 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 6147 { } movieClip 6149 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 6150 { instance logic of movieClip 6149 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 6213 { frame 7 { gotoAndPlay(1); } frame 24 { gotoAndPlay(12); } frame 31 { stop(); } frame 35 { stop(); } frame 39 { stop(); } frame 77 { stop(); } } movieClip 6214 { } movieClip 6223 { instance mc11 of movieClip 6214 { onClipEvent (load) { mirrorTurnRight = true; _this._rotation = -_parent._rotation; } onClipEvent (enterFrame) { _parent.test = _parent.cacheAsBitmap; if (_root.reflections == false) { this._visible = false; } else { this._visible = true; if (Math.abs(_root.game.player._x - _parent._x) < 150 and Math.abs(_root.game.player._y - _parent._y) < 100) { _x = _root.game.player._x - _parent._x; _y = -(_root.game.player._y - _parent._y) / 6 + 2; ySkala = 100 - 4 * Math.abs(_y); if (ySkala < 10) { ySkala = 10; } _yscale = ySkala; this.player.gotoAndStop(_root.game.player._currentframe); if (_root.game.player.turnRight == true and mirrorTurnRight == false) { mirrorTurnRight = true; this.player._xscale *= -1; } if (_root.game.player.turnRight == false and mirrorTurnRight == true) { mirrorTurnRight = false; this.player._xscale *= -1; } } } } } } movieClip 6225 { } movieClip 6227 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 6228 { instance logic of movieClip 6227 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 6230 { } movieClip 6232 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 6233 { instance logic of movieClip 6232 { onClipEvent (load) { kolor = new Color(_parent.wires); kolor.setRGB(3355477); } } } movieClip 6249 { } movieClip 6251 { } movieClip 6252 { instance aa of movieClip 6251 { onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '2'; _root.hud.info.gotoAndPlay('viewInfo'); } } } } } movieClip 6268 { } movieClip 6270 { } movieClip 6271 { instance aaa of movieClip 6270 { onClipEvent (enterFrame) { if (_root.game.talk1 == true and _root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '1'; _root.hud.info.gotoAndPlay('viewInfo'); } } } } } movieClip 6287 { } movieClip 6289 { } movieClip 6290 { instance aaa of movieClip 6289 { onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '3'; _root.hud.info.gotoAndPlay('viewInfo'); } } } } } movieClip 6306 { } movieClip 6308 { } movieClip 6309 { instance aaa of movieClip 6308 { onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '4'; _root.hud.info.gotoAndPlay('viewInfo'); } } } } } movieClip 6325 { } movieClip 6327 { } movieClip 6328 { instance aaa of movieClip 6327 { onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '5'; _root.hud.info.gotoAndPlay('viewInfo'); } } } } } movieClip 6344 { } movieClip 6346 { } movieClip 6347 { instance aaa of movieClip 6346 { onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '6'; _root.hud.info.gotoAndPlay('viewInfo'); } } } } } movieClip 6363 { } movieClip 6365 { } movieClip 6366 { instance aaa of movieClip 6365 { onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.infoID = '7'; _root.hud.info.gotoAndPlay('viewInfo'); } } } } } movieClip 6474 { frame 1 { if (0 < _root.game.inBoxNorm) { _root.hud.norm._visible = false; } if (0 < _root.game.inBoxInv) { _root.hud.inv._visible = false; } if (0 < _root.game.inBoxAnd) { _root.hud.and._visible = false; } if (0 < _root.game.inBoxOr) { _root.hud.or._visible = false; } if (0 < _root.game.inBoxNand) { _root.hud.nand._visible = false; } if (0 < _root.game.inBoxNor) { _root.hud.nor._visible = false; } if (0 < _root.game.inBoxXor) { _root.hud.xor._visible = false; } _root.hud.counters.normCount += _root.game.inBoxNorm; _root.hud.counters.invCount += _root.game.inBoxInv; _root.hud.counters.andCount += _root.game.inBoxAnd; _root.hud.counters.orCount += _root.game.inBoxOr; _root.hud.counters.nandCount += _root.game.inBoxNand; _root.hud.counters.norCount += _root.game.inBoxNor; _root.hud.counters.xorCount += _root.game.inBoxXor; } frame 6 { if (0 < _root.game.inBoxNorm) { _root.hud.norm._visible = true; } if (0 < _root.game.inBoxInv) { _root.hud.inv._visible = true; } if (0 < _root.game.inBoxAnd) { _root.hud.and._visible = true; } if (0 < _root.game.inBoxOr) { _root.hud.or._visible = true; } if (0 < _root.game.inBoxNand) { _root.hud.nand._visible = true; } if (0 < _root.game.inBoxNor) { _root.hud.nor._visible = true; } if (0 < _root.game.inBoxXor) { _root.hud.xor._visible = true; } } frame 11 { if (0 < _root.game.inBoxNorm) { _root.hud.norm._visible = false; } if (0 < _root.game.inBoxInv) { _root.hud.inv._visible = false; } if (0 < _root.game.inBoxAnd) { _root.hud.and._visible = false; } if (0 < _root.game.inBoxOr) { _root.hud.or._visible = false; } if (0 < _root.game.inBoxNand) { _root.hud.nand._visible = false; } if (0 < _root.game.inBoxNor) { _root.hud.nor._visible = false; } if (0 < _root.game.inBoxXor) { _root.hud.xor._visible = false; } } frame 16 { if (0 < _root.game.inBoxNorm) { _root.hud.norm._visible = true; } if (0 < _root.game.inBoxInv) { _root.hud.inv._visible = true; } if (0 < _root.game.inBoxAnd) { _root.hud.and._visible = true; } if (0 < _root.game.inBoxOr) { _root.hud.or._visible = true; } if (0 < _root.game.inBoxNand) { _root.hud.nand._visible = true; } if (0 < _root.game.inBoxNor) { _root.hud.nor._visible = true; } if (0 < _root.game.inBoxXor) { _root.hud.xor._visible = true; } } frame 21 { if (0 < _root.game.inBoxNorm) { _root.hud.norm._visible = false; } if (0 < _root.game.inBoxInv) { _root.hud.inv._visible = false; } if (0 < _root.game.inBoxAnd) { _root.hud.and._visible = false; } if (0 < _root.game.inBoxOr) { _root.hud.or._visible = false; } if (0 < _root.game.inBoxNand) { _root.hud.nand._visible = false; } if (0 < _root.game.inBoxNor) { _root.hud.nor._visible = false; } if (0 < _root.game.inBoxXor) { _root.hud.xor._visible = false; } } frame 26 { if (0 < _root.game.inBoxNorm) { _root.hud.norm._visible = true; } if (0 < _root.game.inBoxInv) { _root.hud.inv._visible = true; } if (0 < _root.game.inBoxAnd) { _root.hud.and._visible = true; } if (0 < _root.game.inBoxOr) { _root.hud.or._visible = true; } if (0 < _root.game.inBoxNand) { _root.hud.nand._visible = true; } if (0 < _root.game.inBoxNor) { _root.hud.nor._visible = true; } if (0 < _root.game.inBoxXor) { _root.hud.xor._visible = true; } } frame 31 { if (0 < _root.game.inBoxNorm) { _root.hud.norm._visible = false; } if (0 < _root.game.inBoxInv) { _root.hud.inv._visible = false; } if (0 < _root.game.inBoxAnd) { _root.hud.and._visible = false; } if (0 < _root.game.inBoxOr) { _root.hud.or._visible = false; } if (0 < _root.game.inBoxNand) { _root.hud.nand._visible = false; } if (0 < _root.game.inBoxNor) { _root.hud.nor._visible = false; } if (0 < _root.game.inBoxXor) { _root.hud.xor._visible = false; } } frame 36 { if (0 < _root.game.inBoxNorm) { _root.hud.norm._visible = true; } if (0 < _root.game.inBoxInv) { _root.hud.inv._visible = true; } if (0 < _root.game.inBoxAnd) { _root.hud.and._visible = true; } if (0 < _root.game.inBoxOr) { _root.hud.or._visible = true; } if (0 < _root.game.inBoxNand) { _root.hud.nand._visible = true; } if (0 < _root.game.inBoxNor) { _root.hud.nor._visible = true; } if (0 < _root.game.inBoxXor) { _root.hud.xor._visible = true; } } frame 41 { if (0 < _root.game.inBoxNorm) { _root.hud.norm._visible = false; } if (0 < _root.game.inBoxInv) { _root.hud.inv._visible = false; } if (0 < _root.game.inBoxAnd) { _root.hud.and._visible = false; } if (0 < _root.game.inBoxOr) { _root.hud.or._visible = false; } if (0 < _root.game.inBoxNand) { _root.hud.nand._visible = false; } if (0 < _root.game.inBoxNor) { _root.hud.nor._visible = false; } if (0 < _root.game.inBoxXor) { _root.hud.xor._visible = false; } } frame 46 { if (0 < _root.game.inBoxNorm) { _root.hud.norm._visible = true; } if (0 < _root.game.inBoxInv) { _root.hud.inv._visible = true; } if (0 < _root.game.inBoxAnd) { _root.hud.and._visible = true; } if (0 < _root.game.inBoxOr) { _root.hud.or._visible = true; } if (0 < _root.game.inBoxNand) { _root.hud.nand._visible = true; } if (0 < _root.game.inBoxNor) { _root.hud.nor._visible = true; } if (0 < _root.game.inBoxXor) { _root.hud.xor._visible = true; } stop(); } } movieClip 6562 { } movieClip 6564 { } movieClip 6652 { } movieClip 6736 { frame 7 { gotoAndPlay(1); } frame 24 { gotoAndPlay(12); } frame 31 { stop(); } frame 35 { stop(); } frame 39 { stop(); } frame 63 { isReplacing = false; gotoAndPlay(1); } frame 77 { stop(); } } movieClip 6737 { } movieClip 6739 { } movieClip 6743 { instance mc11 of movieClip 6737 { onClipEvent (load) { mirrorTurnRight = true; } onClipEvent (enterFrame) { if (_root.reflections == false) { this._visible = false; } else { this._visible = true; if (Math.abs(_root.game.player._x - _parent._x) < 150 and Math.abs(_root.game.player._y - _parent._y) < 150) { _x = _root.game.player._x - _parent._x; _y = _root.game.player._y - _parent._y; xSkala = 150; _xscale = xSkala; ySkala = 150; _yscale = ySkala; this.player.gotoAndStop(_root.game.player._currentframe); if (_root.game.player.turnRight == true and mirrorTurnRight == false) { mirrorTurnRight = true; this.player._xscale *= -1; } if (_root.game.player.turnRight == false and mirrorTurnRight == true) { mirrorTurnRight = false; this.player._xscale *= -1; } } } } } instance guardian of movieClip 6739 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player)) { if (_root.game.player.targeting != 'box') { _root.game.player.targeting = 'box'; _root.game.crosshair._x = _parent._x; _root.game.crosshair._y = _parent._y; _root.game.crosshair.gotoAndPlay('show'); } } else { if (_root.game.player.targeting == 'box') { _root.game.player.targeting = 'none'; _root.game.crosshair.gotoAndStop('hide'); } } } } frame 2 { stop(); } frame 3 { _root.game.player.targeting = 'none'; _root.game.crosshair.gotoAndStop('hide'); stop(); } } movieClip 6745 { } movieClip 6780 { frame 2 { stop(); } instance winer of movieClip 6745 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player._x + _root.game._x, _root.game.player._y + _root.game._y) and _root.game.player._currentframe < 35) { _root.game.player.paused = true; _root.hud.info.talkingPause = true; _root.game.player._x = _parent._x; _root.game.player.gotoAndPlay('beamUp'); } } } frame 4 { stop(); } } movieClip 6782 { } movieClip 6787 { } movieClip 6791 { frame 22 { if (Math.random() < 0.5) { gotoAndPlay(21); } else { gotoAndPlay(1); } } } movieClip 6830 { } movieClip 7061 { frame 207 { stop(); } } movieClip 7078 { } movieClip 7089 { frame 1 { if (_parent.alive == true) { _parent.mouth.play(); } } frame 2 { if (_root.game.player._y < _root.game[_parent._name]._y) { this.gotoAndPlay('goUp'); } else { this.gotoAndPlay('down'); } } frame 52 { if (_parent.alive == true) { _parent.mackaAtak.play(); } } frame 53 { if (_root.game[_parent._name]._y < _root.game.player._y) { this.gotoAndPlay('goDown'); } else { this.gotoAndPlay('up'); } } } movieClip 7095 { } movieClip 7096 { } movieClip 7192 { frame 222 { stop(); } } movieClip 7193 { frame 1 { alive = true; } frame 28 { gotoAndPlay(1); } frame 41 { mouth.gotoAndStop(1); if (_parent.talk7 == false) { _root.hud.info.talk = '7'; _parent.talk7 = true; _root.game.player.paused = true; _root.hud.info.gotoAndPlay('talking'); } } frame 94 { stop(); } } movieClip 7194 { } movieClip 7277 { frame 1 { aliveAnim = true; } frame 7 { gotoAndPlay(1); } frame 12 { aliveAnim = true; } frame 24 { gotoAndPlay(12); } frame 27 { aliveAnim = true; } frame 29 { aliveAnim = true; } frame 31 { aliveAnim = true; gotoAndPlay(29); } frame 35 { aliveAnim = true; gotoAndPlay(33); } frame 39 { aliveAnim = true; gotoAndPlay(37); } frame 51 { if (targeting == 'box') { _root.soundsBox.boxOpen.start(0, 1); _root.game.box.gotoAndStop('empty'); } else { inserting = 'broken'; if (_root.hud.selected == 1) { inserting = 'norm'; } if (_root.hud.selected == 2) { inserting = 'inv'; } if (_root.hud.selected == 3) { inserting = 'and'; } if (_root.hud.selected == 4) { inserting = 'or'; } if (_root.hud.selected == 5) { inserting = 'nand'; } if (_root.hud.selected == 6) { inserting = 'nor'; } if (_root.hud.selected == 7) { inserting = 'xor'; } if (_root.game[targeting].content == 'broken') { _root.soundsBox.gateInsert.start(0, 1); _root.game[targeting].content = inserting; _root.game[targeting].gotoAndStop(inserting); --_root.hud.counters[inserting + 'Count']; } else { _root.soundsBox.gateRemove.start(0, 1); _root.game[targeting].gotoAndStop('broken'); ++_root.hud.counters[_root.game[targeting].content + 'Count']; _root.game[targeting].content = 'broken'; } aliveAnim = true; if (_root.hud.counters.normCount == 0) { _root.hud.norm._alpha = 25; } else { _root.hud.norm._alpha = 100; } if (_root.hud.counters.invCount == 0) { _root.hud.inv._alpha = 25; } else { _root.hud.inv._alpha = 100; } if (_root.hud.counters.andCount == 0) { _root.hud.and._alpha = 25; } else { _root.hud.and._alpha = 100; } if (_root.hud.counters.orCount == 0) { _root.hud.or._alpha = 25; } else { _root.hud.or._alpha = 100; } if (_root.hud.counters.nandCount == 0) { _root.hud.nand._alpha = 25; } else { _root.hud.nand._alpha = 100; } if (_root.hud.counters.norCount == 0) { _root.hud.nor._alpha = 25; } else { _root.hud.nor._alpha = 100; } if (_root.hud.counters.xorCount == 0) { _root.hud.xor._alpha = 25; } else { _root.hud.xor._alpha = 100; } } } frame 63 { aliveAnim = true; isReplacing = false; gotoAndPlay(1); } frame 65 { aliveAnim = false; _root.soundsBox.die.start(0, 0); } frame 71 { if (turnRight == false) { bum._xscale *= -1; } } frame 127 { stop(); _root.game.gotoAndPlay('preLevel' + _root.game.levelNum); } frame 128 { _root.soundsBox.beamUp.start(0, 0); } frame 201 { if (_root.game.levelNum < 15) { i = _root.game.levelNum + 1; _root.save_game.data['lev' + i] = true; _root.save_game.flush(); } if (_root.game.levelNum == 1) { _root.game.gotoAndPlay('preLevel2'); } else { if (_root.game.levelNum == 2) { _root.game.gotoAndPlay('preLevel3'); } else { if (_root.game.levelNum == 3) { _root.game.gotoAndPlay('preLevel4'); } else { if (_root.game.levelNum == 4) { _root.game.gotoAndPlay('preLevel5'); } else { if (_root.game.levelNum == 5) { _root.game.gotoAndPlay('preLevel6'); } else { if (_root.game.levelNum == 6) { _root.game.gotoAndPlay('preLevel7'); } else { if (_root.game.levelNum == 7) { _root.game.gotoAndPlay('preLevel8'); } else { if (_root.game.levelNum == 8) { _root.game.gotoAndPlay('preLevel9'); } else { if (_root.game.levelNum == 9) { _root.game.gotoAndPlay('preLevel10'); } else { if (_root.game.levelNum == 10) { _root.game.gotoAndPlay('preLevel11'); } else { if (_root.game.levelNum == 11) { _root.game.gotoAndPlay('preLevel12'); } else { if (_root.game.levelNum == 12) { _root.game.gotoAndPlay('preLevel13'); } else { if (_root.game.levelNum == 13) { _root.game.gotoAndPlay('preLevel14'); } else { if (_root.game.levelNum == 14) { _root.game.gotoAndPlay('preLevel15'); } else { if (_root.game.levelNum == 15) { _root.game.gotoAndStop('endGame'); } } } } } } } } } } } } } } } stop(); } } movieClip 7291 { frame 2 { stop(); } frame 27 { gotoAndPlay(3); } } movieClip 7355 { frame 1 { _root.game.player._visible = false; _root.game.player.alive = true; _root.game.player.born = false; if (0 < this._x - _root.scena._width / 2 and this._x + _root.scena._width / 2 < _root.game.walls._width) { _root.game._x = _root.scena._width / 2 - this._x; } if (0 < this._y - _root.scena._height / 2 and this._y + _root.scena._height / 2 < _root.game.walls._height) { _root.game._y = _root.scena._height / 2 - this._y; } if (0 >= this._x - _root.scena._width / 2) { _root.game._x = 0; } if (this._x + _root.scena._width / 2 >= _root.game.walls._width) { _root.game._x = -_root.game.walls._width + _root.scena._width; } if (0 >= this._y - _root.scena._height / 2) { _root.game._y = 0; } if (this._y + _root.scena._height / 2 >= _root.game.walls._height) { _root.game._y = -_root.game.walls._height + _root.scena._height; } } frame 2 { _root.soundsBox.beamDown.start(0, 0); } frame 61 { _root.game.player._x = this._x; _root.game.player._y = this._y; _root.game.player.born = true; _root.game.player.isFalling = false; _root.game.player.isJumping = false; _root.game.player.gotoAndStop('fallStart'); _root.game.player._visible = true; _root.game.player.alive = true; } frame 67 { _root.game.player.gotoAndStop('fallStart'); } frame 68 { stop(); } } movieClip 7385 { } movieClip 7394 { } movieClip 7400 { } movieClip 7443 { } movieClip 7445 { } movieClip 7475 { } movieClip 7478 { instance zrenica of movieClip 7475 { onClipEvent (enterFrame) { _root.game.boss15x1.okob.zrenica._x = (_root.game.player._x - _root.game.boss15x1._x) / 15; _root.game.boss15x1.okob.zrenica._y = (_root.game.player._y - _root.game.boss15x1._y) / 20; } } } movieClip 7770 { frame 1 { alive = true; maybeDie = false; } frame 2 { maybeDie = false; stop(); } instance okob of movieClip 7478 { onClipEvent (enterFrame) { if (_parent.alive == true and _root.game.player.paused == false) { if (_root.game.player._x < _root.game.boss15x1._x and _root.game.player._y < _root.game.boss15x1._y) { _parent.macka1.play(); } if (_root.game.boss15x1._x < _root.game.player._x and _root.game.player._y < _root.game.boss15x1._y) { _parent.macka2.play(); } if (_root.game.player._x < _root.game.boss15x1._x and _root.game.boss15x1._y < _root.game.player._y) { _parent.macka4.play(); } if (_root.game.boss15x1._x < _root.game.player._x and _root.game.boss15x1._y < _root.game.player._y) { _parent.macka3.play(); } if (_parent.hitTest(_root.game.player._x + _root.game.player._width / 3 + _root.game._x, _root.game.player._y + _root.game._y, true) or _parent.hitTest(_root.game.player._x - _root.game.player._width / 3 + _root.game._x, _root.game.player._y + _root.game._y, true) or _parent.hitTest(_root.game.player._x + _root.game.player._width / 3 + _root.game._x, _root.game.player._y - _root.game.player._height + _root.game._y, true) or _parent.hitTest(_root.game.player._x - _root.game.player._width / 3 + _root.game._x, _root.game.player._y - _root.game.player._height + _root.game._y, true) or _parent.hitTest(_root.game.player._x + _root.game._x, _root.game.player._y + _root.game._y, true)) { if (_root.game.player._currentframe == 65) { _root.game.player.nextFrame(); _root.game.player.play(); } if (_root.game.player.aliveAnim == true) { _root.game.player.alive = false; _root.game.player.gotoAndPlay('die'); } } if (_root.game.wire15x12.state == false and _root.game.wire15x12.chaos == false and (_root.game.wire15x22.state == false and _root.game.wire15x22.chaos == false) and (_root.game.wire15x20.state == false and _root.game.wire15x20.chaos == false) and (_root.game.wire15x7.state == false and _root.game.wire15x7.chaos == false) and (_root.game.wire15x13.state == false and _root.game.wire15x13.chaos == false) and (_root.game.wire15x3.state == false and _root.game.wire15x3.chaos == false) and (_root.game.wire15x19.state == false and _root.game.wire15x19.chaos == false) and (_root.game.wire15x15.state == false and _root.game.wire15x15.chaos == false) and _parent.maybeDie == false) { _parent.maybeDie = true; _parent.gotoAndPlay('maybeDie'); } } } } frame 28 { if (_root.game.wire15x12.state == false and _root.game.wire15x12.chaos == false and (_root.game.wire15x22.state == false and _root.game.wire15x22.chaos == false) and (_root.game.wire15x20.state == false and _root.game.wire15x20.chaos == false) and (_root.game.wire15x7.state == false and _root.game.wire15x7.chaos == false) and (_root.game.wire15x13.state == false and _root.game.wire15x13.chaos == false) and (_root.game.wire15x3.state == false and _root.game.wire15x3.chaos == false) and (_root.game.wire15x19.state == false and _root.game.wire15x19.chaos == false) and (_root.game.wire15x15.state == false and _root.game.wire15x15.chaos == false) and _root.game.player.paused == false) { alive = false; gotoAndPlay(31); } else { gotoAndStop(2); } } frame 44 { _root.hud.info.talk = '13'; _root.game.player.paused = true; _root.hud.info.gotoAndPlay('talking'); } frame 357 { _root.game.exit.gotoAndStop('turnOn'); } frame 370 { stop(); } } movieClip 7780 { } movieClip 7781 { } movieClip 7783 { } movieClip 7823 { } movieClip 7827 { frame 22 { if (Math.random() < 0.5) { gotoAndPlay(21); } else { gotoAndPlay(1); } } } movieClip 7829 { } movieClip 7834 { } movieClip 7836 { } movieClip 7838 { } movieClip 7840 { } movieClip 7841 { } movieClip 7843 { } movieClip 8935 { instance killer of movieClip 7843 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player._currentframe == 65) { _root.game.player.nextFrame(); _root.game.player.play(); } if (this.hitTest(_root.game.player) and _root.game.player.aliveAnim == true) { _root.game.player.alive = false; _root.game.player.gotoAndPlay('die'); } } } frame 61 { if (hitting == true) { gotoAndPlay(43); } } frame 69 { _root.game.box._x = _root.game.boss10x1._x; _root.game.box._visible = true; } frame 75 { _root.game.player.gotoAndStop('idle'); _root.hud.info.talk = '11'; _root.game.talk10 = true; _root.game.player.paused = true; _root.hud.info._visible = false; _root.hud.info.gotoAndPlay('talking'); } frame 127 { stop(); } } movieClip 8942 { } movieClip 8949 { } movieClip 9027 { frame 1 { _root.game.boss10x1._visible = false; _root.game.boss10x1.alive = true; _root.game.boss10x1.born = false; } frame 47 { _root.game.player.beamDown.start(0, 0); } frame 118 { _root.game.boss10x1.born = true; _root.game.boss10x1._visible = true; _root.game.boss10x1.alive = true; } frame 127 { stop(); } } movieClip 9792 { frame 2 { stop(); } frame 34 { _root.game.gate9x1.gotoAndStop('broken'); stop(); } frame 139 { gotoAndPlay(127); } } movieClip 9794 { } movieClip 9801 { } movieClip 9803 { } movieClip 9804 { instance killer of movieClip 9803 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player._currentframe == 65) { _root.game.player.nextFrame(); _root.game.player.play(); } if (this.hitTest(_root.game.player) and _root.game.player.aliveAnim == true) { _root.game.player.alive = false; _root.game.player.gotoAndPlay('die'); } } } } movieClip 9806 { } movieClip 9808 { } movieClip 9810 { } movieClip 9825 { } movieClip 10456 { frame 1 { gotoAndPlay('preLevel' + _root.targetLevel); } frame 3 { _root.game._x = 0; _root.game._y = 0; _root.hud._visible = false; _root.hud.info.talkingPause = false; stopAllSounds(); } frame 53 { walls.gotoAndStop('level1'); walls._visible = false; levelNum = 1; levBackground.gotoAndStop('level1'); _root.hud._visible = true; _root.hud.levelInfo.gotoAndStop('level1'); _root.musicBox.howItBegins.start(0, 999); inBoxNorm = 1; inBoxInv = 0; inBoxOr = 0; inBoxAnd = 0; inBoxNand = 0; inBoxNor = 0; inBoxXor = 0; talk1 = false; talk2 = false; talk3 = false; input1x1.out = 'wire1x1'; input1x1.gotoAndPlay('on'); gate1x1.inA = 'wire1x1'; gate1x1.out = 'wire1x2'; gate1x1.inputs = 1; output1x1.inA = 'wire1x2'; output1x1.oneActive = true; output1x1.isOK = false; output1x1.chaos = false; output1x1.state = 50; output1x1.controled = 'exit'; exit.state = true; exit.desiredState = true; _root.hud.counters.normCount = 0; _root.hud.counters.invCount = 0; _root.hud.counters.andCount = 0; _root.hud.counters.orCount = 0; _root.hud.counters.nandCount = 0; _root.hud.counters.norCount = 0; _root.hud.counters.xorCount = 0; _root.hud.avaible = 1; _root.hud.selected = 1; stop(); } instance player of movieClip 7277 { onClipEvent (load) { speedY = 0; speedX = -3; maxSpeedY = 20; maxSpeedX = 6; jumpPower = 22; gravity = 2; walkingSpeed = 5; turnRight = true; isJumping = false; isRunning = false; isFalling = false; isReplacing = false; alive = true; aliveAnim = true; targeting = 'none'; born = false; paused = false; } onClipEvent (enterFrame) { if (alive == true and born == true and paused == false) { if (Key.isDown(Key.SPACE)) { if (isReplacing == false and isFalling == false and isJumping == false and isRunning == false and targeting != 'none') { isReplacing = true; if (_root.game[targeting].content != 'broken') { this.gotoAndPlay('replace'); } else { if (_root.hud.selected == 1 and 0 < _root.hud.counters.normCount or _root.hud.selected == 2 and 0 < _root.hud.counters.invCount or _root.hud.selected == 3 and 0 < _root.hud.counters.andCount or _root.hud.selected == 4 and 0 < _root.hud.counters.orCount or _root.hud.selected == 5 and 0 < _root.hud.counters.nandCount or _root.hud.selected == 6 and 0 < _root.hud.counters.norCount or _root.hud.selected == 7 and 0 < _root.hud.counters.xorCount) { if (2 >= _root.hud.selected and _root.game[targeting].inputs == 1 or 2 < _root.hud.selected and _root.game[targeting].inputs == 2) { this.gotoAndPlay('replace'); } else { if (_root.hud.info.isBusy == false) { _root.hud.info.gotoAndPlay('wontFit'); } isReplacing = false; } } else { isReplacing = false; } } } } if (isReplacing == false) { if (Key.isDown(Key.LEFT) or Key.isDown(65)) { speedX -= 2; if (turnRight == true) { _xscale = _xscale * -1; turnRight = false; } if (speedX < -maxSpeedX) { speedX = -maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } else { if (Key.isDown(Key.RIGHT) or Key.isDown(68)) { speedX += 2; if (turnRight == false) { _xscale = _xscale * -1; turnRight = true; } if (maxSpeedX < speedX) { speedX = maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } } if (!Key.isDown(Key.LEFT) and !Key.isDown(Key.RIGHT) and !Key.isDown(68) and !Key.isDown(65)) { if (isFalling == false) { if (isRunning == true and 5 < Math.abs(speedX) and isJumping == false) { isRunning = false; this.gotoAndStop('breakStart'); } else { if (speedX == 0) { if (isJumping == false) { isRunning = false; this.gotoAndPlay('idle'); } } } } } if (Key.isDown(Key.UP) or Key.isDown(87)) { if (isJumping == false and isFalling == false) { speedY = -jumpPower; this.gotoAndPlay('jumpStart'); _root.soundsBox.marioJump.start(0, 1); isJumping = true; } } } speedY += gravity; if (maxSpeedY < speedY) { speedY = maxSpeedY; } nextY = this._y + speedY; nextX = this._x + speedX; while (_root.game.walls.hitTest(nextX + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; --nextX; } while (_root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; ++nextX; } if (this._y + 2.5 < nextY and isJumping == false) { if (isFalling == false) { this.gotoAndStop('fallStart'); } isFalling = true; } this._y = nextY; this._x = nextX; if (0 < speedX) { speedX -= 0.5; } if (speedX < 0) { speedX += 0.5; } if (speedX < 0.5 and -0.5 < speedX) { speedX = 0; } if (0 < this._x - _root.scena._width / 2 and this._x + _root.scena._width / 2 < _root.game.walls._width) { _root.game._x = Math.round(_root.scena._width / 2 - nextX); } if (0 < this._y - _root.scena._height / 2 and this._y + _root.scena._height / 2 < _root.game.walls._height) { _root.game._y = Math.round(_root.scena._height / 2 - nextY); } } } } instance talking1 of movieClip 9810 { onClipEvent (enterFrame) { if (_parent.talk1 == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.talk = '1'; _parent.talk1 = true; _root.game.player.paused = true; _root.hud.info.gotoAndPlay('talking'); } } } } instance talking2 of movieClip 9810 { onClipEvent (enterFrame) { if (_parent.talk2 == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.talk = '2'; _parent.talk2 = true; _root.game.player.paused = true; _root.hud.info.gotoAndPlay('talking'); } } } } instance talking3 of movieClip 9810 { onClipEvent (enterFrame) { if (_parent.talk3 == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.talk = '3'; _parent.talk3 = true; _root.game.player.paused = true; _root.hud.info.gotoAndPlay('talking'); } } } } frame 54 { _root.game._x = 0; _root.game._y = 0; _root.hud._visible = false; _root.hud.info.talkingPause = false; stopAllSounds(); } frame 104 { walls.gotoAndStop('level2'); walls._visible = false; levelNum = 2; levBackground.gotoAndStop('level2'); _root.hud._visible = true; _root.hud.levelInfo.gotoAndStop('level2'); _root.musicBox.newFriendly.start(0, 999); inBoxNorm = 1; inBoxInv = 1; inBoxOr = 0; inBoxAnd = 0; inBoxNand = 0; inBoxNor = 0; inBoxXor = 0; talk1 = false; talk2 = false; talk3 = false; input2x1.out = 'wire2x1'; input2x2.out = 'wire2x3'; input2x1.gotoAndPlay('on'); input2x2.gotoAndPlay('on'); gate2x1.inA = 'wire2x1'; gate2x1.out = 'wire2x2'; gate2x1.inputs = 1; gate2x1.gotoAndStop('norm'); gate2x2.inA = 'wire2x3'; gate2x2.out = 'wire2x4'; gate2x2.inputs = 1; output2x1.inA = 'wire2x2'; output2x1.oneActive = false; output2x1.isOK = false; output2x1.chaos = false; output2x1.state = 50; output2x1.controled = 'forcefield2x1'; output2x2.inA = 'wire2x4'; output2x2.oneActive = true; output2x2.isOK = false; output2x2.chaos = false; output2x2.state = 50; output2x2.controled = 'forcefield2x2'; output2x3.inA = 'wire2x2'; output2x3.oneActive = true; output2x3.isOK = false; output2x3.chaos = false; output2x3.state = 50; output2x3.controled = 'exit'; forcefield2x1.state = false; forcefield2x1.desiredState = false; forcefield2x2.state = false; forcefield2x2.desiredState = false; exit.state = true; exit.desiredState = true; _root.hud.counters.normCount = 0; _root.hud.counters.invCount = 0; _root.hud.counters.andCount = 0; _root.hud.counters.orCount = 0; _root.hud.counters.nandCount = 0; _root.hud.counters.norCount = 0; _root.hud.counters.xorCount = 0; _root.hud.avaible = 2; _root.hud.selected = 1; stop(); } instance player of movieClip 7277 { onClipEvent (load) { speedY = 0; speedX = -3; maxSpeedY = 20; maxSpeedX = 6; jumpPower = 22; gravity = 2; walkingSpeed = 5; turnRight = true; isJumping = false; isRunning = false; isFalling = false; isReplacing = false; alive = true; aliveAnim = true; targeting = 'none'; born = false; paused = false; } onClipEvent (enterFrame) { if (alive == true and born == true and paused == false) { if (Key.isDown(Key.SPACE)) { if (isReplacing == false and isFalling == false and isJumping == false and isRunning == false and targeting != 'none') { isReplacing = true; if (_root.game[targeting].content != 'broken') { this.gotoAndPlay('replace'); } else { if (_root.hud.selected == 1 and 0 < _root.hud.counters.normCount or _root.hud.selected == 2 and 0 < _root.hud.counters.invCount or _root.hud.selected == 3 and 0 < _root.hud.counters.andCount or _root.hud.selected == 4 and 0 < _root.hud.counters.orCount or _root.hud.selected == 5 and 0 < _root.hud.counters.nandCount or _root.hud.selected == 6 and 0 < _root.hud.counters.norCount or _root.hud.selected == 7 and 0 < _root.hud.counters.xorCount) { if (2 >= _root.hud.selected and _root.game[targeting].inputs == 1 or 2 < _root.hud.selected and _root.game[targeting].inputs == 2) { this.gotoAndPlay('replace'); } else { if (_root.hud.info.isBusy == false) { _root.hud.info.gotoAndPlay('wontFit'); } isReplacing = false; } } else { isReplacing = false; } } } } if (isReplacing == false) { if (Key.isDown(Key.LEFT) or Key.isDown(65)) { speedX -= 2; if (turnRight == true) { _xscale = _xscale * -1; turnRight = false; } if (speedX < -maxSpeedX) { speedX = -maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } else { if (Key.isDown(Key.RIGHT) or Key.isDown(68)) { speedX += 2; if (turnRight == false) { _xscale = _xscale * -1; turnRight = true; } if (maxSpeedX < speedX) { speedX = maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } } if (!Key.isDown(Key.LEFT) and !Key.isDown(Key.RIGHT) and !Key.isDown(68) and !Key.isDown(65)) { if (isFalling == false) { if (isRunning == true and 5 < Math.abs(speedX) and isJumping == false) { isRunning = false; this.gotoAndStop('breakStart'); } else { if (speedX == 0) { if (isJumping == false) { isRunning = false; this.gotoAndPlay('idle'); } } } } } if (Key.isDown(Key.UP) or Key.isDown(87)) { if (isJumping == false and isFalling == false) { speedY = -jumpPower; this.gotoAndPlay('jumpStart'); _root.soundsBox.marioJump.start(0, 1); isJumping = true; } } } speedY += gravity; if (maxSpeedY < speedY) { speedY = maxSpeedY; } nextY = this._y + speedY; nextX = this._x + speedX; while (_root.game.walls.hitTest(nextX + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; --nextX; } while (_root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; ++nextX; } if (this._y + 2.5 < nextY and isJumping == false) { if (isFalling == false) { this.gotoAndStop('fallStart'); } isFalling = true; } this._y = nextY; this._x = nextX; if (0 < speedX) { speedX -= 0.5; } if (speedX < 0) { speedX += 0.5; } if (speedX < 0.5 and -0.5 < speedX) { speedX = 0; } if (0 < this._x - _root.scena._width / 2 and this._x + _root.scena._width / 2 < _root.game.walls._width) { _root.game._x = Math.round(_root.scena._width / 2 - nextX); } if (0 < this._y - _root.scena._height / 2 and this._y + _root.scena._height / 2 < _root.game.walls._height) { _root.game._y = Math.round(_root.scena._height / 2 - nextY); } } } } frame 105 { _root.game._x = 0; _root.game._y = 0; _root.hud._visible = false; _root.hud.info.talkingPause = false; stopAllSounds(); } frame 155 { walls.gotoAndStop('level3'); walls._visible = false; levelNum = 3; levBackground.gotoAndStop('level3'); _root.hud._visible = true; _root.musicBox.basement.start(0, 999); _root.hud.levelInfo.gotoAndStop('level3'); inBoxNorm = 1; inBoxInv = 0; inBoxOr = 0; inBoxAnd = 1; inBoxNand = 0; inBoxNor = 0; inBoxXor = 0; talk4 = false; talk5 = false; input3x1.out = 'wire3x1'; input3x2.out = 'wire3x2'; input3x1.gotoAndPlay('on'); input3x2.gotoAndPlay('off'); gate3x3.inA = 'wire3x1'; gate3x3.inB = 'wire3x2'; gate3x3.out = 'wire3x3'; gate3x3.inputs = 2; gate3x3.gotoAndStop('and'); gate3x5.inA = 'wire3x3'; gate3x5.out = 'wire3x5'; gate3x5.inputs = 1; gate3x5.gotoAndStop('inv'); gate3x4.inA = 'wire3x6'; gate3x4.out = 'wire3x7'; gate3x4.inputs = 1; gate3x4.gotoAndStop('virused1'); gate3x1.inA = 'wire3x1'; gate3x1.inB = 'wire3x5'; gate3x1.out = 'wire3x6'; gate3x1.inputs = 2; gate3x1.gotoAndStop('or'); output3x1.inA = 'wire3x7'; output3x1.oneActive = true; output3x1.isOK = false; output3x1.chaos = false; output3x1.state = 50; output3x1.controled = 'exit'; exit.state = true; exit.desiredState = true; _root.hud.counters.normCount = 0; _root.hud.counters.invCount = 0; _root.hud.counters.andCount = 0; _root.hud.counters.orCount = 0; _root.hud.counters.nandCount = 0; _root.hud.counters.norCount = 0; _root.hud.counters.xorCount = 0; _root.hud.avaible = 4; _root.hud.selected = 1; stop(); } instance player of movieClip 7277 { onClipEvent (load) { speedY = 0; speedX = -3; maxSpeedY = 20; maxSpeedX = 6; jumpPower = 22; gravity = 2; walkingSpeed = 5; turnRight = true; isJumping = false; isRunning = false; isFalling = false; isReplacing = false; alive = true; aliveAnim = true; targeting = 'none'; born = false; paused = false; } onClipEvent (enterFrame) { if (alive == true and born == true and paused == false) { if (Key.isDown(Key.SPACE)) { if (isReplacing == false and isFalling == false and isJumping == false and isRunning == false and targeting != 'none') { isReplacing = true; if (_root.game[targeting].content != 'broken') { this.gotoAndPlay('replace'); } else { if (_root.hud.selected == 1 and 0 < _root.hud.counters.normCount or _root.hud.selected == 2 and 0 < _root.hud.counters.invCount or _root.hud.selected == 3 and 0 < _root.hud.counters.andCount or _root.hud.selected == 4 and 0 < _root.hud.counters.orCount or _root.hud.selected == 5 and 0 < _root.hud.counters.nandCount or _root.hud.selected == 6 and 0 < _root.hud.counters.norCount or _root.hud.selected == 7 and 0 < _root.hud.counters.xorCount) { if (2 >= _root.hud.selected and _root.game[targeting].inputs == 1 or 2 < _root.hud.selected and _root.game[targeting].inputs == 2) { this.gotoAndPlay('replace'); } else { if (_root.hud.info.isBusy == false) { _root.hud.info.gotoAndPlay('wontFit'); } isReplacing = false; } } else { isReplacing = false; } } } } if (isReplacing == false) { if (Key.isDown(Key.LEFT) or Key.isDown(65)) { speedX -= 2; if (turnRight == true) { _xscale = _xscale * -1; turnRight = false; } if (speedX < -maxSpeedX) { speedX = -maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } else { if (Key.isDown(Key.RIGHT) or Key.isDown(68)) { speedX += 2; if (turnRight == false) { _xscale = _xscale * -1; turnRight = true; } if (maxSpeedX < speedX) { speedX = maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } } if (!Key.isDown(Key.LEFT) and !Key.isDown(Key.RIGHT) and !Key.isDown(68) and !Key.isDown(65)) { if (isFalling == false) { if (isRunning == true and 5 < Math.abs(speedX) and isJumping == false) { isRunning = false; this.gotoAndStop('breakStart'); } else { if (speedX == 0) { if (isJumping == false) { isRunning = false; this.gotoAndPlay('idle'); } } } } } if (Key.isDown(Key.UP) or Key.isDown(87)) { if (isJumping == false and isFalling == false) { speedY = -jumpPower; this.gotoAndPlay('jumpStart'); _root.soundsBox.marioJump.start(0, 1); isJumping = true; } } } speedY += gravity; if (maxSpeedY < speedY) { speedY = maxSpeedY; } nextY = this._y + speedY; nextX = this._x + speedX; while (_root.game.walls.hitTest(nextX + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; --nextX; } while (_root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; ++nextX; } if (this._y + 2.5 < nextY and isJumping == false) { if (isFalling == false) { this.gotoAndStop('fallStart'); } isFalling = true; } this._y = nextY; this._x = nextX; if (0 < speedX) { speedX -= 0.5; } if (speedX < 0) { speedX += 0.5; } if (speedX < 0.5 and -0.5 < speedX) { speedX = 0; } if (0 < this._x - _root.scena._width / 2 and this._x + _root.scena._width / 2 < _root.game.walls._width) { _root.game._x = Math.round(_root.scena._width / 2 - nextX); } if (0 < this._y - _root.scena._height / 2 and this._y + _root.scena._height / 2 < _root.game.walls._height) { _root.game._y = Math.round(_root.scena._height / 2 - nextY); } } } } instance talking4 of movieClip 9806 { onClipEvent (enterFrame) { if (_parent.talk4 == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.talk = '4'; _parent.talk4 = true; _root.game.player.paused = true; _root.hud.info.gotoAndPlay('talking'); } } } } instance talking5 of movieClip 9806 { onClipEvent (enterFrame) { if (_parent.talk5 == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.talk = '5'; _parent.talk5 = true; _root.game.player.paused = true; _root.hud.info.gotoAndPlay('talking'); } } } } frame 156 { _root.game._x = 0; _root.game._y = 0; _root.hud._visible = false; _root.hud.info.talkingPause = false; stopAllSounds(); } frame 206 { walls.gotoAndStop('level4'); walls._visible = false; levelNum = 4; levBackground.gotoAndStop('level4'); _root.hud._visible = true; inBoxNorm = 1; inBoxInv = 0; inBoxOr = 1; inBoxAnd = 2; inBoxNand = 2; inBoxNor = 1; inBoxXor = 0; _root.musicBox.thinking.start(0, 999); _root.hud.levelInfo.gotoAndStop('level4'); input4x1.out = 'wire4x21'; input4x2.out = 'wire4x2'; input4x3.out = 'wire4x1'; input4x5.out = 'wire4x18'; input4x6.out = 'wire4x17'; input4x7.out = 'wire4x4'; input4x8.out = 'wire4x3'; input4x1.gotoAndPlay('on'); input4x2.gotoAndPlay('off'); input4x3.gotoAndPlay('off'); input4x5.gotoAndPlay('on'); input4x6.gotoAndPlay('off'); input4x7.gotoAndPlay('off'); input4x8.gotoAndPlay('on'); gate4x1.inA = 'wire4x12'; gate4x1.out = 'wire4x20'; gate4x1.inputs = 1; gate4x1.gotoAndStop('virused1'); gate4x2.inA = 'wire4x1'; gate4x2.inB = 'wire4x2'; gate4x2.out = 'wire4x5'; gate4x2.inputs = 2; gate4x3.inA = 'wire4x1'; gate4x3.inB = 'wire4x2'; gate4x3.out = 'wire4x7'; gate4x3.inputs = 2; gate4x4.inA = 'wire4x5'; gate4x4.inB = 'wire4x7'; gate4x4.out = 'wire4x10'; gate4x4.inputs = 2; gate4x5.inA = 'wire4x10'; gate4x5.out = 'wire4x11'; gate4x5.inputs = 1; gate4x5.gotoAndStop('inv'); gate4x6.inA = 'wire4x3'; gate4x6.inB = 'wire4x3'; gate4x6.out = 'wire4x6'; gate4x6.inputs = 2; gate4x7.inA = 'wire4x4'; gate4x7.inB = 'wire4x4'; gate4x7.out = 'wire4x8'; gate4x7.inputs = 2; gate4x8.inA = 'wire4x6'; gate4x8.inB = 'wire4x8'; gate4x8.out = 'wire4x9'; gate4x8.inputs = 2; gate4x9.inA = 'wire4x20'; gate4x9.inB = 'wire4x21'; gate4x9.out = 'wire4x16'; gate4x9.inputs = 2; gate4x10.inA = 'wire4x20'; gate4x10.inB = 'wire4x21'; gate4x10.out = 'wire4x19'; gate4x10.inputs = 2; gate4x11.inA = 'wire4x19'; gate4x11.inB = 'wire4x16'; gate4x11.out = 'wire4x15'; gate4x11.inputs = 2; gate4x12.inA = 'wire4x17'; gate4x12.inB = 'wire4x18'; gate4x12.out = 'wire4x14'; gate4x12.inputs = 2; gate4x12.gotoAndStop('nand'); gate4x13.inA = 'wire4x18'; gate4x13.inB = 'wire4x18'; gate4x13.out = 'wire4x13'; gate4x13.inputs = 2; gate4x13.gotoAndStop('nor'); gate4x14.inA = 'wire4x13'; gate4x14.inB = 'wire4x14'; gate4x14.out = 'wire4x12'; gate4x14.inputs = 2; gate4x14.gotoAndStop('nand'); gate4x15.inA = 'wire4x11'; gate4x15.inB = 'wire4x15'; gate4x15.out = 'wire4x22'; gate4x15.inputs = 2; gate4x15.gotoAndStop('and'); output4x1.inA = 'wire4x22'; output4x1.oneActive = true; output4x1.isOK = false; output4x1.chaos = false; output4x1.state = 50; output4x1.controled = 'exit'; output4x2.inA = 'wire4x9'; output4x2.oneActive = true; output4x2.isOK = false; output4x2.chaos = false; output4x2.state = 50; output4x2.controled = 'forcefield4x1'; forcefield4x1.state = false; forcefield4x1.desiredState = false; exit.state = true; exit.desiredState = true; _root.hud.counters.normCount = 0; _root.hud.counters.invCount = 0; _root.hud.counters.andCount = 0; _root.hud.counters.orCount = 0; _root.hud.counters.nandCount = 0; _root.hud.counters.norCount = 0; _root.hud.counters.xorCount = 0; _root.hud.avaible = 6; _root.hud.selected = 1; stop(); } instance player of movieClip 7277 { onClipEvent (load) { speedY = 0; speedX = -3; maxSpeedY = 20; maxSpeedX = 6; jumpPower = 22; gravity = 2; walkingSpeed = 5; turnRight = true; isJumping = false; isRunning = false; isFalling = false; isReplacing = false; alive = true; aliveAnim = true; targeting = 'none'; born = false; paused = false; } onClipEvent (enterFrame) { if (alive == true and born == true and paused == false) { if (Key.isDown(Key.SPACE)) { if (isReplacing == false and isFalling == false and isJumping == false and isRunning == false and targeting != 'none') { isReplacing = true; if (_root.game[targeting].content != 'broken') { this.gotoAndPlay('replace'); } else { if (_root.hud.selected == 1 and 0 < _root.hud.counters.normCount or _root.hud.selected == 2 and 0 < _root.hud.counters.invCount or _root.hud.selected == 3 and 0 < _root.hud.counters.andCount or _root.hud.selected == 4 and 0 < _root.hud.counters.orCount or _root.hud.selected == 5 and 0 < _root.hud.counters.nandCount or _root.hud.selected == 6 and 0 < _root.hud.counters.norCount or _root.hud.selected == 7 and 0 < _root.hud.counters.xorCount) { if (2 >= _root.hud.selected and _root.game[targeting].inputs == 1 or 2 < _root.hud.selected and _root.game[targeting].inputs == 2) { this.gotoAndPlay('replace'); } else { if (_root.hud.info.isBusy == false) { _root.hud.info.gotoAndPlay('wontFit'); } isReplacing = false; } } else { isReplacing = false; } } } } if (isReplacing == false) { if (Key.isDown(Key.LEFT) or Key.isDown(65)) { speedX -= 2; if (turnRight == true) { _xscale = _xscale * -1; turnRight = false; } if (speedX < -maxSpeedX) { speedX = -maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } else { if (Key.isDown(Key.RIGHT) or Key.isDown(68)) { speedX += 2; if (turnRight == false) { _xscale = _xscale * -1; turnRight = true; } if (maxSpeedX < speedX) { speedX = maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } } if (!Key.isDown(Key.LEFT) and !Key.isDown(Key.RIGHT) and !Key.isDown(68) and !Key.isDown(65)) { if (isFalling == false) { if (isRunning == true and 5 < Math.abs(speedX) and isJumping == false) { isRunning = false; this.gotoAndStop('breakStart'); } else { if (speedX == 0) { if (isJumping == false) { isRunning = false; this.gotoAndPlay('idle'); } } } } } if (Key.isDown(Key.UP) or Key.isDown(87)) { if (isJumping == false and isFalling == false) { speedY = -jumpPower; this.gotoAndPlay('jumpStart'); _root.soundsBox.marioJump.start(0, 1); isJumping = true; } } } speedY += gravity; if (maxSpeedY < speedY) { speedY = maxSpeedY; } nextY = this._y + speedY; nextX = this._x + speedX; while (_root.game.walls.hitTest(nextX + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; --nextX; } while (_root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; ++nextX; } if (this._y + 2.5 < nextY and isJumping == false) { if (isFalling == false) { this.gotoAndStop('fallStart'); } isFalling = true; } this._y = nextY; this._x = nextX; if (0 < speedX) { speedX -= 0.5; } if (speedX < 0) { speedX += 0.5; } if (speedX < 0.5 and -0.5 < speedX) { speedX = 0; } if (0 < this._x - _root.scena._width / 2 and this._x + _root.scena._width / 2 < _root.game.walls._width) { _root.game._x = Math.round(_root.scena._width / 2 - nextX); } if (0 < this._y - _root.scena._height / 2 and this._y + _root.scena._height / 2 < _root.game.walls._height) { _root.game._y = Math.round(_root.scena._height / 2 - nextY); } } } } frame 208 { _root.game._x = 0; _root.game._y = 0; _root.hud._visible = false; _root.hud.info.talkingPause = false; stopAllSounds(); } frame 258 { walls.gotoAndStop('level5'); walls._visible = false; levelNum = 5; levBackground.gotoAndStop('level5'); _root.hud._visible = true; _root.musicBox.bossFight.start(0, 999); _root.hud.levelInfo.gotoAndStop('level5'); inBoxNorm = 1; inBoxInv = 0; inBoxOr = 0; inBoxAnd = 0; inBoxNand = 0; inBoxNor = 0; inBoxXor = 0; talk6 = false; talk7 = false; input5x1.out = 'wire5x1'; input5x2.out = 'wire5x3'; input5x1.gotoAndPlay('on'); input5x2.gotoAndPlay('off'); gate5x1.inA = 'wire5x1'; gate5x1.inB = 'wire5x5'; gate5x1.out = 'wire5x6'; gate5x1.inputs = 2; gate5x1.gotoAndStop('or'); gate5x2.inA = 'wire5x3'; gate5x2.inB = 'wire5x4'; gate5x2.out = 'wire5x5'; gate5x2.inputs = 2; gate5x2.gotoAndStop('xor'); gate5x3.inA = 'wire5x1'; gate5x3.out = 'wire5x4'; gate5x3.inputs = 1; gate5x3.gotoAndStop('inv'); output5x1.inA = 'wire5x1'; output5x1.oneActive = true; output5x1.isOK = false; output5x1.chaos = false; output5x1.state = 50; output5x1.controled = 'exit'; output5x1._visible = false; exit.state = true; exit.desiredState = true; _root.hud.counters.normCount = 0; _root.hud.counters.invCount = 0; _root.hud.counters.andCount = 0; _root.hud.counters.orCount = 0; _root.hud.counters.nandCount = 0; _root.hud.counters.norCount = 0; _root.hud.counters.xorCount = 0; _root.hud.avaible = 7; _root.hud.selected = 1; stop(); } instance boss5x1 of movieClip 7193 { onClipEvent (enterFrame) { if (this.alive == true) { if (this.hitTest(_root.game.player._x + _root.game.player._width / 3 + _root.game._x, _root.game.player._y + _root.game._y, true) or this.hitTest(_root.game.player._x - _root.game.player._width / 3 + _root.game._x, _root.game.player._y + _root.game._y, true) or this.hitTest(_root.game.player._x + _root.game.player._width / 3 + _root.game._x, _root.game.player._y - _root.game.player._height + _root.game._y, true) or this.hitTest(_root.game.player._x - _root.game.player._width / 3 + _root.game._x, _root.game.player._y - _root.game.player._height + _root.game._y, true) or this.hitTest(_root.game.player._x + _root.game._x, _root.game.player._y + _root.game._y, true)) { if (_root.game.player._currentframe == 65) { _root.game.player.nextFrame(); _root.game.player.play(); } if (_root.game.player.aliveAnim == true) { _root.game.player.alive = false; _root.game.player.gotoAndPlay('die'); } } if (_root.game.wire5x6.state == false and _root.game.wire5x6.chaos == false) { this.alive = false; this.gotoAndPlay('die'); } } } } instance player of movieClip 7277 { onClipEvent (load) { speedY = 0; speedX = -3; maxSpeedY = 20; maxSpeedX = 6; jumpPower = 22; gravity = 2; walkingSpeed = 5; turnRight = true; isJumping = false; isRunning = false; isFalling = false; isReplacing = false; alive = true; aliveAnim = true; targeting = 'none'; born = false; paused = false; } onClipEvent (enterFrame) { if (alive == true and born == true and paused == false) { if (Key.isDown(Key.SPACE)) { if (isReplacing == false and isFalling == false and isJumping == false and isRunning == false and targeting != 'none') { isReplacing = true; if (_root.game[targeting].content != 'broken') { this.gotoAndPlay('replace'); } else { if (_root.hud.selected == 1 and 0 < _root.hud.counters.normCount or _root.hud.selected == 2 and 0 < _root.hud.counters.invCount or _root.hud.selected == 3 and 0 < _root.hud.counters.andCount or _root.hud.selected == 4 and 0 < _root.hud.counters.orCount or _root.hud.selected == 5 and 0 < _root.hud.counters.nandCount or _root.hud.selected == 6 and 0 < _root.hud.counters.norCount or _root.hud.selected == 7 and 0 < _root.hud.counters.xorCount) { if (2 >= _root.hud.selected and _root.game[targeting].inputs == 1 or 2 < _root.hud.selected and _root.game[targeting].inputs == 2) { this.gotoAndPlay('replace'); } else { if (_root.hud.info.isBusy == false) { _root.hud.info.gotoAndPlay('wontFit'); } isReplacing = false; } } else { isReplacing = false; } } } } if (isReplacing == false) { if (Key.isDown(Key.LEFT) or Key.isDown(65)) { speedX -= 2; if (turnRight == true) { _xscale = _xscale * -1; turnRight = false; } if (speedX < -maxSpeedX) { speedX = -maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } else { if (Key.isDown(Key.RIGHT) or Key.isDown(68)) { speedX += 2; if (turnRight == false) { _xscale = _xscale * -1; turnRight = true; } if (maxSpeedX < speedX) { speedX = maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } } if (!Key.isDown(Key.LEFT) and !Key.isDown(Key.RIGHT) and !Key.isDown(68) and !Key.isDown(65)) { if (isFalling == false) { if (isRunning == true and 5 < Math.abs(speedX) and isJumping == false) { isRunning = false; this.gotoAndStop('breakStart'); } else { if (speedX == 0) { if (isJumping == false) { isRunning = false; this.gotoAndPlay('idle'); } } } } } if (Key.isDown(Key.UP) or Key.isDown(87)) { if (isJumping == false and isFalling == false) { speedY = -jumpPower; this.gotoAndPlay('jumpStart'); _root.soundsBox.marioJump.start(0, 1); isJumping = true; } } } speedY += gravity; if (maxSpeedY < speedY) { speedY = maxSpeedY; } nextY = this._y + speedY; nextX = this._x + speedX; while (_root.game.walls.hitTest(nextX + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; --nextX; } while (_root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; ++nextX; } if (this._y + 2.5 < nextY and isJumping == false) { if (isFalling == false) { this.gotoAndStop('fallStart'); } isFalling = true; } this._y = nextY; this._x = nextX; if (0 < speedX) { speedX -= 0.5; } if (speedX < 0) { speedX += 0.5; } if (speedX < 0.5 and -0.5 < speedX) { speedX = 0; } if (0 < this._x - _root.scena._width / 2 and this._x + _root.scena._width / 2 < _root.game.walls._width) { _root.game._x = Math.round(_root.scena._width / 2 - nextX); } if (0 < this._y - _root.scena._height / 2 and this._y + _root.scena._height / 2 < _root.game.walls._height) { _root.game._y = Math.round(_root.scena._height / 2 - nextY); } } } } instance talking6 of movieClip 9806 { onClipEvent (enterFrame) { if (_parent.talk6 == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.talk = '6'; _parent.talk6 = true; _root.game.player.paused = true; _root.hud.info.gotoAndPlay('talking'); } } } } frame 260 { _root.game._x = 0; _root.game._y = 0; _root.hud._visible = false; _root.hud.info.talkingPause = false; stopAllSounds(); } frame 310 { walls.gotoAndStop('level6'); walls._visible = false; levelNum = 6; levBackground.gotoAndStop('level6'); _root.hud._visible = true; _root.musicBox.howItBegins.start(0, 999); _root.hud.levelInfo.gotoAndStop('level6'); inBoxNorm = 0; inBoxInv = 0; inBoxOr = 0; inBoxAnd = 0; inBoxNand = 1; inBoxNor = 0; inBoxXor = 0; input6x1.out = 'wire6x1'; input6x2.out = 'wire6x2'; input6x1.gotoAndPlay('off'); input6x2.gotoAndPlay('clk2s'); gate6x1.inA = 'wire6x1'; gate6x1.inB = 'wire6x2'; gate6x1.out = 'wire6x3'; gate6x1.inputs = 2; gate6x2.inA = 'wire6x3'; gate6x2.out = 'wire6x4'; gate6x2.inputs = 1; gate6x2.gotoAndStop('inv'); gate6x3.inA = 'wire6x3'; gate6x3.inB = 'wire6x4'; gate6x3.out = 'wire6x5'; gate6x3.inputs = 2; gate6x4.inA = 'wire6x7'; gate6x4.inB = 'wire6x8'; gate6x4.out = 'wire6x6'; gate6x4.inputs = 2; gate6x4.gotoAndStop('or'); wire6x7.chaos = true; output6x1.inA = 'wire6x3'; output6x1.oneActive = true; output6x1.isOK = false; output6x1.chaos = false; output6x1.state = 50; output6x1.controled = 'forcefield6x1'; output6x2.inA = 'wire6x3'; output6x2.oneActive = true; output6x2.isOK = false; output6x2.chaos = false; output6x2.state = 50; output6x2.controled = 'forcefield6x2'; output6x3.inA = 'wire6x5'; output6x3.oneActive = true; output6x3.isOK = false; output6x3.chaos = false; output6x3.state = 50; output6x3.controled = 'exit'; forcefield6x1.state = true; forcefield6x1.desiredState = true; forcefield6x2.state = true; forcefield6x2.desiredState = true; exit.state = true; exit.desiredState = true; _root.hud.counters.normCount = 0; _root.hud.counters.invCount = 0; _root.hud.counters.andCount = 0; _root.hud.counters.orCount = 0; _root.hud.counters.nandCount = 0; _root.hud.counters.norCount = 0; _root.hud.counters.xorCount = 0; _root.hud.avaible = 7; _root.hud.selected = 1; stop(); } instance player of movieClip 7277 { onClipEvent (load) { speedY = 0; speedX = -3; maxSpeedY = 20; maxSpeedX = 6; jumpPower = 22; gravity = 2; walkingSpeed = 5; turnRight = true; isJumping = false; isRunning = false; isFalling = false; isReplacing = false; alive = true; aliveAnim = true; targeting = 'none'; born = false; paused = false; } onClipEvent (enterFrame) { if (alive == true and born == true and paused == false) { if (Key.isDown(Key.SPACE)) { if (isReplacing == false and isFalling == false and isJumping == false and isRunning == false and targeting != 'none') { isReplacing = true; if (_root.game[targeting].content != 'broken') { this.gotoAndPlay('replace'); } else { if (_root.hud.selected == 1 and 0 < _root.hud.counters.normCount or _root.hud.selected == 2 and 0 < _root.hud.counters.invCount or _root.hud.selected == 3 and 0 < _root.hud.counters.andCount or _root.hud.selected == 4 and 0 < _root.hud.counters.orCount or _root.hud.selected == 5 and 0 < _root.hud.counters.nandCount or _root.hud.selected == 6 and 0 < _root.hud.counters.norCount or _root.hud.selected == 7 and 0 < _root.hud.counters.xorCount) { if (2 >= _root.hud.selected and _root.game[targeting].inputs == 1 or 2 < _root.hud.selected and _root.game[targeting].inputs == 2) { this.gotoAndPlay('replace'); } else { if (_root.hud.info.isBusy == false) { _root.hud.info.gotoAndPlay('wontFit'); } isReplacing = false; } } else { isReplacing = false; } } } } if (isReplacing == false) { if (Key.isDown(Key.LEFT) or Key.isDown(65)) { speedX -= 2; if (turnRight == true) { _xscale = _xscale * -1; turnRight = false; } if (speedX < -maxSpeedX) { speedX = -maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } else { if (Key.isDown(Key.RIGHT) or Key.isDown(68)) { speedX += 2; if (turnRight == false) { _xscale = _xscale * -1; turnRight = true; } if (maxSpeedX < speedX) { speedX = maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } } if (!Key.isDown(Key.LEFT) and !Key.isDown(Key.RIGHT) and !Key.isDown(68) and !Key.isDown(65)) { if (isFalling == false) { if (isRunning == true and 5 < Math.abs(speedX) and isJumping == false) { isRunning = false; this.gotoAndStop('breakStart'); } else { if (speedX == 0) { if (isJumping == false) { isRunning = false; this.gotoAndPlay('idle'); } } } } } if (Key.isDown(Key.UP) or Key.isDown(87)) { if (isJumping == false and isFalling == false) { speedY = -jumpPower; this.gotoAndPlay('jumpStart'); _root.soundsBox.marioJump.start(0, 1); isJumping = true; } } } speedY += gravity; if (maxSpeedY < speedY) { speedY = maxSpeedY; } nextY = this._y + speedY; nextX = this._x + speedX; while (_root.game.walls.hitTest(nextX + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; --nextX; } while (_root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; ++nextX; } if (this._y + 2.5 < nextY and isJumping == false) { if (isFalling == false) { this.gotoAndStop('fallStart'); } isFalling = true; } this._y = nextY; this._x = nextX; if (0 < speedX) { speedX -= 0.5; } if (speedX < 0) { speedX += 0.5; } if (speedX < 0.5 and -0.5 < speedX) { speedX = 0; } if (0 < this._x - _root.scena._width / 2 and this._x + _root.scena._width / 2 < _root.game.walls._width) { _root.game._x = Math.round(_root.scena._width / 2 - nextX); } if (0 < this._y - _root.scena._height / 2 and this._y + _root.scena._height / 2 < _root.game.walls._height) { _root.game._y = Math.round(_root.scena._height / 2 - nextY); } } } } frame 312 { _root.game._x = 0; _root.game._y = 0; _root.hud._visible = false; _root.hud.info.talkingPause = false; stopAllSounds(); } frame 362 { walls.gotoAndStop('level7'); walls._visible = false; levelNum = 7; levBackground.gotoAndStop('level7'); _root.hud._visible = true; _root.musicBox.newFriendly.start(0, 999); _root.hud.levelInfo.gotoAndStop('level7'); inBoxNorm = 0; inBoxInv = 0; inBoxOr = 0; inBoxAnd = 0; inBoxNand = 2; inBoxNor = 3; inBoxXor = 0; input7x1.out = 'wire7x1'; input7x2.out = 'wire7x7'; input7x3.out = 'wire7x5'; input7x4.out = 'wire7x4'; input7x5.out = 'wire7x8'; input7x6.out = 'wire7x16'; input7x7.out = 'wire7x11'; input7x8.out = 'wire7x12'; input7x1.gotoAndPlay('off'); input7x2.gotoAndPlay('clk2s'); input7x3.gotoAndPlay('clk1s'); input7x4.gotoAndPlay('on'); input7x5.gotoAndPlay('on'); input7x6.gotoAndPlay('on'); input7x7.gotoAndPlay('off'); input7x8.gotoAndPlay('on'); gate7x1.inA = 'wire7x1'; gate7x1.inB = 'wire7x1'; gate7x1.out = 'wire7x2'; gate7x1.inputs = 2; gate7x2.inA = 'wire7x1'; gate7x2.inB = 'wire7x2'; gate7x2.out = 'wire7x3'; gate7x2.inputs = 2; gate7x3.inA = 'wire7x4'; gate7x3.inB = 'wire7x5'; gate7x3.out = 'wire7x6'; gate7x3.inputs = 2; gate7x4.inA = 'wire7x7'; gate7x4.inB = 'wire7x8'; gate7x4.out = 'wire7x9'; gate7x4.inputs = 2; gate7x5.inA = 'wire7x9'; gate7x5.inB = 'wire7x6'; gate7x5.out = 'wire7x10'; gate7x5.inputs = 2; gate7x5.gotoAndStop('or'); gate7x6.inA = 'wire7x11'; gate7x6.inB = 'wire7x11'; gate7x6.out = 'wire7x13'; gate7x6.inputs = 2; gate7x6.gotoAndStop('and'); gate7x7.inA = 'wire7x12'; gate7x7.inB = 'wire7x13'; gate7x7.out = 'wire7x14'; gate7x7.inputs = 2; gate7x7.gotoAndStop('nand'); gate7x8.inA = 'wire7x14'; gate7x8.out = 'wire7x15'; gate7x8.inputs = 1; gate7x8.gotoAndStop('inv'); output7x1.inA = 'wire7x3'; output7x1.oneActive = true; output7x1.isOK = false; output7x1.chaos = false; output7x1.state = 50; output7x1.controled = 'lift7x1'; output7x2.inA = 'wire7x10'; output7x2.oneActive = true; output7x2.isOK = false; output7x2.chaos = false; output7x2.state = 50; output7x2.controled = 'lift7x2'; output7x3.inA = 'wire7x16'; output7x3.oneActive = true; output7x3.isOK = false; output7x3.chaos = false; output7x3.state = 50; output7x3.controled = 'exit'; output7x4.inA = 'wire7x15'; output7x4.oneActive = false; output7x4.isOK = false; output7x4.chaos = false; output7x4.state = 50; output7x4.controled = 'forcefield7x1'; lift7x1.state = true; lift7x1.desiredState = true; lift7x2.state = true; lift7x2.desiredState = true; forcefield7x1.state = false; forcefield7x1.desiredState = false; exit.state = true; exit.desiredState = true; _root.hud.counters.normCount = 0; _root.hud.counters.invCount = 0; _root.hud.counters.andCount = 0; _root.hud.counters.orCount = 0; _root.hud.counters.nandCount = 0; _root.hud.counters.norCount = 0; _root.hud.counters.xorCount = 0; _root.hud.avaible = 7; _root.hud.selected = 1; stop(); } instance player of movieClip 7277 { onClipEvent (load) { speedY = 0; speedX = -3; maxSpeedY = 20; maxSpeedX = 6; jumpPower = 22; gravity = 2; walkingSpeed = 5; turnRight = true; isJumping = false; isRunning = false; isFalling = false; isReplacing = false; alive = true; aliveAnim = true; targeting = 'none'; born = false; paused = false; } onClipEvent (enterFrame) { if (alive == true and born == true and paused == false) { if (Key.isDown(Key.SPACE)) { if (isReplacing == false and isFalling == false and isJumping == false and isRunning == false and targeting != 'none') { isReplacing = true; if (_root.game[targeting].content != 'broken') { this.gotoAndPlay('replace'); } else { if (_root.hud.selected == 1 and 0 < _root.hud.counters.normCount or _root.hud.selected == 2 and 0 < _root.hud.counters.invCount or _root.hud.selected == 3 and 0 < _root.hud.counters.andCount or _root.hud.selected == 4 and 0 < _root.hud.counters.orCount or _root.hud.selected == 5 and 0 < _root.hud.counters.nandCount or _root.hud.selected == 6 and 0 < _root.hud.counters.norCount or _root.hud.selected == 7 and 0 < _root.hud.counters.xorCount) { if (2 >= _root.hud.selected and _root.game[targeting].inputs == 1 or 2 < _root.hud.selected and _root.game[targeting].inputs == 2) { this.gotoAndPlay('replace'); } else { if (_root.hud.info.isBusy == false) { _root.hud.info.gotoAndPlay('wontFit'); } isReplacing = false; } } else { isReplacing = false; } } } } if (isReplacing == false) { if (Key.isDown(Key.LEFT) or Key.isDown(65)) { speedX -= 2; if (turnRight == true) { _xscale = _xscale * -1; turnRight = false; } if (speedX < -maxSpeedX) { speedX = -maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } else { if (Key.isDown(Key.RIGHT) or Key.isDown(68)) { speedX += 2; if (turnRight == false) { _xscale = _xscale * -1; turnRight = true; } if (maxSpeedX < speedX) { speedX = maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } } if (!Key.isDown(Key.LEFT) and !Key.isDown(Key.RIGHT) and !Key.isDown(68) and !Key.isDown(65)) { if (isFalling == false) { if (isRunning == true and 5 < Math.abs(speedX) and isJumping == false) { isRunning = false; this.gotoAndStop('breakStart'); } else { if (speedX == 0) { if (isJumping == false) { isRunning = false; this.gotoAndPlay('idle'); } } } } } if (Key.isDown(Key.UP) or Key.isDown(87)) { if (isJumping == false and isFalling == false) { speedY = -jumpPower; this.gotoAndPlay('jumpStart'); _root.soundsBox.marioJump.start(0, 1); isJumping = true; } } } speedY += gravity; if (maxSpeedY < speedY) { speedY = maxSpeedY; } nextY = this._y + speedY; nextX = this._x + speedX; while (_root.game.walls.hitTest(nextX + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; --nextX; } while (_root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; ++nextX; } if (this._y + 2.5 < nextY and isJumping == false) { if (isFalling == false) { this.gotoAndStop('fallStart'); } isFalling = true; } this._y = nextY; this._x = nextX; if (0 < speedX) { speedX -= 0.5; } if (speedX < 0) { speedX += 0.5; } if (speedX < 0.5 and -0.5 < speedX) { speedX = 0; } if (0 < this._x - _root.scena._width / 2 and this._x + _root.scena._width / 2 < _root.game.walls._width) { _root.game._x = Math.round(_root.scena._width / 2 - nextX); } if (0 < this._y - _root.scena._height / 2 and this._y + _root.scena._height / 2 < _root.game.walls._height) { _root.game._y = Math.round(_root.scena._height / 2 - nextY); } } } } frame 364 { _root.game._x = 0; _root.game._y = 0; _root.hud._visible = false; _root.hud.info.talkingPause = false; stopAllSounds(); } frame 414 { walls.gotoAndStop('level8'); walls._visible = false; levelNum = 8; levBackground.gotoAndStop('level8'); _root.hud._visible = true; _root.musicBox.thinking.start(0, 999); _root.hud.levelInfo.gotoAndStop('level8'); inBoxNorm = 0; inBoxInv = 0; inBoxOr = 1; inBoxAnd = 0; inBoxNand = 1; inBoxNor = 0; inBoxXor = 1; input8x1.out = 'wire8x1'; input8x2.out = 'wire8x2'; input8x1.gotoAndPlay('clk2s'); input8x2.gotoAndPlay('clk4s'); gate8x1.inA = 'wire8x1'; gate8x1.inB = 'wire8x2'; gate8x1.out = 'wire8x3'; gate8x1.inputs = 2; gate8x2.inA = 'wire8x1'; gate8x2.inB = 'wire8x2'; gate8x2.out = 'wire8x6'; gate8x2.inputs = 2; gate8x3.inA = 'wire8x1'; gate8x3.inB = 'wire8x2'; gate8x3.out = 'wire8x5'; gate8x3.inputs = 2; gate8x4.gotoAndStop('inv'); gate8x4.inA = 'wire8x6'; gate8x4.out = 'wire8x4'; gate8x4.inputs = 1; output8x1.inA = 'wire8x3'; output8x1.oneActive = true; output8x1.isOK = false; output8x1.chaos = false; output8x1.state = 50; output8x1.controled = 'lift8x1'; output8x2.inA = 'wire8x4'; output8x2.oneActive = true; output8x2.isOK = false; output8x2.chaos = false; output8x2.state = 50; output8x2.controled = 'lift8x2'; output8x3.inA = 'wire8x5'; output8x3.oneActive = true; output8x3.isOK = false; output8x3.chaos = false; output8x3.state = 50; output8x3.controled = 'lift8x3'; output8x4.inA = 'wire8x3'; output8x4.oneActive = true; output8x4.isOK = false; output8x4.chaos = false; output8x4.state = 50; output8x4.controled = 'lift8x4'; output8x5.inA = 'wire8x4'; output8x5.oneActive = true; output8x5.isOK = false; output8x5.chaos = false; output8x5.state = 50; output8x5.controled = 'lift8x5'; output8x6.inA = 'wire8x5'; output8x6.oneActive = true; output8x6.isOK = false; output8x6.chaos = false; output8x6.state = 50; output8x6.controled = 'lift8x6'; output8x7.inA = 'wire8x3'; output8x7.oneActive = true; output8x7.isOK = false; output8x7.chaos = false; output8x7.state = 50; output8x7.controled = 'lift8x7'; output8x8.inA = 'wire8x4'; output8x8.oneActive = true; output8x8.isOK = false; output8x8.chaos = false; output8x8.state = 50; output8x8.controled = 'lift8x8'; output8x9.inA = 'wire8x5'; output8x9.oneActive = true; output8x9.isOK = false; output8x9.chaos = false; output8x9.state = 50; output8x9.controled = 'lift8x9'; output8x10.inA = 'wire8x3'; output8x10.oneActive = true; output8x10.isOK = false; output8x10.chaos = false; output8x10.state = 50; output8x10.controled = 'lift8x10'; output8x11.inA = 'wire8x4'; output8x11.oneActive = true; output8x11.isOK = false; output8x11.chaos = false; output8x11.state = 50; output8x11.controled = 'lift8x11'; output8x12.inA = 'wire8x5'; output8x12.oneActive = true; output8x12.isOK = false; output8x12.chaos = false; output8x12.state = 50; output8x12.controled = 'lift8x12'; output8x13.inA = 'wire8x5'; output8x13.oneActive = true; output8x13.isOK = false; output8x13.chaos = false; output8x13.state = 50; output8x13.controled = 'exit'; lift8x1.state = true; lift8x1.desiredState = true; lift8x2.state = true; lift8x2.desiredState = true; lift8x3.state = true; lift8x3.desiredState = true; lift8x4.state = true; lift8x4.desiredState = true; lift8x5.state = true; lift8x5.desiredState = true; lift8x6.state = true; lift8x6.desiredState = true; lift8x7.state = true; lift8x7.desiredState = true; lift8x8.state = true; lift8x8.desiredState = true; lift8x9.state = true; lift8x9.desiredState = true; lift8x10.state = true; lift8x10.desiredState = true; lift8x11.state = true; lift8x11.desiredState = true; lift8x12.state = true; lift8x12.desiredState = true; exit.state = true; exit.desiredState = true; _root.hud.counters.normCount = 0; _root.hud.counters.invCount = 0; _root.hud.counters.andCount = 0; _root.hud.counters.orCount = 0; _root.hud.counters.nandCount = 0; _root.hud.counters.norCount = 0; _root.hud.counters.xorCount = 0; _root.hud.avaible = 7; _root.hud.selected = 1; stop(); } instance player of movieClip 7277 { onClipEvent (load) { speedY = 0; speedX = -3; maxSpeedY = 20; maxSpeedX = 6; jumpPower = 22; gravity = 2; walkingSpeed = 5; turnRight = true; isJumping = false; isRunning = false; isFalling = false; isReplacing = false; alive = true; aliveAnim = true; targeting = 'none'; born = false; paused = false; } onClipEvent (enterFrame) { if (alive == true and born == true and paused == false) { if (Key.isDown(Key.SPACE)) { if (isReplacing == false and isFalling == false and isJumping == false and isRunning == false and targeting != 'none') { isReplacing = true; if (_root.game[targeting].content != 'broken') { this.gotoAndPlay('replace'); } else { if (_root.hud.selected == 1 and 0 < _root.hud.counters.normCount or _root.hud.selected == 2 and 0 < _root.hud.counters.invCount or _root.hud.selected == 3 and 0 < _root.hud.counters.andCount or _root.hud.selected == 4 and 0 < _root.hud.counters.orCount or _root.hud.selected == 5 and 0 < _root.hud.counters.nandCount or _root.hud.selected == 6 and 0 < _root.hud.counters.norCount or _root.hud.selected == 7 and 0 < _root.hud.counters.xorCount) { if (2 >= _root.hud.selected and _root.game[targeting].inputs == 1 or 2 < _root.hud.selected and _root.game[targeting].inputs == 2) { this.gotoAndPlay('replace'); } else { if (_root.hud.info.isBusy == false) { _root.hud.info.gotoAndPlay('wontFit'); } isReplacing = false; } } else { isReplacing = false; } } } } if (isReplacing == false) { if (Key.isDown(Key.LEFT) or Key.isDown(65)) { speedX -= 2; if (turnRight == true) { _xscale = _xscale * -1; turnRight = false; } if (speedX < -maxSpeedX) { speedX = -maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } else { if (Key.isDown(Key.RIGHT) or Key.isDown(68)) { speedX += 2; if (turnRight == false) { _xscale = _xscale * -1; turnRight = true; } if (maxSpeedX < speedX) { speedX = maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } } if (!Key.isDown(Key.LEFT) and !Key.isDown(Key.RIGHT) and !Key.isDown(68) and !Key.isDown(65)) { if (isFalling == false) { if (isRunning == true and 5 < Math.abs(speedX) and isJumping == false) { isRunning = false; this.gotoAndStop('breakStart'); } else { if (speedX == 0) { if (isJumping == false) { isRunning = false; this.gotoAndPlay('idle'); } } } } } if (Key.isDown(Key.UP) or Key.isDown(87)) { if (isJumping == false and isFalling == false) { speedY = -jumpPower; this.gotoAndPlay('jumpStart'); _root.soundsBox.marioJump.start(0, 1); isJumping = true; } } } speedY += gravity; if (maxSpeedY < speedY) { speedY = maxSpeedY; } nextY = this._y + speedY; nextX = this._x + speedX; while (_root.game.walls.hitTest(nextX + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; --nextX; } while (_root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; ++nextX; } if (this._y + 2.5 < nextY and isJumping == false) { if (isFalling == false) { this.gotoAndStop('fallStart'); } isFalling = true; } this._y = nextY; this._x = nextX; if (0 < speedX) { speedX -= 0.5; } if (speedX < 0) { speedX += 0.5; } if (speedX < 0.5 and -0.5 < speedX) { speedX = 0; } if (0 < this._x - _root.scena._width / 2 and this._x + _root.scena._width / 2 < _root.game.walls._width) { _root.game._x = Math.round(_root.scena._width / 2 - nextX); } if (0 < this._y - _root.scena._height / 2 and this._y + _root.scena._height / 2 < _root.game.walls._height) { _root.game._y = Math.round(_root.scena._height / 2 - nextY); } } } } frame 416 { _root.game._x = 0; _root.game._y = 0; _root.hud._visible = false; _root.hud.info.talkingPause = false; stopAllSounds(); } frame 466 { walls.gotoAndStop('level9'); walls._visible = false; levelNum = 9; levBackground.gotoAndStop('level9'); _root.hud._visible = true; _root.musicBox.basement.start(0, 999); _root.hud.levelInfo.gotoAndStop('level9'); inBoxNorm = 0; inBoxInv = 0; inBoxOr = 1; inBoxAnd = 0; inBoxNand = 0; inBoxNor = 1; inBoxXor = 1; talk8 = false; talk9 = false; talk10 = false; generalAbend9x2._visible = false; input9x1.out = 'wire9x15'; input9x2.out = 'wire9x14'; input9x3.out = 'wire9x18'; input9x4.out = 'wire9x6'; input9x5.out = 'wire9x8'; input9x6.out = 'wire9x5'; input9x7.out = 'wire9x1'; input9x1.gotoAndPlay('off'); input9x3.gotoAndPlay('off'); input9x2.gotoAndPlay('on'); input9x4.gotoAndPlay('off'); input9x5.gotoAndPlay('on'); input9x6.gotoAndPlay('clk1s'); input9x7.gotoAndPlay('on'); gate9x1.inA = 'wire9x1'; gate9x1.out = 'wire9x2'; gate9x1.inputs = 1; gate9x1.gotoAndStop('norm'); gate9x2.inA = 'wire9x15'; gate9x2.out = 'wire9x16'; gate9x2.inputs = 1; gate9x2.gotoAndStop('inv'); gate9x3.inA = 'wire9x16'; gate9x3.out = 'wire9x17'; gate9x3.inputs = 1; gate9x3.gotoAndStop('virused1'); gate9x4.inA = 'wire9x14'; gate9x4.inB = 'wire9x18'; gate9x4.out = 'wire9x12'; gate9x4.inputs = 2; gate9x5.inA = 'wire9x14'; gate9x5.inB = 'wire9x18'; gate9x5.out = 'wire9x11'; gate9x5.inputs = 2; gate9x6.inA = 'wire9x12'; gate9x6.inB = 'wire9x11'; gate9x6.out = 'wire9x10'; gate9x6.inputs = 2; gate9x7.inA = 'wire9x8'; gate9x7.out = 'wire9x9'; gate9x7.inputs = 1; gate9x7.gotoAndStop('norm'); gate9x8.inA = 'wire9x5'; gate9x8.inB = 'wire9x6'; gate9x8.out = 'wire9x7'; gate9x8.inputs = 2; gate9x9.inA = 'wire9x6'; gate9x9.inB = 'wire9x5'; gate9x9.out = 'wire9x4'; gate9x9.inputs = 2; gate9x10.inA = 'wire9x7'; gate9x10.inB = 'wire9x4'; gate9x10.out = 'wire9x3'; gate9x10.inputs = 2; output9x5.inA = 'wire9x2'; output9x5.oneActive = true; output9x5.isOK = false; output9x5.chaos = false; output9x5.state = 50; output9x5.controled = 'forcefield9x2'; output9x1.inA = 'wire9x10'; output9x1.oneActive = false; output9x1.isOK = false; output9x1.chaos = false; output9x1.state = 50; output9x1.controled = 'forcefield9x1'; output9x2.inA = 'wire9x9'; output9x2.oneActive = true; output9x2.isOK = false; output9x2.chaos = false; output9x2.state = 50; output9x2.controled = 'lift9x1'; output9x3.inA = 'wire9x3'; output9x3.oneActive = true; output9x3.isOK = false; output9x3.chaos = false; output9x3.state = 50; output9x3.controled = 'lift9x2'; output9x4.inA = 'wire9x3'; output9x4.oneActive = true; output9x4.isOK = false; output9x4.chaos = false; output9x4.state = 50; output9x4.controled = 'exit'; lift9x1.state = true; lift9x1.desiredState = true; lift9x2.state = true; lift9x2.desiredState = true; forcefield9x1.state = false; forcefield9x1.desiredState = false; forcefield9x2.state = true; forcefield9x2.desiredState = true; forcefield9x3.state = false; forcefield9x3.desiredState = false; exit.state = true; exit.desiredState = true; _root.hud.counters.normCount = 0; _root.hud.counters.invCount = 0; _root.hud.counters.andCount = 0; _root.hud.counters.orCount = 0; _root.hud.counters.nandCount = 0; _root.hud.counters.norCount = 0; _root.hud.counters.xorCount = 0; _root.hud.avaible = 7; _root.hud.selected = 1; stop(); } instance player of movieClip 7277 { onClipEvent (load) { speedY = 0; speedX = -3; maxSpeedY = 20; maxSpeedX = 6; jumpPower = 22; gravity = 2; walkingSpeed = 5; turnRight = true; isJumping = false; isRunning = false; isFalling = false; isReplacing = false; alive = true; aliveAnim = true; targeting = 'none'; born = false; paused = false; } onClipEvent (enterFrame) { if (alive == true and born == true and paused == false) { if (Key.isDown(Key.SPACE)) { if (isReplacing == false and isFalling == false and isJumping == false and isRunning == false and targeting != 'none') { isReplacing = true; if (_root.game[targeting].content != 'broken') { this.gotoAndPlay('replace'); } else { if (_root.hud.selected == 1 and 0 < _root.hud.counters.normCount or _root.hud.selected == 2 and 0 < _root.hud.counters.invCount or _root.hud.selected == 3 and 0 < _root.hud.counters.andCount or _root.hud.selected == 4 and 0 < _root.hud.counters.orCount or _root.hud.selected == 5 and 0 < _root.hud.counters.nandCount or _root.hud.selected == 6 and 0 < _root.hud.counters.norCount or _root.hud.selected == 7 and 0 < _root.hud.counters.xorCount) { if (2 >= _root.hud.selected and _root.game[targeting].inputs == 1 or 2 < _root.hud.selected and _root.game[targeting].inputs == 2) { this.gotoAndPlay('replace'); } else { if (_root.hud.info.isBusy == false) { _root.hud.info.gotoAndPlay('wontFit'); } isReplacing = false; } } else { isReplacing = false; } } } } if (isReplacing == false) { if (Key.isDown(Key.LEFT) or Key.isDown(65)) { speedX -= 2; if (turnRight == true) { _xscale = _xscale * -1; turnRight = false; } if (speedX < -maxSpeedX) { speedX = -maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } else { if (Key.isDown(Key.RIGHT) or Key.isDown(68)) { speedX += 2; if (turnRight == false) { _xscale = _xscale * -1; turnRight = true; } if (maxSpeedX < speedX) { speedX = maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } } if (!Key.isDown(Key.LEFT) and !Key.isDown(Key.RIGHT) and !Key.isDown(68) and !Key.isDown(65)) { if (isFalling == false) { if (isRunning == true and 5 < Math.abs(speedX) and isJumping == false) { isRunning = false; this.gotoAndStop('breakStart'); } else { if (speedX == 0) { if (isJumping == false) { isRunning = false; this.gotoAndPlay('idle'); } } } } } if (Key.isDown(Key.UP) or Key.isDown(87)) { if (isJumping == false and isFalling == false) { speedY = -jumpPower; this.gotoAndPlay('jumpStart'); _root.soundsBox.marioJump.start(0, 1); isJumping = true; } } } speedY += gravity; if (maxSpeedY < speedY) { speedY = maxSpeedY; } nextY = this._y + speedY; nextX = this._x + speedX; while (_root.game.walls.hitTest(nextX + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; --nextX; } while (_root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; ++nextX; } if (this._y + 2.5 < nextY and isJumping == false) { if (isFalling == false) { this.gotoAndStop('fallStart'); } isFalling = true; } this._y = nextY; this._x = nextX; if (0 < speedX) { speedX -= 0.5; } if (speedX < 0) { speedX += 0.5; } if (speedX < 0.5 and -0.5 < speedX) { speedX = 0; } if (0 < this._x - _root.scena._width / 2 and this._x + _root.scena._width / 2 < _root.game.walls._width) { _root.game._x = Math.round(_root.scena._width / 2 - nextX); } if (0 < this._y - _root.scena._height / 2 and this._y + _root.scena._height / 2 < _root.game.walls._height) { _root.game._y = Math.round(_root.scena._height / 2 - nextY); } } } } instance talk8 of movieClip 9794 { onClipEvent (enterFrame) { if (_parent.talk8 == false) { if (this.hitTest(_root.game.player)) { _parent.player.gotoAndStop('idle'); _root.hud.info.talk = '8'; _parent.talk8 = true; _root.game.player.paused = true; _root.hud.info._visible = false; _root.hud.info.gotoAndPlay('talking'); } } } } instance talk9 of movieClip 9794 { onClipEvent (enterFrame) { if (_parent.talk9 == false and _root.game.player.alive == true) { if (this.hitTest(_root.game.player)) { _parent.player.gotoAndStop('idle'); _root.hud.info.talk = '9'; _parent.talk9 = true; _root.game.player.paused = true; _root.hud.info._visible = false; _root.hud.info.gotoAndPlay('talking'); _root.game.generalAbend9x1._visible = false; _root.game.generalAbend9x2._visible = true; } } } } instance talk10 of movieClip 9794 { onClipEvent (enterFrame) { if (_parent.talk10 == false) { if (this.hitTest(_root.game.player)) { _parent.player.gotoAndStop('idle'); _root.hud.info.talk = '10'; _parent.talk10 = true; _root.game.player.paused = true; _root.hud.info._visible = false; _root.hud.info.gotoAndPlay('talking'); } } } } frame 467 { _root.game._x = 0; _root.game._y = 0; _root.hud._visible = false; _root.hud.info.talkingPause = false; stopAllSounds(); } frame 517 { walls.gotoAndStop('level10'); walls._visible = false; levelNum = 10; levBackground.gotoAndStop('level10'); _root.hud._visible = true; _root.musicBox.bossFight.start(0, 999); _root.hud.levelInfo.gotoAndStop('level10'); inBoxNorm = 0; inBoxInv = 1; inBoxOr = 0; inBoxAnd = 0; inBoxNand = 0; inBoxNor = 0; inBoxXor = 0; talk11 = false; box._visible = false; wire10x5.state = true; input10x1.out = 'wire10x3'; input10x2.out = 'wire10x1'; input10x3.out = 'wire10x11'; input10x4.out = 'wire10x10'; input10x5.out = 'wire10x7'; input10x6.out = 'wire10x8'; input10x1.gotoAndPlay('off'); input10x2.gotoAndPlay('on'); input10x3.gotoAndPlay('on'); input10x4.gotoAndPlay('off'); input10x5.gotoAndPlay('off'); input10x6.gotoAndPlay('clk4s'); gate10x1.inA = 'wire10x10'; gate10x1.inB = 'wire10x11'; gate10x1.out = 'wire10x12'; gate10x1.inputs = 2; gate10x1.gotoAndStop('or'); gate10x2.inA = 'wire10x8'; gate10x2.inB = 'wire10x7'; gate10x2.out = 'wire10x9'; gate10x2.inputs = 2; gate10x2.gotoAndStop('and'); gate10x6.inA = 'wire10x1'; gate10x6.out = 'wire10x2'; gate10x6.inputs = 1; gate10x6.gotoAndStop('norm'); gate10x4.inA = 'wire10x2'; gate10x4.inB = 'wire10x4'; gate10x4.out = 'wire10x5'; gate10x4.inputs = 2; gate10x4.gotoAndStop('and'); gate10x5.inA = 'wire10x3'; gate10x5.out = 'wire10x4'; gate10x5.inputs = 1; gate10x5.gotoAndStop('inv'); gate10x7.inA = 'wire10x12'; gate10x7.inB = 'wire10x9'; gate10x7.out = 'wire10x13'; gate10x7.inputs = 2; gate10x7.gotoAndStop('or'); gate10x3.inA = 'wire10x5'; gate10x3.out = 'wire10x6'; gate10x3.inputs = 1; gate10x3.gotoAndStop('virused1'); output10x1.inA = 'wire10x6'; output10x1.oneActive = true; output10x1.isOK = false; output10x1.chaos = false; output10x1.state = 50; output10x1.controled = 'exit'; output10x2.inA = 'wire10x13'; output10x2.oneActive = true; output10x2.isOK = false; output10x2.chaos = false; output10x2.state = 50; output10x2.controled = 'forcefield10x1'; forcefield10x1.state = false; forcefield10x1.desiredState = true; exit.state = true; exit.desiredState = true; _root.hud.counters.normCount = 0; _root.hud.counters.invCount = 0; _root.hud.counters.andCount = 0; _root.hud.counters.orCount = 0; _root.hud.counters.nandCount = 0; _root.hud.counters.norCount = 0; _root.hud.counters.xorCount = 0; _root.hud.avaible = 7; _root.hud.selected = 1; stop(); } instance player of movieClip 7277 { onClipEvent (load) { speedY = 0; speedX = -3; maxSpeedY = 20; maxSpeedX = 6; jumpPower = 22; gravity = 2; walkingSpeed = 5; turnRight = true; isJumping = false; isRunning = false; isFalling = false; isReplacing = false; alive = true; aliveAnim = true; targeting = 'none'; born = false; paused = false; } onClipEvent (enterFrame) { if (alive == true and born == true and paused == false) { if (Key.isDown(Key.SPACE)) { if (isReplacing == false and isFalling == false and isJumping == false and isRunning == false and targeting != 'none') { isReplacing = true; if (_root.game[targeting].content != 'broken') { this.gotoAndPlay('replace'); } else { if (_root.hud.selected == 1 and 0 < _root.hud.counters.normCount or _root.hud.selected == 2 and 0 < _root.hud.counters.invCount or _root.hud.selected == 3 and 0 < _root.hud.counters.andCount or _root.hud.selected == 4 and 0 < _root.hud.counters.orCount or _root.hud.selected == 5 and 0 < _root.hud.counters.nandCount or _root.hud.selected == 6 and 0 < _root.hud.counters.norCount or _root.hud.selected == 7 and 0 < _root.hud.counters.xorCount) { if (2 >= _root.hud.selected and _root.game[targeting].inputs == 1 or 2 < _root.hud.selected and _root.game[targeting].inputs == 2) { this.gotoAndPlay('replace'); } else { if (_root.hud.info.isBusy == false) { _root.hud.info.gotoAndPlay('wontFit'); } isReplacing = false; } } else { isReplacing = false; } } } } if (isReplacing == false) { if (Key.isDown(Key.LEFT) or Key.isDown(65)) { speedX -= 2; if (turnRight == true) { _xscale = _xscale * -1; turnRight = false; } if (speedX < -maxSpeedX) { speedX = -maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } else { if (Key.isDown(Key.RIGHT) or Key.isDown(68)) { speedX += 2; if (turnRight == false) { _xscale = _xscale * -1; turnRight = true; } if (maxSpeedX < speedX) { speedX = maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } } if (!Key.isDown(Key.LEFT) and !Key.isDown(Key.RIGHT) and !Key.isDown(68) and !Key.isDown(65)) { if (isFalling == false) { if (isRunning == true and 5 < Math.abs(speedX) and isJumping == false) { isRunning = false; this.gotoAndStop('breakStart'); } else { if (speedX == 0) { if (isJumping == false) { isRunning = false; this.gotoAndPlay('idle'); } } } } } if (Key.isDown(Key.UP) or Key.isDown(87)) { if (isJumping == false and isFalling == false) { speedY = -jumpPower; this.gotoAndPlay('jumpStart'); _root.soundsBox.marioJump.start(0, 1); isJumping = true; } } } speedY += gravity; if (maxSpeedY < speedY) { speedY = maxSpeedY; } nextY = this._y + speedY; nextX = this._x + speedX; while (_root.game.walls.hitTest(nextX + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; --nextX; } while (_root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; ++nextX; } if (this._y + 2.5 < nextY and isJumping == false) { if (isFalling == false) { this.gotoAndStop('fallStart'); } isFalling = true; } this._y = nextY; this._x = nextX; if (0 < speedX) { speedX -= 0.5; } if (speedX < 0) { speedX += 0.5; } if (speedX < 0.5 and -0.5 < speedX) { speedX = 0; } if (0 < this._x - _root.scena._width / 2 and this._x + _root.scena._width / 2 < _root.game.walls._width) { _root.game._x = Math.round(_root.scena._width / 2 - nextX); } if (0 < this._y - _root.scena._height / 2 and this._y + _root.scena._height / 2 < _root.game.walls._height) { _root.game._y = Math.round(_root.scena._height / 2 - nextY); } } } } instance boss10x1 of movieClip 8935 { onClipEvent (load) { var xpos = new Array(); var ypos = new Array(); var klatka = new Array(); var skala = new Array(); var iteration = 0; var range = 80; var miniRange = 2; var hitting = false; var alive = true; var dead = false; i = 0; while (i < range) { xpos[i] = _root.game.boss10x1._x; ypos[i] = _root.game.boss10x1._y; klatka[i] = _root.game.player._currentframe; skala[i] = _root.game.player._xscale; ++i; } } onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (_root.game.player.alive == true and alive == true) { if (_root.game.boss10x1.killer.hitTest(_root.game.forcefield10x1.killer)) { alive = false; } _root.game.boss10x1._x = xpos[iteration]; _root.game.boss10x1._y = ypos[iteration]; this.gotoAndStop(klatka[iteration]); this._xscale = skala[iteration]; xpos[iteration] = _root.game.player._x; ypos[iteration] = _root.game.player._y; klatka[iteration] = _root.game.player._currentframe; skala[iteration] = _root.game.player._xscale; ++iteration; if (range < iteration) { iteration = 0; if (35 < range) { --miniRange; } if (miniRange == 0) { miniRange = 2; --range; } } } else { if (hitting == false and alive == true) { hitting = true; } else { if (alive == false and dead == false) { dead = true; _root.game.boss10x1.gotoAndPlay('die'); } } } } } } frame 519 { _root.game._x = 0; _root.game._y = 0; _root.hud._visible = false; _root.hud.info.talkingPause = false; stopAllSounds(); } frame 569 { walls.gotoAndStop('level12'); walls._visible = false; levBackground.gotoAndStop('level12'); _root.hud._visible = true; _root.hud.levelInfo.gotoAndStop('level13'); _root.musicBox.basement.start(0, 999); levelNum = 13; inBoxNorm = 0; inBoxInv = 0; inBoxOr = 2; inBoxAnd = 0; inBoxNand = 0; inBoxNor = 1; inBoxXor = 0; input12x1.out = 'wire12x5'; input12x2.out = 'wire12x6'; input12x3.out = 'wire12x7'; input12x4.out = 'wire12x4'; input12x5.out = 'wire12x8'; input12x6.out = 'wire12x9'; input12x7.out = 'wire12x10'; input12x1.gotoAndPlay('clk2s'); input12x2.gotoAndPlay('on'); input12x3.gotoAndPlay('off'); input12x4.gotoAndPlay('off'); input12x5.gotoAndPlay('on'); input12x6.gotoAndPlay('off'); input12x7.gotoAndPlay('off'); gate12x1.inA = 'wire12x3'; gate12x1.inB = 'wire12x2'; gate12x1.out = 'wire12x1'; gate12x1.inputs = 2; gate12x2.inA = 'wire12x7'; gate12x2.inB = 'wire12x6'; gate12x2.out = 'wire12x15'; gate12x2.inputs = 2; gate12x2.gotoAndStop('and'); gate12x3.inA = 'wire12x7'; gate12x3.inB = 'wire12x6'; gate12x3.out = 'wire12x14'; gate12x3.inputs = 2; gate12x3.gotoAndStop('and'); gate12x4.inA = 'wire12x8'; gate12x4.inB = 'wire12x9'; gate12x4.out = 'wire12x13'; gate12x4.inputs = 2; gate12x4.gotoAndStop('or'); gate12x5.inA = 'wire12x8'; gate12x5.inB = 'wire12x9'; gate12x5.out = 'wire12x12'; gate12x5.inputs = 2; gate12x5.gotoAndStop('or'); gate12x6.inA = 'wire12x4'; gate12x6.inB = 'wire12x5'; gate12x6.out = 'wire12x16'; gate12x6.inputs = 2; gate12x6.gotoAndStop('and'); gate12x7.inA = 'wire12x5'; gate12x7.inB = 'wire12x10'; gate12x7.out = 'wire12x11'; gate12x7.inputs = 2; gate12x7.gotoAndStop('and'); mux12x1.inA = 'wire12x4'; mux12x1.inB = 'wire12x16'; mux12x1.inC = 'wire12x4'; mux12x1.inD = 'wire12x4'; mux12x1.adA = 'wire12x15'; mux12x1.adB = 'wire12x14'; mux12x1.out = 'wire12x3'; mux12x2.inA = 'wire12x10'; mux12x2.inB = 'wire12x10'; mux12x2.inC = 'wire12x11'; mux12x2.inD = 'wire12x10'; mux12x2.adA = 'wire12x13'; mux12x2.adB = 'wire12x12'; mux12x2.out = 'wire12x2'; output12x1.inA = 'wire12x1'; output12x1.oneActive = true; output12x1.isOK = false; output12x1.chaos = false; output12x1.state = 50; output12x1.controled = 'forcefield12x1'; output12x2.inA = 'wire12x2'; output12x2.oneActive = true; output12x2.isOK = false; output12x2.chaos = false; output12x2.state = 50; output12x2.controled = 'exit'; forcefield12x1.state = true; forcefield12x1.desiredState = true; exit.state = true; exit.desiredState = true; _root.hud.counters.normCount = 0; _root.hud.counters.invCount = 0; _root.hud.counters.andCount = 0; _root.hud.counters.orCount = 0; _root.hud.counters.nandCount = 0; _root.hud.counters.norCount = 0; _root.hud.counters.xorCount = 0; _root.hud.avaible = 7; _root.hud.selected = 5; stop(); } instance player of movieClip 7277 { onClipEvent (load) { speedY = 0; speedX = -3; maxSpeedY = 20; maxSpeedX = 6; jumpPower = 22; gravity = 2; walkingSpeed = 5; turnRight = true; isJumping = false; isRunning = false; isFalling = false; isReplacing = false; alive = true; aliveAnim = true; targeting = 'none'; born = false; paused = false; } onClipEvent (enterFrame) { if (alive == true and born == true and paused == false) { if (Key.isDown(Key.SPACE)) { if (isReplacing == false and isFalling == false and isJumping == false and isRunning == false and targeting != 'none') { isReplacing = true; if (_root.game[targeting].content != 'broken') { this.gotoAndPlay('replace'); } else { if (_root.hud.selected == 1 and 0 < _root.hud.counters.normCount or _root.hud.selected == 2 and 0 < _root.hud.counters.invCount or _root.hud.selected == 3 and 0 < _root.hud.counters.andCount or _root.hud.selected == 4 and 0 < _root.hud.counters.orCount or _root.hud.selected == 5 and 0 < _root.hud.counters.nandCount or _root.hud.selected == 6 and 0 < _root.hud.counters.norCount or _root.hud.selected == 7 and 0 < _root.hud.counters.xorCount) { if (2 >= _root.hud.selected and _root.game[targeting].inputs == 1 or 2 < _root.hud.selected and _root.game[targeting].inputs == 2) { this.gotoAndPlay('replace'); } else { if (_root.hud.info.isBusy == false) { _root.hud.info.gotoAndPlay('wontFit'); } isReplacing = false; } } else { isReplacing = false; } } } } if (isReplacing == false) { if (Key.isDown(Key.LEFT) or Key.isDown(65)) { speedX -= 2; if (turnRight == true) { _xscale = _xscale * -1; turnRight = false; } if (speedX < -maxSpeedX) { speedX = -maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } else { if (Key.isDown(Key.RIGHT) or Key.isDown(68)) { speedX += 2; if (turnRight == false) { _xscale = _xscale * -1; turnRight = true; } if (maxSpeedX < speedX) { speedX = maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } } if (!Key.isDown(Key.LEFT) and !Key.isDown(Key.RIGHT) and !Key.isDown(68) and !Key.isDown(65)) { if (isFalling == false) { if (isRunning == true and 5 < Math.abs(speedX) and isJumping == false) { isRunning = false; this.gotoAndStop('breakStart'); } else { if (speedX == 0) { if (isJumping == false) { isRunning = false; this.gotoAndPlay('idle'); } } } } } if (Key.isDown(Key.UP) or Key.isDown(87)) { if (isJumping == false and isFalling == false) { speedY = -jumpPower; this.gotoAndPlay('jumpStart'); _root.soundsBox.marioJump.start(0, 1); isJumping = true; } } } speedY += gravity; if (maxSpeedY < speedY) { speedY = maxSpeedY; } nextY = this._y + speedY; nextX = this._x + speedX; while (_root.game.walls.hitTest(nextX + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; --nextX; } while (_root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; ++nextX; } if (this._y + 2.5 < nextY and isJumping == false) { if (isFalling == false) { this.gotoAndStop('fallStart'); } isFalling = true; } this._y = nextY; this._x = nextX; if (0 < speedX) { speedX -= 0.5; } if (speedX < 0) { speedX += 0.5; } if (speedX < 0.5 and -0.5 < speedX) { speedX = 0; } if (0 < this._x - _root.scena._width / 2 and this._x + _root.scena._width / 2 < _root.game.walls._width) { _root.game._x = Math.round(_root.scena._width / 2 - nextX); } if (0 < this._y - _root.scena._height / 2 and this._y + _root.scena._height / 2 < _root.game.walls._height) { _root.game._y = Math.round(_root.scena._height / 2 - nextY); } } } } instance spikesField12x1 of movieClip 7840 { onClipEvent (enterFrame) { if (this.hitTest(_root.game.player) and _root.game.player._currentframe == 65) { _root.game.player.nextFrame(); _root.game.player.play(); } if (this.hitTest(_root.game.player) and _root.game.player.aliveAnim == true) { _root.game.player.alive = false; _root.game.player.gotoAndPlay('die'); } } } frame 570 { _root.game._x = 0; _root.game._y = 0; _root.hud._visible = false; _root.hud.info.talkingPause = false; stopAllSounds(); } frame 620 { walls.gotoAndStop('level13'); walls._visible = false; levBackground.gotoAndStop('level13'); _root.hud._visible = true; levelNum = 14; talk15 = false; _root.hud.levelInfo.gotoAndStop('level14'); _root.musicBox.thinking.start(0, 999); inBoxNorm = 0; inBoxInv = 0; inBoxOr = 2; inBoxAnd = 0; inBoxNand = 2; inBoxNor = 0; inBoxXor = 0; input13x1.out = 'wire13x1'; input13x2.out = 'wire13x2'; input13x3.out = 'wire13x3'; input13x4.out = 'wire13x12'; input13x1.gotoAndPlay('clk4s'); input13x2.gotoAndPlay('clk2s'); input13x3.gotoAndPlay('off'); input13x4.gotoAndPlay('on'); gate13x1.inA = 'wire13x1'; gate13x1.inB = 'wire13x3'; gate13x1.out = 'wire13x4'; gate13x1.inputs = 2; gate13x1.gotoAndStop('or'); gate13x2.inA = 'wire13x2'; gate13x2.inB = 'wire13x4'; gate13x2.out = 'wire13x8'; gate13x2.inputs = 2; gate13x3.inA = 'wire13x1'; gate13x3.inB = 'wire13x3'; gate13x3.out = 'wire13x5'; gate13x3.inputs = 2; gate13x3.gotoAndStop('nor'); gate13x4.inA = 'wire13x2'; gate13x4.inB = 'wire13x5'; gate13x4.out = 'wire13x10'; gate13x4.inputs = 2; gate13x5.inA = 'wire13x1'; gate13x5.inB = 'wire13x3'; gate13x5.out = 'wire13x6'; gate13x5.inputs = 2; gate13x5.gotoAndStop('nor'); gate13x6.inA = 'wire13x2'; gate13x6.inB = 'wire13x6'; gate13x6.out = 'wire13x9'; gate13x6.inputs = 2; gate13x7.inA = 'wire13x1'; gate13x7.inB = 'wire13x3'; gate13x7.out = 'wire13x7'; gate13x7.inputs = 2; gate13x7.gotoAndStop('or'); gate13x8.inA = 'wire13x2'; gate13x8.inB = 'wire13x7'; gate13x8.out = 'wire13x11'; gate13x8.inputs = 2; output13x1.inA = 'wire13x11'; output13x1.oneActive = false; output13x1.isOK = false; output13x1.chaos = false; output13x1.state = 50; output13x1.controled = 'forcefield13x1'; output13x2.inA = 'wire13x9'; output13x2.oneActive = false; output13x2.isOK = false; output13x2.chaos = false; output13x2.state = 50; output13x2.controled = 'forcefield13x2'; output13x3.inA = 'wire13x10'; output13x3.oneActive = false; output13x3.isOK = false; output13x3.chaos = false; output13x3.state = 50; output13x3.controled = 'forcefield13x3'; output13x4.inA = 'wire13x8'; output13x4.oneActive = false; output13x4.isOK = false; output13x4.chaos = false; output13x4.state = 50; output13x4.controled = 'forcefield13x4'; output13x5.inA = 'wire13x11'; output13x5.oneActive = false; output13x5.isOK = false; output13x5.chaos = false; output13x5.state = 50; output13x5.controled = 'forcefield13x5'; output13x6.inA = 'wire13x9'; output13x6.oneActive = false; output13x6.isOK = false; output13x6.chaos = false; output13x6.state = 50; output13x6.controled = 'forcefield13x6'; output13x7.inA = 'wire13x10'; output13x7.oneActive = false; output13x7.isOK = false; output13x7.chaos = false; output13x7.state = 50; output13x7.controled = 'forcefield13x7'; output13x8.inA = 'wire13x8'; output13x8.oneActive = false; output13x8.isOK = false; output13x8.chaos = false; output13x8.state = 50; output13x8.controled = 'forcefield13x8'; output13x9.inA = 'wire13x12'; output13x9.oneActive = true; output13x9.isOK = false; output13x9.chaos = false; output13x9.state = 50; output13x9.controled = 'exit'; forcefield13x1.state = false; forcefield13x1.desiredState = false; forcefield13x2.state = false; forcefield13x2.desiredState = false; forcefield13x3.state = false; forcefield13x3.desiredState = false; forcefield13x4.state = false; forcefield13x4.desiredState = false; forcefield13x5.state = false; forcefield13x5.desiredState = false; forcefield13x6.state = false; forcefield13x6.desiredState = false; forcefield13x7.state = false; forcefield13x7.desiredState = false; forcefield13x8.state = false; forcefield13x8.desiredState = false; exit.state = true; exit.desiredState = true; _root.hud.counters.normCount = 0; _root.hud.counters.invCount = 0; _root.hud.counters.andCount = 0; _root.hud.counters.orCount = 0; _root.hud.counters.nandCount = 0; _root.hud.counters.norCount = 0; _root.hud.counters.xorCount = 0; _root.hud.avaible = 7; _root.hud.selected = 1; stop(); } instance player of movieClip 7277 { onClipEvent (load) { speedY = 0; speedX = -3; maxSpeedY = 20; maxSpeedX = 6; jumpPower = 22; gravity = 2; walkingSpeed = 5; turnRight = true; isJumping = false; isRunning = false; isFalling = false; isReplacing = false; alive = true; aliveAnim = true; targeting = 'none'; born = false; paused = false; } onClipEvent (enterFrame) { if (alive == true and born == true and paused == false) { if (Key.isDown(Key.SPACE)) { if (isReplacing == false and isFalling == false and isJumping == false and isRunning == false and targeting != 'none') { isReplacing = true; if (_root.game[targeting].content != 'broken') { this.gotoAndPlay('replace'); } else { if (_root.hud.selected == 1 and 0 < _root.hud.counters.normCount or _root.hud.selected == 2 and 0 < _root.hud.counters.invCount or _root.hud.selected == 3 and 0 < _root.hud.counters.andCount or _root.hud.selected == 4 and 0 < _root.hud.counters.orCount or _root.hud.selected == 5 and 0 < _root.hud.counters.nandCount or _root.hud.selected == 6 and 0 < _root.hud.counters.norCount or _root.hud.selected == 7 and 0 < _root.hud.counters.xorCount) { if (2 >= _root.hud.selected and _root.game[targeting].inputs == 1 or 2 < _root.hud.selected and _root.game[targeting].inputs == 2) { this.gotoAndPlay('replace'); } else { if (_root.hud.info.isBusy == false) { _root.hud.info.gotoAndPlay('wontFit'); } isReplacing = false; } } else { isReplacing = false; } } } } if (isReplacing == false) { if (Key.isDown(Key.LEFT) or Key.isDown(65)) { speedX -= 2; if (turnRight == true) { _xscale = _xscale * -1; turnRight = false; } if (speedX < -maxSpeedX) { speedX = -maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } else { if (Key.isDown(Key.RIGHT) or Key.isDown(68)) { speedX += 2; if (turnRight == false) { _xscale = _xscale * -1; turnRight = true; } if (maxSpeedX < speedX) { speedX = maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } } if (!Key.isDown(Key.LEFT) and !Key.isDown(Key.RIGHT) and !Key.isDown(68) and !Key.isDown(65)) { if (isFalling == false) { if (isRunning == true and 5 < Math.abs(speedX) and isJumping == false) { isRunning = false; this.gotoAndStop('breakStart'); } else { if (speedX == 0) { if (isJumping == false) { isRunning = false; this.gotoAndPlay('idle'); } } } } } if (Key.isDown(Key.UP) or Key.isDown(87)) { if (isJumping == false and isFalling == false) { speedY = -jumpPower; this.gotoAndPlay('jumpStart'); _root.soundsBox.marioJump.start(0, 1); isJumping = true; } } } speedY += gravity; if (maxSpeedY < speedY) { speedY = maxSpeedY; } nextY = this._y + speedY; nextX = this._x + speedX; while (_root.game.walls.hitTest(nextX + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; --nextX; } while (_root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; ++nextX; } if (this._y + 2.5 < nextY and isJumping == false) { if (isFalling == false) { this.gotoAndStop('fallStart'); } isFalling = true; } this._y = nextY; this._x = nextX; if (0 < speedX) { speedX -= 0.5; } if (speedX < 0) { speedX += 0.5; } if (speedX < 0.5 and -0.5 < speedX) { speedX = 0; } if (0 < this._x - _root.scena._width / 2 and this._x + _root.scena._width / 2 < _root.game.walls._width) { _root.game._x = Math.round(_root.scena._width / 2 - nextX); } if (0 < this._y - _root.scena._height / 2 and this._y + _root.scena._height / 2 < _root.game.walls._height) { _root.game._y = Math.round(_root.scena._height / 2 - nextY); } } } } instance talk15 of movieClip 7838 { onClipEvent (enterFrame) { if (_parent.talk15 == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.talk = '15'; _parent.talk15 = true; _root.game.player.paused = true; _root.hud.info.gotoAndPlay('talking'); } } } } frame 621 { _root.game._x = 0; _root.game._y = 0; _root.hud._visible = false; _root.hud.info.talkingPause = false; stopAllSounds(); } frame 671 { walls.gotoAndStop('level11'); walls._visible = false; levBackground.gotoAndStop('level11'); _root.hud._visible = true; levelNum = 11; _root.hud.levelInfo.gotoAndStop('level11'); _root.musicBox.newFriendly.start(0, 999); inBoxNorm = 0; inBoxInv = 0; inBoxOr = 0; inBoxAnd = 2; inBoxNand = 0; inBoxNor = 0; inBoxXor = 0; input11x1.out = 'wire11x1'; input11x2.out = 'wire11x2'; input11x3.out = 'wire11x3'; input11x4.out = 'wire11x4'; input11x5.out = 'wire11x7'; input11x6.out = 'wire11x6'; input11x1.gotoAndPlay('off'); input11x2.gotoAndPlay('clk1s'); input11x3.gotoAndPlay('clk2s'); input11x4.gotoAndPlay('on'); input11x5.gotoAndPlay('on'); input11x6.gotoAndPlay('off'); gate11x1.inA = 'wire11x7'; gate11x1.inB = 'wire11x6'; gate11x1.out = 'wire11x9'; gate11x1.inputs = 2; gate11x2.inA = 'wire11x6'; gate11x2.inB = 'wire11x7'; gate11x2.out = 'wire11x8'; gate11x2.inputs = 2; gate11x3.inA = 'none'; gate11x3.inB = 'none'; gate11x3.out = 'none'; gate11x3.inputs = 2; gate11x3.gotoAndStop('or'); gate11x4.inA = 'none'; gate11x4.inB = 'none'; gate11x4.out = 'none'; gate11x4.inputs = 2; gate11x4.gotoAndStop('or'); mux11x1.inA = 'wire11x1'; mux11x1.inB = 'wire11x2'; mux11x1.inC = 'wire11x3'; mux11x1.inD = 'wire11x4'; mux11x1.adA = 'wire11x9'; mux11x1.adB = 'wire11x8'; mux11x1.out = 'wire11x5'; output11x1.inA = 'wire11x5'; output11x1.oneActive = true; output11x1.isOK = false; output11x1.chaos = false; output11x1.state = 50; output11x1.controled = 'lift11x1'; output11x2.inA = 'wire11x5'; output11x2.oneActive = true; output11x2.isOK = false; output11x2.chaos = false; output11x2.state = 50; output11x2.controled = 'forcefield11x2'; output11x3.inA = 'wire11x5'; output11x3.oneActive = false; output11x3.isOK = false; output11x3.chaos = false; output11x3.state = 50; output11x3.controled = 'forcefield11x1'; output11x4.inA = 'wire11x5'; output11x4.oneActive = true; output11x4.isOK = false; output11x4.chaos = false; output11x4.state = 50; output11x4.controled = 'exit'; lift11x1.state = true; lift11x1.desiredState = true; forcefield11x1.state = false; forcefield11x1.desiredState = false; forcefield11x2.state = false; forcefield11x2.desiredState = false; exit.state = true; exit.desiredState = true; _root.hud.counters.normCount = 0; _root.hud.counters.invCount = 0; _root.hud.counters.andCount = 0; _root.hud.counters.orCount = 0; _root.hud.counters.nandCount = 0; _root.hud.counters.norCount = 0; _root.hud.counters.xorCount = 0; _root.hud.avaible = 7; _root.hud.selected = 1; stop(); } instance player of movieClip 7277 { onClipEvent (load) { speedY = 0; speedX = -3; maxSpeedY = 20; maxSpeedX = 6; jumpPower = 22; gravity = 2; walkingSpeed = 5; turnRight = true; isJumping = false; isRunning = false; isFalling = false; isReplacing = false; alive = true; aliveAnim = true; targeting = 'none'; born = false; paused = false; } onClipEvent (enterFrame) { if (alive == true and born == true and paused == false) { if (Key.isDown(Key.SPACE)) { if (isReplacing == false and isFalling == false and isJumping == false and isRunning == false and targeting != 'none') { isReplacing = true; if (_root.game[targeting].content != 'broken') { this.gotoAndPlay('replace'); } else { if (_root.hud.selected == 1 and 0 < _root.hud.counters.normCount or _root.hud.selected == 2 and 0 < _root.hud.counters.invCount or _root.hud.selected == 3 and 0 < _root.hud.counters.andCount or _root.hud.selected == 4 and 0 < _root.hud.counters.orCount or _root.hud.selected == 5 and 0 < _root.hud.counters.nandCount or _root.hud.selected == 6 and 0 < _root.hud.counters.norCount or _root.hud.selected == 7 and 0 < _root.hud.counters.xorCount) { if (2 >= _root.hud.selected and _root.game[targeting].inputs == 1 or 2 < _root.hud.selected and _root.game[targeting].inputs == 2) { this.gotoAndPlay('replace'); } else { if (_root.hud.info.isBusy == false) { _root.hud.info.gotoAndPlay('wontFit'); } isReplacing = false; } } else { isReplacing = false; } } } } if (isReplacing == false) { if (Key.isDown(Key.LEFT) or Key.isDown(65)) { speedX -= 2; if (turnRight == true) { _xscale = _xscale * -1; turnRight = false; } if (speedX < -maxSpeedX) { speedX = -maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } else { if (Key.isDown(Key.RIGHT) or Key.isDown(68)) { speedX += 2; if (turnRight == false) { _xscale = _xscale * -1; turnRight = true; } if (maxSpeedX < speedX) { speedX = maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } } if (!Key.isDown(Key.LEFT) and !Key.isDown(Key.RIGHT) and !Key.isDown(68) and !Key.isDown(65)) { if (isFalling == false) { if (isRunning == true and 5 < Math.abs(speedX) and isJumping == false) { isRunning = false; this.gotoAndStop('breakStart'); } else { if (speedX == 0) { if (isJumping == false) { isRunning = false; this.gotoAndPlay('idle'); } } } } } if (Key.isDown(Key.UP) or Key.isDown(87)) { if (isJumping == false and isFalling == false) { speedY = -jumpPower; this.gotoAndPlay('jumpStart'); _root.soundsBox.marioJump.start(0, 1); isJumping = true; } } } speedY += gravity; if (maxSpeedY < speedY) { speedY = maxSpeedY; } nextY = this._y + speedY; nextX = this._x + speedX; while (_root.game.walls.hitTest(nextX + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; --nextX; } while (_root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; ++nextX; } if (this._y + 2.5 < nextY and isJumping == false) { if (isFalling == false) { this.gotoAndStop('fallStart'); } isFalling = true; } this._y = nextY; this._x = nextX; if (0 < speedX) { speedX -= 0.5; } if (speedX < 0) { speedX += 0.5; } if (speedX < 0.5 and -0.5 < speedX) { speedX = 0; } if (0 < this._x - _root.scena._width / 2 and this._x + _root.scena._width / 2 < _root.game.walls._width) { _root.game._x = Math.round(_root.scena._width / 2 - nextX); } if (0 < this._y - _root.scena._height / 2 and this._y + _root.scena._height / 2 < _root.game.walls._height) { _root.game._y = Math.round(_root.scena._height / 2 - nextY); } } } } frame 672 { _root.game._x = 0; _root.game._y = 0; _root.hud._visible = false; _root.hud.info.talkingPause = false; stopAllSounds(); } frame 722 { walls.gotoAndStop('level14'); walls._visible = false; levBackground.gotoAndStop('level14'); _root.hud._visible = true; levelNum = 12; _root.hud.levelInfo.gotoAndStop('level12'); _root.musicBox.howItBegins.start(0, 999); inBoxNorm = 0; inBoxInv = 0; inBoxOr = 1; inBoxAnd = 1; inBoxNand = 1; inBoxNor = 1; inBoxXor = 1; input14x1.out = 'wire14x1'; input14x2.out = 'wire14x2'; input14x3.out = 'wire14x5'; input14x4.out = 'wire14x12'; input14x5.out = 'wire14x13'; input14x1.gotoAndPlay('on'); input14x2.gotoAndPlay('on'); input14x3.gotoAndPlay('off'); input14x4.gotoAndPlay('off'); input14x5.gotoAndPlay('on'); gate14x1.inA = 'wire14x1'; gate14x1.inB = 'wire14x2'; gate14x1.out = 'wire14x3'; gate14x1.inputs = 2; gate14x2.inA = 'wire14x1'; gate14x2.inB = 'wire14x2'; gate14x2.out = 'wire14x4'; gate14x2.inputs = 2; gate14x3.inA = 'wire14x11'; gate14x3.inB = 'wire14x7'; gate14x3.out = 'wire14x8'; gate14x3.inputs = 2; gate14x4.inA = 'wire14x4'; gate14x4.inB = 'wire14x5'; gate14x4.out = 'wire14x6'; gate14x4.inputs = 2; gate14x5.inA = 'wire14x6'; gate14x5.out = 'wire14x14'; gate14x5.inputs = 1; gate14x6.inA = 'wire14x14'; gate14x6.inB = 'wire14x8'; gate14x6.out = 'wire14x9'; gate14x6.inputs = 2; gate14x6.gotoAndStop('and'); gate14x7.inA = 'wire14x6'; gate14x7.out = 'wire14x7'; gate14x7.inputs = 1; mux14x1.inA = 'wire14x3'; mux14x1.inB = 'wire14x4'; mux14x1.inC = 'wire14x3'; mux14x1.inD = 'wire14x4'; mux14x1.adA = 'wire14x4'; mux14x1.adB = 'wire14x3'; mux14x1.out = 'wire14x11'; mux14x2.inA = 'wire14x9'; mux14x2.inB = 'wire14x9'; mux14x2.inC = 'wire14x9'; mux14x2.inD = 'wire14x9'; mux14x2.adA = 'wire14x7'; mux14x2.adB = 'wire14x8'; mux14x2.out = 'wire14x10'; mux14x3.inA = 'wire14x12'; mux14x3.inB = 'wire14x12'; mux14x3.inC = 'wire14x13'; mux14x3.inD = 'wire14x12'; mux14x3.adA = 'wire14x10'; mux14x3.adB = 'wire14x11'; mux14x3.out = 'wire14x15'; output14x1.inA = 'wire14x15'; output14x1.oneActive = true; output14x1.isOK = false; output14x1.chaos = false; output14x1.state = 50; output14x1.controled = 'exit'; exit.state = true; exit.desiredState = true; _root.hud.counters.normCount = 0; _root.hud.counters.invCount = 0; _root.hud.counters.andCount = 0; _root.hud.counters.orCount = 0; _root.hud.counters.nandCount = 0; _root.hud.counters.norCount = 0; _root.hud.counters.xorCount = 0; _root.hud.avaible = 7; _root.hud.selected = 1; stop(); } instance player of movieClip 7277 { onClipEvent (load) { speedY = 0; speedX = -3; maxSpeedY = 20; maxSpeedX = 6; jumpPower = 22; gravity = 2; walkingSpeed = 5; turnRight = true; isJumping = false; isRunning = false; isFalling = false; isReplacing = false; alive = true; aliveAnim = true; targeting = 'none'; born = false; paused = false; } onClipEvent (enterFrame) { if (alive == true and born == true and paused == false) { if (Key.isDown(Key.SPACE)) { if (isReplacing == false and isFalling == false and isJumping == false and isRunning == false and targeting != 'none') { isReplacing = true; if (_root.game[targeting].content != 'broken') { this.gotoAndPlay('replace'); } else { if (_root.hud.selected == 1 and 0 < _root.hud.counters.normCount or _root.hud.selected == 2 and 0 < _root.hud.counters.invCount or _root.hud.selected == 3 and 0 < _root.hud.counters.andCount or _root.hud.selected == 4 and 0 < _root.hud.counters.orCount or _root.hud.selected == 5 and 0 < _root.hud.counters.nandCount or _root.hud.selected == 6 and 0 < _root.hud.counters.norCount or _root.hud.selected == 7 and 0 < _root.hud.counters.xorCount) { if (2 >= _root.hud.selected and _root.game[targeting].inputs == 1 or 2 < _root.hud.selected and _root.game[targeting].inputs == 2) { this.gotoAndPlay('replace'); } else { if (_root.hud.info.isBusy == false) { _root.hud.info.gotoAndPlay('wontFit'); } isReplacing = false; } } else { isReplacing = false; } } } } if (isReplacing == false) { if (Key.isDown(Key.LEFT) or Key.isDown(65)) { speedX -= 2; if (turnRight == true) { _xscale = _xscale * -1; turnRight = false; } if (speedX < -maxSpeedX) { speedX = -maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } else { if (Key.isDown(Key.RIGHT) or Key.isDown(68)) { speedX += 2; if (turnRight == false) { _xscale = _xscale * -1; turnRight = true; } if (maxSpeedX < speedX) { speedX = maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } } if (!Key.isDown(Key.LEFT) and !Key.isDown(Key.RIGHT) and !Key.isDown(68) and !Key.isDown(65)) { if (isFalling == false) { if (isRunning == true and 5 < Math.abs(speedX) and isJumping == false) { isRunning = false; this.gotoAndStop('breakStart'); } else { if (speedX == 0) { if (isJumping == false) { isRunning = false; this.gotoAndPlay('idle'); } } } } } if (Key.isDown(Key.UP) or Key.isDown(87)) { if (isJumping == false and isFalling == false) { speedY = -jumpPower; this.gotoAndPlay('jumpStart'); _root.soundsBox.marioJump.start(0, 1); isJumping = true; } } } speedY += gravity; if (maxSpeedY < speedY) { speedY = maxSpeedY; } nextY = this._y + speedY; nextX = this._x + speedX; while (_root.game.walls.hitTest(nextX + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; --nextX; } while (_root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; ++nextX; } if (this._y + 2.5 < nextY and isJumping == false) { if (isFalling == false) { this.gotoAndStop('fallStart'); } isFalling = true; } this._y = nextY; this._x = nextX; if (0 < speedX) { speedX -= 0.5; } if (speedX < 0) { speedX += 0.5; } if (speedX < 0.5 and -0.5 < speedX) { speedX = 0; } if (0 < this._x - _root.scena._width / 2 and this._x + _root.scena._width / 2 < _root.game.walls._width) { _root.game._x = Math.round(_root.scena._width / 2 - nextX); } if (0 < this._y - _root.scena._height / 2 and this._y + _root.scena._height / 2 < _root.game.walls._height) { _root.game._y = Math.round(_root.scena._height / 2 - nextY); } } } } frame 724 { _root.game._x = 0; _root.game._y = 0; _root.hud._visible = false; _root.hud.info.talkingPause = false; stopAllSounds(); } frame 774 { walls.gotoAndStop('level15'); walls._visible = false; levBackground.gotoAndStop('level15'); _root.hud._visible = true; levelNum = 15; _root.hud.levelInfo.gotoAndStop('level15'); _root.musicBox.bossFight.start(0, 999); talk12 = false; inBoxNorm = 3; inBoxInv = 3; inBoxOr = 3; inBoxAnd = 3; inBoxNand = 1; inBoxNor = 1; inBoxXor = 1; i = 1; while (60 >= i) { _root.game['infected15x' + i]._visible = false; ++i; } _root.game.boss15x1.alive = true; input15x1.out = 'wire15x11'; input15x2.out = 'wire15x2'; input15x3.out = 'wire15x1'; input15x4.out = 'wire15x16'; input15x5.out = 'wire15x17'; input15x6.out = 'wire15x9'; input15x1.gotoAndPlay('clk2s'); input15x2.gotoAndPlay('off'); input15x3.gotoAndPlay('on'); input15x4.gotoAndPlay('off'); input15x5.gotoAndPlay('on'); input15x6.gotoAndPlay('clk1s'); gate15x1.inA = 'wire15x11'; gate15x1.inB = 'wire15x14'; gate15x1.out = 'wire15x13'; gate15x1.inputs = 2; gate15x1.gotoAndStop('or'); gate15x2.inA = 'wire15x9'; gate15x2.inB = 'wire15x11'; gate15x2.out = 'wire15x14'; gate15x2.inputs = 2; gate15x2.gotoAndStop('nand'); gate15x3.inA = 'wire15x9'; gate15x3.inB = 'wire15x10'; gate15x3.out = 'wire15x12'; gate15x3.inputs = 2; gate15x3.gotoAndStop('or'); gate15x4.inA = 'wire15x9'; gate15x4.out = 'wire15x10'; gate15x4.inputs = 1; gate15x5.inA = 'wire15x18'; gate15x5.out = 'wire15x19'; gate15x5.inputs = 1; gate15x6.inA = 'wire15x3'; gate15x6.out = 'wire15x4'; gate15x6.inputs = 1; gate15x7.inA = 'wire15x1'; gate15x7.inB = 'wire15x2'; gate15x7.out = 'wire15x6'; gate15x7.inputs = 2; gate15x7.gotoAndStop('and'); gate15x8.inA = 'wire15x1'; gate15x8.inB = 'wire15x2'; gate15x8.out = 'wire15x3'; gate15x8.inputs = 2; gate15x8.gotoAndStop('or'); gate15x9.inA = 'wire15x21'; gate15x9.out = 'wire15x22'; gate15x9.inputs = 1; gate15x10.inA = 'wire15x16'; gate15x10.inB = 'wire15x17'; gate15x10.out = 'wire15x18'; gate15x10.inputs = 2; gate15x10.gotoAndStop('and'); gate15x11.inA = 'wire15x3'; gate15x11.out = 'wire15x5'; gate15x11.inputs = 1; gate15x12.inA = 'wire15x16'; gate15x12.inB = 'wire15x18'; gate15x12.out = 'wire15x15'; gate15x12.inputs = 2; gate15x12.gotoAndStop('nand'); gate15x13.inA = 'wire15x8'; gate15x13.out = 'wire15x21'; gate15x13.inputs = 1; gate15x14.inA = 'wire15x6'; gate15x14.out = 'wire15x7'; gate15x14.inputs = 1; gate15x15.inA = 'wire15x8'; gate15x15.out = 'wire15x20'; gate15x15.inputs = 1; gate15x15.gotoAndStop('norm'); mux15x1.inA = 'wire15x4'; mux15x1.inB = 'wire15x5'; mux15x1.inC = 'wire15x3'; mux15x1.inD = 'wire15x2'; mux15x1.adA = 'wire15x3'; mux15x1.adB = 'wire15x6'; mux15x1.out = 'wire15x8'; gate15x13.gotoAndStop('virused1'); exit.state = false; exit.desiredState = true; _root.hud.counters.normCount = 0; _root.hud.counters.invCount = 0; _root.hud.counters.andCount = 0; _root.hud.counters.orCount = 0; _root.hud.counters.nandCount = 0; _root.hud.counters.norCount = 0; _root.hud.counters.xorCount = 0; _root.hud.avaible = 7; _root.hud.selected = 1; stop(); } instance player of movieClip 7277 { onClipEvent (load) { speedY = 0; speedX = -3; maxSpeedY = 20; maxSpeedX = 6; jumpPower = 22; gravity = 2; walkingSpeed = 5; turnRight = true; isJumping = false; isRunning = false; isFalling = false; isReplacing = false; alive = true; aliveAnim = true; targeting = 'none'; born = false; paused = false; } onClipEvent (enterFrame) { if (alive == true and born == true and paused == false) { if (Key.isDown(Key.SPACE)) { if (isReplacing == false and isFalling == false and isJumping == false and isRunning == false and targeting != 'none') { isReplacing = true; if (_root.game[targeting].content != 'broken') { this.gotoAndPlay('replace'); } else { if (_root.hud.selected == 1 and 0 < _root.hud.counters.normCount or _root.hud.selected == 2 and 0 < _root.hud.counters.invCount or _root.hud.selected == 3 and 0 < _root.hud.counters.andCount or _root.hud.selected == 4 and 0 < _root.hud.counters.orCount or _root.hud.selected == 5 and 0 < _root.hud.counters.nandCount or _root.hud.selected == 6 and 0 < _root.hud.counters.norCount or _root.hud.selected == 7 and 0 < _root.hud.counters.xorCount) { if (2 >= _root.hud.selected and _root.game[targeting].inputs == 1 or 2 < _root.hud.selected and _root.game[targeting].inputs == 2) { this.gotoAndPlay('replace'); } else { if (_root.hud.info.isBusy == false) { _root.hud.info.gotoAndPlay('wontFit'); } isReplacing = false; } } else { isReplacing = false; } } } } if (isReplacing == false) { if (Key.isDown(Key.LEFT) or Key.isDown(65)) { speedX -= 2; if (turnRight == true) { _xscale = _xscale * -1; turnRight = false; } if (speedX < -maxSpeedX) { speedX = -maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } else { if (Key.isDown(Key.RIGHT) or Key.isDown(68)) { speedX += 2; if (turnRight == false) { _xscale = _xscale * -1; turnRight = true; } if (maxSpeedX < speedX) { speedX = maxSpeedX; } if (isRunning == false and isJumping == false and isFalling == false) { this.gotoAndPlay('runStart'); isRunning = true; } } } if (!Key.isDown(Key.LEFT) and !Key.isDown(Key.RIGHT) and !Key.isDown(68) and !Key.isDown(65)) { if (isFalling == false) { if (isRunning == true and 5 < Math.abs(speedX) and isJumping == false) { isRunning = false; this.gotoAndStop('breakStart'); } else { if (speedX == 0) { if (isJumping == false) { isRunning = false; this.gotoAndPlay('idle'); } } } } } if (Key.isDown(Key.UP) or Key.isDown(87)) { if (isJumping == false and isFalling == false) { speedY = -jumpPower; this.gotoAndPlay('jumpStart'); _root.soundsBox.marioJump.start(0, 1); isJumping = true; } } } speedY += gravity; if (maxSpeedY < speedY) { speedY = maxSpeedY; } nextY = this._y + speedY; nextX = this._x + speedX; while (_root.game.walls.hitTest(nextX + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY + _root.game._y, true)) { speedY = 0; --nextY; if (isJumping == true or isFalling == true) { if (isRunning == true) { this.gotoAndPlay('runStart'); } else { this.gotoAndPlay('idle'); } } isFalling = false; isJumping = false; } while (_root.game.walls.hitTest(nextX + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX - this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 4 + _root.game._x, nextY - this._height + _root.game._y, true)) { speedY = 0; ++nextY; } while (_root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX + this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; --nextX; } while (_root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height + _root.game._y, true) or _root.game.walls.hitTest(nextX - this._width / 2 + _root.game._x, nextY - this._height / 2 + _root.game._y, true)) { speedX = 0; ++nextX; } if (this._y + 2.5 < nextY and isJumping == false) { if (isFalling == false) { this.gotoAndStop('fallStart'); } isFalling = true; } this._y = nextY; this._x = nextX; if (0 < speedX) { speedX -= 0.5; } if (speedX < 0) { speedX += 0.5; } if (speedX < 0.5 and -0.5 < speedX) { speedX = 0; } if (0 < this._x - _root.scena._width / 2 and this._x + _root.scena._width / 2 < _root.game.walls._width) { _root.game._x = Math.round(_root.scena._width / 2 - nextX); } if (0 < this._y - _root.scena._height / 2 and this._y + _root.scena._height / 2 < _root.game.walls._height) { _root.game._y = Math.round(_root.scena._height / 2 - nextY); } } } } instance acid of movieClip 7834 { onClipEvent (load) { var count = 0; var count2 = 0; } onClipEvent (enterFrame) { if (_root.game.player.paused == false) { if (_root.game.boss15x1.alive == true) { this._y -= 0.05000000074505806; _root.game.splash._y -= 0.05000000074505806; _root.game.waterfallmask._y -= 0.05000000074505806; } else { if (this._y < 1000) { this._y += 1.5; } _root.game.splash._visible = false; _root.game.waterfall._visible = false; } if (_root.game.splash._y < 550 and 0 < _root.game.splash._alpha) { _root.game.splash._alpha -= 0.1000000014901161; } if (_root.game.player.hitTest(this.killer)) { if (_root.game.player._currentframe == 65) { _root.game.player.nextFrame(); _root.game.player.play(); } if (_root.game.player.aliveAnim == true) { _root.game.player.alive = false; _root.game.player.gotoAndPlay('die'); } } ++count; if (count >= 150) { count = 0; i = 1; while (60 >= i) { if (this.hitTest(_root.game['infected15x' + i])) { if (3 < Math.random() * 10) { _root.game['infected15x' + i]._visible = true; } } else { if (7 < Math.random() * 10) { _root.game['infected15x' + i]._visible = false; } } ++i; } } } } } instance talk12a of movieClip 7836 { onClipEvent (enterFrame) { if (_parent.talk12 == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.talk = '12'; _parent.talk12 = true; _root.game.player.paused = true; _root.hud.info.gotoAndPlay('talking'); } } } } instance talk12b of movieClip 7836 { onClipEvent (enterFrame) { if (_parent.talk12 == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.talk = '12'; _parent.talk12 = true; _root.game.player.paused = true; _root.hud.info.gotoAndPlay('talking'); } } } } instance talk12c of movieClip 7836 { onClipEvent (enterFrame) { if (_parent.talk12 == false) { if (this.hitTest(_root.game.player)) { _root.hud.info.talk = '12'; _parent.talk12 = true; _root.game.player.paused = true; _root.hud.info.gotoAndPlay('talking'); } } } } frame 776 { _root.game._x = 0; _root.game._y = 0; _root.hud._visible = false; _root.hud.info.talkingPause = false; stop(); } instance endGameClip of movieClip 133 { onClipEvent (mouseDown) { if (_parent.iter < _parent.textToSay.length) { while (_parent.iter < _parent.textToSay.length) { _parent.dialog += _parent.textToSay.charAt(_parent.iter); ++_parent.iter; } _parent.backToMainBut._visible = true; } } onClipEvent (keyDown) { if (Key.isDown(32)) { if (_parent.iter < _parent.textToSay.length) { while (_parent.iter < _parent.textToSay.length) { _parent.dialog += _parent.textToSay.charAt(_parent.iter); ++_parent.iter; } _parent.backToMainBut._visible = true; } } } onClipEvent (load) { _parent.iter = 0; _parent.textToSay = ' And so Ping defeated the enemy and stopped the virus invasion. The System was safe, but it took a long time until it fully recovered from the damage taken during the attack. The Security has been improved so it could respond better to the future threats - under the command of Ping, who has been promoted to the rank of General. Congratulations!!!'; _parent.dialog = ' '; _parent.backToMainBut._visible = false; } onClipEvent (enterFrame) { if (_parent.iter < _parent.textToSay.length) { _parent.dialog += _parent.textToSay.charAt(_parent.iter); ++_parent.iter; } else { _parent.backToMainBut._visible = true; } } } instance backToMainBut of movieClip 180 { onClipEvent (rollOver) { kolorek = new Color(this); kolorek.setRGB(6332367); } onClipEvent (rollOut) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (press) { _root.gotoAndPlay('sponsor'); } } } movieClip 10461 { } movieClip 10467 { } movieClip 10478 { } movieClip 10485 { } movieClip 10492 { } movieClip 10497 { } movieClip 10502 { } movieClip 10507 { } movieClip 10512 { } movieClip 10519 { } movieClip 10526 { } movieClip 10530 { frame 22 { if (Math.random() < 0.5) { gotoAndPlay(21); } else { gotoAndPlay(1); } } } movieClip 10569 { } movieClip 10574 { } movieClip 10590 { } movieClip 10601 { } movieClip 10603 { } movieClip 10766 { } movieClip 10783 { } movieClip 10800 { } movieClip 10805 { } movieClip 10807 { } movieClip 10808 { } movieClip 10810 { } movieClip 10991 { frame 1 { isBusy = false; talkingPause = false; } frame 2 { stop(); } frame 3 { isBusy = true; } frame 82 { gotoAndPlay(1); } frame 83 { _root.game.player.paused = true; talkingPause = true; i = 1; while (i < 16) { j = 1; while (j < 16) { _root.game['input' + i + 'x' + j].stop(); _root.game['input' + i + 'x' + j + 'Timer'].stop(); ++j; } ++i; } } frame 84 { iter = 0; dialog = ' '; autoPlay = false; showText = true; _root.hud.info._visible = true; if (talk == '1') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = 'Welcome cadet. I\'m General Abend, your superior.'; next = '1b'; } if (talk == '1b') { char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'Cadet Ping reporting in, sir!'; next = '1c'; } if (talk == '1c') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = 'Listen, Ping. I have a job for you. I\'ve had reports that something weird is going on in this sector. You\'ll check what\'s wrong.'; next = '1d'; } if (talk == '1d') { char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'Yes sir...! Umm... But I\'m just a new recruit... I don\'t know if I can handle it.'; next = '1e'; } if (talk == '1e') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = 'You\'ll do fine. I\'ll help you if you need. Now, move with arrow keys LEFT and RIGHT or A and D. Press UP or W to jump.'; next = '0'; } if (talk == '2') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = 'See? You\'re doing fine. Now, find out what is going on in this sector.'; next = '2b'; } if (talk == '2b') { char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'What\'s that thing ahead, sir?'; next = '2c'; } if (talk == '2c') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = 'Oh my... Didn\'t they teach you anything at the academy? It\'s an exit. Walk on it to finish current level.'; next = '0'; } if (talk == '3') { char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'That didn\'t work.'; next = '3b'; } if (talk == '3b') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = 'Well it seems the exit transporter is offline. See that pylon over there? It\'s responsible for turning the exit on and off and it\'s definitely not working correctly.'; next = '3c'; } if (talk == '3c') { char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'How can I fix it?'; next = '3d'; } if (talk == '3d') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = 'Use your brain, cadet. I\'m sure you can do it. You\'ll find more help on the wall screens. Abend out.'; next = '3e'; } if (talk == '3e') { char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'General...? But... Well I guess I\'ll try.'; next = '0'; } if (talk == '4') { char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'Now THIS looks suspicious... I\'d better check it out.'; next = '0'; } if (talk == '5') { char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'Oh shi... Cadet Ping calling HQ, anyone reads me?! WE HAVE A VIRUS INFECTION IN THE SYSTEM! I repeat: a virus detected!'; next = '5a'; } if (talk == '5a') { char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'Damn... What\'s wrong with that thing? Cadet Ping calling for reinforcements!'; next = '5b'; } if (talk == '5b') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = 'Abend here... What\'s going on there, cadet?'; next = '5c'; } if (talk == '5c') { char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'General! I\'ve detected a virus infection! I need some reinforcements here now!'; next = '5d'; } if (talk == '5d') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = 'What?! Damn. We cannot access your sector. I\'m afraid you\'re on your own, cadet.'; next = '5e'; } if (talk == '5e') { char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'On my own? Great...'; next = '0'; } if (talk == '6') { char.gotoAndStop('boss1'); whoIsThis = 'Worm'; textToSay = 'Oh... a breakfast! Come here little one... I bet you are tasty. '; next = '6a'; } if (talk == '6a') { char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = '*Gulp!*'; next = '0'; } if (talk == '7') { char.gotoAndStop('boss1'); whoIsThis = 'Worm'; textToSay = 'Blaaaarghhhh....!!!'; next = '0'; } if (talk == '8') { autoPlay = true; _root.hud.info._visible = false; char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = '.............'; next = '8a'; } if (talk == '8a') { _root.hud.info._visible = true; char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'General Abend! Umm... What are you doing here?'; next = '8b'; } if (talk == '8b') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = 'Well, Ping, let\'s say I\'m just checking how is your mission.'; next = '8c'; } if (talk == '8c') { char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'Umm... I think I\'m doing OK. I\'ve killed a huge worm some time ago, and-...'; next = '8d'; } if (talk == '8d') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = 'Yes, I know. In fact, I think you are doing a little too well.'; next = '8e'; } if (talk == '8e') { char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'Commander? What do you mean?'; next = '8f'; } if (talk == '8f') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = 'Think about it. An unknown problems and system\'s malfunctions. Possibly a dangerous virus infection. And I\'m sending the weakest and less knowing person I could think of to investigate. I\'m sending you.'; next = '8g'; } if (talk == '8g') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = 'You should be dead by now. I\'m surprised that you\'ve lived that long and gone so far. Perhaps I\'ve underestimated you. Now, it\'s time to fix my error...'; next = '8h'; } if (talk == '8h') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = '...and get rid of you once and for all.'; next = '8j'; } if (talk == '8j') { autoPlay = true; _root.hud.info._visible = false; _root.game.generalAbend9x1.gotoAndPlay('turn'); char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = '.............'; next = '0'; } if (talk == '9') { char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'That was close...! What is going on here?! Why Abend is trying to kill me?!'; next = '0'; } if (talk == '10') { autoPlay = true; _root.hud.info._visible = false; char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = '............................'; next = '10a'; } if (talk == '10a') { _root.hud.info._visible = true; char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = '... You again?'; next = '10b'; } if (talk == '10b') { char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'It takes something more than a spiked hole to kill me, general. Now... what the hell is going on here?'; next = '10c'; } if (talk == '10c') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = 'Ping... Maybe you are lucky... But you aren\'t the smartest person. You still don\'t get it, do you? I\'ve chosen you for this mission because I was sure you would fail.'; next = '10d'; } if (talk == '10d') { char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = '...'; next = '10e'; } if (talk == '10e') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = 'We\'ve been planning this invasion for a long time. Infecting a System, you see, is a complicated process. So we needed some kind of back-door. A rootkit.'; next = '10f'; } if (talk == '10f') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = 'I\'ve been sent to quietly replace your commander. To prepare the invasion from the inside and to deal with security systems.'; next = '10g'; } if (talk == '10g') { char.gotoAndStop('commander'); whoIsThis = 'General Abend'; textToSay = 'Well, Ping. The rest of security has been cut off. You\'re the only one standing in our way. And it\'s a high time to remove this obstacle.'; next = '10h'; } if (talk == '10h') { autoPlay = true; _root.hud.info._visible = false; _root.game.generalAbend9x2.gotoAndPlay('change'); char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = '... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... .. '; next = '10i'; } if (talk == '10i') { _root.hud.info._visible = true; char.gotoAndStop('boss2'); whoIsThis = 'Rootkit'; textToSay = 'BLAAARGHHH...!!! RUN FOR YOUR LIFE, VERMIN! I\'ll get you anyway!!!'; next = '0'; } if (talk == '11') { _root.hud.info._visible = true; char.gotoAndStop('boss2'); whoIsThis = 'Rootkit'; textToSay = 'NOOOOOOOO!!!'; next = '11a'; } if (talk == '11a') { _root.hud.info._visible = true; char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = '...I\'ve done it! But it\'s not over yet. Abend was following someone\'s orders... I need to find who is responsible for all this mess..'; next = '11b'; } if (talk == '11b') { _root.hud.info._visible = true; char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'Oh and it looks like he dropped something...'; next = '0'; } if (talk == '12') { _root.hud.info._visible = true; char.gotoAndStop('boss3'); whoIsThis = 'Virus leader'; textToSay = 'What is it? A pitiful attempt to stop the invasion?'; next = '12a'; } if (talk == '12a') { _root.hud.info._visible = true; char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'I\'ve repaired every damage you\'ve done so far. Removing you is the last thing I have to do.'; next = '12b'; } if (talk == '12b') { _root.hud.info._visible = true; char.gotoAndStop('boss3'); whoIsThis = 'Virus leader'; textToSay = 'You come too late, fool. I will drain every bit of data from your beloved system and flood it. And you will die with it!'; next = '12c'; } if (talk == '12c') { _root.hud.info._visible = true; char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'We will see about that!'; next = '12d'; } if (talk == '12d') { autoPlay = true; _root.hud.info._visible = false; char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = '... ... ... ... ... '; next = '12e'; } if (talk == '12e') { _root.hud.info._visible = true; char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = '...I probably have to feed him with low signals, just like the rest of them. But this time it looks like he\'s using more than one wire... I have lots of inverting to be done... quickly.'; next = '0'; } if (talk == '13') { _root.hud.info._visible = true; char.gotoAndStop('boss3'); stopAllSounds(); _root.musicBox.newFriendly.start(0, 999); whoIsThis = 'Virus leader'; textToSay = 'Noooooooooo...!!! I CAN NOT DIE!!!'; next = '13b'; } if (talk == '13b') { autoPlay = true; _root.hud.info._visible = false; char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = '... ... ... ... ... '; next = '13c'; } if (talk == '13c') { _root.hud.info._visible = true; char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'Yes you can. You just did.'; next = '0'; } if (talk == '15') { _root.hud.info._visible = true; char.gotoAndStop('hero'); whoIsThis = 'Cadet Ping'; textToSay = 'The core of the system is just beyond this portal. I\'ll probably face the leader of the invaders there... Let\'s just hope I can defeat him.'; next = '0'; } stop(); } instance char of movieClip 10766 { onClipEvent (mouseDown) { if (_parent.iter < _parent.textToSay.length and _parent.autoPlay == false) { while (_parent.iter < _parent.textToSay.length) { _parent.dialog += _parent.textToSay.charAt(_parent.iter); ++_parent.iter; } } else { _parent.talk = _parent.next; if (_parent.next == '0') { _root.game.player.paused = false; _root.hud.info.talkingPause = false; i = 1; while (i < 16) { j = 1; while (j < 16) { _root.game['input' + i + 'x' + j].play(); _root.game['input' + i + 'x' + j + 'Timer'].play(); ++j; } ++i; } _root.hud.info._visible = true; _parent.gotoAndPlay('hide'); } else { _parent.gotoAndPlay('talking'); } } } onClipEvent (keyDown) { if (Key.isDown(32)) { if (_parent.iter < _parent.textToSay.length and _parent.autoPlay == false) { while (_parent.iter < _parent.textToSay.length) { _parent.dialog += _parent.textToSay.charAt(_parent.iter); ++_parent.iter; } } else { _parent.talk = _parent.next; if (_parent.next == '0') { _root.game.player.paused = false; _root.hud.info.talkingPause = false; i = 1; while (i < 16) { j = 1; while (j < 16) { _root.game['input' + i + 'x' + j].play(); _root.game['input' + i + 'x' + j + 'Timer'].play(); ++j; } ++i; } _root.hud.info._visible = true; _parent.gotoAndPlay('hide'); } else { _parent.gotoAndPlay('talking'); } } } } onClipEvent (enterFrame) { if (_parent.iter < _parent.textToSay.length) { _parent.dialog += _parent.textToSay.charAt(_parent.iter); ++_parent.iter; } else { if (_parent.autoPlay == true) { _parent.talk = _parent.next; if (_parent.next == '0') { _root.hud.info._visible = true; _root.game.player.paused = false; _root.hud.info.talkingPause = false; _parent.gotoAndPlay('hide'); } else { _parent.gotoAndPlay('talking'); } } } } } frame 85 { if (infoID != 34) { hintArrow1._visible = false; } else { hintArrow._visible = true; } if (infoID == '1') { infoText = 'Move with arrow keys (LEFT and RIGHT) or A and D. Press UP arrow or W to jump.'; } if (infoID == '2') { infoText = 'Exit is controlled by this pylon, which is connected to a transmitting wire. The pylon is called an Output, because it terminates the signal route. Signal comes from an Input, which is located at the other end of the wire. Pretty simple, huh?'; } if (infoID == '3') { infoText = 'Everything here works in the binary system. It means 1 or 0, true or false. Wires transmitting \'one\' signals are bright, and those transmitting \'zero\' are dark. However there is a third state - the chaotic transient, which occurs when something interrupts the route.'; } if (infoID == '4') { infoText = ' Transient is no good, it makes everything on its way inoperative. You can recognize a wire in transient state by its blinking. (You can turn off the blinking in game options if it annoys you - it will be replaced with a violet color.)'; } if (infoID == '5') { infoText = 'This is the source. It generates the \'one\' signal. It seems that it\'s working fine, so the problem must be located elsewhere...'; } if (infoID == '6') { infoText = 'You\'ve found a problem - a missing gate. Gate is an element that connects two or more wires together. You have to find a gate and put it on its place.'; } if (infoID == '7') { infoText = 'Approach the box. It will be highlighted automatically. Press SPACEBAR to interact with the selected object.'; } if (infoID == '21') { infoText = 'This is a forcefield. Don\'t be afraid, it won\'t hurt you (unless you are standing in its way when it activates!). It\'s like a solid wall, you can\'t go through it, unless you turn it off somehow.'; } if (infoID == '22') { infoText = 'As you can see, a connected and working wire does not always mean activated output. Some Outputs are \'zero-active\', they need a low signal to operate (notice the number under the Output). This output controls the forcefield on the left.'; } if (infoID == '23') { infoText = 'Watch out for the spikes!'; } if (infoID == '24') { infoText = 'In this level you find an Inverter. It\'s a single-input single-output gate that inverts the signal. When you have more than one type of gates, you can select a desired one by pressing 1, 2, 3 etc. key, or by pressing [ and ] or Q and E keys.'; } if (infoID == '31') { infoText = 'Most of the gates won\'t just have one input and output. The vast majority combine two inputs into one output.'; } if (infoID == '32') { infoText = 'The virus seems to be enjoying a high signal. Perhaps you could do something about that? Oh, one more thing: some gates (that appear metallic) cannot be removed or changed by you.'; } if (infoID == '33') { infoText = 'If you do something that can\'t be reverted, or just mess up with the gates too much, you can always restart current level in the pause menu (Esc or P key)'; } if (infoID == '34') { infoText = 'The output state of the gate with two inputs depends on both inputs in the way defined by the gate type. Move mouse cursor over the gates icons on the bottom of the screen to see how do they work.'; } if (infoID == '51') { infoText = 'This big worm seems to be enjoying a high signal as much as normal viruses do. Consider altering his diet.'; } if (infoID == '61') { infoText = 'Some Inputs may give a signal that alters with time. It\'s not chaotic transient.'; } if (infoID == '111') { infoText = 'This level is quite easy. Just be sure to understand how this big gate works before continuing... You may need that knowledge later.'; } } frame 87 { gotoAndPlay(1); } frame 88 { if (_root.sounds) { soundSet.gotoAndStop('on'); } else { soundSet.gotoAndStop('off'); } if (_root.music) { musicSet.gotoAndStop('on'); } else { musicSet.gotoAndStop('off'); } if (_root.blinking) { blinkingSet.gotoAndStop('on'); } else { blinkingSet.gotoAndStop('off'); } if (_root.reflections) { reflectionsSet.gotoAndStop('on'); } else { reflectionsSet.gotoAndStop('off'); } if (_quality == 'MEDIUM') { qualitySet.gotoAndStop('medium'); } else { if (_quality == 'LOW') { qualitySet.gotoAndStop('low'); } else { if (_quality == 'HIGH') { qualitySet.gotoAndStop('high'); } } } } instance qualitySet of movieClip 10478 { onClipEvent (rollOver) { kolorek = new Color(this); kolorek.setRGB(6332367); } onClipEvent (rollOut) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (releaseOutside) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (press) { if (_quality == 'MEDIUM') { _quality = 'LOW'; _root.hud.info.qualitySet.gotoAndStop('low'); } else { if (_quality == 'LOW') { _quality = 'HIGH'; _root.hud.info.qualitySet.gotoAndStop('high'); } else { if (_quality == 'HIGH') { _quality = 'MEDIUM'; _root.hud.info.qualitySet.gotoAndStop('medium'); } } } _root.save_game.data.qua = _quality; _root.save_game.data.flush(); } } instance musicSet of movieClip 10485 { onClipEvent (rollOver) { kolorek = new Color(this); kolorek.setRGB(6332367); } onClipEvent (rollOut) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (releaseOutside) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (press) { if (_root.music == true) { _root.music = false; } else { _root.music = true; } if (_root.music == true) { _root.hud.info.musicSet.gotoAndStop('on'); } else { _root.hud.info.musicSet.gotoAndStop('off'); } if (_root.music == false) { _root.musicBox.newFriendly.setVolume(0); _root.musicBox.howItBegins.setVolume(0); _root.musicBox.basement.setVolume(0); _root.musicBox.bossFight.setVolume(0); _root.musicBox.thinking.setVolume(0); } else { _root.musicBox.newFriendly.setVolume(100); _root.musicBox.howItBegins.setVolume(100); _root.musicBox.basement.setVolume(100); _root.musicBox.bossFight.setVolume(50); _root.musicBox.thinking.setVolume(100); } _root.save_game.data.ref = _root.reflections; _root.save_game.data.bli = _root.blinking; _root.save_game.data.sou = _root.sounds; _root.save_game.data.mus = _root.music; _root.save_game.data.flush(); } } instance soundSet of movieClip 10492 { onClipEvent (rollOver) { kolorek = new Color(this); kolorek.setRGB(6332367); } onClipEvent (rollOut) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (releaseOutside) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (press) { _root.sounds = !_root.sounds; if (_root.sounds == true) { _root.hud.info.soundSet.gotoAndStop('on'); } else { _root.hud.info.soundSet.gotoAndStop('off'); } if (_root.sounds == false) { _root.soundsBox.marioJump.setVolume(0); _root.soundsBox.die.setVolume(0); _root.soundsBox.beamUp.setVolume(0); _root.soundsBox.beamDown.setVolume(0); _root.soundsBox.gateInsert.setVolume(0); _root.soundsBox.gateRemove.setVolume(0); _root.soundsBox.boxOpen.setVolume(0); } else { _root.soundsBox.marioJump.setVolume(80); _root.soundsBox.die.setVolume(80); _root.soundsBox.beamUp.setVolume(80); _root.soundsBox.beamDown.setVolume(80); _root.soundsBox.gateInsert.setVolume(100); _root.soundsBox.gateRemove.setVolume(100); _root.soundsBox.boxOpen.setVolume(100); } _root.save_game.data.ref = _root.reflections; _root.save_game.data.bli = _root.blinking; _root.save_game.data.sou = _root.sounds; _root.save_game.data.mus = _root.music; _root.save_game.data.flush(); } } instance help of movieClip 10497 { onClipEvent (rollOver) { kolorek = new Color(this); kolorek.setRGB(6332367); } onClipEvent (rollOut) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (press) { _parent.gotoAndStop('help'); } } instance restart of movieClip 10502 { onClipEvent (rollOver) { kolorek = new Color(this); kolorek.setRGB(6332367); } onClipEvent (rollOut) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (press) { if (_root.hud.info.talkingPause == false) { _root.game.player.paused = false; i = 1; while (i < 16) { j = 1; while (j < 16) { _root.game['input' + i + 'x' + j].play(); _root.game['input' + i + 'x' + j + 'Timer'].play(); ++j; } ++i; } _root.game.player.play(); if (_root.game.boss5x1.mouth._currenframe != _root.game.boss5x1.mouth._totalframes) { _root.game.boss5x1.mouth.play(); } if (_root.game.boss5x1.mackaAtak._currenframe != _root.game.boss5x1.mackaAtak._totalframes) { _root.game.boss5x1.mackaAtak.play(); } _root.game.boss5x1.macka1.play(); _root.game.boss5x1.macka2.play(); _root.game.boss5x1.macka3.play(); _root.game.boss5x1.macka4.play(); _root.game.boss5x1.macka5.play(); _root.game.boss5x1.macka6.play(); _root.game.boss5x1.oczy.play(); _root.game.gotoAndPlay('preLevel' + _root.game.levelNum); _root.hud.info.gotoAndStop('hide'); } } } instance quit of movieClip 10507 { onClipEvent (rollOver) { kolorek = new Color(this); kolorek.setRGB(6332367); } onClipEvent (rollOut) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (press) { _root.gotoAndPlay('preMenu'); } } instance resume of movieClip 10512 { onClipEvent (rollOver) { kolorek = new Color(this); kolorek.setRGB(6332367); } onClipEvent (rollOut) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (press) { if (_root.hud.info.talkingPause == false) { _root.game.player.paused = false; i = 1; while (i < 16) { j = 1; while (j < 16) { _root.game['input' + i + 'x' + j].play(); _root.game['input' + i + 'x' + j + 'Timer'].play(); ++j; } ++i; } _root.game.player.play(); if (_root.game.boss5x1.mouth._currenframe != _root.game.boss5x1.mouth._totalframes) { _root.game.boss5x1.mouth.play(); } if (_root.game.boss5x1.mackaAtak._currenframe != _root.game.boss5x1.mackaAtak._totalframes) { _root.game.boss5x1.mackaAtak.play(); } _root.game.boss5x1.macka1.play(); _root.game.boss5x1.macka2.play(); _root.game.boss5x1.macka3.play(); _root.game.boss5x1.macka4.play(); _root.game.boss5x1.macka5.play(); _root.game.boss5x1.macka6.play(); _root.game.boss5x1.oczy.play(); if (_root.game.boss15x1.macka1._currenframe != _root.game.boss15x1.macka1._totalframes) { _root.game.boss15x1.macka1.play(); } if (_root.game.boss15x1.macka2._currenframe != _root.game.boss15x1.macka2._totalframes) { _root.game.boss15x1.macka2.play(); } if (_root.game.boss15x1.macka3._currenframe != _root.game.boss15x1.macka3._totalframes) { _root.game.boss15x1.macka3.play(); } if (_root.game.boss15x1.macka4._currenframe != _root.game.boss15x1.macka4._totalframes) { _root.game.boss15x1.macka4.play(); } _parent.gotoAndStop('hide'); } } } instance reflectionsSet of movieClip 10519 { onClipEvent (rollOver) { kolorek = new Color(this); kolorek.setRGB(6332367); } onClipEvent (releaseOutside) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (rollOut) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (press) { _root.reflections = !_root.reflections; if (_root.reflections) { _root.hud.info.reflectionsSet.gotoAndStop('on'); } else { _root.hud.info.reflectionsSet.gotoAndStop('off'); } _root.save_game.data.ref = _root.reflections; _root.save_game.data.bli = _root.blinking; _root.save_game.data.sou = _root.sounds; _root.save_game.data.mus = _root.music; _root.save_game.data.flush(); } } instance blinkingSet of movieClip 10526 { onClipEvent (rollOver) { kolorek = new Color(this); kolorek.setRGB(6332367); } onClipEvent (rollOut) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (releaseOutside) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (press) { _root.blinking = !_root.blinking; if (_root.blinking) { _root.hud.info.blinkingSet.gotoAndStop('on'); } else { _root.hud.info.blinkingSet.gotoAndStop('off'); } _root.save_game.data.ref = _root.reflections; _root.save_game.data.bli = _root.blinking; _root.save_game.data.sou = _root.sounds; _root.save_game.data.mus = _root.music; _root.save_game.data.flush(); } } instance mc1a of movieClip 10461 { onClipEvent (rollOver) { kolorek = new Color(this); kolorek.setRGB(6332367); } onClipEvent (rollOut) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (press) { _parent.gotoAndStop('paused'); } } } movieClip 11011 { } movieClip 11030 { } movieClip 11049 { } movieClip 11066 { } movieClip 11084 { } movieClip 11102 { } movieClip 11118 { } movieClip 11120 { } movieClip 11194 { } movieClip 11201 { } movieClip 11206 { } movieClip 11217 { } movieClip 11222 { } movieClip 11229 { } movieClip 11234 { } movieClip 11241 { } movieClip 11246 { } movieClip 11257 { } movieClip 11262 { } movieClip 11273 { } movieClip 11278 { } movieClip 11290 { } movieClip 11295 { } movieClip 11310 { } movieClip 11315 { } movieClip 11317 { } button 11321 { on (press) { if (_root.game.player.paused == false and _root.game.player.alive == true and _root.hud.info.talkingPause == false) { _root.game.player.paused = true; _root.hud.info.gotoAndStop('paused'); i = 1; while (i < 16) { j = 1; while (j < 16) { _root.game['input' + i + 'x' + j].stop(); _root.game['input' + i + 'x' + j + 'Timer'].stop(); ++j; } _root.game.boss5x1.mouth.stop(); _root.game.boss5x1.mackaAtak.stop(); _root.game.boss5x1.oczy.stop(); _root.game.boss5x1.macka1.stop(); _root.game.boss5x1.macka2.stop(); _root.game.boss5x1.macka3.stop(); _root.game.boss5x1.macka4.stop(); _root.game.boss5x1.macka5.stop(); _root.game.boss5x1.macka6.stop(); _root.game.player.stop(); if (_root.game.boss15x1.macka1._currenframe != _root.game.boss15x1.macka1._totalframes) { _root.game.boss15x1.macka1.stop(); } if (_root.game.boss15x1.macka2._currenframe != _root.game.boss15x1.macka2._totalframes) { _root.game.boss15x1.macka2.stop(); } if (_root.game.boss15x1.macka3._currenframe != _root.game.boss15x1.macka3._totalframes) { _root.game.boss15x1.macka3.stop(); } if (_root.game.boss15x1.macka4._currenframe != _root.game.boss15x1.macka4._totalframes) { _root.game.boss15x1.macka4.stop(); } ++i; } } else { if (_root.hud.info.talkingPause == false) { _root.game.player.paused = false; _root.hud.info.gotoAndStop('hide'); i = 1; while (i < 16) { j = 1; while (j < 16) { _root.game['input' + i + 'x' + j].play(); _root.game['input' + i + 'x' + j + 'Timer'].play(); ++j; } _root.game.player.play(); if (_root.game.boss5x1.mouth._currenframe != _root.game.boss5x1.mouth._totalframes) { _root.game.boss5x1.mouth.play(); } if (_root.game.boss5x1.mackaAtak._currenframe != _root.game.boss5x1.mackaAtak._totalframes) { _root.game.boss5x1.mackaAtak.play(); } _root.game.boss5x1.macka1.play(); _root.game.boss5x1.macka2.play(); _root.game.boss5x1.macka3.play(); _root.game.boss5x1.macka4.play(); _root.game.boss5x1.macka5.play(); _root.game.boss5x1.macka6.play(); _root.game.boss5x1.oczy.play(); if (_root.game.boss15x1.macka1._currenframe != _root.game.boss15x1.macka1._totalframes) { _root.game.boss15x1.macka1.play(); } if (_root.game.boss15x1.macka2._currenframe != _root.game.boss15x1.macka2._totalframes) { _root.game.boss15x1.macka2.play(); } if (_root.game.boss15x1.macka3._currenframe != _root.game.boss15x1.macka3._totalframes) { _root.game.boss15x1.macka3.play(); } if (_root.game.boss15x1.macka4._currenframe != _root.game.boss15x1.macka4._totalframes) { _root.game.boss15x1.macka4.play(); } ++i; } } } } } movieClip 11327 { frame 1 { counters.normCount = 0; counters.invCount = 0; counters.andCount = 0; counters.orCount = 0; counters.nandCount = 0; counters.norCount = 0; counters.xorCount = 0; normCross._visible = true; invCross._visible = false; andCross._visible = false; orCross._visible = false; nandCross._visible = false; norCross._visible = false; xorCross._visible = false; selected = 1; avaible = 7; } instance keyListener of movieClip 11120 { onClipEvent (keyDown) { if (Key.isDown(Key.ESCAPE) or Key.isDown(80)) { if (_root.game.player.paused == false and _root.game.player.alive == true and _root.hud.info.talkingPause == false) { _root.game.player.paused = true; _parent.info.gotoAndStop('paused'); i = 1; while (i < 16) { j = 1; while (j < 16) { _root.game['input' + i + 'x' + j].stop(); _root.game['input' + i + 'x' + j + 'Timer'].stop(); ++j; } _root.game.boss5x1.mouth.stop(); _root.game.boss5x1.mackaAtak.stop(); _root.game.boss5x1.oczy.stop(); _root.game.boss5x1.macka1.stop(); _root.game.boss5x1.macka2.stop(); _root.game.boss5x1.macka3.stop(); _root.game.boss5x1.macka4.stop(); _root.game.boss5x1.macka5.stop(); _root.game.boss5x1.macka6.stop(); _root.game.player.stop(); if (_root.game.boss15x1.macka1._currenframe != _root.game.boss15x1.macka1._totalframes) { _root.game.boss15x1.macka1.stop(); } if (_root.game.boss15x1.macka2._currenframe != _root.game.boss15x1.macka2._totalframes) { _root.game.boss15x1.macka2.stop(); } if (_root.game.boss15x1.macka3._currenframe != _root.game.boss15x1.macka3._totalframes) { _root.game.boss15x1.macka3.stop(); } if (_root.game.boss15x1.macka4._currenframe != _root.game.boss15x1.macka4._totalframes) { _root.game.boss15x1.macka4.stop(); } ++i; } } else { if (_root.hud.info.talkingPause == false) { _root.game.player.paused = false; _parent.info.gotoAndStop('hide'); i = 1; while (i < 16) { j = 1; while (j < 16) { _root.game['input' + i + 'x' + j].play(); _root.game['input' + i + 'x' + j + 'Timer'].play(); ++j; } _root.game.player.play(); if (_root.game.boss5x1.mouth._currenframe != _root.game.boss5x1.mouth._totalframes) { _root.game.boss5x1.mouth.play(); } if (_root.game.boss5x1.mackaAtak._currenframe != _root.game.boss5x1.mackaAtak._totalframes) { _root.game.boss5x1.mackaAtak.play(); } _root.game.boss5x1.macka1.play(); _root.game.boss5x1.macka2.play(); _root.game.boss5x1.macka3.play(); _root.game.boss5x1.macka4.play(); _root.game.boss5x1.macka5.play(); _root.game.boss5x1.macka6.play(); _root.game.boss5x1.oczy.play(); if (_root.game.boss15x1.macka1._currenframe != _root.game.boss15x1.macka1._totalframes) { _root.game.boss15x1.macka1.play(); } if (_root.game.boss15x1.macka2._currenframe != _root.game.boss15x1.macka2._totalframes) { _root.game.boss15x1.macka2.play(); } if (_root.game.boss15x1.macka3._currenframe != _root.game.boss15x1.macka3._totalframes) { _root.game.boss15x1.macka3.play(); } if (_root.game.boss15x1.macka4._currenframe != _root.game.boss15x1.macka4._totalframes) { _root.game.boss15x1.macka4.play(); } ++i; } } } } if (_root.game.player.isReplacing == false and _root.game.player.paused == false) { if (Key.isDown(221) or Key.isDown(69)) { ++_parent.selected; if (_parent.avaible < _parent.selected) { _parent.selected = 1; } } if (Key.isDown(219) or Key.isDown(81)) { --_parent.selected; if (_parent.selected < 1) { _parent.selected = _parent.avaible; } } if (Key.isDown(49)) { if (_parent.avaible >= 1) { _parent.selected = 1; } } if (Key.isDown(50)) { if (_parent.avaible >= 2) { _parent.selected = 2; } } if (Key.isDown(51)) { if (_parent.avaible >= 3) { _parent.selected = 3; } } if (Key.isDown(52)) { if (_parent.avaible >= 4) { _parent.selected = 4; } } if (Key.isDown(53)) { if (_parent.avaible >= 5) { _parent.selected = 5; } } if (Key.isDown(54)) { if (_parent.avaible >= 6) { _parent.selected = 6; } } if (Key.isDown(55)) { if (_parent.avaible >= 7) { _parent.selected = 7; } } } } onClipEvent (enterFrame) { if (_root.game.player.born == false) { if (_parent.avaible == 1) { _parent.norm._visible = true; _parent.inv._visible = false; _parent.and._visible = false; _parent.or._visible = false; _parent.nand._visible = false; _parent.nor._visible = false; _parent.xor._visible = false; _parent.normHide._visible = false; _parent.invHide._visible = true; _parent.andHide._visible = true; _parent.orHide._visible = true; _parent.nandHide._visible = true; _parent.norHide._visible = true; _parent.xorHide._visible = true; } else { if (_parent.avaible == 2) { _parent.norm._visible = true; _parent.inv._visible = true; _parent.and._visible = false; _parent.or._visible = false; _parent.nand._visible = false; _parent.nor._visible = false; _parent.xor._visible = false; _parent.normHide._visible = false; _parent.invHide._visible = false; _parent.andHide._visible = true; _parent.orHide._visible = true; _parent.nandHide._visible = true; _parent.norHide._visible = true; _parent.xorHide._visible = true; } else { if (_parent.avaible == 3) { _parent.norm._visible = true; _parent.inv._visible = true; _parent.and._visible = true; _parent.or._visible = false; _parent.nand._visible = false; _parent.nor._visible = false; _parent.xor._visible = false; _parent.normHide._visible = false; _parent.invHide._visible = false; _parent.andHide._visible = false; _parent.orHide._visible = true; _parent.nandHide._visible = true; _parent.norHide._visible = true; _parent.xorHide._visible = true; } else { if (_parent.avaible == 4) { _parent.norm._visible = true; _parent.inv._visible = true; _parent.and._visible = true; _parent.or._visible = true; _parent.nand._visible = false; _parent.nor._visible = false; _parent.xor._visible = false; _parent.normHide._visible = false; _parent.invHide._visible = false; _parent.andHide._visible = false; _parent.orHide._visible = false; _parent.nandHide._visible = true; _parent.norHide._visible = true; _parent.xorHide._visible = true; } else { if (_parent.avaible == 5) { _parent.norm._visible = true; _parent.inv._visible = true; _parent.and._visible = true; _parent.or._visible = true; _parent.nand._visible = true; _parent.nor._visible = false; _parent.xor._visible = false; _parent.normHide._visible = false; _parent.invHide._visible = false; _parent.andHide._visible = false; _parent.orHide._visible = false; _parent.nandHide._visible = false; _parent.norHide._visible = true; _parent.xorHide._visible = true; } else { if (_parent.avaible == 6) { _parent.norm._visible = true; _parent.inv._visible = true; _parent.and._visible = true; _parent.or._visible = true; _parent.nand._visible = true; _parent.nor._visible = true; _parent.xor._visible = false; _parent.normHide._visible = false; _parent.invHide._visible = false; _parent.andHide._visible = false; _parent.orHide._visible = false; _parent.nandHide._visible = false; _parent.norHide._visible = false; _parent.xorHide._visible = true; } else { if (_parent.avaible == 7) { _parent.norm._visible = true; _parent.inv._visible = true; _parent.and._visible = true; _parent.or._visible = true; _parent.nand._visible = true; _parent.nor._visible = true; _parent.xor._visible = true; _parent.normHide._visible = false; _parent.invHide._visible = false; _parent.andHide._visible = false; _parent.orHide._visible = false; _parent.nandHide._visible = false; _parent.norHide._visible = false; _parent.xorHide._visible = false; } } } } } } } } if (_root.game.player.isReplacing == false) { _parent.normCross._visible = false; _parent.invCross._visible = false; _parent.andCross._visible = false; _parent.orCross._visible = false; _parent.nandCross._visible = false; _parent.norCross._visible = false; _parent.xorCross._visible = false; if (_parent.selected == 1) { _parent.normCross._visible = true; } else { if (_parent.selected == 2) { _parent.invCross._visible = true; } else { if (_parent.selected == 3) { _parent.andCross._visible = true; } else { if (_parent.selected == 4) { _parent.orCross._visible = true; } else { if (_parent.selected == 5) { _parent.nandCross._visible = true; } else { if (_parent.selected == 6) { _parent.norCross._visible = true; } else { if (_parent.selected == 7) { _parent.xorCross._visible = true; } } } } } } } if (_parent.counters.normCount == 0) { _parent.norm._alpha = 25; } else { _parent.norm._alpha = 100; } if (_parent.counters.invCount == 0) { _parent.inv._alpha = 25; } else { _parent.inv._alpha = 100; } if (_parent.counters.andCount == 0) { _parent.and._alpha = 25; } else { _parent.and._alpha = 100; } if (_parent.counters.orCount == 0) { _parent.or._alpha = 25; } else { _parent.or._alpha = 100; } if (_parent.counters.nandCount == 0) { _parent.nand._alpha = 25; } else { _parent.nand._alpha = 100; } if (_parent.counters.norCount == 0) { _parent.nor._alpha = 25; } else { _parent.nor._alpha = 100; } if (_parent.counters.xorCount == 0) { _parent.xor._alpha = 25; } else { _parent.xor._alpha = 100; } } } } instance norm of movieClip 11206 { onClipEvent (load) { _parent.normHelp.stop(); _parent.normHelp._visible = false; } onClipEvent (rollOver) { _parent.normHelp.play(); _parent.normHelp._visible = true; } onClipEvent (rollOut) { _parent.normHelp.stop(); _parent.normHelp._visible = false; } onClipEvent (releaseOutside) { _parent.normHelp.stop(); _parent.normHelp._visible = false; } onClipEvent (press) { if (_root.game.player.isReplacing == false and _root.game.player.paused == false) { if (_parent.avaible >= 1) { _parent.selected = 1; } } } } instance inv of movieClip 11222 { onClipEvent (load) { _parent.invHelp.stop(); _parent.invHelp._visible = false; } onClipEvent (rollOver) { _parent.invHelp.play(); _parent.invHelp._visible = true; } onClipEvent (rollOut) { _parent.invHelp.stop(); _parent.invHelp._visible = false; } onClipEvent (releaseOutside) { _parent.normHelp.stop(); _parent.normHelp._visible = false; } onClipEvent (press) { if (_root.game.player.isReplacing == false and _root.game.player.paused == false) { if (_parent.avaible >= 2) { _parent.selected = 2; } } } } instance and of movieClip 11234 { onClipEvent (load) { _parent.andHelp.stop(); _parent.andHelp._visible = false; } onClipEvent (rollOver) { _parent.andHelp.play(); _parent.andHelp._visible = true; } onClipEvent (rollOut) { _parent.andHelp.stop(); _parent.andHelp._visible = false; } onClipEvent (releaseOutside) { _parent.normHelp.stop(); _parent.normHelp._visible = false; } onClipEvent (press) { if (_root.game.player.isReplacing == false and _root.game.player.paused == false) { if (_parent.avaible >= 3) { _parent.selected = 3; } } } } instance or of movieClip 11246 { onClipEvent (load) { _parent.orHelp.stop(); _parent.orHelp._visible = false; } onClipEvent (rollOver) { _parent.orHelp.play(); _parent.orHelp._visible = true; } onClipEvent (rollOut) { _parent.orHelp.stop(); _parent.orHelp._visible = false; } onClipEvent (releaseOutside) { _parent.normHelp.stop(); _parent.normHelp._visible = false; } onClipEvent (press) { if (_root.game.player.isReplacing == false and _root.game.player.paused == false) { if (_parent.avaible >= 4) { _parent.selected = 4; } } } } instance nand of movieClip 11262 { onClipEvent (load) { _parent.nandHelp.stop(); _parent.nandHelp._visible = false; } onClipEvent (rollOver) { _parent.nandHelp.play(); _parent.nandHelp._visible = true; } onClipEvent (rollOut) { _parent.nandHelp.stop(); _parent.nandHelp._visible = false; } onClipEvent (releaseOutside) { _parent.normHelp.stop(); _parent.normHelp._visible = false; } onClipEvent (press) { if (_root.game.player.isReplacing == false and _root.game.player.paused == false) { if (_parent.avaible >= 5) { _parent.selected = 5; } } } } instance nor of movieClip 11278 { onClipEvent (load) { _parent.norHelp.stop(); _parent.norHelp._visible = false; } onClipEvent (rollOver) { _parent.norHelp.play(); _parent.norHelp._visible = true; } onClipEvent (rollOut) { _parent.norHelp.stop(); _parent.norHelp._visible = false; } onClipEvent (releaseOutside) { _parent.normHelp.stop(); _parent.normHelp._visible = false; } onClipEvent (press) { if (_root.game.player.isReplacing == false and _root.game.player.paused == false) { if (_parent.avaible >= 6) { _parent.selected = 6; } } } } instance xor of movieClip 11295 { onClipEvent (load) { _parent.xorHelp.stop(); _parent.xorHelp._visible = false; } onClipEvent (rollOver) { _parent.xorHelp.play(); _parent.xorHelp._visible = true; } onClipEvent (rollOut) { _parent.xorHelp.stop(); _parent.xorHelp._visible = false; } onClipEvent (releaseOutside) { _parent.normHelp.stop(); _parent.normHelp._visible = false; } onClipEvent (press) { if (_root.game.player.isReplacing == false and _root.game.player.paused == false) { if (_parent.avaible >= 7) { _parent.selected = 7; } } } } } movieClip 11329 { } movieClip 11331 { } movieClip 11339 { } movieClip 11343 { } movieClip 11348 { } movieClip 11352 { } movieClip 11356 { } movieClip 11360 { } movieClip 11364 { } movieClip 11368 { } movieClip 11372 { } movieClip 11376 { } movieClip 11380 { } movieClip 11384 { } movieClip 11388 { } movieClip 11392 { } movieClip 11396 { } movieClip 11400 { } movieClip 11404 { } movieClip 11406 { } movieClip 11477 { } movieClip 11480 { } movieClip 11484 { } movieClip 11497 { } movieClip 11499 { } movieClip 11545 { } movieClip 11547 { } movieClip 11548 { } movieClip 11550 { } movieClip 11551 { } movieClip 11553 { } movieClip 11555 { frame 1 { if (_parent.chaos == true) { _parent.prevState = 'chaos'; if (_root.blinking == true) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_CHAOS0); } else { kolor.setRGB(_root.KOLOR_CHAOS1); } } else { kolor.setRGB(_root.KOLOR_CHAOS2); } } else { if (_parent.prevState != _parent.state) { if (_parent.state == false) { kolor.setRGB(_root.KOLOR_ZERO); } else { kolor.setRGB(_root.KOLOR_JEDEN); } } _parent.prevState = _parent.state; } } } movieClip 11556 { instance logic of movieClip 11555 { onClipEvent (load) { kolor = new Color(_parent.wires); licznik = 0; } onClipEvent (enterFrame) { ++licznik; if (1 < licznik) { licznik = 0; if (5 < Math.random() * 10) { kolor.setRGB(6710920); } else { kolor.setRGB(2596044); } } } } } movieClip 11611 { } movieClip 11616 { } movieClip 11626 { frame 91 { stop(); _parent.play(); } } movieClip 11695 { frame 210 { _parent.play(); } } movieClip 11706 { } movieClip 11723 { } movieClip 11725 { } movieClip 11727 { } movieClip 11750 { frame 28 { stop(); } } movieClip 11755 { } movieClip 11757 { } movieClip 11758 { } movieClip 11766 { } movieClip 11770 { } movieClip 11782 { } movieClip 11794 { } button 11806 { on (press) { _root.gotoAndStop('levSelect'); } } button 11808 { on (release) { getURL('http://www.gamesfree.com', '_blank'); } } button 11814 { on (press) { _root.credits._visible = true; _root.menuBar._visible = false; } } movieClip 11815 { } movieClip 11820 { } movieClip 11831 { } movieClip 11839 { } button 11865 { on (release) { getURL('http://incompetech.com/', '_blank'); } } button 11869 { on (release) { getURL('http://www.scriptwelder.com', '_blank'); } } movieClip 11870 { instance back of movieClip 11820 { onClipEvent (rollOver) { kolorek = new Color(this); kolorek.setRGB(6332367); } onClipEvent (rollOut) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (press) { _root.menuBar._visible = true; _parent._visible = false; } } } movieClip 11877 { } movieClip 11881 { } movieClip 11897 { frame 22 { stop(); } } frame 5 { MovieClip.prototype.tabEnabled = false; Button.prototype.tabEnabled = false; _quality = 'MEDIUM'; Stage.showMenu = false; } button 11929 { on (press) { play(); } } frame 6 { MovieClip.prototype.tabEnabled = false; Button.prototype.tabEnabled = false; _quality = 'MEDIUM'; Stage.showMenu = false; stop(); } frame 7 { stopAllSounds(); stop(); } instance musicBox of movieClip 131 { onClipEvent (load) { bossFight = new Sound(this.object1); bossFight.attachSound('bossFight'); basement = new Sound(this.object2); basement.attachSound('basement'); newFriendly = new Sound(this.object2); newFriendly.attachSound('newFriendly'); howItBegins = new Sound(this.object3); howItBegins.attachSound('howItBegins'); thinking = new Sound(this.object4); thinking.attachSound('thinking'); if (_root.music == false) { newFriendly.setVolume(0); howItBegins.setVolume(0); basement.setVolume(0); bossFight.setVolume(0); thinking.setVolume(0); } else { newFriendly.setVolume(100); howItBegins.setVolume(100); basement.setVolume(100); bossFight.setVolume(50); thinking.setVolume(100); } } } instance soundsBox of movieClip 11331 { onClipEvent (load) { marioJump = new Sound(this.object1); marioJump.attachSound('mario'); die = new Sound(this.object2); die.attachSound('die'); beamUp = new Sound(this.object3); beamUp.attachSound('beamDown'); beamDown = new Sound(this.object4); beamDown.attachSound('beamUp'); gateInsert = new Sound(this.object5); gateInsert.attachSound('gateInsert'); gateRemove = new Sound(this.object6); gateRemove.attachSound('gateRemove'); boxOpen = new Sound(this.object7); boxOpen.attachSound('boxOpen'); if (_root.sounds == false) { marioJump.setVolume(0); die.setVolume(0); beamUp.setVolume(0); beamDown.setVolume(0); gateInsert.setVolume(0); gateRemove.setVolume(0); boxOpen.setVolume(0); } else { marioJump.setVolume(80); die.setVolume(80); beamUp.setVolume(80); beamDown.setVolume(80); gateInsert.setVolume(100); gateRemove.setVolume(100); boxOpen.setVolume(100); } } } button 11930 { on (release) { getURL('http://www.gamesfree.com', '_blank'); } } frame 8 { stop(); } frame 9 { stopAllSounds(); } frame 11 { save_game = SharedObject.getLocal('gatesoflogic'); if (_root.save_game.data.ref == undefined) { reflections = true; blinking = true; sounds = true; music = true; _root.save_game.data.ref = reflections; _root.save_game.data.bli = blinking; _root.save_game.data.sou = sounds; _root.save_game.data.mus = music; _root.save_game.data.qua = _quality; _root.save_game.data.flush(); } else { reflections = _root.save_game.data.ref; blinking = _root.save_game.data.bli; sounds = _root.save_game.data.sou; music = _root.save_game.data.mus; _quality = _root.save_game.data.qua; } if (_root.music == false) { _root.musicBox.newFriendly.setVolume(0); _root.musicBox.howItBegins.setVolume(0); _root.musicBox.basement.setVolume(0); _root.musicBox.bossFight.setVolume(0); _root.musicBox.thinking.setVolume(0); } else { _root.musicBox.newFriendly.setVolume(100); _root.musicBox.howItBegins.setVolume(100); _root.musicBox.basement.setVolume(100); _root.musicBox.bossFight.setVolume(50); _root.musicBox.thinking.setVolume(100); } if (_root.sounds == false) { marioJump.setVolume(0); _root.soundsBox.die.setVolume(0); _root.soundsBox.beamUp.setVolume(0); _root.soundsBox.beamDown.setVolume(0); _root.soundsBox.gateInsert.setVolume(0); _root.soundsBox.gateRemove.setVolume(0); _root.soundsBox.boxOpen.setVolume(0); } else { _root.soundsBox.marioJump.setVolume(80); _root.soundsBox.die.setVolume(80); _root.soundsBox.beamUp.setVolume(80); _root.soundsBox.beamDown.setVolume(80); _root.soundsBox.gateInsert.setVolume(100); _root.soundsBox.gateRemove.setVolume(100); _root.soundsBox.boxOpen.setVolume(100); } stopAllSounds(); _root.musicBox.newFriendly.start(0, 999); _root.credits._visible = false; } instance musicSet of movieClip 11877 { onClipEvent (rollOver) { kolorek = new Color(this); kolorek.setRGB(16777215); } onClipEvent (rollOut) { kolorek = new Color(this); kolorek.setRGB(6332367); } onClipEvent (releaseOutside) { kolorek = new Color(this); kolorek.setRGB(6332367); } onClipEvent (enterFrame) { if (_root.music == true) { this.gotoAndStop('on'); } else { this.gotoAndStop('off'); } } onClipEvent (press) { if (_root.music == true) { _root.music = false; _root.sounds = false; } else { _root.music = true; _root.sounds = true; } if (_root.music == false) { _root.musicBox.newFriendly.setVolume(0); _root.musicBox.howItBegins.setVolume(0); _root.musicBox.basement.setVolume(0); _root.musicBox.bossFight.setVolume(0); _root.musicBox.thinking.setVolume(0); } else { _root.musicBox.newFriendly.setVolume(100); _root.musicBox.howItBegins.setVolume(100); _root.musicBox.basement.setVolume(100); _root.musicBox.bossFight.setVolume(50); _root.musicBox.thinking.setVolume(100); } if (_root.sounds == false) { _root.soundsBox.marioJump.setVolume(0); _root.soundsBox.die.setVolume(0); _root.soundsBox.beamUp.setVolume(0); _root.soundsBox.beamDown.setVolume(0); _root.soundsBox.gateInsert.setVolume(0); _root.soundsBox.gateRemove.setVolume(0); _root.soundsBox.boxOpen.setVolume(0); } else { _root.soundsBox.marioJump.setVolume(80); _root.soundsBox.die.setVolume(80); _root.soundsBox.beamUp.setVolume(80); _root.soundsBox.beamDown.setVolume(80); _root.soundsBox.gateInsert.setVolume(100); _root.soundsBox.gateRemove.setVolume(100); _root.soundsBox.boxOpen.setVolume(100); } } } button 12050 { on (release) { getURL('http://www.gamesfree.com', '_blank'); } } frame 49 { _root.menuBar._visible = true; _root.credits._visible = false; stop(); } frame 50 { levelInfo.gotoAndStop('select'); i = 1; while (15 >= i) { _root['scr' + i].gotoAndStop('off'); ++i; } i = 1; while (15 >= i) { _root['num' + i].gotoAndStop('off'); ++i; } i = 1; while (15 >= i) { _root['level' + i + 'Unlocked'] = false; ++i; } if (_root.save_game.data.lev1 != undefined) { i = 1; while (15 >= i) { if (_root.save_game.data['lev' + i] == true) { _root['level' + i + 'Unlocked'] = true; } else { _root['level' + i + 'Unlocked'] = false; } ++i; } } else { _root.save_game.data['lev' + 1] = true; i = 2; while (15 >= i) { _root.save_game.data['lev' + i] = false; ++i; } _root.save_game.flush(); } _root['level' + 1 + 'Unlocked'] = true; i = 1; while (15 >= i) { if (_root['level' + i + 'Unlocked'] == true) { _root['num' + i].gotoAndStop('on'); } ++i; } stop(); } instance levbut11 of movieClip 11406 { onClipEvent (rollOver) { if (_root.level11Unlocked == true) { _root.scr11.gotoAndStop('on'); _root.levelInfo.gotoAndStop('level11'); } else { _root.levelInfo.gotoAndStop('locked'); } } onClipEvent (rollOut) { _root.scr11.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (releaseOutside) { _root.scr11.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (press) { if (_root.level11Unlocked == true) { _root.targetLevel = 11; _root.nextFrame(); } } } instance levbut12 of movieClip 11406 { onClipEvent (rollOver) { if (_root.level12Unlocked == true) { _root.scr12.gotoAndStop('on'); _root.levelInfo.gotoAndStop('level12'); } else { _root.levelInfo.gotoAndStop('locked'); } } onClipEvent (rollOut) { _root.scr12.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (releaseOutside) { _root.scr12.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (press) { if (_root.level12Unlocked == true) { _root.targetLevel = 12; _root.nextFrame(); } } } button 12059 { on (press) { gotoAndStop(49); } } instance levbut13 of movieClip 11406 { onClipEvent (rollOver) { if (_root.level13Unlocked == true) { _root.scr13.gotoAndStop('on'); _root.levelInfo.gotoAndStop('level13'); } else { _root.levelInfo.gotoAndStop('locked'); } } onClipEvent (rollOut) { _root.scr13.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (releaseOutside) { _root.scr13.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (press) { if (_root.level13Unlocked == true) { _root.targetLevel = 13; _root.nextFrame(); } } } instance levbut14 of movieClip 11406 { onClipEvent (rollOver) { if (_root.level14Unlocked == true) { _root.scr14.gotoAndStop('on'); _root.levelInfo.gotoAndStop('level14'); } else { _root.levelInfo.gotoAndStop('locked'); } } onClipEvent (rollOut) { _root.scr14.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (releaseOutside) { _root.scr14.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (press) { if (_root.level14Unlocked == true) { _root.targetLevel = 14; _root.nextFrame(); } } } instance levbut15 of movieClip 11406 { onClipEvent (rollOver) { if (_root.level15Unlocked == true) { _root.scr15.gotoAndStop('on'); _root.levelInfo.gotoAndStop('level15'); } else { _root.levelInfo.gotoAndStop('locked'); } } onClipEvent (rollOut) { _root.scr15.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (releaseOutside) { _root.scr15.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (press) { if (_root.level15Unlocked == true) { _root.targetLevel = 15; _root.nextFrame(); } } } instance levbut6 of movieClip 11406 { onClipEvent (rollOver) { if (_root.level6Unlocked == true) { _root.scr6.gotoAndStop('on'); _root.levelInfo.gotoAndStop('level6'); } else { _root.levelInfo.gotoAndStop('locked'); } } onClipEvent (rollOut) { _root.scr6.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (releaseOutside) { _root.scr6.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (press) { if (_root.level6Unlocked == true) { _root.targetLevel = 6; _root.nextFrame(); } } } instance levbut7 of movieClip 11406 { onClipEvent (rollOver) { if (_root.level7Unlocked == true) { _root.scr7.gotoAndStop('on'); _root.levelInfo.gotoAndStop('level7'); } else { _root.levelInfo.gotoAndStop('locked'); } } onClipEvent (rollOut) { _root.scr7.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (releaseOutside) { _root.scr7.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (press) { if (_root.level7Unlocked == true) { _root.targetLevel = 7; _root.nextFrame(); } } } instance levbut8 of movieClip 11406 { onClipEvent (rollOver) { if (_root.level8Unlocked == true) { _root.scr8.gotoAndStop('on'); _root.levelInfo.gotoAndStop('level8'); } else { _root.levelInfo.gotoAndStop('locked'); } } onClipEvent (rollOut) { _root.scr8.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (releaseOutside) { _root.scr8.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (press) { if (_root.level8Unlocked == true) { _root.targetLevel = 8; _root.nextFrame(); } } } instance levbut9 of movieClip 11406 { onClipEvent (rollOver) { if (_root.level9Unlocked == true) { _root.scr9.gotoAndStop('on'); _root.levelInfo.gotoAndStop('level9'); } else { _root.levelInfo.gotoAndStop('locked'); } } onClipEvent (rollOut) { _root.scr9.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (releaseOutside) { _root.scr9.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (press) { if (_root.level9Unlocked == true) { _root.targetLevel = 9; _root.nextFrame(); } } } instance levbut10 of movieClip 11406 { onClipEvent (rollOver) { if (_root.level10Unlocked == true) { _root.scr10.gotoAndStop('on'); _root.levelInfo.gotoAndStop('level10'); } else { _root.levelInfo.gotoAndStop('locked'); } } onClipEvent (rollOut) { _root.scr10.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (releaseOutside) { _root.scr10.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (press) { if (_root.level10Unlocked == true) { _root.targetLevel = 10; _root.nextFrame(); } } } instance levbut1 of movieClip 11406 { onClipEvent (rollOver) { if (_root.level1Unlocked == true) { _root.scr1.gotoAndStop('on'); _root.levelInfo.gotoAndStop('level1'); } else { _root.levelInfo.gotoAndStop('locked'); } } onClipEvent (rollOut) { _root.scr1.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (releaseOutside) { _root.scr1.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (press) { if (_root.level1Unlocked == true) { _root.targetLevel = 1; _root.nextFrame(); } } } instance levbut2 of movieClip 11406 { onClipEvent (rollOver) { if (_root.level2Unlocked == true) { _root.scr2.gotoAndStop('on'); _root.levelInfo.gotoAndStop('level2'); } else { _root.levelInfo.gotoAndStop('locked'); } } onClipEvent (rollOut) { _root.scr2.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (releaseOutside) { _root.scr2.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (press) { if (_root.level2Unlocked == true) { _root.targetLevel = 2; _root.nextFrame(); } } } instance levbut3 of movieClip 11406 { onClipEvent (rollOver) { if (_root.level3Unlocked == true) { _root.scr3.gotoAndStop('on'); _root.levelInfo.gotoAndStop('level3'); } else { _root.levelInfo.gotoAndStop('locked'); } } onClipEvent (rollOut) { _root.scr3.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (releaseOutside) { _root.scr3.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (press) { if (_root.level3Unlocked == true) { _root.targetLevel = 3; _root.nextFrame(); } } } instance levbut4 of movieClip 11406 { onClipEvent (rollOver) { if (_root.level4Unlocked == true) { _root.scr4.gotoAndStop('on'); _root.levelInfo.gotoAndStop('level4'); } else { _root.levelInfo.gotoAndStop('locked'); } } onClipEvent (rollOut) { _root.scr4.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (releaseOutside) { _root.scr4.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (press) { if (_root.level4Unlocked == true) { _root.targetLevel = 4; _root.nextFrame(); } } } instance levbut5 of movieClip 11406 { onClipEvent (rollOver) { if (_root.level5Unlocked == true) { _root.scr5.gotoAndStop('on'); _root.levelInfo.gotoAndStop('level5'); } else { _root.levelInfo.gotoAndStop('locked'); } } onClipEvent (rollOut) { _root.scr5.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (releaseOutside) { _root.scr5.gotoAndStop('off'); _root.levelInfo.gotoAndStop('select'); } onClipEvent (press) { if (_root.level5Unlocked == true) { _root.targetLevel = 5; _root.nextFrame(); } } } frame 51 { KOLOR_ZERO = 3355477; KOLOR_JEDEN = 6344703; KOLOR_CHAOS0 = 6710920; KOLOR_CHAOS1 = 2596044; KOLOR_CHAOS2 = 8947882; stop(); } frame 52 { stop(); }




http://swfchan.com/19/90824/info.shtml
Created: 28/3 -2019 05:41:21 Last modified: 28/3 -2019 05:41:21 Server time: 22/12 -2024 13:52:54