Combined Code
movieClip 11 {
}
movieClip 14 ice {
frame 1 {
onEnterFrame = function () {
_x = _x - 18;
if (_parent._parent.plr.motion != 'Deth') {
if (_parent._parent.plr.hitTest(this._x, this._y, false)) {
if (_parent._parent.MyLife._currentframe > 1) {
_parent._parent.MyLife.prevFrame();
++_parent._parent.life;
}
_parent._parent.plr.p.gotoAndPlay('Unrivaled');
this.gotoAndPlay(2);
onEnterFrame = null;
}
}
if (_x < -100) {
this.removeMovieClip();
}
};
stop();
}
frame 16 {
this.removeMovieClip();
}
}
movieClip 16 {
}
// unknown tag 88 length 63
movieClip 19 watch {
frame 1 {
onEnterFrame = function () {
_x = _x - 10;
if (_parent._parent.plr.motion != 'Deth') {
if (_parent._parent.plr.hitTest(this._x, this._y, false)) {
var v3 = 3;
while (v3 >= _parent._parent.lv) {
_parent._parent['mainch' + v3] += 120;
--v3;
}
this.gotoAndPlay(2);
onEnterFrame = null;
}
}
if (_x < -100) {
this.removeMovieClip();
}
};
stop();
}
frame 16 {
this.removeMovieClip();
}
}
// unknown tag 88 length 69
movieClip 39 combo {
frame 1 {
onEnterFrame = function () {
_xscale = _xscale + (200 - _xscale) / 2;
_yscale = _yscale + (200 - _yscale) / 2;
_x = _x - 5;
_alpha = _alpha - 4;
if (_alpha <= 0) {
this.removeMovieClip();
}
};
gotoAndStop(combo + 1);
}
frame 2 {
_parent._parent.score += 20;
_root.getscore(_parent._parent.scoretabe);
}
frame 3 {
_parent._parent.score += 500;
_root.getscore(_parent._parent.scoretabe);
}
frame 4 {
_parent._parent.score += 800;
_root.getscore(_parent._parent.scoretabe);
}
frame 5 {
_parent._parent.score += 1000;
_root.getscore(_parent._parent.scoretabe);
}
frame 6 {
_parent._parent.score += 1100;
_root.getscore(_parent._parent.scoretabe);
}
frame 7 {
_parent._parent.score += 1300;
_root.getscore(_parent._parent.scoretabe);
}
frame 8 {
_parent._parent.score += 1400;
_root.getscore(_parent._parent.scoretabe);
}
frame 9 {
_parent._parent.score += 1500;
_root.getscore(_parent._parent.scoretabe);
}
frame 10 {
_parent._parent.score += 2000;
_root.getscore(_parent._parent.scoretabe);
}
}
movieClip 41 {
}
movieClip 45 {
}
movieClip 46 enemy2 {
frame 1 {
cc = 0;
onEnterFrame = function () {
_x = _x - 15;
_y = _y + Math.sin(cc) * 2;
if (_x < -100) {
this.removeMovieClip();
}
if (_parent._parent.plr.motion != 'Deth' & _parent._parent.plr.muteki < 1) {
if (_parent._parent.plr.hitTest(this._x, this._y, false)) {
this.onEnterFrame = null;
if (_parent._parent.plr.motion != 'Unrivaled') {
_parent._parent.Sound2.start();
_parent._parent.plr.p.gotoAndPlay('Deth');
}
gotoAndPlay(2);
}
}
cc += 0.1;
};
stop();
}
frame 10 {
this.removeMovieClip();
}
}
movieClip 49 {
}
movieClip 51 {
}
movieClip 56 {
}
movieClip 57 {
}
movieClip 59 {
}
movieClip 60 {
}
movieClip 62 {
}
movieClip 63 enemy0 {
frame 1 {
cc = 0;
stop();
onEnterFrame = function () {
_x = _x - 20;
_y = _y + Math.sin(cc) * 5;
if (_x < -100) {
this.removeMovieClip();
}
_parent._parent.hitchk(_name);
cc += 0.2;
};
}
frame 11 {
this.removeMovieClip();
}
}
movieClip 69 {
}
movieClip 72 {
}
movieClip 73 {
}
movieClip 78 {
}
movieClip 80 {
}
movieClip 81 {
}
movieClip 82 enemy1 {
frame 1 {
onEnterFrame = function () {
_x = _x - 20;
if (_x < -100) {
this.removeMovieClip();
}
_parent._parent.hitchk(_name);
};
stop();
}
frame 5 {
stop();
}
}
movieClip 85 {
}
movieClip 86 shine {
frame 1 {
onEnterFrame = function () {
_x = _x - 7;
if (_parent._parent.plr.motion != 'Deth') {
if (_parent._parent.plr.hitTest(this._x, this._y, false)) {
_parent._parent.score += 100;
_root.getscore(_parent._parent.scoretabe);
_parent._parent.Sound6.start();
this.gotoAndPlay(2);
onEnterFrame = null;
}
}
if (_x < -120) {
this.removeMovieClip();
}
};
stop();
}
frame 13 {
this.removeMovieClip();
}
}
movieClip 88 {
}
movieClip 89 {
frame 1 {
stop();
}
}
movieClip 90 wave1 {
frame 1 {
onEnterFrame = function () {
_x = _x - 10;
if (_x < -120) {
_parent.eid[id] = -1;
this.removeMovieClip();
}
};
}
frame 13 {
gotoAndPlay(2);
}
}
movieClip 107 {
}
movieClip 109 {
}
movieClip 110 {
}
movieClip 112 {
}
movieClip 114 {
}
movieClip 116 {
}
movieClip 118 {
}
movieClip 120 {
}
movieClip 122 {
}
movieClip 123 {
}
movieClip 125 {
}
movieClip 127 {
}
movieClip 129 {
}
movieClip 131 {
}
movieClip 133 {
}
movieClip 135 {
}
movieClip 137 {
}
movieClip 138 {
}
movieClip 140 {
}
movieClip 142 {
}
movieClip 143 {
}
movieClip 145 {
}
movieClip 146 {
frame 42 {
gotoAndPlay(11);
}
}
button 147 {
on (release) {
getURL('http://www.qiaohule.com/', '_blank');
}
}
movieClip 148 {
}
movieClip 149 {
}
movieClip 152 {
}
movieClip 154 {
}
instance progressBar of movieClip 154 {
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
text = 'Loaded ' + percent + '%';
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
}
frame 2 {
if (_root._framesloaded < _root._totalframes) {
_root.gotoAndPlay(1);
} else {
_root.gotoAndStop(3);
}
}
frame 3 {
function initgame() {
bgmove = true;
lv = 1;
life = 9;
lclick = false;
score = 0;
mainch1 = 360;
mainch2 = 720;
mainch3 = 1080;
}
function getscore(clip) {
arr = [0, 0, 0, 0, 0, 0];
tmp = _root.score;
i = 0;
while (i < arr.length) {
arr[i] = tmp % 10;
clip['n' + i].gotoAndStop(arr[i] + 1);
tmp = (tmp - arr[i]) / 10;
++i;
}
}
var mainch1 = 0;
var mainch2 = 0;
var mainch3 = 0;
var score = 0;
var lv;
var life;
var lclick = false;
initgame();
var bgmove = true;
var Sound1 = new Sound();
var Sound2 = new Sound();
var Sound3 = new Sound();
var Sound4 = new Sound();
var Sound5 = new Sound();
var Sound6 = new Sound();
var Sound7 = new Sound();
var Sound8 = new Sound();
Sound1.attachSound('aio');
Sound2.attachSound('bon');
Sound3.attachSound('into');
Sound4.attachSound('on_water');
Sound5.attachSound('03.wav');
Sound6.attachSound('S_get');
Sound7.attachSound('S_jump');
Sound8.attachSound('S_combo');
btn_rules.onRelease = function () {
_root.gotoAndPlay('rules');
};
btn_playing.onRelease = function () {
_root.gotoAndStop('playing');
};
btn_close.onRelease = function () {
stopAllSounds();
fscommand('quit');
getURL('javascript:window.close();', '');
};
}
movieClip 162 {
}
movieClip 171 {
}
movieClip 175 {
}
movieClip 176 {
}
movieClip 178 {
}
movieClip 180 {
}
// unknown tag 88 length 59
movieClip 187 {
}
movieClip 191 {
}
movieClip 195 {
}
movieClip 198 {
}
movieClip 199 {
}
movieClip 201 {
}
movieClip 203 {
}
movieClip 204 {
}
instance SoundBMG of movieClip 204 {
onClipEvent (load) {
var BGMSound = new Sound();
BGMSound.attachSound('BGM');
BGMSound.onSoundComplete = function () {
BGMSound.start();
};
BGMSound.start();
}
}
movieClip 208 {
}
movieClip 209 {
}
movieClip 216 {
}
movieClip 221 {
}
movieClip 225 {
}
movieClip 231 {
}
movieClip 234 {
}
// unknown tag 88 length 69
// unknown tag 88 length 69
movieClip 249 {
}
movieClip 251 {
}
frame 216 {
stop();
}
frame 219 {
function hitchk(nm) {
if (plr.motion == 'Deth') {
return undefined;
}
var v3 = sys[nm]._name.substring(sys[nm]._name.length - 1, sys[nm]._name.length);
var v2 = false;
if (v3 == '0') {
if (plr.hitTest(sys[nm]._x, sys[nm]._y, false)) {
v2 = true;
}
} else {
if (v3 == '1') {
if (sys[nm].hitTest(plr._x, plr._y - 30, false)) {
v2 = true;
}
}
}
if (v2) {
if (plr.motion == 'Stand' & plr.muteki < 1) {
plr.p.gotoAndPlay('Deth');
} else {
if (plr.jumpcnt > -1) {
Sound8.start();
tmp = sys.getNextHighestDepth();
sys.attachMovie('combo', 'C' + tmp, tmp);
sys['C' + tmp]._x = plr._x;
sys['C' + tmp]._y = plr._y;
++plr.combo;
sys['C' + tmp].combo = plr.combo;
plr.jumpst = true;
plr.jumpcnt = -10;
plr.rot = -360;
sys[nm].gotoAndPlay(2);
}
}
}
}
stop();
}
movieClip 254 {
}
instance of movieClip 254 {
onClipEvent (enterFrame) {
if (_parent.bgmove == false) {
return undefined;
}
if (this._x > -1000) {
--this._x;
} else {
this._x = 1000;
}
}
}
movieClip 257 {
}
instance RoundLine of movieClip 257 {
onClipEvent (load) {
posy = [0, 20, 50, 70];
mainch = -100;
enmmax = 16;
eid = new Array();
i = 0;
while (i < enmmax) {
eid[i] = -1;
++i;
}
}
onClipEvent (enterFrame) {
if (mainch % 35 == 0) {
if (_parent.sys.mainch < _parent.mainch3 & mainch >= 0) {
tmp = Math.random();
if (mainch < _parent.mainch1 | tmp > 0.25) {
i = 0;
while (i < enmmax) {
if (eid[i] == -1) {
this.attachMovie('wave1', 'E' + i, i);
this['E' + i]._x = 820;
this['E' + i]._y = posy[random(4)];
this['E' + i].id = i;
eid[i] = 0;
break;
}
++i;
}
}
}
}
++mainch;
}
}
movieClip 258 {
}
movieClip 259 {
}
movieClip 265 {
}
movieClip 268 {
}
movieClip 271 {
}
movieClip 276 {
}
movieClip 278 {
}
movieClip 280 {
}
movieClip 282 {
}
movieClip 283 {
}
movieClip 285 {
frame 1 {
stop();
}
frame 90 {
_parent.gotoAndPlay('win');
}
}
instance goal of movieClip 285 {
onClipEvent (enterFrame) {
if (this._x <= 360) {
_parent.aa.a.stop();
_parent.bgmove = false;
this.play();
this.onEnterFrame = null;
}
}
}
movieClip 286 {
}
movieClip 288 {
}
movieClip 292 {
}
movieClip 293 {
}
movieClip 301 {
}
movieClip 303 {
}
movieClip 304 {
frame 1 {
stop();
}
}
movieClip 305 {
frame 1 {
_parent.AttackPermission = false;
stop();
_parent.motion = 'Stand';
}
frame 2 {
_parent.motion = 'Unrivaled';
}
frame 61 {
gotoAndStop('Stand');
}
frame 62 {
_parent.motion = 'Attack';
}
frame 73 {
gotoAndStop('Stand');
}
frame 74 {
_parent.mywave._visible = false;
_parent._parent._rotation = 0;
_parent.motion = 'Deth';
_parent._parent.Sound1.start();
}
frame 75 {
stop();
onEnterFrame = function () {
if (_parent._parent.plr._y < 450) {
_parent._parent.plr._y += 20;
} else {
fall.gotoAndStop(2);
play();
onEnterFrame = null;
}
};
}
frame 92 {
_parent._x = -100;
_parent._y = 200;
_parent.jumpst = true;
_parent.jumpcnt = 0;
_parent.rot = 0;
_parent.muteki = 30;
--_parent._parent.life;
_parent._parent.MyLife.nextFrame();
if (_parent._parent.life <= 0) {
_parent._parent.gotoAndPlay('lost');
} else {
gotoAndStop('Stand');
}
stop();
}
}
movieClip 306 {
instance mywave of movieClip 72 {
onClipEvent (load) {
mhit = false;
}
onClipEvent (enterFrame) {
if (_parent.motion == 'Deth') {
return undefined;
}
if (this._visible == false) {
mhit = true;
} else {
if (mhit) {
_parent._parent.Sound4.start();
}
mhit = false;
}
}
}
}
instance plr of movieClip 306 {
onClipEvent (load) {
muteki = 0;
white = 10;
wavehold = -1;
tarx = 200;
_x = -100;
_y = 200;
jumpst = true;
jumpcnt = 0;
rot = 0;
visibleCounter = 0;
}
onClipEvent (enterFrame) {
if (_parent.sys.mainch < 0) {
return undefined;
}
if (_x <= -100) {
_parent.Sound3.start();
}
_x = _x + (tarx - _x) / 5;
if (motion == 'Attack') {
rollefx._visible = true;
} else {
rollefx._visible = false;
}
if (motion == 'Deth') {
combo = 0;
_rotation = 0;
return undefined;
}
disentPT = _parent.RoundLine._y;
i = 0;
while (i < _parent.RoundLine.enmmax) {
if (_parent.RoundLine.eid[i] == 0) {
if (Math.abs(_parent.RoundLine['E' + i]._x - _x) < 90) {
naname = (_parent.RoundLine['E' + i]._x - _x) / (_parent.RoundLine['E' + i]._yscale / 15);
tmp = _parent.RoundLine._y - _parent.RoundLine['E' + i]._height + _parent.RoundLine['E' + i]._y + naname + 20;
if (tmp > _y - white) {
disentPT = tmp;
}
}
}
++i;
}
if (jumpst == true) {
mywave._visible = false;
_y = _y + jumpcnt * 3;
++jumpcnt;
if (rot != 0) {
_rotation = rot;
}
if (rot < 20 & rot > -20) {
rot = 0;
}
if (rot > 0) {
rot -= 20;
}
if (rot < 0) {
rot += 20;
}
if (_y >= disentPT & jumpcnt >= 0) {
_y = disentPT;
jumpst = false;
}
} else {
if (wavehold == -1) {
mywave._visible = false;
if (Math.abs(_y - disentPT) < white) {
_y = disentPT;
mywave._visible = true;
rot = 0;
} else {
if (_y < disentPT) {
jumpst = true;
jumpcnt = 0;
}
}
}
}
if (wavehold > -1) {
mywave._visible = true;
if (_parent.RoundLine['E' + wavehold].hitTest(_x + 30, _y - 10, true)) {
_y = _y - 13;
_rotation = (_y - _parent.RoundLine._y) / 2;
} else {
jumpst = true;
jumpcnt = -7;
wavehold = -1;
rot = 0;
}
}
if (jumpst == false & _rotation < -20 & wavehold == -1) {
_rotation = _rotation + 10;
if (_rotation > 0) {
_rotation = 0;
}
}
if (jumpst == false & _rotation > 40 & wavehold == -1) {
_rotation = _rotation - 10;
if (_rotation < 0) {
_rotation = 0;
}
}
if (rot == 0) {
if (_rotation > 0) {
_rotation = _rotation - 2;
}
if (_rotation < 0) {
_rotation = _rotation + 2;
}
if (Math.abs(_rotation) < 2) {
_rotation = 0;
}
}
if (muteki > 0) {
--muteki;
}
if (jumpst == false) {
++visibleCounter;
combo = 0;
} else {
visibleCounter = 0;
}
if (visibleCounter == 1) {
}
}
onClipEvent (mouseDown) {
if (motion == 'Deth' | _parent.sys.mainch >= _parent.mainch3 | _parent.sys.mainch < -10) {
return undefined;
}
_parent.Sound7.start();
if (jumpst == false & wavehold == -1) {
i = 0;
while (i < _parent.RoundLine.enmmax) {
if (_parent.RoundLine['E' + i].hitTest(_x + 30, _y - 10, true)) {
wavehold = i;
break;
}
++i;
}
if (wavehold == -1) {
jumpst = true;
jumpcnt = -10;
if (rot == 0) {
_rotation = -20;
}
if (_y < _parent.RoundLine._y) {
rot = 360;
}
}
} else {
if (motion == 'Attack') {
} else {
if (motion != 'Unrivaled') {
p.gotoAndPlay('Attack');
}
}
}
if (motion == 'Deth') {
_rotation = 0;
}
}
}
movieClip 308 {
}
instance sys of movieClip 308 {
onClipEvent (load) {
startx = 780;
mainch = -1000;
im = 111;
wm = 222;
var enemy_ary = new Array(1, 2, 0);
var id;
var mod = 0;
}
onClipEvent (enterFrame) {
if (_parent.plr.motion == 'Deth' & _parent.life <= 0) {
mainch = 1;
}
if (mainch == 0 | mainch == _parent.mainch1 | mainch == _parent.mainch2) {
if (mainch >= _parent.mainch1) {
++_parent.lv;
_parent.lvup.mylv.gotoAndStop(_parent.lv);
_parent.lvup.play();
}
id = enemy_ary[_parent.lv - 1];
if (id == 0) {
mod = 40;
} else {
if (id == 1) {
mod = 105;
} else {}
}
}
if (mainch >= 0 & mainch < _parent.mainch3) {
if (mainch % mod == 0) {
tmp = this.getNextHighestDepth();
ename = 'E' + tmp + '_' + id;
this.attachMovie('enemy' + id, ename, tmp);
this[ename]._x = startx;
if (id == 0) {
this[ename]._y = Math.random() * 150 + 50;
} else {
this[ename]._y = 430;
}
}
if (mainch % 45 == 0) {
tmp = this.getNextHighestDepth();
attachMovie('shine', 'S' + tmp, tmp);
this['S' + tmp]._x = startx;
this['S' + tmp]._y = Math.random() * 200 + 150;
}
if (mainch % wm == wm - 1) {
tmp = this.getNextHighestDepth();
attachMovie('watch', 'W' + tmp, tmp);
this['W' + tmp]._x = startx;
this['W' + tmp]._y = Math.random() * 200 + 150;
}
if (mainch % im == im - 1) {
tmp = this.getNextHighestDepth();
attachMovie('ice', 'I' + tmp, tmp);
this['I' + tmp]._x = startx;
this['I' + tmp]._y = Math.random() * 200 + 150;
}
}
if (mainch >= _parent.mainch3) {
if (_parent.goal._x > 360) {
_parent.goal._x -= 10;
} else {
_parent.plr._rotation = 0;
_parent.plr.rot = 0;
_parent.plr._y = _parent.RoundLine._y;
_parent.plr.jumpcnt = 0;
_parent.plr.jumpst = false;
}
}
++mainch;
}
}
movieClip 311 {
}
movieClip 313 {
}
movieClip 316 {
}
movieClip 318 {
}
movieClip 320 {
}
movieClip 321 {
frame 1 {
stop();
}
}
movieClip 322 {
frame 1 {
stop();
}
}
movieClip 326 {
frame 37 {
_parent.lvup.play();
this._x = -100;
_parent.sys.mainch = -35;
stop();
}
}
movieClip 337 {
frame 1 {
stop();
}
}
movieClip 348 {
frame 1 {
stop();
}
}
movieClip 349 {
}
movieClip 350 {
}
instance mytime of movieClip 350 {
onClipEvent (load) {
this.n0.gotoAndStop(1);
this.n1.gotoAndStop(4);
}
onClipEvent (enterFrame) {
mainch = _parent.sys.mainch;
if (mainch > 0) {
sec = int((_parent['mainch' + _parent.lv] - mainch) / 12);
this.n0.gotoAndStop(sec % 10 + 1);
this.n1.gotoAndStop(int(sec / 10) + 1);
}
}
}
movieClip 354 {
}
movieClip 355 {
}
button 357 {
on (release) {
getURL('http://www.qiaohule.com/', '_blank');
}
}
movieClip 358 {
}
frame 220 {
endtable.gotoAndStop(1);
getscore(endtable);
btn_playing.onRelease = function () {
initgame();
_root.gotoAndPlay('playing');
};
btn_close.onRelease = function () {
stopAllSounds();
fscommand('quit');
getURL('javascript:window.close();', '');
};
}
movieClip 362 {
}
movieClip 373 {
}
movieClip 374 {
}
movieClip 378 {
}
movieClip 382 {
}
movieClip 392 {
}
frame 265 {
stop();
}
frame 271 {
endtable.gotoAndStop(2);
getscore(endtable);
btn_playing.onRelease = function () {
initgame();
_root.gotoAndPlay('playing');
};
btn_close.onRelease = function () {
stopAllSounds();
fscommand('quit');
getURL('javascript:window.close();', '');
};
}
movieClip 399 {
}
movieClip 402 {
}
movieClip 403 {
}
frame 324 {
stop();
}