Frame 1
men = new ContextMenu();
hi = new ContextMenuItem("Quality: High", function () {
_quality = "HIGH";
});
med = new ContextMenuItem("Quality: Medium", function () {
_quality = "MEDIUM";
});
lo = new ContextMenuItem("Quality: Low", function () {
_quality = "LOW";
});
sfb = new ContextMenuItem("SuperFlashBros.net", function () {
getURL ("http://www.superflashbros.net", "_blank");
}, true);
agms = new ContextMenuItem("ArmorGames.com", function () {
getURL ("http://www.armorgames.com", "_blank");
});
agm = new ContextMenuItem("Play More Games!", function () {
getURL ("http://www.armorgames.com", "_blank");
});
men.hideBuiltInItems();
men.customItems.push(hi);
men.customItems.push(med);
men.customItems.push(lo);
men.customItems.push(sfb);
men.customItems.push(agms);
men.customItems.push(agm);
_root.menu = men;
_root.tabEnabled = false;
stop();
Instance of Symbol 137 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.gotoAndStop("menu");
}
}
Frame 2
stop();
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Instance of Symbol 313 MovieClip "scoretable" in Frame 6
onClipEvent (load) {
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 1028;
__top10_send__.kid = "SPHQIT";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
_root.scoretable.gotoAndStop(2);
i = 1;
while (i < 9) {
_root.scoretable["n" + i].text = __top10_receive__["name" + i];
_root.scoretable["s" + i].text = Number(__top10_receive__["score" + i]);
i++;
}
} else {
_root.scoretable.gotoAndStop(3);
}
};
}
Symbol 21 MovieClip [boom] Frame 17
stop();
Symbol 31 MovieClip [Dino1] Frame 1
#initclip 10
Object.registerClass("Dino1", Dinosaur);
#endinitclip
Symbol 45 MovieClip [Dino4] Frame 1
#initclip 6
Object.registerClass("Dino4", Dinosaur);
#endinitclip
Symbol 55 MovieClip [Dino3] Frame 1
#initclip 7
Object.registerClass("Dino3", Dinosaur);
#endinitclip
Symbol 68 MovieClip [Dino2] Frame 1
#initclip 8
Object.registerClass("Dino2", Dinosaur);
#endinitclip
Symbol 80 MovieClip [Dino5] Frame 1
#initclip 9
Object.registerClass("Dino5", Dinosaur);
#endinitclip
Symbol 87 MovieClip [score500] Frame 11
this.removeMovieClip();
Symbol 102 MovieClip [score1000] Frame 11
this.removeMovieClip();
Symbol 108 MovieClip [score100] Frame 11
this.removeMovieClip();
Instance of Symbol 133 MovieClip in Symbol 137 MovieClip Frame 1
onClipEvent (load) {
this.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Instance of Symbol 136 MovieClip in Symbol 137 MovieClip Frame 1
onClipEvent (load) {
this.onRelease = function () {
getURL ("http://www.superflashbros.net", "_blank");
};
}
Symbol 330 MovieClip [__Packages.Ball] Frame 0
class Ball extends MovieClip
{
var velocity_vec, angularVelocity_float, radius_float, _height, mass_float, onEnterFrame, colCount, collSound_array, panSound, _parent, _x, _y, _rotation;
function Ball () {
super();
velocity_vec = new Vector(0, 0);
angularVelocity_float = (Math.random() - 0.5) * 10;
radius_float = _height / 2;
mass_float = radius_float * radius_float;
onEnterFrame = move;
colCount = 0;
collSound_array = [];
panSound = new Sound(this);
collSound_array[0] = new Sound(this);
collSound_array[0].attachSound("hit1");
collSound_array[1] = new Sound(this);
collSound_array[1].attachSound("hit2");
collSound_array[2] = new Sound(this);
collSound_array[2].attachSound("hit3");
collSound_array[3] = new Sound(this);
collSound_array[3].attachSound("hit4");
}
function get velocity() {
return(velocity_vec);
}
function get radius() {
return(radius_float);
}
function get mass() {
return(mass_float);
}
function set velocity(p_v) {
velocity_vec = p_v;
//return(velocity);
}
function move(Void) {
simulate(1);
var _local3 = false;
for (var _local4 in _parent) {
var _local2 = _parent[_local4];
if (_local2 != this) {
if (distanceTo(_local2) <= (radius_float + _local2.__get__radius())) {
edgeDetect(true);
_local2.edgeDetect(true);
simulate(-1.5);
_local2.simulate(-1.5);
collide(_local2);
simulate(1);
_local2.simulate(1);
_local3 = true;
}
}
}
if (_local3) {
var _local5 = Math.floor(Math.random() * 3.99);
collSound_array[_local5].start();
colCount++;
if (colCount > 3) {
explode();
}
} else if (!_local3) {
colCount = 0;
edgeDetect(false);
}
if (velocity_vec.getModulus() < 1) {
velocity_vec = new Vector(0, 0);
}
}
function explode(Void) {
var _local3 = _root.attachMovie("boom", "boom" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
var _local4 = _root.attachMovie("score1000", "score1000" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = _x;
_local4._y = _y;
_x = -200;
_y = -200;
velocity = (new Vector(0, 0));
onEnterFrame = null;
}
function edgeDetect(p_col) {
if ((_x - radius_float) <= 0) {
velocity.x = Math.sqrt(velocity.x * velocity.x);
if (!p_col) {
var _local2 = 0;
do {
if ((_x - radius_float) > 0) {
break;
}
simulate(1);
} while ((_local2++) <= 30);
} else {
simulate(1);
}
}
if ((_x + radius_float) >= Stage.width) {
velocity.x = -Math.sqrt(velocity.x * velocity.x);
if (!p_col) {
var _local2 = 0;
do {
if ((_x + radius_float) < Stage.width) {
break;
}
simulate(1);
} while ((_local2++) <= 30);
} else {
simulate(1);
}
}
if ((_y - radius_float) <= 0) {
velocity.y = Math.sqrt(velocity.y * velocity.y);
if (!p_col) {
var _local2 = 0;
do {
if ((_y - radius_float) > 0) {
break;
}
simulate(1);
} while ((_local2++) <= 30);
} else {
simulate(1);
}
}
if ((_y + radius_float) >= bottom) {
velocity.y = -Math.sqrt(velocity.y * velocity.y);
if (!p_col) {
var _local2 = 0;
do {
if ((_y + radius_float) < bottom) {
break;
}
simulate(1);
} while ((_local2++) <= 30);
} else {
simulate(1);
}
}
}
function collide(p_otherBall) {
var _local7 = new Vector(_x, _y);
var _local9 = new Vector(p_otherBall._x, p_otherBall._y);
var _local5 = _local7.subtract(_local9).getNormal();
var _local12 = velocity.dot(_local5);
var _local11 = p_otherBall.__get__velocity().dot(_local5);
var _local10 = (2 * (_local12 - _local11)) / (mass + p_otherBall.__get__mass());
velocity = (velocity.subtract(_local5.multiplyBy(p_otherBall.__get__mass() * _local10)).multiplyBy(0.85));
p_otherBall.__set__velocity(p_otherBall.__get__velocity().add(_local5.multiplyBy(mass * _local10)).multiplyBy(0.85));
var _local8 = _local7.subtract(_local7.subtract(_local9).multiplyBy(0.5));
var _local4;
var _local6;
if ((this instanceof Dinosaur) || (p_otherBall instanceof Dinosaur)) {
if ((this instanceof Dinosaur) && (p_otherBall instanceof Dinosaur)) {
_local4 = _root.attachMovie("score1000", "score1000" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6 = 1000;
} else {
_local4 = _root.attachMovie("score500", "score500" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6 = 500;
}
} else {
_local4 = _root.attachMovie("score100", "score100" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6 = 100;
}
_root.score_txt.text = Number(_root.score_txt.text) + _local6;
_local4._x = _local8.x;
_local4._y = _local8.y;
_local4._xscale = (_local4._yscale = 50);
}
function distanceTo(p_otherBall) {
var _local3 = _x - p_otherBall._x;
var _local2 = _y - p_otherBall._y;
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
}
function angleTo(p_otherBall) {
var _local3 = _x - p_otherBall._x;
var _local2 = _y - p_otherBall._y;
return(Math.atan2(-_local3, _local2));
}
function simulate(p_direction) {
velocity = (velocity.multiplyBy(0.992));
_x = _x + (velocity.x * (p_direction || 1));
_y = _y + (velocity.y * (p_direction || 1));
_rotation = _rotation + (angularVelocity_float * (p_direction || 1));
}
static var bottom = 350;
}
Symbol 331 MovieClip [__Packages.Vector] Frame 0
class Vector
{
var x, y;
function Vector (p_x, p_y) {
x = p_x;
y = p_y;
}
function multiplyBy(p_n) {
return(new Vector(x * p_n, y * p_n));
}
function add(p_vec) {
return(new Vector(x + p_vec.x, y + p_vec.y));
}
function subtract(p_vec) {
return(new Vector(x - p_vec.x, y - p_vec.y));
}
function dot(p_vec) {
return((x * p_vec.x) + (y * p_vec.y));
}
function getModulus(Void) {
return(Math.sqrt((x * x) + (y * y)));
}
function getNormal(Void) {
return(multiplyBy(1 / getModulus()));
}
}
Symbol 332 MovieClip [__Packages.Dinosaur] Frame 0
class Dinosaur extends Ball
{
var stop, _xscale, _yscale, radius_float, _height, mass_float, onEnterFrame, onPress, onRelease, _x, _parent, __get__velocity, _y, onMouseMove, move, manager, __set__velocity;
function Dinosaur (Void) {
super();
stop();
_xscale = (_yscale = 70);
radius_float = _height / 2;
mass_float = (radius_float * radius_float) * 2.5;
onEnterFrame = null;
}
function setup(Void) {
onPress = setDrag;
onRelease = unsetDrag;
}
function drag(Void) {
__get__velocity().x = _parent._xmouse - _x;
__get__velocity().y = _parent._ymouse - _y;
if (__get__velocity().x > 15) {
__get__velocity().x = 15;
}
if (__get__velocity().x < -15) {
__get__velocity().x = -15;
}
if (__get__velocity().y > 15) {
__get__velocity().y = 15;
}
if (__get__velocity().y < -15) {
__get__velocity().y = -15;
}
_x = _parent._xmouse;
_y = _parent._ymouse;
if ((_y + radius_float) < Ball.bottom) {
onMouseMove = null;
onPress = null;
onRelease = null;
onEnterFrame = move;
manager.startCheck();
}
updateAfterEvent();
}
function resetPosition(Void) {
_x = Stage.width / 2;
_y = 500;
onMouseMove = null;
}
function setDrag(Void) {
onMouseMove = drag;
onEnterFrame = null;
}
function unsetDrag(Void) {
onMouseMove = null;
onEnterFrame = simulate;
}
function simulate(p_direction) {
super.simulate(p_direction);
if ((_y + radius_float) < Ball.bottom) {
onPress = null;
onRelease = null;
onEnterFrame = move;
if (manager.onEnterFrame != manager.moveDino) {
manager.onEnterFrame = manager.checkStopped;
}
} else if (((_y > Stage.height) || (_x < 0)) || (_x > Stage.width)) {
resetPosition();
__set__velocity(new Vector(0, 0));
}
}
}
Symbol 333 MovieClip [__Packages.DinosaurManager] Frame 0
class DinosaurManager extends MovieClip
{
var current, clip, currentDino, onEnterFrame;
function DinosaurManager (Void) {
super();
current = 0;
clip = _root.solarSystem;
attachNextDino();
}
function attachNextDino(Void) {
if (current >= 5) {
_root.score = Number(_root.score_txt.text);
_root.gotoAndStop("score");
} else {
current++;
_root.text_mc.gotoAndPlay(1);
_root.text_mc.txt.gotoAndStop(current);
currentDino = clip.attachMovie("Dino" + current, "Dino" + current, clip.getNextHighestDepth());
currentDino._x = Stage.width / 2;
currentDino._y = Stage.height + 100;
_root["h" + (6 - current)]._visible = false;
onEnterFrame = moveDino;
currentDino.manager = this;
}
}
function startCheck(Void) {
onEnterFrame = checkStopped;
}
function checkStopped(Void) {
var _local2 = true;
for (var _local3 in clip) {
if (clip[_local3].velocity.getModulus() > 0) {
_local2 = false;
}
}
if (_local2 && (currentDino.onRelease == null)) {
attachNextDino();
}
}
function moveDino(Void) {
trace("Moving");
_root.text_mc.txt.gotoAndStop(current);
currentDino._y = currentDino._y - ((currentDino._y - 500) / 20);
if (currentDino._y < 550) {
currentDino.setup();
}
if (currentDino._y < 502) {
currentDino.setup();
onEnterFrame = null;
}
}
}
Symbol 334 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 163 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay("tut");
}
Symbol 168 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 173 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 178 Button
on (release) {
getURL ("http://www.superflashbros.net", "_blank");
}
Symbol 186 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 201 MovieClip [Symbol 14] Frame 1
#initclip 20
Object.registerClass("Symbol 14", Ball);
#endinitclip
Symbol 203 MovieClip [Symbol 13] Frame 1
#initclip 11
Object.registerClass("Symbol 13", Ball);
#endinitclip
Symbol 208 MovieClip [Symbol 16] Frame 1
#initclip 12
Object.registerClass("Symbol 16", Ball);
#endinitclip
Symbol 210 MovieClip [Symbol 17] Frame 1
#initclip 13
Object.registerClass("Symbol 17", Ball);
#endinitclip
Symbol 212 MovieClip [Symbol 18] Frame 1
#initclip 14
Object.registerClass("Symbol 18", Ball);
#endinitclip
Symbol 214 MovieClip [Symbol 19] Frame 1
#initclip 15
Object.registerClass("Symbol 19", Ball);
#endinitclip
Symbol 216 MovieClip [Symbol 11] Frame 1
#initclip 16
Object.registerClass("Symbol 11", Ball);
#endinitclip
Symbol 223 MovieClip [Symbol 10] Frame 1
#initclip 17
Object.registerClass("Symbol 10", Ball);
#endinitclip
Symbol 225 MovieClip [Symbol 12] Frame 1
#initclip 18
Object.registerClass("Symbol 12", Ball);
#endinitclip
Symbol 228 MovieClip [DinosaurManager] Frame 1
#initclip 19
Object.registerClass("DinosaurManager", DinosaurManager);
#endinitclip
Symbol 258 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 55
stop();
Symbol 289 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 293 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 313 MovieClip Frame 1
stop();
Symbol 318 Button
on (release) {
getURL ("http://armorbot.com/mytable/?id=1028", "_blank");
}
Symbol 329 MovieClip Frame 1
stop();
Instance of Symbol 327 MovieClip in Symbol 329 MovieClip Frame 1
onClipEvent (load) {
_root.score_txt.text = _root.score;
send_score = new LoadVars();
send_score.x = ab20.encodeNum(Number(_root.score));
send_score.c = 1028;
send_score.v = "SPHQIT";
send_score.onLoad = function (success) {
if (success) {
_root.scoretable.__top10_send__.sendAndLoad(_root.scoretable.__top10_url_1__ + _root.scoretable.__top10_url_2__, _root.scoretable.__top10_receive__, "POST");
} else {
_root.scoretable.gotoAndStop(3);
}
};
this.stop();
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_root.scoretable.gotoAndStop(1);
this.send_score.z = _parent.name_txt.text;
this.send_score.sendAndLoad("http://armorbot.com/s_b", send_score, "POST");
this._parent.gotoAndStop(2);
};
}