Frame 1
function stopHandler(obj, item) {
getURL ("http://www.digitalhouse.co.il", "_blank");
}
fscommand ("allowscale", false);
var DH = new ContextMenu();
DH.customItems.push(new ContextMenuItem("Powered by DigitalHouse - smart web solutions", stopHandler, true));
DH.builtInItems.forward_back = false;
DH.builtInItems.loop = false;
DH.builtInItems.play = false;
DH.builtInItems.print = false;
DH.builtInItems.quality = false;
DH.builtInItems.rewind = false;
DH.builtInItems.save = false;
DH.builtInItems.zoom = false;
_root.menu = DH;
stop();
Frame 2
s_ks = new Sound();
s_sb = new Sound();
s_ss = new Sound();
s_ks.attachSound("ks");
s_sb.attachSound("sb");
s_ss.attachSound("ss");
stop();
Frame 21
stop();
Symbol 8 MovieClip [cr] Frame 1
o0 = __root.bl0;
x0 = o0._x;
y0 = o0._y;
ar = [];
i = 0;
while (i < __root.ars.length) {
o = __root.ars[i];
if (o != o0) {
yy = o._y - y0;
xx = o._x - x0;
ar.push({x:o._x, y:o._y, u:Math.atan2(yy, xx), l:Math.sqrt((yy * yy) + (xx * xx))});
}
i++;
}
xm = 54;
xb = 676;
ym = 82;
yb = 378;
Symbol 8 MovieClip [cr] Frame 2
this.onMouseMove = function () {
_visible = true;
li = 1000;
u0 = Math.atan2(__root._ymouse - y0, __root._xmouse - x0);
ln3._rotation = ((u0 + Math.PI) * 180) / Math.PI;
i = 0;
while (i < ar.length) {
o = ar[i];
u2 = u0 - o.u;
h = o.l * Math.sin(u2);
h2 = h * h;
if ((h2 < 576) && (Math.cos(u2) > 0)) {
l0 = Math.sqrt((o.l * o.l) - h2) - Math.sqrt(576 - h2);
if (l0 < li) {
li = l0;
hi = h;
ui = u2;
}
}
i++;
}
if (li < 1000) {
_x = (x0 + (li * Math.cos(u0)));
_y = (y0 + (li * Math.sin(u0)));
uu = Math.asin(hi / 24);
ln0._rotation = ((u0 - uu) * 180) / Math.PI;
ln1._rotation = ((Math.sin(ui) > 0) ? (ln0._rotation + 90) : (ln0._rotation - 90));
ln0.ln._xscale = 50 * Math.cos(uu);
ln1.ln._xscale = 50 * Math.abs(Math.sin(uu));
} else if (u0 < 0) {
ln0.ln._xscale = 50;
ln1.ln._xscale = 0;
h = x0 - ((y0 - ym) / Math.tan(u0));
if ((h < xm) || (h > xb)) {
_x = ((h < xm) ? (xm) : (xb));
_y = (y0 - ((x0 - _x) * Math.tan(u0)));
ln0._rotation = (Math.atan2(_y - y0, x0 - _x) * 180) / Math.PI;
} else {
_x = h;
_y = ym;
ln0._rotation = (Math.atan2(y0 - _y, _x - x0) * 180) / Math.PI;
}
} else {
ln0.ln._xscale = 50;
ln1.ln._xscale = 0;
h = x0 - ((y0 - yb) / Math.tan(u0));
if ((h < xm) || (h > xb)) {
_x = ((h < xm) ? (xm) : (xb));
_y = (y0 - ((x0 - _x) * Math.tan(u0)));
ln0._rotation = (Math.atan2(_y - y0, x0 - _x) * 180) / Math.PI;
} else {
_x = h;
_y = yb;
ln0._rotation = (Math.atan2(y0 - _y, _x - x0) * 180) / Math.PI;
}
}
i = 0;
while (i < 6) {
o = __root["lz" + i];
x = o._x - _x;
y = o._y - _y;
h = Math.sqrt((x * x) + (y * y));
if (h < 34) {
_visible = false;
break;
}
i++;
}
li = Math.sqrt(((x0 - _x) * (x0 - _x)) + ((y0 - _y) * (y0 - _y)));
ln3.ln._xscale = li - 24;
};
onMouseMove();
stop();
Symbol 29 MovieClip Frame 1
gotoAndStop(_parent.fr);
Symbol 30 MovieClip [ps] Frame 35
if (_parent.f) {
prevFrame();
play();
} else {
v = 20;
f = false;
_parent.f = true;
}
Symbol 30 MovieClip [ps] Frame 44
_parent.f = false;
Symbol 30 MovieClip [ps] Frame 47
if ((_name == "ps9") && (!f)) {
_root.s_ss.setVolume(v);
_root.s_ss.start();
f = true;
gotoAndPlay(_currentframe - 2);
} else if (_name == "ps9") {
prevFrame();
}
Symbol 30 MovieClip [ps] Frame 53
if ((_name == "ps8") && (!f)) {
_root.s_ss.setVolume(v);
_root.s_ss.start();
f = true;
gotoAndPlay(_currentframe - 2);
} else if (_name == "ps8") {
prevFrame();
}
Symbol 30 MovieClip [ps] Frame 59
if ((_name == "ps7") && (!f)) {
_root.s_ss.setVolume(v);
_root.s_ss.start();
f = true;
gotoAndPlay(_currentframe - 2);
} else if (_name == "ps7") {
prevFrame();
}
Symbol 30 MovieClip [ps] Frame 65
if ((_name == "ps6") && (!f)) {
_root.s_ss.setVolume(v);
_root.s_ss.start();
f = true;
gotoAndPlay(_currentframe - 2);
} else if (_name == "ps6") {
prevFrame();
}
Symbol 30 MovieClip [ps] Frame 71
if ((_name == "ps5") && (!f)) {
_root.s_ss.setVolume(v);
_root.s_ss.start();
f = true;
gotoAndPlay(_currentframe - 2);
} else if (_name == "ps5") {
prevFrame();
}
Symbol 30 MovieClip [ps] Frame 77
if ((_name == "ps4") && (!f)) {
_root.s_ss.setVolume(v);
_root.s_ss.start();
f = true;
gotoAndPlay(_currentframe - 2);
} else if (_name == "ps4") {
prevFrame();
}
Symbol 30 MovieClip [ps] Frame 83
if ((_name == "ps3") && (!f)) {
_root.s_ss.setVolume(v);
_root.s_ss.start();
f = true;
gotoAndPlay(_currentframe - 2);
} else if (_name == "ps3") {
prevFrame();
}
Symbol 30 MovieClip [ps] Frame 89
if ((_name == "ps2") && (!f)) {
_root.s_ss.setVolume(v);
_root.s_ss.start();
f = true;
gotoAndPlay(_currentframe - 2);
} else if (_name == "ps2") {
prevFrame();
}
Symbol 30 MovieClip [ps] Frame 96
stop();
Symbol 40 Button
on (release) {
_root.play();
}
Symbol 41 MovieClip Frame 1
max = 5;
n = 1;
Symbol 41 MovieClip Frame 3
bl = _root.getBytesLoaded();
bt = _root.getBytesTotal();
pr = Math.round((bl / bt) * 100);
prc = pr + "%";
if (pr >= max) {
dd.duplicateMovieClip("d" + n, n, {_rotation:n * 18});
n++;
max = max + 5;
}
if ((max >= 100) && (bl == bt)) {
if (_root.CO != undefined) {
_root.con.loadMovie(_root.CO);
nextFrame();
} else {
gotoAndPlay ("bt");
}
} else {
prevFrame();
play();
}
Symbol 41 MovieClip Frame 5
tmp = getTimer();
s = 9;
play();
Symbol 41 MovieClip Frame 7
if ((getTimer() - tmp) > 1000) {
tmp = tmp + 1000;
s--;
sec = s + " sec.";
}
if (s > 0) {
prevFrame();
play();
} else {
_root.play();
}
Symbol 69 MovieClip Frame 1
function AB(n) {
nn++;
this.attachMovie("ps", "ps" + nn, nn, {fr:n});
}
nn = 0;
f = false;
Symbol 95 MovieClip Frame 1
stop();
Symbol 99 Button
on (release) {
tim.f = true;
}
Symbol 101 MovieClip Frame 1
m = 2;
s = 0;
tm = "02:00";
tmp = getTimer();
_root.con.SEND_X("SG");
f = false;
eg = false;
Symbol 101 MovieClip Frame 3
if ((getTimer() - tmp) > 1000) {
tmp = tmp + 1000;
if ((--s) < 0) {
s = 59;
if ((--m) < 0) {
m = 0;
s = 0;
f = true;
}
}
tm = (((m < 10) ? ("0" + m) : (m)) + ":") + ((s < 10) ? ("0" + s) : (s));
}
if (f || (eg)) {
nextFrame();
} else {
prevFrame();
play();
}
Symbol 101 MovieClip Frame 4
if (eg && ((s + m) > 0)) {
__root.scr.text = (Number(__root.scr.text) + 2000) + (((m * 60) + s) * 15);
}
__root.kij.stat = "eg";
__root.kij.gotoAndStop("eg");
__root.glw.removeMovieClip();
__root.cr.removeMovieClip();
var i = 0;
while (i < __root.ln) {
__root.ars[i].speed = 0;
i++;
}
_root.gotoAndPlay("go");
Symbol 106 MovieClip Frame 1
bar._xscale = 0;
Symbol 120 MovieClip Frame 1
gotoAndStop(Number(_parent._name.slice(2)) + 2);
stop();
Symbol 122 MovieClip Frame 1
d = 24;
x1 = 42 + (d / 2);
x2 = 688 - (d / 2);
y1 = 70 + (d / 2);
y2 = 390 - (d / 2);
__root.sd.attachMovie("sd", _name, __root.sd.getNextHighestDepth());
sd = __root.sd[_name];
xx = _x;
yy = _y;
nextFrame();
Symbol 122 MovieClip Frame 2
sd._x = _x + 4;
sd._y = _y + 4;
Symbol 122 MovieClip Frame 4
xx = xx + (speed * dx);
yy = yy + (speed * dy);
__root.HIT(this, xx, yy, u, speed, ht);
if ((yy > y2) || (yy < y1)) {
if (!__root.LUZ(this, xx, yy, u, speed)) {
dd = ((yy < y1) ? (y1 - yy) : (y2 - yy));
yy = yy + dd;
xx = xx + (dd / Math.tan(u));
_root.s_sb.setVolume(speed * 5);
_root.s_sb.start();
speed = speed * 0.7;
dy = -dy;
u = Math.atan2(dy, dx);
}
} else if ((xx > x2) || (xx < x1)) {
if (!__root.LUZ(this, xx, yy, u, speed)) {
dd = ((xx < x1) ? (x1 - xx) : (x2 - xx));
xx = xx + dd;
yy = yy + (dd * Math.tan(u));
_root.s_sb.setVolume(speed * 5);
_root.s_sb.start();
speed = speed * 0.7;
dx = -dx;
u = Math.atan2(dy, dx);
}
}
_x = xx;
_y = yy;
sd._x = xx + 4;
sd._y = yy + 4;
if (lz == undefined) {
speed = speed * 0.985;
if (Math.abs(speed) > 0.4) {
prevFrame();
play();
} else {
speed = 0;
__root.ENN();
gotoAndStop ("st");
}
}
Symbol 122 MovieClip Frame 5
_x = lz._x;
_y = lz._y;
sd._x = _x;
sd._y = _y;
Symbol 122 MovieClip Frame 11
__root.gol = true;
speed = 0;
__root.BON(_name);
if (_name == "bl0") {
_x = __root.kij._x;
_y = __root.kij._y;
__root.hn._visible = true;
delete lz;
} else {
__root.pas.AB(Number(_name.slice(2)));
sd.removeMovieClip();
_name = "tmp";
__root.ARN();
__root.ENN();
stop();
}
Symbol 122 MovieClip Frame 62
__root.HND();
__root.ENN();
gotoAndStop (2);
Symbol 128 MovieClip Frame 3
if (stat == "st") {
prevFrame();
play();
} else {
gotoAndPlay(stat);
}
Symbol 128 MovieClip Frame 6
if (stat == "rt") {
_rotation = ((Math.atan2(__root._ymouse - _y, __root._xmouse - _x) / Math.PI) * 180);
prevFrame();
play();
} else {
du = -1;
gotoAndPlay(stat);
}
Symbol 128 MovieClip Frame 9
if (stat == "ki") {
_rotation = ((Math.atan2(__root._ymouse - _y, __root._xmouse - _x) / Math.PI) * 180);
kij._x = kij._x + du;
if ((kx0 - kij._x) > 50) {
kij._x = kx0 - 50;
du = 1;
}
if ((kx0 - kij._x) < 0) {
kij._x = kx0;
du = -1;
}
__root.bar.bar._xscale = (kx0 - kij._x) * 2;
prevFrame();
play();
} else {
spd = (kx0 - kij._x) + 2;
ug = Math.atan2(__root._ymouse - _y, __root._xmouse - _x);
gotoAndPlay(stat);
}
Symbol 128 MovieClip Frame 12
tg.speed = spd / 2.4;
tg.u = ug;
tg.dx = Math.cos(ug);
tg.dy = Math.sin(ug);
kij._x = kx0;
__root.glw.removeMovieClip();
__root.cr.removeMovieClip();
_root.s_ks.setVolume(spd * 5);
_root.s_ks.start();
tg.gotoAndPlay("pl");
__root.gol = false;
Symbol 128 MovieClip Frame 14
if (_alpha > 0) {
_alpha = (_alpha - 15);
prevFrame();
play();
} else {
_alpha = 0;
__root.bar.bar._xscale = 0;
stat = "st";
gotoAndPlay (1);
}
Symbol 128 MovieClip Frame 15
stop();
Symbol 129 MovieClip Frame 1
function HIT(o, o_x, o_y, o_u, sp, ht) {
var _local8 = 0;
while (_local8 < ln) {
var _local2 = ars[_local8];
var _local13 = _local2._x;
var _local14 = _local2._y;
if ((_local2 != o) && (_local2 != ht)) {
var _local10 = _local13 - o_x;
var _local9 = _local14 - o_y;
var _local6 = Math.sqrt((_local10 * _local10) + (_local9 * _local9));
if (_local6 < d) {
ls = 54;
_root.s_ss.setVolume(sp * 4);
_root.s_ss.start();
var _local4 = Math.atan2(_local9, _local10);
var _local7 = _local6 * Math.sin(_local4 - o_u);
var _local11 = Math.sqrt((_local6 * _local6) - (_local7 * _local7)) - Math.sqrt(576 - (_local7 * _local7));
o.xx = o_x + (_local11 * Math.cos(o_u));
o.yy = o_y + (_local11 * Math.sin(o_u));
_local4 = Math.atan2(_local2._y - o.yy, _local2._x - o.xx);
if (Math.abs(_local4 - o_u) < Math.PI) {
us = _local4 - o_u;
} else {
us = ((o_u < _local4) ? ((_local4 - (Math.PI*2)) - o_u) : ((_local4 + (Math.PI*2)) - o_u));
}
_local2.speed = Math.abs(Math.cos(us) * sp);
_local2.u = _local4;
_local2.dx = Math.cos(_local4);
_local2.dy = Math.sin(_local4);
_local2.ht = o;
_local2.gotoAndPlay("p1");
o.speed = Math.abs(Math.sin(us) * sp);
o.u = _local4 + ((Math.PI/2) * ((us > 0) ? -1 : 1));
o.dx = Math.cos(o.u);
o.dy = Math.sin(o.u);
o.ht = _local2;
}
}
_local8++;
}
if (_local8 == ln) {
delete o.ht;
}
}
function LUZ(o, o_x, o_y, o_u, sp) {
var _local4 = 0;
while (_local4 < 6) {
var _local3 = this["lz" + _local4];
var _local5 = false;
xx = _local3._x - o_x;
yy = _local3._y - o_y;
ll = Math.sqrt((xx * xx) + (yy * yy));
if (ll < (d * 1.5)) {
var _local2 = _local3.ug;
if ((!o.hitTest(_local2.x0, _local2.y0, true)) && (!o.hitTest(_local2.x1, _local2.y1, true))) {
if (ll < d) {
o.lz = _local3;
}
_local5 = true;
break;
}
}
_local4++;
}
return(_local5);
}
function ARN() {
ars = [];
for (var _local1 in __root) {
if (_local1.slice(0, 2) == "bl") {
if (!__root[_local1].end) {
ln = ars.push(__root[_local1]);
}
}
}
trace(ln);
if (ln == 1) {
tim.eg = true;
}
}
function ENN() {
var _local1 = 0;
while (_local1 < ln) {
var _local2 = ars[_local1];
if (_local2.speed) {
break;
}
_local1++;
}
if (_local1 == ln) {
do {
if (__root["bl" + nn] != undefined) {
break;
}
} while ((++nn) <= 9);
if (nn < 10) {
if (!gol) {
mis = (((mis + 5) < 37) ? (mis + 5) : 35);
scr.text = Number(scr.text) - mis;
}
__root.attachMovie("gl", "glw", 4, {_x:__root["bl" + nn]._x, _y:__root["bl" + nn]._y});
if (!hn._visible) {
__root.attachMovie("cr", "cr", 7);
}
nbl.gotoAndStop(nn);
kij.KJ();
}
}
}
function BON(n) {
if (n == "bl0") {
scr.text = Number(scr.text) - 250;
} else if (n == ("bl" + nn)) {
pon = pon + 100;
scr.text = Number(scr.text) + pon;
} else {
scr.text = Number(scr.text) + 100;
}
}
function HND() {
bl0._y = -400;
Mouse.hide();
hh.startDrag(true, ls, 82, 676, 378);
kij.stat = "eg";
hh.onMouseUp = function () {
var _local2 = 0;
while (_local2 < ln) {
if (hh.hit.hitTest(ars[_local2])) {
break;
}
_local2++;
}
if (((_local2 == ln) && (!tim.f)) && (!tim.eg)) {
Mouse.show();
stopDrag();
bl0._x = this._x + 1;
bl0._y = this._y;
bl0.xx = this._x + 1;
bl0.yy = this._y;
sd.bl0._x = this._x + 5;
sd.bl0._y = this._y + 4;
this._y = -400;
kij.KJ();
hn._visible = false;
__root.attachMovie("cr", "cr", 7);
delete hh.onMouseUp;
}
};
}
_global.__root = this;
d = 24;
g2r = (Math.PI/180);
r2g = 57.2957795130823;
pon = 100;
mis = 5;
var i = 0;
while (i < 6) {
var o0 = __root[("mlz" + i) + "0"];
var o1 = __root[("mlz" + i) + "1"];
__root["lz" + i].ug = {x0:o0._x, y0:o0._y, x1:o1._x, y1:o1._y};
o0._visible = false;
o1._visible = false;
i++;
}
var i = 0;
while (i < 6) {
var o = __root["lz" + i];
var o0 = __root[("lz" + i) + "0"];
var o1 = __root[("lz" + i) + "1"];
__root["lz" + i].ug = {x0:o0._x, y0:o0._y, x1:o1._x, y1:o1._y};
o0._visible = false;
o1._visible = false;
i++;
}
this.attachMovie("gl", "glw", 4, {_x:bl1._x, _y:bl1._y});
nn = 1;
ARN();
ls = 525;
HND();
Instance of Symbol 77 MovieClip "lz0" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
u = -2.35619449019234;
}
Instance of Symbol 77 MovieClip "lz1" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
u = -2.35619449019234;
}
Instance of Symbol 77 MovieClip "lz2" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
u = -2.35619449019234;
}
Instance of Symbol 77 MovieClip "lz3" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
u = -2.35619449019234;
}
Instance of Symbol 77 MovieClip "lz4" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
u = -2.35619449019234;
}
Instance of Symbol 77 MovieClip "lz5" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
u = -2.35619449019234;
}
Instance of Symbol 128 MovieClip "kij" in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
function KJ() {
_x = tg._x;
_y = tg._y;
_alpha = 100;
stat = "rt";
kij._x = kx0;
play();
}
kx0 = kij._x;
tg = __root.bl0;
}
onClipEvent (mouseDown) {
if ((stat == "rt") && (!__root.hn._visible)) {
stat = "ki";
}
}
onClipEvent (mouseUp) {
if ((stat == "ki") && (!__root.hn._visible)) {
stat = "ud";
}
}
Symbol 134 Button
on (release) {
gotoAndPlay (1);
}
Symbol 136 Button
on (release) {
getURL ("http://www.karambula.com", "_blank");
}