Frame 1
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndStop (3);
}
Instance of Symbol 11 MovieClip "1" in Frame 1
onClipEvent (load) {
myNum = _name;
}
onClipEvent (enterFrame) {
_root[("r" + myNum) + "Diff"] = _root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Old"];
_root[("r" + myNum) + "Change"] = _root[("r" + myNum) + "Diff"] / 3;
_root[("g" + myNum) + "Diff"] = _root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Old"];
_root[("g" + myNum) + "Change"] = _root[("g" + myNum) + "Diff"] / 3;
_root[("b" + myNum) + "Diff"] = _root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Old"];
_root[("b" + myNum) + "Change"] = _root[("b" + myNum) + "Diff"] / 3;
swatchColor = new Color(this);
swatchColor.setRGB(((_root[("r" + myNum) + "Change"] << 16) | (_root[("g" + myNum) + "Change"] << 8)) | _root[("b" + myNum) + "Change"]);
_root[("r" + myNum) + "Old"] = _root[("r" + myNum) + "Old"] - (_root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Change"]);
_root[("g" + myNum) + "Old"] = _root[("g" + myNum) + "Old"] - (_root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Change"]);
_root[("b" + myNum) + "Old"] = _root[("b" + myNum) + "Old"] - (_root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Change"]);
if (i < 3) {
i++;
_root[("r" + i) + "New"] = random(255);
_root[("g" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
} else {
i = 0;
}
}
Instance of Symbol 11 MovieClip "2" in Frame 1
onClipEvent (load) {
myNum = _name;
}
onClipEvent (enterFrame) {
_root[("r" + myNum) + "Diff"] = _root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Old"];
_root[("r" + myNum) + "Change"] = _root[("r" + myNum) + "Diff"] / 3;
_root[("g" + myNum) + "Diff"] = _root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Old"];
_root[("g" + myNum) + "Change"] = _root[("g" + myNum) + "Diff"] / 3;
_root[("b" + myNum) + "Diff"] = _root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Old"];
_root[("b" + myNum) + "Change"] = _root[("b" + myNum) + "Diff"] / 3;
swatchColor = new Color(this);
swatchColor.setRGB(((_root[("r" + myNum) + "Change"] << 16) | (_root[("g" + myNum) + "Change"] << 8)) | _root[("b" + myNum) + "Change"]);
_root[("r" + myNum) + "Old"] = _root[("r" + myNum) + "Old"] - (_root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Change"]);
_root[("g" + myNum) + "Old"] = _root[("g" + myNum) + "Old"] - (_root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Change"]);
_root[("b" + myNum) + "Old"] = _root[("b" + myNum) + "Old"] - (_root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Change"]);
if (i < 3) {
i++;
_root[("r" + i) + "New"] = random(255);
_root[("g" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
} else {
i = 0;
}
}
Instance of Symbol 11 MovieClip "3" in Frame 1
onClipEvent (load) {
myNum = _name;
}
onClipEvent (enterFrame) {
_root[("r" + myNum) + "Diff"] = _root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Old"];
_root[("r" + myNum) + "Change"] = _root[("r" + myNum) + "Diff"] / 3;
_root[("g" + myNum) + "Diff"] = _root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Old"];
_root[("g" + myNum) + "Change"] = _root[("g" + myNum) + "Diff"] / 3;
_root[("b" + myNum) + "Diff"] = _root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Old"];
_root[("b" + myNum) + "Change"] = _root[("b" + myNum) + "Diff"] / 3;
swatchColor = new Color(this);
swatchColor.setRGB(((_root[("r" + myNum) + "Change"] << 16) | (_root[("g" + myNum) + "Change"] << 8)) | _root[("b" + myNum) + "Change"]);
_root[("r" + myNum) + "Old"] = _root[("r" + myNum) + "Old"] - (_root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Change"]);
_root[("g" + myNum) + "Old"] = _root[("g" + myNum) + "Old"] - (_root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Change"]);
_root[("b" + myNum) + "Old"] = _root[("b" + myNum) + "Old"] - (_root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Change"]);
if (i < 3) {
i++;
_root[("r" + i) + "New"] = random(255);
_root[("g" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
} else {
i = 0;
}
}
Frame 2
gotoAndPlay (1);
Frame 5
function reset_alien() {
_root.lives--;
_root.time = 30;
_root.milliseconds = 60;
_root.alien._rotation = 0;
_root.alien._x = 275;
_root.alien._y = _root.limit_down;
_root.alien.gotoAndStop("stand");
}
score = 0;
level = 1;
lives = 3;
speed = 8;
speed_car = 4;
limit_right = 535;
limit_left = 15;
limit_down = 445;
limit_up = 55;
s_splat = new Sound();
s_splat.attachSound("splat");
s_move = new Sound();
s_move.attachSound("move");
gotoAndStop (6);
Frame 6
time = 30;
milliseconds = 60;
Frame 7
prevFrame();
Frame 9
prevFrame();
Instance of Symbol 11 MovieClip "1" in Frame 9
onClipEvent (load) {
myNum = _name;
}
onClipEvent (enterFrame) {
_root[("r" + myNum) + "Diff"] = _root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Old"];
_root[("r" + myNum) + "Change"] = _root[("r" + myNum) + "Diff"] / 3;
_root[("g" + myNum) + "Diff"] = _root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Old"];
_root[("g" + myNum) + "Change"] = _root[("g" + myNum) + "Diff"] / 3;
_root[("b" + myNum) + "Diff"] = _root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Old"];
_root[("b" + myNum) + "Change"] = _root[("b" + myNum) + "Diff"] / 3;
swatchColor = new Color(this);
swatchColor.setRGB(((_root[("r" + myNum) + "Change"] << 16) | (_root[("g" + myNum) + "Change"] << 8)) | _root[("b" + myNum) + "Change"]);
_root[("r" + myNum) + "Old"] = _root[("r" + myNum) + "Old"] - (_root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Change"]);
_root[("g" + myNum) + "Old"] = _root[("g" + myNum) + "Old"] - (_root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Change"]);
_root[("b" + myNum) + "Old"] = _root[("b" + myNum) + "Old"] - (_root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Change"]);
if (i < 3) {
i++;
_root[("r" + i) + "New"] = random(255);
_root[("g" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
} else {
i = 0;
}
}
Instance of Symbol 11 MovieClip "2" in Frame 9
onClipEvent (load) {
myNum = _name;
}
onClipEvent (enterFrame) {
_root[("r" + myNum) + "Diff"] = _root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Old"];
_root[("r" + myNum) + "Change"] = _root[("r" + myNum) + "Diff"] / 3;
_root[("g" + myNum) + "Diff"] = _root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Old"];
_root[("g" + myNum) + "Change"] = _root[("g" + myNum) + "Diff"] / 3;
_root[("b" + myNum) + "Diff"] = _root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Old"];
_root[("b" + myNum) + "Change"] = _root[("b" + myNum) + "Diff"] / 3;
swatchColor = new Color(this);
swatchColor.setRGB(((_root[("r" + myNum) + "Change"] << 16) | (_root[("g" + myNum) + "Change"] << 8)) | _root[("b" + myNum) + "Change"]);
_root[("r" + myNum) + "Old"] = _root[("r" + myNum) + "Old"] - (_root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Change"]);
_root[("g" + myNum) + "Old"] = _root[("g" + myNum) + "Old"] - (_root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Change"]);
_root[("b" + myNum) + "Old"] = _root[("b" + myNum) + "Old"] - (_root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Change"]);
if (i < 3) {
i++;
_root[("r" + i) + "New"] = random(255);
_root[("g" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
} else {
i = 0;
}
}
Instance of Symbol 11 MovieClip "3" in Frame 9
onClipEvent (load) {
myNum = _name;
}
onClipEvent (enterFrame) {
_root[("r" + myNum) + "Diff"] = _root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Old"];
_root[("r" + myNum) + "Change"] = _root[("r" + myNum) + "Diff"] / 3;
_root[("g" + myNum) + "Diff"] = _root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Old"];
_root[("g" + myNum) + "Change"] = _root[("g" + myNum) + "Diff"] / 3;
_root[("b" + myNum) + "Diff"] = _root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Old"];
_root[("b" + myNum) + "Change"] = _root[("b" + myNum) + "Diff"] / 3;
swatchColor = new Color(this);
swatchColor.setRGB(((_root[("r" + myNum) + "Change"] << 16) | (_root[("g" + myNum) + "Change"] << 8)) | _root[("b" + myNum) + "Change"]);
_root[("r" + myNum) + "Old"] = _root[("r" + myNum) + "Old"] - (_root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Change"]);
_root[("g" + myNum) + "Old"] = _root[("g" + myNum) + "Old"] - (_root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Change"]);
_root[("b" + myNum) + "Old"] = _root[("b" + myNum) + "Old"] - (_root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Change"]);
if (i < 3) {
i++;
_root[("r" + i) + "New"] = random(255);
_root[("g" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
} else {
i = 0;
}
}
Frame 10
score = score + 10;
level++;
speed_car++;
gotoAndStop (6);
Frame 11
nextFrame();
Frame 13
prevFrame();
Symbol 8 Button
on (release) {
getURL ("http://www.etgames.com", "_blank");
}
Symbol 13 Button
on (release) {
nextFrame();
}
Symbol 20 MovieClip Frame 1
if (_root.milliseconds == 0) {
if (0 < _root.time) {
_root.milliseconds = 60;
_root.time--;
} else {
_root.message.gotoAndPlay("time");
_parent.gotoAndStop("done");
}
} else {
_root.milliseconds = _root.milliseconds - 2;
}
if ((_parent._x != _parent.dest_x) || (_parent._y != _parent.dest_y)) {
_parent.walking = true;
if (_parent._currentFrame == 1) {
_parent.gotoAndStop("walk");
}
} else {
_parent.walking = false;
if (_parent._currentFrame == 2) {
_parent.gotoAndStop("stand");
}
}
if ((_parent._x + _root.speed) < _parent.dest_x) {
_parent._x = _parent._x + _root.speed;
_parent._rotation = 90;
} else if (_parent.dest_x < (_parent._x - _root.speed)) {
_parent._x = _parent._x - _root.speed;
_parent._rotation = -90;
} else {
_parent.dest_x = _parent._x;
}
if ((_parent._y + _root.speed) < _parent.dest_y) {
_parent._y = _parent._y + _root.speed;
_parent._rotation = 180;
} else if (_parent.dest_y < (_parent._y - _root.speed)) {
_parent._y = _parent._y - _root.speed;
_parent._rotation = 0;
} else {
_parent.dest_y = _parent._y;
}
if (Key.isDown(Key.RIGHT)) {
_parent.key_right++;
} else {
_parent.key_right = 0;
}
if (Key.isDown(Key.LEFT)) {
_parent.key_left++;
} else {
_parent.key_left = 0;
}
if (Key.isDown(Key.DOWN)) {
_parent.key_down++;
} else {
_parent.key_down = 0;
}
if (Key.isDown(Key.UP)) {
_parent.key_up++;
} else {
_parent.key_up = 0;
}
if (_parent.walking != true) {
if ((Key.isDown(Key.RIGHT) && ((_parent.key_left == 0) || (_parent.key_right < _parent.key_left))) && (_parent._x < _root.limit_right)) {
_parent.dest_x = _parent._x + 80;
}
if ((Key.isDown(Key.LEFT) && ((_parent.key_right == 0) || (_parent.key_left < _parent.key_right))) && (_root.limit_left < _parent._x)) {
_parent.dest_x = _parent._x - 80;
}
if (_parent.dest_x == _parent._x) {
if (Key.isDown(Key.DOWN) && (_parent._y < _root.limit_down)) {
_parent.dest_y = _parent._y + 80;
}
if (Key.isDown(Key.UP) && (_root.limit_up < _parent._y)) {
_parent.dest_y = _parent._y - 80;
}
}
}
if (_root.limit_right < _parent._x) {
_parent._x = _root.limit_right;
_parent.dest_x = _parent._x;
} else if (_parent._x < _root.limit_left) {
_parent._x = _root.limit_left;
_parent.dest_x = _parent._x;
}
if (_root.limit_down < _parent._y) {
_parent._y = _root.limit_down;
_parent.dest_y = _parent._y;
} else if (_parent._y < _root.limit_up) {
_parent._y = _root.limit_up;
_parent.dest_y = _parent._y;
_root.gotoAndStop("clear");
_parent.gotoAndStop("done");
}
Symbol 20 MovieClip Frame 2
gotoAndPlay (1);
Symbol 25 MovieClip Frame 66
if (0 < _root.lives) {
_root.reset_alien();
} else {
_root.gotoAndStop("end");
}
Symbol 26 MovieClip Frame 1
dest_x = _x;
dest_y = _y;
stop();
Symbol 26 MovieClip Frame 2
_root.s_move.start();
Symbol 26 MovieClip Frame 3
_root.s_splat.start();
Symbol 28 MovieClip Frame 1
width = _parent._width / 2;
height = _parent._height / 2;
if (_parent._y < 250) {
_parent._x = _parent._x + _root.speed_car;
_parent._xscale = 100;
if (700 < _parent._x) {
_parent.gotoAndStop(1 + random(3));
_parent._x = -150;
}
} else if (250 < _parent._y) {
_parent._x = _parent._x - _root.speed_car;
_parent._xscale = -100;
if (_parent._x < -150) {
_parent.gotoAndStop(1 + random(3));
_parent._x = 700;
}
}
if (((_root.alien._x < (_parent._x + width)) && ((_parent._x - width) < _root.alien._x)) && ((_root.alien._y < (_parent._y + height)) && ((_parent._y - height) < _root.alien._y))) {
_root.alien.gotoAndStop("die");
}
Symbol 28 MovieClip Frame 2
gotoAndPlay (1);
Symbol 31 MovieClip Frame 1
gotoAndStop(1 + random(3));
Symbol 35 MovieClip Frame 1
_parent.gotoAndStop(_root.lives + 1);
Symbol 35 MovieClip Frame 2
gotoAndPlay (1);
Symbol 52 MovieClip Frame 36
stop();
Symbol 52 MovieClip Frame 76
if (0 < _root.lives) {
_root.reset_alien();
gotoAndStop (36);
} else {
_root.gotoAndStop("end");
}
Symbol 54 MovieClip Frame 70
_root.gotoAndStop("newlevel");
Symbol 59 Button
on (release) {
gotoAndStop (5);
}
Symbol 61 Button
on (release) {
_root.gotoAndStop("scores");
}
Symbol 63 MovieClip Frame 1
if (_root.local == 1) {
_visible = 1;
} else {
_visible = 0;
}
Symbol 72 Button
on (release) {
if (((_root.scoredone == "done") and (_root.hiscore20 < _root.score)) and (_root.old_score != _root.score)) {
_root.old_score = _root.score;
_root.hiscore = _root.score;
if (_root.xname eq "Name Here") {
_root.xname = "etgames";
}
loadVariablesNum ((((((("/scores.php?action=sendscore&game=" + _root.game) + "&hiscore=") + _root.hiscore) + "&xname=") + _root.xname) + "&randx=") + random(100), 0, "POST");
}
_visible = 0;
}
Symbol 75 MovieClip Frame 1
if ((_root.hiscore20 < _root.score) and (_root.local == 1)) {
_visible = 1;
} else {
_visible = 0;
stop();
}
Symbol 117 MovieClip Frame 1
if (_root.local == 1) {
_visible = 1;
} else {
_visible = 0;
stop();
}
Symbol 117 MovieClip Frame 2
_root.game = "aliendash";
loadVariablesNum ((("/scores.php?action=getscores&game=" + _root.game) + "&randx=") + random(100000), 0, "POST");
Symbol 117 MovieClip Frame 5
if (_root.scoredone == "done") {
nothing = nothing;
} else {
gotoAndPlay (3);
}
Symbol 117 MovieClip Frame 7
stop();