Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("5022fe96", this, 10301, true);
function itemHandler2(obj, item) {
getURL ("http://www.gimme5games.com");
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
myMenu.customItems.push(new ContextMenuItem("Gimme5Games - More games!", itemHandler2));
MochiAd.showPreGameAd({id:"c5b0e057715dc548", res:"640x480", no_bg:true});
stop();
onEnterFrame = function () {
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
PercentLoaded = Math.round(PercentLoaded);
_root.ld.gotoAndStop(PercentLoaded);
};
var s = new Sound();
Frame 2
stop();
Instance of Symbol 72 MovieClip [Splash] in Frame 2
//component parameters
onClipEvent (construct) {
frameAfterCompletion = 3;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Frame 3
stop();
Instance of Symbol 95 MovieClip "mm" in Frame 3
onClipEvent (enterFrame) {
_root.otimr = Math.round(_root.otimr);
}
Frame 4
ff = 1;
_root.lvl = "Level " + ((_root._currentframe / 2) - 1);
i = 0;
_root.timr = 0;
onMouseDown = function () {
if (_root._currentframe > 3) {
if (_root.ship._currentframe == 1) {
bullet.duplicateMovieClip("hello" + i, 1000);
i = i + 1;
}
}
};
onEnterFrame = function () {
if (_root._currentframe > 3) {
if (_root.xp != 0) {
_root.circle._x = xp;
_root.circle._y = yp;
_root.circle.gotoAndPlay(1);
_root.circle2._x = xp;
_root.circle2._y = yp;
_root.circle2.gotoAndPlay(1);
xp = 0;
yp = 0;
}
}
};
stop();
Instance of Symbol 102 MovieClip "circle" in Frame 4
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
}
Instance of Symbol 106 MovieClip "ship" in Frame 4
onClipEvent (load) {
_root.ox = this._x;
_root.oy = this._y;
spd = 0;
xspd = 0;
yspd = 0;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.ff != 2)) {
this._x = this._x + xspd;
this._y = this._y + yspd;
if (Key.isDown(65) || (Key.isDown(37))) {
xspd = xspd - 0.5;
} else if (Key.isDown(68) || (Key.isDown(39))) {
xspd = xspd + 0.5;
} else {
if (xspd > 0) {
xspd = xspd - 0.5;
}
if (xspd < 0) {
xspd = xspd + 0.5;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
yspd = yspd + 0.5;
} else if (Key.isDown(87) || (Key.isDown(38))) {
yspd = yspd - 0.5;
} else {
if (yspd > 0) {
yspd = yspd - 0.5;
}
if (yspd < 0) {
yspd = yspd + 0.5;
}
}
if (yspd > 5) {
yspd = 5;
}
if (yspd < -5) {
yspd = -5;
}
if (xspd > 5) {
xspd = 5;
}
if (xspd < -5) {
xspd = -5;
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this.play();
}
if ((this._currentframe == 1) && (_root.ff != 2)) {
if (this.hitTest(_root.curz)) {
spd = -1;
} else if (spd < 0) {
spd = 0;
}
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
rr = _rotation - 90;
}
}
Instance of Symbol 109 MovieClip "bullet" in Frame 4
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
spd = 10;
this._rotation = _root.ship._rotation - 90;
if (this._name != "bullet") {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y, true)) {
if (this._name != "bullet") {
_root.xp = this._x;
_root.yp = this._y;
this.removeMovieClip();
}
}
if (this._name != "bullet") {
if (_rotation > 180) {
this._y = this._y - (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x + (spd * Math.sin((Math.PI/180) * _rotation));
} else {
this._y = this._y + (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x - (spd * Math.sin((Math.PI/180) * _rotation));
}
}
}
Instance of Symbol 111 MovieClip "curz" in Frame 4
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._visible = false;
}
Instance of Symbol 124 MovieClip "port" in Frame 4
onClipEvent (enterFrame) {
if (_root.ship.hitTest(this.hit)) {
_root.ff = 2;
}
}
Instance of Symbol 102 MovieClip "circle2" in Frame 4
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
if (this._width > 1000) {
_root.play();
}
}
Instance of Symbol 128 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.timr < 0) {
_root.timr = 0;
}
if (_root.ff == 2) {
if ((zz == 2) == false) {
_root.timr = _root.timr + ((20 * (_root._currentframe / 2)) - 1);
_root.otimr = _root.timr / 2;
zz = 2;
}
}
if (_root.ship._currentframe == 1) {
if (_root.walls.hitTest(_root.ship._x, _root.ship._y, true)) {
_root.timr = _root.timr - 100;
}
}
}
Frame 6
ff = 1;
_root.lvl = "Level " + ((_root._currentframe / 2) - 1);
i = 0;
onMouseDown = function () {
if (_root._currentframe > 3) {
if (_root.ship._currentframe == 1) {
bullet.duplicateMovieClip("hello" + i, 1000);
i = i + 1;
}
}
};
onEnterFrame = function () {
if (_root._currentframe > 3) {
if (_root.xp != 0) {
_root.circle._x = xp;
_root.circle._y = yp;
_root.circle.gotoAndPlay(1);
_root.circle2._x = xp;
_root.circle2._y = yp;
_root.circle2.gotoAndPlay(1);
xp = 0;
yp = 0;
}
}
};
stop();
Instance of Symbol 102 MovieClip "circle" in Frame 6
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
}
Instance of Symbol 106 MovieClip "ship" in Frame 6
onClipEvent (load) {
_root.ox = this._x;
_root.oy = this._y;
spd = 0;
xspd = 0;
yspd = 0;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.ff != 2)) {
this._x = this._x + xspd;
this._y = this._y + yspd;
if (Key.isDown(65) || (Key.isDown(37))) {
xspd = xspd - 0.5;
} else if (Key.isDown(68) || (Key.isDown(39))) {
xspd = xspd + 0.5;
} else {
if (xspd > 0) {
xspd = xspd - 0.5;
}
if (xspd < 0) {
xspd = xspd + 0.5;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
yspd = yspd + 0.5;
} else if (Key.isDown(87) || (Key.isDown(38))) {
yspd = yspd - 0.5;
} else {
if (yspd > 0) {
yspd = yspd - 0.5;
}
if (yspd < 0) {
yspd = yspd + 0.5;
}
}
if (yspd > 5) {
yspd = 5;
}
if (yspd < -5) {
yspd = -5;
}
if (xspd > 5) {
xspd = 5;
}
if (xspd < -5) {
xspd = -5;
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this.play();
}
if ((this._currentframe == 1) && (_root.ff != 2)) {
if (this.hitTest(_root.curz)) {
spd = -1;
} else if (spd < 0) {
spd = 0;
}
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
rr = _rotation - 90;
}
}
Instance of Symbol 109 MovieClip "bullet" in Frame 6
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
spd = 10;
this._rotation = _root.ship._rotation - 90;
if (this._name != "bullet") {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y, true)) {
if (this._name != "bullet") {
_root.xp = this._x;
_root.yp = this._y;
this.removeMovieClip();
}
}
if (this._name != "bullet") {
if (_rotation > 180) {
this._y = this._y - (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x + (spd * Math.sin((Math.PI/180) * _rotation));
} else {
this._y = this._y + (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x - (spd * Math.sin((Math.PI/180) * _rotation));
}
}
}
Instance of Symbol 111 MovieClip "curz" in Frame 6
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._visible = false;
}
Instance of Symbol 124 MovieClip "port" in Frame 6
onClipEvent (enterFrame) {
if (_root.ship.hitTest(this.hit)) {
_root.ff = 2;
}
}
Instance of Symbol 102 MovieClip "circle2" in Frame 6
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
if (this._width > 1000) {
_root.play();
}
}
Instance of Symbol 128 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.timr < _root.otimr) {
_root.timr = _root.otimr;
}
if (_root.ff == 2) {
if ((zz == 2) == false) {
_root.timr = _root.timr + ((20 * (_root._currentframe / 2)) - 1);
_root.otimr = _root.timr / 2;
zz = 2;
}
}
if (_root.ship._currentframe == 1) {
if (_root.walls.hitTest(_root.ship._x, _root.ship._y, true)) {
_root.timr = _root.timr - 100;
}
}
}
Frame 8
ff = 1;
_root.lvl = "Level " + ((_root._currentframe / 2) - 1);
i = 0;
onMouseDown = function () {
if (_root._currentframe > 3) {
if (_root.ship._currentframe == 1) {
bullet.duplicateMovieClip("hello" + i, 1000);
i = i + 1;
}
}
};
onEnterFrame = function () {
if (_root._currentframe > 3) {
if (_root.xp != 0) {
_root.circle._x = xp;
_root.circle._y = yp;
_root.circle.gotoAndPlay(1);
_root.circle2._x = xp;
_root.circle2._y = yp;
_root.circle2.gotoAndPlay(1);
xp = 0;
yp = 0;
}
}
};
stop();
Instance of Symbol 102 MovieClip "circle" in Frame 8
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
}
Instance of Symbol 106 MovieClip "ship" in Frame 8
onClipEvent (load) {
_root.ox = this._x;
_root.oy = this._y;
spd = 0;
xspd = 0;
yspd = 0;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.ff != 2)) {
this._x = this._x + xspd;
this._y = this._y + yspd;
if (Key.isDown(65) || (Key.isDown(37))) {
xspd = xspd - 0.5;
} else if (Key.isDown(68) || (Key.isDown(39))) {
xspd = xspd + 0.5;
} else {
if (xspd > 0) {
xspd = xspd - 0.5;
}
if (xspd < 0) {
xspd = xspd + 0.5;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
yspd = yspd + 0.5;
} else if (Key.isDown(87) || (Key.isDown(38))) {
yspd = yspd - 0.5;
} else {
if (yspd > 0) {
yspd = yspd - 0.5;
}
if (yspd < 0) {
yspd = yspd + 0.5;
}
}
if (yspd > 5) {
yspd = 5;
}
if (yspd < -5) {
yspd = -5;
}
if (xspd > 5) {
xspd = 5;
}
if (xspd < -5) {
xspd = -5;
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this.play();
}
if ((this._currentframe == 1) && (_root.ff != 2)) {
if (this.hitTest(_root.curz)) {
spd = -1;
} else if (spd < 0) {
spd = 0;
}
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
rr = _rotation - 90;
}
}
Instance of Symbol 109 MovieClip "bullet" in Frame 8
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
spd = 10;
this._rotation = _root.ship._rotation - 90;
if (this._name != "bullet") {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y, true)) {
if (this._name != "bullet") {
_root.xp = this._x;
_root.yp = this._y;
this.removeMovieClip();
}
}
if (this._name != "bullet") {
if (_rotation > 180) {
this._y = this._y - (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x + (spd * Math.sin((Math.PI/180) * _rotation));
} else {
this._y = this._y + (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x - (spd * Math.sin((Math.PI/180) * _rotation));
}
}
}
Instance of Symbol 111 MovieClip "curz" in Frame 8
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._visible = false;
}
Instance of Symbol 124 MovieClip "port" in Frame 8
onClipEvent (enterFrame) {
if (_root.ship.hitTest(this.hit)) {
_root.ff = 2;
}
}
Instance of Symbol 102 MovieClip "circle2" in Frame 8
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
if (this._width > 1000) {
_root.play();
}
}
Instance of Symbol 149 MovieClip "fb" in Frame 8
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this.hitTest(_root.ship)) {
this.play();
_root.f1.play();
_root.f2.play();
}
}
}
Instance of Symbol 128 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.timr < _root.otimr) {
_root.timr = _root.otimr;
}
if (_root.ff == 2) {
if ((zz == 2) == false) {
_root.timr = _root.timr + ((20 * (_root._currentframe / 2)) - 1);
_root.otimr = _root.timr / 2;
zz = 2;
}
}
if (_root.ship._currentframe == 1) {
if (_root.walls.hitTest(_root.ship._x, _root.ship._y, true)) {
_root.timr = _root.timr - 100;
}
}
}
Frame 10
ff = 1;
_root.lvl = "Level " + ((_root._currentframe / 2) - 1);
i = 0;
onMouseDown = function () {
if (_root._currentframe > 3) {
if (_root.ship._currentframe == 1) {
bullet.duplicateMovieClip("hello" + i, 1000);
i = i + 1;
}
}
};
onEnterFrame = function () {
if (_root._currentframe > 3) {
if (_root.xp != 0) {
_root.circle._x = xp;
_root.circle._y = yp;
_root.circle.gotoAndPlay(1);
_root.circle2._x = xp;
_root.circle2._y = yp;
_root.circle2.gotoAndPlay(1);
xp = 0;
yp = 0;
}
}
};
stop();
Instance of Symbol 102 MovieClip "circle" in Frame 10
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
}
Instance of Symbol 106 MovieClip "ship" in Frame 10
onClipEvent (load) {
_root.ox = this._x;
_root.oy = this._y;
spd = 0;
xspd = 0;
yspd = 0;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.ff != 2)) {
this._x = this._x + xspd;
this._y = this._y + yspd;
if (Key.isDown(65) || (Key.isDown(37))) {
xspd = xspd - 0.5;
} else if (Key.isDown(68) || (Key.isDown(39))) {
xspd = xspd + 0.5;
} else {
if (xspd > 0) {
xspd = xspd - 0.5;
}
if (xspd < 0) {
xspd = xspd + 0.5;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
yspd = yspd + 0.5;
} else if (Key.isDown(87) || (Key.isDown(38))) {
yspd = yspd - 0.5;
} else {
if (yspd > 0) {
yspd = yspd - 0.5;
}
if (yspd < 0) {
yspd = yspd + 0.5;
}
}
if (yspd > 5) {
yspd = 5;
}
if (yspd < -5) {
yspd = -5;
}
if (xspd > 5) {
xspd = 5;
}
if (xspd < -5) {
xspd = -5;
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this.play();
}
if ((this._currentframe == 1) && (_root.ff != 2)) {
if (this.hitTest(_root.curz)) {
spd = -1;
} else if (spd < 0) {
spd = 0;
}
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
rr = _rotation - 90;
}
}
Instance of Symbol 109 MovieClip "bullet" in Frame 10
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
spd = 10;
this._rotation = _root.ship._rotation - 90;
if (this._name != "bullet") {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y, true)) {
if (this._name != "bullet") {
_root.xp = this._x;
_root.yp = this._y;
this.removeMovieClip();
}
}
if (this._name != "bullet") {
if (_rotation > 180) {
this._y = this._y - (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x + (spd * Math.sin((Math.PI/180) * _rotation));
} else {
this._y = this._y + (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x - (spd * Math.sin((Math.PI/180) * _rotation));
}
}
}
Instance of Symbol 111 MovieClip "curz" in Frame 10
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._visible = false;
}
Instance of Symbol 124 MovieClip "port" in Frame 10
onClipEvent (enterFrame) {
if (_root.ship.hitTest(this.hit)) {
_root.ff = 2;
}
}
Instance of Symbol 102 MovieClip "circle2" in Frame 10
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
if (this._width > 1000) {
_root.play();
}
}
Instance of Symbol 149 MovieClip "fb" in Frame 10
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this.hitTest(_root.ship)) {
this.play();
_root.f1.play();
_root.f2.play();
}
}
}
Instance of Symbol 128 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.timr < _root.otimr) {
_root.timr = _root.otimr;
}
if (_root.ff == 2) {
if ((zz == 2) == false) {
_root.timr = _root.timr + ((20 * (_root._currentframe / 2)) - 1);
_root.otimr = _root.timr / 2;
zz = 2;
}
}
if (_root.ship._currentframe == 1) {
if (_root.walls.hitTest(_root.ship._x, _root.ship._y, true)) {
_root.timr = _root.timr - 100;
}
}
}
Frame 12
ff = 1;
_root.lvl = "Level " + ((_root._currentframe / 2) - 1);
i = 0;
onMouseDown = function () {
if (_root._currentframe > 3) {
if (_root.ship._currentframe == 1) {
bullet.duplicateMovieClip("hello" + i, 1000);
i = i + 1;
}
}
};
onEnterFrame = function () {
if (_root._currentframe > 3) {
if (_root.xp != 0) {
_root.circle._x = xp;
_root.circle._y = yp;
_root.circle.gotoAndPlay(1);
_root.circle2._x = xp;
_root.circle2._y = yp;
_root.circle2.gotoAndPlay(1);
xp = 0;
yp = 0;
}
}
};
stop();
Instance of Symbol 102 MovieClip "circle" in Frame 12
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
}
Instance of Symbol 106 MovieClip "ship" in Frame 12
onClipEvent (load) {
_root.ox = this._x;
_root.oy = this._y;
spd = 0;
xspd = 0;
yspd = 0;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.ff != 2)) {
this._x = this._x + xspd;
this._y = this._y + yspd;
if (Key.isDown(65) || (Key.isDown(37))) {
xspd = xspd - 0.5;
} else if (Key.isDown(68) || (Key.isDown(39))) {
xspd = xspd + 0.5;
} else {
if (xspd > 0) {
xspd = xspd - 0.5;
}
if (xspd < 0) {
xspd = xspd + 0.5;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
yspd = yspd + 0.5;
} else if (Key.isDown(87) || (Key.isDown(38))) {
yspd = yspd - 0.5;
} else {
if (yspd > 0) {
yspd = yspd - 0.5;
}
if (yspd < 0) {
yspd = yspd + 0.5;
}
}
if (yspd > 5) {
yspd = 5;
}
if (yspd < -5) {
yspd = -5;
}
if (xspd > 5) {
xspd = 5;
}
if (xspd < -5) {
xspd = -5;
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this.play();
}
if ((this._currentframe == 1) && (_root.ff != 2)) {
if (this.hitTest(_root.curz)) {
spd = -1;
} else if (spd < 0) {
spd = 0;
}
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
rr = _rotation - 90;
}
}
Instance of Symbol 109 MovieClip "bullet" in Frame 12
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
spd = 10;
this._rotation = _root.ship._rotation - 90;
if (this._name != "bullet") {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y, true)) {
if (this._name != "bullet") {
_root.xp = this._x;
_root.yp = this._y;
this.removeMovieClip();
}
}
if (this._name != "bullet") {
if (_rotation > 180) {
this._y = this._y - (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x + (spd * Math.sin((Math.PI/180) * _rotation));
} else {
this._y = this._y + (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x - (spd * Math.sin((Math.PI/180) * _rotation));
}
}
}
Instance of Symbol 111 MovieClip "curz" in Frame 12
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._visible = false;
}
Instance of Symbol 124 MovieClip "port" in Frame 12
onClipEvent (enterFrame) {
if (_root.ship.hitTest(this.hit)) {
_root.ff = 2;
}
}
Instance of Symbol 102 MovieClip "circle2" in Frame 12
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
if (this._width > 1000) {
_root.play();
}
}
Instance of Symbol 149 MovieClip "fb" in Frame 12
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this.hitTest(_root.ship)) {
this.play();
_root.f1.play();
_root.f2.play();
}
}
}
Instance of Symbol 128 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.timr < _root.otimr) {
_root.timr = _root.otimr;
}
if (_root.ff == 2) {
if ((zz == 2) == false) {
_root.timr = _root.timr + ((20 * (_root._currentframe / 2)) - 1);
_root.otimr = _root.timr / 2;
zz = 2;
}
}
if (_root.ship._currentframe == 1) {
if (_root.walls.hitTest(_root.ship._x, _root.ship._y, true)) {
_root.timr = _root.timr - 100;
}
}
}
Frame 13
stop();
hiScores.setDetails(121, 0, "Darkness", false, _root.timr, _root.timr, "points!");
Instance of Symbol 46 MovieClip [HiScores] "hiScores" in Frame 13
//component parameters
onClipEvent (construct) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
_root.his = 1;
xx = this._x;
this._x = -300;
}
onClipEvent (enterFrame) {
if (_root.his == 2) {
if (this._x < xx) {
this._x = this._x + 10;
}
}
}
Instance of Symbol 154 MovieClip in Frame 13
onClipEvent (enterFrame) {
this._x = _root.hiScores._x;
}
Frame 14
ff = 1;
_root.lvl = "Level " + ((_root._currentframe / 2) - 1);
i = 0;
onMouseDown = function () {
if (_root._currentframe > 3) {
if (_root.ship._currentframe == 1) {
bullet.duplicateMovieClip("hello" + i, 1000);
i = i + 1;
}
}
};
onEnterFrame = function () {
if (_root._currentframe > 3) {
if (_root.xp != 0) {
_root.circle._x = xp;
_root.circle._y = yp;
_root.circle.gotoAndPlay(1);
_root.circle2._x = xp;
_root.circle2._y = yp;
_root.circle2.gotoAndPlay(1);
xp = 0;
yp = 0;
}
}
};
stop();
Instance of Symbol 102 MovieClip "circle" in Frame 14
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
}
Instance of Symbol 106 MovieClip "ship" in Frame 14
onClipEvent (load) {
_root.ox = this._x;
_root.oy = this._y;
spd = 0;
xspd = 0;
yspd = 0;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.ff != 2)) {
this._x = this._x + xspd;
this._y = this._y + yspd;
if (Key.isDown(65) || (Key.isDown(37))) {
xspd = xspd - 0.5;
} else if (Key.isDown(68) || (Key.isDown(39))) {
xspd = xspd + 0.5;
} else {
if (xspd > 0) {
xspd = xspd - 0.5;
}
if (xspd < 0) {
xspd = xspd + 0.5;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
yspd = yspd + 0.5;
} else if (Key.isDown(87) || (Key.isDown(38))) {
yspd = yspd - 0.5;
} else {
if (yspd > 0) {
yspd = yspd - 0.5;
}
if (yspd < 0) {
yspd = yspd + 0.5;
}
}
if (yspd > 5) {
yspd = 5;
}
if (yspd < -5) {
yspd = -5;
}
if (xspd > 5) {
xspd = 5;
}
if (xspd < -5) {
xspd = -5;
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this.play();
}
if ((this._currentframe == 1) && (_root.ff != 2)) {
if (this.hitTest(_root.curz)) {
spd = -1;
} else if (spd < 0) {
spd = 0;
}
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
rr = _rotation - 90;
}
}
Instance of Symbol 109 MovieClip "bullet" in Frame 14
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
spd = 10;
this._rotation = _root.ship._rotation - 90;
if (this._name != "bullet") {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y, true)) {
if (this._name != "bullet") {
_root.xp = this._x;
_root.yp = this._y;
this.removeMovieClip();
}
}
if (this._name != "bullet") {
if (_rotation > 180) {
this._y = this._y - (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x + (spd * Math.sin((Math.PI/180) * _rotation));
} else {
this._y = this._y + (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x - (spd * Math.sin((Math.PI/180) * _rotation));
}
}
}
Instance of Symbol 111 MovieClip "curz" in Frame 14
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._visible = false;
}
Instance of Symbol 124 MovieClip "port" in Frame 14
onClipEvent (enterFrame) {
if (_root.ship.hitTest(this.hit)) {
_root.ff = 2;
}
}
Instance of Symbol 102 MovieClip "circle2" in Frame 14
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
if (this._width > 1000) {
_root.play();
}
}
Instance of Symbol 128 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.timr < _root.otimr) {
_root.timr = _root.otimr;
}
if (_root.ff == 2) {
if ((zz == 2) == false) {
_root.timr = _root.timr + ((20 * (_root._currentframe / 2)) - 1);
_root.otimr = _root.timr / 2;
zz = 2;
}
}
if (_root.ship._currentframe == 1) {
if (_root.walls.hitTest(_root.ship._x, _root.ship._y, true)) {
_root.timr = _root.timr - 100;
}
}
}
Frame 16
ff = 1;
_root.lvl = "Level " + ((_root._currentframe / 2) - 1);
i = 0;
onMouseDown = function () {
if (_root._currentframe > 3) {
if (_root.ship._currentframe == 1) {
bullet.duplicateMovieClip("hello" + i, 1000);
i = i + 1;
}
}
};
onEnterFrame = function () {
if (_root._currentframe > 3) {
if (_root.xp != 0) {
_root.circle._x = xp;
_root.circle._y = yp;
_root.circle.gotoAndPlay(1);
_root.circle2._x = xp;
_root.circle2._y = yp;
_root.circle2.gotoAndPlay(1);
xp = 0;
yp = 0;
}
}
};
stop();
Instance of Symbol 102 MovieClip "circle" in Frame 16
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
}
Instance of Symbol 106 MovieClip "ship" in Frame 16
onClipEvent (load) {
_root.ox = this._x;
_root.oy = this._y;
spd = 0;
xspd = 0;
yspd = 0;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.ff != 2)) {
this._x = this._x + xspd;
this._y = this._y + yspd;
if (Key.isDown(65) || (Key.isDown(37))) {
xspd = xspd - 0.5;
} else if (Key.isDown(68) || (Key.isDown(39))) {
xspd = xspd + 0.5;
} else {
if (xspd > 0) {
xspd = xspd - 0.5;
}
if (xspd < 0) {
xspd = xspd + 0.5;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
yspd = yspd + 0.5;
} else if (Key.isDown(87) || (Key.isDown(38))) {
yspd = yspd - 0.5;
} else {
if (yspd > 0) {
yspd = yspd - 0.5;
}
if (yspd < 0) {
yspd = yspd + 0.5;
}
}
if (yspd > 5) {
yspd = 5;
}
if (yspd < -5) {
yspd = -5;
}
if (xspd > 5) {
xspd = 5;
}
if (xspd < -5) {
xspd = -5;
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this.play();
}
if ((this._currentframe == 1) && (_root.ff != 2)) {
if (this.hitTest(_root.curz)) {
spd = -1;
} else if (spd < 0) {
spd = 0;
}
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
rr = _rotation - 90;
}
}
Instance of Symbol 109 MovieClip "bullet" in Frame 16
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
spd = 10;
this._rotation = _root.ship._rotation - 90;
if (this._name != "bullet") {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y, true)) {
if (this._name != "bullet") {
_root.xp = this._x;
_root.yp = this._y;
this.removeMovieClip();
}
}
if (this._name != "bullet") {
if (_rotation > 180) {
this._y = this._y - (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x + (spd * Math.sin((Math.PI/180) * _rotation));
} else {
this._y = this._y + (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x - (spd * Math.sin((Math.PI/180) * _rotation));
}
}
}
Instance of Symbol 111 MovieClip "curz" in Frame 16
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._visible = false;
}
Instance of Symbol 124 MovieClip "port" in Frame 16
onClipEvent (enterFrame) {
if (_root.ship.hitTest(this.hit)) {
_root.ff = 2;
}
}
Instance of Symbol 102 MovieClip "circle2" in Frame 16
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
if (this._width > 1000) {
_root.play();
}
}
Instance of Symbol 128 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.timr < _root.otimr) {
_root.timr = _root.otimr;
}
if (_root.ff == 2) {
if ((zz == 2) == false) {
_root.timr = _root.timr + ((20 * (_root._currentframe / 2)) - 1);
_root.otimr = _root.timr / 2;
zz = 2;
}
}
if (_root.ship._currentframe == 1) {
if (_root.walls.hitTest(_root.ship._x, _root.ship._y, true)) {
_root.timr = _root.timr - 100;
}
}
}
Frame 18
ff = 1;
_root.lvl = "Level " + ((_root._currentframe / 2) - 1);
i = 0;
onMouseDown = function () {
if (_root._currentframe > 3) {
if (_root.ship._currentframe == 1) {
bullet.duplicateMovieClip("hello" + i, 1000);
i = i + 1;
}
}
};
onEnterFrame = function () {
if (_root._currentframe > 3) {
if (_root.xp != 0) {
_root.circle._x = xp;
_root.circle._y = yp;
_root.circle.gotoAndPlay(1);
_root.circle2._x = xp;
_root.circle2._y = yp;
_root.circle2.gotoAndPlay(1);
xp = 0;
yp = 0;
}
}
};
stop();
Instance of Symbol 102 MovieClip "circle" in Frame 18
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
}
Instance of Symbol 106 MovieClip "ship" in Frame 18
onClipEvent (load) {
_root.ox = this._x;
_root.oy = this._y;
spd = 0;
xspd = 0;
yspd = 0;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.ff != 2)) {
this._x = this._x + xspd;
this._y = this._y + yspd;
if (Key.isDown(65) || (Key.isDown(37))) {
xspd = xspd - 0.5;
} else if (Key.isDown(68) || (Key.isDown(39))) {
xspd = xspd + 0.5;
} else {
if (xspd > 0) {
xspd = xspd - 0.5;
}
if (xspd < 0) {
xspd = xspd + 0.5;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
yspd = yspd + 0.5;
} else if (Key.isDown(87) || (Key.isDown(38))) {
yspd = yspd - 0.5;
} else {
if (yspd > 0) {
yspd = yspd - 0.5;
}
if (yspd < 0) {
yspd = yspd + 0.5;
}
}
if (yspd > 5) {
yspd = 5;
}
if (yspd < -5) {
yspd = -5;
}
if (xspd > 5) {
xspd = 5;
}
if (xspd < -5) {
xspd = -5;
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this.play();
}
if ((this._currentframe == 1) && (_root.ff != 2)) {
if (this.hitTest(_root.curz)) {
spd = -1;
} else if (spd < 0) {
spd = 0;
}
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
rr = _rotation - 90;
}
}
Instance of Symbol 109 MovieClip "bullet" in Frame 18
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
spd = 10;
this._rotation = _root.ship._rotation - 90;
if (this._name != "bullet") {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y, true)) {
if (this._name != "bullet") {
_root.xp = this._x;
_root.yp = this._y;
this.removeMovieClip();
}
}
if (this._name != "bullet") {
if (_rotation > 180) {
this._y = this._y - (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x + (spd * Math.sin((Math.PI/180) * _rotation));
} else {
this._y = this._y + (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x - (spd * Math.sin((Math.PI/180) * _rotation));
}
}
}
Instance of Symbol 111 MovieClip "curz" in Frame 18
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._visible = false;
}
Instance of Symbol 124 MovieClip "port" in Frame 18
onClipEvent (enterFrame) {
if (_root.ship.hitTest(this.hit)) {
_root.ff = 2;
}
}
Instance of Symbol 102 MovieClip "circle2" in Frame 18
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
if (this._width > 1000) {
_root.play();
}
}
Instance of Symbol 128 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (_root.timr < _root.otimr) {
_root.timr = _root.otimr;
}
if (_root.ff == 2) {
if ((zz == 2) == false) {
_root.timr = _root.timr + ((20 * (_root._currentframe / 2)) - 1);
_root.otimr = _root.timr / 2;
zz = 2;
}
}
if (_root.ship._currentframe == 1) {
if (_root.walls.hitTest(_root.ship._x, _root.ship._y, true)) {
_root.timr = _root.timr - 100;
}
}
}
Frame 20
ff = 1;
_root.lvl = "Level " + ((_root._currentframe / 2) - 1);
i = 0;
onMouseDown = function () {
if (_root._currentframe > 3) {
if (_root.ship._currentframe == 1) {
bullet.duplicateMovieClip("hello" + i, 1000);
i = i + 1;
}
}
};
onEnterFrame = function () {
if (_root._currentframe > 3) {
if (_root.xp != 0) {
_root.circle._x = xp;
_root.circle._y = yp;
_root.circle.gotoAndPlay(1);
_root.circle2._x = xp;
_root.circle2._y = yp;
_root.circle2.gotoAndPlay(1);
xp = 0;
yp = 0;
}
}
};
stop();
Instance of Symbol 102 MovieClip "circle" in Frame 20
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
}
Instance of Symbol 106 MovieClip "ship" in Frame 20
onClipEvent (load) {
_root.ox = this._x;
_root.oy = this._y;
spd = 0;
xspd = 0;
yspd = 0;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.ff != 2)) {
this._x = this._x + xspd;
this._y = this._y + yspd;
if (Key.isDown(65) || (Key.isDown(37))) {
xspd = xspd - 0.5;
} else if (Key.isDown(68) || (Key.isDown(39))) {
xspd = xspd + 0.5;
} else {
if (xspd > 0) {
xspd = xspd - 0.5;
}
if (xspd < 0) {
xspd = xspd + 0.5;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
yspd = yspd + 0.5;
} else if (Key.isDown(87) || (Key.isDown(38))) {
yspd = yspd - 0.5;
} else {
if (yspd > 0) {
yspd = yspd - 0.5;
}
if (yspd < 0) {
yspd = yspd + 0.5;
}
}
if (yspd > 5) {
yspd = 5;
}
if (yspd < -5) {
yspd = -5;
}
if (xspd > 5) {
xspd = 5;
}
if (xspd < -5) {
xspd = -5;
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this.play();
}
if ((this._currentframe == 1) && (_root.ff != 2)) {
if (this.hitTest(_root.curz)) {
spd = -1;
} else if (spd < 0) {
spd = 0;
}
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
rr = _rotation - 90;
}
}
Instance of Symbol 109 MovieClip "bullet" in Frame 20
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
spd = 10;
this._rotation = _root.ship._rotation - 90;
if (this._name != "bullet") {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y, true)) {
if (this._name != "bullet") {
_root.xp = this._x;
_root.yp = this._y;
this.removeMovieClip();
}
}
if (this._name != "bullet") {
if (_rotation > 180) {
this._y = this._y - (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x + (spd * Math.sin((Math.PI/180) * _rotation));
} else {
this._y = this._y + (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x - (spd * Math.sin((Math.PI/180) * _rotation));
}
}
}
Instance of Symbol 111 MovieClip "curz" in Frame 20
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._visible = false;
}
Instance of Symbol 124 MovieClip "port" in Frame 20
onClipEvent (enterFrame) {
if (_root.ship.hitTest(this.hit)) {
_root.ff = 2;
}
}
Instance of Symbol 102 MovieClip "circle2" in Frame 20
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
if (this._width > 1000) {
_root.play();
}
}
Instance of Symbol 149 MovieClip "fb" in Frame 20
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this.hitTest(_root.ship)) {
this.play();
_root.f1.play();
_root.f2.play();
}
}
}
Instance of Symbol 128 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.timr < _root.otimr) {
_root.timr = _root.otimr;
}
if (_root.ff == 2) {
if ((zz == 2) == false) {
_root.timr = _root.timr + ((20 * (_root._currentframe / 2)) - 1);
_root.otimr = _root.timr / 2;
zz = 2;
}
}
if (_root.ship._currentframe == 1) {
if (_root.walls.hitTest(_root.ship._x, _root.ship._y, true)) {
_root.timr = _root.timr - 100;
}
}
}
Frame 22
ff = 1;
_root.lvl = "Level " + ((_root._currentframe / 2) - 1);
i = 0;
onMouseDown = function () {
if (_root._currentframe > 3) {
if (_root.ship._currentframe == 1) {
bullet.duplicateMovieClip("hello" + i, 1000);
i = i + 1;
}
}
};
onEnterFrame = function () {
if (_root._currentframe > 3) {
if (_root.xp != 0) {
_root.circle._x = xp;
_root.circle._y = yp;
_root.circle.gotoAndPlay(1);
_root.circle2._x = xp;
_root.circle2._y = yp;
_root.circle2.gotoAndPlay(1);
xp = 0;
yp = 0;
}
}
};
stop();
Instance of Symbol 102 MovieClip "circle" in Frame 22
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
}
Instance of Symbol 106 MovieClip "ship" in Frame 22
onClipEvent (load) {
_root.ox = this._x;
_root.oy = this._y;
spd = 0;
xspd = 0;
yspd = 0;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.ff != 2)) {
this._x = this._x + xspd;
this._y = this._y + yspd;
if (Key.isDown(65) || (Key.isDown(37))) {
xspd = xspd - 0.5;
} else if (Key.isDown(68) || (Key.isDown(39))) {
xspd = xspd + 0.5;
} else {
if (xspd > 0) {
xspd = xspd - 0.5;
}
if (xspd < 0) {
xspd = xspd + 0.5;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
yspd = yspd + 0.5;
} else if (Key.isDown(87) || (Key.isDown(38))) {
yspd = yspd - 0.5;
} else {
if (yspd > 0) {
yspd = yspd - 0.5;
}
if (yspd < 0) {
yspd = yspd + 0.5;
}
}
if (yspd > 5) {
yspd = 5;
}
if (yspd < -5) {
yspd = -5;
}
if (xspd > 5) {
xspd = 5;
}
if (xspd < -5) {
xspd = -5;
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this.play();
}
if ((this._currentframe == 1) && (_root.ff != 2)) {
if (this.hitTest(_root.curz)) {
spd = -1;
} else if (spd < 0) {
spd = 0;
}
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
rr = _rotation - 90;
}
}
Instance of Symbol 109 MovieClip "bullet" in Frame 22
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
spd = 10;
this._rotation = _root.ship._rotation - 90;
if (this._name != "bullet") {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y, true)) {
if (this._name != "bullet") {
_root.xp = this._x;
_root.yp = this._y;
this.removeMovieClip();
}
}
if (this._name != "bullet") {
if (_rotation > 180) {
this._y = this._y - (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x + (spd * Math.sin((Math.PI/180) * _rotation));
} else {
this._y = this._y + (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x - (spd * Math.sin((Math.PI/180) * _rotation));
}
}
}
Instance of Symbol 111 MovieClip "curz" in Frame 22
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._visible = false;
}
Instance of Symbol 124 MovieClip "port" in Frame 22
onClipEvent (enterFrame) {
if (_root.ship.hitTest(this.hit)) {
_root.ff = 2;
}
}
Instance of Symbol 102 MovieClip "circle2" in Frame 22
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
if (this._width > 1000) {
_root.play();
}
}
Instance of Symbol 149 MovieClip "fb" in Frame 22
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this.hitTest(_root.ship)) {
this.play();
_root.f1.play();
_root.f2.play();
}
}
}
Instance of Symbol 128 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.timr < _root.otimr) {
_root.timr = _root.otimr;
}
if (_root.ff == 2) {
if ((zz == 2) == false) {
_root.timr = _root.timr + ((20 * (_root._currentframe / 2)) - 1);
_root.otimr = _root.timr / 2;
zz = 2;
}
}
if (_root.ship._currentframe == 1) {
if (_root.walls.hitTest(_root.ship._x, _root.ship._y, true)) {
_root.timr = _root.timr - 100;
}
}
}
Frame 23
stop();
hiScores.setDetails(121, 0, "Darkness", false, _root.timr, _root.timr, "points!");
Instance of Symbol 46 MovieClip [HiScores] "hiScores" in Frame 23
//component parameters
onClipEvent (construct) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
_root.his = 1;
xx = this._x;
this._x = -300;
}
onClipEvent (enterFrame) {
if (_root.his == 2) {
if (this._x < xx) {
this._x = this._x + 10;
}
}
}
Frame 24
ff = 1;
_root.lvl = "Level " + ((_root._currentframe / 2) - 1);
i = 0;
onMouseDown = function () {
if (_root._currentframe > 3) {
if (_root.ship._currentframe == 1) {
bullet.duplicateMovieClip("hello" + i, 1000);
i = i + 1;
}
}
};
onEnterFrame = function () {
if (_root._currentframe > 3) {
if (_root.xp != 0) {
_root.circle._x = xp;
_root.circle._y = yp;
_root.circle.gotoAndPlay(1);
_root.circle2._x = xp;
_root.circle2._y = yp;
_root.circle2.gotoAndPlay(1);
xp = 0;
yp = 0;
}
}
};
stop();
Instance of Symbol 102 MovieClip "circle" in Frame 24
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
}
Instance of Symbol 106 MovieClip "ship" in Frame 24
onClipEvent (load) {
_root.ox = this._x;
_root.oy = this._y;
spd = 0;
xspd = 0;
yspd = 0;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.ff != 2)) {
this._x = this._x + xspd;
this._y = this._y + yspd;
if (Key.isDown(65) || (Key.isDown(37))) {
xspd = xspd - 0.5;
} else if (Key.isDown(68) || (Key.isDown(39))) {
xspd = xspd + 0.5;
} else {
if (xspd > 0) {
xspd = xspd - 0.5;
}
if (xspd < 0) {
xspd = xspd + 0.5;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
yspd = yspd + 0.5;
} else if (Key.isDown(87) || (Key.isDown(38))) {
yspd = yspd - 0.5;
} else {
if (yspd > 0) {
yspd = yspd - 0.5;
}
if (yspd < 0) {
yspd = yspd + 0.5;
}
}
if (yspd > 5) {
yspd = 5;
}
if (yspd < -5) {
yspd = -5;
}
if (xspd > 5) {
xspd = 5;
}
if (xspd < -5) {
xspd = -5;
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this.play();
}
if ((this._currentframe == 1) && (_root.ff != 2)) {
if (this.hitTest(_root.curz)) {
spd = -1;
} else if (spd < 0) {
spd = 0;
}
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
rr = _rotation - 90;
}
}
Instance of Symbol 109 MovieClip "bullet" in Frame 24
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
spd = 10;
this._rotation = _root.ship._rotation - 90;
if (this._name != "bullet") {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y, true)) {
if (this._name != "bullet") {
_root.xp = this._x;
_root.yp = this._y;
this.removeMovieClip();
}
}
if (this._name != "bullet") {
if (_rotation > 180) {
this._y = this._y - (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x + (spd * Math.sin((Math.PI/180) * _rotation));
} else {
this._y = this._y + (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x - (spd * Math.sin((Math.PI/180) * _rotation));
}
}
}
Instance of Symbol 111 MovieClip "curz" in Frame 24
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._visible = false;
}
Instance of Symbol 124 MovieClip "port" in Frame 24
onClipEvent (enterFrame) {
if (_root.ship.hitTest(this.hit)) {
_root.ff = 2;
}
}
Instance of Symbol 102 MovieClip "circle2" in Frame 24
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
if (this._width > 1000) {
_root.play();
}
}
Instance of Symbol 128 MovieClip in Frame 24
onClipEvent (enterFrame) {
if (_root.timr < _root.otimr) {
_root.timr = _root.otimr;
}
if (_root.ff == 2) {
if ((zz == 2) == false) {
_root.timr = _root.timr + ((20 * (_root._currentframe / 2)) - 1);
_root.otimr = _root.timr / 2;
zz = 2;
}
}
if (_root.ship._currentframe == 1) {
if (_root.walls.hitTest(_root.ship._x, _root.ship._y, true)) {
_root.timr = _root.timr - 100;
}
}
}
Frame 26
ff = 1;
_root.lvl = "Level " + ((_root._currentframe / 2) - 1);
i = 0;
onMouseDown = function () {
if (_root._currentframe > 3) {
if (_root.ship._currentframe == 1) {
bullet.duplicateMovieClip("hello" + i, 1000);
i = i + 1;
}
}
};
onEnterFrame = function () {
if (_root._currentframe > 3) {
if (_root.xp != 0) {
_root.circle._x = xp;
_root.circle._y = yp;
_root.circle.gotoAndPlay(1);
_root.circle2._x = xp;
_root.circle2._y = yp;
_root.circle2.gotoAndPlay(1);
xp = 0;
yp = 0;
}
}
};
stop();
Instance of Symbol 102 MovieClip "circle" in Frame 26
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
}
Instance of Symbol 106 MovieClip "ship" in Frame 26
onClipEvent (load) {
_root.ox = this._x;
_root.oy = this._y;
spd = 0;
xspd = 0;
yspd = 0;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.ff != 2)) {
this._x = this._x + xspd;
this._y = this._y + yspd;
if (Key.isDown(65) || (Key.isDown(37))) {
xspd = xspd - 0.5;
} else if (Key.isDown(68) || (Key.isDown(39))) {
xspd = xspd + 0.5;
} else {
if (xspd > 0) {
xspd = xspd - 0.5;
}
if (xspd < 0) {
xspd = xspd + 0.5;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
yspd = yspd + 0.5;
} else if (Key.isDown(87) || (Key.isDown(38))) {
yspd = yspd - 0.5;
} else {
if (yspd > 0) {
yspd = yspd - 0.5;
}
if (yspd < 0) {
yspd = yspd + 0.5;
}
}
if (yspd > 5) {
yspd = 5;
}
if (yspd < -5) {
yspd = -5;
}
if (xspd > 5) {
xspd = 5;
}
if (xspd < -5) {
xspd = -5;
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this.play();
}
if ((this._currentframe == 1) && (_root.ff != 2)) {
if (this.hitTest(_root.curz)) {
spd = -1;
} else if (spd < 0) {
spd = 0;
}
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
rr = _rotation - 90;
}
}
Instance of Symbol 109 MovieClip "bullet" in Frame 26
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
spd = 10;
this._rotation = _root.ship._rotation - 90;
if (this._name != "bullet") {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y, true)) {
if (this._name != "bullet") {
_root.xp = this._x;
_root.yp = this._y;
this.removeMovieClip();
}
}
if (this._name != "bullet") {
if (_rotation > 180) {
this._y = this._y - (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x + (spd * Math.sin((Math.PI/180) * _rotation));
} else {
this._y = this._y + (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x - (spd * Math.sin((Math.PI/180) * _rotation));
}
}
}
Instance of Symbol 111 MovieClip "curz" in Frame 26
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._visible = false;
}
Instance of Symbol 124 MovieClip "port" in Frame 26
onClipEvent (enterFrame) {
if (_root.ship.hitTest(this.hit)) {
_root.ff = 2;
}
}
Instance of Symbol 102 MovieClip "circle2" in Frame 26
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
if (this._width > 1000) {
_root.play();
}
}
Instance of Symbol 149 MovieClip "fb" in Frame 26
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this.hitTest(_root.ship)) {
this.play();
_root.f1.play();
_root.f2.play();
}
}
}
Instance of Symbol 128 MovieClip in Frame 26
onClipEvent (enterFrame) {
if (_root.timr < _root.otimr) {
_root.timr = _root.otimr;
}
if (_root.ff == 2) {
if ((zz == 2) == false) {
_root.timr = _root.timr + ((20 * (_root._currentframe / 2)) - 1);
_root.otimr = _root.timr / 2;
zz = 2;
}
}
if (_root.ship._currentframe == 1) {
if (_root.walls.hitTest(_root.ship._x, _root.ship._y, true)) {
_root.timr = _root.timr - 100;
}
}
}
Frame 28
ff = 1;
_root.lvl = "Level " + ((_root._currentframe / 2) - 1);
i = 0;
onMouseDown = function () {
if (_root._currentframe > 3) {
if (_root.ship._currentframe == 1) {
bullet.duplicateMovieClip("hello" + i, 1000);
i = i + 1;
}
}
};
onEnterFrame = function () {
if (_root._currentframe > 3) {
if (_root.xp != 0) {
_root.circle._x = xp;
_root.circle._y = yp;
_root.circle.gotoAndPlay(1);
_root.circle2._x = xp;
_root.circle2._y = yp;
_root.circle2.gotoAndPlay(1);
xp = 0;
yp = 0;
}
}
};
stop();
Instance of Symbol 102 MovieClip "circle" in Frame 28
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
}
Instance of Symbol 106 MovieClip "ship" in Frame 28
onClipEvent (load) {
_root.ox = this._x;
_root.oy = this._y;
spd = 0;
xspd = 0;
yspd = 0;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.ff != 2)) {
this._x = this._x + xspd;
this._y = this._y + yspd;
if (Key.isDown(65) || (Key.isDown(37))) {
xspd = xspd - 0.5;
} else if (Key.isDown(68) || (Key.isDown(39))) {
xspd = xspd + 0.5;
} else {
if (xspd > 0) {
xspd = xspd - 0.5;
}
if (xspd < 0) {
xspd = xspd + 0.5;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
yspd = yspd + 0.5;
} else if (Key.isDown(87) || (Key.isDown(38))) {
yspd = yspd - 0.5;
} else {
if (yspd > 0) {
yspd = yspd - 0.5;
}
if (yspd < 0) {
yspd = yspd + 0.5;
}
}
if (yspd > 5) {
yspd = 5;
}
if (yspd < -5) {
yspd = -5;
}
if (xspd > 5) {
xspd = 5;
}
if (xspd < -5) {
xspd = -5;
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this.play();
}
if ((this._currentframe == 1) && (_root.ff != 2)) {
if (this.hitTest(_root.curz)) {
spd = -1;
} else if (spd < 0) {
spd = 0;
}
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
rr = _rotation - 90;
}
}
Instance of Symbol 109 MovieClip "bullet" in Frame 28
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
spd = 10;
this._rotation = _root.ship._rotation - 90;
if (this._name != "bullet") {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y, true)) {
if (this._name != "bullet") {
_root.xp = this._x;
_root.yp = this._y;
this.removeMovieClip();
}
}
if (this._name != "bullet") {
if (_rotation > 180) {
this._y = this._y - (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x + (spd * Math.sin((Math.PI/180) * _rotation));
} else {
this._y = this._y + (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x - (spd * Math.sin((Math.PI/180) * _rotation));
}
}
}
Instance of Symbol 111 MovieClip "curz" in Frame 28
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._visible = false;
}
Instance of Symbol 124 MovieClip "port" in Frame 28
onClipEvent (enterFrame) {
if (_root.ship.hitTest(this.hit)) {
_root.ff = 2;
}
}
Instance of Symbol 102 MovieClip "circle2" in Frame 28
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
if (this._width > 1000) {
_root.play();
}
}
Instance of Symbol 128 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (_root.timr < _root.otimr) {
_root.timr = _root.otimr;
}
if (_root.ff == 2) {
if ((zz == 2) == false) {
_root.timr = _root.timr + ((20 * (_root._currentframe / 2)) - 1);
_root.otimr = _root.timr / 2;
zz = 2;
}
}
if (_root.ship._currentframe == 1) {
if (_root.walls.hitTest(_root.ship._x, _root.ship._y, true)) {
_root.timr = _root.timr - 100;
}
}
}
Frame 30
ff = 1;
_root.lvl = "Level " + ((_root._currentframe / 2) - 1);
i = 0;
onMouseDown = function () {
if (_root._currentframe > 3) {
if (_root.ship._currentframe == 1) {
bullet.duplicateMovieClip("hello" + i, 1000);
i = i + 1;
}
}
};
onEnterFrame = function () {
if (_root._currentframe > 3) {
if (_root.xp != 0) {
_root.circle._x = xp;
_root.circle._y = yp;
_root.circle.gotoAndPlay(1);
_root.circle2._x = xp;
_root.circle2._y = yp;
_root.circle2.gotoAndPlay(1);
xp = 0;
yp = 0;
}
}
};
stop();
Instance of Symbol 102 MovieClip "circle" in Frame 30
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
}
Instance of Symbol 106 MovieClip "ship" in Frame 30
onClipEvent (load) {
_root.ox = this._x;
_root.oy = this._y;
spd = 0;
xspd = 0;
yspd = 0;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.ff != 2)) {
this._x = this._x + xspd;
this._y = this._y + yspd;
if (Key.isDown(65) || (Key.isDown(37))) {
xspd = xspd - 0.5;
} else if (Key.isDown(68) || (Key.isDown(39))) {
xspd = xspd + 0.5;
} else {
if (xspd > 0) {
xspd = xspd - 0.5;
}
if (xspd < 0) {
xspd = xspd + 0.5;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
yspd = yspd + 0.5;
} else if (Key.isDown(87) || (Key.isDown(38))) {
yspd = yspd - 0.5;
} else {
if (yspd > 0) {
yspd = yspd - 0.5;
}
if (yspd < 0) {
yspd = yspd + 0.5;
}
}
if (yspd > 5) {
yspd = 5;
}
if (yspd < -5) {
yspd = -5;
}
if (xspd > 5) {
xspd = 5;
}
if (xspd < -5) {
xspd = -5;
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this.play();
}
if ((this._currentframe == 1) && (_root.ff != 2)) {
if (this.hitTest(_root.curz)) {
spd = -1;
} else if (spd < 0) {
spd = 0;
}
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
rr = _rotation - 90;
}
}
Instance of Symbol 109 MovieClip "bullet" in Frame 30
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
spd = 10;
this._rotation = _root.ship._rotation - 90;
if (this._name != "bullet") {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y, true)) {
if (this._name != "bullet") {
_root.xp = this._x;
_root.yp = this._y;
this.removeMovieClip();
}
}
if (this._name != "bullet") {
if (_rotation > 180) {
this._y = this._y - (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x + (spd * Math.sin((Math.PI/180) * _rotation));
} else {
this._y = this._y + (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x - (spd * Math.sin((Math.PI/180) * _rotation));
}
}
}
Instance of Symbol 111 MovieClip "curz" in Frame 30
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._visible = false;
}
Instance of Symbol 124 MovieClip "port" in Frame 30
onClipEvent (enterFrame) {
if (_root.ship.hitTest(this.hit)) {
_root.ff = 2;
}
}
Instance of Symbol 102 MovieClip "circle2" in Frame 30
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
if (this._width > 1000) {
_root.play();
}
}
Instance of Symbol 149 MovieClip "fb" in Frame 30
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this.hitTest(_root.ship)) {
this.play();
_root.f1.play();
_root.f2.play();
}
}
}
Instance of Symbol 149 MovieClip "fb1" in Frame 30
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this.hitTest(_root.ship)) {
this.play();
_root.f1.play();
_root.f2.play();
}
}
}
Instance of Symbol 149 MovieClip "fb2" in Frame 30
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this.hitTest(_root.ship)) {
this.play();
_root.f1.play();
_root.f2.play();
}
}
}
Instance of Symbol 149 MovieClip "fb3" in Frame 30
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this.hitTest(_root.ship)) {
this.play();
_root.f1.play();
_root.f2.play();
}
}
}
Instance of Symbol 128 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.timr < _root.otimr) {
_root.timr = _root.otimr;
}
if (_root.ff == 2) {
if ((zz == 2) == false) {
_root.timr = _root.timr + ((20 * (_root._currentframe / 2)) - 1);
_root.otimr = _root.timr / 2;
zz = 2;
}
}
if (_root.ship._currentframe == 1) {
if (_root.walls.hitTest(_root.ship._x, _root.ship._y, true)) {
_root.timr = _root.timr - 100;
}
}
}
Frame 32
ff = 1;
_root.lvl = "Level " + ((_root._currentframe / 2) - 1);
i = 0;
onMouseDown = function () {
if (_root._currentframe > 3) {
if (_root.ship._currentframe == 1) {
bullet.duplicateMovieClip("hello" + i, 1000);
i = i + 1;
}
}
};
onEnterFrame = function () {
if (_root._currentframe > 3) {
if (_root.xp != 0) {
_root.circle._x = xp;
_root.circle._y = yp;
_root.circle.gotoAndPlay(1);
_root.circle2._x = xp;
_root.circle2._y = yp;
_root.circle2.gotoAndPlay(1);
xp = 0;
yp = 0;
}
}
};
stop();
Instance of Symbol 102 MovieClip "circle" in Frame 32
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
}
Instance of Symbol 106 MovieClip "ship" in Frame 32
onClipEvent (load) {
_root.ox = this._x;
_root.oy = this._y;
spd = 0;
xspd = 0;
yspd = 0;
}
onClipEvent (enterFrame) {
if ((this._currentframe == 1) && (_root.ff != 2)) {
this._x = this._x + xspd;
this._y = this._y + yspd;
if (Key.isDown(65) || (Key.isDown(37))) {
xspd = xspd - 0.5;
} else if (Key.isDown(68) || (Key.isDown(39))) {
xspd = xspd + 0.5;
} else {
if (xspd > 0) {
xspd = xspd - 0.5;
}
if (xspd < 0) {
xspd = xspd + 0.5;
}
}
if (Key.isDown(83) || (Key.isDown(40))) {
yspd = yspd + 0.5;
} else if (Key.isDown(87) || (Key.isDown(38))) {
yspd = yspd - 0.5;
} else {
if (yspd > 0) {
yspd = yspd - 0.5;
}
if (yspd < 0) {
yspd = yspd + 0.5;
}
}
if (yspd > 5) {
yspd = 5;
}
if (yspd < -5) {
yspd = -5;
}
if (xspd > 5) {
xspd = 5;
}
if (xspd < -5) {
xspd = -5;
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this.play();
}
if ((this._currentframe == 1) && (_root.ff != 2)) {
if (this.hitTest(_root.curz)) {
spd = -1;
} else if (spd < 0) {
spd = 0;
}
}
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int((radAngle * 360) / (Math.PI*2));
rr = _rotation - 90;
}
}
Instance of Symbol 109 MovieClip "bullet" in Frame 32
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
spd = 10;
this._rotation = _root.ship._rotation - 90;
if (this._name != "bullet") {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
}
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y, true)) {
if (this._name != "bullet") {
_root.xp = this._x;
_root.yp = this._y;
this.removeMovieClip();
}
}
if (this._name != "bullet") {
if (_rotation > 180) {
this._y = this._y - (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x + (spd * Math.sin((Math.PI/180) * _rotation));
} else {
this._y = this._y + (spd * Math.cos((Math.PI/180) * _rotation));
this._x = this._x - (spd * Math.sin((Math.PI/180) * _rotation));
}
}
}
Instance of Symbol 111 MovieClip "curz" in Frame 32
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
this._visible = false;
}
Instance of Symbol 124 MovieClip "port" in Frame 32
onClipEvent (enterFrame) {
if (_root.ship.hitTest(this.hit)) {
_root.ff = 2;
}
}
Instance of Symbol 102 MovieClip "circle2" in Frame 32
onClipEvent (load) {
this._x = _root.ship._x;
this._y = _root.ship._y;
}
onClipEvent (enterFrame) {
if (_root.ff == 2) {
this._width = this._width * 1.1;
this._height = this._height * 1.1;
}
if (this._width > 1000) {
_root.play();
}
}
Instance of Symbol 149 MovieClip "fb" in Frame 32
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (this.hitTest(_root.ship)) {
this.play();
_root.f1.play();
_root.f2.play();
}
}
}
Instance of Symbol 128 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (_root.timr < _root.otimr) {
_root.timr = _root.otimr;
}
if (_root.ff == 2) {
if ((zz == 2) == false) {
_root.timr = _root.timr + ((20 * (_root._currentframe / 2)) - 1);
_root.otimr = _root.timr / 2;
zz = 2;
}
}
if (_root.ship._currentframe == 1) {
if (_root.walls.hitTest(_root.ship._x, _root.ship._y, true)) {
_root.timr = _root.timr - 100;
}
}
}
Frame 33
stop();
hiScores.setDetails(121, 0, "Darkness", false, _root.timr, _root.timr, "points!");
Instance of Symbol 46 MovieClip [HiScores] "hiScores" in Frame 33
//component parameters
onClipEvent (construct) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Frame 34
stop();
Instance of Symbol 196 MovieClip in Frame 34
onClipEvent (mouseDown) {
_root.gotoAndPlay(3);
}
Symbol 23 Button
on (release) {
_parent.submitScore();
}
Symbol 25 Button
on (release) {
_parent.secCodeLoad();
}
Symbol 36 Button
on (release) {
_parent.enterAnotherName();
}
Symbol 40 Button
on (release) {
_parent.back();
}
Symbol 43 Button
on (release) {
_parent.viewScore();
}
Symbol 46 MovieClip [HiScores] Frame 1
#initclip 10
Object.registerClass("HiScores", HiScores);
#endinitclip
Symbol 61 Button
on (release) {
getURL ("http://www.gimme5games.com", "_blank");
}
Symbol 72 MovieClip [Splash] Frame 1
#initclip 11
Object.registerClass("Splash", Splash);
#endinitclip
Symbol 72 MovieClip [Splash] Frame 91
_root.gotoAndPlay(this.getFrameAfterCompletion());
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 10
gotoAndPlay (1);
Symbol 197 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:2434341, background:2763306, outline:1644825, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 3 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local3 = __width;
var _local2 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.127";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 4 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 5 MovieClip [__Packages.HiScores] Frame 0
class HiScores extends mx.core.UIComponent
{
var _visible, g5User, g5UserExists, gameId, levelId, gameCode, lowIsBest, score, msg1, msg2, movEntryScreen, movAutoEntryScreen, movInfoScreen, invalidate, getURL;
function HiScores () {
super();
_visible = false;
}
function setDetails(gameId, levelId, gameCode, lowIsBest, score, msg1, msg2) {
g5User = flash.external.ExternalInterface.call("getG5User");
g5UserExists = ((g5User == null) ? false : (!isNaN(g5User[0])));
this.gameId = gameId;
this.levelId = levelId;
this.gameCode = gameCode;
this.lowIsBest = lowIsBest;
this.score = score;
this.msg1 = msg1;
this.msg2 = msg2;
entryScreen = movEntryScreen;
autoEntryScreen = movAutoEntryScreen;
infoScreen = movInfoScreen;
entryScreen._visible = false;
autoEntryScreen._visible = false;
infoScreen._visible = false;
if (g5UserExists) {
showAutoEntryScreen();
} else {
showEntryScreen();
}
_visible = true;
}
function createChildren() {
size();
}
function size() {
super.size();
invalidate();
}
function secCodeLoad() {
var _local2 = new MovieClipLoader();
_local2.loadClip((HS_SERVLET_URL + "?type=genCode&cachebuster=") + new Date().getTime(), entryScreen.movCode);
}
function back() {
entryScreen._visible = true;
infoScreen._visible = false;
}
function viewScore() {
if (g5UserExists) {
getURL((((((((HI_SCORE_URL + gameCode) + "_hs") + "&userId=") + g5User[0]) + "&levelId=") + levelId) + "&cachebuster=") + new Date().getTime(), "_blank");
} else {
getURL((((((((HI_SCORE_URL + gameCode) + "_hs") + "&name=") + entryScreen.txtName.text) + "&levelId=") + levelId) + "&cachebuster=") + new Date().getTime(), "_blank");
}
}
function showEntryScreen() {
entryScreen.txtMsg1.text = msg1;
entryScreen.txtMsg2.text = msg2;
entryScreen.txtName.text = "";
entryScreen.txtCode.text = "";
entryScreen._visible = true;
secCodeLoad();
}
function showAutoEntryScreen() {
autoEntryScreen.txtMsg1.text = msg1;
autoEntryScreen.txtMsg2.text = msg2;
autoEntryScreen.txtName.text = g5User[1];
autoEntryScreen._visible = true;
}
function showInfoMessage(msg, error) {
infoScreen.txtInfo.text = msg;
infoScreen.btnBack._visible = error;
infoScreen.btnView._visible = !error;
}
function submitScore() {
entryScreen._visible = false;
autoEntryScreen._visible = false;
infoScreen._visible = true;
var _local8 = true;
if ((!g5UserExists) && (entryScreen.txtName.text.length == 0)) {
showInfoMessage("Please enter your name.", true);
} else if ((!g5UserExists) && (entryScreen.txtCode.text.length != 5)) {
showInfoMessage("Please enter all 5 letters of the security code.", true);
} else {
showInfoMessage("Submitting hi-score details to the server, please wait.", true);
infoScreen.btnBack._visible = false;
_local8 = false;
}
if (!_local8) {
var _local4 = "save|";
if (g5UserExists) {
_local4 = _local4 + ((((((("----------|-----|" + score) + "|") + gameId) + "|") + levelId) + "|") + g5User[0]);
} else {
_local4 = _local4 + (((((((((entryScreen.txtName.text + "|") + entryScreen.txtCode.text) + "|") + score) + "|") + gameId) + "|") + levelId) + "|-----");
}
var _local5 = "";
var _local3 = 0;
var _local2 = 0;
while (_local3 < _local4.length) {
if (_local2 >= KEY.length) {
_local2 = 0;
}
_local5 = _local5 + String.fromCharCode((_local4.charCodeAt(_local3) ^ KEY.charCodeAt(_local2)) + 1);
_local3++;
_local2++;
}
var self = this;
var _local6 = new LoadVars();
_local6.ffdata = _local5;
_local6.lowIsBest = lowIsBest;
_local6.sendAndLoad(HS_SERVLET_URL, _local6, "POST");
_local6.onLoad = function (success) {
var _local2 = parseInt(this.res);
if (!success) {
self.showInfoMessage("A serious problem was encountered with the server, please try again in a few minutes.", true);
} else if (_local2 == -1) {
self.showInfoMessage("Could not store hi-score details. Click on back, generate a new security code and re-submit.", true);
} else if (_local2 == 0) {
self.showInfoMessage("Sorry, a better score already exists with that name.", false);
} else if (_local2 == 1) {
self.showInfoMessage("Congratulations! You made it into the\nhi-score table.", false);
}
};
}
}
function enterAnotherName() {
g5UserExists = false;
autoEntryScreen._visible = false;
showEntryScreen();
}
static var symbolName = "HiScores";
static var symbolOwner = HiScores;
var className = "HiScores";
static var SERVER_URL = "http://www.gimme5games.com";
static var HS_SERVLET_URL = SERVER_URL + "/servlet/hiServlet";
static var HI_SCORE_URL = SERVER_URL + "/index.jsp?id=";
var KEY = "rocket";
var entryScreen = null;
var autoEntryScreen = null;
var infoScreen = null;
}
Symbol 47 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 48 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 49 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 50 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 51 MovieClip [__Packages.Splash] Frame 0
class Splash extends mx.core.UIComponent
{
var useHandCursor, boundingBox_mc, invalidate;
function Splash () {
super();
}
function init() {
super.init();
useHandCursor = false;
boundingBox_mc._visible = false;
}
function createChildren() {
size();
}
function size() {
super.size();
invalidate();
}
function draw() {
super.draw();
if (_global.isLivePreview) {
boundingBox_mc._visible = true;
} else {
boundingBox_mc._visible = false;
}
}
function getFrameAfterCompletion() {
return(frameAfterCompletion);
}
function setFrameAfterCompletion(frameAfterCompletion) {
this.frameAfterCompletion = frameAfterCompletion;
}
static var symbolName = "Splash";
static var symbolOwner = Splash;
var className = "Splash";
var frameAfterCompletion = 0;
}
Symbol 82 MovieClip Frame 6
stop();
Symbol 86 Button
on (release) {
_root.play();
}
Symbol 89 Button
on (release) {
getURL ("http://www.gimme5games.com", "_blank");
}
Symbol 95 MovieClip Frame 6093
gotoAndPlay (1);
Symbol 96 Button
on (keyPress "[") {
_root.mm.stop();
}
on (keyPress "]") {
_root.mm.play();
}
Symbol 100 MovieClip Frame 1
stop();
Instance of Symbol 100 MovieClip in Symbol 101 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.walls.hitTest(this._x, this._y, true)) {
trace("hit");
_parent.stop();
this.play();
}
}
Symbol 101 MovieClip Frame 13
stop();
Symbol 102 MovieClip Frame 2
_root.timr = _root.timr - 2.5;
Symbol 102 MovieClip Frame 17
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
explode = new Sound();
explode.attachSound("explode");
explode.start();
Symbol 106 MovieClip Frame 13
_root.timr = _root.timr - 300;
_root.ship._x = _root.ox;
_root.ship._y = _root.oy;
_root.circle._x = _root.ox;
_root.circle2._x = _root.ox;
_root.circle._y = _root.oy;
_root.circle2._y = _root.oy;
_root.fb.gotoAndPlay(1);
_root.fb1.gotoAndPlay(1);
_root.fb2.gotoAndPlay(1);
_root.fb3.gotoAndPlay(1);
gotoAndStop (1);
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 10
gotoAndPlay (1);
Symbol 128 MovieClip Frame 1
onEnterFrame = function () {
if (_root.timr < 0) {
_root.timr = 0;
}
};
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 8
stop();
Symbol 157 Button
on (release) {
_root.play();
}
Symbol 161 Button
on (release) {
_root.his = 2;
_root.butt._alpha = 0;
_root.butt._x = _root.butt._x - 500;
}
Symbol 192 Button
on (release) {
_root.play();
}
Symbol 194 MovieClip Frame 27
stop();