Frame 1
System.security.allowDomain("*");
var mc$1999 = _root.createEmptyMovieClip("mc$1999", 10000);
if (_root._url.indexOf("file:///") == -1) {
mc$1999.loadMovie("http://www.flashgame001.com/stats/analyzy.php?type=0");
}
fscommand ("trapallkeys", 1);
fscommand ("allowscale", 0);
Stage.showMenu = false;
Stage.scaleMode = "noScale";
fr.swapDepths(200010);
_global.r = this;
Frame 2
var loadAmount = _totalframes;
onEnterFrame = function () {
if (_framesloaded == loadAmount) {
delete onEnterFrame;
udamusik = 0;
music = 1;
gotoAndPlay ("menu");
} else {
loaded = Math.round(getBytesLoaded() / 1024);
total = Math.round(getBytesTotal() / 1024);
persen = Math.round((loaded / total) * 100);
}
};
stop();
Frame 7
MovieClip.prototype.initbonus = function (tipe) {
var t = this;
_global.bonus = t;
t.tipe = tipe;
t.xs = -r.bonusspeed;
t.range = 2 + random(2);
t.speed = 0.15 + (0.01 * random(15));
t.starty = t._y;
t.ys = t.range;
t.onEnterFrame = function () {
t._x = t._x + t.xs;
t._y = Math.min(t._y, t.ymax);
t._y = t._y + t.ys;
((t._y > t.starty) ? ((t.ys = Math.max(t.ys - t.speed, -t.range))) : ((t.ys = Math.min(t.ys + t.speed, t.range))));
((t._x < (-t._width)) ? (t.removeMovieClip()) : null);
};
t.stop();
};
MovieClip.prototype.getkill = function () {
var _local2 = [];
var _local1 = 0;
while (_local1 < r.all.length) {
((r.all[_local1]._x > 30) ? (_local2.push(r.all[_local1])) : null);
_local1++;
}
var _local6 = _local2[0];
var _local4 = _local6._x - p._x;
var _local3 = _local6._y - p._y;
var _local7 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
var _local5 = Math.atan2(_local3, _local4);
var _local9 = deg(_local5);
if (_local2.length <= 1) {
return({las:true, it:_local6, dis:_local7, ang:_local9});
}
_local1 = 1;
while (_local1 < _local2.length) {
((_local2[_local1]._x < _local6._x) ? (_local6 = _local2[_local1]) : null);
_local1++;
}
return({las:false, it:_local6, dis:_local7, ang:_local9});
};
MovieClip.prototype.yodaglow = function (tipe) {
var _local2 = this;
var _local4 = [null, 6749952, 16711680, 16763904];
var _local3 = _local4[tipe];
var _local5 = new flash.filters.GlowFilter(_local3, 100, 30, 30, 2, 1, false, false);
_local2.filters = [_local5];
};
MovieClip.prototype.cekgotbonus = function () {
((Math.abs(bonus._x - p._x) < 70) ? (((Math.abs(bonus._y - p._y) < 70) ? ((r.gotbonus = bonus.tipe)) : null)) : null);
};
MovieClip.prototype.inithead = function () {
var t = this;
t.ro = 20 + random(20);
t.xs = 18 + random(5);
t.ys = -1;
t.onEnterFrame = function () {
t.a._rotation = t.a._rotation + t.ro;
t._x = t._x + t.xs;
t._y = t._y + t.ys;
t.ys = t.ys + 1.5;
((t._y > r.screenhei) ? (t.removeMovieClip()) : null);
};
};
MovieClip.prototype.cekdroid = function (xx, yy) {
var _local7 = null;
var _local4 = 0;
while (_local4 < r.all.length) {
var _local1 = r.all[_local4];
var _local3 = _local1._x - xx;
if (Math.abs(_local3) < _local1.cekradius) {
var _local2 = _local1._y - yy;
if (Math.abs(_local2) < _local1.cekradius) {
if (((_local3 * _local3) + (_local2 * _local2)) < _local1.cekradius2) {
r.hop = _local1;
_local1.bounce = 1;
_local1.ys = r.bounceforce;
break;
}
}
}
_local4++;
}
};
MovieClip.prototype.initdroid = function (tipe) {
var t = this;
r.all.push(t);
t.cacheAsBitmap = true;
t.wid = 90;
t.halfwid = t.wid / 2;
t.cekradius = t.halfwid + 12;
t.cekradius2 = t.cekradius * t.cekradius;
t.xs = (-r.droidspeed) - random(Math.round(r.droidspeed));
t.range = 2 + random(2);
t.speed = 0.15 + (0.01 * random(15));
t.starty = t._y;
t.ys = t.range;
(r.begin ? ((r.begin = 0)(t.xs = -4)(t.range = 2)(t.speed = 0.2)(t.ys = t.range)) : null);
t.onEnterFrame = function () {
t._x = t._x + t.xs;
t._y = Math.min(t._y, t.ymax);
if (t.bounce) {
t._y = t._y + t.ys;
t.ys = t.ys - 2;
((t.ys < -2) ? ((t.bounce = 0)) : null);
} else {
t._y = t._y + t.ys;
((t._y > t.starty) ? ((t.ys = Math.max(t.ys - t.speed, -t.range))) : ((t.ys = Math.min(t.ys + t.speed, t.range))));
}
if (t._x < (-t.halfwid)) {
t.removeit(r.all);
} else if (t.die) {
t.a._rotation = t.a._rotation - 2;
t.a._y = t.a._y + 10;
t.a._x = t.a._x - 5;
t.die--;
if (t.die == 1) {
t.a.gotoAndStop(3);
t.d = 16;
t.onEnterFrame = function () {
t.a._y = t.a._y + 2;
t.a._x = t.a._x - 5;
t.d--;
((!t.d) ? (t.removeMovieClip()) : null);
};
}
} else if (t.destroyed) {
r.all.removeValue(t);
t.a.gotoAndStop(4);
t.flip = 1;
t.onEnterFrame = function () {
t.px = 1 + random(3);
t.py = -3 + random(7);
t.flip = !t.flip;
(t.flip ? ((t.px = -t.px)) : null);
t.a._x = t.px;
t.a._y = t.py;
if (t.destroyed < 100) {
t.d = t.destroyed;
t.onEnterFrame = function () {
t.d--;
if (!t.d) {
t.d = 12;
t.a.a.play();
var _local1 = new flash.filters.GlowFilter(16711680, 100, 20, 20, 1, 1, false, false);
t.a.filters = [_local1];
r.zdestroyed.start();
t.onEnterFrame = function () {
t.d--;
((!t.d) ? t.removeMovieClip() : null);
};
}
};
}
};
}
};
};
MovieClip.prototype.snapshot = function (dest, sourc, x1, y1, wid, hei, ska, bx, by) {
((!ska) ? (ska = 1) : null);
var _local1 = new flash.display.BitmapData(wid, hei, true, 16777215);
var _local2 = new flash.geom.Matrix();
_local2.scale(ska, ska);
_local2.translate(-x1, -y1);
_local1.draw(sourc, _local2, null, null, new flash.geom.Rectangle(0, 0, wid, hei), true);
(((bx + by) > 0) ? (_local1.applyFilter(_local1, new flash.geom.Rectangle(0, 0, wid, hei), new flash.geom.Point(0, 0), new flash.filters.BlurFilter(bx, by, 2))) : null);
if (dest instanceof MovieClip) {
dest.attachBitmap(_local1, 1, "auto", true);
} else {
dest.copyPixels(_local1, new flash.geom.Rectangle(0, 0, wid, hei), new flash.geom.Point(0, 0));
}
};
MovieClip.prototype.areashot = function (dest, sourc, x0, y0, wid, hei, ska) {
stat._visible = false;
((r[dest] != undefined) ? (dest.dispose()) : null);
r[dest] = new flash.display.BitmapData(ska * wid, ska * hei, true);
snapshot(r[dest], sourc, x0, y0, ska * wid, ska * hei, ska);
stat._visible = true;
};
MovieClip.prototype.screensnapshot = function () {
stat._visible = false;
((r.snap != undefined) ? (r.snap.dispose()) : null);
r.snap = new flash.display.BitmapData(r.screenwid, r.screenhei);
snapshot(r.snap, r, 0, 0, r.screenwid, r.screenhei);
stat._visible = true;
};
MovieClip.prototype.pasteshot = function (dest, sourc, bx, by) {
var _local1 = sourc.clone();
if ((bx + by) > 0) {
_local1.applyFilter(_local1, new flash.geom.Rectangle(0, 0, _local1.width, _local1.height), new flash.geom.Point(0, 0), new flash.filters.BlurFilter(bx, by, 1));
}
dest.attachBitmap(_local1, 1, "auto", true);
};
MovieClip.prototype.make = function (id, xx, yy) {
m.attachMovie("o" + id, "o" + r.od, r.od, {_x:xx, _y:yy});
r.od++;
};
MovieClip.prototype.popskor = function (xx, yy, sk, got) {
m.attachMovie("popscore", "pop" + r.popd, r.popd, {_x:xx, _y:yy, sk:sk, got:got});
r.popd++;
};
MovieClip.prototype.popmessage = function (xx, yy, no) {
m.attachMovie("popmessage", "pop" + r.popd, r.popd, {_x:xx, _y:yy, no:no});
r.popd++;
};
MovieClip.prototype.initzonecircle = function () {
var _local2 = this;
r["zone" + _local2._name] = _local2;
_local2.radius = _local2._width / 2;
_local2._visible = false;
};
Frame 8
MovieClip.prototype.cekhitpix = function (a, b, alphatolerance) {
((alphatolerance == undefined) ? (alphatolerance = 255) : null);
var _local2 = a.getBounds(r);
var _local1 = b.getBounds(r);
if ((Stage.width == r.screenwid) and (Stage.height == r.screenhei)) {
var _local5 = (hdif = 0);
} else {
var _local5 = Math.round((Stage.width - r.screenwid) / 2);
var hdif = Math.round((Stage.height - r.screenhei) / 2);
_local2.xMin = _local2.xMin + _local5;
_local2.xMax = _local2.xMax + _local5;
_local1.xMin = _local1.xMin + _local5;
_local1.xMax = _local1.xMax + _local5;
_local2.yMin = _local2.yMin + hdif;
_local2.yMax = _local2.yMax + hdif;
_local1.yMin = _local1.yMin + hdif;
_local1.yMax = _local1.yMax + hdif;
}
if (_local2.xMax > _local1.xMin) {
if (_local1.xMax > _local2.xMin) {
if (_local2.yMax > _local1.yMin) {
if (_local1.yMax > _local2.yMin) {
var _local3 = {xMin:Math.max(_local2.xMin, _local1.xMin), xMax:Math.min(_local2.xMax, _local1.xMax), yMin:Math.max(_local2.yMin, _local1.yMin), yMax:Math.min(_local2.yMax, _local1.yMax)};
var _local7 = new flash.display.BitmapData(_local3.xMax - _local3.xMin, _local3.yMax - _local3.yMin, false);
var _local4 = a.transform.concatenatedMatrix;
_local4.tx = _local4.tx - _local3.xMin;
_local4.ty = _local4.ty - _local3.yMin;
_local7.draw(a, _local4, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, alphatolerance));
_local4 = b.transform.concatenatedMatrix;
_local4.tx = _local4.tx - _local3.xMin;
_local4.ty = _local4.ty - _local3.yMin;
_local7.draw(b, _local4, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, alphatolerance), "difference");
var _local6 = _local7.getColorBoundsRect(4294967295, 4278255615);
_local7.dispose();
if (_local6.width) {
_local6.x = _local6.x + (_local3.xMin - _local5);
_local6.y = _local6.y + (_local3.yMin - hdif);
return(_local6);
}
}
}
}
}
return(false);
};
MovieClip.prototype.globalpos = function (mc) {
var _local1 = {x:0, y:0};
mc.localToGlobal(_local1);
return({xx:_local1.x, yy:_local1.y});
};
MovieClip.prototype.localpos = function (mc, m) {
var _local2 = globalpos(mc);
var _local1 = {x:_local2.xx, y:_local2.yy};
m.globalToLocal(_local1);
return({xx:_local1.x, yy:_local1.y});
};
MovieClip.prototype.jiggle = function (beginska) {
var t = this;
((!beginska) ? (beginska = 200) : null);
t._xscale = (t._yscale = beginska);
t.ska = 100;
t.dx = 0;
t.dv = 0.8;
t.dvstep = 0.6;
t.onEnterFrame = function () {
t.dx = (t.dx * t.dvstep) + ((t.ska - t._xscale) * t.dv);
t._xscale = t._xscale + t.dx;
t._yscale = t._xscale;
};
};
MovieClip.prototype.removeit = function (arr) {
arr.removeValue(this);
this.removeMovieClip();
};
MovieClip.prototype.appear = function (speed, delay) {
var t = this.createEmptyMovieClip("appearmc", this.getNextHighestDepth());
((!delay) ? (delay = 1) : null);
((!speed) ? (speed = 15) : null);
t.d = delay;
t.speed = speed;
t._parent._visible = false;
t._parent._alpha = 0;
t.onEnterFrame = function () {
t.d--;
if (!t.d) {
t.yy = t._parent._y;
t._parent._y = t._parent._y + 25;
t._parent._visible = true;
t.onEnterFrame = function () {
t._parent._y = t._parent._y + ((t.yy - t._parent._y) / 2);
t._parent._alpha = t._parent._alpha + t.speed;
if (t._parent._alpha >= 100) {
t._parent._alpha = 100;
delete t.onEnterFrame;
}
};
}
};
};
MovieClip.prototype.disappear = function (speed, ys) {
var t = this.createEmptyMovieClip("disappearmc", this.getNextHighestDepth());
((!speed) ? (speed = 20) : null);
((ys == undefined) ? (ys = -2) : null);
t.speed = speed;
t.ys = ys;
t.onEnterFrame = function () {
t._parent._y = t._parent._y + t.ys;
t._parent._alpha = t._parent._alpha - t.speed;
if (t._parent._alpha <= 0) {
delete t.onEnterFrame;
t._parent.removeMovieClip();
}
};
t.stop();
};
MovieClip.prototype.appearbright = function (speed, clr) {
var t = this.createEmptyMovieClip("appearmc", this.getNextHighestDepth());
((!speed) ? (speed = 15) : null);
t.yy = t._parent._y - 25;
t.c = new Color(t._parent);
((!clr) ? (clr = 16777215) : null);
t.clr = clr;
t.c.setTint(t.clr, t.br);
t.br = 100;
t.brless = t.br / speed;
t.blur = 12;
t.blurless = t.blur / speed;
t.onEnterFrame = function () {
t._parent._y = t._parent._y + ((t.yy - t._parent._y) / 2);
t.blur = t.blur - t.blurless;
t._parent.filters = [new flash.filters.BlurFilter(t.blur, t.blur, 3)];
t.br = t.br - t.brless;
t.c.resetColor();
t.c.setTint(t.clr, t.br);
if (t.br <= 0) {
t._parent.filters = null;
c.resetColor();
delete t.onEnterFrame;
}
};
};
MovieClip.prototype.disappearbright = function (speed, clr) {
var t = this.createEmptyMovieClip("disappearmc", this.getNextHighestDepth());
((!speed) ? (speed = 8) : null);
t.c = new Color(t._parent);
t.br = 10;
t.bradd = 100 / speed;
((!clr) ? (clr = 16777215) : null);
t.clr = clr;
t.c.setTint(t.clr, t.br);
t.blur = 1;
t.bluradd = 12 / speed;
t.onEnterFrame = function () {
t.blur = t.blur + t.bluradd;
t._parent.filters = [new flash.filters.BlurFilter(t.blur, t.blur, 3)];
t.br = t.br + t.bradd;
t.c.resetColor();
t.c.setTint(t.clr, t.br);
if (t.br >= 100) {
t.onEnterFrame = function () {
t._parent._alpha = t._parent._alpha - 10;
if (t._parent._alpha <= 0) {
t._parent.filters = null;
c.resetColor();
delete t.onEnterFrame;
}
};
}
};
};
Array.prototype.removeElement = function (i) {
if (i == null) {
i = 0;
}
var _local4 = this[i];
var _local2 = i;
while (_local2 < (this.length - 1)) {
this[_local2] = this[_local2 + 1];
_local2++;
}
this.pop();
return(_local4);
};
Array.prototype.removeValue = function (a) {
var _local2 = 0;
while (_local2 < this.length) {
if (a == this[_local2]) {
this.removeElement(_local2);
}
_local2++;
}
};
Array.prototype.randomize = function () {
return(this.sort(function (a, b) {
return(((Math.floor(Math.random() * 2) == 0) ? 1 : -1));
}));
};
Array.prototype.copy = Array.prototype.slice;
Object.prototype.clon = function () {
if (this instanceof Array) {
var _local2 = [];
var _local3 = 0;
while (_local3 < this.length) {
_local2[_local3] = ((typeof(this[_local3]) == "object") ? (this[_local3].clon()) : (this[_local3]));
_local3++;
}
} else if ((this instanceof XML) || (this instanceof MovieClip)) {
var _local2 = null;
trace("Warning! Object.clon can not be used on MovieClip or XML objects");
} else {
var _local2 = {};
for (var _local3 in this) {
_local2[_local3] = ((typeof(this[_local3]) == "object") ? (this[_local3].clon()) : (this[_local3]));
}
}
return(_local2);
};
ASSetPropFlags(Object.prototype, ["clon"], 1);
Array.prototype.contain = function (val) {
var _local3 = this.length;
var _local2 = 0;
while (_local2 < _local3) {
if (this[_local2] == val) {
return(true);
}
_local2++;
}
return(false);
};
Array.prototype.count = function (val) {
var _local2;
var _local3 = 0;
for (_local2 in this) {
((this[_local2] == val) ? (_local3++) : null);
}
return(_local3);
};
Array.prototype.removedup = function () {
var _local4 = {};
var _local2 = this.length;
var _local9 = 0;
var _local7 = [];
var _local3;
var _local5;
var _local6 = [];
var _local8;
while (_local2--) {
_local3 = this[_local2];
_local5 = typeof(_local3);
if ((_local5 == "number") || (_local5 == "string")) {
_local4[_local3] = _local3;
} else if (!_local3.$$$) {
_local6.push(_local3);
(_local3.$$$ = true);
}
}
for (_local2 in _local4) {
_local7.push(_local4[_local2]);
}
_local2 = _local6.length;
if (_local2) {
while (_local2--) {
_local8 = _local6[_local2];
delete _local8.$$$;
_local7.push(_local8);
}
}
return(_local7);
};
MovieClip.prototype.fadescreen = function (speed) {
if (!speed) {
speed = 5;
}
r.createEmptyMovieClip("dark", 100001);
var d = r.dark;
d.speed = speed;
d.lineStyle(1, 0, 100);
d.beginFill(16777215, 100);
d.moveTo(-5000, -5000);
d.lineTo(5000, -5000);
d.lineTo(5000, 5000);
d.lineTo(-5000, 5000);
d.endFill();
d.onEnterFrame = function () {
d._alpha = d._alpha - d.speed;
if (d._alpha <= 0) {
d.removeMovieClip();
d.stop();
}
};
};
MovieClip.prototype.getrandom = function (aray) {
if (r.randomlisting.length > 0) {
var _local3 = 0;
var _local1 = 0;
while (_local1 < r.randomlisting.length) {
if (r.randomlisting[_local1] == aray) {
_local3 = 1;
break;
}
_local1++;
}
if (!_local3) {
r.randomlisting.push(aray);
}
} else {
r.randomlisting = [];
r.randomlisting.push(aray);
}
if (r[aray + "getrandom"].length <= 0) {
r[aray + "getrandom"] = [];
r[aray + "getrandom"] = r[aray].clon();
r[aray + "getrandom"].randomize();
if (r[aray + "getrandom"].length > 1) {
if (r[aray + "lastpop"] == r[aray + "getrandom"][r[aray + "getrandom"].length - 1]) {
r[aray + "getrandom"].pop();
}
}
}
var _local4 = r[aray + "getrandom"].pop();
r[aray + "lastpop"] = _local4;
return(_local4);
};
MovieClip.prototype.resetrandom = function () {
if (r.randomlisting.length > 0) {
var _local1 = 0;
while (_local1 < r.randomlisting.length) {
r[r.randomlisting[_local1] + "getrandom"] = [];
r[r.randomlisting[_local1] + "lastpop"] = undefined;
_local1++;
}
}
};
MovieClip.prototype.tint = function (delay, colr) {
var t = this.createEmptyMovieClip("tintmc", this.getNextHighestDepth());
t.d = delay;
((!t.d) ? ((t.d = 10)) : null);
t.colr = colr;
((!t.colr) ? ((t.colr = 16737792)) : null);
t.c = new Color(t._parent);
t.a = (t.b = 1);
t._parent.filters = [new flash.filters.GlowFilter(t.colr, 1, 7, 7, 1.5, 1, false, false)];
t.onEnterFrame = function () {
t.d--;
t.a--;
if (!t.a) {
t.a = 2;
t.b = !t.b;
if (t.b) {
t.c.setTint(t.colr, 100);
} else {
t.c.setTint(16777215, 100);
}
} else {
t.c.resetColor();
}
if (!t.d) {
t.c.resetColor();
t._parent.filters = null;
t.removeMovieClip();
}
};
};
MovieClip.prototype.rad = function (qdeg) {
return(qdeg * (Math.PI/180));
};
MovieClip.prototype.deg = function (qrad) {
return(qrad * 57.2957795130823);
};
Number.prototype.limit = function (floor, ceil) {
return(Math.min(ceil, Math.max(floor, this)));
};
Number.prototype.isEven = function () {
return(!(this % 2));
};
Number.prototype.isMultipleOf = function (BaseNum) {
return(!(this % BaseNum));
};
Number.prototype.between = function (lo, hi) {
return((this > lo) && (this < hi));
};
Color.prototype.setBrightness = function (value) {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
var trans = this.getTransform();
var percent = (Math.abs(value) / 100);
var brightnessColor = ((value > 0) ? 255 : 0);
with (trans) {
ra = ra - (ra * percent);
ga = ga - (ga * percent);
ba = ba - (ba * percent);
rb = rb + ((brightnessColor - rb) * percent);
gb = gb + ((brightnessColor - gb) * percent);
bb = bb + ((brightnessColor - bb) * percent);
}
this.setTransform(trans);
};
Color.prototype.setTint = function (col, percent) {
if (isNaN(col) || (isNaN(percent))) {
return(undefined);
}
col = ((col <= 0) ? 0 : (((col >= 16777215) ? 16777215 : (Math.round(col)))));
percent = ((percent <= 0) ? 0 : (((percent >= 100) ? 1 : (percent / 100))));
var trans = this.getTransform();
with (trans) {
ra = ra - (ra * percent);
ga = ga - (ga * percent);
ba = ba - (ba * percent);
rb = rb + ((((col & 16711680) >> 16) - rb) * percent);
gb = gb + ((((col & 65280) >> 8) - gb) * percent);
bb = bb + (((col & 255) - bb) * percent);
}
this.setTransform(trans);
};
Color.prototype.resetColor = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
};
Sound.prototype.fade = function (fadeType, fadeDuration) {
this.fadeDuration = (fadeDuration * 1000) / 100;
this.fadeType = fadeType;
this.currentVolume = this.getVolume();
this.intID = setInterval(function (thisObj) {
thisObj.doFade(thisObj.fadeType);
}, this.fadeDuration, this);
this.doFade = function (fadeType) {
if (fadeType == "out") {
this.setVolume(this.currentVolume--);
if (this.getVolume() <= 0) {
clearInterval(this.intID);
}
} else if (fadeType == "in") {
this.setVolume(this.currentVolume++);
if (this.getVolume() >= 100) {
clearInterval(this.intID);
}
}
};
};
MovieClip.prototype.wait = function (delay) {
var t = this.createEmptyMovieClip("wdl", 55555);
t.delay = delay;
t.onEnterFrame = function () {
t.delay--;
if (t.delay < 0) {
delete t.onEnterFrame;
t._parent.play();
t.removeMovieClip();
}
};
t._parent.stop();
};
MovieClip.prototype.savecookie = function (vari, value) {
var _local1 = SharedObject.getLocal("driftcookie", "/");
_local1.data[vari] = value;
_local1.flush();
};
MovieClip.prototype.loadcookie = function (vari) {
var _local1 = SharedObject.getLocal("driftcookie", "/");
if (_local1.data[vari] != null) {
return(_local1.data[vari]);
}
return(false);
};
Frame 15
call("pro2");
fadescreen();
onMouseDown = function () {
delete onMouseDown;
gotoAndStop ("ins");
};
stop();
Frame 23
call("pro2");
fadescreen();
onMouseDown = function () {
delete onMouseDown;
gotoAndStop ("start");
};
stop();
Frame 30
_global.m = this.map;
_global.stat = this.stat;
_global.p = m.attachMovie("yoda", "yoda", 75000, {_x:200, _y:0});
delete onEnterFrame;
call("pro");
call("pro2");
fadescreen();
if (!energy) {
ang = 0;
energy = (energymax = 100);
droidspeed = 3.5;
droidspeedmax = 10;
droiddelay = 32;
droiddelaymin = 20;
leveldelay = 60;
bonusdelay = 10;
bonusd = bonusdelay + random(3);
bonus3d = (bonus3delay = 2);
}
ld = leveldelay;
d = droiddelay;
nil = 10;
addnil = 10;
bonusspeed = 10;
bonusenergy = 30;
energyless = 0.05;
jumppower = -35;
bounceforce = 15;
grav = 2;
xmin = 0;
xmax = 630;
screenwid = 600;
screenhei = 400;
od = 1000;
fd = 60000;
popd = 50000;
all = [];
hop = (energyboost = 0);
begin = 1;
swingsfx = ["zswing1", "zswing2", "zswing3"];
resetrandom();
if (!r.udamusik) {
r.udamusik = 1;
stopAllSounds();
r.createEmptyMovieClip("sfx", 60001);
allsfx = ["ztic", "zenergy", "zjump", "zdestroyed", "zblast", "zstep", "zcut", "zexplode", "zswing1", "zswing2", "zswing3"];
var i = 0;
while (i < allsfx.length) {
r[allsfx[i]] = new Sound(sfx);
r[allsfx[i]].attachSound(allsfx[i]);
i++;
}
r.createEmptyMovieClip("sfx2", 60002);
r.zloop = new Sound(sfx2);
r.zloop.attachSound("zloop");
r.zloop.start(0, 99999);
r.zloop.setVolume(0);
r.zloop.fade("in", 0.2);
}
r.zswing2.start();
make(1, 520, 250);
onEnterFrame = function () {
d--;
if (!d) {
d = Math.floor(r.droiddelay) + random(10);
make(1, screenwid + 40, 50 + random(250));
bonusd--;
if (bonusd < 0) {
bonus3d--;
((!bonus3d) ? ((bonus3d = bonus3delay)(btipe = 13)) : ((btipe = 11 + random(2))));
make(btipe, screenwid + 40, 150 + random(100));
bonusd = Math.floor(bonusdelay) + random(10);
if ((btipe != 13) and (r.all.length < 5)) {
make(1, screenwid + 40, 50 + random(250));
make(1, screenwid + 80, 50 + random(250));
}
}
}
ld--;
if (ld < 0) {
ld = leveldelay;
leveldelay = leveldelay + 20;
droidspeed = Math.min(droidspeedmax, droidspeed + 0.1);
droiddelay = Math.max(droiddelaymin, droiddelay - 1);
}
};
stop();
Frame 37
d = 50;
onEnterFrame = function () {
d--;
((!d) ? ((r.energy = Math.max(2, r.energy - 10))gotoAndPlay ("start")) : null);
};
stop();
Frame 44
delete onEnterFrame;
fadescreen();
stop();
Symbol 11 MovieClip Frame 1
_alpha = 0;
onEnterFrame = function () {
_alpha = Math.min(100, _alpha + 10);
n = _parent.persen;
if (n <= 50) {
ro1 = (n / 50) * 180;
ring.r1._rotation = ro1;
ring.r2._rotation = 180;
} else {
ring.r1._rotation = 180;
ro2 = ((n - 50) / 50) * 180;
ring.r2._rotation = 180 + ro2;
}
};
stop();
Symbol 30 MovieClip Frame 1
stop();
Symbol 52 MovieClip [explosion] Frame 1
r.zexplode.start();
onEnterFrame = function () {
_rotation = (_rotation + 1);
_x = (_x - 10);
};
Symbol 52 MovieClip [explosion] Frame 16
stop();
Symbol 58 MovieClip Frame 4
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 9
onEnterFrame = function () {
_alpha = Math.max(0, _alpha - 20);
};
Symbol 75 MovieClip Frame 14
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 77 MovieClip [o1] Frame 1
initdroid();
Symbol 120 MovieClip Frame 21
gotoAndPlay ("l");
Symbol 124 MovieClip Frame 5
stop();
Symbol 133 MovieClip [popscore] Frame 1
jiggle();
Symbol 133 MovieClip [popscore] Frame 25
disappear();
Symbol 137 MovieClip [o3] Frame 1
inithead();
Symbol 146 MovieClip Frame 1
onEnterFrame = function () {
c._rotation = c._rotation - 3;
b._rotation = b._rotation + 4;
d._visible = !d._visible;
};
Symbol 148 MovieClip Frame 1
onEnterFrame = function () {
_alpha = (50 + random(50));
};
Symbol 149 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + 10);
};
Symbol 150 MovieClip Frame 5
onEnterFrame = function () {
_parent._alpha = _parent._alpha - 10;
};
Symbol 150 MovieClip Frame 16
_parent.gotoAndStop(3);
stop();
Symbol 151 MovieClip [o11] Frame 1
initbonus(1);
Symbol 154 MovieClip [flash] Frame 1
d = 10;
onEnterFrame = function () {
_x = (_x - r.droidspeed);
d--;
((d < 5) ? (_alpha = (_alpha - 20)_alpha - 20) : null);
((_alpha <= 0) ? (this.removeMovieClip()) : null);
};
stop();
Symbol 157 MovieClip Frame 8
stop();
Symbol 158 MovieClip Frame 7
stop();
Symbol 159 MovieClip [o12] Frame 1
initbonus(2);
Symbol 160 MovieClip [o13] Frame 1
initbonus(3);
Symbol 163 MovieClip [en1] Frame 10
this.removeMovieClip();
stop();
Symbol 164 MovieClip [energyg] Frame 1
n = 10;
onEnterFrame = function () {
this.attachMovie("en1", "en" + n, n, {_rotation:random(360), _xscale:100 + random(100)});
n++;
this.attachMovie("en1", "en" + n, n, {_rotation:random(360), _xscale:100 + random(100)});
n++;
};
Symbol 177 MovieClip Frame 5
stop();
Symbol 178 MovieClip [yodaland2] Frame 1
r.all.removeValue(this._parent);
d = 10;
onEnterFrame = function () {
d--;
((d == 3) ? ((this._parent.die = 3)) : null);
((d < 5) ? (_alpha = (_alpha - 20)_alpha - 20) : null);
((!d) ? (this.removeMovieClip()) : null);
};
stop();
Symbol 184 Button
on (release) {
gotoAndPlay ("ins");
}
Symbol 192 Button
on (release) {
_tracker = new GameTrack_AS2(22000);
gotoAndPlay ("start");
}
Symbol 208 MovieClip Frame 1
duplicateMovieClip ("pic", "pic2", 2);
wid = pic._width;
pic2._x = wid;
startx = _x;
flip = 1;
xs = 10;
onEnterFrame = function () {
nx = _x + xs;
((nx > 0) ? ((nx = nx - wid)) : null);
_x = nx;
};
Symbol 212 MovieClip Frame 1
duplicateMovieClip ("pic", "pic2", 2);
wid = pic._width;
pic2._x = wid;
startx = _x;
xs = 20;
onEnterFrame = function () {
nx = _x + xs;
((nx > 0) ? ((nx = nx - wid)) : null);
_x = nx;
};
Symbol 216 MovieClip Frame 1
duplicateMovieClip ("pic", "pic2", 2);
wid = pic._width;
pic2._x = wid;
startx = _x;
((!_name) ? ((xs = 40)) : ((xs = 2)));
onEnterFrame = function () {
nx = _x + xs;
((nx > 0) ? ((nx = nx - wid)) : null);
_x = nx;
};
Symbol 219 MovieClip Frame 1
ys = (frombonus = 0);
onEnterFrame = function () {
ys = ys + 1.5;
p._y = p._y + ys;
p._x = p._x + 12;
cekdroid(p._x, p._y);
if (r.hop) {
delete onEnterFrame;
delete onMouseDown;
gotoAndPlay ("hop");
}
};
stop();
Symbol 219 MovieClip Frame 5
p.removeMovieClip();
launchspeed = 40;
var yo = r.hop.attachMovie("yodaland", "yoda", 10, {_x:-15, _y:-35});
_global.aimer = r.hop.attachMovie("aimer", "aimer", 20, {_x:-15, _y:-35});
nolaunch = 1;
go = 0;
r.hop.attachMovie("popscore", "sc", 110, {_x:-15, _y:-5, sk:r.nil});
r.ang = r.ang + r.nil;
r.nil = r.nil + r.addnil;
make(3, r.hop._x, r.hop._y);
r.hop.a.gotoAndStop(2);
r.zstep.start();
r.zcut.start();
glo = 0;
(frombonus ? (yo.yodaglow(frombonus)(frombonus = 0)(glo = 25)) : null);
onMouseDown = function () {
if ((r._xmouse < (r.screenwid - 30)) and (r._ymouse > 30)) {
((!nolaunch) ? ((go = 1)) : null);
}
};
onEnterFrame = function () {
glo--;
((glo > 0) ? ((yo._visible = !yo._visible)) : ((yo.filters = null)(yo._visible = true)));
pos = localpos(aimer, m);
angle = Math.atan2(r._ymouse - pos.yy, r._xmouse - pos.xx);
angle2 = deg(angle);
aimer._rotation = angle2;
r.hop.starty++;
nolaunch = 0;
((pos.xx < 0) ? (((!go) ? ((go = 1)(angle = -0.5)(angle2 = deg(angle))(launchspeed = 20)) : null)) : null);
if (go) {
xs = Math.cos(angle) * launchspeed;
ys = Math.sin(angle) * launchspeed;
r.hop.die = 10;
r.all.removeValue(r.hop);
gotoAndPlay ("launch");
} else if (!r.hop) {
r.gotoAndPlay("retry");
}
};
stop();
Symbol 219 MovieClip Frame 11
delete onMouseDown;
_global.p = m.attachMovie("yodajump", "yoda", 75000, {_x:r.hop._x, _y:r.hop._y - r.hop.halfwid});
_global.place = m.createEmptyMovieClip("place", 74500);
r.hop.yoda.removeMovieClip();
fromx = r.hop._x;
aimer.removeMovieClip();
var sfx = getrandom("swingsfx");
r[sfx].start();
r.hop = (r.gotbonus = null);
div = 2;
(xs = xs / div);
(ys = ys / div);
d = 20;
onEnterFrame = function () {
d--;
((d > 0) ? ((xs = xs * 0.98)(ys = ys * 0.98)) : null);
angle = Math.atan2(ys, xs);
angle2 = deg(angle);
(((angle2 > 90) or (angle2 < -90)) ? ((p.a._xscale = -100)) : ((p.a._xscale = 100)));
(nx = p._x);
(ny = p._y);
var _local3 = 0;
while (_local3 < div) {
(nx = nx + xs);
(ny = ny + ys);
(ys = ys + 0.7);
if ((nx > r.xmin) and (nx < r.xmax)) {
(bonus._visible ? (cekgotbonus()((!r.gotbonus) ? (cekdroid(nx, ny)) : null)) : (cekdroid(nx, ny)));
}
if (r.gotbonus or r.hop) {
break;
}
_local3++;
}
(p._x = nx);
(p._y = ny);
fromx = fromx - (2 * r.droidspeed);
(((!r.hop) ? (if (r.gotbonus) {
(p._x = bonus._x)(p._y = bonus._y)delete onEnterFramegotoAndPlay("bonus" + r.gotbonus)undefined} else if (p._y > 600) {
(r.from = null)r.gotoAndPlay("retry")}
) : (_local7 = 1while (_local2 < r.all.length) {
_local1 = r.all[_local2]if (_local1 != r.hop) {
if ((_local1._x > fromx) and (_local1._x < r.hop._x)) {
_local1.attachMovie("yodaland2", "yoda", 10, {_x:-15, _y:-35})_local1.attachMovie("popscore", "sc", 110, {_x:-15, _y:-5, sk:10 * r.nil})r.ang = r.ang + (10 * r.nil)r.nil = r.nil + r.addnil}
}
_local2 = ((_local2 = 0)+1)}
delete onEnterFramegotoAndPlay ("hop")undefined)));// not popped
};
stop();
Symbol 219 MovieClip Frame 18
p.a.yodaglow(1);
r.gotbonus = 0;
bonus.gotoAndStop(2);
d = 10;
onEnterFrame = function () {
d--;
p._x = Math.max(50, p._x - r.bonusspeed);
if (!d) {
ys = -10;
d = 20;
onEnterFrame = function () {
p._y = p._y + ys;
ys = ys + 0.5;
d--;
if (!d) {
var res = getkill();
d = (delay = 5);
it = res.it;
onEnterFrame = function () {
p._x = p._x + ((it._x - p._x) / 2);
p._y = p._y + ((it._y - p._y) / 2);
d--;
((d == 2) ? (m.attachMovie("flash", "flash" + r.fd, r.fd, {_x:it._x, _y:it._y, _rotation:res.ang, _xscale:res.dis})r.fd++) : null);
if (!d) {
it.die = 2;
r.all.removeValue(it);
p._x = it._x;
p._y = it._y;
d = delay;
r.nil = r.nil + (5 * r.addnil);
it.attachMovie("popscore", "sc", 110, {_x:-15, _y:-5, sk:10 * r.nil});
r.ang = r.ang + (10 * r.nil);
res = getkill();
it = res.it;
if (res.las) {
r.hop = it;
it.xs = -5;
frombonus = 1;
m.attachMovie("flash", "flash" + r.fd, r.fd, {_x:it._x, _y:it._y, _rotation:res.ang, _xscale:res.dis});
r.fd++;
delete onEnterFrame;
gotoAndPlay ("hop");
}
}
};
}
};
}
};
stop();
Symbol 219 MovieClip Frame 26
p.a.yodaglow(2);
r.gotbonus = 0;
bonus.gotoAndStop(2);
r.zblast.start();
d = 10;
onEnterFrame = function () {
d--;
p._x = Math.max(50, p._x - r.bonusspeed);
if (d == 5) {
arr = [];
var _local1 = 0;
while (_local1 < r.all.length) {
r.all[_local1].destroyed = 999;
arr.push(r.all[_local1]);
_local1++;
}
}
if (!d) {
ys = -10;
d = 20;
make(1, r.screenwid + 40, 50 + random(250));
onEnterFrame = function () {
p._y = p._y + ys;
ys = ys + 0.5;
d--;
if (!d) {
var _local1 = 0;
while (_local1 < r.all.length) {
if ((!r.all[_local1].destroyed) and (r.all[_local1]._y > 10)) {
it = r.all[_local1];
break;
}
_local1++;
}
d = 5;
onEnterFrame = function () {
p._x = p._x + ((it._x - p._x) / 2);
p._y = p._y + ((it._y - p._y) / 2);
d--;
if (!d) {
var _local1 = 0;
while (_local1 < arr.length) {
arr[_local1].destroyed = (_local1 + 1) * 3;
r.nil = r.nil + (5 * r.addnil);
arr[_local1].attachMovie("popscore", "sc", 110, {_x:-15, _y:-5, sk:10 * r.nil});
r.ang = r.ang + (10 * r.nil);
_local1++;
}
r.hop = it;
it.xs = -5;
frombonus = 2;
delete onEnterFrame;
gotoAndPlay ("hop");
}
};
}
};
}
};
stop();
Symbol 219 MovieClip Frame 34
p.a.yodaglow(3);
r.gotbonus = 0;
r.energyboost = 1;
bonus.gotoAndStop(2);
r.zenergy.start();
p.attachMovie("energyg", "energyg", 11);
d = 10;
onEnterFrame = function () {
d--;
p._x = Math.max(50, p._x - r.bonusspeed);
if (!d) {
ys = -10;
d = 20;
var new1 = make(1, r.screenwid + 40, 50 + random(250));
onEnterFrame = function () {
p._y = p._y + ys;
ys = ys + 0.5;
d--;
if (!d) {
it = 0;
var _local1 = 0;
while (_local1 < r.all.length) {
if (r.all[_local1]._x > 400) {
it = r.all[_local1];
break;
}
_local1++;
}
((!it) ? ((it = new1)) : null);
d = 5;
onEnterFrame = function () {
p._x = p._x + ((it._x - p._x) / 2);
p._y = p._y + ((it._y - p._y) / 2);
d--;
if (!d) {
nn = 1;
var _local2 = [];
var _local1 = 0;
while (_local1 < r.all.length) {
if ((r.all[_local1] != it) and (r.all[_local1]._x < it._x)) {
r.all[_local1].die = nn * 4;
_local2.push(r.all[_local1]);
nn++;
r.all[_local1].attachMovie("popscore", "sc", 110, {_x:-15, _y:-5, sk:10 * r.nil});
r.ang = r.ang + (10 * r.nil);
r.nil = r.nil + r.addnil;
}
_local1++;
}
_local1 = 0;
while (_local1 < _local2.length) {
r.all.removeValue(_local2[_local1]);
_local1++;
}
r.hop = it;
it.xs = -5;
frombonus = 3;
delete onEnterFrame;
gotoAndPlay ("hop");
}
};
}
};
}
};
stop();
Symbol 222 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 1
onEnterFrame = function () {
if (p._x > 620) {
a.gotoAndStop(2);
_x = 580;
_y = p._y;
p._y;
_xscale = 100;
} else if (p._x < -20) {
a.gotoAndStop(2);
_x = 20;
_y = p._y;
p._y;
_xscale = -100;
} else {
a.gotoAndStop(1);
}
};
stop();
Symbol 235 Button
on (release) {
r.music = 0;
r.zloop.setVolume(0);
r.zexplode.setVolume(0);
gotoAndStop (2);
}
Symbol 238 Button
on (release) {
r.music = 1;
r.zloop.setVolume(100);
r.zexplode.setVolume(100);
gotoAndStop (1);
}
Symbol 239 MovieClip Frame 1
if (r.music) {
stop();
} else {
gotoAndStop (2);
}
Symbol 240 MovieClip Frame 8
r.ztic.start();
Symbol 241 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 1
b.gotoAndStop(1);
accel = 0.8;
convert = 0.5;
xs = 0;
onEnterFrame = function () {
r.energy = r.energy - r.energyless;
xs = (xs * accel) + ((r.energy - b._xscale) * convert);
b._xscale = Math.max(0.001, Math.min(100, b._xscale + xs));
if (r.energyboost) {
delete onEnterFrame;
gotoAndPlay (2);
} else if (r.energy > 8) {
frame.gotoAndStop(1);
tictoc.gotoAndStop(1);
} else {
frame.gotoAndStop(2);
tictoc.gotoAndStop(2);
if (r.energy > 0) {
} else {
(r.gotoAndPlay("end"));// not popped
}
}
};
stop();
Symbol 250 MovieClip Frame 2
newenergy = Math.min(r.energymax, r.energy + r.bonusenergy);
r.energyboost = 0;
b.gotoAndStop(2);
onEnterFrame = function () {
r.energy = r.energy + 0.6;
xs = (xs * accel) + ((r.energy - b._xscale) * convert);
b._xscale = Math.max(0.001, Math.min(100, b._xscale + xs));
((r.energy >= newenergy) ? ((r.energy = newenergy)delete onEnterFramegotoAndPlay (1)) : null);
};
stop();
Symbol 255 MovieClip Frame 1
duplicateMovieClip ("pic", "pic2", 2);
wid = pic._height;
pic2._y = wid;
starty = _y;
ys = -50;
onEnterFrame = function () {
ny = _y + ys;
((ny < (starty - wid)) ? ((ny = ny + wid)) : null);
((ny > starty) ? ((ny = ny - wid)) : null);
_y = ny;
};
Symbol 284 MovieClip Frame 2
r.zswing2.start();
Symbol 284 MovieClip Frame 5
fog._alpha = 0;
onEnterFrame = function () {
fog._alpha = fog._alpha + 5;
((fog._alpha >= 100) ? (delete onEnterFrame) : null);
};
Symbol 284 MovieClip Frame 16
delete w.onEnterFrame;
r.zstep.start();
Symbol 284 MovieClip Frame 38
r.zjump.start();
Symbol 284 MovieClip Frame 48
stop();
Symbol 294 Button
on (release) {
_tracker.sendEventReplay();
r.energy = 0;
gotoAndPlay ("start");
}