Frame 1
function onEnterFrame() {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndStop (5);
_root.onEnterFrame = null;
}
}
function openCC() {
getURL ("http://www.crossconscious.com", "_blank");
}
function openAG() {
getURL ("http://www.armorgames.com", "_blank");
}
stop();
MovieClip.prototype.tabEnabled = false;
var myWebContextMenu = new ContextMenu();
myWebContextMenu.hideBuiltInItems();
myWebContextMenu.customItems.push(new ContextMenuItem("CROSSCONSCIOUS", openCC));
myWebContextMenu.customItems.push(new ContextMenuItem("ARMORGAMES", openAG));
this.menu = myWebContextMenu;
Instance of Symbol 7 MovieClip in Frame 1
onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
this.gotoAndStop(Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100));
}
Frame 5
var music = new Sound();
music.attachSound("IntroMusic");
var sound = new Sound();
sound.attachSound("MenuSound");
sequence.screens = [{screen:"Sponsor", fx:[new fxFADEIN(5)]}, {screen:"Crossconscious", fx:[new fxFADEIN(5)]}, {screen:"MainMenu", fx:[new fxFADEIN(5)]}, {screen:"HighScores", fx:[new fxSLIDE(30, 0, 512)]}, {screen:"Instructions", fx:[new fxSLIDE(50, 512, 0)]}, {screen:"LevelSelect", fx:[new fxSLIDE(30, -512, 0)]}, {screen:"Game", fx:[new fxSLIDE(30, 0, -512)]}];
sequence.background = "Backgrounds";
sequence.background.gotoScreen("Blank");
sequence.gotoScreen("Sponsor");
Symbol 295 MovieClip [__Packages.ScreenContainer] Frame 0
class ScreenContainer extends MovieClip
{
var onEnterFrame, _background, attachMovie, previousScreen, activeScreen, screenName, currentEffects, defaultEffects;
function ScreenContainer () {
super();
onEnterFrame = update;
}
function set background(value) {
_background = attachMovie(value, "background", 0);
//return(background);
}
function get background() {
return(_background);
}
function showScreen(screenName, effects, init) {
if (previousScreen) {
previousScreen.removeMovieClip();
delete previousScreen;
}
if (activeScreen) {
previousScreen.deActivate();
previousScreen = activeScreen;
previousScreen.swapDepths(1);
}
if (init == null) {
init = {};
}
init.container = this;
activeScreen = attachMovie(screenName, screenName, 2, init);
this.screenName = screenName;
if (!effects) {
currentEffects = [];
var _local2 = 0;
while (_local2 < defaultEffects.length) {
currentEffects[_local2] = defaultEffects[_local2];
_local2++;
}
} else {
currentEffects = [];
var _local2 = 0;
while (_local2 < effects.length) {
currentEffects[_local2] = effects[_local2];
_local2++;
}
}
if (currentEffects) {
var _local2 = 0;
while (_local2 < currentEffects.length) {
currentEffects[_local2].activate(this, activeScreen, previousScreen);
_local2++;
}
} else {
previousScreen.removeMovieClip();
delete previousScreen;
activeScreen.activate();
}
return(activeScreen);
}
function update() {
if (currentEffects) {
previousScreen.update();
var _local3 = true;
var _local2 = 0;
while (_local2 < currentEffects.length) {
if (!currentEffects[_local2].update()) {
_local3 = false;
break;
}
if (!currentEffects[_local2].finished) {
_local3 = false;
} else {
currentEffects[_local2].reset();
currentEffects.splice(_local2, 1);
_local2--;
}
_local2++;
}
if (_local3) {
delete currentEffects;
previousScreen.removeMovieClip();
delete previousScreen;
activeScreen.activate();
}
}
activeScreen.update();
}
}
Symbol 296 MovieClip [__Packages.ScreenSequence] Frame 0
class ScreenSequence extends ScreenContainer
{
var _screenIndex, showScreen, _screens, index;
function ScreenSequence () {
super();
screens = ([]);
_screenIndex = null;
}
function set screenIndex(value) {
if ((value < screens.length) && (value >= 0)) {
_screenIndex = value;
var _local2 = screens[_screenIndex];
showScreen(_local2.screen, _local2.fx, _local2);
}
//return(screenIndex);
}
function get screenIndex() {
return(_screenIndex);
}
function set screens(value) {
_screens = value;
buildIndex();
//return(screens);
}
function get screens() {
return(_screens);
}
function nextScreen() {
screenIndex = ((screenIndex+1));
return(screenIndex);
}
function previousScreen() {
screenIndex = ((screenIndex-1));
return(screenIndex);
}
function buildIndex() {
index = {};
var _local2 = 0;
while (_local2 < _screens.length) {
if (_screens[_local2].name != null) {
index[_screens[_local2].name] = _local2;
} else {
index[_screens[_local2].screen] = _local2;
}
_local2++;
}
}
function gotoScreen(id) {
if (typeof(id) == "number") {
screenIndex = (Number(id));
} else {
screenIndex = (index[id]);
}
}
}
Symbol 297 MovieClip [__Packages.Game] Frame 0
class Game extends ScreenSequence
{
var music, so, saveGame, score, stop, __set__background, maskClip_2, maskClip_1, defaultEffects, __set__screens, gotoScreen, container, __set__screenIndex, __get__screenIndex, screenIndex, _parent;
function Game () {
super();
music = new Sound(this);
music.attachSound("Music");
_root.music.stop();
_root.sound.start();
music.start(0, 100000000);
so = SharedObject.getLocal("ES_SaveGames");
saveGame = _root.currentGame;
score = Number(saveGame.score) || 0;
if (_root.freePlay) {
score = 0;
}
stop();
__set__background("Backgrounds");
maskClip_1._visible = (maskClip_2._visible = false);
var _local8 = [new fxDELAY(60), new fxSLIDE(30, -512, 0)];
defaultEffects = [new fxSLIDE(30, -512, 0)];
var _local6 = defaultEffects;
var _local7 = [new fxDELAY(60), new fxSLIDE(30, 512, 0)];
var _local4 = [new fxDELAY(60), new fxSLIDE(30, 0, 512)];
var _local5 = [new fxDELAY(60), new fxSLIDE(30, 0, -512)];
__set__screens([{screen:"MainEngine", number:1, bg:1, floors:1, walls:1, bonus:false, fx:_local8}, {screen:"MainEngine", number:2, bg:2, floors:2, walls:2, bonus:false, fx:_local4}, {screen:"MainEngine", number:3, bg:3, floors:3, walls:3, bonus:false, fx:_local7}, {screen:"MainEngine", number:4, bg:1, floors:4, walls:4, bonus:false, fx:_local7}, {screen:"MainEngine", number:5, bg:2, floors:5, walls:5, bonus:true, fx:_local5}, {screen:"MainEngine", number:6, bg:3, floors:2, walls:1, bonus:true, fx:_local6}, {screen:"MainEngine", number:7, bg:1, floors:3, walls:2, bonus:true, fx:_local7}, {screen:"MainEngine", number:8, bg:2, floors:4, walls:3, bonus:true, fx:_local4}, {screen:"MainEngine", number:9, bg:3, floors:5, walls:4, bonus:true, fx:_local5}, {screen:"MainEngine", number:10, bg:1, floors:1, walls:6, bonus:true, fx:_local7}, {screen:"MainEngine", number:11, bg:2, floors:3, walls:1, bonus:true, fx:_local4}, {screen:"MainEngine", number:12, bg:3, floors:4, walls:2, bonus:true, fx:_local5}, {screen:"MainEngine", number:13, bg:1, floors:5, walls:3, bonus:true, fx:_local6}, {screen:"MainEngine", number:14, bg:2, floors:1, walls:5, bonus:true, fx:_local6}, {screen:"MainEngine", number:15, bg:3, floors:2, walls:6, bonus:true, fx:_local5}, {screen:"MainEngine", number:16, bg:1, floors:4, walls:1, bonus:true, fx:_local4}, {screen:"MainEngine", number:17, bg:2, floors:5, walls:2, bonus:true, fx:_local7}, {screen:"MainEngine", number:18, bg:3, floors:1, walls:4, bonus:true, fx:_local6}, {screen:"MainEngine", number:19, bg:1, floors:2, walls:5, bonus:true, fx:_local5}, {screen:"MainEngine", number:20, bg:2, floors:3, walls:6, bonus:true, fx:_local4}, {screen:"MainEngine", number:21, bg:3, floors:3, walls:1, bonus:true, fx:_local6}, {screen:"MainEngine", number:22, bg:1, floors:3, walls:3, bonus:true, fx:_local6}, {screen:"MainEngine", number:23, bg:2, floors:3, walls:4, bonus:true, fx:_local7}, {screen:"MainEngine", number:24, bg:4, floors:3, walls:5, bonus:true, fx:_local5}, {screen:"Congratulations", fx:_local4}]);
if (_root.freePlay) {
gotoScreen(_root.freePlayLevel);
} else {
gotoScreen(saveGame.level);
}
}
function nextLevel() {
if (_root.freePlay) {
music.stop();
_root.music.start(0, 100000);
container.gotoScreen("LevelSelect");
} else {
saveGame.score = score;
__set__screenIndex((__get__screenIndex()+1));
saveGame.level = screenIndex;
if (__get__screenIndex() == 24) {
saveGame.level = 0;
saveGame.score = 0;
}
so.data["game_" + saveGame.id] = saveGame;
if (so.data.unlocked == undefined) {
so.data.unlocked = screenIndex;
} else {
so.data.unlocked = Math.max(so.data.unlocked, __get__screenIndex());
}
so.flush();
}
}
function activate() {
_parent.background.gotoScreen("Blank");
}
}
Symbol 298 MovieClip [__Packages.fxDELAY] Frame 0
class fxDELAY
{
var frames, finished, container, active, previous, currentFrame;
function fxDELAY (frames) {
this.frames = frames;
finished = false;
}
function activate(container, active, previous) {
this.container = container;
this.active = active;
this.previous = previous;
currentFrame = 0;
}
function update() {
currentFrame++;
if (currentFrame > frames) {
finished = true;
return(true);
}
return(false);
}
function reset() {
active = null;
previous = null;
finished = false;
currentFrame = 0;
}
}
Symbol 299 MovieClip [__Packages.fxSLIDE] Frame 0
class fxSLIDE
{
var frames, finished, x, y, container, active, previous, currentFrame, xDest, yDest, xSpeed, ySpeed;
function fxSLIDE (frames, x, y) {
this.frames = frames;
finished = false;
this.x = x;
this.y = y;
}
function activate(container, active, previous) {
this.container = container;
this.active = active;
this.previous = previous;
finished = false;
currentFrame = 0;
xDest = this.active._x;
yDest = this.active._y;
this.active._x = this.active._x - x;
this.active._y = this.active._y - y;
xSpeed = (xDest - this.active._x) / frames;
ySpeed = (yDest - this.active._y) / frames;
}
function update() {
active._x = active._x + xSpeed;
active._y = active._y + ySpeed;
previous._x = previous._x + xSpeed;
previous._y = previous._y + ySpeed;
currentFrame++;
if (currentFrame >= frames) {
active._x = xDest;
active._y = yDest;
finished = true;
}
return(true);
}
function reset() {
active = null;
previous = null;
finished = false;
}
}
Symbol 300 MovieClip [__Packages.ScoreSender] Frame 0
class ScoreSender
{
function ScoreSender () {
}
static function __rankz_send__(par1, par2, par3, par4, par5) {
var _local1 = new LoadVars();
var par228 = new LoadVars();
_local1.flashkey = par2;
_local1.SU0249 = par1;
_local1.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
_local1.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
_local1.flashkey = _local1.flashkey.split("=").join("");
_local1.SU0249 = _local1.SU0249.split("=").join("");
par228.onLoad = function (success) {
par5();
if (success) {
}
};
_local1.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
static function send(level, name, score, onComplete) {
var _local1;
var _local2;
switch (level) {
case 0 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI0M2olZSVhJW4lcw==", "SW5hUlBBeUQ=", _local1, _local2, onComplete);
break;
case 1 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI0NGolZSVhJW4lcw==", "QmZUTnpmdHg=", _local1, _local2, onComplete);
break;
case 2 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI0NWolZSVhJW4lcw==", "VUp5TEtxRmI=", _local1, _local2, onComplete);
break;
case 3 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI0NmolZSVhJW4lcw==", "dkFqQkdib1k=", _local1, _local2, onComplete);
break;
case 4 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI0N2olZSVhJW4lcw==", "dWtJQ1J2dms=", _local1, _local2, onComplete);
break;
case 5 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI0OGolZSVhJW4lcw==", "dFpBQUptd0Q=", _local1, _local2, onComplete);
break;
case 6 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI0OWolZSVhJW4lcw==", "Z1BKdW9kWU0=", _local1, _local2, onComplete);
break;
case 7 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI1MGolZSVhJW4lcw==", "ZmRzckRQQko=", _local1, _local2, onComplete);
break;
case 8 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI1MWolZSVhJW4lcw==", "WEZ2bkVFUEU=", _local1, _local2, onComplete);
break;
case 9 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI1MmolZSVhJW4lcw==", "dldKVWZjd0M=", _local1, _local2, onComplete);
break;
case 10 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI1M2olZSVhJW4lcw==", "SmdNbFpkaWg=", _local1, _local2, onComplete);
break;
case 11 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI1NGolZSVhJW4lcw==", "ak1jQlNiVnQ=", _local1, _local2, onComplete);
break;
case 12 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI1NWolZSVhJW4lcw==", "REFFcERSTkw=", _local1, _local2, onComplete);
break;
case 13 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI1NmolZSVhJW4lcw==", "R1ZCREVLaEM=", _local1, _local2, onComplete);
break;
case 14 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI1N2olZSVhJW4lcw==", "WmpiaHR3dGo=", _local1, _local2, onComplete);
break;
case 15 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI1OGolZSVhJW4lcw==", "YnN3UWhOd0I=", _local1, _local2, onComplete);
break;
case 16 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI1OWolZSVhJW4lcw==", "WXRBaEJzckY=", _local1, _local2, onComplete);
break;
case 17 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI2MWolZSVhJW4lcw==", "a250V0NYdEI=", _local1, _local2, onComplete);
break;
case 18 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI2MGolZSVhJW4lcw==", "SERramFXQks=", _local1, _local2, onComplete);
break;
case 19 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI2MmolZSVhJW4lcw==", "ZHRUZ2NLRFg=", _local1, _local2, onComplete);
break;
case 20 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI2M2olZSVhJW4lcw==", "aWlWWklWRGM=", _local1, _local2, onComplete);
break;
case 21 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI2NGolZSVhJW4lcw==", "SkNjdmltS2w=", _local1, _local2, onComplete);
break;
case 22 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI2NWolZSVhJW4lcw==", "UFhzRUpZRmo=", _local1, _local2, onComplete);
break;
case 23 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI2NmolZSVhJW4lcw==", "cGJiUWZicnI=", _local1, _local2, onComplete);
break;
case 24 :
_local1 = name;
_local2 = score;
__rankz_send__("MjI2N2olZSVhJW4lcw==", "RldPZHFDVUI=", _local1, _local2, onComplete);
}
}
}
Symbol 301 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 302 MovieClip [__Packages.LevelLine] Frame 0
class LevelLine extends MovieClip
{
var so, stop, level, txtLevel, gotoAndStop, mcPlay, _parent;
function LevelLine () {
super();
so = SharedObject.getLocal("ES_SaveGames");
stop();
if (so.data.unlocked == undefined) {
so.data.unlocked = 0;
so.flush();
}
}
function setup(level) {
this.level = level;
txtLevel.text = "Level " + (level + 1);
if (so.data.unlocked >= level) {
gotoAndStop("unlocked");
mcPlay.onRelease = mx.utils.Delegate.create(this, onPlay);
}
}
function onPlay() {
_root.freePlayLevel = level;
_parent.container.gotoScreen("Game");
}
}
Symbol 303 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 304 MovieClip [__Packages.SavedGame] Frame 0
class SavedGame extends MovieClip
{
var so, id, _name, gotoAndStop, mcButtonLoad, mcButtonDelete, txtName, txtLevel, txtScore, stop, mcButtonNew, _parent, _x;
function SavedGame () {
super();
so = SharedObject.getLocal("ES_SaveGames");
id = parseInt(_name.split("_")[1]);
if (so.data["game_" + id] != null) {
gotoAndStop("data");
mcButtonLoad.onRelease = mx.utils.Delegate.create(this, loadGame);
mcButtonDelete.onRelease = mx.utils.Delegate.create(this, deleteGame);
txtName.text = so.data["game_" + id].name;
txtLevel.text = "Level " + (so.data["game_" + id].level + 1);
txtScore.text = "Score : " + so.data["game_" + id].score;
} else {
stop();
mcButtonNew.onRelease = mx.utils.Delegate.create(this, newGame);
}
}
function newGame() {
_root.sound.start();
_parent.mcPopup._visible = true;
_parent.mcPopup.mcEnterName._x = _x;
var _local3 = _parent.mcPopup.mcEnterName.txtInput;
_local3.maxChars = 10;
Selection.setFocus(_local3);
_parent.mcPopup.mcEnterName.mcOk.onRelease = mx.utils.Delegate.create(this, okRelease);
}
function okRelease() {
if (_parent.mcPopup.mcEnterName.txtInput.text != "") {
_root.sound.start();
_root.currentGame = {name:_parent.mcPopup.mcEnterName.txtInput.text, level:0, score:0, id:id};
so.data["game_" + id] = _root.currentGame;
so.flush();
_parent.container.gotoScreen("Instructions");
}
}
function loadGame() {
_root.currentGame = so.data["game_" + id];
_parent.container.gotoScreen("Game");
}
function deleteGame() {
_root.sound.start();
gotoAndStop("new");
so.data["game_" + id] = null;
so.flush();
stop();
mcButtonNew.onRelease = mx.utils.Delegate.create(this, newGame);
}
}
Symbol 305 MovieClip [__Packages.Egg] Frame 0
class Egg extends MovieClip
{
var color, num, colors, onEnterFrame, offset, hatching, onPress, engine, gotoAndPlay, bonus, _x, _y, hasHatched, y, x;
function Egg () {
super();
if (color == 5) {
num = 5;
colors.num.text = num;
onEnterFrame = function () {
this.cnt--;
if (this.cnt <= 0) {
this.cnt = 31;
this.num--;
this.colors.num.text = this.num;
if (this.num < 0) {
this.engine.goldenEgg = null;
this.engine.map[this.x][this.y].egg = null;
this.bonus.removeMovieClip();
this.removeMovieClip();
}
}
};
}
offset = 0;
hatching = false;
colors.gotoAndStop(color);
}
function activate() {
onPress = function () {
if (this.engine.status == "main") {
this.engine.selectedEgg = this;
}
};
}
function hatch() {
onPress = null;
delete onPress;
engine.playHatchSound();
hatching = true;
gotoAndPlay("hatch");
onEnterFrame = null;
if (color == 5) {
engine.bonuses++;
bonus = engine.field.tops.attachMovie("Bonus", "bonus_" + engine.field.tops.getNextHighestDepth(), engine.field.tops.getNextHighestDepth());
bonus._x = _x + 16;
bonus._y = _y - 24;
}
}
function hatched() {
if (color == 5) {
onEnterFrame = function () {
if (this.delay > 0) {
this.delay--;
} else {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.bonus.removeMovieClip();
this.onEnterFrame = null;
this.engine.map[this.x][this.y].egg = null;
this.engine.goldenEgg = null;
this.removeMovieClip();
}
}
};
} else {
engine.eggs--;
hasHatched = true;
hatching = false;
hatchNeighbours(1, 0);
hatchNeighbours(-1, 0);
hatchNeighbours(0, 1);
hatchNeighbours(0, -1);
}
}
function hatchNeighbours(xd, yd) {
var _local2 = engine.map[x + xd][y + yd].egg;
if (((_local2 && (!_local2.hatching)) && (!_local2.hasHatched)) && (((_local2.color == color) || (_local2.color == 6)) || (color == 6))) {
_local2.hatch();
}
}
var delay = 20;
var cnt = 31;
}
Symbol 306 MovieClip [__Packages.Machine] Frame 0
class Machine extends MovieClip
{
var select, armed, engine, snd, gotoAndPlay, y, x, stop, onEnterFrame;
function Machine () {
super();
select._visible = false;
armed = true;
}
function onRelease() {
if (armed) {
if (engine.selectedMachine == this) {
if (engine.status == "main") {
snd = new Sound(this);
snd.attachSound("MachineSound");
snd.start();
select._visible = false;
engine.selectedMachine = null;
engine.status = "hatch";
gotoAndPlay("remove");
armed = false;
engine.checkCount++;
}
} else {
select._visible = true;
engine.selectedMachine = this;
}
}
}
function remove() {
engine.map[x][y].machine = null;
detonate(1, 0);
detonate(-1, 0);
detonate(0, 1);
detonate(0, -1);
stop();
onEnterFrame = function () {
this._alpha = this._alpha - 3;
if (this._alpha <= 0) {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
}
function detonate(xd, yd) {
var _local2 = engine.map[x + xd][y + yd].egg;
if (_local2) {
hatch(_local2);
}
}
function checkEgg(egg) {
if (egg.checked == engine.checkCount) {
return(0);
}
egg.checked = engine.checkCount;
var _local2 = 1;
_local2 = _local2 + checkEgg2(egg, 1, 0);
_local2 = _local2 + checkEgg2(egg, -1, 0);
_local2 = _local2 + checkEgg2(egg, 0, 1);
_local2 = _local2 + checkEgg2(egg, 0, -1);
return(_local2);
}
function checkEgg2(egg, xd, yd) {
var _local2 = engine.map[egg.x + xd][egg.y + yd].egg;
if (_local2 && (_local2.checked != engine.checkCount)) {
if (_local2.color == egg.color) {
return(checkEgg(_local2));
}
}
return(0);
}
function hatch(egg) {
if (!egg.hatching) {
egg.hatch();
}
}
function hatch2(egg, xd, yd) {
var _local2 = engine.map[egg.x + xd][egg.y + yd].egg;
if (_local2 && (_local2.color == egg.color)) {
hatch(_local2);
}
}
}
Symbol 307 MovieClip [__Packages.MainEngine] Frame 0
class MainEngine extends MovieClip
{
var hatchSound, slideSound, bonuses, bg, container, setMask, txtLevel, txtEggs, txtTurns, txtTime, txtScore, speedTable, checkCount, active, levelData, number, map, field, createEmptyMovieClip, getNextHighestDepth, walls, floors, status, pauseMenu, attachMovie, startMenu, onMouseUp, bonus, goldenEgg, selectedEgg, _xmouse, _ymouse, yDir, xDir;
function MainEngine () {
super();
hatchSound = new Sound(this);
hatchSound.attachSound("Hatch");
slideSound = new Sound(this);
slideSound.attachSound("Slide");
sndStarted = 0;
bonuses = 0;
if ((bg != null) && (bg != "")) {
container.background.gotoScreen(bg);
}
if (_root.firstTaken == true) {
_root.firstTaken = false;
setMask(container.maskClip_2);
} else {
_root.firstTaken = true;
setMask(container.maskClip_1);
}
txtLevel = container.txtLevel;
txtEggs = container.txtEggs;
txtTurns = container.txtTurns;
txtTime = container.txtTime;
txtScore = container.txtScore;
txtScore.text = container.score;
_eggs = parseInt(txtEggs.text);
spawnTime = random(500) + 1000;
speedTable = [1, 1, 1, 2, 2, 3, 4, 5, 6, 7, 8, 10, 14, 16];
checkCount = 0;
active = false;
levelData = LevelData.getData(number);
map = [];
field = createEmptyMovieClip("field", getNextHighestDepth());
field.createEmptyMovieClip("floor", field.getNextHighestDepth());
field.createEmptyMovieClip("walls", field.getNextHighestDepth());
field.createEmptyMovieClip("eggs", field.getNextHighestDepth());
field.eggs._visible = false;
field.createEmptyMovieClip("tops", field.getNextHighestDepth());
field._x = 32;
field._y = 32;
field.walls.cacheAsBitmap = true;
field.floor.cacheAsBitmap = true;
field.tops.cacheAsBitmap = true;
var _local9 = 0;
while (_local9 < levelData.length) {
var _local10 = 0;
while (_local10 < levelData[_local9].length) {
if (map[_local10] == null) {
map[_local10] = [];
}
if (levelData[_local9][_local10] == 9) {
map[_local10][_local9] = null;
var _local4 = field.walls.attachMovie("Wall", "wall_" + field.walls.getNextHighestDepth(), field.walls.getNextHighestDepth());
if ((levelData[_local9 + 1][_local10] == 0) || (levelData[_local9 + 1][_local10] == null)) {
_local4.shadow._visible = false;
}
_local4.gotoAndStop(walls);
_local4._x = _local10 * 32;
_local4._y = _local9 * 32;
var _local7 = field.tops.attachMovie("Top", "top_" + field.tops.getNextHighestDepth(), field.tops.getNextHighestDepth());
_local7.gotoAndStop(walls);
_local7._x = _local10 * 32;
_local7._y = _local9 * 32;
} else if (levelData[_local9][_local10] > 0) {
map[_local10][_local9] = {x:_local10, y:_local9, egg:null, machine:null};
var _local8 = field.floor.attachMovie("Floor", "floor_" + field.floor.getNextHighestDepth(), field.floor.getNextHighestDepth());
_local8.gotoAndStop(floors);
_local8._x = _local10 * 32;
_local8._y = _local9 * 32;
if (levelData[_local9][_local10] == 8) {
var _local6 = field.eggs.attachMovie("Machine", "machine_" + field.eggs.getNextHighestDepth(), (_local9 * 100) + _local10, {color:levelData[_local9][_local10], x:_local10, y:_local9});
_local6._x = _local10 * 32;
_local6._y = _local9 * 32;
map[_local10][_local9].machine = _local6;
_local6.engine = this;
} else if (levelData[_local9][_local10] > 1) {
var _local5 = field.eggs.attachMovie("Egg", "egg_" + field.eggs.getNextHighestDepth(), (_local9 * 100) + _local10, {color:levelData[_local9][_local10] - 1, x:_local10, y:_local9});
eggs++;
_local5._x = _local10 * 32;
_local5._y = _local9 * 32;
map[_local10][_local9].egg = _local5;
_local5.engine = this;
}
}
_local10++;
}
_local9++;
}
_eggs = eggs;
txtEggs.text = _eggs.toString();
levelData = null;
status = "main";
pauseMenu = attachMovie("PauseMenu", "PauseMenu", getNextHighestDepth());
pauseMenu._visible = false;
startMenu = attachMovie("LevelBeginScreen", "LevelBeginScreen", getNextHighestDepth());
startMenu.txtLevel.text = "Level " + number.toString();
}
function set turns(value) {
txtTurns.text = value.toString();
_turns = value;
//return(turns);
}
function get turns() {
return(_turns);
}
function playHatchSound() {
if (sndStarted > 4) {
sndStarted = 0;
hatchSound.start();
}
}
function beginLevel() {
active = true;
beginTime = getTimer();
pauseBeginTime = getTimer();
pause();
}
function activate() {
txtTime.text = "00:00:00";
txtLevel.text = number.toString();
turns = (0);
var _local3 = 0;
while (_local3 < map.length) {
var _local2 = 0;
while (_local2 < map[_local3].length) {
map[_local3][_local2].egg.activate();
_local2++;
}
_local3++;
}
onMouseUp = function () {
if (!this.selectedMachine.hitTest(this._xmouse, this._ymouse, false)) {
this.selectedMachine.select._visible = false;
this.selectedMachine = null;
}
if (this.status == "main") {
this.selectedEgg = null;
}
};
}
function addZeroes(val, amount) {
var _local2 = val.toString();
var _local1 = 0;
while (_local1 < amount) {
_local2 = "0" + _local2;
_local1++;
}
return(_local2.substr(_local2.length - amount, amount));
}
function update() {
sndStarted++;
if (Key.isDown(80)) {
if (!pausePressed) {
pausePressed = true;
pause();
}
} else {
pausePressed = false;
}
if (paused) {
return(undefined);
}
delay--;
if (delay <= 0) {
delay = 10;
if (_eggs < eggs) {
_eggs++;
txtEggs.text = _eggs.toString();
}
if (_eggs > eggs) {
_eggs--;
txtEggs.text = _eggs.toString();
}
}
if (active) {
var _local2 = Math.floor(((getTimer() - beginTime) - pausedTime) / 1000);
var _local3 = _local2 % 60;
var _local4 = Math.floor(_local2 / 60) % 60;
var _local5 = Math.floor(Math.floor(_local2 / 60) / 60);
txtTime.text = (((addZeroes(_local5, 2) + ":") + addZeroes(_local4, 2)) + ":") + addZeroes(_local3, 2);
this["update_" + status]();
}
}
function update_main() {
if ((bonus && (goldenEgg == null)) && (spawnTime > 0)) {
spawnTime--;
}
if (((spawnTime == 0) && (goldenEgg == null)) && (bonus)) {
spawnTime = random(500) + 1000;
var _local5 = [];
var _local3 = 0;
while (_local3 < map.length) {
var _local2 = 0;
while (_local2 < map[_local3].length) {
var _local4 = map[_local3][_local2];
if (possibleGoldenEgg(_local4)) {
_local5.push({x:_local3, y:_local2});
}
_local2++;
}
_local3++;
}
if (_local5.length >= 0) {
var _local6 = _local5[random(_local5.length)];
goldenEgg = field.eggs.attachMovie("Egg", "egg_" + field.eggs.getNextHighestDepth(), (_local6.y * 100) + _local6.x, {color:5, x:_local6.x, y:_local6.y});
goldenEgg._x = _local6.x * 32;
goldenEgg._y = _local6.y * 32;
map[_local6.x][_local6.y].egg = goldenEgg;
goldenEgg.engine = this;
}
}
if (selectedEgg) {
if ((!selectedEgg.hitTest(_xmouse, _ymouse, false)) && (!selectedEgg.hasHatched)) {
selectedEgg.speed = 0;
status = "moveEgg";
slideSound.start();
var _local12 = (selectedEgg._x + 16) + 32;
var _local10 = (selectedEgg._y + 16) + 32;
var _local11 = _xmouse;
var _local9 = _ymouse;
var _local8 = _local11 - _local12;
var _local7 = _local9 - _local10;
if (Math.abs(_local8) > Math.abs(_local7)) {
yDir = 0;
if (_local8 > 0) {
xDir = 1;
} else {
xDir = -1;
}
} else {
xDir = 0;
if (_local7 > 0) {
yDir = 1;
} else {
yDir = -1;
}
}
}
}
}
function update_moveEgg() {
if (selectedEgg.offset == 0) {
var _local2 = map[selectedEgg.x + xDir][selectedEgg.y + yDir];
if (_local2 != null) {
if (((_local2.egg == null) || (_local2.egg._alpha < 100)) && (_local2.machine == null)) {
if (!turnStarted) {
turnStarted = true;
turns = ((turns+1));
}
map[selectedEgg.x][selectedEgg.y].egg = null;
_local2.egg = selectedEgg;
selectedEgg.offset = 32;
selectedEgg.x = selectedEgg.x + xDir;
selectedEgg.y = selectedEgg.y + yDir;
selectedEgg.swapDepths((selectedEgg.y * 100) + selectedEgg.x);
} else {
if (((_local2.egg.color == 5) && (selectedEgg.speed > 2)) && (!_local2.egg.hatching)) {
_local2.egg.hatch();
}
selectedEgg = null;
status = "main";
turnStarted = false;
}
} else {
selectedEgg = null;
status = "main";
turnStarted = false;
}
} else {
var _local3;
if (selectedEgg.speed < speedTable.length) {
_local3 = speedTable[selectedEgg.speed];
} else {
_local3 = speedTable[speedTable.length - 1];
}
selectedEgg.speed++;
selectedEgg.offset = selectedEgg.offset - _local3;
selectedEgg._x = selectedEgg._x + (xDir * _local3);
selectedEgg._y = selectedEgg._y + (yDir * _local3);
}
}
function update_hatch() {
var _local3;
var _local5;
var _local6 = true;
var _local7 = 0;
var _local8 = 0;
var _local4 = 0;
while (_local4 < map.length) {
var _local2 = 0;
while (_local2 < map[_local4].length) {
_local3 = map[_local4][_local2].egg;
if (_local3 && (_local3.color != 5)) {
if (_local3.hatching) {
_local6 = false;
} else if (!_local3.hasHatched) {
_local7++;
}
}
_local5 = map[_local4][_local2].machine;
if (_local5) {
if (!_local5.armed) {
_local6 = false;
} else {
_local8++;
}
}
_local2++;
}
_local4++;
}
if (_local6) {
if (_local7 > 0) {
if (_local8 > 0) {
status = "main";
} else {
failed();
}
} else {
success();
}
}
}
function failed() {
container.screenIndex = container.screenIndex;
status = "";
}
function success() {
status = "";
active = false;
var screen = attachMovie("EndLevelMenu", "EndLevelMenu", getNextHighestDepth());
var _local6 = ((getTimer() - beginTime) - pausedTime) / 1000;
var _local4 = 500 - _local6;
if (_local4 < 0) {
_local4 = 0;
}
_local4 = _local4 / 500;
_local4 = com.gamesquid.squidefix.Easing.easeIn(_local4, 1, com.gamesquid.squidefix.Easing.circ, com.gamesquid.squidefix.Easing.circ);
_local4 = 2 + (_local4 * 1000);
_local4 = _local4 * (1 + (container.screenIndex / 24));
_local4 = Math.floor(_local4);
var _local3 = 150 - _turns;
if (_local3 < 0) {
_local3 = 0;
}
_local3 = _local3 / 150;
_local3 = com.gamesquid.squidefix.Easing.easeIn(_local3, 1, com.gamesquid.squidefix.Easing.circ, com.gamesquid.squidefix.Easing.circ);
_local3 = 2 + (_local3 * 1000);
_local3 = _local3 * (1 + (container.screenIndex / 30));
_local3 = Math.floor(_local3);
var _local5 = bonuses * 50;
var totalPoints = ((_local4 + _local3) + _local5);
screen.txtTime.text = _local4 + " pts.";
screen.txtMoves.text = _local3 + " pts.";
screen.txtBonus.text = _local5 + " pts.";
screen.txtTotal.text = totalPoints + " pts.";
container.score = container.score + totalPoints;
if (!_root.freePlay) {
ScoreSender.send(number, Game(container).saveGame.name, totalPoints);
}
screen.txtScore.text = container.score + " pts.";
screen._alpha = 0;
screen.cnt = 0;
screen.onEnterFrame = function () {
if (this.cnt > 48) {
if (this._alpha >= 100) {
this._alpha = 100;
this.onEnterFrame = null;
} else {
this._alpha = this._alpha + 3;
}
} else {
this.cnt++;
}
};
screen.btnContinue.onRelease = mx.utils.Delegate.create(this, function () {
_root.sound.start();
if (!_root.freePlay) {
screen.onEnterFrame = function () {
this._alpha = this._alpha - 3;
};
this.container.nextLevel();
} else {
screen.gotoAndStop(2);
screen.btnContinue.onRelease = mx.utils.Delegate.create(this, function () {
screen.btnContinue._visible = false;
_root.sound.start();
if (screen.txtInput.text != "") {
ScoreSender.send(this.number, screen.txtInput.text, totalPoints, mx.utils.Delegate.create(this, function () {
this.getURL(("http://rankz.armorbot.com/EggStatic_" + this.number) + "/", "_blank");
this.container.nextLevel();
}));
screen.txtInput.text = "Sending...";
} else {
this.container.nextLevel();
}
});
}
});
}
function possibleGoldenEgg(tile) {
var _local3 = false;
if (isFreeTile(tile) && (tile.egg == null)) {
if (isFreeTile(map[tile.x][tile.y - 1]) && (isFreeTile(map[tile.x][tile.y - 2]))) {
_local3 = true;
}
if (isFreeTile(map[tile.x][tile.y + 1]) && (isFreeTile(map[tile.x][tile.y + 2]))) {
_local3 = true;
}
if (isFreeTile(map[tile.x - 1][tile.y]) && (isFreeTile(map[tile.x - 2][tile.y]))) {
_local3 = true;
}
if (isFreeTile(map[tile.x + 1][tile.y]) && (isFreeTile(map[tile.x + 2][tile.y]))) {
_local3 = true;
}
}
return(_local3);
}
function isFreeTile(tile) {
if ((tile != null) && (tile.machine == null)) {
return(true);
}
return(false);
}
function pause() {
if (!active) {
return(undefined);
}
paused = !paused;
field.eggs._visible = !paused;
pauseMenu._visible = paused;
startMenu.removeMovieClip();
pauseMenu.gotoAndStop(1);
if (paused) {
pauseBeginTime = getTimer();
} else {
pausedTime = pausedTime + (getTimer() - pauseBeginTime);
}
}
var spawnTime = 0;
var beginTime = 0;
var pausedTime = 0;
var pauseBeginTime = 0;
var paused = true;
var turnStarted = false;
var eggs = 0;
var _eggs = 0;
var _turns = 0;
var pausePressed = false;
var sndStarted = 0;
var delay = 10;
}
Symbol 308 MovieClip [__Packages.LevelData] Frame 0
class LevelData
{
function LevelData () {
}
static function getData(level) {
return(LevelData["getData_" + level]());
}
static function getData_1() {
return([[], [], [], [0, 0, 0, 9, 9, 9, 9], [0, 0, 0, 9, 2, 2, 9, 9, 9, 9], [0, 0, 0, 9, 1, 9, 1, 1, 2, 9], [0, 0, 0, 9, 1, 1, 1, 9, 9, 9], [0, 0, 0, 9, 1, 8, 9, 9, 9], [0, 0, 0, 9, 1, 1, 9, 9], [0, 0, 0, 9, 9, 9, 9]]);
}
static function getData_2() {
return([[], [], [], [0, 0, 0, 9, 9, 9, 9, 9, 9, 9], [0, 0, 0, 9, 3, 3, 9, 1, 1, 9], [0, 0, 0, 9, 1, 1, 1, 1, 1, 9], [0, 0, 0, 9, 9, 1, 8, 1, 9, 9], [0, 0, 0, 9, 1, 1, 1, 1, 1, 9], [0, 0, 0, 9, 1, 1, 9, 3, 3, 9], [0, 0, 0, 9, 9, 9, 9, 9, 9, 9]]);
}
static function getData_4() {
return([[], [], [], [0, 0, 0, 9, 9, 9, 9, 9, 9, 9], [0, 0, 0, 9, 2, 2, 9, 1, 5, 9], [0, 0, 0, 9, 1, 1, 1, 1, 5, 9], [0, 0, 0, 9, 9, 1, 8, 1, 9, 9], [0, 0, 0, 9, 5, 1, 1, 1, 1, 9], [0, 0, 0, 9, 5, 1, 9, 2, 2, 9], [0, 0, 0, 9, 9, 9, 9, 9, 9, 9]]);
}
static function getData_3() {
return([[], [], [0, 0, 0, 0, 9, 9, 9, 9, 0, 0, 0], [0, 0, 0, 0, 9, 8, 1, 9, 0, 0, 0], [0, 0, 9, 9, 9, 9, 1, 9, 9, 9, 0], [0, 0, 9, 1, 4, 1, 4, 1, 5, 9, 0], [0, 0, 9, 4, 1, 5, 1, 5, 1, 9, 0], [0, 0, 9, 9, 9, 1, 9, 9, 9, 9, 0], [0, 0, 0, 0, 9, 1, 8, 9, 0, 0, 0], [0, 0, 0, 0, 9, 9, 9, 9, 0, 0, 0]]);
}
static function getData_8() {
return([[], [0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [0, 9, 3, 2, 1, 1, 8, 9, 1, 1, 3, 3, 9], [0, 9, 9, 9, 9, 1, 9, 9, 1, 9, 9, 9, 9], [0, 0, 0, 0, 9, 1, 1, 1, 1, 9, 0, 0, 0], [0, 0, 0, 0, 9, 1, 1, 1, 1, 9, 0, 0, 0], [0, 0, 0, 0, 9, 1, 1, 1, 1, 9, 0, 0, 0], [0, 0, 0, 0, 9, 1, 1, 1, 1, 9, 0, 0, 0], [0, 0, 0, 0, 9, 1, 1, 1, 1, 9, 0, 0, 0], [0, 9, 9, 9, 9, 1, 9, 9, 1, 9, 9, 9, 9], [0, 9, 2, 2, 1, 1, 9, 8, 1, 1, 3, 2, 9], [0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9]]);
}
static function getData_9() {
return([[], [0, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 9], [0, 0, 0, 9, 1, 1, 1, 1, 1, 1, 1, 9], [0, 0, 0, 9, 1, 9, 9, 9, 9, 3, 1, 9], [0, 0, 0, 9, 1, 9, 0, 0, 9, 1, 2, 9], [0, 0, 0, 9, 1, 9, 9, 0, 9, 2, 3, 9], [0, 0, 0, 9, 1, 8, 9, 0, 9, 9, 9, 9], [0, 0, 0, 9, 1, 9, 9, 0, 0, 0, 0, 0], [0, 9, 9, 9, 1, 9, 0, 0, 0, 0, 0, 0], [0, 9, 1, 1, 1, 9, 9, 0, 0, 0, 0, 0], [0, 9, 3, 7, 1, 2, 9, 0, 0, 0, 0, 0], [0, 9, 9, 9, 9, 9, 9, 0, 0, 0, 0, 0]]);
}
static function getData_10() {
return([[0, 0, 0, 0, 9, 9, 9, 9, 9, 0], [0, 0, 0, 0, 9, 3, 3, 4, 9, 0], [0, 0, 0, 9, 9, 2, 1, 9, 9, 0], [0, 0, 0, 9, 8, 1, 1, 9, 0, 0], [0, 0, 0, 9, 1, 1, 1, 9, 9, 0], [0, 0, 0, 9, 9, 1, 1, 1, 9, 0], [0, 0, 0, 0, 9, 9, 1, 1, 9, 9], [0, 0, 0, 0, 0, 9, 1, 1, 8, 9], [0, 0, 0, 0, 9, 9, 5, 5, 1, 9], [0, 0, 0, 0, 9, 1, 2, 1, 9, 9], [0, 0, 0, 9, 9, 5, 3, 9, 9, 0], [0, 0, 0, 9, 4, 4, 2, 9, 0, 0], [0, 0, 0, 9, 9, 9, 9, 9, 0, 0]]);
}
static function getData_13() {
return([[], [], [0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [0, 0, 9, 5, 3, 1, 9, 9, 1, 1, 3, 9], [0, 0, 9, 4, 1, 1, 9, 9, 1, 1, 5, 9], [0, 0, 9, 1, 1, 1, 1, 1, 1, 1, 1, 9], [0, 0, 9, 9, 9, 1, 9, 1, 9, 9, 9, 9], [0, 0, 9, 9, 9, 1, 9, 8, 1, 9, 9, 9], [0, 0, 9, 1, 1, 1, 1, 1, 1, 1, 1, 9], [0, 0, 9, 1, 1, 1, 9, 9, 1, 1, 5, 9], [0, 0, 9, 4, 4, 1, 9, 9, 1, 3, 4, 9], [0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9]]);
}
static function getData_7() {
return([[], [], [0, 0, 0, 9, 9, 9, 9, 0, 0, 0], [0, 0, 0, 9, 2, 5, 9, 0, 0, 0], [0, 0, 0, 9, 5, 2, 9, 9, 9, 9], [0, 0, 0, 9, 1, 1, 9, 8, 1, 9], [0, 0, 0, 9, 1, 1, 1, 1, 1, 9], [0, 0, 0, 9, 9, 9, 1, 1, 2, 9], [0, 0, 0, 0, 9, 1, 1, 9, 5, 9], [0, 0, 0, 0, 9, 1, 1, 9, 9, 9], [0, 0, 0, 0, 9, 5, 2, 9, 0, 0], [0, 0, 0, 0, 9, 9, 9, 9, 0, 0]]);
}
static function getData_11() {
return([[], [0, 0, 0, 0, 0, 9, 9, 9, 9, 0, 0, 0, 0], [0, 0, 0, 0, 0, 9, 3, 2, 9, 0, 0, 0, 0], [0, 9, 9, 9, 0, 9, 4, 1, 9, 0, 0, 0, 0], [0, 9, 4, 9, 9, 9, 1, 1, 9, 0, 0, 0, 0], [0, 9, 2, 3, 1, 1, 1, 1, 9, 0, 0, 0, 0], [0, 9, 9, 9, 9, 1, 1, 1, 9, 0, 9, 9, 9], [0, 0, 0, 0, 9, 1, 1, 1, 9, 9, 9, 2, 9], [0, 0, 0, 0, 9, 1, 1, 1, 1, 3, 4, 7, 9], [0, 0, 0, 0, 9, 1, 1, 1, 9, 9, 9, 9, 9], [0, 0, 0, 0, 9, 1, 1, 8, 9, 0, 0, 0, 0], [0, 0, 0, 0, 9, 9, 9, 9, 9, 0, 0, 0, 0]]);
}
static function getData_15() {
return([[9, 9, 9, 9, 0, 0, 0, 0, 0, 9, 9, 9, 9], [9, 5, 5, 9, 9, 0, 0, 0, 9, 9, 1, 3, 9], [9, 3, 5, 1, 9, 9, 0, 9, 9, 1, 4, 3, 9], [9, 9, 1, 1, 1, 9, 9, 9, 1, 1, 1, 9, 9], [0, 9, 9, 1, 1, 1, 9, 1, 1, 1, 9, 9, 0], [0, 0, 9, 9, 1, 1, 1, 1, 1, 9, 9, 0, 0], [0, 0, 0, 9, 9, 1, 8, 1, 9, 9, 0, 0, 0], [0, 0, 9, 9, 1, 2, 1, 1, 1, 9, 9, 0, 0], [0, 9, 9, 1, 1, 1, 9, 1, 1, 1, 9, 9, 0], [9, 9, 1, 1, 1, 9, 9, 9, 1, 1, 1, 9, 9], [9, 1, 1, 1, 9, 9, 0, 9, 9, 1, 2, 1, 9], [9, 2, 1, 9, 9, 0, 0, 0, 9, 9, 4, 4, 9], [9, 9, 9, 9, 0, 0, 0, 0, 0, 9, 9, 9, 9]]);
}
static function getData_5() {
return([[0, 0, 0, 0, 9, 9, 9, 9, 9, 0, 0, 0, 0], [0, 0, 0, 9, 2, 1, 4, 1, 2, 9, 0, 0, 0], [0, 0, 9, 1, 3, 1, 4, 1, 3, 1, 9, 0, 0], [0, 0, 9, 1, 1, 1, 1, 1, 1, 1, 9, 0, 0], [0, 9, 1, 1, 1, 9, 1, 9, 1, 1, 1, 9, 0], [0, 9, 1, 1, 9, 9, 1, 9, 9, 1, 1, 9, 0], [0, 9, 1, 1, 3, 4, 1, 4, 2, 1, 1, 9, 0], [0, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 0], [0, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 0], [0, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 0], [0, 9, 1, 9, 9, 9, 1, 9, 9, 9, 1, 9, 0], [0, 9, 8, 9, 0, 9, 8, 9, 0, 9, 8, 9, 0], [0, 9, 9, 9, 0, 9, 9, 9, 0, 9, 9, 9, 0]]);
}
static function getData_16() {
return([[9, 9, 9, 9, 9, 9, 9, 0, 0, 0, 0, 0, 0, 0], [9, 3, 2, 4, 2, 1, 9, 0, 0, 0, 0, 0, 0, 0], [9, 2, 4, 3, 4, 1, 9, 0, 0, 0, 0, 0, 0, 0], [9, 9, 9, 9, 1, 1, 9, 9, 0, 0, 0, 0, 0, 0], [0, 0, 0, 9, 1, 8, 1, 9, 0, 0, 0, 0, 0, 0], [0, 0, 0, 9, 9, 1, 1, 9, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 9, 1, 1, 9, 9, 9, 9, 9, 9, 9], [0, 0, 0, 0, 9, 1, 1, 1, 1, 1, 1, 1, 2, 9], [0, 0, 0, 0, 9, 8, 1, 1, 1, 1, 1, 1, 1, 9], [0, 0, 0, 0, 9, 9, 9, 9, 9, 1, 2, 1, 1, 9], [0, 0, 0, 0, 0, 0, 0, 0, 9, 3, 5, 2, 1, 9], [0, 0, 0, 0, 0, 0, 0, 0, 9, 9, 9, 5, 2, 9], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 3, 5, 9], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 9, 9, 9]]);
}
static function getData_12() {
return([[0, 0, 0, 0, 9, 9, 9, 9, 9, 0, 0, 0, 0], [0, 0, 0, 0, 9, 4, 1, 4, 9, 0, 0, 0, 0], [0, 0, 0, 0, 9, 1, 1, 5, 9, 0, 0, 0, 0], [0, 0, 0, 0, 9, 5, 1, 1, 9, 0, 0, 0, 0], [9, 9, 9, 9, 9, 4, 1, 1, 9, 9, 9, 9, 9], [9, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9], [9, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 9], [9, 3, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 9], [9, 9, 9, 9, 9, 1, 1, 1, 9, 9, 9, 9, 9], [0, 0, 0, 0, 9, 1, 1, 1, 9, 0, 0, 0, 0], [0, 0, 0, 0, 9, 1, 1, 2, 9, 0, 0, 0, 0], [0, 0, 0, 0, 9, 2, 1, 3, 9, 0, 0, 0, 0], [0, 0, 0, 0, 9, 9, 9, 9, 9, 0, 0, 0, 0]]);
}
static function getData_14() {
return([[9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9], [9, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 1, 9], [9, 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, 9, 1, 9], [9, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 1, 9], [9, 1, 9, 3, 2, 4, 1, 1, 1, 1, 1, 1, 1, 9], [9, 1, 9, 9, 9, 9, 5, 2, 9, 9, 9, 9, 1, 9], [9, 1, 1, 1, 1, 1, 1, 1, 4, 5, 3, 9, 1, 9], [9, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 1, 9], [9, 1, 9, 5, 4, 1, 1, 1, 1, 1, 1, 1, 1, 9], [9, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 1, 9], [9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9]]);
}
static function getData_18() {
return([[9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 9], [9, 1, 9, 9, 9, 1, 1, 9, 9, 9, 3, 1, 9], [9, 1, 9, 9, 9, 9, 1, 9, 9, 9, 9, 1, 9], [9, 3, 9, 9, 9, 9, 1, 9, 9, 9, 9, 1, 9], [9, 2, 9, 9, 9, 1, 1, 1, 9, 9, 9, 1, 9], [9, 1, 2, 4, 1, 1, 8, 1, 1, 5, 3, 1, 9], [9, 1, 9, 9, 9, 1, 1, 1, 9, 9, 9, 4, 9], [9, 1, 9, 9, 9, 9, 1, 9, 9, 9, 9, 5, 9], [9, 1, 9, 9, 9, 9, 1, 9, 9, 9, 9, 1, 9], [9, 1, 5, 9, 9, 9, 1, 1, 9, 9, 9, 1, 9], [9, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9]]);
}
static function getData_23() {
return([[0, 0, 0, 0, 9, 9, 9, 9, 9, 9], [0, 0, 0, 0, 9, 1, 1, 2, 2, 9], [0, 0, 0, 0, 9, 3, 9, 9, 9, 9], [0, 0, 0, 0, 9, 4, 9, 0, 0, 0], [0, 0, 0, 0, 9, 2, 9, 9, 0, 0], [0, 0, 0, 0, 9, 4, 1, 9, 9, 9], [0, 0, 0, 0, 9, 1, 8, 1, 1, 9], [0, 0, 0, 0, 9, 1, 1, 8, 1, 9], [0, 0, 0, 0, 9, 9, 9, 1, 3, 9], [0, 0, 0, 0, 0, 0, 9, 9, 5, 9], [0, 0, 0, 0, 0, 0, 0, 9, 3, 9], [0, 0, 0, 0, 9, 9, 9, 9, 4, 9], [0, 0, 0, 0, 9, 5, 5, 1, 1, 9], [0, 0, 0, 0, 9, 9, 9, 9, 9, 9]]);
}
static function getData_21() {
return([[0, 0, 0, 0, 0, 0, 0, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9, 1, 1, 1, 1, 8, 9], [9, 1, 1, 1, 1, 1, 8, 9, 1, 9, 9, 9, 9, 9], [9, 1, 9, 9, 9, 9, 9, 9, 1, 9, 0, 0, 0, 0], [9, 2, 3, 2, 3, 2, 3, 2, 3, 9, 9, 9, 9, 9], [9, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 4, 5, 9], [9, 9, 9, 9, 9, 2, 3, 2, 3, 2, 3, 2, 3, 9], [0, 0, 0, 0, 9, 1, 9, 9, 9, 9, 9, 9, 1, 9], [9, 9, 9, 9, 9, 1, 9, 8, 1, 1, 1, 1, 1, 9], [9, 8, 1, 1, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 0, 0, 0, 0, 0, 0, 0]]);
}
static function getData_6() {
return([[0], [0], [0], [0, 0, 0, 0, 9, 9, 9, 9, 9, 9, 0], [0, 0, 0, 9, 9, 1, 1, 1, 3, 9, 9], [0, 0, 0, 9, 2, 1, 1, 1, 1, 2, 9], [0, 0, 0, 9, 3, 1, 9, 9, 1, 1, 9], [0, 0, 0, 9, 1, 1, 8, 9, 1, 1, 9], [0, 0, 0, 9, 2, 1, 1, 1, 1, 1, 9], [0, 0, 0, 9, 9, 1, 1, 1, 3, 9, 9], [0, 0, 0, 0, 9, 9, 9, 9, 9, 9, 0]]);
}
static function getData_17() {
return([[9, 9, 9, 9, 9, 0, 0, 0, 0, 9, 9, 9, 9, 0], [9, 2, 1, 4, 9, 0, 0, 0, 0, 9, 3, 2, 9, 0], [9, 3, 2, 8, 9, 0, 0, 0, 0, 9, 5, 3, 9, 9], [9, 9, 9, 4, 9, 0, 0, 0, 0, 9, 1, 8, 1, 9], [0, 0, 9, 2, 9, 0, 0, 0, 0, 9, 9, 3, 1, 9], [0, 0, 9, 4, 9, 9, 9, 0, 0, 0, 9, 1, 1, 9], [0, 0, 9, 1, 1, 5, 9, 9, 0, 0, 9, 1, 1, 9], [0, 0, 9, 1, 1, 8, 1, 9, 0, 0, 9, 1, 1, 9], [0, 0, 9, 9, 9, 1, 1, 9, 9, 9, 9, 1, 1, 9], [0, 0, 0, 0, 9, 1, 1, 1, 1, 1, 1, 1, 1, 9], [0, 0, 0, 0, 9, 2, 3, 4, 5, 1, 1, 1, 1, 9], [0, 0, 0, 0, 9, 9, 9, 9, 4, 8, 9, 9, 9, 9], [0, 0, 0, 0, 0, 0, 0, 9, 9, 9, 9, 0, 0, 0]]);
}
static function getData_20() {
return([[9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9], [9, 1, 9, 9, 9, 9, 1, 1, 9, 9, 9, 9, 1, 9], [9, 1, 9, 1, 1, 1, 1, 1, 1, 1, 1, 9, 1, 9], [9, 1, 9, 1, 9, 9, 9, 9, 9, 9, 1, 9, 1, 9], [9, 1, 9, 1, 9, 1, 1, 1, 1, 9, 1, 9, 1, 9], [9, 1, 9, 1, 9, 1, 9, 8, 1, 9, 1, 9, 1, 9], [9, 1, 9, 1, 9, 1, 9, 9, 1, 9, 1, 9, 1, 9], [9, 1, 9, 1, 9, 1, 1, 1, 1, 9, 1, 9, 1, 9], [9, 1, 9, 1, 9, 9, 1, 1, 9, 9, 1, 9, 1, 9], [9, 1, 9, 1, 1, 1, 1, 1, 1, 1, 1, 9, 1, 9], [9, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 1, 9], [9, 1, 2, 3, 4, 2, 3, 7, 4, 2, 3, 4, 1, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9]]);
}
static function getData_24() {
return([[9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 5, 2, 3, 9, 9, 4, 5, 5, 4, 1, 1, 1, 9], [9, 1, 1, 8, 9, 9, 8, 3, 1, 9, 9, 9, 1, 9], [9, 9, 9, 1, 1, 1, 1, 9, 9, 9, 0, 9, 1, 9], [9, 9, 9, 9, 9, 9, 9, 9, 0, 0, 0, 9, 1, 9], [9, 8, 1, 1, 9, 0, 0, 0, 0, 9, 9, 9, 1, 9], [9, 3, 1, 1, 9, 9, 9, 0, 0, 9, 2, 3, 8, 9], [9, 9, 1, 1, 9, 1, 9, 0, 0, 9, 1, 1, 1, 9], [0, 9, 9, 8, 1, 1, 9, 0, 0, 9, 1, 9, 9, 9], [0, 0, 9, 4, 1, 5, 9, 0, 0, 9, 1, 9, 0, 0], [0, 0, 9, 1, 1, 4, 9, 9, 9, 9, 2, 9, 9, 9], [0, 0, 9, 9, 9, 2, 8, 1, 1, 1, 8, 4, 2, 9], [0, 0, 0, 0, 9, 3, 3, 9, 9, 9, 5, 1, 3, 9], [0, 0, 0, 0, 9, 9, 9, 9, 0, 9, 9, 9, 9, 9]]);
}
static function getData_22() {
return([[0, 0, 0, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 1, 1, 1, 2, 8, 2, 9], [9, 2, 8, 3, 1, 1, 1, 1, 9, 9, 1, 3, 9], [9, 1, 1, 9, 9, 9, 1, 9, 9, 9, 1, 5, 9], [9, 5, 3, 9, 9, 9, 1, 9, 9, 9, 3, 5, 9], [9, 9, 9, 9, 9, 9, 1, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 1, 8, 9, 9, 9, 9, 9, 9], [9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9], [9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9], [9, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 1, 9], [9, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 1, 9], [9, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 1, 9], [9, 4, 2, 4, 2, 3, 8, 3, 2, 4, 2, 4, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9]]);
}
static function getData_19() {
return([[9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9], [9, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 2, 1, 9], [9, 1, 9, 1, 1, 1, 1, 1, 1, 1, 9, 3, 1, 9], [9, 1, 9, 1, 9, 9, 9, 9, 9, 1, 9, 9, 1, 9], [9, 1, 9, 1, 9, 1, 1, 1, 9, 1, 2, 9, 1, 9], [9, 1, 9, 1, 9, 1, 8, 9, 9, 1, 2, 9, 1, 9], [9, 1, 9, 1, 9, 1, 1, 1, 1, 1, 9, 9, 1, 9], [9, 1, 9, 1, 9, 9, 9, 9, 9, 9, 9, 3, 1, 9], [9, 1, 9, 1, 9, 1, 1, 1, 1, 1, 9, 4, 1, 9], [9, 1, 9, 1, 1, 1, 9, 9, 9, 1, 1, 1, 1, 9], [9, 1, 9, 9, 9, 9, 9, 2, 9, 9, 9, 9, 9, 9], [9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 4, 2, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9]]);
}
}
Symbol 309 MovieClip [__Packages.com.gamesquid.squidefix.Easing] Frame 0
class com.gamesquid.squidefix.Easing
{
function Easing () {
}
static function none(value, power, easeInFunc, easeOutFunc) {
return(value);
}
static function easeIn(value, power, easeInFunc, easeOutFunc) {
return(easeInFunc(value, power));
}
static function easeOut(value, power, easeInFunc, easeOutFunc) {
return(1 - easeIn(1 - value, power, easeOutFunc, null));
}
static function easeInOut(value, power, easeInFunc, easeOutFunc) {
if (value < 0.5) {
return(easeIn(value * 2, power, easeInFunc, null) / 2);
}
return(0.5 + (easeOut((value - 0.5) * 2, power, null, easeOutFunc) / 2));
}
static function easeOutIn(value, power, easeInFunc, easeOutFunc) {
if (value < 0.5) {
return(easeOut(value * 2, power, null, easeOutFunc) / 2);
}
return(0.5 + (easeIn((value - 0.5) * 2, power, easeInFunc, null) / 2));
}
static function straight(value, power) {
return(value);
}
static function sine(value, power) {
value = 1 - Math.cos((value * Math.PI) / 2);
if (power > 1) {
power--;
return(easeIn(value, power, sine));
}
return(value);
}
static function expo(value, power) {
if ((value == 0) || (value == 1)) {
return(value);
}
if (power < 1) {
power = 1;
}
return(Math.pow(power, 10 * (value - 1)));
}
static function circ(value, power) {
value = -(Math.sqrt(1 - (value * value)) - 1);
if (power > 1) {
power--;
return(easeIn(value, power, circ));
}
return(value);
}
}
Symbol 310 MovieClip [__Packages.Backgrounds] Frame 0
class Backgrounds extends ScreenSequence
{
var defaultEffects, __set__screens, gotoScreen;
function Backgrounds () {
super();
defaultEffects = [new fxDELAY(40), new fxFADEIN(5)];
__set__screens([{screen:"MenuBackground", fx:[]}, {screen:"Bg1", fx:[]}, {screen:"Bg2", fx:[]}, {screen:"Bg3", fx:[]}, {screen:"Bg4", fx:[]}, {screen:"Bg5", fx:[]}, {screen:"Bg6", fx:[]}, {screen:"Blank", fx:[]}]);
gotoScreen(0);
}
}
Symbol 311 MovieClip [__Packages.fxFADEIN] Frame 0
class fxFADEIN
{
var speed, finished, container, active, previous;
function fxFADEIN (speed) {
this.speed = speed;
finished = false;
}
function activate(container, active, previous) {
finished = false;
this.container = container;
this.active = active;
this.previous = previous;
this.active._alpha = 0;
}
function update() {
active._alpha = active._alpha + speed;
previous._alpha = previous._alpha - speed;
if (active._alpha >= 100) {
active._alpha = 100;
finished = true;
}
return(true);
}
function reset() {
active = null;
previous = null;
finished = false;
}
}
Symbol 15 MovieClip [Backgrounds] Frame 1
#initclip 26
Object.registerClass("Backgrounds", Backgrounds);
#endinitclip
Symbol 19 MovieClip [Crossconscious] Frame 1
this.onRelease = function () {
getURL ("http://www.crossconscious.com", "_blank");
};
Symbol 19 MovieClip [Crossconscious] Frame 100
_parent.nextScreen();
stop();
Symbol 26 Button
on (release) {
this.container.gotoScreen("MainMenu");
}
Symbol 41 MovieClip [HighScores] Frame 1
stop();
Instance of Symbol 36 MovieClip in Symbol 41 MovieClip [HighScores] Frame 1
on (release) {
this._parent.activeScreen.pause();
}
Instance of Symbol 36 MovieClip in Symbol 41 MovieClip [HighScores] Frame 1
on (release) {
this._parent.activeScreen.pause();
}
Instance of Symbol 36 MovieClip in Symbol 41 MovieClip [HighScores] Frame 1
on (release) {
this._parent.activeScreen.pause();
}
Symbol 46 Button
on (release) {
this.container.gotoScreen("Game");
}
Symbol 79 MovieClip [Instructions] Frame 1
stop();
Symbol 81 Button
on (release) {
_root.sound.start();
this.container.gotoScreen("MainMenu");
}
Symbol 86 MovieClip [LevelLine] Frame 1
#initclip 18
Object.registerClass("LevelLine", LevelLine);
#endinitclip
Symbol 89 MovieClip [LevelSelect] Frame 1
container.background.gotoScreen("MenuBackground");
stop();
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(0);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(1);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(2);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(3);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(4);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(5);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(6);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(7);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(8);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(9);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(10);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(11);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(12);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(13);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(14);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(15);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(16);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(17);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(18);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(19);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(20);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(21);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(22);
}
Instance of Symbol 86 MovieClip [LevelLine] in Symbol 89 MovieClip [LevelSelect] Frame 1
onClipEvent (load) {
this.setup(23);
}
Symbol 110 MovieClip Frame 1
this.onRollOver = function () {
this.gotoAndStop(3);
};
this.onRollOut = (this.onDragOut = function () {
this.gotoAndStop(2);
});
this.gotoAndStop(2);
Symbol 110 MovieClip Frame 2
this.txt.text = this.text;
Symbol 110 MovieClip Frame 3
this.txt.text = this.text;
Symbol 122 MovieClip [SavedGame] Frame 1
#initclip 19
Object.registerClass("SavedGame", SavedGame);
#endinitclip
Instance of Symbol 124 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
on (release) {
}
Symbol 135 MovieClip [MainMenu] Frame 1
container.background.gotoScreen("MenuBackground");
Symbol 135 MovieClip [MainMenu] Frame 20
this.screenMask._visible = false;
this.screenMask._alpha = 0;
Instance of Symbol 104 MovieClip "screenMask" in Symbol 135 MovieClip [MainMenu] Frame 20
on (release) {
}
Instance of Symbol 110 MovieClip in Symbol 135 MovieClip [MainMenu] Frame 52
onClipEvent (load) {
this.text = "More free games";
}
Instance of Symbol 110 MovieClip in Symbol 135 MovieClip [MainMenu] Frame 56
onClipEvent (load) {
this.text = "Start the game";
}
Instance of Symbol 110 MovieClip in Symbol 135 MovieClip [MainMenu] Frame 64
onClipEvent (load) {
this.text = "Crossconscious";
}
Instance of Symbol 110 MovieClip in Symbol 135 MovieClip [MainMenu] Frame 64
onClipEvent (load) {
this.text = "Gaming News";
}
Instance of Symbol 110 MovieClip in Symbol 135 MovieClip [MainMenu] Frame 68
onClipEvent (load) {
this.text = "Highscores";
}
Instance of Symbol 110 MovieClip in Symbol 135 MovieClip [MainMenu] Frame 69
on (release) {
_root.sound.start();
getURL ("http://www.armorgames.com/", "_blank");
}
onClipEvent (load) {
this.text = "More free games";
}
Instance of Symbol 110 MovieClip in Symbol 135 MovieClip [MainMenu] Frame 72
onClipEvent (load) {
this.text = "Free play";
}
Instance of Symbol 110 MovieClip in Symbol 135 MovieClip [MainMenu] Frame 73
on (release) {
_root.freePlay = false;
_root.sound.start();
this._parent.gotoAndStop("loadgame");
this._parent.screenMask._visible = true;
}
onClipEvent (load) {
this.text = "Start the game";
}
Instance of Symbol 110 MovieClip in Symbol 135 MovieClip [MainMenu] Frame 81
onClipEvent (load) {
this.text = "Crossconscious";
}
on (release) {
_root.sound.start();
getURL ("http://www.crossconscious.com", "_blank");
}
Instance of Symbol 110 MovieClip in Symbol 135 MovieClip [MainMenu] Frame 81
on (release) {
_root.sound.start();
getURL ("http://www.armorblog.com/", "_blank");
}
onClipEvent (load) {
this.text = "Gaming News";
}
Instance of Symbol 110 MovieClip in Symbol 135 MovieClip [MainMenu] Frame 85
on (release) {
_root.sound.start();
getURL ("http://rankz.armorbot.com/EggStatic/", "_blank");
}
onClipEvent (load) {
this.text = "Highscores";
}
Symbol 135 MovieClip [MainMenu] Frame 89
stop();
Instance of Symbol 110 MovieClip in Symbol 135 MovieClip [MainMenu] Frame 89
on (release) {
_root.freePlay = true;
_root.sound.start();
this._parent.container.gotoScreen("LevelSelect");
this._parent.screenMask._visible = true;
}
onClipEvent (load) {
this.text = "Free play";
}
Instance of Symbol 134 MovieClip "mcPopup" in Symbol 135 MovieClip [MainMenu] Frame 95
onClipEvent (load) {
this._visible = false;
}
Symbol 136 MovieClip [ScreenContainer] Frame 1
#initclip 20
Object.registerClass("ScreenContainer", ScreenContainer);
#endinitclip
Symbol 137 MovieClip [ScreenSequence] Frame 1
#initclip 21
Object.registerClass("ScreenSequence", ScreenSequence);
#endinitclip
Symbol 187 MovieClip Frame 1
var zooColor = (random(4) + 1);
if (this.color == 5) {
zooColor = this.color;
}
this.zoo.gotoAndStop(zooColor);
this.top.gotoAndStop(this.color);
this.bottom.gotoAndStop(this.color);
Symbol 187 MovieClip Frame 15
this.stop();
this.zoo.gotoAndStop(zooColor);
this.top.gotoAndStop(this.color);
Symbol 188 MovieClip [Egg] Frame 1
#initclip 22
Object.registerClass("Egg", Egg);
#endinitclip
this.colors.num.text = this.num;
Symbol 188 MovieClip [Egg] Frame 5
if ((random(100) > 4) && (!this.hatching)) {
this.gotoAndPlay(1);
}
this.colors.num.text = this.num;
Symbol 188 MovieClip [Egg] Frame 15
this.colors.num.text = this.num;
Symbol 188 MovieClip [Egg] Frame 25
if (!this.hatching) {
this.gotoAndPlay(1);
}
this.colors.num.text = this.num;
Symbol 188 MovieClip [Egg] Frame 26
this.egg.color = this.color;
Symbol 188 MovieClip [Egg] Frame 41
this.hatched();
this.stop();
Symbol 188 MovieClip [Egg] Frame 43
Symbol 215 MovieClip [Machine] Frame 1
#initclip 23
Object.registerClass("Machine", Machine);
#endinitclip
stop();
Symbol 215 MovieClip [Machine] Frame 24
this.remove();
Symbol 234 MovieClip [Game] Frame 1
#initclip 24
Object.registerClass("Game", Game);
#endinitclip
Instance of Symbol 36 MovieClip in Symbol 234 MovieClip [Game] Frame 1
on (release) {
this._parent.activeScreen.pause();
}
Symbol 235 MovieClip [MainEngine] Frame 1
#initclip 25
Object.registerClass("MainEngine", MainEngine);
#endinitclip
Symbol 238 MovieClip [Bonus] Frame 15
stop();
Symbol 260 MovieClip [EndLevelMenu] Frame 1
stop();
Instance of Symbol 110 MovieClip in Symbol 260 MovieClip [EndLevelMenu] Frame 1
onClipEvent (load) {
this.text = "Level highscores";
}
on (release) {
_root.sound.start();
getURL (("http://rankz.armorbot.com/EggStatic_" + _parent._parent.number) + "/", "_blank");
}
Symbol 264 MovieClip [LevelBeginScreen] Frame 1
stop();
this.mcBlocker._visible = false;
Instance of Symbol 110 MovieClip in Symbol 264 MovieClip [LevelBeginScreen] Frame 1
onClipEvent (load) {
this.text = "Level highscores";
}
on (release) {
_root.sound.start();
getURL (("http://rankz.armorbot.com/EggStatic_" + _parent._parent.number) + "/", "_blank");
}
Instance of Symbol 110 MovieClip in Symbol 264 MovieClip [LevelBeginScreen] Frame 1
on (release) {
_root.sound.start();
this._parent._parent.beginLevel();
this._parent.screenMask._visible = true;
}
onClipEvent (load) {
this.text = "Begin level";
}
Symbol 264 MovieClip [LevelBeginScreen] Frame 2
this.mcBlocker._visible = true;
Symbol 267 MovieClip [PauseMenu] Frame 1
stop();
Instance of Symbol 110 MovieClip in Symbol 267 MovieClip [PauseMenu] Frame 1
on (release) {
this._parent._parent._parent.music.stop();
_root.music.start(0, 100000);
_root.sound.start();
this._parent._parent._parent.container.gotoScreen("MainMenu");
}
onClipEvent (load) {
this.text = "Exit to menu";
}
Instance of Symbol 110 MovieClip in Symbol 267 MovieClip [PauseMenu] Frame 1
onClipEvent (load) {
this.text = "Level highscores";
}
on (release) {
_root.sound.start();
getURL (("http://rankz.armorbot.com/EggStatic_" + _parent._parent.number) + "/", "_blank");
}
Instance of Symbol 110 MovieClip in Symbol 267 MovieClip [PauseMenu] Frame 1
on (release) {
_root.sound.start();
this._parent._parent.pause();
this._parent.screenMask._visible = true;
}
onClipEvent (load) {
this.text = "Continue game";
}
Instance of Symbol 110 MovieClip in Symbol 267 MovieClip [PauseMenu] Frame 1
on (release) {
_root.sound.start();
_parent._parent.container.screenIndex = _parent._parent.container.screenIndex;
_parent.gotoAndStop(3);
}
onClipEvent (load) {
this.text = "Retry level";
}
Symbol 275 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 126
_root.sequence.screenIndex++;
_root.music.start(0, 100000);
stop();
Instance of Symbol 287 MovieClip in Symbol 288 MovieClip [Sponsor] Frame 1
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Symbol 294 MovieClip [Congratulations] Frame 1
_root.sequence.background.gotoScreen("MenuBackground");
container.background.gotoScreen("Blank");
container.gotoAndStop(2);
ScoreSender.send(0, Game(this.container).saveGame.name, this.container.score);
this.txtScore.text = this.container.score;
stop();
Instance of Symbol 110 MovieClip in Symbol 294 MovieClip [Congratulations] Frame 1
on (release) {
this._parent._parent.music.stop();
_root.music.start(0, 100000);
_root.sound.start();
_root.sequence.gotoScreen("MainMenu");
}
onClipEvent (load) {
this.text = "Exit to menu";
}
Instance of Symbol 110 MovieClip in Symbol 294 MovieClip [Congratulations] Frame 1
onClipEvent (load) {
this.text = "Highscores";
}
on (release) {
_root.sound.start();
getURL ("http://rankz.armorbot.com/EggStatic/", "_blank");
}
Instance of Symbol 110 MovieClip in Symbol 294 MovieClip [Congratulations] Frame 1
on (release) {
_root.sound.start();
getURL ("http://www.armorgames.com", "_blank");
}
onClipEvent (load) {
this.text = "ArmorGames";
}