Frame 1
totalB = this.getBytesTotal();
KB = int(totalB / 1024);
Frame 2
loadB = this.getBytesLoaded();
percent = int((loadB / totalB) * 100);
bar.gotoAndStop(_root.percent);
Frame 3
if (percent < 100) {
gotoAndPlay (2);
} else {
gotoAndStop (4);
}
Frame 4
Mouse.hide();
startDrag ("/pointer", true);
sShoot = new Sound();
sShoot.attachSound("sShoot");
sExp = new Sound();
sExp.attachSound("sExp");
stop();
Instance of Symbol 26 MovieClip [mP] "pointer" in Frame 4
onClipEvent (mouseDown) {
_root.sShoot.start();
}
Frame 5
score = 0;
playTime = 100;
var expX;
var expY;
cDepth = 100;
pDepth = 0;
numPlane = 0;
numCloud = 0;
_root.attachMovie("mP", "pointer", 300);
startDrag ("/pointer", true);
"50".stop();
Instance of Symbol 85 MovieClip in Frame 5
onClipEvent (mouseDown) {
_root.sShoot.start();
}
Frame 12
if ((Math.random() < 0.2) && (numCloud < 5)) {
numCloud++;
_root.attachMovie("mCloud", "c" + cDepth, cDepth);
cDepth = ((++cDepth) % 100) + 100;
}
if ((Math.random() < 0.5) && (numPlane < 9)) {
_root.attachMovie("mPlane" + (1 + random(3)), "P" + pDepth, pDepth);
numPlane++;
with (eval ("/p" + pDepth)) {
_x = -20 - random(120);
_y = 150 + random(60);
}
pDepth = (++pDepth) % 100;
}
Frame 18
gotoAndPlay (12);
Frame 25
_root.pointer.removeMovieClip();
Frame 53
Mouse.show();
i = 0;
while (i < 100) {
removeMovieClip("/c" + (100 + i));
removeMovieClip("/p" + i);
i++;
}
stop();
Symbol 3 MovieClip [mCloud] Frame 1
this._x = 575;
this._y = 30 + random(300);
speed = 2 + random(5);
Symbol 3 MovieClip [mCloud] Frame 3
this._x = this._x - speed;
Symbol 3 MovieClip [mCloud] Frame 5
if (this._x < -35) {
_root.numCloud--;
this.removeMovieClip();
} else {
gotoAndPlay(_currentframe - 2);
}
Symbol 8 Button
on (press) {
point = new Object();
point.x = this._x;
point.y = this._y;
this._parent.localToGlobal(point);
_root.expX = point.x;
_root.expY = point.y;
_root.numPlane--;
_root.score++;
planeDepth = this._parent.planeDepth - 1;
_root.attachMovie("mExp", "e" + planeDepth, planeDepth);
}
Symbol 6 MovieClip [mPlane3] Frame 1
var planeDepth = _root.pDepth;
Symbol 6 MovieClip [mPlane3] Frame 90
_root.numPlane--;
this.removeMovieClip();
Symbol 12 MovieClip [mPlane2] Frame 1
var planeDepth = _root.pDepth;
Symbol 12 MovieClip [mPlane2] Frame 60
_root.numPlane--;
this.removeMovieClip();
Symbol 13 MovieClip [mPlane1] Frame 1
var planeDepth = _root.pDepth;
Symbol 13 MovieClip [mPlane1] Frame 120
_root.numPlane--;
this.removeMovieClip();
Symbol 14 MovieClip [mExp] Frame 1
this._x = _root.expX;
this._y = _root.expY;
Symbol 14 MovieClip [mExp] Frame 2
this._x = _root.expX;
this._y = _root.expY;
Symbol 14 MovieClip [mExp] Frame 10
this.removeMovieClip();
Symbol 31 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "flyshoot";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
if (this.sessionvars.sessiontype != 2) {
_root.is_a_challenge = 0;
} else {
_root.is_a_challenge = 1;
}
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
_root.score = int(Number(_root.score));
if (_root.score != 0) {
this.prequestvars.score = _root.score;
} else {
this.prequestvars.score = -1;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 45 Button
on (press) {
_root.gotoAndPlay(2);
}
Symbol 49 Button
on (press) {
_root.gotoAndPlay(2);
}
Symbol 50 Button
on (press) {
_root.gotoAndPlay(2);
}
Symbol 51 Button
on (press) {
_root.gotoAndPlay(2);
}
Symbol 52 Button
on (press) {
_root.gotoAndPlay(2);
}
Symbol 53 Button
on (press) {
_root.gotoAndPlay(2);
}
Symbol 54 Button
on (press) {
_root.gotoAndPlay(2);
}
Symbol 55 Button
on (press) {
_root.gotoAndPlay(2);
}
Symbol 56 Button
on (press) {
_root.gotoAndPlay(2);
}
Symbol 57 Button
on (press) {
_root.gotoAndPlay(2);
}
Symbol 72 Button
on (release) {
getURL ("http://www.7site.idv.tw", "_blank");
}
Symbol 75 Button
on (press) {
gotoAndPlay (5);
}
Symbol 79 MovieClip Frame 1
now = new Date();
startTime = now.getTime();
playTime = _root.playTime;
rTime = playTime;
Symbol 79 MovieClip Frame 3
now = new Date();
currentTime = now.getTime();
rTime = playTime - int((currentTime - startTime) / 1000);
if (!rTime) {
_root.gotoAndPlay("reStart");
stop();
}
Symbol 79 MovieClip Frame 5
gotoAndPlay(_currentframe - 2);
Symbol 86 Button
on (release) {
getURL ("http://www.7site.idv.tw", "_blank");
}
Symbol 87 Button
on (press) {
gotoAndPlay (5);
}
Symbol 89 Button
on (release) {
_root.score = score;
_root.gameover = 1;
}
Symbol 90 Button
on (release) {
_root.score = score;
_root.gameover = 1;
}
Symbol 93 Button
on (release) {
_root.score = score;
_root.gameover = 1;
}
Symbol 94 Button
on (release) {
_root.score = score;
_root.gameover = 1;
}