Frame 1
function saveData() {
if (_root.score > 0) {
_root.scoreList.push({name:_root.name, score:_root.score});
_root.score = 0;
}
Cookies = SharedObject.getLocal("savedata");
Cookies.data.scoreList = _root.scoreList;
Cookies.data.loadable = true;
Cookies.flush();
loadData();
}
function loadData() {
Cookies = SharedObject.getLocal("savedata");
_root.scoreList = Cookies.data.scoreList;
_root.scoreList.sortOn("score", Array.DESCENDING | Array.NUMERIC);
_root.scoreList.splice(10, 1);
loadable = Cookies.data.loadable;
nama_var = "";
skor_var = "";
i = 0;
while (i < 10) {
nama_var = nama_var + (_root.scoreList[i].name + newline);
skor_var = skor_var + (_root.scoreList[i].score + newline);
i++;
}
}
mute = false;
soundAll = new Sound();
soundAll.setVolume(100);
loadData();
if (!loadable) {
trace(scoreList);
_root.scoreList = new Array();
i = 0;
while (i < 11) {
if (i < 4) {
_root.scoreList.push({name:"CPU", score:i * 5000});
} else {
_root.scoreList.push({name:"CPU", score:(i * (2500 + random(200))) + 5000});
}
i++;
}
saveData();
}
Frame 5
nextFrame();
Instance of Symbol 339 MovieClip [boss2] in Frame 5
onClipEvent (load) {
if (go) {
shot = new Sound();
shot.attachSound("enemyfire");
_alpha = 100;
_x = (-30 + (random(2) * 660));
_y = (390 + random(50));
groundDepth = (_y - 380) * 50;
this.swapDepths(groundDepth);
}
speed = 3;
ground = _y;
actions = new Array();
actions = ["stand", "duck"];
stopAction = actions[random(2)];
jarak = 50 + random(200);
if (_x > 400) {
_xscale = -100;
} else {
_xscale = 100;
}
action = "run";
timeAct = 20;
warna = random(8) + 1;
jumpPower = 0;
grav = 0;
timerAim = 0;
movex = 0;
movey = 0;
tujuany = 0;
tujuanx = 0;
duck = false;
hp = 5 + (_root.level / 2);
fireTime = 100 + random(50);
}
onClipEvent (enterFrame) {
if (_root.paused || (!go)) {
return(undefined);
}
gotoAndStop(action);
timeAct--;
_y = (_y - (jumpPower - grav));
grav = grav + 0.5;
jumpPower = jumpPower * 0.9;
if (_y > ground) {
grav = 0;
jumpPower = 0;
jumpAble = true;
_y = ground;
}
if (mati) {
action = "dead";
_alpha = (_alpha - 1);
if (_alpha < 0) {
removeMovieClip(this);
}
return(undefined);
}
if (jarak > 0) {
if ((timeAct < 0) && (jumpAble == true)) {
action = "jump";
jumpPower = jumpPower + 10;
jumpAble = false;
timeAct = 30 + random(30);
} else if (jumpPower == 0) {
action = "run";
}
if (_x > 350) {
_x = (_x - speed);
} else if (_x < 350) {
_x = (_x + speed);
}
jarak = jarak - speed;
} else {
action = stopAction;
}
if (timerAim < 0) {
tujuany = -random(100);
tujuanx = -50 - random(50);
timerAim = 30 + random(50);
}
timerAim--;
movey = movey + ((tujuany - movey) / 10);
movex = movex + ((tujuanx - movex) / 10);
tellTarget (body.arm) {
_rotation = ((Math.atan2(_parent._parent.movey - _y, _parent._parent.movex - _x) * 180) / 3.141593);
var wepPoint = {x:50, y:0};
localToGlobal(wepPoint);
_parent._parent.wepx = wepPoint.x;
_parent._parent.wepy = wepPoint.y;
_y = (_y + ((tujuan - _y) / 2));
if (_parent._parent.action == "duck") {
var tujuan = 20;
} else {
var tujuan = 0;
}
};
fireTime--;
if (fireTime < 0) {
shot.start();
nama = "enemBullet" + _parent.getNextHighestDepth();
duplicateMovieClip (_parent.enemBullet, nama, _parent.getNextHighestDepth());
_parent[nama]._rotation = (body.arm._rotation * _xscale) / 100;
_parent[nama].speedx = (_xscale / 5) * Math.cos(_parent[nama]._rotation * 0.017453);
_parent[nama].speedy = ((-_xscale) / 5) * Math.sin(_parent[nama]._rotation * 0.017453);
_parent[nama]._x = wepx;
_parent[nama]._y = wepy;
fireTime = random(50);
}
if (_root.explode) {
hp = hp - 10;
}
if ((hp < 1) && (!mati)) {
namap = "preizee" + _parent.getNextHighestDepth();
duplicateMovieClip (_parent.prize, namap, _parent.getNextHighestDepth());
_parent[namap].num = 120 + (_root.level * 6);
_parent[namap]._x = _x;
_parent[namap]._y = _y;
_root.score = _root.score + (120 + (_root.level * 6));
_root.money = _root.money + (120 + (_root.level * 6));
_parent.jumlahLayar--;
mati = true;
}
jarakx = _x - _root._xmouse;
jaraky = _y - _root._ymouse;
jarakz = Math.sqrt(Math.pow(jarakx, 2) + Math.pow(jaraky, 2));
if (jarakz < 50) {
i = 0;
while (i < 6) {
namaBullet = "hitt" + i;
if (this.hitTest(_parent[namaBullet]._x, _parent[namaBullet]._y, true)) {
a = 0;
while (a < 5) {
namaBlast = "blastxx" + _parent.getNextHighestDepth();
duplicateMovieClip (_parent.blast, namaBlast, _parent.getNextHighestDepth());
_parent[namaBlast]._x = _parent[namaBullet]._x;
_parent[namaBlast]._y = _parent[namaBullet]._y;
_parent[namaBlast].go = true;
a++;
}
namap = "damagee" + _parent.getNextHighestDepth();
duplicateMovieClip (_parent.damage, namap, _parent.getNextHighestDepth());
_parent[namap].num = _parent[namaBullet].damage;
_parent[namap]._x = _parent[namaBullet]._x;
_parent[namap]._y = _parent[namaBullet]._y;
hp = hp - _parent[namaBullet].damage;
removeMovieClip(_parent[namaBullet]);
}
i++;
}
}
tellTarget ("") {
};
tellTarget ("") {
}
}
Frame 6
function isLock() {
return(false);
}
stop();
Frame 18
saveData();
loadData();
Frame 24
function init() {
_x = 0;
_y = 0;
level_txt.text = "\u5F53\u524D\u5173\u5361 " + level;
gamestart_mc.play();
action = "stand";
jumpPower = 0;
grav = 0;
combo = 0;
firerate = 0;
comboTime = 0;
tujuan = "level" + (level + 1);
msg = "";
land = true;
shoot = true;
jml = 0;
jmlBall = 0;
moveAble = true;
hp = 9999;
hpbar.gotoAndStop(11);
timeHit = 30;
deletePickUp();
otherList = new Array();
enemyList = new Array();
itemList = new Array();
endTime = 100;
timer = 10500;
char._x = 320;
char._y = 430;
i = 0;
while (i < enemyJml) {
nama = "enemy" + penampung.getNextHighestDepth();
target = "en";
tipe = random(level) + 1;
if (tipe > 18) {
tipe = random(18) + 1;
}
if (level > 4) {
acak = random(8);
if (acak == 0) {
target = "enfly";
tipe = random(Math.floor(level / 5)) + 1;
if (tipe > 3) {
tipe = 3;
}
}
}
penampung.attachMovie(target, nama, penampung.getNextHighestDepth());
penampung[nama].tipe = tipe;
enemyList.push(nama);
i++;
}
}
function pickUp(posx, posy) {
popsound = new Sound();
popsound.attachSound("popsound");
popsound.start();
nama = "pick" + penampung.getNextHighestDepth();
penampung.attachMovie("pickup", nama, penampung.getNextHighestDepth());
itemList.push(nama);
penampung[nama]._x = posx;
penampung[nama]._y = posy;
}
function deletePickUp() {
i = 0;
while (i < enemyList.length) {
removeMovieClip(penampung[enemyList[i]]);
i++;
}
i = 0;
while (i < otherList.length) {
removeMovieClip(penampung[otherList[i]]);
i++;
}
i = 0;
while (i < itemList.length) {
removeMovieClip(penampung[itemList[i]]);
i++;
}
}
function spawnSkor(posx, posy, num) {
nama = "skor" + front.getNextHighestDepth();
front.attachMovie("skor", nama, front.getNextHighestDepth());
front[nama]._x = posx;
front[nama]._y = posy;
front[nama].num = num;
}
function breakIce(ex, ey) {
i = 0;
while (i < 10) {
namaIce = "break" + penampung.getNextHighestDepth();
penampung.attachMovie("breakIce", namaIce, penampung.getNextHighestDepth());
penampung[namaIce]._x = ex;
penampung[namaIce]._y = ey;
i++;
}
}
function screenshake() {
shakex = 1 - (random(2) * 2);
shakey = 1 - (random(2) * 2);
}
function playsound(nama) {
mysound = new Sound();
mysound.attachSound(nama);
mysound.start();
}
function createBall(posx, posy) {
ballslide = new Sound();
ballslide.attachSound("ballslide");
ballslide.start();
nama = "ball" + jmlBall;
jmlBall++;
if (jmlBall > 4) {
jmlBall = 0;
}
penampung.attachMovie("iceball", nama, penampung.getNextHighestDepth());
penampung[nama]._x = posx;
penampung[nama]._y = posy;
penampung[nama]._xscale = char._xscale;
penampung[nama].speed = char._xscale / 5;
}
function fireIce() {
nama = "ice" + jml;
jml++;
if (jml > 2) {
jml = 0;
}
penampung.attachMovie("ice", nama, penampung.getNextHighestDepth());
penampung[nama]._xscale = char._xscale;
penampung[nama].speedx = char._xscale / 6;
penampung[nama]._x = char._x + (char._xscale / 4);
penampung[nama]._y = char._y;
breakIce(char._x + (char._xscale / 4), char._y);
firing = new Sound();
firing.attachSound("firing");
firing.start();
}
function game() {
if (_root.pause) {
return(undefined);
}
_x = shakex;
_y = shakey;
shakex = shakex * -0.6;
shakey = shakey * -0.6;
if (enemyJml == 0) {
if (bossMode) {
enemyJml = 5 + random(6);
i = 0;
while (i < enemyJml) {
nama = "enemy" + penampung.getNextHighestDepth();
penampung.attachMovie("en", nama, penampung.getNextHighestDepth());
tipe = random(level) + 1;
if (tipe > 18) {
tipe = random(18) + 1;
}
penampung[nama].tipe = tipe;
enemyList.push(nama);
i++;
}
} else {
endTime--;
if (endTime < 0) {
playsound("nextlevel");
gameover_mc.play();
}
}
} else if (timer < 1) {
playsound("gameover");
tujuan = "gameover";
msg = "TIME'S UP";
gameover_mc.play();
} else {
timer--;
}
if (comboTime < 0) {
combo_mc.prevFrame();
if (combo_mc._currentframe == 1) {
combo = 0;
}
} else {
comboTime--;
if (combo > 1) {
combo_mc.nextFrame();
}
}
if (timeHit > 0) {
char._alpha = 50;
timeHit--;
} else {
char._alpha = 100;
}
if (hp < 1) {
action = "dead";
endTime--;
if (endTime < 0) {
playsound("gameover");
tujuan = "gameover";
msg = "\u6E38\u620F\u7ED3\u675F";
gameover_mc.play();
}
moveAble = false;
}
char.gotoAndStop(action);
grav++;
char._y = char._y + (grav - jumpPower);
jumpPower = jumpPower * 0.9;
if (((Key.isDown(74) && (moveAble)) && (firerate < 0)) && (shoot)) {
if (land && (action == "stand")) {
action = "shoot";
char.body.play();
shoot = false;
} else {
fireIce();
}
firerate = 10;
} else {
firerate--;
}
if (moveAble && (shoot)) {
if (Key.isDown(65)) {
if (land) {
action = "move";
}
char._x = char._x - (5 + extSpeed);
char._xscale = -100;
} else if (Key.isDown(68)) {
if (land) {
action = "move";
}
char._x = char._x + (5 + extSpeed);
char._xscale = 100;
} else if (land) {
action = "stand";
}
if (Key.isDown(75) && (land)) {
land = false;
action = "jump";
char.body.gotoAndPlay(1);
jumpPower = 20;
} else if ((Key.isDown(83) && (land)) && (char._y < 400)) {
land = false;
action = "jump";
char.body.gotoAndPlay(1);
jumpPower = -5;
}
}
if (char._x > 640) {
char._x = 640;
} else if (char._x < 0) {
char._x = 0;
}
if (char._y > 430) {
land = true;
if (!(action === "jump")) {
jumpPower = 0;
}
grav = 0;
char._y = 430;
}
minute = Math.floor(timer / 1500);
second = Math.floor((timer - (minute * 1500)) / 25);
if (minute < 10) {
minute = "0" + minute;
}
if (second < 10) {
second = "0" + second;
}
time_txt.text = (minute + ":") + second;
}
pause = false;
level = 1;
score = 0;
bossMode = false;
range = 0;
extSpeed = 0;
enemyJml = 5;
init();
this.onEnterFrame = function () {
game();
};
Instance of Symbol 430 MovieClip "office" in Frame 24
onClipEvent (load) {
stop();
}
Frame 30
enemyJml = 8;
init();
this.onEnterFrame = function () {
game();
};
Frame 36
enemyJml = 12;
init();
this.onEnterFrame = function () {
game();
};
Frame 42
enemyJml = 12;
init();
this.onEnterFrame = function () {
game();
};
Frame 48
enemyJml = 15;
init();
nama = "enemy" + penampung.getNextHighestDepth();
penampung.attachMovie("boss1", nama, penampung.getNextHighestDepth());
penampung[nama].tipe = 2;
enemyList.push(nama);
bossMode = true;
this.onEnterFrame = function () {
game();
};
Frame 54
enemyJml = 17;
init();
this.onEnterFrame = function () {
game();
};
Frame 60
enemyJml = 18;
init();
this.onEnterFrame = function () {
game();
};
Frame 65
enemyJml = 18;
init();
this.onEnterFrame = function () {
game();
};
Frame 70
enemyJml = 18;
init();
this.onEnterFrame = function () {
game();
};
Frame 75
enemyJml = 17;
init();
nama = "enemy" + penampung.getNextHighestDepth();
penampung.attachMovie("boss1", nama, penampung.getNextHighestDepth());
penampung[nama].tipe = 1;
enemyList.push(nama);
bossMode = true;
this.onEnterFrame = function () {
game();
};
Frame 81
enemyJml = 17;
init();
this.onEnterFrame = function () {
game();
};
Frame 87
enemyJml = 18;
init();
this.onEnterFrame = function () {
game();
};
Frame 93
enemyJml = 18;
init();
this.onEnterFrame = function () {
game();
};
Frame 99
enemyJml = 18;
init();
this.onEnterFrame = function () {
game();
};
Frame 105
enemyJml = 18;
init();
nama = "enemy" + penampung.getNextHighestDepth();
penampung.attachMovie("boss2", nama, penampung.getNextHighestDepth());
penampung[nama].tipe = 2;
enemyList.push(nama);
bossMode = true;
this.onEnterFrame = function () {
game();
};
Frame 111
enemyJml = 18;
init();
this.onEnterFrame = function () {
game();
};
Frame 117
enemyJml = 18;
init();
this.onEnterFrame = function () {
game();
};
Frame 123
enemyJml = 18;
init();
this.onEnterFrame = function () {
game();
};
Frame 129
enemyJml = 18;
init();
this.onEnterFrame = function () {
game();
};
Frame 135
enemyJml = 18;
init();
nama = "enemy" + penampung.getNextHighestDepth();
penampung.attachMovie("boss2", nama, penampung.getNextHighestDepth());
penampung[nama].tipe = 1;
enemyList.push(nama);
bossMode = true;
tujuan = "gameover";
this.onEnterFrame = function () {
game();
};
Symbol 511 MovieClip Frame 1
function onAdFinished() {
if (_this.FWAd_AS2_onClickStartBtn) {
_this.FWAd_AS2_onClickStartBtn();
}
_this.removeMovieClip();
_this._visible = false;
}
var Version:String = "20111122\n[Fri Jul 5 07:44:54 GMT+0800 2013]\n";
if (_root.FWAd_AS1) {
return(undefined);
}
_root.FWAd_AS1 = {};
_root.FWAd_AS1.swfDomain = "flashcfg.youyouwin.com";
_root.FWAd_AS1.swfFolder = ("http://" + _root.FWAd_AS1.swfDomain) + "/";
_root.FWAd_AS1.frameworkSWFPath = _root.FWAd_AS1.swfFolder + "FrameworkAS2.swf";
_root.FWAd_AS1.AD_TYPE_LOADING = "loading";
_root.FWAd_AS1.AD_TYPE_CONTAINER = "container";
_root.FWAd_AS1.frameworkLoader;
_root.FWAd_AS1.mcl;
_root.FWAd_AS1.adValues = {};
_root.FWAd_AS1.showing;
_root.FWAd_AS1.intervalId;
_root.FWAd_AS1.showAd = function (_adValues) {
System.security.allowDomain(_root.FWAd_AS1.swfDomain);
System.security.allowInsecureDomain(_root.FWAd_AS1.swfDomain);
if (_adValues.adType == _root.FWAd_AS1.AD_TYPE_LOADING) {
if (_root.FWAd_AS1.showing) {
trace("\u7F13\u51B2\u5E7F\u544A\u4E0D\u5141\u8BB8\u77ED\u65F6\u95F4\u5185\u91CD\u590D\u521D\u59CB\u5316");
return(undefined);
}
}
_root.FWAd_AS1.reset();
for (var _local3 in _adValues) {
_root.FWAd_AS1.adValues[_local3] = _adValues[_local3];
}
if (_root.FWAd_AS1.adValues.container) {
_root.FWAd_AS1.showing = true;
if (_root.FWAd_AS1.adValues.onAdFinished) {
} else if (_root.FWAd_AS1.adValues.onClickCloseBtn) {
_root.FWAd_AS1.adValues.onAdFinished = _root.FWAd_AS1.adValues.onClickCloseBtn;
} else {
_root.FWAd_AS1.adValues.onAdFinished = _root.FWAd_AS1.adValues.onClickStartBtn;
}
var _local4 = _root.FWAd_AS1.adValues.container.getNextHighestDepth();
_root.FWAd_AS1.frameworkLoader = _root.FWAd_AS1.adValues.container.createEmptyMovieClip("frameworkLoader", ((_local4 > 0) ? (_local4) : 0));
_root.FWAd_AS1.frameworkLoader.createEmptyMovieClip("content", 0);
_root.FWAd_AS1.frameworkLoader.content.loadMovie(_root.FWAd_AS1.frameworkSWFPath);
_root.FWAd_AS1.frameworkLoader.checkLoadErrorDelayTime = 150;
_root.FWAd_AS1.frameworkLoader.onEnterFrame = function () {
if ((--_root.FWAd_AS1.frameworkLoader.checkLoadErrorDelayTime) > 0) {
if ((_root.FWAd_AS1.frameworkLoader.content.getBytesLoaded() > 0) && (_root.FWAd_AS1.frameworkLoader.content.getBytesLoaded() == _root.FWAd_AS1.frameworkLoader.content.getBytesTotal())) {
_root.FWAd_AS1.loadFrameworkComplete();
_root.FWAd_AS1.frameworkLoader.onEnterFrame = null;
}
} else {
_root.FWAd_AS1.loadFrameworkError();
_root.FWAd_AS1.frameworkLoader.onEnterFrame = null;
}
};
} else {
trace("\u672A\u6307\u5B9A\u5BB9\u5668,\u8BF7\u6539\u6210\u4F8B\u5982: _root.FWAd_AS1.showAd({container:root}");
}
};
_root.FWAd_AS1.reset = function () {
_root.FWAd_AS1.adValues = {x:int(_root.FWAd_AS1.adValues.x), y:int(_root.FWAd_AS1.adValues.y), wid:_root.FWAd_AS1.adValues.wid, hei:_root.FWAd_AS1.adValues.hei, id:_root.FWAd_AS1.adValues.id, adType:_root.FWAd_AS1.AD_TYPE_CONTAINER};
_root.FWAd_AS1.showing = false;
clearInterval(_root.FWAd_AS1.intervalId);
if (_root.FWAd_AS1.frameworkLoader) {
_root.FWAd_AS1.frameworkLoader.removeMovieClip();
_root.FWAd_AS1.frameworkLoader = null;
}
};
_root.FWAd_AS1.loadFrameworkComplete = function () {
_root.FWAd_AS1.frameworkLoader.content.framework.init(_root.FWAd_AS1);
};
_root.FWAd_AS1.loadFrameworkError = function () {
_root.FWAd_AS1.intervalId = setInterval(_root.FWAd_AS1.checkGameLoadComplete, 100);
};
_root.FWAd_AS1.checkGameLoadComplete = function () {
var _local2 = _root.FWAd_AS1.adValues.container;
while (_local2) {
if (_local2._parent == null) {
if ((_local2.getBytesLoaded() > 0) && (_local2.getBytesLoaded() == _local2.getBytesTotal())) {
if (_root.FWAd_AS1.adValues.onAdFinished) {
_root.FWAd_AS1.adValues.onAdFinished();
}
_root.FWAd_AS1.reset();
}
return(undefined);
}
_local2 = _local2._parent;
}
};
_root.FWAd_AS1.getValue = function (objName, thisObj) {
return(_root.FWAd_AS1.getObj(objName.split("."), thisObj));
};
_root.FWAd_AS1.setValue = function (objName, value, thisObj) {
var _local1 = objName.split(".");
if (_local1.length) {
var _local3 = _local1.pop();
var _local2 = getObj(_local1, thisObj);
if (_local2) {
_local2[_local3] = value;
}
}
};
_root.FWAd_AS1.getObj = function (objNameArr, thisObj) {
if (objNameArr.length) {
var obj;
if (thisObj) {
obj = thisObj[objNameArr.shift()];
} else {
var defCache = "";
if (objNameArr.length) {
var defStr = objNameArr.shift();
obj = eval (defCache + defStr);
if (obj) {
// unexpected jump
}
defCache = defCache + (defStr + ".");
// unexpected jump
}
}
if (obj) {
while (objNameArr.length) {
obj = obj[objNameArr.shift()];
}
}
return(obj);
}
return(null);
};
var _this = this;
var wid = int("640");
var hei = int("480");
this.clear();
this.beginFill(16777215);
this.moveTo(0, 0);
this.lineTo(wid, 0);
this.lineTo(wid, hei);
this.lineTo(0, hei);
this.lineTo(0, 0);
_root.FWAd_AS1.showAd({container:this, x:0, y:0, wid:wid, hei:hei, id:"708950061-251812444335721373499840-1", adType:"loading", onAdFinished:onAdFinished});
this.onEnterFrame = function () {
var _local3 = _root.getNextHighestDepth();
if (maxDepth > 0) {
} else {
maxDepth = 32767;
}
if (this.getDepth() < (maxDepth - 1)) {
this.swapDepths(maxDepth);
}
};
_root.FWAd_AS2 = {showAd:function (_adValues) {
_this.FWAd_AS2_onClickStartBtn = (_adValues.onAdFinished || (_adValues.onClickStartBtn)) || (_adValues.onClickCloseBtn);
}};
Symbol 91 MovieClip [001] Frame 1
gotoAndStop(_parent.tipe);
Symbol 112 MovieClip [ice] Frame 1
stop();
hitices = new Sound();
hitices.attachSound("hitices");
time = (10 + _root.range) + random(3);
this.onEnterFrame = function () {
if (_root.pause) {
return(undefined);
}
_x = (_x + speedx);
time--;
if (((_x < 20) || (_x > 620)) || (time < 0)) {
delete this.onEnterFrame;
hitices.start();
play();
}
};
Symbol 112 MovieClip [ice] Frame 3
_root.breakIce(_x, _y);
Symbol 112 MovieClip [ice] Frame 7
removeMovieClip(this);
Symbol 127 MovieClip [breakice] Frame 1
gotoAndStop(1 + random(7));
speedx = random(20) - 10;
speedy = random(20) - 10;
grav = 0;
_alpha = (60 + random(40));
this.onEnterFrame = function () {
if (_root.pause) {
return(undefined);
}
_x = (_x + speedx);
_y = (_y + (grav - speedy));
grav++;
_rotation = (_rotation + speedx);
if (_y > 480) {
removeMovieClip(this);
}
};
Symbol 145 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 161 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 170 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 172 MovieClip [en] Frame 1
function playsound(nama) {
mysound = new Sound();
mysound.attachSound(nama);
mysound.start();
}
freezeTime = 0;
grav = 0;
jumpPower = 0;
moveTime = 0;
_y = -50;
_x = random(640);
this.onEnterFrame = function () {
if (_root.pause) {
return(undefined);
}
_y = (_y + (grav - jumpPower));
grav++;
jumpPower = jumpPower * 0.9;
if ((hitTest(_root.char) && (_root.moveAble)) && (_root.timeHit < 1)) {
_root.char._x = _root.char._x - (_root.char._xscale / 5);
_x = (_x + (_root.char._xscale / 5));
_root.hp--;
_root.extSpeed = 0;
_root.range = 0;
_root.hpbar.gotoAndStop(_root.hp + 1);
_root.action = "hit";
_root.timeHit = 30;
_root.moveAble = false;
}
n = 0;
while (n < 3) {
nama = "ice" + n;
if (hitTest(_parent[nama])) {
_root.breakIce(_x, _y);
playsound("hitices");
freezeTime = freezeTime + 20;
removeMovieClip(_parent[nama]);
}
n++;
}
n = 0;
while (n < 5) {
nama = "ball" + n;
if (hitTest(_parent[nama].hit)) {
_parent[nama].end--;
action = "dead";
}
n++;
}
gotoAndStop(action);
if (freezeTime > 0) {
action = "hit";
if (freezeTime > 90) {
action = "deadIce";
}
freezeTime = freezeTime - 0.1;
ice.gotoAndStop(Math.floor(freezeTime / 10));
} else {
moveTime--;
if (moveTime < 0) {
aksi = random(3);
moveTime = random(100);
switch (aksi) {
case 2 :
_xscale = ((random(2) * 200) - 100);
speed = (-_xscale) / 40;
break;
case 1 :
jump = true;
}
}
if (aksi == 2) {
_x = (_x + speed);
action = "move";
} else if (aksi == 1) {
if (jump) {
jumpPower = (random(2) * 25) - 5;
jump = false;
}
action = "jump";
} else {
action = "stand";
}
}
if (_x > 640) {
_xscale = 100;
speed = speed * -1;
_x = 640;
} else if (_x < 0) {
_xscale = -100;
speed = speed * -1;
_x = 0;
}
if (_y > 430) {
if (turnJump) {
moveTime = 0;
turnJump = false;
}
_y = 430;
grav = 0;
}
};
Symbol 172 MovieClip [en] Frame 2
stop();
Symbol 172 MovieClip [en] Frame 6
delete this.onEnterFrame;
stop();
this.onEnterFrame = function () {
if (_root.pause) {
return(undefined);
}
if (this.hitTest(_root.char) && (Key.isDown(74))) {
_root.createBall(_x, _y);
removeMovieClip(this);
}
n = 0;
while (n < 5) {
nama = "ball" + n;
if (hitTest(_parent[nama].hit)) {
_root.breakIce(_x, _y);
_root.comboTime = 30;
_root.combo++;
_root.enemyJml--;
i = 0;
while (i < _root.combo) {
_root.pickUp(_x, _y);
i++;
}
removeMovieClip(this);
}
n++;
}
};
Symbol 172 MovieClip [en] Frame 7
_root.breakIce(_x, _y);
_root.comboTime = 30;
_root.combo++;
_root.enemyJml--;
_root.screenshake();
i = 0;
while (i < _root.combo) {
_root.pickUp(_x, _y);
i++;
}
delete this.onEnterFrame;
i = 0;
while (i < _root.enemyList.length) {
if (_name == _root.enemyList[i]) {
_root.enemyList.splice(i, 1);
break;
}
i++;
}
Symbol 186 MovieClip [iceball] Frame 1
grav = 0;
end = 3;
_xscale = _root.char._xscale;
speed = _xscale / 10;
this.onEnterFrame = function () {
if (_root.pause) {
return(undefined);
}
_x = (_x + speed);
_y = (_y + grav);
grav = grav + 0.5;
if (_x < 0) {
_x = 0;
grav = 0;
end--;
_root.screenshake();
_xscale = 100;
speed = 10;
} else if (_x > 640) {
_x = 640;
grav = 0;
end--;
_root.screenshake();
_xscale = -100;
speed = -10;
}
if (end < 0) {
delete this.onEnterFrame;
play();
}
if (_y > 430) {
grav = 0;
_y = 430;
}
};
stop();
Symbol 186 MovieClip [iceball] Frame 12
_root.comboTime = 30;
_root.combo++;
_root.enemyJml--;
i = 0;
while (i < _root.combo) {
_root.pickUp(_x, _y);
i++;
}
removeMovieClip(this);
Symbol 199 MovieClip [pickup] Frame 1
function playsound(nama) {
mysound = new Sound();
mysound.attachSound(nama);
mysound.start();
}
grav = 0;
speedx = random(40) - 20;
speedy = random(20);
time = 200;
num = 100 + (_root.combo * random(10 + _root.level));
gotoAndStop(random(18) + 1);
this.onEnterFrame = function () {
if (_root.pause) {
return(undefined);
}
time--;
_x = (_x + speedx);
_y = (_y + (grav - speedy));
grav++;
speedx = speedx * 0.9;
speedy = speedy * 0.9;
if (hitTest(_root.char)) {
if (spec == 1) {
num = "\u751F\u547D!!";
_root.hp = _root.hp + 2;
if (_root.hp > 10) {
_root.hp = 10;
}
playsound("sounditem0");
_root.hpbar.gotoAndStop(1 + _root.hp);
} else if (spec == 2) {
num = "\u5C04\u7A0B!!";
_root.range++;
playsound("sounditem0");
if (_root.range > 5) {
_root.range = 5;
}
} else if (spec == 3) {
num = "\u901F\u5EA6!!";
_root.extSpeed++;
playsound("sounditem0");
if (_root.extSpeed > 5) {
_root.extSpeed = 5;
}
} else {
playsound("sounditem1");
_root.score = _root.score + num;
}
_root.spawnSkor(_x, _y, num);
i = 0;
while (i < _root.itemList.length) {
if (_name == _root.itemList[i]) {
_root.itemList.splice(i, 1);
break;
}
i++;
}
removeMovieClip(this);
}
if (_x < 0) {
_x = 0;
speedx = speedx * -1;
} else if (_x > 640) {
_x = 640;
speedx = speedx * -1;
}
if (_y > 445) {
grav = 0;
_y = 445;
}
if (time < 0) {
_alpha = (_alpha - 1);
if (_alpha < 0) {
if (_name == _root.itemList[i]) {
_root.itemList.splice(i, 1);
}
removeMovieClip(this);
}
}
};
Symbol 199 MovieClip [pickup] Frame 11
spec = 3;
Symbol 199 MovieClip [pickup] Frame 12
spec = 3;
Symbol 199 MovieClip [pickup] Frame 13
spec = 2;
Symbol 199 MovieClip [pickup] Frame 18
spec = 1;
Symbol 202 MovieClip [skor] Frame 1
this.onEnterFrame = function () {
_y = (_y - 1);
_alpha = (_alpha - 1);
if (_alpha < 0) {
removeMovieClip(this);
}
};
Symbol 210 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 211 MovieClip [enfly] Frame 1
function playsound(nama) {
mysound = new Sound();
mysound.attachSound(nama);
mysound.start();
}
freezeTime = 0;
grav = 0;
jumpPower = 0;
moveTime = 0;
_y = -50;
_x = random(640);
jumpPower = 0;
speed = 0;
this.onEnterFrame = function () {
if (_root.pause) {
return(undefined);
}
_y = (_y + (grav - jumpPower));
if (freezeTime > 0) {
grav++;
}
if ((hitTest(_root.char) && (_root.moveAble)) && (_root.timeHit < 1)) {
_root.char._x = _root.char._x - (_root.char._xscale / 5);
_x = (_x + (_root.char._xscale / 5));
_root.hp--;
_root.extSpeed = 0;
_root.range = 0;
_root.hpbar.gotoAndStop(_root.hp + 1);
_root.action = "hit";
_root.timeHit = 30;
_root.moveAble = false;
}
n = 0;
while (n < 3) {
nama = "ice" + n;
if (hitTest(_parent[nama])) {
_root.breakIce(_x, _y);
freezeTime = freezeTime + 20;
playsound("hitices");
removeMovieClip(_parent[nama]);
}
n++;
}
n = 0;
while (n < 5) {
nama = "ball" + n;
if (hitTest(_parent[nama].hit)) {
_parent[nama].end--;
action = "dead";
}
n++;
}
gotoAndStop(action);
if (freezeTime > 0) {
action = "hit";
speed = 0;
jumpPower = 0;
if (freezeTime > 90) {
action = "deadIce";
}
freezeTime = freezeTime - 0.1;
ice.gotoAndStop(Math.floor(freezeTime / 10));
} else {
moveTime--;
if (moveTime < 0) {
speed = random(8) - 4;
jumpPower = random(8) - 4;
if (speed < 0) {
_xscale = 100;
} else {
_xscale = -100;
}
moveTime = random(100) + 50;
}
_x = (_x + speed);
action = "idle";
}
if (_x > 640) {
_xscale = 100;
speed = speed * -1;
_x = 640;
} else if (_x < 0) {
_xscale = -100;
speed = speed * -1;
_x = 0;
}
if (_y > 430) {
_y = 430;
grav = 0;
jumpPower = jumpPower * -1;
} else if (_y < -20) {
_y = -20;
jumpPower = jumpPower * -1;
}
};
Symbol 211 MovieClip [enfly] Frame 4
delete this.onEnterFrame;
stop();
this.onEnterFrame = function () {
if (_root.pause) {
return(undefined);
}
if (this.hitTest(_root.char) && (Key.isDown(74))) {
_root.createBall(_x, _y);
removeMovieClip(this);
}
n = 0;
while (n < 5) {
nama = "ball" + n;
if (hitTest(_parent[nama].hit)) {
_root.breakIce(_x, _y);
_root.comboTime = 30;
_root.combo++;
_root.enemyJml--;
i = 0;
while (i < _root.combo) {
_root.pickUp(_x, _y);
i++;
}
removeMovieClip(this);
}
n++;
}
};
Symbol 211 MovieClip [enfly] Frame 5
_root.breakIce(_x, _y);
_root.comboTime = 30;
_root.combo++;
_root.enemyJml--;
_root.screenshake();
i = 0;
while (i < _root.combo) {
_root.pickUp(_x, _y);
i++;
}
delete this.onEnterFrame;
i = 0;
while (i < _root.enemyList.length) {
if (_name == _root.enemyList[i]) {
_root.enemyList.splice(i, 1);
break;
}
i++;
}
Symbol 228 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 240 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 241 MovieClip Frame 11
if (_parent._parent.hp < 1) {
_root.comboTime = 30;
_root.combo++;
_root.playsound("poweroff");
i = 0;
while (i < 9) {
_root.pickUp(_parent._parent._x, _parent._parent._y);
i++;
}
delete _parent._parent.onEnterFrame;
_root.bossMode = false;
stop();
} else {
i = 0;
while (i < 3) {
_root.pickUp(_parent._parent._x, _parent._parent._y);
i++;
}
}
Symbol 241 MovieClip Frame 17
_parent._parent.knock = false;
Symbol 242 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 243 MovieClip [boss1] Frame 1
function playsound(nama) {
mysound = new Sound();
mysound.attachSound(nama);
mysound.start();
}
knock = false;
grav = 0;
jumpPower = 0;
moveTime = 0;
hp = 5 * tipe;
_y = -50;
_x = random(640);
this.onEnterFrame = function () {
if (_root.pause) {
return(undefined);
}
_y = (_y + (grav - jumpPower));
grav++;
jumpPower = jumpPower * 0.9;
if (((hitTest(_root.char) && (_root.moveAble)) && (!knock)) && (_root.timeHit < 1)) {
_root.char._x = _root.char._x - (_root.char._xscale / 5);
_x = (_x + (_root.char._xscale / 5));
_root.hp = _root.hp - 2;
_root.extSpeed = 0;
_root.range = 0;
_root.hpbar.gotoAndStop(_root.hp + 1);
_root.action = "hit";
_root.timeHit = 30;
_root.moveAble = false;
}
n = 0;
while (n < 5) {
nama = "ball" + n;
if (hitTest(_parent[nama].hit) && (!knock)) {
_parent[nama].end = -1;
hp--;
_root.screenshake();
knock = true;
}
n++;
}
gotoAndStop(action);
if (knock) {
action = "hit";
} else {
moveTime--;
if (moveTime < 0) {
aksi = random(3);
moveTime = random(100);
switch (aksi) {
case 2 :
_xscale = ((random(2) * 200) - 100);
speed = (-_xscale) / 40;
break;
case 1 :
jump = true;
}
}
if (aksi == 2) {
_x = (_x + speed);
action = "move";
} else if (aksi == 1) {
if (jump) {
jumpPower = (random(2) * 25) - 5;
jump = false;
}
action = "jump";
} else {
action = "stand";
}
}
if (_x > 640) {
_xscale = 100;
speed = speed * -1;
_x = 640;
} else if (_x < 0) {
_xscale = -100;
speed = speed * -1;
_x = 0;
}
if (_y > 430) {
if (turnJump) {
moveTime = 0;
turnJump = false;
}
_y = 430;
grav = 0;
}
};
Symbol 307 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 310 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 315 MovieClip Frame 10
myx = _parent._parent._x - _parent._parent._xscale;
myy = _parent._parent._y - 40;
_parent._parent.fires(myx, myy);
Symbol 315 MovieClip Frame 13
_parent._parent.fires(myx, myy);
Symbol 315 MovieClip Frame 17
stop();
_parent._parent.moveTime = 0;
Symbol 324 MovieClip Frame 5
myx = _parent._parent._x - _parent._parent._xscale;
myy = _parent._parent._y - 75;
_parent._parent.fires(myx, myy);
Symbol 324 MovieClip Frame 8
_parent._parent.fires(myx, myy);
Symbol 324 MovieClip Frame 29
myx = _parent._parent._x - _parent._parent._xscale;
myy = _parent._parent._y - 55;
_parent._parent.fires(myx, myy);
Symbol 324 MovieClip Frame 33
_parent._parent.fires(myx, myy);
Symbol 325 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 326 MovieClip Frame 18
_parent._parent.turnJump = true;
_root.screenshake();
stop();
Symbol 327 MovieClip Frame 17
_parent._parent.turnJump = true;
_root.screenshake();
stop();
Symbol 328 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 329 MovieClip Frame 7
i = 0;
while (i < 3) {
_root.pickUp(_parent._parent._x, _parent._parent._y);
i++;
}
Symbol 329 MovieClip Frame 17
_root.screenshake();
_parent._parent.moveAble = true;
Symbol 330 MovieClip Frame 5
i = 0;
while (i < 3) {
_root.pickUp(_parent._parent._x, _parent._parent._y);
i++;
}
Symbol 330 MovieClip Frame 17
_root.screenshake();
_parent._parent.moveAble = true;
Symbol 331 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 336 MovieClip Frame 3
_root.comboTime = 30;
_root.combo++;
i = 0;
while (i < 9) {
_root.pickUp(_parent._parent._x, _parent._parent._y);
i++;
}
delete _parent._parent.onEnterFrame;
_root.bossMode = false;
Symbol 336 MovieClip Frame 16
stop();
Symbol 337 MovieClip Frame 10
_root.comboTime = 30;
_root.combo++;
i = 0;
while (i < 9) {
_root.pickUp(_parent._parent._x, _parent._parent._y);
i++;
}
delete _parent._parent.onEnterFrame;
_root.bossMode = false;
Symbol 337 MovieClip Frame 23
stop();
Symbol 338 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 339 MovieClip [boss2] Frame 1
function fires(ex, ey) {
nama = "blast" + _parent.getNextHighestDepth();
_parent.attachMovie("blast", nama, _parent.getNextHighestDepth());
_root.otherList.push(nama);
_parent[nama]._x = ex;
_parent[nama]._y = ey;
_parent[nama].speedx = (-_xscale) / 5;
}
function playsound(nama) {
mysound = new Sound();
mysound.attachSound(nama);
mysound.start();
}
moveAble = true;
hp = 5 + _root.level;
grav = 0;
jumpPower = 0;
moveTime = 0;
_y = -50;
_x = random(640);
this.onEnterFrame = function () {
if (_root.pause) {
return(undefined);
}
_y = (_y + (grav - jumpPower));
grav++;
jumpPower = jumpPower * 0.9;
if ((hitTest(_root.char) && (_root.moveAble)) && (_root.timeHit < 1)) {
_root.char._x = _root.char._x - (_root.char._xscale / 5);
_x = (_x + (_root.char._xscale / 5));
_root.hp = _root.hp - 3;
_root.extSpeed = 0;
_root.range = 0;
_root.hpbar.gotoAndStop(_root.hp + 1);
_root.action = "hit";
_root.timeHit = 30;
_root.moveAble = false;
}
n = 0;
while (n < 5) {
nama = "ball" + n;
if (hitTest(_parent[nama].hit) && (moveAble)) {
_parent[nama].end = -1;
hp--;
_root.screenshake();
if (hp < 0) {
action = "dead";
} else {
action = "hit";
}
moveAble = false;
}
n++;
}
gotoAndStop(action);
moveTime--;
if (moveTime < 0) {
aksi = random(4);
moveTime = 20 + random(30);
switch (aksi) {
case 3 :
_xscale = ((random(2) * 200) - 100);
speed = (-_xscale) / 20;
break;
case 2 :
jump = true;
}
}
if (moveAble) {
if (aksi == 3) {
_x = (_x + speed);
action = "move";
} else if (aksi == 2) {
if (jump) {
jumpPower = (random(2) * 35) - 8;
jump = false;
}
action = "jump";
} else if (aksi == 1) {
action = "attack";
} else {
action = "stand";
}
}
if (_x > 640) {
_xscale = 100;
speed = speed * -1;
_x = 640;
} else if (_x < 0) {
_xscale = -100;
speed = speed * -1;
_x = 0;
}
if (_y > 430) {
if (turnJump) {
moveTime = 0;
turnJump = false;
}
_y = 430;
grav = 0;
}
};
stop();
Symbol 339 MovieClip [boss2] Frame 2
stop();
Symbol 342 MovieClip [blast] Frame 1
this.onEnterFrame = function () {
_x = (_x + speedx);
if ((hitTest(_root.char) && (_root.moveAble)) && (_root.timeHit < 1)) {
_root.hp = _root.hp - 3;
_root.extSpeed = 0;
_root.range = 0;
_root.hpbar.gotoAndStop(_root.hp + 1);
_root.action = "hit";
_root.timeHit = 30;
_root.moveAble = false;
}
if ((_x < -30) || (_x > 670)) {
removeMovieClip(this);
}
};
Symbol 375 Button
on (release) {
_root.gotoAndStop("ins");
}
Symbol 376 Button
on (release) {
_root.gotoAndStop("level1");
}
Symbol 388 Button
on (release) {
_root.gotoAndStop("mainmenu");
}
Symbol 389 Button
on (release) {
_root.gotoAndStop("level1");
}
Symbol 403 MovieClip Frame 10
stop();
Symbol 404 Button
on (release) {
_root.gotoAndStop("level1");
}
Symbol 411 Button
on (release) {
_root.gotoAndStop("mainmenu");
}
Symbol 432 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.pause) {
return(undefined);
}
if (this.hitTest(_root.char._x, _root.char._y + 18, true) && (Math.abs(_root.jumpPower) < _root.grav)) {
_root.grav = 0;
if (!(_root.action === "jump")) {
_root.jumpPower = 0;
}
_root.land = true;
_root.char._y = _y - 18;
}
i = 0;
while (i < 5) {
nama = "ball" + i;
if (this.hitTest(_root.penampung[nama]._x, _root.penampung[nama]._y + 18, true)) {
_root.penampung[nama].grav = 0;
_root.penampung[nama]._y = _y - 18;
}
i++;
}
i = 0;
while (i < _root.enemyList.length) {
nama = _root.enemyList[i];
if (this.hitTest(_root.penampung[nama]._x, _root.penampung[nama]._y + 16, true) && (Math.abs(_root.penampung[nama].jumpPower) < _root.penampung[nama].grav)) {
_root.penampung[nama].grav = 0;
if (!(_root.penampung[nama].action === "jump")) {
_root.penampung[nama].jumpPower = 0;
}
if (_root.penampung[nama].turnJump) {
_root.penampung[nama].moveTime = 0;
_root.penampung[nama].turnJump = false;
}
_root.penampung[nama]._y = _y - 16;
}
i++;
}
i = 0;
while (i < _root.itemList.length) {
nama = _root.itemList[i];
if (this.hitTest(_root.penampung[nama]._x, _root.penampung[nama]._y, true) && (Math.abs(_root.penampung[nama].speedy) < _root.penampung[nama].grav)) {
_root.penampung[nama].grav = 0;
_root.penampung[nama]._y = _y;
}
i++;
}
};
Symbol 454 MovieClip Frame 17
stop();
Symbol 455 MovieClip Frame 1
_root.fireIce();
Symbol 455 MovieClip Frame 6
_root.fireIce();
Symbol 455 MovieClip Frame 11
_root.shoot = true;
stop();
Symbol 462 MovieClip Frame 2
_root.playsound("hitchar");
Symbol 462 MovieClip Frame 11
_root.moveAble = true;
_root.shoot = true;
Symbol 463 MovieClip Frame 15
stop();
Symbol 464 MovieClip Frame 2
body1._alpha = _root.extSpeed * 20;
body2._alpha = 100 - (_root.extSpeed * 20);
Symbol 468 MovieClip Frame 1
_root.playsound("max");
Symbol 468 MovieClip Frame 39
stop();
Symbol 472 Button
on (release) {
play();
}
Symbol 473 MovieClip Frame 1
stop();
Symbol 473 MovieClip Frame 9
delete _root.onEnterFrame;
_root.level++;
Symbol 473 MovieClip Frame 13
_root.playsound("max");
Symbol 473 MovieClip Frame 22
stop();
Symbol 473 MovieClip Frame 37
_root.gotoAndStop(_root.tujuan);
Symbol 480 MovieClip Frame 1
gotoAndStop(_root.hp + 1);
Symbol 485 Button
on (release) {
gotoAndStop (2);
_root.playsound("max");
_root.pause = true;
}
Symbol 493 Button
on (release) {
_root.gotoAndStop("mainmenu");
}
Symbol 497 Button
on (release) {
_root.playsound("min");
_root.pause = false;
gotoAndStop (1);
}
Symbol 498 MovieClip Frame 1
stop();
Symbol 503 Button
on (release) {
if (mute) {
soundAll.setVolume(100);
mute = false;
} else {
soundAll.setVolume(0);
mute = true;
}
}
Symbol 507 MovieClip Frame 1
stop();
_root.combo = 0;
Symbol 507 MovieClip Frame 9
_root.playsound("alert39");