Frame 1
stop();
_root.perss = 0;
onEnterFrame = function () {
_root.perss++;
var _local2 = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_local2 > _root.perss) {
_local2 = _root.perss;
}
preloader.line._width = _local2 * 4;
preloader.infoMC.text = ("" + _local2) + "%";
if (_local2 == 100) {
delete onEnterFrame;
play();
}
};
Frame 2
stageIndex = 1;
com.HelloAS.util.TimeLine.init(this);
SkillSelecter.START_X = 60;
SkillSelecter.START_Y = 6;
SkillSelecter.EACH_BOX_WIDTH = 44;
Game.checkPlayerRepeat = false;
Map.CAMARA_CENTER_X = 350;
Map.CAMARA_CENTER_Y = 170;
SkillSelecter.SHOW_MONEY = "money_shower";
SkillSelecter.AddSkillInList(new Skill("dabianAttack", "dabianAttack", "5", Skills.dabianAttack));
SkillSelecter.AddSkillInList(new Skill("keleAttack", "keleAttack", "15", Skills.keleAttack));
SkillSelecter.AddSkillInList(new Skill("cakeAttack", "cakeAttack", "25", Skills.cakeAttack));
SkillSelecter.AddSkillInList(new Skill("pbAttack", "pbAttack", "35", Skills.pbAttack));
SkillSelecter.AddSkillInList(new Skill("dbAttack", "dbAttack", "40", Skills.dbAttack));
var role1Skills = [];
role1Skills.push(new Skill("boomAttack", "boomAttack", "60", Skills.boomAttack));
role1Skills.push(new Skill("ywAttack", "ywAttack", "80", Skills.ywAttack));
role1Skills.push(new Skill("cs_bsAttack", "cs_bsAttack", "100", Skills.cs_bsAttack));
var role2Skills = [];
role2Skills.push(new Skill("ballAttack", "ballAttack", "60", Skills.ballAttack));
role2Skills.push(new Skill("shotAttack", "shotAttack", "80", Skills.shotAttack));
role2Skills.push(new Skill("ball_bsAttack", "ball_bsAttack", "100", Skills.ball_bsAttack));
var role4Skills = [];
role4Skills.push(new Skill("pjAttack", "pjAttack", "60", Skills.pjAttack));
role4Skills.push(new Skill("xjgAttack", "xjgAttack", "80", Skills.xjgAttack));
role4Skills.push(new Skill("gf_bsAttack", "gf_bsAttack", "100", Skills.gf_bsAttack));
var role3Skills = [];
role3Skills.push(new Skill("cdAttack", "cdAttack", "60", Skills.cdAttack));
role3Skills.push(new Skill("podAttack", "podAttack", "80", Skills.podAttack));
role3Skills.push(new Skill("hip_bsAttack", "hip_bsAttack", "100", Skills.hip_bsAttack));
PlayerSystem.MEN_HEIGHT = 60;
PlayerSystem.MEN_WIDTH = 28;
StageData.camps1 = [{con:300, heros:[{x:100, y:100, flag:"role1"}, {x:150, y:100, flag:"role1"}], adaptor:"default2", weapons:{dbAttack:200, dabianAttack:300, cakeAttack:50, keleAttack:10, pbAttack:5}}, {con:300, heros:[{x:1800, y:20, flag:"role1"}, {x:1900, y:20, flag:"role1"}], adaptor:"default2", weapons:{dbAttack:200, dabianAttack:300, cakeAttack:50, keleAttack:10, pbAttack:5}}];
StageData.sreenline1 = 100;
StageData.stage1 = [{x:5, y:373}, {x:0, y:219}, {x:7, y:227}, {x:81, y:215}, {x:155, y:267}, {x:163, y:231}, {x:133, y:189}, {x:151, y:163}, {x:223, y:225}, {x:241, y:229}, {x:259, y:187}, {x:279, y:121}, {x:267, y:73}, {x:293, y:55}, {x:357, y:199}, {x:425, y:249}, {x:465, y:181}, {x:539, y:213}, {x:553, y:229}, {x:653, y:223}, {x:689, y:169}, {x:671, y:87}, {x:783, y:69}, {x:767, y:185}, {x:813, y:261}, {x:873, y:251}, {x:919, y:171}, {x:957, y:187}, {x:987, y:181}, {x:987, y:153}, {x:1081, y:137}, {x:1213, y:201}, {x:1253, y:181}, {x:1285, y:195}, {x:1295, y:133}, {x:1341, y:111}, {x:1405, y:175}, {x:1431, y:185}, {x:1459, y:141}, {x:1469, y:77}, {x:1513, y:97}, {x:1535, y:89}, {x:1577, y:203}, {x:1551, y:231}, {x:1581, y:241}, {x:1641, y:203}, {x:1793, y:183}, {x:1819, y:197}, {x:1833, y:161}, {x:1855, y:161}, {x:1911, y:27}, {x:1979, y:65}];
StageData.camps2 = [{con:300, heros:[{x:100, y:100, flag:"role1"}, {x:150, y:100, flag:"role1"}], adaptor:"default2", weapons:{dbAttack:200, dabianAttack:300, cakeAttack:50, keleAttack:10, pbAttack:5}}, {con:300, heros:[{x:1800, y:20, flag:"role1"}, {x:1900, y:20, flag:"role1"}], adaptor:"default2", weapons:{dbAttack:200, dabianAttack:300, cakeAttack:50, keleAttack:10, pbAttack:5}}];
StageData.sreenline2 = 200;
StageData.stage2 = [{x:5, y:373}, {x:0, y:219}, {x:7, y:227}, {x:81, y:215}, {x:155, y:267}, {x:163, y:231}, {x:133, y:189}, {x:151, y:163}, {x:223, y:225}, {x:241, y:229}, {x:259, y:187}, {x:279, y:121}, {x:267, y:73}, {x:293, y:55}, {x:357, y:199}, {x:425, y:249}, {x:465, y:181}, {x:539, y:213}, {x:553, y:229}, {x:653, y:223}, {x:689, y:169}, {x:671, y:87}, {x:783, y:69}, {x:767, y:185}, {x:813, y:261}, {x:873, y:251}, {x:919, y:171}, {x:957, y:187}, {x:987, y:181}, {x:987, y:153}, {x:1081, y:137}, {x:1213, y:201}, {x:1253, y:181}, {x:1285, y:195}, {x:1295, y:133}, {x:1341, y:111}, {x:1405, y:175}, {x:1431, y:185}, {x:1459, y:141}, {x:1469, y:77}, {x:1513, y:97}, {x:1535, y:89}, {x:1577, y:203}, {x:1551, y:231}, {x:1581, y:241}, {x:1641, y:203}, {x:1793, y:183}, {x:1819, y:197}, {x:1833, y:161}, {x:1855, y:161}, {x:1911, y:27}, {x:1979, y:65}];
StageData.camps3 = [{con:300, heros:[{x:100, y:100, flag:"role1"}, {x:150, y:100, flag:"role1"}], adaptor:"default2", weapons:{dbAttack:200, dabianAttack:300, cakeAttack:50, keleAttack:10, pbAttack:5}}, {con:300, heros:[{x:1800, y:20, flag:"role1"}, {x:1900, y:20, flag:"role1"}], adaptor:"default2", weapons:{dbAttack:200, dabianAttack:300, cakeAttack:50, keleAttack:10, pbAttack:5}}];
StageData.sreenline3 = 200;
StageData.stage3 = [{x:0, y:206}, {x:45, y:206}, {x:157, y:256}, {x:265, y:226}, {x:251, y:188}, {x:233, y:124}, {x:443, y:162}, {x:495, y:218}, {x:537, y:188}, {x:645, y:196}, {x:667, y:230}, {x:737, y:240}, {x:755, y:202}, {x:811, y:200}, {x:839, y:212}, {x:909, y:208}, {x:919, y:114}, {x:985, y:114}, {x:987, y:34}, {x:1039, y:4}, {x:1083, y:48}, {x:1093, y:120}, {x:1197, y:228}, {x:1203, y:166}, {x:1331, y:140}, {x:1339, y:164}, {x:1395, y:156}, {x:1433, y:168}, {x:1493, y:158}, {x:1507, y:234}, {x:1579, y:248}, {x:1603, y:208}, {x:1577, y:148}, {x:1597, y:126}, {x:1681, y:236}, {x:1795, y:184}, {x:1871, y:226}, {x:1931, y:34}, {x:1959, y:48}, {x:1983, y:184}, {x:1995, y:198}];
StageData.camps4 = [{con:300, heros:[{x:100, y:100, flag:"role1"}, {x:150, y:100, flag:"role1"}], adaptor:"default2", weapons:{dbAttack:200, dabianAttack:300, cakeAttack:50, keleAttack:10, pbAttack:5}}, {con:300, heros:[{x:1800, y:20, flag:"role1"}, {x:1900, y:20, flag:"role1"}], adaptor:"default2", weapons:{dbAttack:200, dabianAttack:300, cakeAttack:50, keleAttack:10, pbAttack:5}}];
StageData.sreenline4 = 200;
StageData.stage4 = [{x:0, y:206}, {x:45, y:206}, {x:157, y:256}, {x:265, y:226}, {x:251, y:188}, {x:233, y:124}, {x:443, y:162}, {x:495, y:218}, {x:537, y:188}, {x:645, y:196}, {x:667, y:230}, {x:737, y:240}, {x:755, y:202}, {x:811, y:200}, {x:839, y:212}, {x:909, y:208}, {x:919, y:114}, {x:985, y:114}, {x:987, y:34}, {x:1039, y:4}, {x:1083, y:48}, {x:1093, y:120}, {x:1197, y:228}, {x:1203, y:166}, {x:1331, y:140}, {x:1339, y:164}, {x:1395, y:156}, {x:1433, y:168}, {x:1493, y:158}, {x:1507, y:234}, {x:1579, y:248}, {x:1603, y:208}, {x:1577, y:148}, {x:1597, y:126}, {x:1681, y:236}, {x:1795, y:184}, {x:1871, y:226}, {x:1931, y:34}, {x:1959, y:48}, {x:1983, y:184}, {x:1995, y:198}];
StageData.camps5 = [{con:300, heros:[{x:100, y:100, flag:"role1"}, {x:150, y:100, flag:"role1"}], adaptor:"default2", weapons:{dbAttack:200, dabianAttack:300, cakeAttack:50, keleAttack:10, pbAttack:5}}, {con:300, heros:[{x:1800, y:20, flag:"role1"}, {x:1900, y:20, flag:"role1"}], adaptor:"default2", weapons:{dbAttack:200, dabianAttack:300, cakeAttack:50, keleAttack:10, pbAttack:5}}];
StageData.sreenline5 = 200;
StageData.stage5 = [{x:-3, y:257}, {x:237, y:285}, {x:303, y:245}, {x:323, y:223}, {x:295, y:199}, {x:321, y:155}, {x:289, y:125}, {x:299, y:109}, {x:261, y:65}, {x:311, y:91}, {x:343, y:71}, {x:331, y:99}, {x:489, y:211}, {x:509, y:161}, {x:553, y:151}, {x:593, y:145}, {x:613, y:109}, {x:637, y:117}, {x:625, y:179}, {x:637, y:191}, {x:681, y:189}, {x:725, y:109}, {x:775, y:91}, {x:813, y:167}, {x:913, y:145}, {x:961, y:213}, {x:1071, y:67}, {x:1093, y:91}, {x:1071, y:141}, {x:1093, y:189}, {x:1123, y:159}, {x:1177, y:167}, {x:1183, y:129}, {x:1211, y:97}, {x:1251, y:117}, {x:1259, y:139}, {x:1287, y:133}, {x:1319, y:57}, {x:1375, y:29}, {x:1441, y:97}, {x:1441, y:155}, {x:1457, y:159}, {x:1443, y:221}, {x:1491, y:219}, {x:1505, y:207}, {x:1493, y:185}, {x:1549, y:171}, {x:1553, y:141}, {x:1581, y:135}, {x:1629, y:273}, {x:1671, y:227}, {x:1719, y:231}, {x:1723, y:253}, {x:1767, y:269}, {x:1889, y:183}, {x:1905, y:193}, {x:1999, y:123}];
StageData.camps6 = [{con:300, heros:[{x:100, y:100, flag:"role1"}, {x:150, y:100, flag:"role1"}], adaptor:"default2", weapons:{dbAttack:200, dabianAttack:300, cakeAttack:50, keleAttack:10, pbAttack:5}}, {con:300, heros:[{x:1800, y:20, flag:"role1"}, {x:1900, y:20, flag:"role1"}], adaptor:"default2", weapons:{dbAttack:200, dabianAttack:300, cakeAttack:50, keleAttack:10, pbAttack:5}}];
StageData.sreenline6 = 200;
StageData.stage6 = [{x:-3, y:257}, {x:237, y:285}, {x:303, y:245}, {x:323, y:223}, {x:295, y:199}, {x:321, y:155}, {x:289, y:125}, {x:299, y:109}, {x:261, y:65}, {x:311, y:91}, {x:343, y:71}, {x:331, y:99}, {x:489, y:211}, {x:509, y:161}, {x:553, y:151}, {x:593, y:145}, {x:613, y:109}, {x:637, y:117}, {x:625, y:179}, {x:637, y:191}, {x:681, y:189}, {x:725, y:109}, {x:775, y:91}, {x:813, y:167}, {x:913, y:145}, {x:961, y:213}, {x:1071, y:67}, {x:1093, y:91}, {x:1071, y:141}, {x:1093, y:189}, {x:1123, y:159}, {x:1177, y:167}, {x:1183, y:129}, {x:1211, y:97}, {x:1251, y:117}, {x:1259, y:139}, {x:1287, y:133}, {x:1319, y:57}, {x:1375, y:29}, {x:1441, y:97}, {x:1441, y:155}, {x:1457, y:159}, {x:1443, y:221}, {x:1491, y:219}, {x:1505, y:207}, {x:1493, y:185}, {x:1549, y:171}, {x:1553, y:141}, {x:1581, y:135}, {x:1629, y:273}, {x:1671, y:227}, {x:1719, y:231}, {x:1723, y:253}, {x:1767, y:269}, {x:1889, y:183}, {x:1905, y:193}, {x:1999, y:123}];
StageData.camps7 = [{con:300, heros:[{x:100, y:100, flag:"role1"}, {x:150, y:100, flag:"role1"}], adaptor:"default2", weapons:{dbAttack:200, dabianAttack:300, cakeAttack:50, keleAttack:10, pbAttack:5}}, {con:300, heros:[{x:1800, y:20, flag:"role1"}, {x:1900, y:20, flag:"role1"}], adaptor:"default2", weapons:{dbAttack:200, dabianAttack:300, cakeAttack:50, keleAttack:10, pbAttack:5}}];
StageData.sreenline7 = 200;
StageData.stage7 = [{x:-79, y:167}, {x:15, y:319}, {x:129, y:317}, {x:175, y:287}, {x:139, y:225}, {x:209, y:97}, {x:289, y:51}, {x:255, y:211}, {x:285, y:197}, {x:333, y:137}, {x:437, y:139}, {x:459, y:201}, {x:523, y:163}, {x:573, y:161}, {x:621, y:127}, {x:685, y:125}, {x:727, y:93}, {x:877, y:185}, {x:881, y:149}, {x:853, y:77}, {x:901, y:69}, {x:981, y:157}, {x:1057, y:127}, {x:1125, y:131}, {x:1165, y:195}, {x:1189, y:165}, {x:1253, y:133}, {x:1229, y:45}, {x:1375, y:-29}, {x:1427, y:157}, {x:1475, y:177}, {x:1513, y:93}, {x:1651, y:147}, {x:1637, y:243}, {x:1693, y:259}, {x:1765, y:255}, {x:1821, y:219}, {x:1819, y:151}, {x:1905, y:123}, {x:1951, y:61}, {x:2067, y:109}];
StageData.camps8 = [{con:300, heros:[{x:100, y:100, flag:"role1"}, {x:150, y:100, flag:"role1"}], adaptor:"default2", weapons:{dbAttack:200, dabianAttack:300, cakeAttack:50, keleAttack:10, pbAttack:5}}, {con:300, heros:[{x:1800, y:20, flag:"role1"}, {x:1900, y:20, flag:"role1"}], adaptor:"default2", weapons:{dbAttack:200, dabianAttack:300, cakeAttack:50, keleAttack:10, pbAttack:5}}];
StageData.sreenline8 = 200;
StageData.stage8 = [{x:-79, y:167}, {x:15, y:319}, {x:129, y:317}, {x:175, y:287}, {x:139, y:225}, {x:209, y:97}, {x:289, y:51}, {x:255, y:211}, {x:285, y:197}, {x:333, y:137}, {x:437, y:139}, {x:459, y:201}, {x:523, y:163}, {x:573, y:161}, {x:621, y:127}, {x:685, y:125}, {x:727, y:93}, {x:877, y:185}, {x:881, y:149}, {x:853, y:77}, {x:901, y:69}, {x:981, y:157}, {x:1057, y:127}, {x:1125, y:131}, {x:1165, y:195}, {x:1189, y:165}, {x:1253, y:133}, {x:1229, y:45}, {x:1375, y:-29}, {x:1427, y:157}, {x:1475, y:177}, {x:1513, y:93}, {x:1651, y:147}, {x:1637, y:243}, {x:1693, y:259}, {x:1765, y:255}, {x:1821, y:219}, {x:1819, y:151}, {x:1905, y:123}, {x:1951, y:61}, {x:2067, y:109}];
var i = 1;
while (i <= 8) {
for (var a in StageData["stage" + i]) {
StageData["stage" + i][a].y = StageData["stage" + i][a].y + 200;
}
i++;
}
Instance of Symbol 110 MovieClip in Frame 2
on (press) {
this.play();
}
Frame 3
_root.gotoAndStop("menu");
var clickSound = new Sound();
clickSound.attachSound("clickSound");
Instance of Symbol 437 MovieClip in Frame 4
on (press) {
if (this._currentframe == 1) {
Game.currentGame.setStop(true);
this.nextFrame();
} else {
Game.currentGame.setStop(false);
this.prevFrame();
}
}
Frame 10
function gotoChooseMenu(_playerNumber) {
_root.unlock = false;
if (_playerNumber == 2) {
_playerNumber = 2;
nexPlayerFlag = 2;
controlObject = [true, true];
_root.unlock = true;
}
playerNumber = _playerNumber;
_root.gotoAndStop("chooseRole");
}
stop();
Game.currentGame.clearAll();
var playerNumber = 2;
var stageIndex = 1;
var nowSelecting = 1;
var nexPlayerFlag = 3;
var controlObject = [true, false];
var s = new Sound();
s.attachSound("stage1");
s.start(0, 999999);
Frame 20
function onSelected(_who) {
if (selectedManOrder[playerOrders[_who]] == nowSelecting) {
selectedManOrder[playerOrders[_who]] = -1;
} else if ((selectedManOrder[playerOrders[_who]] == -1) && (totalSelectedNumber() < 2)) {
selectedManOrder[playerOrders[_who]] = nowSelecting;
}
updateFlags();
}
function totalSelectedNumber() {
var _local1 = 0;
for (var _local2 in selectedManOrder) {
if (selectedManOrder[_local2] == nowSelecting) {
_local1++;
}
}
return(_local1);
}
function updateFlags() {
var _local2 = totalSelectedNumber() == 2;
if (_local2) {
for (var _local3 in selectedManOrder) {
if (selectedManOrder[_local3] != nowSelecting) {
selectedManOrder[_local3] = nexPlayerFlag;
}
}
startGame._visible = true;
} else {
for (var _local3 in selectedManOrder) {
if (selectedManOrder[_local3] != nowSelecting) {
selectedManOrder[_local3] = -1;
}
}
startGame._visible = false;
}
for (var _local3 in selectedManOrder) {
if (_local2 && (selectedManOrder[_local3] != nowSelecting)) {
this["r" + (Number(_local3) + 1)].filters = lujing;
} else {
this["r" + (Number(_local3) + 1)].filters = [];
}
if (selectedManOrder[_local3] != -1) {
this["p" + (Number(_local3) + 1)].gotoAndStop(selectedManOrder[_local3] + 1);
} else {
this["p" + (Number(_local3) + 1)].gotoAndStop(1);
}
}
if (!unlock) {
this.r1.filters = lujing;
}
}
function initForEngine() {
var _local2 = [[], [], [], []];
for (var _local3 in selectedManOrder) {
_local2[selectedManOrder[_local3]].push("role" + (Number(_local3) + 1));
}
i = 1;
while (StageData["camps" + i]) {
var _local1 = StageData["camps" + i];
if (playerNumber == 2) {
_local1[0].heros[0].flag = _local2[1][0];
_local1[0].heros[1].flag = _local2[1][1];
_local1[1].heros[0].flag = _local2[2][0];
_local1[1].heros[1].flag = _local2[2][1];
} else if (playerNumber == 1) {
_local1[0].heros[0].flag = _local2[1][0];
_local1[0].heros[1].flag = _local2[1][1];
_local1[1].heros[0].flag = _local2[3][0];
_local1[1].heros[1].flag = _local2[3][1];
}
i++;
}
}
var playerOrders = {cs:0, ball:1, hip:2, gf:3};
var lujing = r1.filters;
var selectedManOrder = [-1, -1, -1, -1];
if (unlock) {
r1.filters = [];
}
locker._visible = !unlock;
startGame._visible = false;
player1.onPress = function () {
playerNumberEnter(1);
};
player2.onPress = function () {
playerNumberEnter(2);
};
nextPlayer.onPress = function () {
if (totalSelectedNumber() < 2) {
return(undefined);
}
if (nowSelecting == 1) {
nowSelecting++;
for (var _local1 in selectedManOrder) {
if (selectedManOrder[_local1] == -1) {
selectedManOrder[_local1] = nowSelecting;
}
}
updateFlags();
} else {
initForEngine();
gotoAndStop ("start");
}
};
r1.onRollOut = (r1.onReleaseOutside = (r2.onRollOut = (r2.onReleaseOutside = (r3.onRollOut = (r3.onReleaseOutside = (r4.onRollOut = (r4.onReleaseOutside = function () {
_root.warlogo._visible = true;
})))))));
r1.onRollOver = function () {
var _local2 = new Sound();
_local2.attachSound("srole1");
_local2.start(0, 1);
_root.warlogo._visible = false;
};
r1.onPress = function () {
if (unlock) {
onSelected("cs");
}
};
r2.onRollOver = function () {
var _local2 = new Sound();
_local2.attachSound("srole2");
_local2.start(0, 1);
_root.warlogo._visible = false;
};
r2.onPress = function () {
onSelected("ball");
};
r3.onRollOver = function () {
var _local2 = new Sound();
_local2.attachSound("srole3");
_local2.start(0, 1);
_root.warlogo._visible = false;
};
r3.onPress = function () {
onSelected("hip");
};
r4.onRollOver = function () {
var _local2 = new Sound();
_local2.attachSound("srole4");
_local2.start(0, 1);
_root.warlogo._visible = false;
};
r4.onPress = function () {
trace(1111111111);
onSelected("gf");
};
r45.onPress = function () {
trace(22222222222222);
};
Frame 29
stopAllSounds();
stageIndex = Number(stageIndex);
_root.miniMap.gotoAndStop(stageIndex + 1);
Game.init(content_mc, stageIndex, _root.controlObject, [true, true]);
if (playerNumber == 1) {
m2._visible = false;
mms._visible = false;
mms2._visible = false;
}
var mySound = new Sound();
if (stageIndex <= 2) {
mySound.attachSound("stage1");
} else if (stageIndex <= 4) {
mySound.attachSound("stage2");
} else if (stageIndex <= 6) {
mySound.attachSound("stage3");
} else if (stageIndex <= 8) {
mySound.attachSound("stage4");
}
mySound.start(0, 99999);
Player.POWER_SHOWER = _root.power_show;
PlayerSystem.Camps[1].p = p1;
PlayerSystem.Camps[1].c = m1;
PlayerSystem.Camps[0].p = p2;
PlayerSystem.Camps[0].c = m2;
p1.gotoAndStop(PlayerSystem.Camps[1].heros[0].m_mcflag);
p2.gotoAndStop(PlayerSystem.Camps[0].heros[0].m_mcflag);
miniMap.onEnterFrame = function () {
miniMap.role1._visible = false;
miniMap.role2._visible = false;
miniMap.role3._visible = false;
miniMap.role4._visible = false;
for (var _local1 in Player.players) {
miniMap[Player.players[_local1].m_mcflag]._visible = true;
miniMap[Player.players[_local1].m_mcflag]._x = Player.players[_local1].x / 10;
miniMap[Player.players[_local1].m_mcflag]._y = (Player.players[_local1].y / 10) - 10;
}
};
_root.bsingmc = "";
_root.bsingmc2 = "";
_root.bsOver = function () {
_root.bsingmc._visible = true;
_root.bsingmc = "";
};
for (var a in Player.players) {
Player.players[a].m_owermc.cur._visible = false;
}
Instance of Symbol 1575 MovieClip in Frame 29
on (press) {
_root.gotoAndStop("buy");
}
Frame 35
function nextPlayer() {
playerIndex++;
if (playerIndex < _root.playerNumber) {
update();
} else {
_root.gotoAndStop("start");
}
}
function update() {
playerFlag.gotoAndStop(playerIndex + 1);
coin_txt.text = objects[playerIndex].coins;
att_txt.text = playerObjects[playerIndex].att;
def_txt.text = playerObjects[playerIndex].def;
attCost_txt.text = objects[playerIndex].attcost;
defCost_txt.text = objects[playerIndex].defcost;
attEffect_txt.text = ("Attack Add " + Math.round(attper * 100)) + "%";
defEffect_txt.text = ("Defence Add " + Math.round(defper * 100)) + "%";
}
function saveObject(_index) {
var _local1 = new Object();
_local1.attper = attper;
_local1.defper = defper;
_local1.coins = coins;
_local1.costper = costper;
_local1.attcost = attcost;
_local1.defcost = defcost;
objects[_index] = _local1;
}
function userCoin(_cost) {
if (objects[playerIndex].coins >= _cost) {
objects[playerIndex].coins = objects[playerIndex].coins - _cost;
return(true);
}
return(false);
}
playerIndex = 0;
if (objects == undefined) {
attper = 0.1;
defper = 0.1;
coins = 200;
costper = 0.1;
attcost = 20;
defcost = 20;
objects = [{}, {}, {}];
playerObjects = [{att:100, def:50, weapons:{nomalAttack:-1}}, {att:100, def:50, weapons:{nomalAttack:-1}}, {att:100, def:50, weapons:{nomalAttack:-1}}];
saveObject(0);
saveObject(1);
saveObject(2);
} else {
playerObjects[playerIndex] = Player.userPlayer.saveObject();
}
attup_btn.onPress = function () {
if (userCoin(objects[playerIndex].attcost)) {
playerObjects[playerIndex].att = playerObjects[playerIndex].att + Math.round(playerObjects[playerIndex].att * objects[playerIndex].attper);
objects[playerIndex].attper = objects[playerIndex].attper - 0.01;
objects[playerIndex].attcost = objects[playerIndex].attcost + Math.round(objects[playerIndex].attcost * objects[playerIndex].costper);
update();
}
};
defup_btn.onPress = function () {
if (userCoin(objects[playerIndex].defcost)) {
playerObjects[playerIndex].def = playerObjects[playerIndex].def + Math.round(playerObjects[playerIndex].att * objects[playerIndex].defper);
objects[playerIndex].defper = objects[playerIndex].defper - 0.01;
objects[playerIndex].defcost = objects[playerIndex].defcost + Math.round(objects[playerIndex].defcost * objects[playerIndex].costper);
update();
}
};
ok_btn.onPress = function () {
nextPlayer();
};
update();
Instance of Symbol 1575 MovieClip in Frame 35
on (press) {
_root.gotoAndStop("start");
}
Frame 42
Game.currentGame.clearAll();
stopAllSounds();
var s = new Sound();
s.attachSound("gameoversound");
s.start(0, 99999);
Frame 51
Game.currentGame.clearAll();
stageIndex++;
stopAllSounds();
trace("=====================================================================");
trace(_root.winneris);
trace(winmc);
winmc.gotoAndStop(_root.winneris);
var ssssss = new Sound();
ssssss.attachSound("nextLevel");
ssssss.start(0, 99999);
Frame 62
winmc.gotoAndStop(winneris);
Game.currentGame.clearAll();
stopAllSounds();
unlock = true;
var ssssss = new Sound();
ssssss.attachSound("nextLevel");
ssssss.start(0, 99999);
Frame 75
gotoAndStop ("menu");
Symbol 10 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 11
_global.Micelanious.Replace();
stop();
Symbol 52 MovieClip Frame 1
this._visible = false;
stop();
Symbol 52 MovieClip Frame 2
_global.Sounds.PlayASound("Splash");
Symbol 52 MovieClip Frame 11
_global.Micelanious.stopWater();
Symbol 59 MovieClip Frame 1
this._visible = false;
Symbol 60 MovieClip [cs_Blik_Gun01] Frame 1
#initclip 53
Object.registerClass("cs_Blik_Gun01", WeaponShot);
#endinitclip
stop();
Symbol 60 MovieClip [cs_Blik_Gun01] Frame 2
play();
Symbol 60 MovieClip [cs_Blik_Gun01] Frame 15
_global.Sounds.PlayASound("Pistolet");
Symbol 60 MovieClip [cs_Blik_Gun01] Frame 75
_global.Micelanious.ittedWater();
splash._visible = false;
Symbol 104 Button
on (press) {
getURL ("http://sillybull.com", "_blank");
}
Symbol 105 MovieClip Frame 1
Symbol 1914 MovieClip [__Packages.Skills.Attack] Frame 0
class Skills.Attack
{
var m_adaptor, controlPlayer, controlCamp;
function Attack (_a) {
m_adaptor = _a;
controlPlayer = m_adaptor.controlPlayer;
controlCamp = m_adaptor.controlCamp;
trace("controlCamp:" + controlCamp.initObject);
}
function setPlayerIn(_b) {
Game.currentGame.checkScreenMove = _b;
}
}
Symbol 1915 MovieClip [__Packages.Game] Frame 0
class Game
{
static var currentSS, currentGame;
var _owner, _worldMc, engine, onAroundStopEvent, _map, returnControl, screenControl;
function Game (mc) {
clearAll();
initScreenControl(mc._parent);
com.HelloAS.util.TimeLine.removeAllListener();
_owner = mc;
_worldMc = _owner.world;
org.cove.flade.DynamicsEngine.worldContainer = _worldMc;
engine = new org.cove.flade.DynamicsEngine();
engine.setDamping(1);
engine.setGravity(0, 0.5);
engine.setSurfaceBounce(0);
engine.setSurfaceFriction(1);
_worldMc.onEnterFrame = mx.utils.Delegate.create(this, run);
onAroundStopEvent = mx.utils.Delegate.create(this, onAroundStop);
currentSS = new SkillSelecter(mc._parent);
var _local2 = 0;
while (_local2 < SkillSelecter.ALL_SKILLS.length) {
currentSS.addSkill(SkillSelecter.ALL_SKILLS[_local2]);
_local2++;
}
}
function setStop(_b) {
isStop = _b;
com.HelloAS.util.TimeLine.isStop = _b;
if (_b) {
for (var _local2 in tweens) {
tweens[_local2].stop();
}
} else {
for (var _local2 in tweens) {
tweens[_local2].resume();
}
}
}
function clearAll() {
Map.clear();
Player.clear();
ball.clear();
PlayerSystem.clear();
currentSS.clear();
}
static function init(mc, stageIndex, controlPlayers, allPlayers) {
initAdaptor();
currentGame = new Game(mc);
currentGame._map = currentGame.load(stageIndex, stageIndex);
PlayerSystem.initStagePlayer(currentGame, stageIndex, controlPlayers, allPlayers);
trace("currentGame._map.lookAround:" + currentGame._map.lookAround);
new com.HelloAS.util.setTimeOut(currentGame._map.lookAround, 1000, currentGame._map);
currentGame._map.addEventListener(Map.MAP_AROUND_STOP, currentGame.onAroundStopEvent);
}
static function initAdaptor() {
new DefaultAdaptor();
new DefaultAdaptor2();
}
function onAroundStop() {
_map.removeEventListener(Map.MAP_AROUND_STOP, currentGame.onAroundStopEvent);
PlayerSystem.startNextAttack();
}
function load(stageIndex, game, player) {
return(new Map(stageIndex, engine, _owner));
}
function initScreenControl(mc) {
mc.lControl._sx = -SCREEN_MOVE_SPEED;
mc.lControl._sy = 0;
mc.rControl._sx = SCREEN_MOVE_SPEED;
mc.rControl._sy = 0;
mc.uControl._sx = 0;
mc.uControl._sy = -SCREEN_MOVE_SPEED;
mc.dControl._sx = 0;
mc.dControl._sy = SCREEN_MOVE_SPEED;
returnControl = mc.pControl;
screenControl = [mc.lControl, mc.rControl, mc.uControl, mc.dControl];
}
function addPlayer(x, y, w, h, faceFlag, isai) {
var _local4 = _owner.attachMovie(faceFlag, "player_" + _owner.getNextHighestDepth(), _owner.getNextHighestDepth());
var _local3 = new org.cove.flade.primitives.RectangleParticle(x, y, w, h);
engine.addPrimitive(_local3);
var _local2 = Player.init(_local4, isai, faceFlag);
_local2.linkParticle(_local3);
if (x > 1000) {
_local2.changeSide("left");
}
return(_local2);
}
function run() {
if (isStop) {
setStop(true);
return(undefined);
}
engine.timeStep();
engine.paintSurfaces();
engine.paintPrimitives();
if (ball.currentBall != undefined) {
_map.render(ball.currentBall.curr.x, ball.currentBall.curr.y);
} else if (checkScreenMove) {
if (returnControl.hitTest(_root._xmouse, _root._ymouse, true)) {
_map.render(Player.currentPlayer.x + ((Map.currentPoint.x - Player.currentPlayer.x) * 0.2), Player.currentPlayer.y + ((Map.currentPoint.y - Player.currentPlayer.y) * 0.2));
return(undefined);
}
for (var _local7 in screenControl) {
if (screenControl[_local7].hitTest(_root._xmouse, _root._ymouse, true)) {
_map.render(Map.currentPoint.x + screenControl[_local7]._sx, Map.currentPoint.y + screenControl[_local7]._sy);
break;
}
}
}
if (checkPlayerRepeat) {
for (var _local7 in Player.players) {
var _local4 = Player.players[_local7].m_p;
for (var _local6 in Player.players) {
if (_local7 != _local6) {
var _local3 = Player.players[_local6].m_p;
if ((Math.abs(_local4.curr.x - _local3.curr.x) < (((_local4.width + _local3.width) / 2) + 20)) && (Math.abs(_local4.curr.y - _local3.curr.y) < ((_local4.height + _local3.height) / 2))) {
var _local5 = (((_local4.width + _local3.width) / 2) - Math.abs(_local4.curr.x - _local3.curr.x)) + 20;
if (_local4 == Player.currentPlayer.m_p) {
if (_local4.curr.x < _local3.curr.x) {
_local4.curr.x = _local4.curr.x - _local5;
_local4.prev.x = _local4.prev.x - _local5;
} else {
_local4.curr.x = _local4.curr.x + _local5;
_local4.prev.x = _local4.prev.x + _local5;
}
} else if (_local3 == Player.currentPlayer.m_p) {
if (_local4.curr.x < _local3.curr.x) {
_local3.curr.x = _local3.curr.x + _local5;
_local3.prev.x = _local3.prev.x + _local5;
} else {
_local3.curr.x = _local3.curr.x - _local5;
_local3.prev.x = _local3.prev.x - _local5;
}
} else {
trace("here");
}
}
}
}
}
}
}
static var SCREEN_MOVE_SPEED = 10;
static var tweens = [];
var checkScreenMove = true;
var isStop = false;
static var checkPlayerRepeat = true;
}
Symbol 1916 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 1917 MovieClip [__Packages.SkillSelecter] Frame 0
class SkillSelecter extends mx.events.EventDispatcher
{
var m_owner, m_skills;
function SkillSelecter (_mc) {
super();
m_owner = _mc.createEmptyMovieClip("SkillBar" + _mc.getNextHighestDepth(), _mc.getNextHighestDepth());
m_skills = new Array();
}
static function AddSkillInList(_skill) {
ALL_SKILLS.push(_skill);
}
function clear() {
m_owner.removeMovieClip();
}
function removeAllSkill() {
for (var _local2 in m_owner) {
m_owner[_local2].removeMovieClip();
}
m_skills = new Array();
render();
}
function addSkills(ss) {
var _local2 = 0;
while (_local2 < ss.length) {
addSkill(ss[_local2]);
_local2++;
}
}
function addSkill(s) {
m_skills.push(s);
render();
}
function delSkill(s) {
for (var _local3 in m_skills) {
if (m_skills[_local3] == s) {
m_skills.splice(_local3, 1);
return(undefined);
}
}
}
function updateWeapons(_obj) {
if (SHOW_NUMER) {
for (var _local3 in m_skills) {
m_skills[_local3].m_owner.counter.num = ((_obj[m_skills[_local3].name] == undefined) ? 0 : (_obj[m_skills[_local3].name]));
}
}
}
function render() {
for (var _local8 in m_skills) {
var _local2 = m_owner.attachMovie(m_skills[_local8].flag, m_skills[_local8].name, Number(_local8));
_local2._x = (EACH_BOX_WIDTH * Number(_local8)) + START_X;
_local2._y = START_Y;
m_skills[_local8].setMC(_local2);
_local2.index = _local8;
_local2.name = m_skills[_local8].name;
_local2.price = m_skills[_local8].price;
_local2.ON_CLICK_SKILL = ON_CLICK_SKILL;
var _this = this;
_local2.onRollOver = function () {
var _local1 = new Sound();
_local1.attachSound("clicksound");
};
_local2.onPress = function () {
if (SkillSelecter.SHOW_NUMER && ((int(_this.m_skills[this.index].m_owner.counter.num) <= 0) || (!_this.enabled))) {
return(undefined);
}
_this.dispatchEvent({type:SkillSelecter.ON_CLICK_SKILL, index:this.index, name:this.name, price:this.price});
};
if (SHOW_MONEY) {
var _local3 = m_owner.attachMovie(SHOW_MONEY, "mm" + _local8, Number(_local8) + 100);
_local3._y = _local2._height + START_Y;
_local3._x = (EACH_BOX_WIDTH * Number(_local8)) + START_X;
_local3.num = ((m_skills[_local8].price == undefined) ? 0 : (m_skills[_local8].price));
_local2.counter = _local3;
} else if (SHOW_NUMER) {
var _local3 = m_owner.attachMovie(SHOW_NUMER, "mm" + _local8, Number(_local8) + 100);
_local3._y = _local2._height + START_Y;
_local3._x = (EACH_BOX_WIDTH * Number(_local8)) + START_X;
_local3.num = ((m_skills[_local8].num == undefined) ? 0 : (m_skills[_local8].num));
_local2.counter = _local3;
}
}
}
static var ON_CLICK_SKILL = "on_use_skill";
static var START_X = 0;
static var START_Y = 0;
static var EACH_BOX_WIDTH = 50;
static var SHOW_MONEY = false;
static var SHOW_NUMER = false;
static var ALL_SKILLS = new Array();
var enabled = true;
}
Symbol 1918 MovieClip [__Packages.Skill] Frame 0
class Skill
{
var flag, name, price, constantClass, m_owner;
function Skill (_n, _f, _p, _c) {
flag = _f;
name = _n;
price = _p;
constantClass = _c;
}
function setMC(_mc) {
m_owner = _mc;
}
}
Symbol 1919 MovieClip [__Packages.com.HelloAS.util.TimeLine] Frame 0
class com.HelloAS.util.TimeLine
{
function TimeLine () {
}
static function init(_mc) {
if (_mc) {
m_timeLine = _mc;
}
m_timeLine.onEnterFrame = function () {
if (com.HelloAS.util.TimeLine.isStop) {
return(undefined);
}
com.HelloAS.util.TimeLine.dispater.dispatchEvent({type:com.HelloAS.util.TimeLine.ENTER_FRAME});
};
}
static function removeAllListener() {
dispater = new mx.events.EventDispatcher();
}
static function addEventListener(event, listener) {
dispater.addEventListener(event, listener);
}
static function removeEventListener(event, listener) {
dispater.removeEventListener(event, listener);
}
static var ENTER_FRAME = "enter_frame";
static var isStop = false;
static var m_timeLine = _root;
static var dispater = new mx.events.EventDispatcher();
}
Symbol 1920 MovieClip [__Packages.org.cove.flade.DynamicsEngine] Frame 0
class org.cove.flade.DynamicsEngine
{
var primitives, surfaces, constraints, gravity, coeffRest, coeffFric, coeffDamp;
function DynamicsEngine () {
primitives = new Array();
surfaces = new Array();
constraints = new Array();
gravity = new org.cove.flade.util.Vector(0, 1);
coeffRest = 1.5;
coeffFric = 0.01;
coeffDamp = 0.99;
}
function addPrimitive(p) {
primitives.push(p);
}
function removePrimitive(p) {
for (var _local2 in primitives) {
if (primitives[_local2] == p) {
primitives.splice(_local2, 1);
}
}
}
function addSurface(s) {
surfaces.push(s);
}
function addConstraint(c) {
constraints.push(c);
}
function paintSurfaces() {
var _local2 = 0;
while (_local2 < surfaces.length) {
surfaces[_local2].paint();
_local2++;
}
}
function paintPrimitives() {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].paint();
_local2++;
}
}
function paintConstraints() {
var _local2 = 0;
while (_local2 < constraints.length) {
constraints[_local2].paint();
_local2++;
}
}
function timeStep() {
verlet();
satisfyConstraints();
checkCollisions();
}
function setSurfaceBounce(kfr) {
coeffRest = 1 + kfr;
}
function setSurfaceFriction(f) {
coeffFric = f;
}
function setDamping(d) {
coeffDamp = d;
}
function setGravity(gx, gy) {
gravity.x = gx;
gravity.y = gy;
}
function verlet() {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].verlet(this);
_local2++;
}
}
function satisfyConstraints() {
var _local2 = 0;
while (_local2 < constraints.length) {
constraints[_local2].resolve();
_local2++;
}
}
function checkCollisions() {
var _local4 = 0;
while (_local4 < surfaces.length) {
var _local3 = surfaces[_local4];
if (_local3.getActiveState()) {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].checkCollision(_local3, this);
_local2++;
}
}
_local4++;
}
}
static var worldContainer = _root;
}
Symbol 1921 MovieClip [__Packages.org.cove.flade.util.Vector] Frame 0
class org.cove.flade.util.Vector
{
var x, y;
function Vector (px, py) {
x = px;
y = py;
}
function setTo(px, py) {
x = px;
y = py;
}
function copy(v) {
x = v.x;
y = v.y;
}
function dot(v) {
return((x * v.x) + (y * v.y));
}
function cross(v) {
return((x * v.y) - (y * v.x));
}
function plus(v) {
x = x + v.x;
y = y + v.y;
return(this);
}
function plusNew(v) {
return(new org.cove.flade.util.Vector(x + v.x, y + v.y));
}
function minus(v) {
x = x - v.x;
y = y - v.y;
return(this);
}
function minusNew(v) {
return(new org.cove.flade.util.Vector(x - v.x, y - v.y));
}
function mult(s) {
x = x * s;
y = y * s;
return(this);
}
function multNew(s) {
return(new org.cove.flade.util.Vector(x * s, y * s));
}
function distance(v) {
var _local3 = x - v.x;
var _local2 = y - v.y;
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
}
function normalize() {
var _local2 = Math.sqrt((x * x) + (y * y));
x = x / _local2;
y = y / _local2;
return(this);
}
function magnitude() {
return(Math.sqrt((x * x) + (y * y)));
}
function project(b) {
var _local5 = dot(b);
var _local4 = (b.x * b.x) + (b.y * b.y);
var _local3 = new org.cove.flade.util.Vector(0, 0);
_local3.x = (_local5 / _local4) * b.x;
_local3.y = (_local5 / _local4) * b.y;
return(_local3);
}
}
Symbol 1922 MovieClip [__Packages.org.cove.flade.primitives.Particle] Frame 0
class org.cove.flade.primitives.Particle extends mx.events.EventDispatcher
{
var init, curr, prev, temp, extents, bmin, bmax, mtd, isVisible, dmc, dispatchEvent;
function Particle (posX, posY) {
super();
init = new org.cove.flade.util.Vector(posX, posY);
curr = new org.cove.flade.util.Vector(posX, posY);
prev = new org.cove.flade.util.Vector(posX, posY);
temp = new org.cove.flade.util.Vector(0, 0);
extents = new org.cove.flade.util.Vector(0, 0);
bmin = 0;
bmax = 0;
mtd = new org.cove.flade.util.Vector(0, 0);
initializeContainer();
isVisible = true;
}
function initializeContainer() {
var _local2 = org.cove.flade.DynamicsEngine.worldContainer.getNextHighestDepth();
var _local3 = "_" + _local2;
dmc = org.cove.flade.DynamicsEngine.worldContainer.createEmptyMovieClip(_local3, _local2);
}
function setVisible(v) {
isVisible = v;
}
function movex(_i) {
prev.x = prev.x + _i;
fall();
}
function fall() {
if (prev == curr) {
prev = curr.multNew(1);
}
}
function verlet(sysObj) {
temp.x = curr.x;
temp.y = curr.y;
curr.x = curr.x + ((sysObj.coeffDamp * (curr.x - prev.x)) + sysObj.gravity.x);
curr.y = curr.y + ((sysObj.coeffDamp * (curr.y - prev.y)) + sysObj.gravity.y);
prev.x = temp.x;
prev.y = temp.y;
}
function pin() {
curr.x = init.x;
curr.y = init.y;
prev.x = init.x;
prev.y = init.y;
}
function setPos(px, py) {
curr.x = px;
curr.y = py;
prev.x = px;
prev.y = py;
}
function getCardXProjection() {
bmin = curr.x - extents.x;
bmax = curr.x + extents.x;
}
function getCardYProjection() {
bmin = curr.y - extents.y;
bmax = curr.y + extents.y;
}
function getAxisProjection(axis) {
var _local5 = new org.cove.flade.util.Vector(Math.abs(axis.x), Math.abs(axis.y));
var _local2 = curr.dot(axis);
var _local3 = extents.dot(_local5);
bmin = _local2 - _local3;
bmax = _local2 + _local3;
}
function setMTD(depthX, depthY, depthN, surfNormal) {
var _local4 = Math.abs(depthX);
var _local3 = Math.abs(depthY);
var _local2 = Math.abs(depthN);
if ((_local4 < _local3) && (_local4 < _local2)) {
mtd.setTo(depthX, 0);
} else if ((_local3 < _local4) && (_local3 < _local2)) {
mtd.setTo(0, depthY);
} else if ((_local2 < _local4) && (_local2 < _local3)) {
mtd = surfNormal.multNew(depthN);
}
}
function setXYMTD(depthX, depthY) {
var _local3 = Math.abs(depthX);
var _local2 = Math.abs(depthY);
if (_local3 < _local2) {
mtd.setTo(depthX, 0);
} else {
mtd.setTo(0, depthY);
}
}
function resolveCollision(normal, sysObj) {
dispatchEvent({type:ON_COLLISION, ref:this});
var _local2 = curr.minusNew(prev);
var _local3 = normal.dot(_local2);
var _local9 = _local2.minusNew(normal.multNew(_local3));
var _local4 = _local9.multNew(sysObj.coeffFric);
var _local6 = normal.multNew(_local3 * sysObj.coeffRest);
var _local7 = _local6.plusNew(_local4);
var _local8 = _local2.minusNew(_local7);
curr.plus(mtd);
prev = curr.minusNew(_local8);
if (sysObj.coeffFric >= 1) {
prev = curr;
}
if (Math.abs(prev.y - curr.y) < 0.1) {
dispatchEvent({type:ON_HIT, ref:this});
}
}
function paint() {
}
function checkCollision(surface, sysObj) {
}
static var ON_COLLISION = "onCollision";
static var ON_HIT = "onHit";
}
Symbol 1923 MovieClip [__Packages.org.cove.flade.surfaces.Surface] Frame 0
interface org.cove.flade.surfaces.Surface
{
}
Symbol 1924 MovieClip [__Packages.org.cove.flade.primitives.CircleParticle] Frame 0
class org.cove.flade.primitives.CircleParticle extends org.cove.flade.primitives.Particle
{
var radius, contactRadius, extents, closestPoint, isVisible, dmc, curr;
function CircleParticle (px, py, r) {
super(px, py);
radius = r;
contactRadius = r;
extents = new org.cove.flade.util.Vector(r, r);
closestPoint = new org.cove.flade.util.Vector(0, 0);
}
function get width() {
return(radius);
}
function get height() {
return(radius);
}
function paint() {
if (isVisible) {
dmc.clear();
dmc.lineStyle(0, 6710886, 100);
org.cove.flade.graphics.Graphics.paintCircle(dmc, curr.x, curr.y, radius);
}
}
function checkCollision(surface, sysObj) {
surface.resolveCircleCollision(this, sysObj);
}
}
Symbol 1925 MovieClip [__Packages.org.cove.flade.graphics.Graphics] Frame 0
class org.cove.flade.graphics.Graphics
{
function Graphics () {
}
static function paintLine(dmc, x0, y0, x1, y1) {
dmc.moveTo(x0, y0);
dmc.lineTo(x1, y1);
}
static function paintCircle(dmc, x, y, r) {
var mtp8r = (0.414213562373095 * r);
var msp4r = (0.707106781186547 * r);
with (dmc) {
beginFill(0);
moveTo(x + r, y);
curveTo(r + x, mtp8r + y, msp4r + x, msp4r + y);
curveTo(mtp8r + x, r + y, x, r + y);
curveTo((-mtp8r) + x, r + y, (-msp4r) + x, msp4r + y);
curveTo((-r) + x, mtp8r + y, (-r) + x, y);
curveTo((-r) + x, (-mtp8r) + y, (-msp4r) + x, (-msp4r) + y);
curveTo((-mtp8r) + x, (-r) + y, x, (-r) + y);
curveTo(mtp8r + x, (-r) + y, msp4r + x, (-msp4r) + y);
curveTo(r + x, (-mtp8r) + y, r + x, y);
endFill();
}
}
static function paintRectangle(dmc, x, y, w, h) {
var w2 = (w / 2);
var h2 = (h / 2);
with (dmc) {
beginFill(0);
moveTo(x - w2, y - h2);
lineTo(x + w2, y - h2);
lineTo(x + w2, y + h2);
lineTo(x - w2, y + h2);
lineTo(x - w2, y - h2);
endFill();
}
}
}
Symbol 1926 MovieClip [__Packages.org.cove.flade.primitives.RectangleParticle] Frame 0
class org.cove.flade.primitives.RectangleParticle extends org.cove.flade.primitives.Particle
{
var width, height, vertex, extents, isVisible, dmc, curr;
function RectangleParticle (px, py, w, h) {
super(px, py);
width = w;
height = h;
vertex = new org.cove.flade.util.Vector(0, 0);
extents = new org.cove.flade.util.Vector(w / 2, h / 2);
}
function get radius() {
return(width);
}
function paint() {
if (isVisible) {
dmc.clear();
org.cove.flade.graphics.Graphics.paintRectangle(dmc, curr.x, curr.y, width, height);
}
}
function checkCollision(surface, sysObj) {
surface.resolveRectangleCollision(this, sysObj);
}
}
Symbol 1927 MovieClip [__Packages.org.cove.flade.constraints.Constraint] Frame 0
interface org.cove.flade.constraints.Constraint
{
}
Symbol 1928 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 1929 MovieClip [__Packages.Map] Frame 0
class Map extends mx.events.EventDispatcher
{
static var currentMap;
var DC_DoLookAround, mapOwner, engine, lines, aipoints, sreenline, MaxLength, MaxHeight, MinLength, MinHeight, dispatchEvent;
function Map (stageIndex, _engine, _owner) {
super();
trace("Map is create");
DC_DoLookAround = mx.utils.Delegate.create(this, doLookAround);
mapOwner = _owner;
engine = _engine;
lines = StageData["stage" + stageIndex];
aipoints = StageData["aipoints" + stageIndex];
sreenline = StageData["sreenline" + stageIndex];
_owner.attachMovie("map" + stageIndex, "map", stageIndex);
var _local4 = lines.length;
var _local3 = 0;
while (_local3 < (_local4 - 1)) {
engine.addSurface(new org.cove.flade.surfaces.LineSurface(lines[_local3].x, lines[_local3].y, lines[_local3 + 1].x, lines[_local3 + 1].y));
_local3++;
}
currentMap = this;
MaxLength = length;
MaxHeight = ((height > CAMARA_CENTER_Y) ? (height) : (CAMARA_CENTER_Y));
MinLength = CAMARA_CENTER_X;
MinHeight = ((height < CAMARA_CENTER_Y) ? (height) : (CAMARA_CENTER_Y));
render();
}
static function clear() {
currentMap.mapOwner.map.removeMovieClip();
currentMap = undefined;
}
function get length() {
var _local2 = 0;
for (var _local3 in lines) {
if (lines[_local3].x > _local2) {
_local2 = lines[_local3].x;
}
}
return(_local2 - CAMARA_CENTER_X);
}
function get height() {
var _local2 = 0;
for (var _local3 in lines) {
if (lines[_local3].y > _local2) {
_local2 = lines[_local3].y;
}
}
return(_local2 - CAMARA_CENTER_Y);
}
function getPointsForm(x1, x2) {
if (x1 > x2) {
var _local6 = x2;
x2 = x1;
x1 = _local6;
}
var _local4 = new Array();
for (var _local5 in lines) {
if ((lines[_local5].x > x1) && (lines[_local5].x < x2)) {
trace(lines[_local5].y);
_local4.push([lines[_local5].x, lines[_local5].y]);
}
}
return(_local4);
}
function lookAround() {
trace("lookAround");
com.HelloAS.util.TimeLine.addEventListener(com.HelloAS.util.TimeLine.ENTER_FRAME, DC_DoLookAround);
}
function doLookAround() {
if (currentPoint.x < MaxLength) {
render(currentPoint.x + MAP_MOVE_SPEED, currentPoint.y);
} else {
com.HelloAS.util.TimeLine.removeEventListener(com.HelloAS.util.TimeLine.ENTER_FRAME, DC_DoLookAround);
dispatchEvent({type:MAP_AROUND_STOP});
dispatchEvent({type:MAP_STOP});
}
}
function checkInWord(dx, dy) {
if (dx > (MaxLength + MinLength)) {
return(false);
}
if (dx < 0) {
return(false);
}
if (dy > (MaxHeight + MinHeight)) {
return(false);
}
return(true);
}
function render(dx, dy, needTween) {
if ((dx == undefined) || (dy == undefined)) {
render(currentPoint.x, currentPoint.y);
} else {
if (dx > MaxLength) {
dx = MaxLength;
} else if (dx < MinLength) {
dx = MinLength;
}
if (dy < MinHeight) {
dy = MinHeight;
} else if (dy > MaxHeight) {
dy = MaxHeight;
}
var _local5 = CAMARA_CENTER_X - dx;
var _local4 = CAMARA_CENTER_Y - dy;
if (needTween) {
new mx.transitions.Tween(mapOwner, "_x", mx.transitions.easing.Regular.easeOut, mapOwner._x, _local5, 1, true);
new mx.transitions.Tween(mapOwner, "_y", mx.transitions.easing.Regular.easeOut, mapOwner._y, _local4, 1, true);
} else {
mapOwner._x = _local5;
mapOwner._y = _local4;
}
currentPoint.x = dx;
currentPoint.y = dy;
}
}
function paintShotline(sx, sy, dx, dy) {
var _local4 = new Array();
dy = -dy;
while (checkInWord(sx, sy)) {
dx = dx + engine.gravity.x;
dy = dy + engine.gravity.y;
sx = sx - dx;
sy = sy + dy;
mapOwner.lineTo(sx, sy);
_local4 = _local4.concat(Player.checkPointHit(sx, sy));
}
return(_local4);
}
static var CAMARA_CENTER_X = 275;
static var CAMARA_CENTER_Y = 170;
static var MAP_MOVE_SPEED = 20;
static var MAP_AROUND_STOP = "map_around_stop";
static var MAP_STOP = "map_stop";
static var currentPoint = new flash.geom.Point(400, 400);
}
Symbol 1930 MovieClip [__Packages.StageData] Frame 0
class StageData
{
function StageData () {
}
}
Symbol 1931 MovieClip [__Packages.org.cove.flade.surfaces.AbstractTile] Frame 0
class org.cove.flade.surfaces.AbstractTile
{
static var dispather;
var center, verts, normal, isVisible, isActivated, dmc, minX, maxX, minY, maxY;
function AbstractTile (cx, cy) {
if (dispather == null) {
dispather = new Object();
AsBroadcaster.initialize(dispather);
}
center = new org.cove.flade.util.Vector(cx, cy);
verts = new Array();
normal = new org.cove.flade.util.Vector(0, 0);
isVisible = true;
isActivated = true;
initializeContainer();
}
function initializeContainer() {
var _local2 = org.cove.flade.DynamicsEngine.worldContainer.getNextHighestDepth();
var _local3 = "_" + _local2;
dmc = org.cove.flade.DynamicsEngine.worldContainer.createEmptyMovieClip(_local3, _local2);
}
function setVisible(v) {
isVisible = v;
}
function setActiveState(a) {
isActivated = a;
}
function getActiveState() {
return(isActivated);
}
function createBoundingRect(rw, rh) {
var _local2 = center.y - (rh / 2);
var _local3 = center.y + (rh / 2);
var _local5 = center.x - (rw / 2);
var _local4 = center.x + (rw / 2);
verts.push(new org.cove.flade.util.Vector(_local4, _local3));
verts.push(new org.cove.flade.util.Vector(_local4, _local2));
verts.push(new org.cove.flade.util.Vector(_local5, _local2));
verts.push(new org.cove.flade.util.Vector(_local5, _local3));
setCardProjections();
}
function testIntervals(boxMin, boxMax, tileMin, tileMax) {
if (boxMax < tileMin) {
return(0);
}
if (tileMax < boxMin) {
return(0);
}
var _local2 = tileMax - boxMin;
var _local1 = tileMin - boxMax;
if (Math.abs(_local2) < Math.abs(_local1)) {
return(_local2);
}
return(_local1);
}
function setCardProjections() {
getCardXProjection();
getCardYProjection();
}
function getCardXProjection() {
minX = verts[0].x;
var _local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].x < minX) {
minX = verts[_local2].x;
}
_local2++;
}
maxX = verts[0].x;
_local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].x > maxX) {
maxX = verts[_local2].x;
}
_local2++;
}
}
function getCardYProjection() {
minY = verts[0].y;
var _local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].y < minY) {
minY = verts[_local2].y;
}
_local2++;
}
maxY = verts[0].y;
_local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].y > maxY) {
maxY = verts[_local2].y;
}
_local2++;
}
}
function onContact() {
}
}
Symbol 1932 MovieClip [__Packages.org.cove.flade.surfaces.LineSurface] Frame 0
class org.cove.flade.surfaces.LineSurface extends org.cove.flade.surfaces.AbstractTile implements org.cove.flade.surfaces.Surface
{
var p1, p2, collNormal, isVisible, dmc, onContact, faceNormal, collisionDepth, testIntervals, minY, maxY, minX, maxX, sideNormal, minS, maxS, minF, maxF, rise, run, sign, slope, invB, setCardProjections, p3, p4, verts;
function LineSurface (p1x, p1y, p2x, p2y) {
super(0, 0);
p1 = new org.cove.flade.util.Vector(p1x, p1y);
p2 = new org.cove.flade.util.Vector(p2x, p2y);
calcFaceNormal();
collNormal = new org.cove.flade.util.Vector(0, 0);
setCollisionDepth(30);
}
function paint() {
if (isVisible) {
dmc.clear();
dmc.lineStyle(0, 2237064, 100);
org.cove.flade.graphics.Graphics.paintLine(dmc, p1.x, p1.y, p2.x, p2.y);
}
}
function resolveCircleCollision(p, sysObj) {
if (isCircleColliding(p)) {
onContact();
p.resolveCollision(faceNormal, sysObj);
}
}
function resolveRectangleCollision(p, sysObj) {
if (isRectangleColliding(p)) {
onContact();
p.resolveCollision(collNormal, sysObj);
}
}
function setCollisionDepth(d) {
collisionDepth = d;
precalculate();
}
function isCircleColliding(p) {
findClosestPoint(p.curr, p.closestPoint);
var _local3 = p.closestPoint.minusNew(p.curr);
_local3.normalize();
if (inequality(p.curr)) {
var _local5 = Math.abs(_local3.x);
_local3.x = ((faceNormal.x < 0) ? (_local5) : (-_local5));
_local3.y = Math.abs(_local3.y);
}
var _local4 = p.curr.plusNew(_local3.mult(p.radius));
if (segmentInequality(_local4)) {
if (_local4.distance(p.closestPoint) > collisionDepth) {
return(false);
}
var _local7 = _local4.x - p.closestPoint.x;
var _local6 = _local4.y - p.closestPoint.y;
p.mtd.setTo(-_local7, -_local6);
return(true);
}
return(false);
}
function isRectangleColliding(p) {
p.getCardYProjection();
var _local7 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local7 == 0) {
return(false);
}
p.getCardXProjection();
var _local8 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local8 == 0) {
return(false);
}
p.getAxisProjection(sideNormal);
var _local10 = testIntervals(p.bmin, p.bmax, minS, maxS);
if (_local10 == 0) {
return(false);
}
p.getAxisProjection(faceNormal);
var _local9 = testIntervals(p.bmin, p.bmax, minF, maxF);
if (_local9 == 0) {
return(false);
}
var _local4 = Math.abs(_local8);
var _local3 = Math.abs(_local7);
var _local6 = Math.abs(_local10);
var _local5 = Math.abs(_local9);
if (((_local4 <= _local3) && (_local4 <= _local6)) && (_local4 <= _local5)) {
p.mtd.setTo(_local8, 0);
collNormal.setTo(p.mtd.x / _local4, 0);
} else if (((_local3 <= _local4) && (_local3 <= _local6)) && (_local3 <= _local5)) {
p.mtd.setTo(0, _local7);
collNormal.setTo(0, p.mtd.y / _local3);
} else if (((_local5 <= _local4) && (_local5 <= _local3)) && (_local5 <= _local6)) {
p.mtd = faceNormal.multNew(_local9);
collNormal.copy(faceNormal);
} else if (((_local6 <= _local4) && (_local6 <= _local3)) && (_local6 <= _local5)) {
p.mtd = sideNormal.multNew(_local10);
collNormal.copy(sideNormal);
}
return(true);
}
function precalculate() {
rise = p2.y - p1.y;
run = p2.x - p1.x;
sign = ((run >= 0) ? 1 : -1);
slope = rise / run;
invB = 1 / ((run * run) + (rise * rise));
createRectangle();
calcSideNormal();
setCardProjections();
setAxisProjections();
}
function calcFaceNormal() {
faceNormal = new org.cove.flade.util.Vector(0, 0);
var _local3 = p2.x - p1.x;
var _local2 = p2.y - p1.y;
faceNormal.setTo(_local2, -_local3);
faceNormal.normalize();
}
function segmentInequality(toPoint) {
var _local2 = findU(toPoint);
var _local3 = inequality(toPoint);
return(((_local2 >= 0) && (_local2 <= 1)) && (_local3));
}
function inequality(toPoint) {
var _local2 = ((slope * (toPoint.x - p1.x)) + (p1.y - toPoint.y)) * sign;
return(_local2 <= 0);
}
function findClosestPoint(toPoint, returnVect) {
var _local2 = findU(toPoint);
if (_local2 <= 0) {
returnVect.copy(p1);
return(undefined);
}
if (_local2 >= 1) {
returnVect.copy(p2);
return(undefined);
}
var _local5 = p1.x + (_local2 * (p2.x - p1.x));
var _local4 = p1.y + (_local2 * (p2.y - p1.y));
returnVect.setTo(_local5, _local4);
}
function findU(p) {
var _local2 = ((p.x - p1.x) * run) + ((p.y - p1.y) * rise);
return(_local2 * invB);
}
function createRectangle() {
var _local5 = p2.x + ((-faceNormal.x) * collisionDepth);
var _local3 = p2.y + ((-faceNormal.y) * collisionDepth);
var _local4 = p1.x + ((-faceNormal.x) * collisionDepth);
var _local2 = p1.y + ((-faceNormal.y) * collisionDepth);
p3 = new org.cove.flade.util.Vector(_local5, _local3);
p4 = new org.cove.flade.util.Vector(_local4, _local2);
verts.push(p1);
verts.push(p2);
verts.push(p3);
verts.push(p4);
}
function setAxisProjections() {
var _local2;
minF = p2.dot(faceNormal);
maxF = p3.dot(faceNormal);
if (minF > maxF) {
_local2 = minF;
minF = maxF;
maxF = _local2;
}
minS = p1.dot(sideNormal);
maxS = p2.dot(sideNormal);
if (minS > maxS) {
_local2 = minS;
minS = maxS;
maxS = _local2;
}
}
function calcSideNormal() {
sideNormal = new org.cove.flade.util.Vector(0, 0);
var _local3 = p3.x - p2.x;
var _local2 = p3.y - p2.y;
sideNormal.setTo(_local2, -_local3);
sideNormal.normalize();
}
}
Symbol 1933 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 1934 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 1935 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 1936 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 1937 MovieClip [__Packages.Player] Frame 0
class Player
{
static var userPlayer, POWER_SHOWER, currentPlayer;
var m_mcflag, DC_onNextRound, DC_onColision, m_owermc, m_hp, m_camp, m_p;
function Player (_mc, _isAI, _mcflag) {
if (!_isAI) {
userPlayer = this;
}
m_mcflag = _mcflag;
m_wpEff = new Array();
players.push(this);
DC_onNextRound = mx.utils.Delegate.create(this, onNextRound);
DC_onColision = mx.utils.Delegate.create(this, onColision);
m_owermc = _mc;
_mc.linkParticle = mx.utils.Delegate.create(this, linkParticle);
thinking(false);
m_hp = new xuecao(_mc);
m_hp.setXY(0, 20);
m_weapons = new Object();
PlayerSystem.dispater.addEventListener(PlayerSystem.ON_NEXT_ROUND, DC_onNextRound);
}
static function addEventListener() {
dispater.addEventListener.apply(dispater, arguments);
}
static function removeEventListener() {
dispater.removeEventListener.apply(dispater, arguments);
}
static function dispatchEvent(_obj) {
dispater.dispatchEvent(_obj);
}
static function clearAllListener() {
dispater = new mx.events.EventDispatcher();
}
static function init(_mc, _needai, faceFlag) {
return(new Player(_mc, _needai, faceFlag));
}
static function checkHits(_ball) {
for (var _local1 in players) {
if (players[_local1].checkHit(_ball)) {
return(players[_local1]);
}
}
}
static function checkMovieClipHit(_mc) {
var _local1 = new Array();
for (var _local3 in players) {
if (players[_local3].m_owermc.hitTest(_mc)) {
_local1.push(players[_local3]);
}
}
return(_local1);
}
static function checkPointHit(_dx, _dy, _dr) {
if (_dr == undefined) {
_dr = 10;
}
var _local5 = new Array();
for (var _local7 in players) {
if (players[_local7].checkHit({curr:{x:_dx, y:_dy}, radius:_dr})) {
_local5.push(players[_local7]);
}
}
return(_local5);
}
static function delPlayer(_p) {
for (var _local2 in players) {
if (players[_local2] == _p) {
players.splice(_local2, 1);
PlayerSystem.delHerosIn(_p);
}
}
}
static function clear() {
players = new Array();
}
function set camp(_obj) {
m_camp = _obj;
if (m_camp.isAi) {
m_owermc.playerflag.gotoAndStop("com");
} else {
m_owermc.playerflag.gotoAndStop(playerFlags[Number(m_camp.sernum)]);
}
//return(camp);
}
function get camp() {
return(m_camp);
}
function get name() {
return(m_owermc._name);
}
function set power(_num) {
if (_num > 40) {
_num = 40;
} else if (_num < 1) {
_num = 1;
}
_num = int(_num);
m_power = _num;
if (POWER_SHOWER == undefined) {
m_owermc.anim.Arrow.Fleche.visual.gotoAndStop(_num);
} else {
POWER_SHOWER.setPower(_num);
}
paintLine();
//return(power);
}
function get power() {
return(m_power);
}
function set arrowRotation(_num) {
if (_num < -90) {
_num = -90;
} else if (_num > 90) {
_num = 90;
}
m_arrowRotation = _num;
setArrowRoationAdd(_num);
paintLine();
//return(arrowRotation);
}
function get arrowRotation() {
return(m_arrowRotation);
}
function get x() {
return(m_p.curr.x);
}
function get y() {
return(m_p.curr.y);
}
function setRelease(_num) {
m_release = m_release + _num;
}
function onNextRound() {
for (var _local2 in m_wpEff) {
m_wpEff[_local2][1]--;
if (m_wpEff[_local2][1] <= 0) {
m_wpEff.splice(_local2, 1);
}
}
}
function addEffect(_obj, _times) {
trace("add a eff");
m_wpEff.push([_obj, _times]);
trace(m_wpEff.length);
}
function setWeaponsRef(_obj) {
m_weapons = _obj;
}
function paintLine() {
var _local2 = ball.getVector(m_nowSide, m_arrowRotation + 180, power);
Map.currentMap.paintShotline(x, y, _local2.x, _local2.y);
}
function linkParticle(_p) {
m_p = _p;
m_owermc.onEnterFrame = function () {
this._x = _p.curr.x;
this._y = _p.curr.y + (_p.height / 2);
};
}
function readyToAttack() {
m_arrowRotation = 0;
m_power = 1;
currentPlayer = this;
if (m_release == 0) {
setAttackStyle(1);
return(true);
}
m_release--;
return(false);
}
function setAttackStyle(_str) {
if (m_owermc.lockFace) {
m_owermc.lockFace = false;
return(undefined);
}
if (_str == undefined) {
m_owermc.gotoAndStop("Attack");
m_owermc.anim.gotoAndPlay(1);
} else {
m_owermc.gotoAndStop(_str);
}
}
function thinking(_b) {
m_owermc.Waiting._visible = _b;
}
function renderPower() {
power = power + pwoerflag;
if (power == 40) {
pwoerflag = -1;
} else if (power == 1) {
pwoerflag = 1;
}
}
function shot(_style, _whenHitStyle, _func, _attackstyle) {
m_owermc.anim.play();
m_owermc.LaunchAttack = function (_needSetcurrentBall) {
var _local2 = new ball(this.x, this.y, 10, ball.getVector(this.m_nowSide, this.m_arrowRotation + 180, this.power), _style, "c", this, _needSetcurrentBall);
_local2.myMc.LunchAttack = _func;
_local2.myMc.style = _attackstyle;
if (_whenHitStyle) {
_local2.hitStyle = _whenHitStyle;
}
_local2.addEventListener(ball.ON_COLLISION, this.DC_onColision);
};
m_owermc.LaunchAttack = mx.utils.Delegate.create(this, m_owermc.LaunchAttack);
}
function getAttackPower() {
var _local2 = 0;
for (var _local3 in m_wpEff) {
if (m_wpEff[_local3][0].att != undefined) {
_local2 = _local2 + m_wpEff[_local3][0].att;
}
}
return(m_att + _local2);
}
function hit(_baseDamage, _style, _needRenderTo) {
if (_needRenderTo) {
Game.currentGame._map.render(x, y, true);
}
if (_style == undefined) {
m_owermc.gotoAndStop("Hurt");
} else {
m_owermc.gotoAndStop(_style);
}
var _local2 = getHitDamage(_baseDamage);
if (m_hp.hitBy(_local2)) {
m_stats = "die";
m_owermc.gotoAndStop("Die");
delete m_owermc.onEnterFrame;
delPlayer(this);
trace("delete player==============================");
}
dispatchEvent({type:ON_HIT, damage:_local2, ref:this});
}
function getHitDamage(_baseDamage) {
var _local2 = 0;
var _local3 = 0;
for (var _local4 in m_wpEff) {
if (m_wpEff[_local4][0].att != undefined) {
_local2 = _local2 + m_wpEff[_local4][0].att;
}
if (m_wpEff[_local4][0].def != undefined) {
_local3 = _local3 + m_wpEff[_local4][0].def;
}
}
var _local5 = new Object();
_local5.attack = ((_baseDamage - m_def) + _local2) + _local3;
if (_local5.attack < 0) {
_local5.attack = 1;
}
return(_local5);
}
function jumpUp(_i) {
if (m_p.prev == m_p.curr) {
m_p.fall();
m_p.prev.y = m_p.prev.y + _i;
}
}
function moveUp(_i) {
m_p.curr.y = m_p.curr.y - _i;
m_p.prev.y = m_p.curr.y;
}
function walkRight(_i) {
changeSide("right");
m_p.movex(_i);
}
function walkLeft(_i) {
changeSide("left");
m_p.movex(-_i);
}
function moveRight(_i) {
if (m_p.curr.x < (Map.CAMARA_CENTER_X + Map.currentMap.__get__length())) {
m_p.curr.x = m_p.curr.x + _i;
m_p.prev.x = m_p.curr.x;
}
}
function moveLeft(_i) {
if (m_p.curr.x > 0) {
m_p.curr.x = m_p.curr.x - _i;
m_p.prev.x = m_p.curr.x;
}
}
function moveDown(_i) {
m_p.curr.y = m_p.curr.y + _i;
m_p.prev.y = m_p.curr.y;
}
function fall() {
m_p.fall();
}
function onColision(e) {
PlayerSystem.startNextAttack();
}
function changeSide(_str) {
if (m_nowSide != _str) {
m_nowSide = _str;
m_owermc.playerflag._xscale = -m_owermc.playerflag._xscale;
m_owermc._xscale = -m_owermc._xscale;
m_hp.mymc._xscale = -m_hp.mymc._xscale;
} else {
return(undefined);
}
}
function saveObject() {
var _local2 = new Object();
_local2.att = m_att;
_local2.def = m_def;
_local2.weapons = m_weapons.slice();
return(_local2);
}
function readObject(_o) {
m_att = _o.att;
m_def = _o.def;
m_weapons = _o.weapons;
}
function checkHit(_b) {
return((Math.abs(_b.curr.x - m_p.curr.x) < ((m_p.width / 2) + _b.radius)) && (Math.abs(_b.curr.y - m_p.curr.y) < ((m_p.height / 2) + _b.radius)));
}
function setArrowRoationAdd(_num) {
m_owermc.anim.Arrow.gotoAndStop(Math.round((_num + 90) / 2));
}
static var playerFlags = new Array(3);
static var dispater = new mx.events.EventDispatcher();
static var players = new Array();
static var ON_HIT = "on_hit";
static var MAXPOWER = 40;
var m_nowSide = "right";
var m_arrowRotation = 0;
var m_power = 1;
var m_stats = "live";
var m_def = 0;
var m_att = 0;
var m_wpEff = new Array();
var m_weapons = new Object();
var m_release = 0;
var pwoerflag = 1;
}
Symbol 1938 MovieClip [__Packages.PlayerSystem] Frame 0
class PlayerSystem extends mx.events.EventDispatcher
{
static var userCamp, currentCamp;
var id, initObject, sernum, heros, weapons, dispatchEvent;
function PlayerSystem (_id, _isAi, _adaptor, _weapons, _initObject, _sernum) {
super();
id = _id;
initObject = _initObject;
sernum = _sernum;
heros = new Array();
if (_isAi != null) {
isAi = _isAi;
}
if (!isAi) {
userCamp = this;
}
if (_adaptor != undefined) {
adaptor = _adaptor;
}
if (_weapons != undefined) {
weapons = _weapons;
}
}
static function clear() {
userContorlNumber = 0;
currentCamp = undefined;
Camps = new Array();
}
static function addCamp(_ps) {
for (var _local2 in Camps) {
if (Camps[_local2].id == _ps.id) {
return(undefined);
}
}
Camps.push(_ps);
_ps.index = Camps.length - 1;
}
static function delCamp(_camp) {
for (var _local2 in Camps) {
if (Camps[_local2] == _camp) {
Camps.splice(_local2, 1);
}
}
for (var _local2 in Camps) {
Camps[_local2].index = Number(_local2);
}
}
static function addHerosIn(_id, _obj) {
for (var _local1 in Camps) {
if (Camps[_local1].id == _id) {
Camps[_local1].addHeros(_obj);
return(undefined);
}
}
}
static function delHerosIn(_obj) {
_obj.camp.delHeors(_obj);
trace("delete hearos..................." + _obj.camp.heros.length);
if (_obj.camp.heros.length <= 0) {
delCamp(_obj.camp);
}
}
static function initStagePlayer(currentGame, stageIndex, controlPlayers, allPlayers) {
var _local1 = StageData["camps" + stageIndex];
for (var _local8 in _local1) {
if ((!controlPlayers[_local8]) && (allPlayers[_local8])) {
addCamp(new PlayerSystem("c" + _local8, true, _local1[_local8].adaptor, _local1[_local8].weapons, _local1[_local8], _local8));
} else if (allPlayers[_local8]) {
userContorlNumber++;
addCamp(new PlayerSystem("c" + _local8, false, _local1[_local8].adaptor, _local1[_local8].weapons, _local1[_local8], _local8));
}
}
for (var _local8 in allPlayers) {
if (allPlayers[_local8]) {
for (var _local7 in _local1[_local8].heros) {
var _local2 = _local1[_local8].heros[_local7];
var _local3 = currentGame.addPlayer(_local2.x, _local2.y, MEN_WIDTH, MEN_HEIGHT, _local2.flag, controlPlayers[_local8]);
addHerosIn("c" + _local8, _local3);
}
}
}
}
static function getMyAttackLine(_myname) {
var _local1 = new Array();
for (var _local2 in Camps) {
if (Camps[_local2].id != _myname) {
_local1.push(Camps[_local2]);
}
}
return([_local1[random(_local1.length)]]);
}
static function startNextAttack(_id) {
dispater.dispatchEvent({type:ON_NEXT_ROUND});
if (_id) {
} else {
if (currentCamp == null) {
currentCamp = Camps[Camps.length - 1];
} else {
currentCamp = Camps[(currentCamp.index + 1) % Camps.length];
}
trace("currentCamp:" + currentCamp.id);
currentCamp.attack();
}
}
function addHeros(_obj) {
for (var _local3 in heros) {
if (heros[_local3] == _obj) {
return(undefined);
}
}
_obj.camp = this;
if (initObject.att != undefined) {
_obj.m_att = initObject.att;
if (isAi) {
_obj.m_att = _obj.m_att * 1.1;
_obj.m_att = int(_obj.m_att);
}
}
if (initObject.def != undefined) {
_obj.m_def = initObject.def;
_obj.m_def = _obj.m_def * 1.05;
_obj.m_def = int(_obj.m_def);
}
heros.push(_obj);
}
function delHeors(_obj) {
trace("\u5220\u9664\u4E00\u4E2A\u4EBA\u7269");
for (var _local2 in heros) {
if (heros[_local2] == _obj) {
heros.splice(_local2, 1);
}
}
}
function includeHero(_obj) {
for (var _local2 in heros) {
if (heros[_local2] == _obj) {
return(true);
}
}
return(false);
}
function attack() {
var _local2 = Adaptor.Adaptors[adaptor];
_local2.activate = !isAi;
_local2.attack(this, isAi);
dispatchEvent({type:"attack"});
}
static var saveObject = new Object();
static var dispater = new mx.events.EventDispatcher();
static var ON_NEXT_ROUND = "on_next_round";
static var MEN_HEIGHT = 80;
static var MEN_WIDTH = 30;
static var Camps = [];
static var userContorlNumber = 0;
var adaptor = "default";
var isAi = false;
}
Symbol 1939 MovieClip [__Packages.Adaptor] Frame 0
class Adaptor
{
function Adaptor (_id) {
Adaptors[_id] = this;
}
static function addEventListener() {
dispater.addEventListener.apply(dispater, arguments);
}
static function removeEventListener() {
dispater.removeEventListener.apply(dispater, arguments);
}
static function dispatchEvent(_obj) {
dispater.dispatchEvent(_obj);
}
static function clearAllListener() {
dispater = new mx.events.EventDispatcher();
}
function set activate(_b) {
m_activate = _b;
if (_b) {
Activate();
} else {
UnActivate();
}
//return(activate);
}
function get activate() {
return(m_activate);
}
function Activate() {
}
function UnActivate() {
}
static var SKILL_USED = "SKILL_USED";
static var Adaptors = {};
static var dispater = new mx.events.EventDispatcher();
var m_activate = false;
}
Symbol 1940 MovieClip [__Packages.xuecao] Frame 0
class xuecao
{
var mymc, lockmc;
function xuecao (_mc) {
trace("attack for:" + _mc);
mymc = _mc.attachMovie("xuecao", nextID(), _mc.getNextHighestDepth());
mymc.stop();
mymc._xscale = 50;
mymc._yscale = 50;
}
function get _hp() {
return(mymc._currentframe);
}
function nextID() {
return("xuecao" + (ID++));
}
function setHP(_num) {
trace("setHP call:" + _num);
if (_num == 100) {
delete eval (mymc.onEnterFrame());
mymc.gotoAndStop(1);
}
var _local2 = Math.round(_num);
if (_local2 > 99) {
_local2 = 99;
} else if (_local2 < 0) {
_local2 = 0;
}
mymc.goto = 100 - _local2;
if (mymc.goto > 100) {
mymc.goto = 100;
} else if (mymc.goto < 1) {
mymc.goto = 1;
}
mymc.loseHP = oldHP - _num;
oldHP = _num;
mymc.txt.play();
mymc.txt.txt.num = -mymc.loseHP;
mymc.play();
mymc.onEnterFrame = function () {
if (this._currentframe >= this.goto) {
this.stop();
delete eval (this.mymc.onEnterFrame());
}
};
}
function showText(_str) {
trace("lose:" + _str);
}
function setVisible(_v) {
}
function setXY(__x, __y) {
mymc._x = __x;
mymc._y = __y;
trace(("call" + __x) + __y);
}
function lockMC(_mc) {
lockmc = _mc;
_mc.lockbyHP = true;
}
function hitBy(_o) {
trace("hit byu call:" + setHP);
var _local2 = oldHP - _o.attack;
if (_local2 < 0) {
_local2 = 0;
}
setHP(_local2);
if (_local2 == 0) {
return(true);
}
return(false);
}
static var ID = 0;
var oldHP = 100;
}
Symbol 1941 MovieClip [__Packages.ball] Frame 0
class ball extends mx.events.EventDispatcher
{
static var currentBall, currentTurBall;
var DC_onCollision, DC_onEnterFrame, engine, myp, myMc, ballFrom, m_effect, hitStyle, dispatchEvent;
function ball (x, y, r, v, s, c, p, _ns) {
super();
if (_ns == undefined) {
_ns = 3;
}
trace("create ball:" + _ns);
ballid++;
DC_onCollision = mx.utils.Delegate.create(this, onCollision);
DC_onEnterFrame = mx.utils.Delegate.create(this, onEnterFrame);
engine = Game.currentGame.engine;
var _p = (new org.cove.flade.primitives.CircleParticle(x, y, r));
_p.prev.plus(v);
engine.addPrimitive(_p);
if (_ns & true) {
currentBall = _p;
currentTurBall = this;
}
trace("_ns & 2:" + (_ns & 2));
if ((_ns & 2) == 0) {
dispathEvent = false;
} else {
dispathEvent = true;
}
myp = _p;
myMc = Game.currentGame._owner.attachMovie(s, s + ballid, Game.currentGame._owner.getNextHighestDepth());
trace((("mc is create:" + myMc) + " dispathEvent ") + dispathEvent);
myMc._p = _p;
myMc.onEnterFrame = function () {
if (_p.curr.x < _p.prev.x) {
this._xscale = -100;
} else if (_p.curr.x > _p.prev.x) {
this._xscale = 100;
}
this._x = _p.curr.x;
this._y = _p.curr.y;
trace((this + "this._x:") + this._x);
};
ballFrom = p;
_p.myMC = myMc;
_p.addEventListener(org.cove.flade.primitives.Particle.ON_COLLISION, DC_onCollision);
com.HelloAS.util.TimeLine.addEventListener(com.HelloAS.util.TimeLine.ENTER_FRAME, DC_onEnterFrame);
}
static function clear() {
currentBall = undefined;
}
function setEffet(_obj) {
m_effect = _obj;
}
function onEnterFrame() {
try {
var _local2 = Player.checkHits(myp);
if (_local2 && (_local2 != ballFrom)) {
myp.removeEventListener(org.cove.flade.primitives.Particle.ON_COLLISION, DC_onCollision);
com.HelloAS.util.TimeLine.removeEventListener(com.HelloAS.util.TimeLine.ENTER_FRAME, DC_onEnterFrame);
myp.myMC.playSound();
if (m_effect) {
_local2.addEffect(m_effect[0], m_effect[1]);
}
if (currentTurBall == this) {
currentBall = undefined;
currentTurBall = undefined;
}
if ((myp.myMC.style == "normal") || (myp.myMC._totalframes == 1)) {
_local2.hit.apply(_local2, [ballFrom.getAttackPower(), hitStyle]);
engine.removePrimitive(myp);
myp.dmc.removeMovieClip();
if (myp.myMC.style == "bs") {
new com.HelloAS.util.setTimeOut(DC_onCollision, 6000, null, {ref:myp, hit:_local2});
} else {
new com.HelloAS.util.setTimeOut(DC_onCollision, 3000, null, {ref:myp, hit:_local2});
}
myp.myMC.removeMovieClip();
} else {
if (myp.myMC._totalframes == 3) {
_local2.hit.apply(_local2, [ballFrom.getAttackPower(), hitStyle]);
}
trace("\u5230\u8FD9\u4E86");
myp.myMC.DC_onCollision = DC_onCollision;
myp.myMC.gotoAndPlay(2);
}
} else if (!Map.currentMap.checkInWord(myp.curr.x, myp.curr.y)) {
trace("\u4E0D\u5728\u4E86");
engine.removePrimitive(myp);
myp.myMC.removeMovieClip();
myp.dmc.removeMovieClip();
myp.removeEventListener(org.cove.flade.primitives.Particle.ON_COLLISION, DC_onCollision);
com.HelloAS.util.TimeLine.removeEventListener(com.HelloAS.util.TimeLine.ENTER_FRAME, DC_onEnterFrame);
DC_onCollision({ref:myp});
}
} catch(e) {
trace("\u62A5\u9519\u4E86\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002");
}
}
function onCollision(e) {
trace("\u53C8\u5230\u8FD9\u4E86");
trace((("dispatchEvent::::::::::::::::::::::::" + e.ref.myMC) + "__") + e.ref.myMC.style);
if (e == undefined) {
e = new Object();
e.ref = myp;
}
e.ref.removeEventListener(org.cove.flade.primitives.Particle.ON_COLLISION, DC_onCollision);
com.HelloAS.util.TimeLine.removeEventListener(com.HelloAS.util.TimeLine.ENTER_FRAME, DC_onEnterFrame);
currentBall = undefined;
currentTurBall = undefined;
engine.removePrimitive(e.ref);
e.ref.dmc.removeMovieClip();
trace(myp.myMC.style);
trace(myp.myMC._totalframes);
if (((myp.myMC.style == "normal") || (e.ref.myMC._totalframes == undefined)) || (e.ref.myMC._totalframes == 1)) {
trace("\u8FDB\u53BB\u4E86 " + dispathEvent);
if (dispathEvent) {
trace("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
dispatchEvent({type:ON_COLLISION, ref:this, hit:e.hit});
}
myp.myMC.removeMovieClip();
} else {
if (myp.myMC == undefined) {
return(undefined);
}
e.ref.myMC.gotoAndStop(2);
var _local2 = function () {
trace("\u6709\u8C03\u7528\u5230\u5E7F\u64AD\u4E8B\u4EF6\u554A\u3002\u9760\u3002\u3002");
this.dispatchEvent({type:ball.ON_COLLISION, ref:this, hit:e.hit});
};
trace("\u6709\u6DFB\u52A0\u4E8B\u4EF6\u554A\u3002\u9760\u3002\u3002");
e.ref.myMC.dispatchEvent = mx.utils.Delegate.create(this, _local2);
}
}
static function getVector(_s, _r, _p) {
_r = (Math.PI/180) * (_r - 90);
if (_s == "right") {
return(new org.cove.flade.util.Vector((-Math.sin(_r)) * _p, (-Math.cos(_r)) * _p));
}
return(new org.cove.flade.util.Vector(Math.sin(_r) * _p, (-Math.cos(_r)) * _p));
}
static var ON_COLLISION = "ball_on_collision";
var dispathEvent = true;
static var ballid = 1;
}
Symbol 1942 MovieClip [__Packages.com.HelloAS.util.setTimeOut] Frame 0
class com.HelloAS.util.setTimeOut
{
function setTimeOut (_fun, _delay, _obj, _para) {
var obj = new Object();
var aa = arguments;
aa.shift();
aa.shift();
aa.shift();
var _local2 = function (_para) {
clearInterval(obj.myinter);
_fun.apply(_obj, aa);
};
obj.myinter = setInterval(_local2, _delay, _para);
}
}
Symbol 1943 MovieClip [__Packages.IAdaptor] Frame 0
interface IAdaptor
{
}
Symbol 1944 MovieClip [__Packages.DefaultAdaptor] Frame 0
class DefaultAdaptor extends Adaptor implements IAdaptor
{
var DC_checkKeyDown, DC_onClickSkill, DC_onUserWeapon, DC_onNextRound, controlPlayer, controlCamp, currentSkill;
function DefaultAdaptor () {
super("default");
DC_checkKeyDown = mx.utils.Delegate.create(this, checkKeyDown);
DC_onClickSkill = mx.utils.Delegate.create(this, onClickSkill);
DC_onUserWeapon = mx.utils.Delegate.create(this, onUserWeapon);
DC_onNextRound = mx.utils.Delegate.create(this, onNextRound);
PlayerSystem.dispater.addEventListener(PlayerSystem.ON_NEXT_ROUND, DC_onNextRound);
myListener.onKeyUp = mx.utils.Delegate.create(this, checkKeyUp);
myListener.onKeyDown = mx.utils.Delegate.create(this, onKeyDown);
Player.addEventListener(Player.ON_HIT, mx.utils.Delegate.create(this, onHitOne));
}
function get attackFunction() {
var _local2 = this[controlPlayer.attackFunction];
if (_local2 == undefined) {
_local2 = normalAttack;
} else {
_local2 = this[controlPlayer.attackFunction];
}
_local2 = mx.utils.Delegate.create(this, _local2);
return(_local2);
}
function onHitOne(e) {
controlCamp.initObject.con = controlCamp.initObject.con + 20;
_root.playerCoins.text = controlCamp.initObject.con;
trace("showind2:" + controlPlayer.name);
trace("!!!!!!!!!!!!!!!!!!!!==========" + Player.players.length);
if (controlPlayer.name) {
_root.playerAtk.text = controlPlayer.m_att;
_root.playerDef.text = controlPlayer.m_def;
}
}
function onNextRound() {
_root.playerCoins.text = controlCamp.initObject.con;
if ((PlayerSystem.userCamp.heros.length <= 0) && (PlayerSystem.userContorlNumber == 1)) {
_root.gameoverMc._y = 10;
_root.gameoverMc.gameOver();
isGameGoing = false;
_root.paopao._visible = false;
} else if (PlayerSystem.Camps.length <= 1) {
_root.gamewinMc._y = 10;
isGameGoing = false;
if (_root.stageIndex == 8) {
_root.gotoAndStop("gameWin");
} else {
_root.gotoAndStop("gameWin" + PlayerSystem.Camps[0].heros[0].m_mcflag);
}
}
}
function attack(pl, _isAI) {
if (!isGameGoing) {
isGameGoing = true;
return(undefined);
}
Game.currentGame.checkScreenMove = true;
Game.currentSS.enabled = true;
controlPlayer = pl.heros[0];
_root[controlPlayer.m_mcflag + "mc"].play();
_root.playerAtk.text = controlPlayer.m_att;
_root.playerDef.text = controlPlayer.m_def;
_root.header.gotoAndStop(controlPlayer.m_mcflag);
if (pl.initObject.con == undefined) {
pl.initObject.con = 0;
}
_root.playerCoins.text = pl.initObject.con;
controlPlayer.readyToAttack();
controlCamp = pl;
Game.currentSS.updateWeapons(pl.weapons);
Map.currentMap.render(controlPlayer.x, controlPlayer.y, true);
Adaptor.clearAllListener();
Adaptor.addEventListener(Adaptor.SKILL_USED, DC_onUserWeapon);
if (_isAI) {
new com.HelloAS.util.setTimeOut(wakeupAI, 2000 + random(1000), this, pl);
} else {
_root.paopao._visible = true;
trace(_root.paopao + "::::::::::::::::::::");
Game.currentSS.addEventListener(SkillSelecter.ON_CLICK_SKILL, DC_onClickSkill);
isActivate = true;
com.HelloAS.util.TimeLine.removeEventListener(com.HelloAS.util.TimeLine.ENTER_FRAME, DC_checkKeyDown);
com.HelloAS.util.TimeLine.addEventListener(com.HelloAS.util.TimeLine.ENTER_FRAME, DC_checkKeyDown);
}
var _local4 = new TimeCounter(_root.timeCount);
_local4.StartCounter(25);
_local4.whenTimeOver = mx.utils.Delegate.create(this, timeOver);
}
function timeOver() {
var _local3 = currentSkill.timeOver();
currentSkill = undefined;
controlPlayer.setAttackStyle(1);
UnActivate();
if (!_local3) {
new com.HelloAS.util.setTimeOut(PlayerSystem.startNextAttack, 3000);
}
_root.timeisOverMC.play();
}
function onUserWeapon(e) {
controlCamp.weapons[e.name]--;
Game.currentSS.updateWeapons(controlCamp.weapons);
}
function Activate() {
}
function onClickSkill(e) {
if ((!isActivate) || (Game.currentGame.isStop)) {
return(undefined);
}
_root.paopao._visible = false;
var _local4 = _global.Skills[e.name];
currentSkill = new _local4[undefined](this);
currentSkill.doAttack(controlCamp);
com.HelloAS.util.TimeLine.removeEventListener(com.HelloAS.util.TimeLine.ENTER_FRAME, DC_checkKeyDown);
com.HelloAS.util.TimeLine.addEventListener(com.HelloAS.util.TimeLine.ENTER_FRAME, DC_checkKeyDown);
Key.removeListener(myListener);
Key.addListener(myListener);
}
function UnActivate() {
TimeCounter.clearInter();
com.HelloAS.util.TimeLine.removeEventListener(com.HelloAS.util.TimeLine.ENTER_FRAME, DC_checkKeyDown);
Key.removeListener(myListener);
isActivate = false;
currentSkill = undefined;
}
function checkKeyUp() {
if ((!isActivate) || (Game.currentGame.isStop)) {
return(undefined);
}
var _local2 = Key.getCode();
keyUP(_local2);
}
function onKeyDown() {
if ((!isActivate) || (Game.currentGame.isStop)) {
return(undefined);
}
var _local2 = Key.getCode();
keyDOWN(_local2);
}
function keyDOWN(keyCode) {
switch (keyCode) {
case 38 :
currentSkill.onUP1();
break;
case 40 :
currentSkill.onDOWN1();
break;
case 37 :
currentSkill.onLEFT1();
break;
case 39 :
currentSkill.onRIGHT1();
break;
case 32 :
Game.currentSS.enabled = false;
currentSkill.onENTER1();
}
}
function keyUP(keyCode) {
switch (keyCode) {
case 38 :
currentSkill.upUP();
break;
case 40 :
currentSkill.upDOWN();
break;
case 37 :
currentSkill.upLEFT();
break;
case 39 :
currentSkill.upRIGHT();
break;
case 32 :
currentSkill.upENTER();
}
}
function wakeupAI(pl) {
controlPlayer.thinking(true);
if ((random(5) == 0) && (controlCamp.weapons.coinAttack > 0)) {
controlPlayer.attackFunction = "coinAttack";
} else {
controlPlayer.attackFunction = undefined;
}
attackFunction(pl, true);
}
function normalAttack(pl) {
var _local2 = new Object();
_local2.onResult = function (_a, _p, _s) {
_a = _a - random(5);
_p = _p + (random(4) - 2);
Game.tweens = [];
Game.tweens.push(new mx.transitions.Tween(this.controlPlayer, "arrowRotation", mx.transitions.easing.Regular.easeOut, this.controlPlayer.arrowRotation, _a, 3, true));
var _local2 = new mx.transitions.Tween(this.controlPlayer, "power", mx.transitions.easing.Regular.easeOut, this.controlPlayer.power, _p, 5, true);
_local2.controlPlayer = this.controlPlayer;
_local2.onMotionFinished = function () {
TimeCounter.clearInter();
Game.tweens = [];
Game.currentGame.checkScreenMove = false;
this.controlPlayer.shot("dangaoAttackmc");
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:"dangaoAttack"});
};
Game.tweens.push(_local2);
this.controlPlayer.setAttackStyle();
this.controlPlayer.thinking(false);
this.controlPlayer.changeSide(_s);
};
_local2.noway = function () {
this.flyAttack();
};
_local2.usedBang = function (_s) {
trace("bangBangAttack:" + this.bangBangAttack);
this.bangBangAttack(_s);
};
_local2.onResult = mx.utils.Delegate.create(this, _local2.onResult);
_local2.noway = mx.utils.Delegate.create(this, _local2.noway);
_local2.usedBang = mx.utils.Delegate.create(this, _local2.usedBang);
getMyAttackOrder(pl, _local2);
}
function bangBangAttack(_s) {
var _local3 = _global.Skills.bangbangAttack;
currentSkill = new _local3[undefined](this);
controlPlayer.changeSide(_s);
currentSkill.doAttack(controlCamp);
new com.HelloAS.util.setTimeOut(currentSkill.onENTER1, random(1000) + 1000, currentSkill);
}
function coinAttack() {
if (controlCamp.weapons.coinAttack <= 0) {
return(undefined);
}
var _local3 = _global.Skills.coinAttack;
currentSkill = new _local3[undefined](this, true);
currentSkill.doAttack(controlCamp);
var _local4 = currentSkill.onENTER1();
new com.HelloAS.util.setTimeOut(_local4.stop_btn.onPress2, random(2000) + 1000, null);
}
function flyAttack() {
if (controlCamp.weapons.flyAttack <= 0) {
return(undefined);
}
var _local3 = _global.Skills.flyAttack;
currentSkill = new _local3[undefined](this);
currentSkill.doAttack();
var needx = Map.currentMap.aipoints[random(Map.currentMap.aipoints.length)][0];
var needy = Map.currentMap.aipoints[random(Map.currentMap.aipoints.length)][1];
var aicontrlofly = function () {
if (this.controlPlayer.y > needy) {
this.currentSkill.onUP();
} else if ((this.controlPlayer.x - needx) > 10) {
this.currentSkill.onLEFT();
} else if ((this.controlPlayer.x - needx) < -10) {
this.currentSkill.onRIGHT();
} else if (this.controlPlayer.y <= needy) {
this.currentSkill.onENTER();
com.HelloAS.util.TimeLine.removeEventListener(com.HelloAS.util.TimeLine.ENTER_FRAME, aicontrlofly);
}
};
aicontrlofly = mx.utils.Delegate.create(this, aicontrlofly);
com.HelloAS.util.TimeLine.addEventListener(com.HelloAS.util.TimeLine.ENTER_FRAME, aicontrlofly);
}
function getMyAttackOrder(pl, resultObject) {
var _local14 = PlayerSystem.getMyAttackLine(pl.id)[0];
var _local11 = pl.heros[0];
var _local12 = _local14.heros[0];
var _local7 = _local11.x - _local12.x;
var _local8 = "right";
if (_local7 > 0) {
_local8 = "left";
}
if ((Math.abs(_local7) <= 100) && (Math.abs(_local11.y - _local12.y) <= 40)) {
if (controlCamp.weapons.bangbangAttack > 0) {
resultObject.usedBang(_local8);
return(undefined);
}
}
var _local10 = 20;
var _local9 = false;
var _local6 = _local10;
while (_local6 <= 40) {
_local7 = Math.abs(_local7);
var _local2 = 89;
while (_local2 > -90) {
var _local4 = ball.getVector(_local8, _local2 + 180, _local10);
var _local3 = Math.abs(_local7 / _local4.x);
var _local5 = (_local11.y + ((-_local4.y) * _local3)) + ((0.25 * _local3) * _local3);
if ((_local5 - _local12.y) <= 5) {
resultObject.onResult(_local2, _local6, _local8);
_local9 = true;
break;
}
_local2--;
}
if (_local9) {
break;
}
_local6++;
}
if (!_local9) {
resultObject.noway();
}
return(resultObject);
}
function checkKeyDown() {
if ((!isActivate) || (Game.currentGame.isStop)) {
return(undefined);
}
if (Key.isDown(38)) {
currentSkill.onUP();
} else if (Key.isDown(40)) {
currentSkill.onDOWN();
} else if (Key.isDown(37)) {
currentSkill.onLEFT();
} else if (Key.isDown(39)) {
currentSkill.onRIGHT();
} else if (Key.isDown(32)) {
currentSkill.onENTER();
}
}
static var tweens = [];
var myListener = new Object();
var isActivate = false;
var isGameGoing = true;
}
Symbol 1945 MovieClip [__Packages.TimeCounter] Frame 0
class TimeCounter
{
static var inter;
var txt;
function TimeCounter (_txtFiled) {
clearInter();
txt = _txtFiled;
inter = setInterval(onTimer, 1000, this);
}
static function clearInter() {
clearInterval(inter);
}
function StartCounter(_num) {
num = _num;
txt.text = num;
}
function onTimer(_tc) {
if (Game.currentGame.isStop) {
return(undefined);
}
if (_tc.num > 0) {
_tc.num--;
if (_tc.num == 10) {
_root.hurryUP.play();
}
} else {
_tc.whenTimeOver();
clearInter();
}
_tc.txt.text = _tc.num;
}
static var isStop = false;
var num = 0;
}
Symbol 1946 MovieClip [__Packages.DefaultAdaptor2] Frame 0
class DefaultAdaptor2 extends Adaptor implements IAdaptor
{
var DC_checkKeyDown, DC_onClickSkill, DC_onUserWeapon, DC_onNextRound, controlPlayer, controlCamp, currentSkill;
function DefaultAdaptor2 () {
super("default2");
DC_checkKeyDown = mx.utils.Delegate.create(this, checkKeyDown);
DC_onClickSkill = mx.utils.Delegate.create(this, onClickSkill);
DC_onUserWeapon = mx.utils.Delegate.create(this, onUserWeapon);
DC_onNextRound = mx.utils.Delegate.create(this, onNextRound);
myListener.onKeyUp = mx.utils.Delegate.create(this, checkKeyUp);
myListener.onKeyDown = mx.utils.Delegate.create(this, onKeyDown);
PlayerSystem.dispater.addEventListener(PlayerSystem.ON_NEXT_ROUND, DC_onNextRound);
}
function get attackFunction() {
var _local2 = this[controlPlayer.attackFunction];
if (_local2 == undefined) {
_local2 = normalAttack;
} else {
_local2 = this[controlPlayer.attackFunction];
}
_local2 = mx.utils.Delegate.create(this, _local2);
return(_local2);
}
function attack(pl, _isAI) {
controlCamp = pl;
if (controlCamp.mynextattindx == undefined) {
controlCamp.mynextattindx = 0;
} else {
controlCamp.mynextattindx++;
}
for (var _local3 in Player.players) {
Player.players[_local3].m_owermc.cur._visible = false;
}
controlPlayer = pl.heros[controlCamp.mynextattindx % 2];
if (controlPlayer == undefined) {
PlayerSystem.startNextAttack();
return(undefined);
}
controlPlayer.m_owermc.cur._visible = true;
controlCamp.p.gotoAndStop(controlPlayer.m_mcflag);
controlCamp.c.text = controlCamp.initObject.con;
Game.currentSS.removeAllSkill();
trace(("is.." + controlPlayer.m_mcflag) + "Skills");
Game.currentSS.addSkills(SkillSelecter.ALL_SKILLS.concat(_root[controlPlayer.m_mcflag + "Skills"]));
Map.currentMap.render(controlPlayer.x, controlPlayer.y, true);
if (!controlPlayer.readyToAttack()) {
new com.HelloAS.util.setTimeOut(PlayerSystem.startNextAttack, 3000);
return(undefined);
}
Game.currentSS.updateWeapons(pl.weapons);
Game.currentGame.checkScreenMove = true;
if (_isAI) {
wakeupAI(pl);
} else {
com.HelloAS.util.TimeLine.removeEventListener(com.HelloAS.util.TimeLine.ENTER_FRAME, DC_checkKeyDown);
com.HelloAS.util.TimeLine.addEventListener(com.HelloAS.util.TimeLine.ENTER_FRAME, DC_checkKeyDown);
Game.currentSS.addEventListener(SkillSelecter.ON_CLICK_SKILL, DC_onClickSkill);
Adaptor.clearAllListener();
Adaptor.addEventListener(Adaptor.SKILL_USED, DC_onUserWeapon);
isActivate = true;
}
new CreateBox();
}
function timeOver() {
var _local3 = currentSkill.timeOver();
currentSkill = undefined;
controlPlayer.setAttackStyle(1);
UnActivate();
if (!_local3) {
new com.HelloAS.util.setTimeOut(PlayerSystem.startNextAttack, 3000);
}
_root.timeisOverMC.play();
}
function onNextRound() {
trace((("===================================onNextRound:" + PlayerSystem.Camps.length) + ":") + PlayerSystem.userCamp.heros.length);
if (_root._currentframe != 29) {
return(undefined);
}
if ((PlayerSystem.userCamp.heros.length <= 0) && (PlayerSystem.userContorlNumber == 1)) {
_root.gotoAndStop("gameOver");
} else if ((PlayerSystem.Camps.length <= 1) && (PlayerSystem.userCamp.heros.length > 0)) {
_root.gamewinMc._y = 10;
if (_root.stageIndex == 8) {
_root.winneris = PlayerSystem.Camps[0].heros[0].m_mcflag;
_root.gotoAndStop("gameWin");
} else {
_root.winneris = PlayerSystem.Camps[0].heros[0].m_mcflag;
_root.gotoAndStop("gameWinNext");
}
} else if (PlayerSystem.Camps.length <= 1) {
_root.winneris = PlayerSystem.Camps[0].heros[0].m_mcflag;
_root.gotoAndStop("gameWinNext");
}
}
function Activate() {
}
function onUserWeapon(e) {
controlCamp.weapons[e.name]--;
Game.currentSS.updateWeapons(controlCamp.weapons);
Player.POWER_SHOWER.setPower(1);
}
function onClickSkill(e) {
if (!isActivate) {
return(undefined);
}
if (Number(e.price) > controlCamp.initObject.con) {
return(undefined);
}
var _local3 = _global.Skills[e.name];
currentSkill = new _local3[undefined](this);
currentSkill.doAttack(controlCamp);
Key.removeListener(myListener);
Key.addListener(myListener);
}
function UnActivate() {
for (var _local3 in Player.players) {
Player.players[_local3].m_owermc.cur._visible = false;
}
TimeCounter.clearInter();
controlCamp.c.text = controlCamp.initObject.con;
isActivate = false;
Adaptor.clearAllListener();
com.HelloAS.util.TimeLine.removeEventListener(com.HelloAS.util.TimeLine.ENTER_FRAME, DC_checkKeyDown);
Key.removeListener(myListener);
currentSkill = undefined;
_root.power_show.gotoAndStop(1);
}
function checkKeyUp() {
if (controlPlayer.m_owermc.anim.Arrow == undefined) {
return(undefined);
}
var _local2 = Key.getCode();
keyUP(_local2);
}
function onKeyDown() {
if (controlPlayer.m_owermc.anim.Arrow == undefined) {
return(undefined);
}
var _local2 = Key.getCode();
keyDOWN(_local2);
}
function keyDOWN(keyCode) {
switch (keyCode) {
case 38 :
currentSkill.onUP1();
break;
case 40 :
currentSkill.onDOWN1();
break;
case 37 :
currentSkill.onLEFT1();
break;
case 39 :
currentSkill.onRIGHT1();
break;
case 32 :
currentSkill.onENTER1();
}
}
function keyUP(keyCode) {
switch (keyCode) {
case 38 :
currentSkill.upUP();
break;
case 40 :
currentSkill.upDOWN();
break;
case 37 :
currentSkill.upLEFT();
break;
case 39 :
currentSkill.upRIGHT();
break;
case 32 :
currentSkill.upENTER();
}
}
function wakeupAI(pl) {
controlPlayer.thinking(true);
attackFunction(pl);
}
function normalAttack(pl) {
var _this = this;
var _local3 = new Object();
_local3.onResult = function (_a, _p, _s) {
_a = _a - random(this.hitin[_root.stageIndex - 1]);
this.controlPlayer.setAttackStyle();
Game.tweens = [];
Game.tweens.push(new mx.transitions.Tween(this.controlPlayer, "arrowRotation", mx.transitions.easing.Regular.easeOut, this.controlPlayer.arrowRotation, _a, 3, true));
var _local3 = new mx.transitions.Tween(this.controlPlayer, "power", mx.transitions.easing.Regular.easeOut, this.controlPlayer.power, _p, 5, true);
_local3.controlPlayer = this.controlPlayer;
_local3.onMotionFinished = function () {
var _local2 = new Game.currentSS.m_skills[random(Game.currentSS.m_skills.length)].constantClass(_this);
trace("used " + _local2.name);
_local2.upENTER();
_root.power_show.gotoAndStop(1);
};
Game.tweens.push(_local3);
this.controlPlayer.thinking(false);
this.controlPlayer.changeSide(_s);
};
_local3.noway = function () {
trace("00000000000");
};
_local3.onResult = mx.utils.Delegate.create(this, _local3.onResult);
getMyAttackOrder(pl, _local3);
}
function getMyAttackOrder(pl, resultObject) {
var _local9 = PlayerSystem.getMyAttackLine(pl.id)[0];
var _local10 = controlPlayer;
var _local14 = 10000;
var _local12 = _local9.heros[0];
for (var _local16 in _local9.heros) {
if (Math.abs(_local9.heros[_local16].x - _local10.x) < _local14) {
_local12 = _local9.heros[_local16];
_local14 = Math.abs(_local9.heros[_local16].x - _local10.x);
}
}
var _local7 = _local10.x - _local12.x;
var _local8 = "right";
if (_local7 > 0) {
_local8 = "left";
}
var _local13 = 30;
var _local11 = false;
var _local6 = _local13;
while (_local6 <= 40) {
_local7 = Math.abs(_local7);
var _local2 = 89;
while (_local2 > -90) {
var _local4 = ball.getVector(_local8, _local2 + 180, _local13);
var _local3 = Math.abs(_local7 / _local4.x);
var _local5 = (_local10.y + ((-_local4.y) * _local3)) + ((0.25 * _local3) * _local3);
if ((_local5 - _local12.y) <= 5) {
resultObject.onResult(_local2, _local6, _local8);
_local11 = true;
break;
}
_local2--;
}
if (_local11) {
break;
}
_local6++;
}
if (!_local11) {
resultObject.noway();
} else {
trace("fined.....");
}
return(resultObject);
}
function checkKeyDown() {
if (Key.isDown(38)) {
if (currentSkill == undefined) {
controlPlayer.jumpUp(5);
controlPlayer.fall();
} else {
currentSkill.onUP();
}
}
if (Key.isDown(40)) {
currentSkill.onDOWN();
}
if (Key.isDown(37)) {
currentSkill = undefined;
controlPlayer.changeSide("left");
controlPlayer.setAttackStyle("walk");
controlPlayer.moveLeft(2);
controlPlayer.fall();
CreateBox.checkHits();
Map.currentMap.render(controlPlayer.x, controlPlayer.y);
} else if (Key.isDown(39)) {
currentSkill = undefined;
controlPlayer.changeSide("right");
controlPlayer.setAttackStyle("walk");
controlPlayer.moveRight(2);
controlPlayer.fall();
CreateBox.checkHits();
Map.currentMap.render(controlPlayer.x, controlPlayer.y);
} else if (currentSkill == undefined) {
controlPlayer.setAttackStyle(1);
}
if (Key.isDown(32)) {
if (controlPlayer.m_owermc.anim.Arrow == undefined) {
return(undefined);
}
currentSkill.onENTER();
}
}
var myListener = new Object();
var isActivate = false;
var hitin = [10, 7, 6, 5, 4, 3, 2, 0];
static var isStop = false;
}
Symbol 1947 MovieClip [__Packages.CreateBox] Frame 0
class CreateBox
{
var owner;
function CreateBox () {
for (var _local2 in Boxes) {
Boxes[_local2].timeToDel();
}
Boxes = new Array();
owner = Game.currentGame._owner.attachMovie(GiftBox, GiftBox + Game.currentGame._owner.getNextHighestDepth(), Game.currentGame._owner.getNextHighestDepth());
var _p = (new org.cove.flade.primitives.RectangleParticle(random(1300) + 200, 0, 10, 10));
Game.currentGame.engine.addPrimitive(_p);
owner._p = _p;
owner.timeToDel = mx.utils.Delegate.create(this, timeToDel);
owner.onEnterFrame = function () {
this._x = _p.prev.x;
this._y = _p.prev.y;
};
_p.addEventListener(org.cove.flade.primitives.Particle.ON_HIT, mx.utils.Delegate.create(this, onHit));
Boxes.push(this);
}
static function checkHits() {
for (var _local1 in Boxes) {
Boxes[_local1].checkHit();
}
}
function timeToDel() {
clear();
}
function onHit(e) {
Game.currentGame.engine.removePrimitive(e.ref);
owner.play();
checkHit();
}
function clear() {
for (var _local2 in Boxes) {
if (Boxes[_local2] == this) {
Boxes.splice(_local2, 1);
}
}
owner.removeMovieClip();
}
function pickUp(pl) {
var _local3 = Number(random(10) * 10) + 10;
pl.initObject.con = pl.initObject.con + _local3;
pl.c.text = pl.initObject.con;
owner.mon = "+" + _local3;
owner.monmc.play();
for (var _local2 in Boxes) {
if (Boxes[_local2] == this) {
Boxes.splice(_local2, 1);
}
}
}
function checkHit() {
for (var _local2 in Player.players) {
if (owner.box.hitTest(Player.players[_local2].m_owermc.anim)) {
pickUp(Player.players[_local2].camp);
break;
}
}
}
static var Boxes = new Array();
static var GiftBox = "GiftBox";
}
Symbol 1948 MovieClip [__Packages.Skills.IAttack] Frame 0
interface Skills.IAttack
{
}
Symbol 1949 MovieClip [__Packages.Skills.cs_bsAttack] Frame 0
class Skills.cs_bsAttack extends Skills.Attack implements Skills.IAttack
{
var controlPlayer, controlCamp, m_adaptor;
function cs_bsAttack (_a) {
super(_a);
}
function doAttack(pl) {
controlPlayer.setAttackStyle();
}
function onUP() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation + 2;
}
function onDOWN() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation - 2;
}
function onLEFT() {
controlPlayer.walkLeft(2);
}
function onRIGHT() {
controlPlayer.walkRight(2);
}
function onENTER() {
controlPlayer.renderPower();
}
function upENTER() {
controlPlayer.setAttackStyle("bs");
controlPlayer.m_owermc._visible = false;
Game.currentGame.checkScreenMove = false;
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:SKILL_NAME});
controlPlayer.shot("cs_bsAttack_mc", "hb_csbs", null, "bs");
controlPlayer.addEffect({att:60}, 1);
controlPlayer.m_owermc.LaunchAttack();
ball.currentTurBall.addEventListener(ball.ON_COLLISION, mx.utils.Delegate.create(this, onCollision));
controlCamp.initObject.con = controlCamp.initObject.con - 100;
m_adaptor.UnActivate();
}
function onCollision(e) {
trace("=========================================================:" + e.hit);
if (e.hit) {
} else {
controlPlayer.m_owermc.lockFace = false;
controlPlayer.m_owermc._visible = true;
controlPlayer.setAttackStyle(1);
}
}
static var SKILL_NAME = "cs_bsAttack";
}
Symbol 1950 MovieClip [__Packages.Skills.ball_bsAttack] Frame 0
class Skills.ball_bsAttack extends Skills.Attack implements Skills.IAttack
{
var controlPlayer, controlCamp, m_adaptor;
function ball_bsAttack (_a) {
super(_a);
}
function doAttack(pl) {
controlPlayer.setAttackStyle("bs");
}
function onUP() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation + 2;
}
function onDOWN() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation - 2;
}
function onLEFT() {
controlPlayer.walkLeft(2);
}
function onRIGHT() {
controlPlayer.walkRight(2);
}
function onENTER() {
controlPlayer.renderPower();
}
function upENTER() {
Game.currentGame.checkScreenMove = false;
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:SKILL_NAME});
controlPlayer.shot("ballAttack_mc", "hit");
controlPlayer.addEffect({att:8}, 1);
controlPlayer.m_owermc.anim.play();
var _local3 = function () {
trace("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
};
controlCamp.initObject.con = controlCamp.initObject.con - 100;
m_adaptor.UnActivate();
}
static var SKILL_NAME = "ball_bsAttack";
}
Symbol 1951 MovieClip [__Packages.Skills.pbAttack] Frame 0
class Skills.pbAttack extends Skills.Attack implements Skills.IAttack
{
var controlPlayer, controlCamp, m_adaptor;
function pbAttack (_a) {
super(_a);
}
function doAttack(pl) {
controlPlayer.setAttackStyle();
}
function onUP() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation + 2;
}
function onDOWN() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation - 2;
}
function onLEFT() {
controlPlayer.walkLeft(2);
}
function onRIGHT() {
controlPlayer.walkRight(2);
}
function onENTER() {
controlPlayer.renderPower();
}
function upENTER() {
Game.currentGame.checkScreenMove = false;
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:SKILL_NAME});
controlPlayer.shot("pbAttack_mc", "hb_pb");
controlPlayer.addEffect({att:30}, 1);
controlCamp.initObject.con = controlCamp.initObject.con - 35;
m_adaptor.UnActivate();
}
static var SKILL_NAME = "pbAttack";
}
Symbol 1952 MovieClip [__Packages.Skills.dabianAttack] Frame 0
class Skills.dabianAttack extends Skills.Attack implements Skills.IAttack
{
var controlPlayer, controlCamp, m_adaptor;
function dabianAttack (_a) {
super(_a);
}
function doAttack(pl) {
controlPlayer.setAttackStyle();
}
function onUP() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation + 2;
}
function onDOWN() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation - 2;
}
function onLEFT() {
controlPlayer.walkLeft(2);
}
function onRIGHT() {
controlPlayer.walkRight(2);
}
function onENTER() {
controlPlayer.renderPower();
}
function upENTER() {
Game.currentGame.checkScreenMove = false;
controlPlayer.addEffect({att:5}, 1);
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:SKILL_NAME});
controlPlayer.shot("dabianAttack_mc", "hb_dabian");
controlCamp.initObject.con = controlCamp.initObject.con - 5;
m_adaptor.UnActivate();
}
static var SKILL_NAME = "dabianAttack";
}
Symbol 1953 MovieClip [__Packages.Skills.shotAttack] Frame 0
class Skills.shotAttack extends Skills.Attack implements Skills.IAttack
{
var controlPlayer, controlCamp, m_adaptor;
function shotAttack (_a) {
super(_a);
}
function doAttack(pl) {
controlPlayer.setAttackStyle();
}
function onUP() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation + 2;
}
function onDOWN() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation - 2;
}
function onLEFT() {
controlPlayer.walkLeft(2);
}
function onRIGHT() {
controlPlayer.walkRight(2);
}
function onENTER() {
controlPlayer.renderPower();
}
function upENTER() {
Game.currentGame.checkScreenMove = false;
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:SKILL_NAME});
controlPlayer.shot("shotAttack_mc", "hit");
controlPlayer.addEffect({att:45}, 1);
controlCamp.initObject.con = controlCamp.initObject.con - 80;
m_adaptor.UnActivate();
}
static var SKILL_NAME = "shotAttack";
}
Symbol 1954 MovieClip [__Packages.Skills.boomAttack] Frame 0
class Skills.boomAttack extends Skills.Attack implements Skills.IAttack
{
var controlPlayer, m_adaptor, controlCamp;
function boomAttack (_a) {
super(_a);
}
function doAttack(pl) {
controlPlayer.setAttackStyle();
}
function onUP() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation + 2;
}
function onDOWN() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation - 2;
}
function onLEFT() {
controlPlayer.walkLeft(2);
}
function onRIGHT() {
controlPlayer.walkRight(2);
}
function onENTER() {
controlPlayer.renderPower();
}
function upENTER() {
Game.currentGame.checkScreenMove = false;
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:SKILL_NAME});
controlPlayer.shot("boomAttack_mc", "hit", mx.utils.Delegate.create(this, onBoom));
controlPlayer.addEffect({att:40}, 1);
m_adaptor.UnActivate();
controlCamp.initObject.con = controlCamp.initObject.con - 60;
}
function onBoom(_mc) {
var _local2 = Player.checkMovieClipHit(_mc);
for (var _local3 in _local2) {
if (_local2[_local3] != controlPlayer) {
_local2[_local3].hit.apply(_local2[_local3], [30]);
}
}
}
static var SKILL_NAME = "boomAttack";
}
Symbol 1955 MovieClip [__Packages.Skills.ywAttack] Frame 0
class Skills.ywAttack extends Skills.Attack implements Skills.IAttack
{
var controlPlayer, m_adaptor, controlCamp;
function ywAttack (_a) {
super(_a);
}
function doAttack(pl) {
controlPlayer.setAttackStyle();
}
function onUP() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation + 2;
}
function onDOWN() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation - 2;
}
function onLEFT() {
controlPlayer.walkLeft(2);
}
function onRIGHT() {
controlPlayer.walkRight(2);
}
function onENTER() {
controlPlayer.renderPower();
}
function upENTER() {
Game.currentGame.checkScreenMove = false;
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:SKILL_NAME});
controlPlayer.shot("ywAttack_mc", "hb_sm", mx.utils.Delegate.create(this, onBoom));
m_adaptor.UnActivate();
controlCamp.initObject.con = controlCamp.initObject.con - 80;
}
function onBoom(_mc) {
var _local2 = Player.checkMovieClipHit(_mc);
for (var _local3 in _local2) {
if (_local2[_local3] != controlPlayer) {
_local2[_local3].setRelease(1);
_local2[_local3].setAttackStyle("hb_sm");
}
}
}
static var SKILL_NAME = "ywAttack";
}
Symbol 1956 MovieClip [__Packages.Skills.dbAttack] Frame 0
class Skills.dbAttack extends Skills.Attack implements Skills.IAttack
{
var controlPlayer, controlCamp, m_adaptor;
function dbAttack (_a) {
super(_a);
}
function doAttack(pl) {
controlPlayer.setAttackStyle();
}
function onUP() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation + 2;
}
function onDOWN() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation - 2;
}
function onLEFT() {
controlPlayer.walkLeft(2);
}
function onRIGHT() {
controlPlayer.walkRight(2);
}
function onENTER() {
controlPlayer.renderPower();
}
function upENTER() {
Game.currentGame.checkScreenMove = false;
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:SKILL_NAME});
controlPlayer.shot("dbAttack_mc", "hb_kele2");
controlPlayer.addEffect({att:35}, 1);
controlCamp.initObject.con = controlCamp.initObject.con - 40;
m_adaptor.UnActivate();
}
static var SKILL_NAME = "dbAttack";
}
Symbol 1957 MovieClip [__Packages.Skills.podAttack] Frame 0
class Skills.podAttack extends Skills.Attack implements Skills.IAttack
{
var controlPlayer, controlCamp, m_adaptor;
function podAttack (_a) {
super(_a);
}
function doAttack(pl) {
controlPlayer.setAttackStyle();
}
function onUP() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation + 2;
}
function onDOWN() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation - 2;
}
function onLEFT() {
controlPlayer.walkLeft(2);
}
function onRIGHT() {
controlPlayer.walkRight(2);
}
function onENTER() {
controlPlayer.renderPower();
}
function upENTER() {
Game.currentGame.checkScreenMove = false;
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:SKILL_NAME});
controlPlayer.shot("podAttack_mc", "hb_pod");
controlPlayer.addEffect({att:45}, 1);
controlCamp.initObject.con = controlCamp.initObject.con - 80;
m_adaptor.UnActivate();
}
static var SKILL_NAME = "podAttack";
}
Symbol 1958 MovieClip [__Packages.Skills.xjgAttack] Frame 0
class Skills.xjgAttack extends Skills.Attack implements Skills.IAttack
{
var controlPlayer, m_adaptor;
function xjgAttack (_a) {
super(_a);
}
function doAttack(pl) {
controlPlayer.setAttackStyle();
}
function onUP() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation + 2;
}
function onDOWN() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation - 2;
}
function onLEFT() {
controlPlayer.walkLeft(2);
}
function onRIGHT() {
controlPlayer.walkRight(2);
}
function onENTER() {
controlPlayer.renderPower();
}
function upENTER() {
Game.currentGame.checkScreenMove = false;
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:SKILL_NAME});
controlPlayer.shot("xjgAttack_mc", "xjg");
controlPlayer.addEffect({att:45}, 1);
m_adaptor.UnActivate();
}
static var SKILL_NAME = "xjgAttack";
}
Symbol 1959 MovieClip [__Packages.Skills.gf_bsAttack] Frame 0
class Skills.gf_bsAttack extends Skills.Attack implements Skills.IAttack
{
var controlPlayer, controlCamp, m_adaptor;
function gf_bsAttack (_a) {
super(_a);
}
function doAttack(pl) {
controlPlayer.setAttackStyle();
}
function onUP() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation + 2;
}
function onDOWN() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation - 2;
}
function onLEFT() {
controlPlayer.walkLeft(2);
}
function onRIGHT() {
controlPlayer.walkRight(2);
}
function onENTER() {
controlPlayer.renderPower();
}
function upENTER() {
controlPlayer.setAttackStyle("bs");
controlPlayer.m_owermc._visible = false;
Game.currentGame.checkScreenMove = false;
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:SKILL_NAME});
controlPlayer.shot("gf_bsAttack_mc", "hb_gfbs", null, "bs");
controlPlayer.addEffect({att:60}, 1);
controlPlayer.m_owermc.LaunchAttack();
ball.currentTurBall.addEventListener(ball.ON_COLLISION, mx.utils.Delegate.create(this, onCollision));
controlCamp.initObject.con = controlCamp.initObject.con - 100;
m_adaptor.UnActivate();
}
function onCollision(e) {
trace("=========================================================");
if (e.hit) {
} else {
controlPlayer.m_owermc.lockFace = false;
controlPlayer.m_owermc._visible = true;
controlPlayer.setAttackStyle(1);
}
}
static var SKILL_NAME = "gf_bsAttack";
}
Symbol 1960 MovieClip [__Packages.Skills.pjAttack] Frame 0
class Skills.pjAttack extends Skills.Attack implements Skills.IAttack
{
var controlPlayer, m_adaptor;
function pjAttack (_a) {
super(_a);
}
function doAttack(pl) {
controlPlayer.setAttackStyle();
}
function onUP() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation + 2;
}
function onDOWN() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation - 2;
}
function onLEFT() {
controlPlayer.walkLeft(2);
}
function onRIGHT() {
controlPlayer.walkRight(2);
}
function onENTER() {
controlPlayer.renderPower();
}
function upENTER() {
Game.currentGame.checkScreenMove = false;
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:SKILL_NAME});
controlPlayer.shot("pjAttack_mc", "hb_pj");
controlPlayer.addEffect({att:40}, 1);
m_adaptor.UnActivate();
}
static var SKILL_NAME = "pjAttack";
}
Symbol 1961 MovieClip [__Packages.Skills.hip_bsAttack] Frame 0
class Skills.hip_bsAttack extends Skills.Attack implements Skills.IAttack
{
var controlPlayer, controlCamp, m_adaptor;
function hip_bsAttack (_a) {
super(_a);
}
function doAttack(pl) {
controlPlayer.setAttackStyle();
}
function onUP() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation + 2;
}
function onDOWN() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation - 2;
}
function onLEFT() {
controlPlayer.walkLeft(2);
}
function onRIGHT() {
controlPlayer.walkRight(2);
}
function onENTER() {
controlPlayer.renderPower();
}
function upENTER() {
controlPlayer.setAttackStyle("bs");
controlPlayer.m_owermc._visible = false;
Game.currentGame.checkScreenMove = false;
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:SKILL_NAME});
controlPlayer.shot("hip_bsAttack_mc", "hb_hipbs", null, "bs");
controlPlayer.addEffect({att:60}, 1);
controlPlayer.m_owermc.LaunchAttack();
ball.currentTurBall.addEventListener(ball.ON_COLLISION, mx.utils.Delegate.create(this, onCollision));
controlCamp.initObject.con = controlCamp.initObject.con - 100;
m_adaptor.UnActivate();
}
function onCollision(e) {
trace("=========================================================");
if (e.hit) {
} else {
controlPlayer.m_owermc.lockFace = false;
controlPlayer.m_owermc._visible = true;
controlPlayer.setAttackStyle(1);
}
}
static var SKILL_NAME = "hip_bsAttack";
}
Symbol 1962 MovieClip [__Packages.Skills.keleAttack] Frame 0
class Skills.keleAttack extends Skills.Attack implements Skills.IAttack
{
var controlPlayer, controlCamp, m_adaptor;
function keleAttack (_a) {
super(_a);
}
function doAttack(pl) {
controlPlayer.setAttackStyle();
}
function onUP() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation + 2;
}
function onDOWN() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation - 2;
}
function onLEFT() {
controlPlayer.walkLeft(2);
}
function onRIGHT() {
controlPlayer.walkRight(2);
}
function onENTER() {
controlPlayer.renderPower();
}
function upENTER() {
Game.currentGame.checkScreenMove = false;
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:SKILL_NAME});
controlPlayer.shot("keleAttack_mc", "hb_kele");
controlPlayer.addEffect({att:10}, 1);
controlCamp.initObject.con = controlCamp.initObject.con - 15;
m_adaptor.UnActivate();
}
static var SKILL_NAME = "keleAttack";
}
Symbol 1963 MovieClip [__Packages.Skills.ballAttack] Frame 0
class Skills.ballAttack extends Skills.Attack implements Skills.IAttack
{
var controlPlayer, controlCamp, m_adaptor;
function ballAttack (_a) {
super(_a);
}
function doAttack(pl) {
controlPlayer.setAttackStyle();
}
function onUP() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation + 2;
}
function onDOWN() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation - 2;
}
function onLEFT() {
controlPlayer.walkLeft(2);
}
function onRIGHT() {
controlPlayer.walkRight(2);
}
function onENTER() {
controlPlayer.renderPower();
}
function upENTER() {
Game.currentGame.checkScreenMove = false;
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:SKILL_NAME});
controlPlayer.shot("ballAttack_mc", "hit");
controlPlayer.addEffect({att:40}, 1);
controlCamp.initObject.con = controlCamp.initObject.con - 60;
m_adaptor.UnActivate();
}
static var SKILL_NAME = "ballAttack";
}
Symbol 1964 MovieClip [__Packages.Skills.cdAttack] Frame 0
class Skills.cdAttack extends Skills.Attack implements Skills.IAttack
{
var controlPlayer, controlCamp, m_adaptor;
function cdAttack (_a) {
super(_a);
}
function doAttack(pl) {
controlPlayer.setAttackStyle();
}
function onUP() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation + 2;
}
function onDOWN() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation - 2;
}
function onLEFT() {
controlPlayer.walkLeft(2);
}
function onRIGHT() {
controlPlayer.walkRight(2);
}
function onENTER() {
controlPlayer.renderPower();
}
function upENTER() {
Game.currentGame.checkScreenMove = false;
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:SKILL_NAME});
controlPlayer.shot("cdAttack_mc", "hb_cd");
controlPlayer.addEffect({att:40}, 1);
controlCamp.initObject.con = controlCamp.initObject.con - 60;
m_adaptor.UnActivate();
}
static var SKILL_NAME = "cdAttack";
}
Symbol 1965 MovieClip [__Packages.Skills.cakeAttack] Frame 0
class Skills.cakeAttack extends Skills.Attack implements Skills.IAttack
{
var controlPlayer, controlCamp, m_adaptor;
function cakeAttack (_a) {
super(_a);
}
function doAttack(pl) {
controlPlayer.setAttackStyle();
}
function onUP() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation + 2;
}
function onDOWN() {
controlPlayer.arrowRotation = controlPlayer.arrowRotation - 2;
}
function onLEFT() {
controlPlayer.walkLeft(2);
}
function onRIGHT() {
controlPlayer.walkRight(2);
}
function onENTER() {
controlPlayer.renderPower();
}
function upENTER() {
Game.currentGame.checkScreenMove = false;
Adaptor.dispatchEvent({type:Adaptor.SKILL_USED, name:SKILL_NAME});
controlPlayer.shot("cakeAttack_mc", "hb_cake", null, "normal");
controlPlayer.addEffect({att:20}, 1);
controlCamp.initObject.con = controlCamp.initObject.con - 25;
m_adaptor.UnActivate();
}
static var SKILL_NAME = "cakeAttack";
}
Symbol 110 MovieClip Frame 1
stop();
if (s == undefined) {
var s = new Sound(_root);
}
s.setVolume(100);
Symbol 110 MovieClip Frame 2
s.setVolume(0);
stop();
Symbol 120 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 14
_global.Sounds.PlayASound("Jump");
Symbol 182 MovieClip Frame 23
_parent._parent.etat = "Flying";
_parent._parent.BallYSpeed = 0;
_parent._parent.BallXSpeed = 0;
_parent.gotoAndStop("Fly");
stop();
Symbol 183 MovieClip Frame 1
this._visible = false;
Symbol 190 MovieClip Frame 1
_parent._parent.etat = "idle";
_global.Sounds.PlayASound("ballon");
Symbol 190 MovieClip Frame 4
_parent.gotoAndStop("Fall");
stop();
Symbol 219 MovieClip Frame 1
gotoAndStop(_global.TheAttak);
Symbol 220 MovieClip Frame 38
stop();
Symbol 226 MovieClip Frame 38
stop();
Symbol 227 MovieClip Frame 1
stop();
Instance of Symbol 220 MovieClip in Symbol 227 MovieClip Frame 2
onClipEvent (load) {
if (_parent._parent._parent._parent._xscale == -100) {
this._xscale = -200;
}
}
Instance of Symbol 226 MovieClip in Symbol 227 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_parent._parent._parent._xscale == -100) {
this._xscale = -200;
} else if (_parent._parent._parent._xscale == 100) {
this._xscale = 200;
}
}
Symbol 229 MovieClip Frame 8
stop();
Symbol 229 MovieClip Frame 9
_global.Sounds.PlayASound("Fall");
Symbol 229 MovieClip Frame 22
_parent.gotoAndStop("Idle");
stop();
Symbol 230 MovieClip Frame 30
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 1
stop();
Instance of Symbol 246 MovieClip "Arrow" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(45);
}
Symbol 250 MovieClip Frame 2
_parent.LaunchAttack();
play();
Symbol 250 MovieClip Frame 24
_parent.gotoAndStop(1);
stop();
Symbol 257 MovieClip Frame 1
_global.Sounds.PlayASound("Smack");
Instance of Symbol 227 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
if (_global.Muted) {
this.gotoAndStop("Damage");
}
}
Symbol 257 MovieClip Frame 29
_parent.gotoAndStop(1);
Symbol 257 MovieClip Frame 70
Symbol 263 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 265 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 2
_parent.LaunchAttack(shou);
play();
Symbol 281 MovieClip Frame 11
_parent.gotoAndStop(1);
Symbol 288 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 7
_parent.LaunchAttack(Arrow);
Symbol 290 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 291 MovieClip Frame 1
stop();
Instance of Symbol 118 MovieClip "Waiting" in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 183 MovieClip "HitTop" in Symbol 291 MovieClip Frame 22
onClipEvent (load) {
modification = "x";
nNumber = 5;
}
Instance of Symbol 183 MovieClip "HitBottom" in Symbol 291 MovieClip Frame 22
onClipEvent (load) {
modification = "x";
nNumber = 0;
}
Instance of Symbol 183 MovieClip "HitLeft" in Symbol 291 MovieClip Frame 22
onClipEvent (load) {
modification = "y";
nNumber = 5;
}
Instance of Symbol 183 MovieClip "HitRight" in Symbol 291 MovieClip Frame 22
onClipEvent (load) {
modification = "y";
nNumber = 5;
}
Instance of Symbol 227 MovieClip in Symbol 291 MovieClip Frame 27
onClipEvent (load) {
if (_global.Muted && (_parent._currentframe == 25)) {
this.gotoAndStop("PoP");
}
}
Instance of Symbol 273 MovieClip "anim" in Symbol 291 MovieClip Frame 82
onClipEvent (load) {
this.gotoAndStop(45);
}
Symbol 343 Button
on (press) {
getURL ("www.sillybull.com");
}
Symbol 344 Button
on (press) {
getURL ("www.sillybull.com");
}
Symbol 375 Button
on (press) {
getURL ("www.sillybull.com");
}
Symbol 437 MovieClip Frame 1
stop();
Symbol 462 Button
on (press) {
nextPlayerSelect();
}
Symbol 488 MovieClip Frame 20
_parent.gotoAndPlay(1);
Symbol 489 MovieClip Frame 37
if (random(4) == 0) {
nextFrame();
} else {
gotoAndPlay (1);
}
Symbol 514 MovieClip Frame 15
_parent.gotoAndPlay(1);
Symbol 515 MovieClip Frame 47
if (random(4) == 0) {
nextFrame();
} else {
gotoAndPlay (1);
}
Symbol 537 MovieClip Frame 15
_parent.gotoAndPlay(1);
Symbol 538 MovieClip Frame 40
if (random(4) == 0) {
nextFrame();
} else {
gotoAndPlay (1);
}
Symbol 564 MovieClip Frame 20
_parent.gotoAndPlay(1);
Symbol 565 MovieClip Frame 40
if (random(4) == 0) {
nextFrame();
} else {
gotoAndPlay (1);
}
Symbol 570 Button
on (press) {
_root.clickSound.start(0, 1);
nextFrame();
}
Symbol 575 Button
on (press) {
_root.clickSound.start(0, 1);
_root.gotoAndStop("help");
}
Symbol 579 Button
on (press) {
_root.clickSound.start(0, 1);
}
Symbol 581 Button
on (press) {
getURL ("www.sillybull.com");
}
Symbol 582 Button
on (press) {
_root.clickSound.start(0, 1);
_root.gotoChooseMenu(2);
}
Symbol 583 Button
on (press) {
_root.clickSound.start(0, 1);
_root.gotoChooseMenu(1);
}
Symbol 584 MovieClip Frame 1
stop();
Symbol 626 MovieClip Frame 12
stop();
Instance of Symbol 246 MovieClip "Arrow" in Symbol 626 MovieClip Frame 12
onClipEvent (load) {
this.gotoAndStop(45);
}
Symbol 626 MovieClip Frame 17
_parent.LaunchAttack();
Symbol 626 MovieClip Frame 23
_parent.gotoAndStop(1);
Symbol 630 MovieClip Frame 10
_parent.gotoAndStop(1);
Symbol 643 MovieClip Frame 5
stop();
Symbol 658 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 678 MovieClip Frame 21
_parent.gotoAndStop(1);
Symbol 697 MovieClip Frame 29
_parent.gotoAndStop(1);
Symbol 715 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 724 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 741 MovieClip Frame 9
stop();
Symbol 742 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 758 MovieClip Frame 14
_parent.gotoAndStop(1);
Symbol 771 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 794 MovieClip Frame 8
stop();
Symbol 847 MovieClip Frame 2
_parent.lockFace = true;
Symbol 847 MovieClip Frame 94
trace("...........................................");
_parent.lockFace = false;
_root.bsingmc._visible = true;
_root.bsingmc.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 946 MovieClip Frame 70
stop();
Symbol 948 MovieClip Frame 2
_parent.lockFace = true;
Symbol 948 MovieClip Frame 76
trace("...........................................");
_root.lockFace = false;
_root.bsingmc._visible = true;
_root.bsingmc.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 949 MovieClip [role1] Frame 1
stop();
Symbol 949 MovieClip [role1] Frame 75
trace("11111111111111111111");
Symbol 949 MovieClip [role1] Frame 116
_root.bsingmc = this;
Symbol 949 MovieClip [role1] Frame 130
lockFace = false;
_root.bsingmc._visible = true;
_root.bsingmc.gotoAndStop(1);
this.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
this.unloadMovie();
this._visible = false;
this._y = 2000;
delete this.onEnterFrame;
}
};
Symbol 954 MovieClip Frame 1
stop();
Symbol 978 MovieClip Frame 19
stop();
Instance of Symbol 246 MovieClip "Arrow" in Symbol 978 MovieClip Frame 19
onClipEvent (load) {
this.gotoAndStop(45);
}
Symbol 978 MovieClip Frame 25
_parent.LaunchAttack();
Symbol 978 MovieClip Frame 31
_parent.gotoAndStop(1);
Symbol 982 MovieClip Frame 10
_parent.gotoAndStop(1);
Symbol 1008 MovieClip Frame 17
_parent.gotoAndStop(1);
Symbol 1016 MovieClip Frame 21
_parent.gotoAndStop(1);
Symbol 1032 MovieClip Frame 30
_parent.gotoAndStop(1);
Symbol 1045 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 1053 MovieClip Frame 17
_parent.gotoAndStop(1);
Symbol 1058 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 1073 MovieClip Frame 14
_parent.gotoAndStop(1);
Symbol 1084 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 1107 MovieClip Frame 15
if (_parent.isfirst == 6) {
_parent._parent.LaunchAttack(1);
} else if (_parent.isfirst == 0) {
_parent._parent.LaunchAttack(2);
} else {
_parent._parent.LaunchAttack(0);
}
_parent.isfirst--;
Symbol 1108 MovieClip Frame 1
myRole.stop();
isfirst = 6;
stop();
Instance of Symbol 246 MovieClip "Arrow" in Symbol 1108 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(45);
}
Symbol 1108 MovieClip Frame 2
myRole.play();
Symbol 1108 MovieClip Frame 106
_parent.lunchOver();
_parent.gotoAndStop(1);
Symbol 1144 MovieClip Frame 4
stop();
Symbol 1173 MovieClip Frame 7
stop();
Symbol 1201 MovieClip Frame 90
stop();
Symbol 1203 MovieClip Frame 2
_parent.lockFace = true;
Symbol 1203 MovieClip Frame 95
trace("...........................................");
_parent.lockFace = false;
_parent.bsOver();
_root.bsingmc._visible = true;
_root.bsingmc.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 1204 MovieClip [role2] Frame 1
stop();
Symbol 1204 MovieClip [role2] Frame 90
trace("11111111111111111111");
Symbol 1204 MovieClip [role2] Frame 132
lockFace = false;
_root.bsingmc._visible = true;
_root.bsingmc.gotoAndStop(1);
this.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
this.unloadMovie();
this._visible = false;
this._y = 2000;
delete this.onEnterFrame;
}
};
Symbol 1233 MovieClip Frame 16
stop();
Instance of Symbol 246 MovieClip "Arrow" in Symbol 1233 MovieClip Frame 16
onClipEvent (load) {
this.gotoAndStop(45);
}
Symbol 1233 MovieClip Frame 20
_parent.LaunchAttack();
Symbol 1233 MovieClip Frame 31
_parent.gotoAndStop(1);
Symbol 1238 MovieClip Frame 10
_parent.gotoAndStop(1);
Symbol 1271 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 1278 MovieClip Frame 21
_parent.gotoAndStop(1);
Symbol 1289 MovieClip Frame 30
_parent.gotoAndStop(1);
Symbol 1301 MovieClip Frame 21
_parent.gotoAndStop(1);
Symbol 1309 MovieClip Frame 16
_parent.gotoAndStop(1);
Symbol 1314 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 1320 MovieClip [role3] Frame 1
stop();
Symbol 1320 MovieClip [role3] Frame 70
trace("11111111111111111111");
Symbol 1320 MovieClip [role3] Frame 86
_root.bsingmc = this;
Symbol 1320 MovieClip [role3] Frame 120
lockFace = false;
_root.bsingmc._visible = true;
_root.bsingmc.gotoAndStop(1);
this.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
this.unloadMovie();
this._visible = false;
this._y = 2000;
delete this.onEnterFrame;
}
};
Symbol 1350 MovieClip Frame 16
stop();
Instance of Symbol 246 MovieClip "Arrow" in Symbol 1350 MovieClip Frame 16
onClipEvent (load) {
this.gotoAndStop(45);
}
Symbol 1350 MovieClip Frame 20
_parent.LaunchAttack();
Symbol 1350 MovieClip Frame 27
_parent.gotoAndStop(1);
Symbol 1354 MovieClip Frame 9
_parent.gotoAndStop(1);
Symbol 1452 MovieClip Frame 70
stop();
Symbol 1469 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 1477 MovieClip Frame 21
_parent.gotoAndStop(1);
Symbol 1489 MovieClip Frame 30
_parent.gotoAndStop(1);
Symbol 1505 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 1514 MovieClip Frame 16
_parent.gotoAndStop(1);
Symbol 1529 MovieClip Frame 14
_parent.gotoAndStop(1);
Symbol 1540 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 1545 MovieClip [role4] Frame 1
stop();
Symbol 1545 MovieClip [role4] Frame 84
trace("11111111111111111111");
Symbol 1545 MovieClip [role4] Frame 137
_root.bsingmc = this;
Symbol 1545 MovieClip [role4] Frame 144
lockFace = false;
_root.bsingmc._visible = true;
_root.bsingmc.gotoAndStop(1);
this.onEnterFrame = function () {
trace("this:" + this);
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
this.unloadMovie();
this._visible = false;
this._y = 2000;
delete this.onEnterFrame;
}
};
Symbol 1547 Button
on (press) {
_root.clickSound.start(0, 1);
_root.gotoAndStop("start");
initForEngine();
}
Symbol 1554 MovieClip [xjgAttack_mc] Frame 1
function playSound() {
var _local1 = new Sound();
_local1.attachSound("xjgh");
_local1.start(0, 1);
}
Symbol 1612 Button
on (press) {
gotoAndStop ("menu");
}
Symbol 1617 MovieClip Frame 1
function setPower(_i) {
this.gotoAndStop(_i);
}
stop();
Symbol 1727 MovieClip Frame 19
_parent.LunchAttack(this);
Symbol 1727 MovieClip Frame 75
trace("_parent.dispatchEvent:" + _parent.dispatchEvent);
_parent.dispatchEvent();
_parent.removeMovieClip();
Symbol 1729 MovieClip [boomAttack_mc] Frame 1
stop();
Symbol 1729 MovieClip [boomAttack_mc] Frame 2
stop();
DC_onCollision();
Symbol 1743 MovieClip Frame 20
_parent.LunchAttack(this);
Symbol 1743 MovieClip Frame 55
_parent.dispatchEvent();
_parent.removeMovieClip();
Symbol 1745 MovieClip [ywAttack_mc] Frame 1
stop();
Symbol 1745 MovieClip [ywAttack_mc] Frame 2
stop();
DC_onCollision();
Symbol 1781 MovieClip Frame 22
_parent.timeToDel();
Symbol 1786 MovieClip [GiftBox] Frame 1
mon = 40;
monmc.stop();
stop();
Symbol 1786 MovieClip [GiftBox] Frame 17
stop();
Symbol 1802 MovieClip Frame 1
stop();
Symbol 1830 Button
on (press) {
_root.clickSound.start(0, 1);
_root.gotoAndStop("menu");
}
Symbol 1831 Button
on (press) {
getURL ("www.sillybull.com");
}
Symbol 1832 Button
on (press) {
getURL ("www.sillybull.com");
}
Instance of Symbol 564 MovieClip in Symbol 1843 MovieClip [winlevel] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 537 MovieClip in Symbol 1843 MovieClip [winlevel] Frame 2
onClipEvent (load) {
this.stop();
}
Instance of Symbol 488 MovieClip in Symbol 1843 MovieClip [winlevel] Frame 3
onClipEvent (load) {
this.stop();
}
Instance of Symbol 514 MovieClip in Symbol 1843 MovieClip [winlevel] Frame 4
onClipEvent (load) {
this.stop();
}
Symbol 1847 Button
on (press) {
_root.clickSound.start(0, 1);
_root.gotoAndStop("start");
}
Symbol 1848 Button
on (press) {
getURL ("www.sillybull.com");
}
Symbol 1849 Button
on (press) {
getURL ("www.sillybull.com");
}
Symbol 1872 Button
on (press) {
getURL ("www.sillybull.com");
}
Symbol 1875 Button
on (press) {
getURL ("www.sillybull.com");
}
Symbol 1882 Button
on (press) {
nextFrame();
}
Symbol 1883 Button
on (press) {
getURL ("www.sillybull.com");
}
Symbol 1884 Button
on (press) {
getURL ("www.sillybull.com");
}
Symbol 1890 Button
on (press) {
prevFrame();
}