Frame 1
function addtopten(prna, prsc) {
var _local1 = prsc;
var _local2 = prna;
myLSO.data.ts = _local1;
if (_local1 >= myLSO.data.topten[9].sc) {
myLSO.data.topten.push({na:_local2, sc:_local1});
myLSO.data.topten.sortOn("sc", 18);
myLSO.data.topten.pop();
i = 9;
while (i >= 0) {
if ((myLSO.data.topten[i].na == _local2) && (myLSO.data.topten[i].sc == _local1)) {
return(i + 1);
}
i--;
}
} else {
return(-1);
}
return(undefined);
}
stop();
fscommand ("allowscale", false);
fscommand ("showmenu", false);
Stage.scaleMode = "noScale";
Stage.showMenu = false;
_root.localization_url1 = "http://moregames.agame.com/?utm_source=brandedgames&utm_medium=park_my_boat";
_root.localization_url2 = "http://freegames.agame.com/?utm_source=brandedgames&utm_medium=park_my_boat";
_root.localization_language_nr = 1;
_root.localization_branding_nr = 1;
_root.text_whirlpool = "If you are stuck in a whirlpool, press forward to get out.";
_root.text_sharks = "Watch out for the sharks! They will damage your boat.";
_root.text_guys = "Press space to shoot the bad guys.";
_root.text_horn = "Watch out for the seals! Press space to honk your horn to make the seal go in a different direction.";
_root.text_explode = "Your boat will explode if you hit a sea mine!";
_root.text_pause = "The game is paused";
_root.cpu = "CPU";
_root.user = "Player";
newat = 11;
myLSO = SharedObject.getLocal("ryuparkmyboat");
myLSO.flush(2000);
if (myLSO.data.topten == null) {
myLSO.data.topten = [{na:_root.cpu, sc:750000}, {na:_root.cpu, sc:700000}, {na:_root.cpu, sc:650000}, {na:_root.cpu, sc:500000}, {na:_root.cpu, sc:400000}, {na:_root.cpu, sc:300000}, {na:_root.cpu, sc:200000}, {na:_root.cpu, sc:150000}, {na:_root.cpu, sc:100000}, {na:_root.cpu, sc:50000}];
}
if (myLSO.data.cotop == undefined) {
cotop = new Array();
_root.cotop = [120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120];
myLSO.data.cotop = _root.cotop;
myLSO.data.ts = 0;
} else {
cotop = new Array();
_root.cotop = myLSO.data.cotop;
}
ss = new Sound();
sound_flag = true;
Instance of Symbol 19 MovieClip in Frame 1
onClipEvent (enterFrame) {
tloading = (_level0.getBytesLoaded() / _level0.getBytesTotal()) * 100;
tloading = Math.floor(tloading);
sloading = tloading + "%";
this.gotoAndStop(tloading);
_root.percent_txt.text = sloading;
if (_level0.getBytesLoaded() == _level0.getBytesTotal()) {
_root.gotoAndStop("menus");
}
}
Instance of Symbol 74 MovieClip in Frame 1
on (release) {
getURL (_root.localization_url1, "_black");
}
Frame 9
stop();
_root.ryu = "1";
if (_root.newSounds == null) {
_root.createEmptyMovieClip("containerMusic", _root.getNextHighestDepth());
_root.newSounds = new com.Sounds(_root.containerMusic);
_root.volume = 30;
_root.eventVolume = 100;
}
if (firstRun == null) {
firstRun = false;
_root.newSounds.StartMusic("mainscreen_mp3", _root.volume);
}
Frame 19
function getdis(x1, y1, x2, y2) {
return(Math.sqrt(((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2))));
}
function getang(x1, y1, x2, y2) {
return(Math.atan2(y1 - y2, x1 - x2) * 57.29578);
}
function toangel(vx) {
return((180 * vx) / Math.PI);
}
stopAllSounds();
pa = [];
pa[0] = [{px:0, py:-65}, {px:-6, py:-60}, {px:6, py:-60}, {px:-10, py:-54}, {px:10, py:-54}, {px:-12, py:-47}, {px:13, py:-46}, {px:-14, py:-41}, {px:14, py:-41}, {px:-15, py:-33}, {px:15, py:-33}, {px:-15, py:-25}, {px:16, py:-25}, {px:-16, py:-17}, {px:15, py:-17}, {px:-15, py:-9}, {px:15, py:-9}, {px:-15, py:-1}, {px:15, py:-1}, {px:-14, py:7}, {px:14, py:7}, {px:-13, py:15}, {px:14, py:15}, {px:-12, py:23}, {px:12, py:23}, {px:-10, py:31}, {px:9, py:31}, {px:-8, py:34}, {px:8, py:34}, {px:0, py:36}, {px:12, py:28}, {px:-12, py:28}];
pa[1] = [{px:0, py:-62}, {px:-5, py:-58}, {px:6, py:-58}, {px:-12, py:-49}, {px:12, py:-49}, {px:-16, py:-41}, {px:16, py:-41}, {px:-17, py:-33}, {px:17, py:-33}, {px:-18, py:-25}, {px:18, py:-25}, {px:-18, py:-17}, {px:18, py:-17}, {px:-18, py:-9}, {px:18, py:-9}, {px:-18, py:-1}, {px:18, py:-1}, {px:-18, py:7}, {px:18, py:7}, {px:-18, py:15}, {px:18, py:15}, {px:-16, py:23}, {px:16, py:22}, {px:-15, py:28}, {px:15, py:28}, {px:-9, py:30}, {px:9, py:30}, {px:0, py:31}, {px:-9, py:-54}, {px:9, py:-55}];
pa[2] = [{px:0, py:-104}, {px:-5, py:-97}, {px:6, py:-97}, {px:-8, py:-89}, {px:8, py:-89}, {px:-10, py:-81}, {px:10, py:-81}, {px:-12, py:-73}, {px:12, py:-73}, {px:-13, py:-65}, {px:13, py:-65}, {px:-15, py:-57}, {px:15, py:-57}, {px:-17, py:-49}, {px:17, py:-49}, {px:-18, py:-41}, {px:18, py:-41}, {px:-19, py:-33}, {px:19, py:-33}, {px:-20, py:-25}, {px:20, py:-25}, {px:-20, py:-17}, {px:20, py:-17}, {px:-20, py:-9}, {px:20, py:-9}, {px:-19, py:-1}, {px:20, py:-1}, {px:-18, py:7}, {px:19, py:7}, {px:-18, py:15}, {px:18, py:15}, {px:-17, py:23}, {px:17, py:23}, {px:-16, py:31}, {px:16, py:31}, {px:-14, py:39}, {px:15, py:39}, {px:-13, py:47}, {px:13, py:47}, {px:-9, py:52}, {px:8, py:52}, {px:0, py:52}];
pa[3] = [{px:0, py:-106}, {px:-7, py:-103}, {px:8, py:-102}, {px:-13, py:-97}, {px:12, py:-97}, {px:-18, py:-89}, {px:17, py:-89}, {px:-21, py:-81}, {px:20, py:-81}, {px:-22, py:-73}, {px:22, py:-73}, {px:-23, py:-65}, {px:23, py:-65}, {px:-24, py:-57}, {px:23, py:-57}, {px:-24, py:-49}, {px:24, py:-49}, {px:-24, py:-41}, {px:24, py:-41}, {px:-24, py:-33}, {px:24, py:-33}, {px:-25, py:-25}, {px:25, py:-25}, {px:-24, py:-17}, {px:25, py:-17}, {px:-25, py:-9}, {px:25, py:-9}, {px:-24, py:-1}, {px:25, py:-1}, {px:-24, py:7}, {px:24, py:7}, {px:-23, py:15}, {px:24, py:15}, {px:-23, py:24}, {px:23, py:24}, {px:-21, py:31}, {px:22, py:31}, {px:-20, py:39}, {px:20, py:38}, {px:-15, py:42}, {px:15, py:42}, {px:-7, py:45}, {px:8, py:45}, {px:0, py:47}];
pa[4] = [{px:0, py:-110}, {px:0, py:-109}, {px:0, py:-107}, {px:-8, py:-99}, {px:9, py:-98}, {px:-14, py:-89}, {px:14, py:-89}, {px:-17, py:-81}, {px:17, py:-81}, {px:-19, py:-73}, {px:19, py:-73}, {px:-20, py:-65}, {px:20, py:-65}, {px:-21, py:-57}, {px:22, py:-57}, {px:-22, py:-49}, {px:24, py:-49}, {px:-23, py:-41}, {px:25, py:-41}, {px:-24, py:-33}, {px:25, py:-33}, {px:-26, py:-25}, {px:27, py:-25}, {px:-26, py:-17}, {px:26, py:-17}, {px:-26, py:-9}, {px:25, py:-9}, {px:-26, py:-1}, {px:26, py:-1}, {px:-25, py:7}, {px:25, py:7}, {px:-24, py:15}, {px:25, py:15}, {px:-24, py:24}, {px:25, py:23}, {px:-23, py:31}, {px:24, py:31}, {px:-22, py:39}, {px:22, py:39}, {px:-21, py:48}, {px:21, py:47}, {px:-19, py:55}, {px:20, py:55}, {px:-16, py:60}, {px:15, py:60}, {px:-7, py:62}, {px:8, py:62}, {px:0, py:62}];
pa[5] = [{px:0, py:-68}, {px:-5, py:-65}, {px:4, py:-65}, {px:-10, py:-57}, {px:10, py:-57}, {px:-14, py:-49}, {px:14, py:-49}, {px:-17, py:-41}, {px:16, py:-41}, {px:-18, py:-33}, {px:17, py:-33}, {px:-18, py:-25}, {px:18, py:-25}, {px:-18, py:-17}, {px:18, py:-17}, {px:-18, py:-9}, {px:18, py:-9}, {px:-18, py:-1}, {px:18, py:-1}, {px:-18, py:7}, {px:18, py:7}, {px:-19, py:15}, {px:19, py:15}, {px:-18, py:23}, {px:19, py:23}, {px:-17, py:31}, {px:17, py:31}, {px:-8, py:39}, {px:8, py:39}, {px:0, py:39}];
pa[6] = [{px:0, py:-128}, {px:-6, py:-121}, {px:-14, py:-105}, {px:-17, py:-90}, {px:-18, py:-73}, {px:-18, py:-56}, {px:-18, py:-41}, {px:-18, py:-26}, {px:-18, py:-10}, {px:-17, py:7}, {px:-17, py:26}, {px:0, py:35}, {px:11, py:33}, {px:16, py:26}, {px:17, py:7}, {px:17, py:-8}, {px:18, py:-25}, {px:18, py:-42}, {px:18, py:-56}, {px:17, py:-72}, {px:17, py:-91}, {px:14, py:-105}, {px:7, py:-121}, {px:-10, py:-113}, {px:11, py:-113}, {px:-15, py:-97}, {px:15, py:-97}, {px:-17, py:-81}, {px:18, py:-81}, {px:-18, py:-64}, {px:17, py:-65}, {px:-18, py:-47}, {px:18, py:-48}, {px:-18, py:-33}, {px:18, py:-33}, {px:-18, py:-17}, {px:18, py:-17}, {px:-17, py:0}, {px:18, py:-1}, {px:-17, py:16}, {px:17, py:16}, {px:-13, py:32}];
pa[7] = [{px:0, py:-69}, {px:-7, py:-65}, {px:6, py:-65}, {px:-11, py:-60}, {px:11, py:-59}, {px:-16, py:-52}, {px:15, py:-51}, {px:-19, py:-43}, {px:19, py:-43}, {px:-21, py:-35}, {px:20, py:-35}, {px:-22, py:-27}, {px:22, py:-27}, {px:-22, py:-19}, {px:22, py:-18}, {px:-22, py:-11}, {px:22, py:-11}, {px:-22, py:-3}, {px:22, py:-3}, {px:-22, py:5}, {px:22, py:5}, {px:-22, py:13}, {px:22, py:13}, {px:-23, py:21}, {px:23, py:21}, {px:-22, py:29}, {px:23, py:29}, {px:-22, py:40}, {px:22, py:40}, {px:-13, py:38}, {px:15, py:40}, {px:-4, py:36}, {px:4, py:37}, {px:0, py:41}, {px:9, py:36}, {px:-10, py:36}];
pa[8] = [{px:0, py:-61}, {px:-4, py:-57}, {px:5, py:-57}, {px:-9, py:-51}, {px:9, py:-51}, {px:-13, py:-43}, {px:13, py:-43}, {px:-16, py:-35}, {px:16, py:-35}, {px:-17, py:-27}, {px:17, py:-27}, {px:-18, py:-19}, {px:18, py:-19}, {px:-19, py:-11}, {px:19, py:-11}, {px:-19, py:-3}, {px:19, py:-3}, {px:-18, py:5}, {px:18, py:5}, {px:-18, py:13}, {px:18, py:13}, {px:-17, py:21}, {px:17, py:21}, {px:-15, py:28}, {px:15, py:28}, {px:-7, py:29}, {px:8, py:29}, {px:0, py:29}];
pa[9] = [{px:0, py:-71}, {px:-8, py:-72}, {px:8, py:-71}, {px:-16, py:-71}, {px:16, py:-71}, {px:-24, py:-67}, {px:24, py:-67}, {px:-28, py:-59}, {px:28, py:-59}, {px:-29, py:-51}, {px:29, py:-51}, {px:-29, py:-43}, {px:29, py:-43}, {px:-30, py:-35}, {px:30, py:-35}, {px:-30, py:-27}, {px:30, py:-27}, {px:-30, py:-19}, {px:30, py:-19}, {px:-30, py:-11}, {px:30, py:-11}, {px:-30, py:-3}, {px:30, py:-3}, {px:-30, py:5}, {px:30, py:5}, {px:-30, py:13}, {px:30, py:13}, {px:-29, py:21}, {px:29, py:21}, {px:-29, py:29}, {px:29, py:29}, {px:-28, py:37}, {px:29, py:37}, {px:-27, py:43}, {px:26, py:43}, {px:-18, py:44}, {px:18, py:44}, {px:-8, py:44}, {px:9, py:44}, {px:0, py:43}];
pa[10] = [{px:1, py:-122}, {px:-6, py:-120}, {px:-10, py:-114}, {px:-12, py:-108}, {px:-12, py:-101}, {px:-12, py:-92}, {px:-12, py:-85}, {px:-12, py:-75}, {px:-12, py:-64}, {px:-12, py:-54}, {px:-12, py:-45}, {px:-12, py:-35}, {px:-12, py:-25}, {px:-12, py:-15}, {px:-12, py:-5}, {px:-12, py:4}, {px:-12, py:14}, {px:-11, py:23}, {px:-10, py:32}, {px:-8, py:39}, {px:-6, py:47}, {px:-4, py:55}, {px:-3, py:61}, {px:0, py:66}, {px:3, py:62}, {px:4, py:55}, {px:6, py:47}, {px:8, py:40}, {px:10, py:32}, {px:12, py:24}, {px:12, py:14}, {px:12, py:4}, {px:12, py:-5}, {px:13, py:-15}, {px:13, py:-25}, {px:12, py:-34}, {px:12, py:-44}, {px:12, py:-55}, {px:12, py:-64}, {px:13, py:-72}, {px:18, py:-75}, {px:17, py:-83}, {px:13, py:-85}, {px:-18, py:-75}, {px:-17, py:-82}, {px:12, py:-92}, {px:12, py:-101}, {px:12, py:-108}, {px:11, py:-114}, {px:7, py:-121}];
pa[11] = [{px:0, py:-53}, {px:-8, py:-52}, {px:9, py:-53}, {px:-16, py:-52}, {px:17, py:-52}, {px:-24, py:-49}, {px:25, py:-48}, {px:-28, py:-43}, {px:28, py:-43}, {px:-30, py:-35}, {px:30, py:-35}, {px:-30, py:-27}, {px:30, py:-27}, {px:-30, py:-19}, {px:30, py:-19}, {px:-30, py:-11}, {px:30, py:-11}, {px:-30, py:-3}, {px:30, py:-3}, {px:-30, py:5}, {px:30, py:5}, {px:-30, py:13}, {px:30, py:13}, {px:-30, py:21}, {px:30, py:21}, {px:-30, py:29}, {px:30, py:29}, {px:-30, py:37}, {px:30, py:37}, {px:-28, py:45}, {px:27, py:45}, {px:-22, py:51}, {px:20, py:52}, {px:-16, py:53}, {px:16, py:53}, {px:-8, py:53}, {px:8, py:53}, {px:0, py:53}];
pa[12] = [{px:0, py:-120}, {px:-4, py:-115}, {px:4, py:-115}, {px:-8, py:-107}, {px:8, py:-107}, {px:-13, py:-101}, {px:14, py:-101}, {px:-18, py:-97}, {px:18, py:-97}, {px:-20, py:-89}, {px:20, py:-88}, {px:-23, py:-82}, {px:23, py:-82}, {px:-26, py:-75}, {px:26, py:-75}, {px:-27, py:-67}, {px:27, py:-67}, {px:-27, py:-59}, {px:-27, py:-51}, {px:-27, py:-43}, {px:-27, py:-35}, {px:-27, py:-27}, {px:-27, py:-19}, {px:-27, py:-11}, {px:-26, py:-3}, {px:-26, py:5}, {px:-26, py:13}, {px:-26, py:21}, {px:-26, py:29}, {px:-26, py:37}, {px:-25, py:45}, {px:-24, py:53}, {px:-18, py:61}, {px:-12, py:66}, {px:-6, py:69}, {px:0, py:69}, {px:8, py:68}, {px:14, py:64}, {px:20, py:59}, {px:24, py:53}, {px:26, py:46}, {px:26, py:37}, {px:26, py:29}, {px:26, py:21}, {px:26, py:13}, {px:26, py:5}, {px:27, py:-3}, {px:27, py:-11}, {px:27, py:-20}, {px:27, py:-27}, {px:27, py:-35}, {px:27, py:-43}, {px:27, py:-51}, {px:27, py:-59}];
pa[13] = [{px:0, py:-107}, {px:-9, py:-99}, {px:9, py:-99}, {px:-13, py:-91}, {px:13, py:-91}, {px:-16, py:-83}, {px:16, py:-83}, {px:-17, py:-75}, {px:17, py:-75}, {px:-18, py:-67}, {px:18, py:-67}, {px:-19, py:-59}, {px:19, py:-59}, {px:-19, py:-51}, {px:19, py:-51}, {px:-20, py:-43}, {px:20, py:-43}, {px:-20, py:-35}, {px:20, py:-35}, {px:-20, py:-27}, {px:20, py:-27}, {px:-20, py:-19}, {px:20, py:-19}, {px:-20, py:-11}, {px:20, py:-11}, {px:-20, py:-3}, {px:20, py:-3}, {px:-20, py:5}, {px:20, py:5}, {px:-19, py:13}, {px:20, py:13}, {px:-19, py:21}, {px:19, py:21}, {px:-19, py:29}, {px:19, py:29}, {px:-19, py:37}, {px:19, py:37}, {px:-18, py:47}, {px:18, py:47}, {px:-11, py:53}, {px:10, py:53}, {px:-4, py:56}, {px:3, py:56}];
pa[14] = [{px:0, py:-126}, {px:-7, py:-122}, {px:6, py:-123}, {px:-12, py:-117}, {px:12, py:-117}, {px:-16, py:-111}, {px:16, py:-111}, {px:-19, py:-104}, {px:19, py:-104}, {px:-21, py:-97}, {px:21, py:-97}, {px:-22, py:-91}, {px:22, py:-91}, {px:-23, py:-83}, {px:23, py:-83}, {px:-24, py:-77}, {px:24, py:-77}, {px:-24, py:-70}, {px:24, py:-71}, {px:-24, py:-62}, {px:24, py:-62}, {px:-23, py:-54}, {px:24, py:-54}, {px:-23, py:-49}, {px:23, py:-47}, {px:-23, py:-38}, {px:23, py:-38}, {px:-24, py:-35}, {px:24, py:-35}, {px:-23, py:-27}, {px:24, py:-27}, {px:-24, py:-19}, {px:24, py:-19}, {px:-24, py:-11}, {px:24, py:-11}, {px:-24, py:-3}, {px:23, py:-3}, {px:-23, py:5}, {px:24, py:5}, {px:-23, py:13}, {px:23, py:13}, {px:-23, py:21}, {px:23, py:21}, {px:-25, py:29}, {px:25, py:29}, {px:-25, py:37}, {px:24, py:37}, {px:-23, py:45}, {px:23, py:45}, {px:-23, py:53}, {px:23, py:53}, {px:-23, py:61}, {px:23, py:61}, {px:-23, py:69}, {px:23, py:69}, {px:-18, py:77}, {px:17, py:77}, {px:-8, py:83}, {px:9, py:83}, {px:1, py:84}];
timeAll = [120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120];
var hitnum = 10;
var live = 3;
hit = false;
JD = 0;
T = 119;
T2 = 0;
fen = 0;
TZ = 1;
qualityNum = 1;
speedA = 0.6;
ua = 0.1;
allscore = 0;
gotoAndPlay ("gamestart");
Frame 23
function gamelose() {
var _local1 = _root;
trace("lose");
if (_local1.live > 1) {
_local1.live--;
} else {
trace("gameover");
_local1.gotoAndPlay("GAMEOVER");
}
_local1.pauses = false;
_local1.myboat.KD = 0;
_local1.vgo = false;
_local1.mtxtshow.gotoAndStop("lose");
trace("live=" + _local1.live);
}
if (ryu < 16) {
gotoAndStop("lv" + ryu);
} else {
gotoAndPlay ("finish");
}
Frame 30
stop();
_root.newSounds.StartMusic("level_1_mp3", _root.volume);
_root.resetMusic = false;
bghit._visible = false;
_root.times.vtime = timeAll[ryu];
mtxtshow.gotoAndStop(2);
pauses = true;
myboat.KD = 0;
c = 0;
vgo = true;
_root.hit = false;
record.times = _root.cotop[ryu];
Instance of Symbol 263 MovieClip [myboat1] "myboat" in Frame 30
onClipEvent (load) {
timemove = 0;
wheelr = 0;
speed = 0;
Topspeed = 20;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
i = 0;
while (i < _root.pa[0].length) {
this["point" + i] = {};
this["point" + i].x = _root.pa[0][i].px;
this["point" + i].y = _root.pa[0][i].py;
i++;
}
n = 0;
gameovertime = 30;
t = 30;
gameover = false;
}
onClipEvent (enterFrame) {
if (_root.hit == true) {
if (gameovertime == 0) {
gameovertime = -1;
if (_root.live > 0) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live <= 0) {
_root.OK.removeMovieClip();
trace("gameover");
_root.gotoAndStop("GAMEOVER");
}
} else {
gameovertime--;
}
}
if (_root.pauses) {
_root.JD = this._rotation;
if (((_root.hit == false) && (_root.vgo == true)) && (!gameover)) {
t--;
if (t <= 0) {
_root.times.vtime--;
if (_root.times.vtime < 0) {
_root.times.vtime = 0;
gameover = true;
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live < 0) {
trace("myboat enterframe:gamevoer");
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
t = 30;
}
if (!gameover) {
m = n + 10;
if (m > _root.pa[0].length) {
m = _root.pa[0].length;
}
i = n;
while (i < m) {
localToGlobal(this["point" + i]);
if (_root.bghit.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.newSounds.PlaySound("crash_wav", _root.eventVolume);
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
globalToLocal(this["point" + i]);
i++;
}
if (m >= _root.pa[0].length) {
n = 0;
} else {
n = m;
}
}
}
if ((Key.isDown(39) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr < TOPdirection) {
wheelr = wheelr + 1;
this.wheel0._rotation = -wheelr;
}
} else if ((Key.isDown(37) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr > (-TOPdirection)) {
wheelr = wheelr - 1;
this.wheel0._rotation = -wheelr;
}
}
if (Key.isDown(38) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed > (-Topspeed)) {
speed = speed - _parent.speedA;
}
Direction = 1;
Rotation = this._rotation;
} else if (Key.isDown(40) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed < Topspeed) {
speed = speed + _parent.speedA;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (wheelr * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (wheelr * (Math.abs(speed) / Topspeed));
}
if (speed > 0.2) {
speed = speed - _parent.ua;
} else if (speed < -0.2) {
speed = speed + _parent.ua;
} else {
speed = 0;
}
if ((((_root.JD < 7) && (_root.JD > -7)) && (KD == 0)) && (!gameover)) {
localToGlobal(point0);
if (_root.aimhit.hitTest(point0.x, point0.y, false)) {
_root.mtxtshow.gotoAndStop("pass");
KD = 1;
speed = 0;
gameover = true;
}
globalToLocal(point0);
}
}
}
Frame 38
stop();
if ((_root.resetMusic == null) || (_root.resetMusic)) {
_root.newSounds.StartMusic("level_1_mp3", _root.volume);
_root.resetMusic = false;
}
_root.times.vtime = timeAll[ryu];
mtxtshow.gotoAndStop(1);
mtxtshow.showtxt = _root.text_explode;
pauses = true;
c = 0;
vgo = false;
_root.hit = false;
record.times = _root.cotop[ryu];
Instance of Symbol 260 MovieClip [myboat2] "myboat" in Frame 38
onClipEvent (load) {
timemove = 0;
wheelr = 0;
speed = 0;
Topspeed = 20;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
i = 0;
while (i < _root.pa[1].length) {
this["point" + i] = {};
this["point" + i].x = _root.pa[1][i].px;
this["point" + i].y = _root.pa[1][i].py;
i++;
}
n = 0;
gameovertime = 30;
t = 30;
gameover = false;
}
onClipEvent (enterFrame) {
if (_root.hit == true) {
if (gameovertime == 0) {
gameovertime = -1;
if (_root.live > 0) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live <= 0) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
} else {
gameovertime--;
}
}
if (_root.pauses) {
_root.JD = this._rotation;
if (((_root.hit == false) && (_root.vgo == true)) && (!gameover)) {
t--;
if (t <= 0) {
_root.times.vtime--;
if (_root.times.vtime < 0) {
_root.times.vtime = 0;
gameover = true;
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live < 0) {
trace("myboat enterframe:gamevoer");
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
t = 30;
}
if (!gameover) {
m = n + 10;
if (m > _root.pa[1].length) {
m = _root.pa[1].length;
}
i = n;
while (i < m) {
localToGlobal(this["point" + i]);
if (_root.bghit.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.newSounds.PlaySound("crash_wav", _root.eventVolume);
if (_root.bghit.ball.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.bghit.ball.gotoAndPlay("bomb");
this.gotoAndPlay("bomb");
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
globalToLocal(this["point" + i]);
i++;
}
if (m >= _root.pa[1].length) {
n = 0;
} else {
n = m;
}
}
}
if ((Key.isDown(39) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr < TOPdirection) {
wheelr = wheelr + 1;
this.wheel0._rotation = -wheelr;
}
} else if ((Key.isDown(37) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr > (-TOPdirection)) {
wheelr = wheelr - 1;
this.wheel0._rotation = -wheelr;
}
}
if (Key.isDown(38) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed > (-Topspeed)) {
speed = speed - _parent.speedA;
}
Direction = 1;
Rotation = this._rotation;
} else if (Key.isDown(40) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed < Topspeed) {
speed = speed + _parent.speedA;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (wheelr * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (wheelr * (Math.abs(speed) / Topspeed));
}
if (speed > 0.2) {
speed = speed - _parent.ua;
} else if (speed < -0.2) {
speed = speed + _parent.ua;
} else {
speed = 0;
}
if ((((_root.JD < -174) || (_root.JD > 174)) && (KD == 0)) && (!gameover)) {
localToGlobal(point0);
if (_root.aimhit.hitTest(point0.x, point0.y, false)) {
_root.mtxtshow.gotoAndStop("pass");
KD = 1;
speed = 0;
gameover = true;
}
globalToLocal(point0);
}
}
}
Frame 45
stop();
if ((_root.resetMusic == null) || (_root.resetMusic)) {
_root.newSounds.StartMusic("level_1_mp3", _root.volume);
_root.resetMusic = false;
}
bghit._visible = false;
_root.times.vtime = timeAll[ryu];
mtxtshow.gotoAndStop(2);
pauses = true;
myboat.KD = 0;
c = 0;
vgo = true;
_root.hit = false;
record.times = _root.cotop[ryu];
Instance of Symbol 257 MovieClip [myboat3] "myboat" in Frame 45
onClipEvent (load) {
timemove = 0;
wheelr = 0;
speed = 0;
Topspeed = 10;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
i = 0;
while (i < _root.pa[2].length) {
this["point" + i] = {};
this["point" + i].x = _root.pa[2][i].px;
this["point" + i].y = _root.pa[2][i].py;
i++;
}
n = 0;
gameovertime = 30;
t = 30;
gameover = false;
}
onClipEvent (enterFrame) {
if (_root.hit == true) {
if (gameovertime == 0) {
gameovertime = -1;
if (_root.live > 0) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live <= 0) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
} else {
gameovertime--;
}
}
if (_root.pauses) {
_root.JD = this._rotation;
if (((_root.hit == false) && (_root.vgo == true)) && (!gameover)) {
t--;
if (t <= 0) {
_root.times.vtime--;
if (_root.times.vtime < 0) {
_root.times.vtime = 0;
gameover = true;
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live < 0) {
trace("myboat enterframe:gamevoer");
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
t = 30;
}
if (!gameover) {
m = n + 10;
if (m > _root.pa[2].length) {
m = _root.pa[2].length;
}
i = n;
while (i < m) {
localToGlobal(this["point" + i]);
if (_root.bghit.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.newSounds.PlaySound("crash_wav", _root.eventVolume);
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
globalToLocal(this["point" + i]);
i++;
}
if (m >= _root.pa[2].length) {
n = 0;
} else {
n = m;
}
}
}
if ((Key.isDown(39) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr < TOPdirection) {
wheelr = wheelr + 1;
this.wheel0._rotation = -wheelr;
}
} else if ((Key.isDown(37) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr > (-TOPdirection)) {
wheelr = wheelr - 1;
this.wheel0._rotation = -wheelr;
}
}
if (Key.isDown(38) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed > (-Topspeed)) {
speed = speed - (_parent.speedA * 0.8);
}
Direction = 1;
Rotation = this._rotation;
} else if (Key.isDown(40) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed < Topspeed) {
speed = speed + (_parent.speedA * 0.8);
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (wheelr * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (wheelr * (Math.abs(speed) / Topspeed));
}
if (speed > 0.2) {
speed = speed - _parent.ua;
} else if (speed < -0.2) {
speed = speed + _parent.ua;
} else {
speed = 0;
}
if ((((_root.JD < -174) || (_root.JD > 174)) && (KD == 0)) && (!gameover)) {
localToGlobal(point0);
if (_root.aimhit.hitTest(point0.x, point0.y, false)) {
_root.mtxtshow.gotoAndStop("pass");
KD = 1;
speed = 0;
gameover = true;
}
globalToLocal(point0);
}
}
_root.mdarkmask._x = this._x;
_root.mdarkmask._y = this._y;
}
Frame 55
stop();
if ((_root.resetMusic == null) || (_root.resetMusic)) {
_root.newSounds.StartMusic("level_1_mp3", _root.volume);
_root.resetMusic = false;
}
_root.times.vtime = timeAll[ryu];
mtxtshow.gotoAndStop(1);
mtxtshow.showtxt = _root.text_horn;
pauses = true;
c = 0;
vgo = false;
_root.hit = false;
record.times = _root.cotop[ryu];
Instance of Symbol 251 MovieClip [myboat4] "myboat" in Frame 55
onClipEvent (load) {
timemove = 0;
wheelr = 0;
speed = 0;
Topspeed = 10;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
i = 0;
while (i < _root.pa[3].length) {
this["point" + i] = {};
this["point" + i].x = _root.pa[3][i].px;
this["point" + i].y = _root.pa[3][i].py;
i++;
}
n = 0;
gameovertime = 30;
t = 30;
gameover = false;
}
onClipEvent (enterFrame) {
if (_root.hit == true) {
if (gameovertime == 0) {
gameovertime = -1;
if (_root.live > 0) {
trace("setover");
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live <= 0) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
} else {
gameovertime--;
}
}
if (_root.pauses) {
_root.JD = this._rotation;
if (((_root.hit == false) && (_root.vgo == true)) && (!gameover)) {
t--;
if (t <= 0) {
_root.times.vtime--;
if (_root.times.vtime < 0) {
_root.times.vtime = 0;
gameover = true;
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live < 0) {
trace("myboat enterframe:gamevoer");
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
t = 30;
}
if (!gameover) {
m = n + 10;
if (m > _root.pa[3].length) {
m = _root.pa[3].length;
}
i = n;
while (i < m) {
localToGlobal(this["point" + i]);
if (_root.bghit.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.newSounds.PlaySound("crash_wav", _root.eventVolume);
trace((((("point hit " + i) + " px=") + this["point" + i].x) + " py=") + this["point" + i].y);
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
globalToLocal(this["point" + i]);
i++;
}
if (m >= _root.pa[3].length) {
n = 0;
} else {
n = m;
}
}
}
if ((Key.isDown(39) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr < TOPdirection) {
wheelr = wheelr + 1;
this.wheel0._rotation = -wheelr;
}
} else if ((Key.isDown(37) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr > (-TOPdirection)) {
wheelr = wheelr - 1;
this.wheel0._rotation = -wheelr;
}
}
if (Key.isDown(38) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed > (-Topspeed)) {
speed = speed - (_parent.speedA * 0.75);
}
Direction = 1;
Rotation = this._rotation;
} else if (Key.isDown(40) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed < Topspeed) {
speed = speed + (_parent.speedA * 0.75);
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (wheelr * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (wheelr * (Math.abs(speed) / Topspeed));
}
if (speed > 0.2) {
speed = speed - _parent.ua;
} else if (speed < -0.2) {
speed = speed + _parent.ua;
} else {
speed = 0;
}
if ((((_root.JD < 7) && (_root.JD > -7)) && (KD == 0)) && (!gameover)) {
localToGlobal(point0);
if (_root.aimhit.hitTest(point0.x, point0.y, false)) {
_root.mtxtshow.gotoAndStop("pass");
KD = 1;
speed = 0;
gameover = true;
}
globalToLocal(point0);
}
}
}
Frame 63
stop();
if ((_root.resetMusic == null) || (_root.resetMusic)) {
_root.newSounds.StartMusic("level_1_mp3", _root.volume);
_root.resetMusic = false;
}
_root.times.vtime = timeAll[ryu];
mtxtshow.gotoAndStop(1);
mtxtshow.showtxt = _root.text_guys;
pauses = true;
c = 0;
vgo = false;
_root.hit = false;
record.times = _root.cotop[ryu];
Instance of Symbol 843 MovieClip "mdi1" in Frame 63
onClipEvent (load) {
fx = 0;
maxspd = -1;
spd = maxspd;
trace(this._xscale);
}
onClipEvent (enterFrame) {
if ((_root.pauses && (_root.myboat.KD == 0)) && (_root.vgo == true)) {
if ((spd < 0) && (this._x < 170)) {
spd = -maxspd;
this._yscale = -this._yscale;
} else if ((spd > 0) && (this._x > 350)) {
spd = maxspd;
this._yscale = -this._yscale;
}
_x = (_x + spd);
}
}
Instance of Symbol 846 MovieClip in Frame 63
onClipEvent (load) {
_root.myboat.pot = new Object();
_root.myboat.pot.x = 0;
_root.myboat.pot.y = -80;
}
onClipEvent (enterFrame) {
if ((_root.pauses && (_root.myboat.KD == 0)) && (_root.vgo == true)) {
if (canFire == 1) {
_root.myboat.localToGlobal(_root.myboat.pot);
mdis = _root.getdis(_root.mdi1._x, _root.mdi1._y, _root.myboat.pot.x, _root.myboat.pot.y);
_root.myboat.globalToLocal(_root.myboat.pot);
if (mdis < 150) {
this._x = _root.mdi1._x;
this._y = _root.mdi1._y;
} else {
var degree = 0.0174;
dx = Math.sin((-(_root.myboat._rotation - 180)) * degree);
dy = Math.cos((-(_root.myboat._rotation - 180)) * degree);
x2 = dx * 230;
y2 = dy * 230;
this._x = x2 + _root.myboat._x;
this._y = y2 + _root.myboat._y;
}
if (Key.isDown(32) && (times.vtime < 120)) {
if (_root.gunwav == null) {
_root.newSounds.PlaySound("gun_wav", _root.eventVolume);
mc = _root.attachMovie("gunwav", "gunwav", 3000);
mc._x = _x;
mc._y = _y;
}
}
}
canFire = 1;
} else {
canFire = 0;
}
}
Instance of Symbol 248 MovieClip [myboat5] "myboat" in Frame 63
onClipEvent (load) {
timemove = 0;
wheelr = 0;
speed = 0;
Topspeed = 10;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
i = 0;
while (i < _root.pa[4].length) {
this["point" + i] = {};
this["point" + i].x = _root.pa[4][i].px;
this["point" + i].y = _root.pa[4][i].py;
i++;
}
n = 0;
gameovertime = 30;
t = 30;
gameover = false;
}
onClipEvent (enterFrame) {
if (_root.hit == true) {
if (gameovertime == 0) {
gameovertime = -1;
if (_root.live > 0) {
trace("setover");
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live <= 0) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
} else {
gameovertime--;
}
}
if (_root.pauses) {
_root.JD = this._rotation;
if (((_root.hit == false) && (_root.vgo == true)) && (!gameover)) {
t--;
if (t <= 0) {
_root.times.vtime--;
if (_root.times.vtime < 0) {
_root.times.vtime = 0;
gameover = true;
if (_root.live > 0) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live < 0) {
trace("myboat enterframe:gamevoer");
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
t = 30;
}
if (!gameover) {
m = n + 10;
if (m > _root.pa[4].length) {
m = _root.pa[4].length;
}
i = n;
while (i < m) {
localToGlobal(this["point" + i]);
if (_root.bghit.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.newSounds.PlaySound("crash_wav", _root.eventVolume);
if (_root.bghit.ball1.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.bghit.ball1.gotoAndPlay("bomb");
this.gotoAndPlay("bomb");
} else if (_root.bghit.ball2.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.bghit.ball2.gotoAndPlay("bomb");
this.gotoAndPlay("bomb");
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
globalToLocal(this["point" + i]);
i++;
}
if (m >= _root.pa[4].length) {
n = 0;
} else {
n = m;
}
}
}
if ((Key.isDown(39) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr < TOPdirection) {
wheelr = wheelr + 1;
this.wheel0._rotation = -wheelr;
}
} else if ((Key.isDown(37) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr > (-TOPdirection)) {
wheelr = wheelr - 1;
this.wheel0._rotation = -wheelr;
}
}
if (Key.isDown(38) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed > (-Topspeed)) {
speed = speed - (_parent.speedA * 0.75);
}
Direction = 1;
Rotation = this._rotation;
} else if (Key.isDown(40) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed < Topspeed) {
speed = speed + (_parent.speedA * 0.75);
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (wheelr * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (wheelr * (Math.abs(speed) / Topspeed));
}
if (speed > 0.2) {
speed = speed - _parent.ua;
} else if (speed < -0.2) {
speed = speed + _parent.ua;
} else {
speed = 0;
}
if ((((_root.JD < 7) && (_root.JD > -7)) && (KD == 0)) && (!gameover)) {
localToGlobal(point0);
if (_root.aimhit.hitTest(point0.x, point0.y, false)) {
_root.mtxtshow.gotoAndStop("pass");
KD = 1;
speed = 0;
gameover = true;
}
globalToLocal(point0);
}
}
}
Frame 71
stop();
_root.newSounds.StartMusic("level_2_mp3", _root.volume);
_root.resetMusic = false;
_root.times.vtime = timeAll[ryu];
mtxtshow.gotoAndStop(2);
pauses = true;
myboat.KD = 0;
c = 0;
vgo = true;
_root.hit = false;
record.times = _root.cotop[ryu];
Instance of Symbol 240 MovieClip [myboat6] "myboat" in Frame 71
onClipEvent (load) {
wheelr = 0;
speed = 0;
Topspeed = 10;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
i = 0;
while (i < _root.pa[5].length) {
this["point" + i] = {};
this["point" + i].x = _root.pa[5][i].px;
this["point" + i].y = _root.pa[5][i].py;
i++;
}
n = 0;
gameovertime = 30;
t = 30;
gameover = false;
}
onClipEvent (enterFrame) {
if (_root.hit == true) {
if (gameovertime == 0) {
gameovertime = -1;
if (_root.live > 0) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live <= 0) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
} else {
gameovertime--;
}
}
if (_root.pauses) {
_root.JD = this._rotation;
if (((_root.hit == false) && (_root.vgo == true)) && (!gameover)) {
t--;
if (t <= 0) {
_root.times.vtime--;
if (_root.times.vtime < 0) {
_root.times.vtime = 0;
gameover = true;
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live < 0) {
trace("myboat enterframe:gamevoer");
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
t = 30;
}
if (!gameover) {
m = n + 10;
if (m > _root.pa[5].length) {
m = _root.pa[5].length;
}
i = n;
while (i < m) {
localToGlobal(this["point" + i]);
if (_root.bghit.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.newSounds.PlaySound("crash_wav", _root.eventVolume);
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
globalToLocal(this["point" + i]);
i++;
}
if (m >= _root.pa[5].length) {
n = 0;
} else {
n = m;
}
}
}
if ((Key.isDown(39) && (KD == 0)) && (_root.vgo == true)) {
trace("keyr");
if (wheelr < TOPdirection) {
wheelr = wheelr + 1;
this.wheel0._rotation = -wheelr;
}
} else if ((Key.isDown(37) && (KD == 0)) && (_root.vgo == true)) {
trace("keyl");
if (wheelr > (-TOPdirection)) {
wheelr = wheelr - 1;
this.wheel0._rotation = -wheelr;
}
}
if (Key.isDown(38) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
trace("keyu");
_root.vgo = true;
_root.JT._y = -100;
if (speed > (-Topspeed)) {
speed = speed - _parent.speedA;
}
Direction = 1;
Rotation = this._rotation;
} else if (Key.isDown(40) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
trace("keyd");
_root.vgo = true;
_root.JT._y = -100;
if (speed < Topspeed) {
speed = speed + _parent.speedA;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (wheelr * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (wheelr * (Math.abs(speed) / Topspeed));
}
if (speed > 0.2) {
speed = speed - _parent.ua;
} else if (speed < -0.2) {
speed = speed + _parent.ua;
} else {
speed = 0;
}
if ((((_root.JD < -174) || (_root.JD > 174)) && (KD == 0)) && (!gameover)) {
localToGlobal(point0);
if (_root.aimhit.hitTest(point0.x, point0.y, false)) {
_root.mtxtshow.gotoAndStop("pass");
KD = 1;
speed = 0;
gameover = true;
}
globalToLocal(point0);
}
}
_root.mdarkmask._x = this._x;
_root.mdarkmask._y = this._y;
}
Frame 77
stop();
if ((_root.resetMusic == null) || (_root.resetMusic)) {
_root.newSounds.StartMusic("level_2_mp3", _root.volume);
_root.resetMusic = false;
}
_root.times.vtime = timeAll[ryu];
mtxtshow.gotoAndStop(1);
mtxtshow.showtxt = _root.text_guys;
pauses = true;
c = 0;
vgo = false;
_root.hit = false;
record.times = _root.cotop[ryu];
Instance of Symbol 843 MovieClip "mdi1" in Frame 77
onClipEvent (load) {
fx = 0;
maxspd = -1;
spd = maxspd;
}
onClipEvent (enterFrame) {
if ((_root.pauses && (_root.myboat.KD == 0)) && (_root.vgo == true)) {
if ((spd < 0) && (this._x < 230)) {
spd = -maxspd;
this._yscale = -this._yscale;
} else if ((spd > 0) && (this._x > 410)) {
spd = maxspd;
this._yscale = -this._yscale;
}
_x = (_x + spd);
}
}
Instance of Symbol 846 MovieClip in Frame 77
onClipEvent (load) {
_root.myboat.pot = new Object();
_root.myboat.pot.x = 0;
_root.myboat.pot.y = -120;
shotlock = 0;
}
onClipEvent (enterFrame) {
if ((_root.pauses && (_root.myboat.KD == 0)) && (_root.vgo == true)) {
shotlock++;
if ((shotlock > 0) && (canFire == 1)) {
_root.myboat.localToGlobal(_root.myboat.pot);
mdis = _root.getdis(_root.mdi1._x, _root.mdi1._y, _root.myboat.pot.x, _root.myboat.pot.y);
mdis2 = _root.getdis(_root.mdi2._x, _root.mdi2._y, _root.myboat.pot.x, _root.myboat.pot.y);
_root.myboat.globalToLocal(_root.myboat.pot);
if (mdis < 190) {
if (_root.mdi1._y > 0) {
this._x = _root.mdi1._x;
this._y = _root.mdi1._y;
}
} else {
var degree = 0.0174;
dx = Math.sin((-(_root.myboat._rotation - 180)) * degree);
dy = Math.cos((-(_root.myboat._rotation - 180)) * degree);
x2 = dx * 220;
y2 = dy * 220;
this._x = x2 + _root.myboat._x;
this._y = y2 + _root.myboat._y;
}
if (Key.isDown(32) && (_root.times.vtime < 120)) {
shotlock = -5;
if (_root.gunwav == null) {
_root.newSounds.PlaySound("gun_wav", _root.eventVolume);
mcf = _root.attachMovie("gunwav", "gunwav", 3000);
mcf._x = this._x;
mcf._y = this._y;
}
}
}
canFire = 1;
} else {
canFire = 0;
}
}
Instance of Symbol 231 MovieClip [myboat7] "myboat" in Frame 77
onClipEvent (load) {
wheelr = 0;
speed = 0;
Topspeed = 10;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
i = 0;
while (i < _root.pa[6].length) {
this["point" + i] = {};
this["point" + i].x = _root.pa[6][i].px;
this["point" + i].y = _root.pa[6][i].py;
i++;
}
n = 0;
gameovertime = 30;
t = 30;
gameover = false;
}
onClipEvent (enterFrame) {
if (_root.hit == true) {
if (gameovertime == 0) {
gameovertime = -1;
if (_root.live > 0) {
_root.gamelose();
} else if (_root.live <= 0) {
_root.gotoAndStop("GAMEOVER");
}
} else {
gameovertime--;
}
}
if (_root.pauses) {
_root.JD = this._rotation;
if (((_root.hit == false) && (_root.vgo == true)) && (!gameover)) {
t--;
if (t <= 0) {
_root.times.vtime--;
if (_root.times.vtime < 0) {
_root.times.vtime = 0;
gameover = true;
if (_root.live > 1) {
_root.gamelose();
} else if (_root.live < 0) {
trace("myboat enterframe:gamevoer");
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
t = 30;
}
if (!gameover) {
m = n + 10;
if (m > _root.pa[6].length) {
m = _root.pa[6].length;
}
i = n;
while (i < m) {
localToGlobal(this["point" + i]);
if (_root.bghit.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.newSounds.PlaySound("crash_wav", _root.eventVolume);
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
globalToLocal(this["point" + i]);
i++;
}
if (m >= _root.pa[6].length) {
n = 0;
} else {
n = m;
}
}
}
if ((Key.isDown(39) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr < TOPdirection) {
wheelr = wheelr + 1;
this.wheel0._rotation = -wheelr;
}
} else if ((Key.isDown(37) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr > (-TOPdirection)) {
wheelr = wheelr - 1;
this.wheel0._rotation = -wheelr;
}
}
if (Key.isDown(38) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed > (-Topspeed)) {
speed = speed - (_parent.speedA * 0.6);
}
Direction = 1;
Rotation = this._rotation;
} else if (Key.isDown(40) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed < Topspeed) {
speed = speed + (_parent.speedA * 0.6);
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (wheelr * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (wheelr * (Math.abs(speed) / Topspeed));
}
if (speed > 0.2) {
speed = speed - _parent.ua;
_x = (_x - (speed * 0.02));
} else if (speed < -0.2) {
speed = speed + _parent.ua;
_x = (_x - (speed * 0.02));
} else {
speed = 0;
}
if ((((_root.JD < 97) && (_root.JD > 83)) && (KD == 0)) && (!gameover)) {
localToGlobal(point0);
if (_root.aimhit.hitTest(point0.x, point0.y, false)) {
_root.mtxtshow.gotoAndStop("pass");
KD = 1;
speed = 0;
gameover = true;
}
globalToLocal(point0);
}
}
}
Frame 84
stop();
if ((_root.resetMusic == null) || (_root.resetMusic)) {
_root.newSounds.StartMusic("level_2_mp3", _root.volume);
_root.resetMusic = false;
}
_root.times.vtime = timeAll[ryu];
mtxtshow.gotoAndStop(1);
mtxtshow.showtxt = _root.text_whirlpool;
pauses = true;
myboat.KD = 0;
c = 0;
vgo = true;
_root.hit = false;
record.times = _root.cotop[ryu];
Instance of Symbol 207 MovieClip [myboat8] "myboat" in Frame 84
onClipEvent (load) {
timemove = 0;
wheelr = 0;
speed = 0;
Topspeed = 10;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
i = 0;
while (i < _root.pa[7].length) {
this["point" + i] = {};
this["point" + i].x = _root.pa[7][i].px;
this["point" + i].y = _root.pa[7][i].py;
i++;
}
n = 0;
gameovertime = 30;
t = 30;
gameover = false;
}
onClipEvent (enterFrame) {
if (_root.hit == true) {
if (gameovertime == 0) {
gameovertime = -1;
if (_root.live > 0) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live <= 0) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
} else {
gameovertime--;
}
}
if (_root.pauses) {
_root.JD = this._rotation;
if (((_root.hit == false) && (_root.vgo == true)) && (!gameover)) {
t--;
if (t <= 0) {
_root.times.vtime--;
if (_root.times.vtime < 0) {
_root.times.vtime = 0;
gameover = true;
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live < 0) {
trace("myboat enterframe:gamevoer");
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
t = 30;
}
if (!gameover) {
m = n + 10;
if (m > _root.pa[7].length) {
m = _root.pa[7].length;
}
i = n;
while (i < m) {
localToGlobal(this["point" + i]);
if (_root.www.hitter.hitTest(this["point" + i].x, this["point" + i].y, true)) {
globalToLocal(this["point" + i]);
_root.newSounds.PlaySound("swirling_wav", _root.eventVolume);
_rotation = (_rotation-1);
break;
}
if (_root.bghit.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.newSounds.PlaySound("crash_wav", _root.eventVolume);
if (_root.bghit.ball.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.bghit.ball.gotoAndPlay("bomb");
this.gotoAndPlay("bomb");
}
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
globalToLocal(this["point" + i]);
i++;
}
if (m >= _root.pa[7].length) {
n = 0;
} else {
n = m;
}
}
}
if ((Key.isDown(39) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr < TOPdirection) {
wheelr = wheelr + 1;
this.wheel0._rotation = -wheelr;
}
} else if ((Key.isDown(37) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr > (-TOPdirection)) {
wheelr = wheelr - 1;
this.wheel0._rotation = -wheelr;
}
}
if (Key.isDown(38) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed > (-Topspeed)) {
speed = speed - _parent.speedA;
}
Direction = 1;
Rotation = this._rotation;
} else if (Key.isDown(40) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed < Topspeed) {
speed = speed + _parent.speedA;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (wheelr * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (wheelr * (Math.abs(speed) / Topspeed));
}
if (speed > 0.2) {
speed = speed - _parent.ua;
} else if (speed < -0.2) {
speed = speed + _parent.ua;
} else {
speed = 0;
}
if ((((_root.JD < -174) || (_root.JD > 174)) && (KD == 0)) && (!gameover)) {
localToGlobal(point0);
if (_root.aimhit.hitTest(point0.x, point0.y, false)) {
_root.mtxtshow.gotoAndStop("pass");
KD = 1;
speed = 0;
gameover = true;
}
globalToLocal(point0);
}
}
}
Frame 91
stop();
if ((_root.resetMusic == null) || (_root.resetMusic)) {
_root.newSounds.StartMusic("level_2_mp3", _root.volume);
_root.resetMusic = false;
}
_root.times.vtime = timeAll[ryu];
mtxtshow.gotoAndStop(1);
mtxtshow.showtxt = _root.text_sharks;
pauses = true;
c = 0;
vgo = false;
_root.hit = false;
record.times = _root.cotop[ryu];
Instance of Symbol 188 MovieClip [myboat9] "myboat" in Frame 91
onClipEvent (load) {
timemove = 0;
wheelr = 0;
speed = 0;
Topspeed = 10;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
i = 0;
while (i < _root.pa[8].length) {
this["point" + i] = {};
this["point" + i].x = _root.pa[8][i].px;
this["point" + i].y = _root.pa[8][i].py;
i++;
}
n = 0;
gameovertime = 30;
t = 30;
gameover = false;
}
onClipEvent (enterFrame) {
if (_root.hit == true) {
if (gameovertime == 0) {
gameovertime = -1;
if (_root.live > 0) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live <= 0) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
} else {
gameovertime--;
}
}
if (_root.pauses) {
_root.JD = this._rotation;
if (((_root.hit == false) && (_root.vgo == true)) && (!gameover)) {
t--;
if (t <= 0) {
_root.times.vtime--;
if (_root.times.vtime < 0) {
_root.times.vtime = 0;
gameover = true;
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live < 0) {
trace("myboat enterframe:gamevoer");
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
t = 30;
}
if (!gameover) {
m = n + 10;
if (m > _root.pa[8].length) {
m = _root.pa[8].length;
}
i = n;
while (i < m) {
localToGlobal(this["point" + i]);
if (_root.bghit.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.newSounds.PlaySound("crash_wav", _root.eventVolume);
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
globalToLocal(this["point" + i]);
i++;
}
if (m >= _root.pa[8].length) {
n = 0;
} else {
n = m;
}
}
}
if ((Key.isDown(39) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr < TOPdirection) {
wheelr = wheelr + 1;
this.wheel0._rotation = -wheelr;
}
} else if ((Key.isDown(37) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr > (-TOPdirection)) {
wheelr = wheelr - 1;
this.wheel0._rotation = -wheelr;
}
}
if (Key.isDown(38) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed > (-Topspeed)) {
speed = speed - _parent.speedA;
}
Direction = 1;
Rotation = this._rotation;
} else if (Key.isDown(40) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed < Topspeed) {
speed = speed + _parent.speedA;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (wheelr * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (wheelr * (Math.abs(speed) / Topspeed));
}
if (speed > 0.2) {
speed = speed - _parent.ua;
} else if (speed < -0.2) {
speed = speed + _parent.ua;
} else {
speed = 0;
}
if ((((_root.JD < 7) && (_root.JD > -7)) && (KD == 0)) && (!gameover)) {
localToGlobal(point0);
if (_root.aimhit.hitTest(point0.x, point0.y, false)) {
_root.mtxtshow.gotoAndStop("pass");
KD = 1;
speed = 0;
gameover = true;
}
globalToLocal(point0);
}
}
}
Frame 97
stop();
if ((_root.resetMusic == null) || (_root.resetMusic)) {
_root.newSounds.StartMusic("level_2_mp3", _root.volume);
_root.resetMusic = false;
}
_root.times.vtime = timeAll[ryu];
mtxtshow.gotoAndStop(2);
pauses = true;
myboat.KD = 0;
c = 0;
vgo = true;
_root.hit = false;
record.times = _root.cotop[ryu];
Instance of Symbol 185 MovieClip [myboat10] "myboat" in Frame 97
onClipEvent (load) {
timemove = 0;
wheelr = 0;
speed = 0;
Topspeed = 10;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
i = 0;
while (i < _root.pa[9].length) {
this["point" + i] = {};
this["point" + i].x = _root.pa[9][i].px;
this["point" + i].y = _root.pa[9][i].py;
i++;
}
n = 0;
gameovertime = 30;
t = 30;
gameover = false;
}
onClipEvent (enterFrame) {
if (_root.hit == true) {
if (gameovertime == 0) {
gameovertime = -1;
if (_root.live > 0) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live <= 0) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
} else {
gameovertime--;
}
}
if (_root.pauses) {
_root.JD = this._rotation;
if (((_root.hit == false) && (_root.vgo == true)) && (!gameover)) {
t--;
if (t <= 0) {
_root.times.vtime--;
if (_root.times.vtime < 0) {
_root.times.vtime = 0;
gameover = true;
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live < 0) {
trace("myboat enterframe:gamevoer");
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
t = 30;
}
if (!gameover) {
m = n + 10;
if (m > _root.pa[9].length) {
m = _root.pa[9].length;
}
i = n;
while (i < m) {
localToGlobal(this["point" + i]);
if (_root.bghit.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.newSounds.PlaySound("crash_wav", _root.eventVolume);
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
globalToLocal(this["point" + i]);
i++;
}
if (m >= _root.pa[9].length) {
n = 0;
} else {
n = m;
}
}
}
if ((Key.isDown(39) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr < TOPdirection) {
wheelr = wheelr + 1;
this.wheel0._rotation = -wheelr;
}
} else if ((Key.isDown(37) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr > (-TOPdirection)) {
wheelr = wheelr - 1;
this.wheel0._rotation = -wheelr;
}
}
if (Key.isDown(38) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed > (-Topspeed)) {
speed = speed - _parent.speedA;
}
Direction = 1;
Rotation = this._rotation;
} else if (Key.isDown(40) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed < Topspeed) {
speed = speed + _parent.speedA;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (wheelr * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (wheelr * (Math.abs(speed) / Topspeed));
}
if (speed > 0.2) {
speed = speed - _parent.ua;
} else if (speed < -0.2) {
speed = speed + _parent.ua;
} else {
speed = 0;
}
if ((((_root.JD < -174) || (_root.JD > 174)) && (KD == 0)) && (!gameover)) {
localToGlobal(point0);
if (_root.aimhit.hitTest(point0.x, point0.y, false)) {
_root.mtxtshow.gotoAndStop("pass");
KD = 1;
speed = 0;
gameover = true;
}
globalToLocal(point0);
}
}
}
Frame 103
stop();
_root.newSounds.StartMusic("level_3_mp3", _root.volume);
_root.resetMusic = false;
_root.times.vtime = timeAll[ryu];
mtxtshow.gotoAndStop(2);
pauses = true;
myboat.KD = 0;
c = 0;
vgo = true;
_root.hit = false;
record.times = _root.cotop[ryu];
Instance of Symbol 179 MovieClip [myboat11] "myboat" in Frame 103
onClipEvent (load) {
timemove = 0;
wheelr = 0;
speed = 0;
Topspeed = 10;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
i = 0;
while (i < _root.pa[10].length) {
this["point" + i] = {};
this["point" + i].x = _root.pa[10][i].px;
this["point" + i].y = _root.pa[10][i].py;
i++;
}
n = 0;
gameovertime = 30;
t = 30;
gameover = false;
}
onClipEvent (enterFrame) {
if (_root.hit == true) {
if (gameovertime == 0) {
gameovertime = -1;
if (_root.live > 0) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live <= 0) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
} else {
gameovertime--;
}
}
if (_root.pauses) {
_root.JD = this._rotation;
if (((_root.hit == false) && (_root.vgo == true)) && (!gameover)) {
t--;
if (t <= 0) {
_root.times.vtime--;
if (_root.times.vtime < 0) {
_root.times.vtime = 0;
gameover = true;
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live < 0) {
trace("myboat enterframe:gamevoer");
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
t = 30;
}
if (!gameover) {
m = n + 10;
if (m > _root.pa[10].length) {
m = _root.pa[10].length;
}
i = n;
while (i < m) {
localToGlobal(this["point" + i]);
if (_root.www.hitter.hitTest(this["point" + i].x, this["point" + i].y, true)) {
globalToLocal(this["point" + i]);
_root.newSounds.PlaySound("swirling_wav", _root.eventVolume);
_rotation = (_rotation-1);
break;
}
if (_root.bghit.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.newSounds.PlaySound("crash_wav", _root.eventVolume);
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
globalToLocal(this["point" + i]);
i++;
}
if (m >= _root.pa[10].length) {
n = 0;
} else {
n = m;
}
}
}
if ((Key.isDown(39) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr < TOPdirection) {
wheelr = wheelr + 1;
this.wheel0._rotation = -wheelr;
}
} else if ((Key.isDown(37) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr > (-TOPdirection)) {
wheelr = wheelr - 1;
this.wheel0._rotation = -wheelr;
}
}
if (Key.isDown(38) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed > (-Topspeed)) {
speed = speed - (_parent.speedA * 0.7);
}
Direction = 1;
Rotation = this._rotation;
} else if (Key.isDown(40) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed < Topspeed) {
speed = speed + (_parent.speedA * 0.7);
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (wheelr * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (wheelr * (Math.abs(speed) / Topspeed));
}
if (speed > 0.2) {
speed = speed - _parent.ua;
} else if (speed < -0.2) {
speed = speed + _parent.ua;
} else {
speed = 0;
}
if ((((_root.JD < 7) && (_root.JD > -7)) && (KD == 0)) && (!gameover)) {
localToGlobal(point0);
if (_root.aimhit.hitTest(point0.x, point0.y, false)) {
_root.mtxtshow.gotoAndStop("pass");
KD = 1;
speed = 0;
gameover = true;
}
globalToLocal(point0);
}
}
}
Frame 110
stop();
if ((_root.resetMusic == null) || (_root.resetMusic)) {
_root.newSounds.StartMusic("level_3_mp3", _root.volume);
_root.resetMusic = false;
}
_root.times.vtime = timeAll[ryu];
mtxtshow.gotoAndStop(2);
pauses = true;
myboat.KD = 0;
c = 0;
vgo = true;
_root.hit = false;
record.times = _root.cotop[ryu];
Instance of Symbol 171 MovieClip [myboat12] "myboat" in Frame 110
onClipEvent (load) {
timemove = 0;
wheelr = 0;
speed = 0;
Topspeed = 10;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
i = 0;
while (i < _root.pa[11].length) {
this["point" + i] = {};
this["point" + i].x = _root.pa[11][i].px;
this["point" + i].y = _root.pa[11][i].py;
i++;
}
n = 0;
gameovertime = 30;
t = 30;
gameover = false;
}
onClipEvent (enterFrame) {
if (_root.hit == true) {
if (gameovertime == 0) {
gameovertime = -1;
if (_root.live > 0) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live <= 0) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
} else {
gameovertime--;
}
}
if (_root.pauses) {
_root.JD = this._rotation;
if (((_root.hit == false) && (_root.vgo == true)) && (!gameover)) {
t--;
if (t <= 0) {
_root.times.vtime--;
if (_root.times.vtime < 0) {
_root.times.vtime = 0;
gameover = true;
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live < 0) {
trace("myboat enterframe:gamevoer");
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
t = 30;
}
if (!gameover) {
m = n + 10;
if (m > _root.pa[11].length) {
m = _root.pa[11].length;
}
i = n;
while (i < m) {
localToGlobal(this["point" + i]);
if (_root.www.hitter.hitTest(this["point" + i].x, this["point" + i].y, true)) {
globalToLocal(this["point" + i]);
_root.newSounds.PlaySound("swirling_wav", _root.eventVolume);
_rotation = (_rotation-1);
break;
}
if (_root.bghit.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.newSounds.PlaySound("crash_wav", _root.eventVolume);
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
globalToLocal(this["point" + i]);
i++;
}
if (m >= _root.pa[11].length) {
n = 0;
} else {
n = m;
}
}
}
if ((Key.isDown(39) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr < TOPdirection) {
wheelr = wheelr + 1;
this.wheel0._rotation = -wheelr;
}
} else if ((Key.isDown(37) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr > (-TOPdirection)) {
wheelr = wheelr - 1;
this.wheel0._rotation = -wheelr;
}
}
if (Key.isDown(38) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed > (-Topspeed)) {
speed = speed - _parent.speedA;
}
Direction = 1;
Rotation = this._rotation;
} else if (Key.isDown(40) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed < Topspeed) {
speed = speed + _parent.speedA;
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (wheelr * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (wheelr * (Math.abs(speed) / Topspeed));
}
if (speed > 0.2) {
speed = speed - _parent.ua;
} else if (speed < -0.2) {
speed = speed + _parent.ua;
} else {
speed = 0;
}
if ((((_root.JD < -174) || (_root.JD > 174)) && (KD == 0)) && (!gameover)) {
localToGlobal(point0);
if (_root.aimhit.hitTest(point0.x, point0.y, false)) {
_root.mtxtshow.gotoAndStop("pass");
KD = 1;
speed = 0;
gameover = true;
}
globalToLocal(point0);
}
}
}
Frame 115
stop();
if ((_root.resetMusic == null) || (_root.resetMusic)) {
_root.newSounds.StartMusic("level_3_mp3", _root.volume);
_root.resetMusic = false;
}
_root.times.vtime = timeAll[ryu];
mtxtshow.gotoAndStop(2);
pauses = true;
myboat.KD = 0;
c = 0;
vgo = true;
_root.hit = false;
record.times = _root.cotop[ryu];
Instance of Symbol 843 MovieClip "mdi1" in Frame 115
onClipEvent (load) {
maxspd = 1;
spd = maxspd;
}
onClipEvent (enterFrame) {
if ((_root.pauses && (_root.myboat.KD == 0)) && (_root.vgo == true)) {
if ((spd < 0) && (this._x < 270)) {
spd = maxspd;
this._yscale = -this._yscale;
} else if ((spd > 0) && (this._x > 500)) {
spd = -maxspd;
this._yscale = -this._yscale;
}
_x = (_x + spd);
}
}
Instance of Symbol 885 MovieClip "www" in Frame 115
onClipEvent (load) {
n = 0;
i = 0;
while (i < _root.pa[_root.ryu].length) {
this["point" + i] = {};
this["point" + i].x = _root.pa[_root.ryu][i].px;
this["point" + i].y = _root.pa[_root.ryu][i].py;
i++;
}
}
onClipEvent (enterFrame) {
m = n + 10;
if (m > _root.pa[_root.ryu].length) {
m = _root.pa[_root.ryu].length;
}
i = n;
while (i < m) {
localToGlobal(this["point" + i]);
if (_root.bghit.hitTest(this["point" + i].x, this["point" + i].y, true)) {
if (_root.myboat.speed < 5) {
_root.myboat._rotation = _root.myboat._rotation + 1;
break;
}
}
globalToLocal(this["point" + i]);
i++;
}
if (m >= _root.pa[_root.ryu].length) {
n = 0;
} else {
n = m;
}
}
Instance of Symbol 846 MovieClip in Frame 115
onClipEvent (load) {
_root.myboat.pot = new Object();
_root.myboat.pot.x = 0;
_root.myboat.pot.y = -90;
shotlock = 0;
}
onClipEvent (enterFrame) {
if ((_root.pauses && (_root.myboat.KD == 0)) && (_root.vgo == true)) {
shotlock++;
if (shotlock > 0) {
_root.myboat.localToGlobal(_root.myboat.pot);
mdis = _root.getdis(_root.mdi1._x, _root.mdi1._y, _root.myboat.pot.x, _root.myboat.pot.y);
_root.myboat.globalToLocal(_root.myboat.pot);
if (mdis < 165) {
if (_root.mdi1._y > 0) {
this._x = _root.mdi1._x;
this._y = _root.mdi1._y;
}
} else {
var degree = 0.0174;
dx = Math.sin((-(_root.myboat._rotation - 180)) * degree);
dy = Math.cos((-(_root.myboat._rotation - 180)) * degree);
x2 = dx * 205;
y2 = dy * 205;
this._x = x2 + _root.myboat._x;
this._y = y2 + _root.myboat._y;
}
if (Key.isDown(32)) {
shotlock = -5;
if (_root.gunwav == null) {
_root.newSounds.PlaySound("gun_wav", _root.eventVolume);
mcf = _root.attachMovie("gunwav", "gunwav", 3000);
mcf._x = this._x;
mcf._y = this._y;
}
}
}
}
}
Instance of Symbol 164 MovieClip [myboat13] "myboat" in Frame 115
onClipEvent (load) {
timemove = 0;
wheelr = 0;
speed = 0;
Topspeed = 10;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
i = 0;
while (i < _root.pa[12].length) {
this["point" + i] = {};
this["point" + i].x = _root.pa[12][i].px;
this["point" + i].y = _root.pa[12][i].py;
i++;
}
n = 0;
gameovertime = 30;
t = 30;
gameover = false;
}
onClipEvent (enterFrame) {
if (_root.hit == true) {
if (gameovertime == 0) {
gameovertime = -1;
if (_root.live > 0) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live <= 0) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
} else {
gameovertime--;
}
}
if (_root.pauses) {
_root.JD = this._rotation;
if (((_root.hit == false) && (_root.vgo == true)) && (!gameover)) {
t--;
if (t <= 0) {
_root.times.vtime--;
if (_root.times.vtime < 0) {
_root.times.vtime = 0;
gameover = true;
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live < 0) {
trace("myboat enterframe:gamevoer");
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
t = 30;
}
if (!gameover) {
m = n + 10;
if (m > _root.pa[12].length) {
m = _root.pa[12].length;
}
i = n;
while (i < m) {
localToGlobal(this["point" + i]);
if (_root.www.hitter.hitTest(this["point" + i].x, this["point" + i].y, true)) {
globalToLocal(this["point" + i]);
_root.newSounds.PlaySound("swirling_wav", _root.eventVolume);
_rotation = (_rotation-1);
break;
}
if (_root.bghit.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.newSounds.PlaySound("crash_wav", _root.eventVolume);
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
globalToLocal(this["point" + i]);
i++;
}
if (m >= _root.pa[12].length) {
n = 0;
} else {
n = m;
}
}
}
if ((Key.isDown(39) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr < TOPdirection) {
wheelr = wheelr + 1;
this.wheel0._rotation = -wheelr;
}
} else if ((Key.isDown(37) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr > (-TOPdirection)) {
wheelr = wheelr - 1;
this.wheel0._rotation = -wheelr;
}
}
if (Key.isDown(38) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed > (-Topspeed)) {
speed = speed - (_parent.speedA * 0.75);
}
Direction = 1;
Rotation = this._rotation;
} else if (Key.isDown(40) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed < Topspeed) {
speed = speed + (_parent.speedA * 0.75);
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (wheelr * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (wheelr * (Math.abs(speed) / Topspeed));
}
if (speed > 0.2) {
speed = speed - _parent.ua;
} else if (speed < -0.2) {
speed = speed + _parent.ua;
} else {
speed = 0;
}
if ((((_root.JD < 97) && (_root.JD > 83)) && (KD == 0)) && (!gameover)) {
localToGlobal(point0);
if (_root.aimhit.hitTest(point0.x, point0.y, false)) {
_root.mtxtshow.gotoAndStop("pass");
KD = 1;
speed = 0;
gameover = true;
}
globalToLocal(point0);
}
}
}
Frame 121
stop();
if ((_root.resetMusic == null) || (_root.resetMusic)) {
_root.newSounds.StartMusic("level_3_mp3", _root.volume);
_root.resetMusic = false;
}
_root.times.vtime = timeAll[ryu];
mtxtshow.gotoAndStop(2);
pauses = true;
myboat.KD = 0;
c = 0;
vgo = true;
_root.hit = false;
record.times = _root.cotop[ryu];
Instance of Symbol 157 MovieClip [myboat14] "myboat" in Frame 121
onClipEvent (load) {
timemove = 0;
wheelr = 0;
speed = 0;
Topspeed = 8;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
i = 0;
while (i < _root.pa[13].length) {
this["point" + i] = {};
this["point" + i].x = _root.pa[13][i].px;
this["point" + i].y = _root.pa[13][i].py;
i++;
}
n = 0;
gameovertime = 30;
t = 30;
gameover = false;
}
onClipEvent (enterFrame) {
if (_root.hit == true) {
if (gameovertime == 0) {
gameovertime = -1;
if (_root.live > 0) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live <= 0) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
} else {
gameovertime--;
}
}
if (_root.pauses) {
_root.JD = this._rotation;
if (((_root.hit == false) && (_root.vgo == true)) && (!gameover)) {
t--;
if (t <= 0) {
_root.times.vtime--;
if (_root.times.vtime < 0) {
_root.times.vtime = 0;
gameover = true;
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live < 0) {
trace("myboat enterframe:gamevoer");
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
t = 30;
}
if (!gameover) {
m = n + 10;
if (m > _root.pa[13].length) {
m = _root.pa[13].length;
}
i = n;
while (i < m) {
localToGlobal(this["point" + i]);
if (_root.bghit.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.newSounds.PlaySound("crash_wav", _root.eventVolume);
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
globalToLocal(this["point" + i]);
i++;
}
if (m >= _root.pa[13].length) {
n = 0;
} else {
n = m;
}
}
}
if ((Key.isDown(39) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr < TOPdirection) {
wheelr = wheelr + 1;
this.wheel0._rotation = -wheelr;
}
} else if ((Key.isDown(37) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr > (-TOPdirection)) {
wheelr = wheelr - 1;
this.wheel0._rotation = -wheelr;
}
}
if (Key.isDown(38) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed > (-Topspeed)) {
speed = speed - (_parent.speedA * 0.75);
}
Direction = 1;
Rotation = this._rotation;
} else if (Key.isDown(40) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed < Topspeed) {
speed = speed + (_parent.speedA * 0.75);
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (wheelr * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (wheelr * (Math.abs(speed) / Topspeed));
}
if (speed > 0.2) {
speed = speed - _parent.ua;
} else if (speed < -0.2) {
speed = speed + _parent.ua;
} else {
speed = 0;
}
if ((((_root.JD > -97) && (_root.JD < -83)) && (KD == 0)) && (!gameover)) {
localToGlobal(point0);
if (_root.aimhit.hitTest(point0.x, point0.y, false)) {
_root.mtxtshow.gotoAndStop("pass");
KD = 1;
speed = 0;
gameover = true;
}
globalToLocal(point0);
}
}
_root.mdarkmask._x = this._x;
_root.mdarkmask._y = this._y;
}
Frame 127
stop();
if ((_root.resetMusic == null) || (_root.resetMusic)) {
_root.newSounds.StartMusic("level_3_mp3", _root.volume);
_root.resetMusic = false;
}
_root.times.vtime = timeAll[ryu];
mtxtshow.gotoAndStop(2);
pauses = true;
myboat.KD = 0;
c = 0;
vgo = true;
_root.hit = false;
record.times = _root.cotop[ryu];
Instance of Symbol 137 MovieClip [myboat15] "myboat" in Frame 127
onClipEvent (load) {
timemove = 0;
wheelr = 0;
speed = 0;
Topspeed = 10;
Direction = 1;
TOPdirection = 30;
Rotation = 0;
i = 0;
while (i < _root.pa[14].length) {
this["point" + i] = {};
this["point" + i].x = _root.pa[14][i].px;
this["point" + i].y = _root.pa[14][i].py;
i++;
}
n = 0;
gameovertime = 30;
t = 30;
gameover = false;
}
onClipEvent (enterFrame) {
if (_root.hit == true) {
if (gameovertime == 0) {
gameovertime = -1;
if (_root.live > 0) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live <= 0) {
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
} else {
gameovertime--;
}
}
if (_root.pauses) {
_root.JD = this._rotation;
if (((_root.hit == false) && (_root.vgo == true)) && (!gameover)) {
t--;
if (t <= 0) {
_root.times.vtime--;
if (_root.times.vtime < 0) {
_root.times.vtime = 0;
gameover = true;
if (_root.live > 1) {
_root.OK.removeMovieClip();
_root.gamelose();
} else if (_root.live < 0) {
trace("myboat enterframe:gamevoer");
_root.OK.removeMovieClip();
_root.gotoAndStop("GAMEOVER");
}
speed = 0;
KD = 1;
}
t = 30;
}
if (!gameover) {
m = n + 10;
if (m > _root.pa[14].length) {
m = _root.pa[14].length;
}
i = n;
while (i < m) {
localToGlobal(this["point" + i]);
if (_root.bghit.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_root.newSounds.PlaySound("crash_wav", _root.eventVolume);
speed = 0;
KD = 1;
this.play();
_root.hit = true;
break;
}
if (_root.www.hitter.hitTest(this["point" + i].x, this["point" + i].y, true)) {
_rotation = (_rotation + 1);
break;
}
globalToLocal(this["point" + i]);
i++;
}
if (m >= _root.pa[14].length) {
n = 0;
} else {
n = m;
}
}
}
if ((Key.isDown(39) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr < TOPdirection) {
wheelr = wheelr + 1;
this.wheel0._rotation = -wheelr;
}
} else if ((Key.isDown(37) && (KD == 0)) && (_root.vgo == true)) {
if (wheelr > (-TOPdirection)) {
wheelr = wheelr - 1;
this.wheel0._rotation = -wheelr;
}
}
if (Key.isDown(38) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed > (-Topspeed)) {
speed = speed - (_parent.speedA * 0.6);
}
Direction = 1;
Rotation = this._rotation;
} else if (Key.isDown(40) && (KD == 0)) {
_root.newSounds.PlaySound("addSpeed_wav", _root.eventVolume);
_root.vgo = true;
_root.JT._y = -100;
if (speed < Topspeed) {
speed = speed + (_parent.speedA * 0.6);
}
Direction = 0;
Rotation = -this._rotation;
}
if (speed < 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation + (wheelr * (Math.abs(speed) / Topspeed));
} else if (speed > 0) {
var degree = 0.017453;
this._x = this._x - (Math.sin(this._rotation * degree) * speed);
this._y = this._y + (Math.cos(this._rotation * degree) * speed);
this._rotation = this._rotation - (wheelr * (Math.abs(speed) / Topspeed));
}
if (speed > 0.2) {
speed = speed - _parent.ua;
} else if (speed < -0.2) {
speed = speed + _parent.ua;
} else {
speed = 0;
}
if ((((_root.JD < 7) && (_root.JD > -7)) && (KD == 0)) && (!gameover)) {
localToGlobal(point0);
if (_root.aimhit.hitTest(point0.x, point0.y, false)) {
_root.mtxtshow.gotoAndStop("pass");
KD = 1;
speed = 0;
gameover = true;
}
globalToLocal(point0);
}
}
}
Frame 137
stop();
Frame 146
stop();
if ((_root.firstRun == false) && (_root.mainRun != true)) {
_root.newSounds.StartMusic("mainscreen_mp3", _root.volume);
}
Instance of Symbol 74 MovieClip in Frame 146
on (release) {
getURL (_root.localization_url1, "_black");
}
Frame 166
stopAllSounds();
_root.ryu = 1;
_root.newSounds.PlaySound("gameover_mp3", _root.volume);
Frame 167
stop();
Frame 185
stop();
_root.newSounds.PlaySound("complete_mp3", _root.volume);
Frame 186
stop();
Symbol 3 MovieClip [wavesEffect] Frame 30
this.removeMovieClip();
Symbol 19 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 74 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Instance of Symbol 43 MovieClip in Symbol 74 MovieClip Frame 1
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 47 MovieClip in Symbol 74 MovieClip Frame 2
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 49 MovieClip in Symbol 74 MovieClip Frame 3
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 51 MovieClip in Symbol 74 MovieClip Frame 4
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 53 MovieClip in Symbol 74 MovieClip Frame 5
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 55 MovieClip in Symbol 74 MovieClip Frame 6
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 57 MovieClip in Symbol 74 MovieClip Frame 7
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 59 MovieClip in Symbol 74 MovieClip Frame 8
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 61 MovieClip in Symbol 74 MovieClip Frame 9
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 65 MovieClip in Symbol 74 MovieClip Frame 10
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 67 MovieClip in Symbol 74 MovieClip Frame 11
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 69 MovieClip in Symbol 74 MovieClip Frame 12
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 71 MovieClip in Symbol 74 MovieClip Frame 13
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 73 MovieClip in Symbol 74 MovieClip Frame 14
on (release) {
getURL (_root.localization_url1, "_blank");
}
Symbol 90 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1333 MovieClip [__Packages.com.Sounds] Frame 0
class com.Sounds
{
var dmc, sounds, soundsmc;
function Sounds (mc) {
dmc = mc.createEmptyMovieClip("sounds", mc.getNextHighestDepth());
Init();
}
function CreateSound(soundName, depth) {
var _local3 = soundName;
var _local1 = dmc.createEmptyMovieClip(_local3, depth);
_local1.isPlaying = false;
var _local2 = new Sound(_local1);
_local2.attachSound(_local3);
sounds[_local3] = _local2;
soundsmc[_local3] = _local1;
}
function Init() {
var _local1 = this;
_local1.sounds = new Array();
_local1.soundsmc = new Array();
_local1.CreateSound("mainscreen_mp3", 1);
_local1.CreateSound("gameover_mp3", 2);
_local1.CreateSound("complete_mp3", 3);
_local1.CreateSound("level_1_mp3", 4);
_local1.CreateSound("level_2_mp3", 5);
_local1.CreateSound("level_3_mp3", 6);
_local1.CreateSound("waveEffect_wav", 7);
_local1.CreateSound("menu_touch_wav", 8);
_local1.CreateSound("menu_press_wav", 9);
_local1.CreateSound("crash_wav", 10);
_local1.CreateSound("gun_wav", 11);
_local1.CreateSound("addSpeed_wav", 12);
_local1.CreateSound("swirling_wav", 13);
}
function PlaySound(soundName, Volume) {
var _local2 = this;
var _local3 = Volume;
if (_local3 == null) {
_local3 = 100;
}
if (_local2.soundEnabled) {
var mc = _local2.soundsmc[soundName];
mc.onEnterFrame = null;
var _local1 = _local2.sounds[soundName];
_local1.stop();
_local1.setVolume(_local3);
_local1.start(0, 1);
mc.isPlaying = true;
_local1.onSoundComplete = function () {
mc.isPlaying = false;
};
}
}
function StopSound(soundName) {
var _local2 = sounds[soundName];
var _local1 = soundsmc[soundName];
_local2.stop();
_local1.isPlaying = false;
}
function LoopSound(soundName, Volume) {
var _local1 = this;
if (Volume == null) {
Volume = 100;
}
if (_local1.soundEnabled) {
var _local3 = _local1.sounds[soundName];
var _local2 = _local1.soundsmc[soundName];
if (!_local2.isPlaying) {
_local2.isPlaying = true;
_local3.start(0, 1);
_local3.onSoundComplete = function () {
this.start(0, 1);
};
} else {
_local1.FadeVolume(soundName, true, false, 3, Volume);
}
}
}
function playSpeedUp() {
var _local3 = this;
var _local2 = _local3.sounds.speedUp;
var _local1 = _local3.soundsmc.speedUp;
if (!_local1.isPlaying) {
_local1.isPlaying = true;
_local2.start();
var owner = _local3;
_local2.onSoundComplete = function () {
owner.LoopKeepUp();
};
}
}
function LoopKeepUp() {
var _local3 = this;
var _local2 = _local3.sounds.keepUp;
var _local1 = _local3.soundsmc.keepUp;
if (!_local1.isPlaying) {
_local1.isPlaying = true;
_local2.start(0, 1);
_local2.onSoundComplete = function () {
this.start(0, 1);
};
}
}
function playSpeedDown() {
var _local1 = this;
var snd = _local1.sounds.speedUp;
var _local2 = _local1.soundsmc.speedUp;
var snd2 = _local1.sounds.keepUp;
var _local3 = _local1.soundsmc.keepUp;
if (_local2.isPlaying) {
snd.stop();
_local2.isPlaying = false;
}
if (_local3.isPlaying) {
snd2.stop();
_local3.isPlaying = false;
var snd3 = _local1.sounds.speedDown;
var mc3 = _local1.soundsmc.speedDown;
snd3.start(0, 1);
mc3.isPlaying = true;
var owner = _local1;
snd3.onSoundComplete = function () {
owner.soundsmc.speedUp.isPlaying = false;
};
}
}
function StartMusic(musicName, Volume) {
var _local2 = this;
if (Volume == null) {
Volume = 40;
}
_local2.FadeMusic();
if (_local2.soundEnabled) {
var _local3 = _local2.soundsmc[musicName];
_local3.onEnterFrame = null;
var _local1 = _local2.sounds[musicName];
_local1.stop();
_local1.setVolume(Volume);
_local1.start(0, 999);
}
_local2.currentMusicName = musicName;
}
function FadeMusic() {
var _local1 = this;
if (_local1.currentMusicName != null) {
_local1.FadeVolume(_local1.currentMusicName, false, false, 3);
_local1.currentMusicName = null;
}
}
function ToggleSound(mc) {
var _local1 = this;
_local1.soundEnabled = !_local1.soundEnabled;
if (_local1.soundEnabled) {
mc.gotoAndStop("on");
if (_local1.currentMusicName != null) {
_local1.StartMusic(_local1.currentMusicName);
}
} else {
mc.gotoAndStop("off");
for (var _local2 in _local1.sounds) {
_local1.FadeVolume(_local2, false, false, null);
}
}
}
function FadeVolume(soundName, louder, fromStart, speed, Volume) {
var _local2 = this;
if (speed == null) {
speed = 3;
}
if (Volume == null) {
Volume = 100;
}
var snd = _local2.sounds[soundName];
var _local1 = _local2.soundsmc[soundName];
if (fromStart) {
if (louder) {
snd.setVolume(1);
snd.start(0, 1);
_local1.isPlaying = true;
} else {
snd.setVolume(Volume - 1);
}
}
if (louder) {
_local1.onEnterFrame = function () {
snd.setVolume(snd.getVolume() + speed);
if (snd.getVolume() >= (Volume - 1)) {
snd.setVolume(Volume);
delete this.onEnterFrame;
}
};
} else {
_local1.onEnterFrame = function () {
snd.setVolume(snd.getVolume() - speed);
if (snd.getVolume() <= 0) {
snd.stop();
snd.setVolume(Volume);
this.isPlaying = false;
delete this.onEnterFrame;
}
};
}
}
var soundEnabled = true;
}
Symbol 94 MovieClip [zidan] Frame 1
dis = 2;
dx = _root.myboat._x - _x;
dy = _root.myboat._y - _y;
if (dx >= dy) {
step = dx / dis;
} else {
step = dy / dis;
}
mdx = dx / step;
mdy = dy / step;
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_x = (_x + mdx);
_y = (_y + mdy);
if (_local2.myboat.hitTest(_local1._x, _local1._y, true)) {
trace("!!!!!!!!");
_local2.myboat.play();
_local2.hit = true;
_local1.removeMovieClip();
delete _local1.onEnterFrame;
}
};
Symbol 94 MovieClip [zidan] Frame 4
gotoAndPlay (2);
Symbol 112 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 114 Button
on (release, keyPress "<Space>") {
_root.gotoAndPlay("gamestart");
}
Symbol 137 MovieClip [myboat15] Frame 1
stop();
Symbol 137 MovieClip [myboat15] Frame 21
stop();
Symbol 157 MovieClip [myboat14] Frame 1
stop();
Symbol 157 MovieClip [myboat14] Frame 21
stop();
Symbol 164 MovieClip [myboat13] Frame 1
stop();
Symbol 164 MovieClip [myboat13] Frame 21
stop();
Symbol 171 MovieClip [myboat12] Frame 1
stop();
Symbol 171 MovieClip [myboat12] Frame 21
stop();
Symbol 179 MovieClip [myboat11] Frame 1
stop();
Symbol 179 MovieClip [myboat11] Frame 21
stop();
Symbol 185 MovieClip [myboat10] Frame 1
stop();
Symbol 185 MovieClip [myboat10] Frame 21
stop();
Symbol 188 MovieClip [myboat9] Frame 1
stop();
Symbol 188 MovieClip [myboat9] Frame 20
stop();
Symbol 207 MovieClip [myboat8] Frame 1
stop();
Symbol 207 MovieClip [myboat8] Frame 21
stop();
Symbol 207 MovieClip [myboat8] Frame 45
stop();
Symbol 231 MovieClip [myboat7] Frame 1
stop();
Symbol 231 MovieClip [myboat7] Frame 21
stop();
Symbol 240 MovieClip [myboat6] Frame 1
stop();
Symbol 240 MovieClip [myboat6] Frame 21
stop();
Symbol 248 MovieClip [myboat5] Frame 1
stop();
Symbol 248 MovieClip [myboat5] Frame 21
stop();
Symbol 248 MovieClip [myboat5] Frame 45
stop();
Symbol 251 MovieClip [myboat4] Frame 1
stop();
Symbol 251 MovieClip [myboat4] Frame 21
stop();
Symbol 257 MovieClip [myboat3] Frame 1
stop();
Symbol 257 MovieClip [myboat3] Frame 21
stop();
Symbol 260 MovieClip [myboat2] Frame 1
stop();
Symbol 260 MovieClip [myboat2] Frame 20
stop();
Symbol 260 MovieClip [myboat2] Frame 44
stop();
Symbol 263 MovieClip [myboat1] Frame 1
stop();
Symbol 263 MovieClip [myboat1] Frame 28
stop();
Symbol 267 MovieClip [gunwav] Frame 1
if (_root.mdi1.hitTest(this._x, this._y, true)) {
_root.mdi1._y = -20000;
} else if (_root.mdi2.hitTest(this._x, this._y, true)) {
_root.mdi2._y = -20000;
}
Symbol 267 MovieClip [gunwav] Frame 4
this.removeMovieClip();
Symbol 295 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 317 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 319 Button
on (release) {
_root.newSounds.PlaySound("menu_press_wav", _root.eventVolume);
_root.mainRun = false;
gotoAndPlay ("inits");
}
on (rollOver) {
_root.newSounds.PlaySound("menu_touch_wav", _root.eventVolume);
}
Symbol 333 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 335 Button
on (release) {
_root.newSounds.PlaySound("menu_press_wav", _root.eventVolume);
gotoAndStop ("helps");
}
on (rollOver) {
_root.newSounds.PlaySound("menu_touch_wav", _root.eventVolume);
}
Symbol 349 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 351 Button
on (release) {
_root.newSounds.PlaySound("menu_press_wav", _root.eventVolume);
_root.mainRun = true;
gotoAndStop ("highsscore");
}
on (rollOver) {
_root.newSounds.PlaySound("menu_touch_wav", _root.eventVolume);
}
Symbol 365 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 367 Button
on (release) {
_root.newSounds.PlaySound("menu_press_wav", _root.eventVolume);
getURL (_root.localization_url1, "_blank");
}
on (rollOver) {
_root.newSounds.PlaySound("menu_touch_wav", _root.eventVolume);
}
Symbol 382 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 386 Button
on (release) {
_root.newSounds.PlaySound("menu_press_wav", _root.eventVolume);
getURL (_root.localization_url2, "_blank");
}
on (rollOver) {
_root.newSounds.PlaySound("menu_touch_wav", _root.eventVolume);
}
Symbol 401 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 403 Button
on (release) {
_quality = "MEDIUM";
nextFrame();
}
Symbol 417 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 425 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 426 Button
on (release) {
_quality = "LOW";
nextFrame();
}
Symbol 441 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 442 Button
on (release) {
_quality = "HIGH";
gotoAndStop (1);
}
Symbol 443 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 459 Button
on (release) {
_root.sound_flag = false;
if (_root.sounds) {
_root.sounds.sv = 0;
_root.sounds.ss.setVolume(_root.sounds.sv);
} else {
_root.ss.setVolume(0);
}
nextFrame();
}
Symbol 474 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 488 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 489 Button
on (release) {
_root.msound._x = -100;
_root.sound_flag = true;
if (_root.sounds) {
_root.sounds.sv = 100;
_root.sounds.ss.setVolume(_root.sounds.sv);
} else {
_root.ss.setVolume(100);
}
prevFrame();
}
Symbol 490 MovieClip Frame 1
if (_root.sound_flag) {
stop();
_root.newSounds.soundEnabled = true;
} else {
_root.newSounds.soundEnabled = false;
_root.newSounds.FadeMusic();
gotoAndStop (2);
}
Symbol 522 MovieClip Frame 1
onEnterFrame = function () {
var _local1 = _parent;
var _local2 = this;
if ((_local1.myboat.speed != 0) && (_local1.myboat._currentframe == 1)) {
_rotation = ((_local1.myboat.speed < 0) ? (_local1.JD) : (180 + _local1.JD));
_local2._x = _local1.myboat._x - (_local1.myboat.wheel0._y * Math.sin((Math.PI/180) * _rotation));
_local2._y = _local1.myboat._y + (_local1.myboat.wheel0._y * Math.cos((Math.PI/180) * _rotation));
_local2._visible = true;
} else {
_local2._visible = false;
}
};
Symbol 527 MovieClip Frame 39
stop();
Symbol 528 MovieClip Frame 1
onEnterFrame = function () {
if (_root.hit == true) {
_x = _parent.myboat._x;
_y = _parent.myboat._y;
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 560 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 563 MovieClip Frame 1
_visible = false;
Symbol 578 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 593 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 600 MovieClip Frame 1
if (_root.live == 0) {
stop();
} else {
gotoAndStop(_root.live + 1);
}
Symbol 600 MovieClip Frame 2
stop();
Symbol 600 MovieClip Frame 4
stop();
Symbol 617 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 618 MovieClip Frame 1
times = _root.alltimes;
stop();
Symbol 618 MovieClip Frame 31
if (times > -1) {
times--;
gotoAndPlay (2);
} else {
_root.gotoAndPlay("lose");
}
Symbol 631 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 637 Button
on (release) {
_root.pauses = false;
_root.mtxtshow.gotoAndStop("pauseShow");
gotoAndStop (2);
}
Symbol 641 Button
on (release) {
_root.myboat.KD = 0;
_root.pauses = true;
_root.mtxtshow.gotoAndStop(2);
gotoAndStop (1);
}
Symbol 642 MovieClip Frame 1
stop();
Symbol 642 MovieClip Frame 2
stop();
Symbol 645 Button
on (release, keyPress "<Space>") {
_root.vgo = true;
_root.myboat.KD = 0;
this.gotoAndStop(2);
}
Symbol 647 Button
on (release, keyPress "<Space>") {
_root.myboat.KD = 0;
_root.pauses = true;
_root.gsShow.gsShow.gotoAndStop(1);
this.gotoAndStop(2);
}
Symbol 664 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 665 Button
on (release, keyPress "<Space>") {
_root.ryu++;
_root.gotoAndPlay("gamestart");
}
Symbol 680 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 699 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 712 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 726 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 740 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 755 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 756 MovieClip Frame 1
stop();
_root.gsShow._visible = false;
Symbol 756 MovieClip Frame 2
stop();
_root.gsShow._visible = true;
Symbol 756 MovieClip Frame 3
_root.gsShow._visible = true;
showtxt = _root.text_pause;
Symbol 756 MovieClip Frame 4
t = _root.times.vtime;
score = (t * t) * 10;
_root.allscore = _root.allscore + score;
stop();
if ((_root.timeAll[_root.ryu] - _root.times.vtime) < _root.cotop[_root.ryu]) {
_root.cotop[_root.ryu] = _root.timeAll[_root.ryu] - _root.times.vtime;
_root.myLSO.data.cotop = _root.cotop;
} else {
mrecord.gotoAndStop(2);
}
_root.gsShow._visible = false;
Symbol 756 MovieClip Frame 6
stop();
_root.gsShow._visible = false;
_root.newSounds.FadeMusic();
_root.resetMusic = true;
Symbol 768 MovieClip Frame 1
stop();
Symbol 768 MovieClip Frame 24
stop();
Instance of Symbol 827 MovieClip in Symbol 828 MovieClip Frame 1
onClipEvent (load) {
SJ = 100;
TT = 0;
var degree = 0.017;
}
onClipEvent (enterFrame) {
if (_root.pauses && (_root.myboat.KD == 0)) {
if (TT <= 32) {
TT++;
}
if ((_root.hit == false) && (_root.myboat.timemove == 0)) {
this.play();
if (Key.isDown(32) && (TT >= 30)) {
_root.attachMovie("wavesEffect", wavesEffect, 2000, {_x:_root.myboat._x, _y:_root.myboat._y, _rotation:_root.myboat._rotation});
_root.newSounds.PlaySound("waveEffect_wav", _root.eventVolume);
TT = 0;
SJ = 300;
this._rotation = ((Math.atan((_root.myboat._y - _y) / (_root.myboat._x - _x)) / Math.PI) * 180) - 270;
}
this._x = this._x - (Math.sin(this._rotation * degree) * 1);
this._y = this._y + (Math.cos(this._rotation * degree) * 1);
if (SJ > 0) {
SJ = SJ - 1;
} else if (SJ <= 0) {
SJ = 300;
this._rotation = random(180) - random(180);
} else if ((((this._x < 40) || (this._x > 540)) || (this._y < 40)) || (this._y > 350)) {
this._rotation = this._rotation + 180;
}
if (_root.mhbhit.hitTest(this._x, this._y, true)) {
SJ = 300;
this._rotation = (this._rotation + 200) - random(40);
this._x = this._x - (Math.sin(this._rotation * degree) * 3);
this._y = this._y + (Math.cos(this._rotation * degree) * 3);
}
} else if ((_root.hit == true) || (_root.myboat.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
}
}
Instance of Symbol 827 MovieClip in Symbol 857 MovieClip Frame 1
onClipEvent (load) {
SJ = 100;
TT = 0;
var degree = 0.017;
}
onClipEvent (enterFrame) {
if (_root.pauses && (_root.myboat.KD == 0)) {
if (TT <= 32) {
TT++;
}
if ((_root.hit == false) && (!_root.myboat.gameover)) {
this.play();
if (Key.isDown(32) && (TT >= 30)) {
_root.attachMovie("wavesEffect", wavesEffect, 2000, {_x:_root.myboat._x, _y:_root.myboat._y, _rotation:_root.myboat._rotation});
_root.newSounds.PlaySound("waveEffect_wav", _root.eventVolume);
TT = 0;
SJ = 300;
this._rotation = ((Math.atan((_root.myboat._y - _y) / (_root.myboat._x - _x)) / Math.PI) * 180) - 270;
}
this._x = this._x - (Math.sin(this._rotation * degree) * 1);
this._y = this._y + (Math.cos(this._rotation * degree) * 1);
if ((((this._x < 40) || (this._x > 520)) || (this._y < 40)) || (this._y > 350)) {
this._rotation = this._rotation + 180;
}
if (_root.mhbhit.hitTest(this._x, this._y, true)) {
this._rotation = (this._rotation + 200) - random(40);
this._x = this._x - (Math.sin(this._rotation * degree) * 3);
this._y = this._y + (Math.cos(this._rotation * degree) * 3);
}
} else if ((_root.hit == true) || (_root.myboat.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
}
}
Symbol 878 MovieClip Frame 1
_visible = false;
Instance of Symbol 906 MovieClip in Symbol 907 MovieClip Frame 1
onClipEvent (load) {
maxspd = 1;
spd = maxspd;
}
onClipEvent (enterFrame) {
if ((_root.pauses && (_root.myboat.KD == 0)) && (_root.vgo == true)) {
if ((spd < 0) && (this._x < -10)) {
spd = maxspd;
this._yscale = -this._yscale;
} else if ((spd > 0) && (this._x > 295)) {
spd = -maxspd;
this._yscale = -this._yscale;
}
_x = (_x + spd);
}
}
Instance of Symbol 906 MovieClip in Symbol 907 MovieClip Frame 1
onClipEvent (load) {
maxspd = -1;
spd = maxspd;
}
onClipEvent (enterFrame) {
if ((_root.pauses && (_root.myboat.KD == 0)) && (_root.vgo == true)) {
if ((spd < 0) && (this._x < -10)) {
spd = -maxspd;
this._yscale = -this._yscale;
} else if ((spd > 0) && (this._x > 155)) {
spd = maxspd;
this._yscale = -this._yscale;
}
_x = (_x + spd);
}
}
Instance of Symbol 906 MovieClip in Symbol 909 MovieClip Frame 1
onClipEvent (load) {
maxspd = 1;
spd = maxspd;
}
onClipEvent (enterFrame) {
if ((_root.pauses && (_root.myboat.KD == 0)) && (_root.vgo == true)) {
if ((spd < 0) && (this._x < -10)) {
spd = maxspd;
this._yscale = -this._yscale;
} else if ((spd > 0) && (this._x > 295)) {
spd = -maxspd;
this._yscale = -this._yscale;
}
_x = (_x + spd);
}
}
Instance of Symbol 827 MovieClip in Symbol 909 MovieClip Frame 1
onClipEvent (load) {
SJ = 100;
TT = 0;
var degree = 0.017;
}
onClipEvent (enterFrame) {
if (_root.pauses && (_root.myboat.KD == 0)) {
if (TT <= 32) {
TT++;
}
if ((_root.hit == false) && (!_root.myboat.gameover)) {
this.play();
if (Key.isDown(32) && (TT >= 30)) {
_root.attachMovie("wavesEffect", wavesEffect, 2000, {_x:_root.myboat._x, _y:_root.myboat._y, _rotation:_root.myboat._rotation});
_root.newSounds.PlaySound("waveEffect_wav", _root.eventVolume);
TT = 0;
SJ = 300;
this._rotation = ((Math.atan((_root.myboat._y - _y) / (_root.myboat._x - _x)) / Math.PI) * 180) - 270;
}
this._x = this._x - (Math.sin(this._rotation * degree) * 1);
this._y = this._y + (Math.cos(this._rotation * degree) * 1);
if (SJ > 0) {
SJ = SJ - 1;
} else if (SJ <= 0) {
SJ = 300;
this._rotation = random(180) - random(180);
} else if ((((this._x < 40) || (this._x > 540)) || (this._y < 40)) || (this._y > 350)) {
this._rotation = this._rotation + 180;
}
if (_root.mhbhit.hitTest(this._x, this._y, true)) {
SJ = 300;
this._rotation = (this._rotation + 200) - random(40);
this._x = this._x - (Math.sin(this._rotation * degree) * 3);
this._y = this._y + (Math.cos(this._rotation * degree) * 3);
}
} else if ((_root.hit == true) || (_root.myboat.timemove == 1)) {
this.stop();
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
}
}
Symbol 954 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 967 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 982 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 996 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1010 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1025 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1025 MovieClip Frame 14
gotoAndStop(_root.localization_language_nr);
Symbol 1027 Button
on (release) {
gotoAndPlay ("inits");
}
Symbol 1042 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1043 Button
on (release) {
gotoAndStop ("menus");
}
Symbol 1056 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1060 MovieClip Frame 15
stop();
Symbol 1075 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1076 MovieClip Frame 1
stop();
Symbol 1111 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1123 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1135 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1146 MovieClip Frame 1
i = 0;
while (i < 10) {
this["name" + (i + 1)] = _root.myLSO.data.topten[i].na;
this["sc" + (i + 1)] = _root.myLSO.data.topten[i].sc;
i++;
}
Instance of Symbol 1076 MovieClip "topnew" in Symbol 1146 MovieClip Frame 1
onClipEvent (load) {
if (_root.newat == -1) {
gotoAndStop (11);
} else {
gotoAndStop(_root.newat);
}
}
Symbol 1162 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1163 Button
on (release) {
getURL (_root.localization_url1, "_blank");
}
Symbol 1199 Button
on (release) {
getURL (_root.localization_url1, "_blank");
}
Symbol 1214 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1216 Button
on (release) {
stopAllSounds();
if (user == "") {
user = _root.cpu;
}
newat = addtopten(user, allscore);
life = 4;
bullets = 4;
score = 0;
flying = 1;
gotoAndStop ("highsscore");
_root.newSounds.StopSound("failed_mp3", _root.volume);
}
Symbol 1233 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1233 MovieClip Frame 14
gotoAndStop(_root.localization_language_nr);
Symbol 1248 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1276 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1306 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1324 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 1325 Button
on (release, keyPress "<Space>") {
stopAllSounds();
_parent.nextFrame();
nextFrame();
}
Symbol 1326 MovieClip Frame 1
_root.newSounds.PlaySound("complete_mp3", _root.eventVolume);
Symbol 1326 MovieClip Frame 121
stop();
Symbol 1326 MovieClip Frame 122
stop();
Symbol 1329 Button
on (release) {
if (user == "") {
user = _root.cpu;
}
newat = addtopten(user, allscore);
life = 4;
bullets = 4;
score = 0;
flying = 1;
gotoAndStop ("highsscore");
}
Symbol 1332 Button
on (release) {
_root.newSounds.PlaySound("menu_press_wav", _root.eventVolume);
getURL (_root.localization_url1, "_blank");
}
on (rollOver) {
_root.newSounds.PlaySound("menu_touch_wav", _root.eventVolume);
}