Frame 1
function getFlashcomp() {
getURL ("http://www.clashflash.com", "_blank");
}
function getFlashrevo() {
getURL ("http://www.flashrevo.com", "_blank");
}
function hideCursor() {
Mouse.hide();
}
function goScaledFullScreen() {
var _local1 = new flash.geom.Rectangle();
_local1.x = 0;
_local1.y = 0;
_local1.width = Stage.width;
_local1.height = Stage.height;
Stage.fullScreenSourceRect = _local1;
Stage.displayState = "fullScreen";
}
function exitFullScreen() {
Stage.displayState = "normal";
}
function menuHandler(obj, menuObj) {
if (Stage.displayState == "normal") {
menuObj.customItems[0].enabled = true;
menuObj.customItems[1].enabled = false;
} else {
menuObj.customItems[0].enabled = false;
menuObj.customItems[1].enabled = true;
}
}
stop();
var fullscreenCM = new ContextMenu(menuHandler);
fullscreenCM.hideBuiltInItems();
var fs = new ContextMenuItem("Go Full Screen", goScaledFullScreen);
fullscreenCM.customItems.push(fs);
var xfs = new ContextMenuItem("Exit Full Screen", exitFullScreen);
fullscreenCM.customItems.push(xfs);
fullscreenCM.customItems.push(new ContextMenuItem("Clashflash.com", getFlashcomp));
fullscreenCM.customItems.push(new ContextMenuItem("Flashrevo.com", getFlashrevo));
fullscreenCM.customItems.push(new ContextMenuItem("Hide Cursor", hideCursor));
_root.menu = fullscreenCM;
Frame 2
gotoAndPlay ("intro");
Frame 104
function placeWall(x, y, type) {
wallMC = game.wall.attachMovie(type, wallCounter, wallCounter);
wallCounter++;
wallMC._x = x * blockSize;
wallMC._y = y * blockSize;
map[x][y] = 1;
}
stop();
if (_root.music == undefined) {
_root.music = "ON";
}
if ((_root.music == "ON") && (_root.setmusic != "Menu")) {
stopAllSounds();
menuMusic = new Sound();
menuMusic.attachSound("menu");
menuMusic.start(0, 100);
_root.setmusic = "Menu";
}
instantbut.onRelease = function () {
gotoAndStop ("action");
};
settingsbut.onRelease = function () {
gotoAndStop ("settings");
};
specialbut.onRelease = function () {
gotoAndStop ("special");
};
creditsbut.onRelease = function () {
gotoAndStop ("credits");
};
helpbut.onRelease = function () {
gotoAndStop ("help");
};
Frame 105
stop();
back.onRelease = function () {
gotoAndStop ("menu");
};
easy.onRelease = function () {
gotoAndStop ("game_easy");
};
medium.onRelease = function () {
gotoAndStop ("game_medium");
};
hard.onRelease = function () {
gotoAndStop ("game_hard");
};
stop();
Frame 106
stop();
lvl1but.onRelease = function () {
gotoAndStop ("lvl1");
};
lvl2but.onRelease = function () {
gotoAndStop ("lvl2");
};
lvl3but.onRelease = function () {
gotoAndStop ("lvl3");
};
lvl4but.onRelease = function () {
gotoAndStop ("lvl4");
};
lvl5but.onRelease = function () {
gotoAndStop ("lvl5");
};
lvl6but.onRelease = function () {
gotoAndStop ("lvl6");
};
lvl7but.onRelease = function () {
gotoAndStop ("lvl7");
};
lvl8but.onRelease = function () {
gotoAndStop ("lvl8");
};
speciallvlbut.onRelease = function () {
gotoAndStop ("speciallvl");
};
hard.onRelease = function () {
gotoAndStop ("game_hard");
};
back.onRelease = function () {
gotoAndStop ("menu");
};
Frame 107
stop();
if ((_root.music == "ON") && (_root.setmusic != "tiesto")) {
stopAllSounds();
menuMusic = new Sound();
menuMusic.attachSound("tiesto");
menuMusic.start(0, 100);
_root.setmusic = "tiesto";
}
back.onRelease = function () {
gotoAndStop ("menu");
};
Frame 108
stop();
back.onRelease = function () {
gotoAndStop ("menu");
};
gamequal.gotoAndStop(_quality);
gfxbut.onRelease = function () {
switch (_quality) {
case "HIGH" :
_quality = "MEDIUM";
break;
case "MEDIUM" :
_quality = "LOW";
break;
case "LOW" :
_quality = "HIGH";
break;
}
gamequal.gotoAndStop(_quality);
};
mus.gotoAndStop(_root.music);
soundsbut.onRelease = function () {
switch (_root.music) {
case "ON" :
_root.music = "OFF";
stopAllSounds();
break;
case "OFF" :
_root.music = "ON";
menuMusic = new Sound();
menuMusic.attachSound("menu");
menuMusic.start(0, 100);
_root.setmusic = "menu";
break;
}
mus.gotoAndStop(_root.music);
};
Frame 109
stop();
back.onRelease = function () {
gotoAndStop ("menu");
};
Frame 110
function startGame() {
x = int(gameWidth / 2);
y = gameHeight - 2;
moveTimer = 0;
xVelocity = [-1, 0, 1, 0];
yVelocity = [0, -1, 0, 1];
map = new Array();
var _local1 = 0;
while (_local1 < gameWidth) {
map[_local1] = new Array();
_local1++;
}
turnQueue = new Array();
game.createEmptyMovieClip("food", 1);
game.createEmptyMovieClip("s", 2);
scoreTextField.text = "Score: 0";
foodCounter = 0;
snakeBlockCounter = 0;
currentDirection = 1;
snakeEraseCounter = -5;
score = 0;
placeFood("new");
textMC.gotoAndStop("hide");
game.onEnterFrame = main;
gameRunning = true;
}
function main() {
if ((moveTimer % moveSpeed) == 0) {
if (turnQueue.length > 0) {
var _local2 = turnQueue.pop();
if ((_local2 % 2) != (currentDirection % 2)) {
currentDirection = _local2;
}
}
x = x + xVelocity[currentDirection];
y = y + yVelocity[currentDirection];
moveTimer = 0;
if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) {
game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize});
game.s[snakeBlockCounter].gotoAndStop(2);
game.s[snakeBlockCounter - 1].gotoAndStop(1);
snakeBlockCounter++;
if (typeof(map[x][y]) == "movieclip") {
score = score + 10;
scoreTextField.text = "Score: " + score;
snakeEraseCounter = snakeEraseCounter - 1;
placeFood(map[x][y]);
}
map[x][y] = SNAKE_BLOCK;
var _local1 = game.s[snakeEraseCounter];
if (_local1) {
delete map[_local1._x / blockSize][_local1._y / blockSize];
_local1.removeMovieClip();
}
snakeEraseCounter++;
} else {
gameOver();
}
}
moveTimer++;
}
function gameOver() {
textMC.gotoAndStop("gameOver");
delete game.onEnterFrame;
gameRunning = false;
}
function placeFood(foodMC) {
do {
var xFood = random(gameWidth);
var yFood = random(gameHeight);
} while (map[xFood][yFood]);
if (foodMC == "new") {
foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter);
foodCounter++;
}
foodMC._x = xFood * blockSize;
foodMC._y = yFood * blockSize;
map[xFood][yFood] = foodMC;
}
if ((_root.music == "ON") && (_root.setmusic != "instant")) {
stopAllSounds();
menuMusic = new Sound();
menuMusic.attachSound("instant");
menuMusic.start(0, 100);
_root.setmusic = "instant";
}
blockSize = 8;
gameHeight = 30;
gameWidth = 45;
SNAKE_BLOCK = 1;
moveSpeed = 3;
keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = Key.getCode();
if ((_local1 > 36) && (_local1 < 41)) {
if (game.onEnterFrame != undefined) {
if ((_local1 - 37) != turnQueue[0]) {
turnQueue.unshift(_local1 - 37);
}
}
} else if (_local1 == 32) {
if (!gameRunning) {
startGame();
}
} else if (_local1 == 80) {
if (gameRunning) {
if (game.onEnterFrame) {
delete game.onEnterFrame;
textMC.gotoAndStop("paused");
} else {
game.onEnterFrame = main;
textMC.gotoAndStop("hide");
}
}
}
};
Key.addListener(keyListener);
Frame 111
function startGame() {
x = int(gameWidth / 2);
y = gameHeight - 2;
moveTimer = 0;
xVelocity = [-1, 0, 1, 0];
yVelocity = [0, -1, 0, 1];
map = new Array();
var _local1 = 0;
while (_local1 < gameWidth) {
map[_local1] = new Array();
_local1++;
}
turnQueue = new Array();
game.createEmptyMovieClip("food", 1);
game.createEmptyMovieClip("s", 2);
scoreTextField.text = "Score: 0";
foodCounter = 0;
snakeBlockCounter = 0;
currentDirection = 1;
snakeEraseCounter = -3;
score = 0;
placeFood("new");
textMC.gotoAndStop("hide");
game.onEnterFrame = main;
gameRunning = true;
game.createEmptyMovieClip("wall", 3);
wallCounter = 0;
placeWall(5, 5, "wallMC");
placeWall(6, 5, "wallMC");
placeWall(7, 5, "wallMC");
placeWall(8, 5, "wallMC");
placeWall(9, 5, "wallMC");
placeWall(10, 5, "wallMC");
placeWall(11, 5, "wallMC");
placeWall(12, 5, "wallMC");
placeWall(13, 5, "wallMC");
placeWall(14, 5, "wallMC");
placeWall(15, 5, "wallMC");
placeWall(16, 5, "wallMC");
placeWall(17, 5, "wallMC");
placeWall(18, 5, "wallMC");
placeWall(19, 5, "wallMC");
placeWall(20, 5, "wallMC");
placeWall(21, 5, "wallMC");
placeWall(22, 5, "wallMC");
placeWall(23, 5, "wallMC");
placeWall(24, 5, "wallMC");
placeWall(25, 5, "wallMC");
placeWall(26, 5, "wallMC");
placeWall(27, 5, "wallMC");
placeWall(28, 5, "wallMC");
placeWall(29, 5, "wallMC");
placeWall(30, 5, "wallMC");
placeWall(31, 5, "wallMC");
placeWall(32, 5, "wallMC");
placeWall(33, 5, "wallMC");
placeWall(34, 5, "wallMC");
placeWall(35, 5, "wallMC");
placeWall(36, 5, "wallMC");
placeWall(37, 5, "wallMC");
placeWall(38, 5, "wallMC");
placeWall(39, 5, "wallMC");
placeWall(5, 24, "wallMC");
placeWall(6, 24, "wallMC");
placeWall(7, 24, "wallMC");
placeWall(8, 24, "wallMC");
placeWall(9, 24, "wallMC");
placeWall(10, 24, "wallMC");
placeWall(11, 24, "wallMC");
placeWall(12, 24, "wallMC");
placeWall(13, 24, "wallMC");
placeWall(14, 24, "wallMC");
placeWall(15, 24, "wallMC");
placeWall(16, 24, "wallMC");
placeWall(17, 24, "wallMC");
placeWall(18, 24, "wallMC");
placeWall(19, 24, "wallMC");
placeWall(20, 24, "wallMC");
placeWall(21, 24, "wallMC");
placeWall(23, 24, "wallMC");
placeWall(24, 24, "wallMC");
placeWall(25, 24, "wallMC");
placeWall(26, 24, "wallMC");
placeWall(27, 24, "wallMC");
placeWall(28, 24, "wallMC");
placeWall(29, 24, "wallMC");
placeWall(30, 24, "wallMC");
placeWall(31, 24, "wallMC");
placeWall(32, 24, "wallMC");
placeWall(33, 24, "wallMC");
placeWall(34, 24, "wallMC");
placeWall(35, 24, "wallMC");
placeWall(36, 24, "wallMC");
placeWall(37, 24, "wallMC");
placeWall(38, 24, "wallMC");
placeWall(39, 24, "wallMC");
}
function main() {
if ((moveTimer % moveSpeed) == 0) {
if (turnQueue.length > 0) {
var _local2 = turnQueue.pop();
if ((_local2 % 2) != (currentDirection % 2)) {
currentDirection = _local2;
}
}
x = x + xVelocity[currentDirection];
y = y + yVelocity[currentDirection];
moveTimer = 0;
if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) {
game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize});
game.s[snakeBlockCounter].gotoAndStop(2);
game.s[snakeBlockCounter - 1].gotoAndStop(1);
snakeBlockCounter++;
if (typeof(map[x][y]) == "movieclip") {
score = score + 10;
scoreTextField.text = "Score: " + score;
snakeEraseCounter = snakeEraseCounter - 3;
placeFood(map[x][y]);
}
map[x][y] = SNAKE_BLOCK;
var _local1 = game.s[snakeEraseCounter];
if (_local1) {
delete map[_local1._x / blockSize][_local1._y / blockSize];
_local1.removeMovieClip();
}
snakeEraseCounter++;
} else {
gameOver();
}
}
moveTimer++;
}
function gameOver() {
textMC.gotoAndStop("gameOver");
delete game.onEnterFrame;
gameRunning = false;
}
function placeFood(foodMC) {
do {
var xFood = random(gameWidth);
var yFood = random(gameHeight);
} while (map[xFood][yFood]);
if (foodMC == "new") {
foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter);
foodCounter++;
}
foodMC._x = xFood * blockSize;
foodMC._y = yFood * blockSize;
map[xFood][yFood] = foodMC;
}
if ((_root.music == "ON") && (_root.setmusic != "instant")) {
stopAllSounds();
menuMusic = new Sound();
menuMusic.attachSound("instant");
menuMusic.start(0, 100);
_root.setmusic = "instant";
}
blockSize = 8;
gameHeight = 30;
gameWidth = 45;
SNAKE_BLOCK = 1;
moveSpeed = 2;
keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = Key.getCode();
if ((_local1 > 36) && (_local1 < 41)) {
if (game.onEnterFrame != undefined) {
if ((_local1 - 37) != turnQueue[0]) {
turnQueue.unshift(_local1 - 37);
}
}
} else if (_local1 == 32) {
if (!gameRunning) {
startGame();
}
} else if (_local1 == 80) {
if (gameRunning) {
if (game.onEnterFrame) {
delete game.onEnterFrame;
textMC.gotoAndStop("paused");
} else {
game.onEnterFrame = main;
textMC.gotoAndStop("hide");
}
}
}
};
Key.addListener(keyListener);
Frame 112
function startGame() {
x = int(gameWidth / 2);
y = gameHeight - 2;
moveTimer = 0;
xVelocity = [-1, 0, 1, 0];
yVelocity = [0, -1, 0, 1];
map = new Array();
var _local1 = 0;
while (_local1 < gameWidth) {
map[_local1] = new Array();
_local1++;
}
turnQueue = new Array();
game.createEmptyMovieClip("food", 1);
game.createEmptyMovieClip("s", 2);
scoreTextField.text = "Score: 0";
foodCounter = 0;
snakeBlockCounter = 0;
currentDirection = 1;
snakeEraseCounter = -1;
score = 0;
placeFood("new");
textMC.gotoAndStop("hide");
game.onEnterFrame = main;
gameRunning = true;
game.createEmptyMovieClip("wall", 3);
wallCounter = 0;
placeWall(5, 5, "wallMC");
placeWall(6, 5, "wallMC");
placeWall(7, 5, "wallMC");
placeWall(8, 5, "wallMC");
placeWall(9, 5, "wallMC");
placeWall(10, 5, "wallMC");
placeWall(11, 5, "wallMC");
placeWall(12, 5, "wallMC");
placeWall(13, 5, "wallMC");
placeWall(14, 5, "wallMC");
placeWall(5, 6, "wallMC");
placeWall(5, 7, "wallMC");
placeWall(5, 8, "wallMC");
placeWall(5, 9, "wallMC");
placeWall(5, 10, "wallMC");
placeWall(5, 11, "wallMC");
placeWall(39, 11, "wallMC");
placeWall(39, 10, "wallMC");
placeWall(39, 9, "wallMC");
placeWall(39, 8, "wallMC");
placeWall(39, 7, "wallMC");
placeWall(39, 6, "wallMC");
placeWall(30, 5, "wallMC");
placeWall(31, 5, "wallMC");
placeWall(32, 5, "wallMC");
placeWall(33, 5, "wallMC");
placeWall(34, 5, "wallMC");
placeWall(35, 5, "wallMC");
placeWall(36, 5, "wallMC");
placeWall(37, 5, "wallMC");
placeWall(38, 5, "wallMC");
placeWall(39, 5, "wallMC");
placeWall(5, 24, "wallMC");
placeWall(6, 24, "wallMC");
placeWall(7, 24, "wallMC");
placeWall(8, 24, "wallMC");
placeWall(9, 24, "wallMC");
placeWall(10, 24, "wallMC");
placeWall(11, 24, "wallMC");
placeWall(12, 24, "wallMC");
placeWall(13, 24, "wallMC");
placeWall(14, 24, "wallMC");
placeWall(5, 23, "wallMC");
placeWall(5, 22, "wallMC");
placeWall(5, 21, "wallMC");
placeWall(5, 20, "wallMC");
placeWall(5, 19, "wallMC");
placeWall(5, 18, "wallMC");
placeWall(39, 18, "wallMC");
placeWall(39, 19, "wallMC");
placeWall(39, 20, "wallMC");
placeWall(39, 21, "wallMC");
placeWall(39, 22, "wallMC");
placeWall(39, 23, "wallMC");
placeWall(30, 24, "wallMC");
placeWall(31, 24, "wallMC");
placeWall(32, 24, "wallMC");
placeWall(33, 24, "wallMC");
placeWall(34, 24, "wallMC");
placeWall(35, 24, "wallMC");
placeWall(36, 24, "wallMC");
placeWall(37, 24, "wallMC");
placeWall(38, 24, "wallMC");
placeWall(39, 24, "wallMC");
placeWall(20, 12, "wallMC");
placeWall(21, 12, "wallMC");
placeWall(20, 13, "wallMC");
placeWall(21, 13, "wallMC");
placeWall(23, 12, "wallMC");
placeWall(24, 12, "wallMC");
placeWall(23, 13, "wallMC");
placeWall(24, 13, "wallMC");
placeWall(20, 15, "wallMC");
placeWall(21, 15, "wallMC");
placeWall(20, 16, "wallMC");
placeWall(21, 16, "wallMC");
placeWall(23, 15, "wallMC");
placeWall(24, 15, "wallMC");
placeWall(23, 16, "wallMC");
placeWall(24, 16, "wallMC");
}
function main() {
if ((moveTimer % moveSpeed) == 0) {
if (turnQueue.length > 0) {
var _local2 = turnQueue.pop();
if ((_local2 % 2) != (currentDirection % 2)) {
currentDirection = _local2;
}
}
x = x + xVelocity[currentDirection];
y = y + yVelocity[currentDirection];
moveTimer = 0;
if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) {
game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize});
game.s[snakeBlockCounter].gotoAndStop(2);
game.s[snakeBlockCounter - 1].gotoAndStop(1);
snakeBlockCounter++;
if (typeof(map[x][y]) == "movieclip") {
score = score + 10;
scoreTextField.text = "Score: " + score;
snakeEraseCounter = snakeEraseCounter - 8;
placeFood(map[x][y]);
}
map[x][y] = SNAKE_BLOCK;
var _local1 = game.s[snakeEraseCounter];
if (_local1) {
delete map[_local1._x / blockSize][_local1._y / blockSize];
_local1.removeMovieClip();
}
snakeEraseCounter++;
} else {
gameOver();
}
}
moveTimer++;
}
function gameOver() {
textMC.gotoAndStop("gameOver");
delete game.onEnterFrame;
gameRunning = false;
}
function placeFood(foodMC) {
do {
var xFood = random(gameWidth);
var yFood = random(gameHeight);
} while (map[xFood][yFood]);
if (foodMC == "new") {
foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter);
foodCounter++;
}
foodMC._x = xFood * blockSize;
foodMC._y = yFood * blockSize;
map[xFood][yFood] = foodMC;
}
if ((_root.music == "ON") && (_root.setmusic != "instant")) {
stopAllSounds();
menuMusic = new Sound();
menuMusic.attachSound("instant");
menuMusic.start(0, 100);
_root.setmusic = "instant";
}
blockSize = 8;
gameHeight = 30;
gameWidth = 45;
SNAKE_BLOCK = 1;
moveSpeed = 1;
keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = Key.getCode();
if ((_local1 > 36) && (_local1 < 41)) {
if (game.onEnterFrame != undefined) {
if ((_local1 - 37) != turnQueue[0]) {
turnQueue.unshift(_local1 - 37);
}
}
} else if (_local1 == 32) {
if (!gameRunning) {
startGame();
}
} else if (_local1 == 80) {
if (gameRunning) {
if (game.onEnterFrame) {
delete game.onEnterFrame;
textMC.gotoAndStop("paused");
} else {
game.onEnterFrame = main;
textMC.gotoAndStop("hide");
}
}
}
};
Key.addListener(keyListener);
Frame 113
function startGame() {
x = int(gameWidth / 2);
y = gameHeight - 2;
moveTimer = 0;
xVelocity = [-1, 0, 1, 0];
yVelocity = [0, -1, 0, 1];
map = new Array();
var _local1 = 0;
while (_local1 < gameWidth) {
map[_local1] = new Array();
_local1++;
}
turnQueue = new Array();
game.createEmptyMovieClip("food", 1);
game.createEmptyMovieClip("s", 2);
scoreTextField.text = "Score: 0";
foodCounter = 0;
snakeBlockCounter = 0;
currentDirection = 1;
snakeEraseCounter = -10;
score = 0;
placeFood("new");
textMC.gotoAndStop("hide");
game.onEnterFrame = main;
gameRunning = true;
}
function main() {
if ((moveTimer % moveSpeed) == 0) {
if (turnQueue.length > 0) {
var _local2 = turnQueue.pop();
if ((_local2 % 2) != (currentDirection % 2)) {
currentDirection = _local2;
}
}
x = x + xVelocity[currentDirection];
y = y + yVelocity[currentDirection];
moveTimer = 0;
if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) {
game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize});
game.s[snakeBlockCounter].gotoAndStop(2);
game.s[snakeBlockCounter - 1].gotoAndStop(1);
snakeBlockCounter++;
if (typeof(map[x][y]) == "movieclip") {
score = score + 10;
scoreTextField.text = "Score: " + score;
snakeEraseCounter = snakeEraseCounter - 3;
placeFood(map[x][y]);
}
map[x][y] = SNAKE_BLOCK;
var _local1 = game.s[snakeEraseCounter];
if (_local1) {
delete map[_local1._x / blockSize][_local1._y / blockSize];
_local1.removeMovieClip();
}
snakeEraseCounter++;
} else {
gameOver();
}
}
moveTimer++;
}
function gameOver() {
textMC.gotoAndStop("gameOver");
delete game.onEnterFrame;
gameRunning = false;
}
function placeFood(foodMC) {
do {
var xFood = random(gameWidth);
var yFood = random(gameHeight);
} while (map[xFood][yFood]);
if (foodMC == "new") {
foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter);
foodCounter++;
}
foodMC._x = xFood * blockSize;
foodMC._y = yFood * blockSize;
map[xFood][yFood] = foodMC;
}
if ((_root.music == "ON") && (_root.setmusic != "instant")) {
stopAllSounds();
menuMusic = new Sound();
menuMusic.attachSound("instant");
menuMusic.start(0, 100);
_root.setmusic = "instant";
}
blockSize = 8;
gameHeight = 30;
gameWidth = 45;
SNAKE_BLOCK = 1;
moveSpeed = 2;
keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = Key.getCode();
if ((_local1 > 36) && (_local1 < 41)) {
if (game.onEnterFrame != undefined) {
if ((_local1 - 37) != turnQueue[0]) {
turnQueue.unshift(_local1 - 37);
}
}
} else if (_local1 == 32) {
if (!gameRunning) {
startGame();
}
} else if (_local1 == 80) {
if (gameRunning) {
if (game.onEnterFrame) {
delete game.onEnterFrame;
textMC.gotoAndStop("paused");
} else {
game.onEnterFrame = main;
textMC.gotoAndStop("hide");
}
}
}
};
Key.addListener(keyListener);
Frame 114
function startGame() {
x = int(gameWidth / 2);
y = gameHeight - 2;
moveTimer = 0;
xVelocity = [-1, 0, 1, 0];
yVelocity = [0, -1, 0, 1];
map = new Array();
var _local1 = 0;
while (_local1 < gameWidth) {
map[_local1] = new Array();
_local1++;
}
turnQueue = new Array();
game.createEmptyMovieClip("food", 1);
game.createEmptyMovieClip("s", 2);
scoreTextField.text = "Score: 0";
foodCounter = 0;
snakeBlockCounter = 0;
currentDirection = 1;
snakeEraseCounter = -4;
score = 0;
placeFood("new");
textMC.gotoAndStop("hide");
game.onEnterFrame = main;
gameRunning = true;
game.createEmptyMovieClip("wall", 3);
wallCounter = 0;
placeWall(5, 5, "wallMC");
placeWall(7, 5, "wallMC");
placeWall(9, 5, "wallMC");
placeWall(11, 5, "wallMC");
placeWall(13, 5, "wallMC");
placeWall(15, 5, "wallMC");
placeWall(17, 5, "wallMC");
placeWall(19, 5, "wallMC");
placeWall(21, 5, "wallMC");
placeWall(23, 5, "wallMC");
placeWall(25, 5, "wallMC");
placeWall(27, 5, "wallMC");
placeWall(29, 5, "wallMC");
placeWall(31, 5, "wallMC");
placeWall(33, 5, "wallMC");
placeWall(35, 5, "wallMC");
placeWall(37, 5, "wallMC");
placeWall(39, 5, "wallMC");
placeWall(5, 24, "wallMC");
placeWall(6, 24, "wallMC");
placeWall(7, 24, "wallMC");
placeWall(8, 24, "wallMC");
placeWall(9, 24, "wallMC");
placeWall(10, 24, "wallMC");
placeWall(11, 24, "wallMC");
placeWall(12, 24, "wallMC");
placeWall(13, 24, "wallMC");
placeWall(14, 24, "wallMC");
placeWall(15, 24, "wallMC");
placeWall(16, 24, "wallMC");
placeWall(17, 24, "wallMC");
placeWall(18, 24, "wallMC");
placeWall(19, 24, "wallMC");
placeWall(20, 24, "wallMC");
placeWall(21, 24, "wallMC");
placeWall(23, 24, "wallMC");
placeWall(24, 24, "wallMC");
placeWall(25, 24, "wallMC");
placeWall(26, 24, "wallMC");
placeWall(27, 24, "wallMC");
placeWall(28, 24, "wallMC");
placeWall(29, 24, "wallMC");
placeWall(30, 24, "wallMC");
placeWall(31, 24, "wallMC");
placeWall(32, 24, "wallMC");
placeWall(33, 24, "wallMC");
placeWall(34, 24, "wallMC");
placeWall(35, 24, "wallMC");
placeWall(36, 24, "wallMC");
placeWall(37, 24, "wallMC");
placeWall(38, 24, "wallMC");
placeWall(39, 24, "wallMC");
}
function main() {
if ((moveTimer % moveSpeed) == 0) {
if (turnQueue.length > 0) {
var _local2 = turnQueue.pop();
if ((_local2 % 2) != (currentDirection % 2)) {
currentDirection = _local2;
}
}
x = x + xVelocity[currentDirection];
y = y + yVelocity[currentDirection];
moveTimer = 0;
if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) {
game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize});
game.s[snakeBlockCounter].gotoAndStop(2);
game.s[snakeBlockCounter - 1].gotoAndStop(1);
snakeBlockCounter++;
if (typeof(map[x][y]) == "movieclip") {
score = score + 10;
scoreTextField.text = "Score: " + score;
snakeEraseCounter = snakeEraseCounter - 4;
placeFood(map[x][y]);
}
map[x][y] = SNAKE_BLOCK;
var _local1 = game.s[snakeEraseCounter];
if (_local1) {
delete map[_local1._x / blockSize][_local1._y / blockSize];
_local1.removeMovieClip();
}
snakeEraseCounter++;
} else {
gameOver();
}
}
moveTimer++;
}
function gameOver() {
textMC.gotoAndStop("gameOver");
delete game.onEnterFrame;
gameRunning = false;
}
function placeFood(foodMC) {
do {
var xFood = random(gameWidth);
var yFood = random(gameHeight);
} while (map[xFood][yFood]);
if (foodMC == "new") {
foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter);
foodCounter++;
}
foodMC._x = xFood * blockSize;
foodMC._y = yFood * blockSize;
map[xFood][yFood] = foodMC;
}
if ((_root.music == "ON") && (_root.setmusic != "muziek2")) {
stopAllSounds();
menuMusic = new Sound();
menuMusic.attachSound("muziek2");
menuMusic.start(0, 100);
_root.setmusic = "muziek2";
}
blockSize = 8;
gameHeight = 30;
gameWidth = 45;
SNAKE_BLOCK = 1;
moveSpeed = 2;
keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = Key.getCode();
if ((_local1 > 36) && (_local1 < 41)) {
if (game.onEnterFrame != undefined) {
if ((_local1 - 37) != turnQueue[0]) {
turnQueue.unshift(_local1 - 37);
}
}
} else if (_local1 == 32) {
if (!gameRunning) {
startGame();
}
} else if (_local1 == 80) {
if (gameRunning) {
if (game.onEnterFrame) {
delete game.onEnterFrame;
textMC.gotoAndStop("paused");
} else {
game.onEnterFrame = main;
textMC.gotoAndStop("hide");
}
}
}
};
Key.addListener(keyListener);
Frame 115
function startGame() {
x = int(gameWidth / 2);
y = gameHeight - 2;
moveTimer = 0;
xVelocity = [-1, 0, 1, 0];
yVelocity = [0, -1, 0, 1];
map = new Array();
var _local1 = 0;
while (_local1 < gameWidth) {
map[_local1] = new Array();
_local1++;
}
turnQueue = new Array();
game.createEmptyMovieClip("food", 1);
game.createEmptyMovieClip("s", 2);
scoreTextField.text = "Score: 0";
foodCounter = 0;
snakeBlockCounter = 0;
currentDirection = 1;
snakeEraseCounter = -4;
score = 0;
placeFood("new");
textMC.gotoAndStop("hide");
game.onEnterFrame = main;
gameRunning = true;
game.createEmptyMovieClip("wall", 3);
wallCounter = 0;
placeWall(20, 0, "wallMC");
placeWall(20, 1, "wallMC");
placeWall(20, 2, "wallMC");
placeWall(20, 4, "wallMC");
placeWall(20, 5, "wallMC");
placeWall(20, 6, "wallMC");
placeWall(19, 6, "wallMC");
placeWall(18, 6, "wallMC");
placeWall(17, 6, "wallMC");
placeWall(16, 6, "wallMC");
placeWall(15, 6, "wallMC");
placeWall(14, 6, "wallMC");
placeWall(13, 6, "wallMC");
placeWall(12, 6, "wallMC");
placeWall(9, 6, "wallMC");
placeWall(8, 6, "wallMC");
placeWall(7, 6, "wallMC");
placeWall(6, 6, "wallMC");
placeWall(5, 6, "wallMC");
placeWall(4, 6, "wallMC");
placeWall(3, 6, "wallMC");
placeWall(2, 6, "wallMC");
placeWall(1, 6, "wallMC");
placeWall(0, 6, "wallMC");
placeWall(43, 29, "wallMC");
placeWall(43, 28, "wallMC");
placeWall(44, 28, "wallMC");
placeWall(44, 29, "wallMC");
placeWall(42, 29, "wallMC");
placeWall(44, 27, "wallMC");
placeWall(32, 15, "wallMC");
placeWall(32, 8, "wallMC");
placeWall(35, 24, "wallMC");
}
function main() {
if ((moveTimer % moveSpeed) == 0) {
if (turnQueue.length > 0) {
var _local2 = turnQueue.pop();
if ((_local2 % 2) != (currentDirection % 2)) {
currentDirection = _local2;
}
}
x = x + xVelocity[currentDirection];
y = y + yVelocity[currentDirection];
moveTimer = 0;
if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) {
game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize});
game.s[snakeBlockCounter].gotoAndStop(2);
game.s[snakeBlockCounter - 1].gotoAndStop(1);
snakeBlockCounter++;
if (typeof(map[x][y]) == "movieclip") {
score = score + 10;
scoreTextField.text = "Score: " + score;
snakeEraseCounter = snakeEraseCounter - 5;
placeFood(map[x][y]);
}
map[x][y] = SNAKE_BLOCK;
var _local1 = game.s[snakeEraseCounter];
if (_local1) {
delete map[_local1._x / blockSize][_local1._y / blockSize];
_local1.removeMovieClip();
}
snakeEraseCounter++;
} else {
gameOver();
}
}
moveTimer++;
}
function gameOver() {
textMC.gotoAndStop("gameOver");
delete game.onEnterFrame;
gameRunning = false;
}
function placeFood(foodMC) {
do {
var xFood = random(gameWidth);
var yFood = random(gameHeight);
} while (map[xFood][yFood]);
if (foodMC == "new") {
foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter);
foodCounter++;
}
foodMC._x = xFood * blockSize;
foodMC._y = yFood * blockSize;
map[xFood][yFood] = foodMC;
}
if ((_root.music == "ON") && (_root.setmusic != "ocean")) {
stopAllSounds();
menuMusic = new Sound();
menuMusic.attachSound("ocean");
menuMusic.start(0, 100);
_root.setmusic = "ocean";
}
blockSize = 8;
gameHeight = 30;
gameWidth = 45;
SNAKE_BLOCK = 1;
moveSpeed = 2;
keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = Key.getCode();
if ((_local1 > 36) && (_local1 < 41)) {
if (game.onEnterFrame != undefined) {
if ((_local1 - 37) != turnQueue[0]) {
turnQueue.unshift(_local1 - 37);
}
}
} else if (_local1 == 32) {
if (!gameRunning) {
startGame();
}
} else if (_local1 == 80) {
if (gameRunning) {
if (game.onEnterFrame) {
delete game.onEnterFrame;
textMC.gotoAndStop("paused");
} else {
game.onEnterFrame = main;
textMC.gotoAndStop("hide");
}
}
}
};
Key.addListener(keyListener);
Frame 116
function startGame() {
x = int(gameWidth / 2);
y = gameHeight - 2;
moveTimer = 0;
xVelocity = [-1, 0, 1, 0];
yVelocity = [0, -1, 0, 1];
map = new Array();
var _local1 = 0;
while (_local1 < gameWidth) {
map[_local1] = new Array();
_local1++;
}
turnQueue = new Array();
game.createEmptyMovieClip("food", 1);
game.createEmptyMovieClip("s", 2);
scoreTextField.text = "Score: 0";
foodCounter = 0;
snakeBlockCounter = 0;
currentDirection = 1;
snakeEraseCounter = -3;
score = 0;
placeFood("new");
textMC.gotoAndStop("hide");
game.onEnterFrame = main;
gameRunning = true;
game.createEmptyMovieClip("wall", 3);
wallCounter = 0;
placeWall(15, 9, "wallMC");
placeWall(19, 4, "wallMC");
placeWall(9, 13, "wallMC");
placeWall(21, 4, "wallMC");
placeWall(27, 19, "wallMC");
placeWall(7, 5, "wallMC");
placeWall(8, 18, "wallMC");
placeWall(12, 28, "wallMC");
placeWall(30, 25, "wallMC");
placeWall(31, 23, "wallMC");
placeWall(23, 6, "wallMC");
placeWall(33, 17, "wallMC");
placeWall(17, 17, "wallMC");
placeWall(35, 8, "wallMC");
placeWall(21, 29, "wallMC");
placeWall(13, 18, "wallMC");
}
function main() {
if ((moveTimer % moveSpeed) == 0) {
if (turnQueue.length > 0) {
var _local2 = turnQueue.pop();
if ((_local2 % 2) != (currentDirection % 2)) {
currentDirection = _local2;
}
}
x = x + xVelocity[currentDirection];
y = y + yVelocity[currentDirection];
moveTimer = 0;
if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) {
game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize});
game.s[snakeBlockCounter].gotoAndStop(2);
game.s[snakeBlockCounter - 1].gotoAndStop(1);
snakeBlockCounter++;
if (typeof(map[x][y]) == "movieclip") {
score = score + 10;
scoreTextField.text = "Score: " + score;
snakeEraseCounter = snakeEraseCounter - 7;
placeFood(map[x][y]);
}
map[x][y] = SNAKE_BLOCK;
var _local1 = game.s[snakeEraseCounter];
if (_local1) {
delete map[_local1._x / blockSize][_local1._y / blockSize];
_local1.removeMovieClip();
}
snakeEraseCounter++;
} else {
gameOver();
}
}
moveTimer++;
}
function gameOver() {
textMC.gotoAndStop("gameOver");
delete game.onEnterFrame;
gameRunning = false;
}
function placeFood(foodMC) {
do {
var xFood = random(gameWidth);
var yFood = random(gameHeight);
} while (map[xFood][yFood]);
if (foodMC == "new") {
foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter);
foodCounter++;
}
foodMC._x = xFood * blockSize;
foodMC._y = yFood * blockSize;
map[xFood][yFood] = foodMC;
}
if ((_root.music == "ON") && (_root.setmusic != "muziek")) {
stopAllSounds();
menuMusic = new Sound();
menuMusic.attachSound("muziek");
menuMusic.start(0, 100);
_root.setmusic = "muziek";
}
blockSize = 8;
gameHeight = 30;
gameWidth = 45;
SNAKE_BLOCK = 1;
moveSpeed = 2;
keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = Key.getCode();
if ((_local1 > 36) && (_local1 < 41)) {
if (game.onEnterFrame != undefined) {
if ((_local1 - 37) != turnQueue[0]) {
turnQueue.unshift(_local1 - 37);
}
}
} else if (_local1 == 32) {
if (!gameRunning) {
startGame();
}
} else if (_local1 == 80) {
if (gameRunning) {
if (game.onEnterFrame) {
delete game.onEnterFrame;
textMC.gotoAndStop("paused");
} else {
game.onEnterFrame = main;
textMC.gotoAndStop("hide");
}
}
}
};
Key.addListener(keyListener);
Frame 117
function startGame() {
x = int(gameWidth / 2);
y = gameHeight - 2;
moveTimer = 0;
xVelocity = [-1, 0, 1, 0];
yVelocity = [0, -1, 0, 1];
map = new Array();
var _local1 = 0;
while (_local1 < gameWidth) {
map[_local1] = new Array();
_local1++;
}
turnQueue = new Array();
game.createEmptyMovieClip("food", 1);
game.createEmptyMovieClip("s", 2);
scoreTextField.text = "Score: 0";
foodCounter = 0;
snakeBlockCounter = 0;
currentDirection = 1;
snakeEraseCounter = -1;
score = 0;
placeFood("new");
textMC.gotoAndStop("hide");
game.onEnterFrame = main;
gameRunning = true;
game.createEmptyMovieClip("wall", 3);
wallCounter = 0;
placeWall(5, 5, "wallMC");
placeWall(6, 5, "wallMC");
placeWall(7, 5, "wallMC");
placeWall(8, 5, "wallMC");
placeWall(9, 5, "wallMC");
placeWall(10, 5, "wallMC");
placeWall(11, 5, "wallMC");
placeWall(12, 5, "wallMC");
placeWall(13, 5, "wallMC");
placeWall(14, 5, "wallMC");
placeWall(5, 6, "wallMC");
placeWall(5, 7, "wallMC");
placeWall(5, 8, "wallMC");
placeWall(5, 9, "wallMC");
placeWall(5, 10, "wallMC");
placeWall(5, 11, "wallMC");
placeWall(39, 11, "wallMC");
placeWall(39, 10, "wallMC");
placeWall(39, 9, "wallMC");
placeWall(39, 8, "wallMC");
placeWall(39, 7, "wallMC");
placeWall(39, 6, "wallMC");
placeWall(30, 5, "wallMC");
placeWall(31, 5, "wallMC");
placeWall(32, 5, "wallMC");
placeWall(33, 5, "wallMC");
placeWall(34, 5, "wallMC");
placeWall(35, 5, "wallMC");
placeWall(36, 5, "wallMC");
placeWall(37, 5, "wallMC");
placeWall(38, 5, "wallMC");
placeWall(39, 5, "wallMC");
placeWall(5, 24, "wallMC");
placeWall(6, 24, "wallMC");
placeWall(7, 24, "wallMC");
placeWall(8, 24, "wallMC");
placeWall(9, 24, "wallMC");
placeWall(10, 24, "wallMC");
placeWall(11, 24, "wallMC");
placeWall(12, 24, "wallMC");
placeWall(13, 24, "wallMC");
placeWall(14, 24, "wallMC");
placeWall(5, 23, "wallMC");
placeWall(5, 22, "wallMC");
placeWall(5, 21, "wallMC");
placeWall(5, 20, "wallMC");
placeWall(5, 19, "wallMC");
placeWall(5, 18, "wallMC");
placeWall(39, 18, "wallMC");
placeWall(39, 19, "wallMC");
placeWall(39, 20, "wallMC");
placeWall(39, 21, "wallMC");
placeWall(39, 22, "wallMC");
placeWall(39, 23, "wallMC");
placeWall(30, 24, "wallMC");
placeWall(31, 24, "wallMC");
placeWall(32, 24, "wallMC");
placeWall(33, 24, "wallMC");
placeWall(34, 24, "wallMC");
placeWall(35, 24, "wallMC");
placeWall(36, 24, "wallMC");
placeWall(37, 24, "wallMC");
placeWall(38, 24, "wallMC");
placeWall(39, 24, "wallMC");
}
function main() {
if ((moveTimer % moveSpeed) == 0) {
if (turnQueue.length > 0) {
var _local2 = turnQueue.pop();
if ((_local2 % 2) != (currentDirection % 2)) {
currentDirection = _local2;
}
}
x = x + xVelocity[currentDirection];
y = y + yVelocity[currentDirection];
moveTimer = 0;
if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) {
game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize});
game.s[snakeBlockCounter].gotoAndStop(2);
game.s[snakeBlockCounter - 1].gotoAndStop(1);
snakeBlockCounter++;
if (typeof(map[x][y]) == "movieclip") {
score = score + 10;
scoreTextField.text = "Score: " + score;
snakeEraseCounter = snakeEraseCounter - 8;
placeFood(map[x][y]);
}
map[x][y] = SNAKE_BLOCK;
var _local1 = game.s[snakeEraseCounter];
if (_local1) {
delete map[_local1._x / blockSize][_local1._y / blockSize];
_local1.removeMovieClip();
}
snakeEraseCounter++;
} else {
gameOver();
}
}
moveTimer++;
}
function gameOver() {
textMC.gotoAndStop("gameOver");
delete game.onEnterFrame;
gameRunning = false;
}
function placeFood(foodMC) {
do {
var xFood = random(gameWidth);
var yFood = random(gameHeight);
} while (map[xFood][yFood]);
if (foodMC == "new") {
foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter);
foodCounter++;
}
foodMC._x = xFood * blockSize;
foodMC._y = yFood * blockSize;
map[xFood][yFood] = foodMC;
}
if ((_root.music == "ON") && (_root.setmusic != "pokemon")) {
stopAllSounds();
menuMusic = new Sound();
menuMusic.attachSound("pokemon");
menuMusic.start(0, 100);
_root.setmusic = "pokemon";
}
blockSize = 8;
gameHeight = 30;
gameWidth = 45;
SNAKE_BLOCK = 1;
moveSpeed = 1;
keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = Key.getCode();
if ((_local1 > 36) && (_local1 < 41)) {
if (game.onEnterFrame != undefined) {
if ((_local1 - 37) != turnQueue[0]) {
turnQueue.unshift(_local1 - 37);
}
}
} else if (_local1 == 32) {
if (!gameRunning) {
startGame();
}
} else if (_local1 == 80) {
if (gameRunning) {
if (game.onEnterFrame) {
delete game.onEnterFrame;
textMC.gotoAndStop("paused");
} else {
game.onEnterFrame = main;
textMC.gotoAndStop("hide");
}
}
}
};
Key.addListener(keyListener);
Frame 118
function startGame() {
x = int(gameWidth / 2);
y = gameHeight - 2;
moveTimer = 0;
xVelocity = [-1, 0, 1, 0];
yVelocity = [0, -1, 0, 1];
map = new Array();
var _local1 = 0;
while (_local1 < gameWidth) {
map[_local1] = new Array();
_local1++;
}
turnQueue = new Array();
game.createEmptyMovieClip("food", 1);
game.createEmptyMovieClip("s", 2);
scoreTextField.text = "Score: 0";
foodCounter = 0;
snakeBlockCounter = 0;
currentDirection = 1;
snakeEraseCounter = -1;
score = 0;
placeFood("new");
textMC.gotoAndStop("hide");
game.onEnterFrame = main;
gameRunning = true;
game.createEmptyMovieClip("wall", 3);
wallCounter = 0;
placeWall(0, 0, "wallMC");
placeWall(0, 1, "wallMC");
placeWall(1, 0, "wallMC");
placeWall(1, 1, "wallMC");
placeWall(43, 0, "wallMC");
placeWall(44, 0, "wallMC");
placeWall(43, 1, "wallMC");
placeWall(44, 1, "wallMC");
placeWall(0, 28, "wallMC");
placeWall(0, 29, "wallMC");
placeWall(1, 28, "wallMC");
placeWall(1, 29, "wallMC");
placeWall(43, 28, "wallMC");
placeWall(43, 29, "wallMC");
placeWall(44, 28, "wallMC");
placeWall(44, 29, "wallMC");
placeWall(21, 0, "wallMC");
placeWall(21, 1, "wallMC");
placeWall(21, 2, "wallMC");
placeWall(21, 3, "wallMC");
placeWall(21, 4, "wallMC");
placeWall(21, 5, "wallMC");
placeWall(21, 6, "wallMC");
placeWall(21, 9, "wallMC");
placeWall(21, 10, "wallMC");
placeWall(21, 11, "wallMC");
placeWall(21, 12, "wallMC");
placeWall(21, 13, "wallMC");
placeWall(21, 14, "wallMC");
placeWall(21, 15, "wallMC");
placeWall(21, 16, "wallMC");
placeWall(21, 17, "wallMC");
placeWall(21, 18, "wallMC");
placeWall(21, 19, "wallMC");
placeWall(21, 20, "wallMC");
placeWall(21, 23, "wallMC");
placeWall(21, 24, "wallMC");
placeWall(21, 25, "wallMC");
placeWall(21, 26, "wallMC");
placeWall(21, 27, "wallMC");
placeWall(21, 28, "wallMC");
placeWall(21, 29, "wallMC");
placeWall(22, 15, "wallMC");
placeWall(23, 15, "wallMC");
placeWall(24, 15, "wallMC");
placeWall(25, 15, "wallMC");
placeWall(26, 15, "wallMC");
placeWall(27, 15, "wallMC");
placeWall(28, 15, "wallMC");
placeWall(29, 15, "wallMC");
placeWall(30, 15, "wallMC");
placeWall(31, 15, "wallMC");
placeWall(32, 15, "wallMC");
placeWall(33, 15, "wallMC");
placeWall(34, 15, "wallMC");
placeWall(35, 15, "wallMC");
placeWall(36, 15, "wallMC");
placeWall(37, 15, "wallMC");
placeWall(38, 15, "wallMC");
placeWall(39, 15, "wallMC");
placeWall(40, 15, "wallMC");
placeWall(41, 15, "wallMC");
placeWall(42, 15, "wallMC");
placeWall(43, 15, "wallMC");
placeWall(44, 15, "wallMC");
}
function main() {
if ((moveTimer % moveSpeed) == 0) {
if (turnQueue.length > 0) {
var _local2 = turnQueue.pop();
if ((_local2 % 2) != (currentDirection % 2)) {
currentDirection = _local2;
}
}
x = x + xVelocity[currentDirection];
y = y + yVelocity[currentDirection];
moveTimer = 0;
if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) {
game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize});
game.s[snakeBlockCounter].gotoAndStop(2);
game.s[snakeBlockCounter - 1].gotoAndStop(1);
snakeBlockCounter++;
if (typeof(map[x][y]) == "movieclip") {
score = score + 10;
scoreTextField.text = "Score: " + score;
snakeEraseCounter = snakeEraseCounter - 8;
placeFood(map[x][y]);
}
map[x][y] = SNAKE_BLOCK;
var _local1 = game.s[snakeEraseCounter];
if (_local1) {
delete map[_local1._x / blockSize][_local1._y / blockSize];
_local1.removeMovieClip();
}
snakeEraseCounter++;
} else {
gameOver();
}
}
moveTimer++;
}
function gameOver() {
textMC.gotoAndStop("gameOver");
delete game.onEnterFrame;
gameRunning = false;
}
function placeFood(foodMC) {
do {
var xFood = random(gameWidth);
var yFood = random(gameHeight);
} while (map[xFood][yFood]);
if (foodMC == "new") {
foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter);
foodCounter++;
}
foodMC._x = xFood * blockSize;
foodMC._y = yFood * blockSize;
map[xFood][yFood] = foodMC;
}
if ((_root.music == "ON") && (_root.setmusic != "starfox")) {
stopAllSounds();
menuMusic = new Sound();
menuMusic.attachSound("starfox");
menuMusic.start(0, 100);
_root.setmusic = "starfox";
}
blockSize = 8;
gameHeight = 30;
gameWidth = 45;
SNAKE_BLOCK = 1;
moveSpeed = 1;
keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = Key.getCode();
if ((_local1 > 36) && (_local1 < 41)) {
if (game.onEnterFrame != undefined) {
if ((_local1 - 37) != turnQueue[0]) {
turnQueue.unshift(_local1 - 37);
}
}
} else if (_local1 == 32) {
if (!gameRunning) {
startGame();
}
} else if (_local1 == 80) {
if (gameRunning) {
if (game.onEnterFrame) {
delete game.onEnterFrame;
textMC.gotoAndStop("paused");
} else {
game.onEnterFrame = main;
textMC.gotoAndStop("hide");
}
}
}
};
Key.addListener(keyListener);
Frame 119
function startGame() {
x = int(gameWidth / 2);
y = gameHeight - 2;
moveTimer = 0;
xVelocity = [-1, 0, 1, 0];
yVelocity = [0, -1, 0, 1];
map = new Array();
var _local1 = 0;
while (_local1 < gameWidth) {
map[_local1] = new Array();
_local1++;
}
turnQueue = new Array();
game.createEmptyMovieClip("food", 1);
game.createEmptyMovieClip("s", 2);
scoreTextField.text = "Score: 0";
foodCounter = 0;
snakeBlockCounter = 0;
currentDirection = 1;
snakeEraseCounter = -1;
score = 0;
placeFood("new");
textMC.gotoAndStop("hide");
game.onEnterFrame = main;
gameRunning = true;
game.createEmptyMovieClip("wall", 3);
wallCounter = 0;
placeWall(0, 0, "wallMC");
placeWall(0, 1, "wallMC");
placeWall(1, 0, "wallMC");
placeWall(1, 1, "wallMC");
placeWall(43, 0, "wallMC");
placeWall(44, 0, "wallMC");
placeWall(43, 1, "wallMC");
placeWall(44, 1, "wallMC");
placeWall(0, 28, "wallMC");
placeWall(0, 29, "wallMC");
placeWall(1, 28, "wallMC");
placeWall(1, 29, "wallMC");
placeWall(43, 28, "wallMC");
placeWall(43, 29, "wallMC");
placeWall(44, 28, "wallMC");
placeWall(44, 29, "wallMC");
placeWall(21, 15, "wallMC");
placeWall(21, 16, "wallMC");
placeWall(21, 17, "wallMC");
placeWall(21, 18, "wallMC");
placeWall(21, 19, "wallMC");
placeWall(21, 20, "wallMC");
placeWall(21, 23, "wallMC");
placeWall(21, 24, "wallMC");
placeWall(21, 25, "wallMC");
placeWall(21, 26, "wallMC");
placeWall(21, 27, "wallMC");
placeWall(21, 28, "wallMC");
placeWall(21, 29, "wallMC");
placeWall(22, 15, "wallMC");
placeWall(23, 15, "wallMC");
placeWall(24, 15, "wallMC");
placeWall(25, 15, "wallMC");
placeWall(26, 15, "wallMC");
placeWall(27, 15, "wallMC");
placeWall(28, 15, "wallMC");
placeWall(29, 15, "wallMC");
placeWall(30, 15, "wallMC");
placeWall(31, 15, "wallMC");
placeWall(32, 15, "wallMC");
placeWall(33, 15, "wallMC");
placeWall(34, 15, "wallMC");
placeWall(35, 15, "wallMC");
placeWall(36, 15, "wallMC");
placeWall(37, 15, "wallMC");
placeWall(38, 15, "wallMC");
placeWall(39, 15, "wallMC");
placeWall(40, 15, "wallMC");
placeWall(41, 15, "wallMC");
placeWall(42, 15, "wallMC");
placeWall(43, 15, "wallMC");
placeWall(44, 15, "wallMC");
}
function main() {
if ((moveTimer % moveSpeed) == 0) {
if (turnQueue.length > 0) {
var _local2 = turnQueue.pop();
if ((_local2 % 2) != (currentDirection % 2)) {
currentDirection = _local2;
}
}
x = x + xVelocity[currentDirection];
y = y + yVelocity[currentDirection];
moveTimer = 0;
if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) {
game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize});
game.s[snakeBlockCounter].gotoAndStop(2);
game.s[snakeBlockCounter - 1].gotoAndStop(1);
snakeBlockCounter++;
if (typeof(map[x][y]) == "movieclip") {
score = score + 10;
scoreTextField.text = "Score: " + score;
snakeEraseCounter = snakeEraseCounter - 8;
placeFood(map[x][y]);
}
map[x][y] = SNAKE_BLOCK;
var _local1 = game.s[snakeEraseCounter];
if (_local1) {
delete map[_local1._x / blockSize][_local1._y / blockSize];
_local1.removeMovieClip();
}
snakeEraseCounter++;
} else {
gameOver();
}
}
moveTimer++;
}
function gameOver() {
textMC.gotoAndStop("gameOver");
delete game.onEnterFrame;
gameRunning = false;
}
function placeFood(foodMC) {
do {
var xFood = random(gameWidth);
var yFood = random(gameHeight);
} while (map[xFood][yFood]);
if (foodMC == "new") {
foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter);
foodCounter++;
}
foodMC._x = xFood * blockSize;
foodMC._y = yFood * blockSize;
map[xFood][yFood] = foodMC;
}
if ((_root.music == "ON") && (_root.setmusic != "muziek")) {
stopAllSounds();
menuMusic = new Sound();
menuMusic.attachSound("muziek");
menuMusic.start(0, 100);
_root.setmusic = "muziek";
}
blockSize = 8;
gameHeight = 30;
gameWidth = 45;
SNAKE_BLOCK = 1;
moveSpeed = 2;
keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = Key.getCode();
if ((_local1 > 36) && (_local1 < 41)) {
if (game.onEnterFrame != undefined) {
if ((_local1 - 37) != turnQueue[0]) {
turnQueue.unshift(_local1 - 37);
}
}
} else if (_local1 == 32) {
if (!gameRunning) {
startGame();
}
} else if (_local1 == 80) {
if (gameRunning) {
if (game.onEnterFrame) {
delete game.onEnterFrame;
textMC.gotoAndStop("paused");
} else {
game.onEnterFrame = main;
textMC.gotoAndStop("hide");
}
}
}
};
Key.addListener(keyListener);
Frame 120
function startGame() {
x = int(gameWidth / 2);
y = gameHeight - 2;
moveTimer = 0;
xVelocity = [-1, 0, 1, 0];
yVelocity = [0, -1, 0, 1];
map = new Array();
var _local1 = 0;
while (_local1 < gameWidth) {
map[_local1] = new Array();
_local1++;
}
turnQueue = new Array();
game.createEmptyMovieClip("food", 1);
game.createEmptyMovieClip("s", 2);
scoreTextField.text = "Score: 0";
foodCounter = 0;
snakeBlockCounter = 0;
currentDirection = 1;
snakeEraseCounter = -1;
score = 0;
placeFood("new");
textMC.gotoAndStop("hide");
game.onEnterFrame = main;
gameRunning = true;
game.createEmptyMovieClip("wall", 3);
wallCounter = 0;
placeWall(4, 10, "wallMC");
placeWall(5, 10, "wallMC");
placeWall(6, 10, "wallMC");
placeWall(7, 10, "wallMC");
placeWall(8, 10, "wallMC");
placeWall(9, 10, "wallMC");
placeWall(10, 10, "wallMC");
placeWall(11, 10, "wallMC");
placeWall(12, 10, "wallMC");
placeWall(13, 10, "wallMC");
placeWall(14, 10, "wallMC");
placeWall(15, 10, "wallMC");
placeWall(4, 27, "wallMC");
placeWall(5, 27, "wallMC");
placeWall(6, 27, "wallMC");
placeWall(7, 27, "wallMC");
placeWall(8, 27, "wallMC");
placeWall(9, 27, "wallMC");
placeWall(10, 27, "wallMC");
placeWall(11, 27, "wallMC");
placeWall(12, 27, "wallMC");
placeWall(13, 27, "wallMC");
placeWall(14, 27, "wallMC");
placeWall(15, 27, "wallMC");
placeWall(41, 17, "wallMC");
placeWall(40, 17, "wallMC");
placeWall(39, 17, "wallMC");
placeWall(38, 17, "wallMC");
placeWall(37, 17, "wallMC");
placeWall(36, 17, "wallMC");
placeWall(35, 17, "wallMC");
placeWall(34, 17, "wallMC");
placeWall(33, 17, "wallMC");
placeWall(32, 17, "wallMC");
placeWall(31, 17, "wallMC");
placeWall(30, 17, "wallMC");
}
function main() {
if ((moveTimer % moveSpeed) == 0) {
if (turnQueue.length > 0) {
var _local2 = turnQueue.pop();
if ((_local2 % 2) != (currentDirection % 2)) {
currentDirection = _local2;
}
}
x = x + xVelocity[currentDirection];
y = y + yVelocity[currentDirection];
moveTimer = 0;
if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) {
game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize});
game.s[snakeBlockCounter].gotoAndStop(2);
game.s[snakeBlockCounter - 1].gotoAndStop(1);
snakeBlockCounter++;
if (typeof(map[x][y]) == "movieclip") {
score = score + 10;
scoreTextField.text = "Score: " + score;
snakeEraseCounter = snakeEraseCounter - 8;
placeFood(map[x][y]);
}
map[x][y] = SNAKE_BLOCK;
var _local1 = game.s[snakeEraseCounter];
if (_local1) {
delete map[_local1._x / blockSize][_local1._y / blockSize];
_local1.removeMovieClip();
}
snakeEraseCounter++;
} else {
gameOver();
}
}
moveTimer++;
}
function gameOver() {
textMC.gotoAndStop("gameOver");
delete game.onEnterFrame;
gameRunning = false;
}
function placeFood(foodMC) {
do {
var xFood = random(gameWidth);
var yFood = random(gameHeight);
} while (map[xFood][yFood]);
if (foodMC == "new") {
foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter);
foodCounter++;
}
foodMC._x = xFood * blockSize;
foodMC._y = yFood * blockSize;
map[xFood][yFood] = foodMC;
}
if ((_root.music == "ON") && (_root.setmusic != "muziek2")) {
stopAllSounds();
menuMusic = new Sound();
menuMusic.attachSound("muziek2");
menuMusic.start(0, 100);
_root.setmusic = "muziek2";
}
blockSize = 8;
gameHeight = 30;
gameWidth = 45;
SNAKE_BLOCK = 1;
moveSpeed = 2;
keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = Key.getCode();
if ((_local1 > 36) && (_local1 < 41)) {
if (game.onEnterFrame != undefined) {
if ((_local1 - 37) != turnQueue[0]) {
turnQueue.unshift(_local1 - 37);
}
}
} else if (_local1 == 32) {
if (!gameRunning) {
startGame();
}
} else if (_local1 == 80) {
if (gameRunning) {
if (game.onEnterFrame) {
delete game.onEnterFrame;
textMC.gotoAndStop("paused");
} else {
game.onEnterFrame = main;
textMC.gotoAndStop("hide");
}
}
}
};
Key.addListener(keyListener);
Frame 121
function startGame() {
x = int(gameWidth / 2);
y = gameHeight - 2;
moveTimer = 0;
xVelocity = [-1, 0, 1, 0];
yVelocity = [0, -1, 0, 1];
map = new Array();
var _local1 = 0;
while (_local1 < gameWidth) {
map[_local1] = new Array();
_local1++;
}
turnQueue = new Array();
game.createEmptyMovieClip("food", 1);
game.createEmptyMovieClip("s", 2);
scoreTextField.text = "Score: 0";
foodCounter = 0;
snakeBlockCounter = 0;
currentDirection = 1;
snakeEraseCounter = -1;
score = 0;
placeFood("new");
textMC.gotoAndStop("hide");
game.onEnterFrame = main;
gameRunning = true;
game.createEmptyMovieClip("wall", 3);
wallCounter = 0;
placeWall(3, 3, "wallMC");
placeWall(3, 4, "wallMC");
placeWall(3, 5, "wallMC");
placeWall(3, 6, "wallMC");
placeWall(3, 7, "wallMC");
placeWall(3, 8, "wallMC");
placeWall(3, 9, "wallMC");
placeWall(3, 10, "wallMC");
placeWall(3, 11, "wallMC");
placeWall(3, 12, "wallMC");
placeWall(3, 13, "wallMC");
placeWall(3, 14, "wallMC");
placeWall(4, 3, "wallMC");
placeWall(5, 3, "wallMC");
placeWall(6, 3, "wallMC");
placeWall(7, 3, "wallMC");
placeWall(8, 3, "wallMC");
placeWall(9, 3, "wallMC");
placeWall(10, 3, "wallMC");
placeWall(11, 3, "wallMC");
placeWall(12, 3, "wallMC");
placeWall(13, 3, "wallMC");
placeWall(13, 2, "wallMC");
placeWall(13, 4, "wallMC");
placeWall(13, 15, "wallMC");
placeWall(13, 16, "wallMC");
placeWall(13, 17, "wallMC");
placeWall(13, 18, "wallMC");
placeWall(13, 19, "wallMC");
placeWall(13, 20, "wallMC");
placeWall(13, 21, "wallMC");
placeWall(13, 22, "wallMC");
placeWall(13, 23, "wallMC");
placeWall(13, 24, "wallMC");
placeWall(13, 25, "wallMC");
placeWall(13, 26, "wallMC");
placeWall(3, 15, "wallMC");
placeWall(4, 15, "wallMC");
placeWall(5, 15, "wallMC");
placeWall(6, 15, "wallMC");
placeWall(7, 15, "wallMC");
placeWall(8, 15, "wallMC");
placeWall(9, 15, "wallMC");
placeWall(10, 15, "wallMC");
placeWall(11, 15, "wallMC");
placeWall(12, 15, "wallMC");
placeWall(13, 15, "wallMC");
placeWall(3, 27, "wallMC");
placeWall(4, 27, "wallMC");
placeWall(5, 27, "wallMC");
placeWall(6, 27, "wallMC");
placeWall(7, 27, "wallMC");
placeWall(8, 27, "wallMC");
placeWall(9, 27, "wallMC");
placeWall(10, 27, "wallMC");
placeWall(11, 27, "wallMC");
placeWall(12, 27, "wallMC");
placeWall(13, 27, "wallMC");
placeWall(3, 26, "wallMC");
placeWall(3, 28, "wallMC");
placeWall(31, 3, "wallMC");
placeWall(31, 4, "wallMC");
placeWall(31, 5, "wallMC");
placeWall(31, 6, "wallMC");
placeWall(31, 7, "wallMC");
placeWall(31, 8, "wallMC");
placeWall(31, 9, "wallMC");
placeWall(31, 10, "wallMC");
placeWall(31, 11, "wallMC");
placeWall(31, 12, "wallMC");
placeWall(31, 13, "wallMC");
placeWall(31, 14, "wallMC");
placeWall(31, 15, "wallMC");
placeWall(31, 3, "wallMC");
placeWall(32, 3, "wallMC");
placeWall(33, 3, "wallMC");
placeWall(34, 3, "wallMC");
placeWall(35, 3, "wallMC");
placeWall(36, 3, "wallMC");
placeWall(37, 3, "wallMC");
placeWall(38, 3, "wallMC");
placeWall(39, 3, "wallMC");
placeWall(40, 3, "wallMC");
placeWall(41, 2, "wallMC");
placeWall(41, 3, "wallMC");
placeWall(41, 4, "wallMC");
placeWall(31, 15, "wallMC");
placeWall(32, 15, "wallMC");
placeWall(33, 15, "wallMC");
placeWall(34, 15, "wallMC");
placeWall(35, 15, "wallMC");
placeWall(36, 15, "wallMC");
placeWall(37, 15, "wallMC");
placeWall(38, 15, "wallMC");
placeWall(39, 15, "wallMC");
placeWall(40, 15, "wallMC");
placeWall(41, 15, "wallMC");
placeWall(41, 15, "wallMC");
placeWall(41, 16, "wallMC");
placeWall(41, 17, "wallMC");
placeWall(41, 18, "wallMC");
placeWall(41, 19, "wallMC");
placeWall(41, 20, "wallMC");
placeWall(41, 21, "wallMC");
placeWall(41, 22, "wallMC");
placeWall(41, 23, "wallMC");
placeWall(41, 24, "wallMC");
placeWall(41, 25, "wallMC");
placeWall(41, 26, "wallMC");
placeWall(41, 27, "wallMC");
placeWall(31, 27, "wallMC");
placeWall(32, 27, "wallMC");
placeWall(33, 27, "wallMC");
placeWall(34, 27, "wallMC");
placeWall(35, 27, "wallMC");
placeWall(36, 27, "wallMC");
placeWall(37, 27, "wallMC");
placeWall(38, 27, "wallMC");
placeWall(39, 27, "wallMC");
placeWall(40, 27, "wallMC");
placeWall(41, 27, "wallMC");
placeWall(31, 26, "wallMC");
placeWall(31, 28, "wallMC");
}
function main() {
if ((moveTimer % moveSpeed) == 0) {
if (turnQueue.length > 0) {
var _local2 = turnQueue.pop();
if ((_local2 % 2) != (currentDirection % 2)) {
currentDirection = _local2;
}
}
x = x + xVelocity[currentDirection];
y = y + yVelocity[currentDirection];
moveTimer = 0;
if (((((map[x][y] != SNAKE_BLOCK) && (x > -1)) && (x < gameWidth)) && (y > -1)) && (y < gameHeight)) {
game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x:x * blockSize, _y:y * blockSize});
game.s[snakeBlockCounter].gotoAndStop(2);
game.s[snakeBlockCounter - 1].gotoAndStop(1);
snakeBlockCounter++;
if (typeof(map[x][y]) == "movieclip") {
score = score + 10;
scoreTextField.text = "Score: " + score;
snakeEraseCounter = snakeEraseCounter - 12;
placeFood(map[x][y]);
}
map[x][y] = SNAKE_BLOCK;
var _local1 = game.s[snakeEraseCounter];
if (_local1) {
delete map[_local1._x / blockSize][_local1._y / blockSize];
_local1.removeMovieClip();
}
snakeEraseCounter++;
} else {
gameOver();
}
}
moveTimer++;
}
function gameOver() {
textMC.gotoAndStop("gameOver");
delete game.onEnterFrame;
gameRunning = false;
}
function placeFood(foodMC) {
do {
var xFood = random(gameWidth);
var yFood = random(gameHeight);
} while (map[xFood][yFood]);
if (foodMC == "new") {
foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter);
foodCounter++;
}
foodMC._x = xFood * blockSize;
foodMC._y = yFood * blockSize;
map[xFood][yFood] = foodMC;
}
if ((_root.music == "ON") && (_root.setmusic != "seagal")) {
stopAllSounds();
menuMusic = new Sound();
menuMusic.attachSound("seagal");
menuMusic.start(0, 100);
_root.setmusic = "seagal";
}
blockSize = 8;
gameHeight = 30;
gameWidth = 45;
SNAKE_BLOCK = 1;
moveSpeed = 2;
keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = Key.getCode();
if ((_local1 > 36) && (_local1 < 41)) {
if (game.onEnterFrame != undefined) {
if ((_local1 - 37) != turnQueue[0]) {
turnQueue.unshift(_local1 - 37);
}
}
} else if (_local1 == 32) {
if (!gameRunning) {
startGame();
}
} else if (_local1 == 80) {
if (gameRunning) {
if (game.onEnterFrame) {
delete game.onEnterFrame;
textMC.gotoAndStop("paused");
} else {
game.onEnterFrame = main;
textMC.gotoAndStop("hide");
}
}
}
};
Key.addListener(keyListener);
Symbol 3 MovieClip [snakeMC] Frame 1
stop();
Symbol 3 MovieClip [snakeMC] Frame 2
stop();
Symbol 12 MovieClip [RemotingDebugClasses] Frame 1
#initclip 57
Object.registerClass("RemotingDebugClasses", mx.remoting.DebugClasses);
#endinitclip
preview._visible = false;
stop();
Symbol 57 MovieClip [RemotingClasses] Frame 1
#initclip 58
Object.registerClass("RemotingClasses", mx.remoting.ApiClasses);
#endinitclip
preview._visible = false;
stop();
Symbol 77 MovieClip Frame 1
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
gotoAndStop (2);
}
}
Symbol 77 MovieClip Frame 2
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 2
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 5;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 3
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 3
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 10;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 4
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 4
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 15;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 5
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 5
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 20;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 6
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 6
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 25;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 7
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 7
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 30;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 8
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 8
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 35;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 9
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 9
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 40;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 10
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 10
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 45;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 11
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 11
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 50;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 12
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 12
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 55;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 13
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 13
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 60;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 14
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 14
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 65;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 15
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 15
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 70;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 16
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 16
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 75;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 17
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 17
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 80;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 18
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 18
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 85;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 19
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 19
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 90;
this._alpha = 16 * loadProgress;
if (loadProgress >= 5) {
nextFrame();
}
}
Symbol 77 MovieClip Frame 20
stop();
Instance of Symbol 75 MovieClip in Symbol 77 MovieClip Frame 20
onClipEvent (enterFrame) {
loadProgress = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 95;
this._alpha = 16 * loadProgress;
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.gotoAndPlay("loaded");
}
}
Symbol 77 MovieClip Frame 21
stop();
Symbol 84 MovieClip Frame 1
var pc = 0;
this.onEnterFrame = function () {
pc = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
this.pc_txt.text = pc + "%";
this.preloaderBalk.gotoAndStop(Math.floor(pc / 5) + 1);
if (pc == 100) {
delete this.onEnterFrame;
_root.gotoAndStop(2);
}
};
Symbol 8 MovieClip [__Packages.mx.remoting.DebugClasses] Frame 0
class mx.remoting.DebugClasses extends MovieClip
{
function DebugClasses () {
super();
}
}
Symbol 13 MovieClip [__Packages.mx.services.Log] Frame 0
class mx.services.Log
{
var level, name;
function Log (logLevel, name) {
level = ((logLevel == undefined) ? (BRIEF) : (logLevel));
this.name = ((name == undefined) ? "" : (name));
}
function logInfo(msg, level) {
var _local1 = this;
var _local2 = level;
if (_local2 == undefined) {
_local2 = BRIEF;
}
if (_local2 <= _local1.level) {
if (_local2 == DEBUG) {
_local1.onLog((((_local1.getDateString() + " [DEBUG] ") + _local1.name) + ": ") + msg);
} else {
_local1.onLog((((_local1.getDateString() + " [INFO] ") + _local1.name) + ": ") + msg);
}
}
}
function logDebug(msg) {
logInfo(msg, DEBUG);
}
function getDateString() {
var _local1 = new Date();
return(((((((((_local1.getMonth() + 1) + "/") + _local1.getDate()) + " ") + _local1.getHours()) + ":") + _local1.getMinutes()) + ":") + _local1.getSeconds());
}
function onLog(message) {
trace(message);
}
static var NONE = -1;
static var BRIEF = 0;
static var VERBOSE = 1;
static var DEBUG = 2;
}
Symbol 14 MovieClip [__Packages.mx.remoting.Connection] Frame 0
class mx.remoting.Connection extends NetConnection
{
var uri;
function Connection () {
super();
}
function getService(serviceName, client) {
var _local1 = new mx.remoting.NetServiceProxy(this, serviceName, client);
return(_local1);
}
function setCredentials(userId, password) {
addHeader("Credentials", false, {userid:userId, password:password});
}
function clone() {
var _local1 = new mx.remoting.Connection();
_local1.connect(uri);
return(_local1);
}
function getDebugId() {
return(null);
}
function getDebugConfig() {
return(null);
}
function setDebugId(id) {
}
function call() {
super.call.apply(super, arguments);
}
function close() {
super.close();
}
function connect(url) {
return(super.connect(url));
}
function addHeader(name, mustUnderstand, obj) {
super.addHeader(name, mustUnderstand, obj);
}
function trace(traceObj) {
}
function AppendToGatewayUrl(urlSuffix) {
var _local1 = this;
_local1.__urlSuffix = urlSuffix;
if (_local1.__originalUrl == null) {
_local1.__originalUrl = _local1.uri;
}
var _local2 = _local1.__originalUrl + urlSuffix;
_local1.connect(_local2);
}
function ReplaceGatewayUrl(newUrl) {
connect(newUrl);
}
function RequestPersistentHeader(info) {
var _local1 = info;
addHeader(_local1.name, _local1.mustUnderstand, _local1.data);
}
static var version = "1.2.0.124";
}
Symbol 15 MovieClip [__Packages.mx.remoting.NetServices] Frame 0
class mx.remoting.NetServices extends Object
{
static var defaultGatewayUrl, logger, traceNetServices;
function NetServices () {
super();
}
static function setDefaultGatewayUrl(url) {
defaultGatewayUrl = url;
}
static function setGatewayUrl(url) {
gatewayUrl = url;
}
static function createGatewayConnection(url, infoLogger) {
var _local1 = url;
logger = infoLogger;
if (_local1 == undefined) {
_local1 = gatewayUrl;
if (_local1 == undefined) {
_local1 = defaultGatewayUrl;
}
}
if (_local1 == undefined) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is undefined");
logger.logInfo(("NetServices: createGatewayConnection - gateway url <" + _local1) + "> is undefined", mx.services.Log.DEBUG);
return(null);
}
var _local2 = new mx.remoting.Connection();
_local2.connect(_local1);
__sharedConnections[_local1] = _local2;
return(_local2);
}
static function getConnection(uri) {
return(__sharedConnections[uri]);
}
static function getHostUrl() {
var _local2 = _root;
if (!isHttpUrl(_local2._url)) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is invalid");
return(null);
}
var _local1 = _local2._url.indexOf("/", 8);
if (_local1 < 0) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is invalid");
return(null);
}
return(_local2._url.substring(0, _local1));
}
static function isHttpUrl(url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
}
static function getHttpUrl(url) {
var _local1 = url;
if (!isHttpUrl(_local1)) {
_local1 = getHostUrl() + _local1;
}
return(_local1);
}
static function trace(who, severity, number, message) {
traceNetServices(who, severity, number, message);
}
static var version = "1.2.0.124";
static var gatewayUrl = _root.gatewayUrl;
static var __sharedConnections = new Array();
}
Symbol 16 MovieClip [__Packages.mx.data.DataRange] Frame 0
interface mx.data.DataRange{}
Symbol 17 MovieClip [__Packages.mx.data.PageableData] Frame 0
interface mx.data.PageableData{}
Symbol 18 MovieClip [__Packages.mx.data.PageableList] Frame 0
interface mx.data.PageableList{}
Symbol 19 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
var _local3 = queue;
if (_local3 != undefined) {
var l = _local3.length;
var _local1;
_local1 = 0;
while (_local1 < l) {
var _local2 = _local3[_local1];
if (_local2 == handler) {
_local3.splice(_local1, 1);
return;
}
_local1++;
}
}
}
static function initialize(object) {
var _local1 = object;
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
_local1.addEventListener = _fEventDispatcher.addEventListener;
_local1.removeEventListener = _fEventDispatcher.removeEventListener;
_local1.dispatchEvent = _fEventDispatcher.dispatchEvent;
_local1.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local2 = eventObj;
var queueName = ("__q_" + _local2.type);
var queue = queueObj[queueName];
if (queue != undefined) {
var i;
for (i in queue) {
var _local1 = queue[i];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(_local2);
}
if (_local1[_local2.type] != undefined) {
if (exceptions[_local2.type] == undefined) {
_local1[_local2.type](_local2);
}
}
} else {
_local1.apply(queueObj, [_local2]);
}
}
}
}
function dispatchEvent(eventObj) {
var _local1 = eventObj;
var _local2 = this;
if (_local1.target == undefined) {
_local1.target = _local2;
}
_local2[_local1.type + "Handler"](_local1);
_local2.dispatchQueue(_local2, _local1);
}
function addEventListener(event, handler) {
var _local2 = this;
var _local1 = "__q_" + event;
if (_local2[_local1] == undefined) {
_local2[_local1] = new Array();
}
_global.ASSetPropFlags(_local2, _local1, 1);
_removeEventListener(_local2[_local1], event, handler);
_local2[_local1].push(handler);
}
function removeEventListener(event, handler) {
var _local1 = "__q_" + event;
_removeEventListener(this[_local1], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = ["move", "draw"];
}
Symbol 20 MovieClip [__Packages.mx.remoting.NetServiceProxy] Frame 0
class mx.remoting.NetServiceProxy extends Object
{
var nc, client;
function NetServiceProxy (netC, servName, cli) {
var _local1 = this;
super();
if (netC != null) {
_local1.nc = netC;
_local1.serviceName = servName;
_local1.client = cli;
}
_local1._allowRes = true;
}
function _setParentService(service) {
nc = service.nc;
client = service.client;
}
function __resolve(methodName) {
var _local1 = this;
var _local2 = arguments;
if (_local1._allowRes) {
var _local3 = function () {
var _local1 = this;
var _local2 = arguments;
if (_local1.client != null) {
_local2.unshift(new mx.remoting.NetServiceProxyResponder(_local1, methodName));
} else if (typeof(_local2[0].onResult) != "function") {
mx.remoting.NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, and no responder was given in call to " + methodName);
_local2.unshift(new mx.remoting.NetServiceProxyResponder(_local1, methodName));
}
if (typeof(_local1.serviceName) == "function") {
_local1.serviceName = _local1.servicename;
}
_local2.unshift((_local1.serviceName + ".") + methodName);
return(_local1.nc.call.apply(_local1.nc, _local2));
};
return(_local3);
}
return(null);
}
static function registerNetServiceProxy() {
Object.registerClass("NetServiceProxy", mx.remoting.NetServiceProxy);
return(true);
}
static var init = registerNetServiceProxy();
var _allowRes = false;
}
Symbol 21 MovieClip [__Packages.mx.utils.Iterator] Frame 0
interface mx.utils.Iterator{}
Symbol 22 MovieClip [__Packages.mx.remoting.RecordSet] Frame 0
class mx.remoting.RecordSet extends Object
{
var mTitles, _items, mRecordSetID, dispatchEvent, gateway_conn, mDataFetcher;
function RecordSet (columnNames) {
var _local1 = this;
super();
mx.events.EventDispatcher.initialize(_local1);
_local1._items = new Array();
_local1.uniqueID = 0;
if (_local1.mTitles != null) {
} else {
if (_local1.serverInfo == null) {
if (_local1.serverinfo != null) {
_local1.serverInfo = _local1.serverinfo;
}
}
if (_local1.serverInfo == null) {
_local1.mTitles = columnNames;
} else if (_local1.serverInfo.version != 1) {
mx.remoting.NetServices.trace("RecordSet", "warning", 100, "Received incompatible RecordSet version from server");
} else {
_local1.mTitles = _local1.serverInfo.columnNames;
_local1.mRecordsAvailable = 0;
_local1.setData(((_local1.serverInfo.cursor == null) ? 0 : (_local1.serverInfo.cursor - 1)), _local1.serverInfo.initialData);
if (_local1.serverInfo.initialData.length != _local1.serverInfo.totalCount) {
_local1.mRecordSetID = _local1.serverInfo.id;
if (_local1.mRecordSetID != null) {
_local1.serviceName = ((_local1.serverInfo.serviceName == null) ? "RecordSet" : (_local1.serverInfo.serviceName));
_local1.mTotalCount = _local1.serverInfo.totalCount;
_local1.mDeliveryMode = "ondemand";
_local1.mAllNotified = false;
_local1.mOutstandingRecordCount = 0;
} else {
mx.remoting.NetServices.trace("RecordSet", "warning", 102, "Missing some records, but there's no RecordSet id");
}
}
_local1.serverInfo = null;
}
}
}
function addItem(item) {
addItemAt(length, item);
}
function addItemAt(index, item) {
var _local1 = index;
var _local2 = this;
var _local3 = true;
if ((_local1 < _local2.__get__length()) && (_local1 >= 0)) {
_local2.items.splice(_local1, 0, item);
} else if (_local1 == _local2.__get__length()) {
_local2.items[_local1] = item;
} else {
_local3 = false;
mx.remoting.NetServices.trace("Cannot add an item outside the bounds of the RecordSet");
return;
}
if (_local3) {
item.__ID__ = _local2.uniqueID++;
}
_local2.updateViews("addItems", _local1, _local1);
}
function addEventListener(event, listener) {
}
function clear() {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
var _local2 = _local1.items.length;
_local1.items.splice(0);
_local1.uniqueID = 0;
_local1.updateViews("removeItems", 0, _local2);
}
}
function contains(itmToCheck) {
var _local2 = itmToCheck;
if (isObjectEmpty(_local2)) {
return(false);
}
var itemAtIndex;
var _local3;
var _local1 = 0;
while (_local1 < items.length) {
itemAtIndex = items[_local1];
_local3 = true;
for (var t in _local2) {
if (_local2[t] != itemAtIndex[t]) {
_local3 = false;
break;
}
}
if (_local3) {
return(true);
}
_local1++;
}
return(false);
}
function getColumnNames() {
return(mTitles);
}
function get columnNames() {
return(getColumnNames());
}
function getLocalLength() {
return(items.length);
}
function getLength() {
var _local1 = this;
if (_local1.mRecordSetID != null) {
return(_local1.mTotalCount);
}
return(_local1.items.length);
}
function getIterator() {
var _local1 = new mx.remoting.RecordSetIterator(this);
return(_local1);
}
function get length() {
return(getLength());
}
function getItemAt(index) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.__get__length())) {
return(null);
}
if (_local2.mRecordSetID == null) {
return(_local2.items[_local1]);
}
_local2.requestRecord(_local1);
var _local3 = _local2.items[_local1];
if (_local3 == 1) {
return("in progress");
}
return(_local3);
}
function getItemID(index) {
return(items[index].__ID__);
}
function get items() {
return(_items);
}
function initialize(info) {
}
function filter(filterFunction, context) {
if (checkLocal()) {
} else {
var _local3 = new mx.remoting.RecordSet(mTitles);
var rcount = length;
var _local2 = 0;
while (_local2 < rcount) {
var _local1 = getItemAt(_local2);
if (((_local1 != null) && (_local1 != 1)) && (filterFunction(_local1, context))) {
_local3.addItem(_local1);
}
_local2++;
}
return(_local3);
}
return(undefined);
}
function sortItems(compareFunc, optionFlags) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc, optionFlags);
_local1.updateViews("sort");
}
}
function sortItemsBy(fieldNames, order, optionFlags) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
if (typeof(order) == "string") {
_local1.items.sortOn(fieldNames);
if (order.toUpperCase() == "DESC") {
_local1.items.reverse();
}
} else {
_local1.items.sortOn(fieldNames, optionFlags);
}
_local1.updateViews("sort");
}
}
function sort(compareFunc) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc);
_local1.updateViews("sort");
}
}
function isEmpty() {
return(items.length == 0);
}
function isLocal() {
return(mRecordSetID == null);
}
function isFullyPopulated() {
return(isLocal());
}
function getRemoteLength() {
var _local1 = this;
if (_local1.isLocal()) {
return(_local1.mRecordsAvailable);
}
return(_local1.mTotalCount);
}
function getNumberAvailable() {
var _local1 = this;
if (_local1.isLocal()) {
return(_local1.getLength());
}
return(_local1.mRecordsAvailable);
}
function replaceItemAt(index, item) {
var _local1 = index;
var _local2 = this;
if ((_local1 >= 0) && (_local1 <= _local2.__get__length())) {
var _local3 = _local2.getItemID(_local1);
_local2.items[_local1] = item;
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews("updateItems", _local1, _local1);
}
}
function removeAll() {
clear();
}
function removeItemAt(index) {
var _local1 = index;
var _local2 = this;
var _local3 = _local2._items[_local1];
_local2._items.splice(_local1, 1);
var rItems = [_local2._items[_local1]];
var rIDs = [_local2.getItemID(_local1)];
_local2.dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:_local1, lastItem:_local1, removedItems:rItems, removedIDs:rIDs});
return(_local3);
}
function removeEventListener(event, listener) {
}
function requestRange(range) {
var _local1 = range.getStart();
var _local2 = range.getEnd();
return(internalRequestRange(_local1, _local2));
}
function setDeliveryMode(mode, pagesize, numPrefetchPages) {
var _local1 = this;
var _local2 = pagesize;
var _local3 = numPrefetchPages;
_local1.mDeliveryMode = mode.toLowerCase();
_local1.stopFetchAll();
if ((_local2 == null) || (_local2 <= 0)) {
_local2 = 25;
}
switch (_local1.mDeliveryMode) {
case "ondemand" :
return;
case "page" :
if (_local3 == null) {
_local3 = 0;
}
_local1.mPageSize = _local2;
_local1.mNumPrefetchPages = _local3;
return;
case "fetchall" :
_local1.stopFetchAll();
_local1.startFetchAll(_local2);
return;
default :
mx.remoting.NetServices.trace("RecordSet", "warning", 107, "SetDeliveryMode: unknown mode string");
}
}
function editField(index, fieldName, value) {
changeFieldValue(index, fieldName, value);
}
function getEditingData(index, fieldName) {
return(items[index][fieldName]);
}
function setField(index, fieldName, value) {
changeFieldValue(index, fieldName, value);
}
function changeFieldValue(index, fieldName, value) {
var _local1 = index;
var _local2 = this;
if (_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
_local2.items[_local1][fieldName] = value;
_local2.updateViews("updateItems", _local1, _local1);
}
}
function isObjectEmpty(objToCheck) {
var _local2 = objToCheck;
var _local1 = true;
for (var _local3 in _local2) {
_local1 = false;
return(_local1);
}
return(_local1);
}
function arrayToObject(anArray) {
if (mTitles == null) {
mx.remoting.NetServices.trace("RecordSet", "warning", 105, "getItem: titles are not available");
return(null);
}
var _local3 = new Object();
var alen = anArray.length;
var _local2;
var _local1 = 0;
while (_local1 < alen) {
_local2 = mTitles[_local1];
if (_local2 == null) {
_local2 = ("column" + _local1) + 1;
}
_local3[_local2] = anArray[_local1];
_local1++;
}
return(_local3);
}
function checkLocal() {
if (isLocal()) {
return(false);
}
mx.remoting.NetServices.trace("RecordSet", "warning", 108, "Operation not allowed on partial recordset");
return(true);
}
function getRecordSetService() {
var _local1 = this;
if (_local1.mRecordSetService == null) {
if (_local1.gateway_conn == null) {
_local1.gateway_conn = mx.remoting.NetServices.createGatewayConnection();
} else if (_global.netDebugInstance != undefined) {
_local1.gateway_conn = _local1.gateway_conn.clone();
}
if (_global.netDebugInstance != undefined) {
_local1.gateway_conn.setupRecordSet();
_local1.gateway_conn.setDebugId("RecordSet " + _local1.mRecordSetID);
}
_local1.mRecordSetService = _local1.gateway_conn.getService(_local1.serviceName, _local1);
if (_local1.mRecordSetService == null) {
mx.remoting.NetServices.trace("RecordSet", "warning", 101, "Failed to create RecordSet service");
_local1.mRecordSetService = null;
}
}
return(_local1.mRecordSetService);
}
function internalRequestRange(index, lastIndex) {
var _local1 = index;
var _local2 = this;
var highestRequested = -1;
if (_local1 < 0) {
_local1 = 0;
}
if (lastIndex >= _local2.getRemoteLength()) {
lastIndex = _local2.getRemoteLength() - 1;
}
var _local3;
var last;
while (_local1 <= lastIndex) {
while ((_local1 <= lastIndex) && (_local2.items[_local1] != null)) {
_local1++;
}
_local3 = _local1;
while ((_local1 <= lastIndex) && (_local2.items[_local1] == null)) {
_local2.mOutstandingRecordCount++;
_local2.items[_local1] = 1;
_local1++;
}
last = _local1 - 1;
if (_local3 <= last) {
_local2.logger.logInfo((((" Fetching records from index [" + _local3) + "] to index [") + last) + "]");
_local2.getRecordSetService().getRecords(_local2.mRecordSetID, _local3 + 1, (last - _local3) + 1);
highestRequested = last;
_local2.updateViews("fetchRows", _local3, last);
}
}
return(highestRequested);
}
function removeItems(index, len) {
var _local3 = index;
var _local2 = new Array();
var _local1 = 0;
while (_local1 < len) {
_local2.push(getItemID(_local3 + _local1));
_local1++;
}
var oldItems = items.splice(_local3, len);
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:_local3, lastItem:(_local3 + len) - 1, removedItems:oldItems, removedIDs:_local2});
}
function getRecords_Result(info) {
var _local1 = this;
var _local2 = info;
_local1.setData(_local2.Cursor - 1, _local2.Page);
_local1.mOutstandingRecordCount = _local1.mOutstandingRecordCount - _local2.Page.length;
_local1.updateViews("updateItems", _local2.Cursor - 1, ((_local2.Cursor - 1) + _local2.Page.length) - 1);
if ((_local1.mRecordsAvailable == _local1.mTotalCount) && (!_local1.mAllNotified)) {
_local1.updateViews("allRows");
_local1.mRecordSetService.release();
_local1.mAllNotified = true;
_local1.mRecordSetID = null;
_local1.mRecordSetService = null;
}
}
function release_Result() {
}
function requestOneRecord(index) {
var _local1 = this;
var _local2 = index;
if (_local1.items[_local2] == null) {
if (_local1.mDeliveryMode == "ondemand") {
_local1.logger.logInfo((" INFO: Fetching Record [" + _local2) + "]");
}
_local1.getRecordSetService().getRecords(_local1.mRecordSetID, _local2 + 1, 1);
_local1.mOutstandingRecordCount++;
_local1.items[_local2] = 1;
_local1.updateViews("fetchRows", _local2, _local2);
}
}
function requestRecord(index) {
var _local1 = this;
if (_local1.mDeliveryMode != "page") {
_local1.requestOneRecord(index);
} else {
var _local2 = int(index / _local1.mPageSize) * _local1.mPageSize;
var _local3 = (_local2 + (_local1.mPageSize * (_local1.mNumPrefetchPages + 1))) - 1;
_local1.internalRequestRange(_local2, _local3);
}
}
function _setParentService(service) {
gateway_conn = service.nc;
}
function setData(start, dataArray) {
var _local1 = this;
var datalen = dataArray.length;
var _local3;
var rec;
var _local2 = 0;
while (_local2 < datalen) {
_local3 = _local2 + start;
rec = _local1.items[_local3];
if ((rec != null) && (rec != 1)) {
mx.remoting.NetServices.trace("RecordSet", "warning", 106, "Already got record # " + _local3);
} else {
_local1.mRecordsAvailable = _local1.mRecordsAvailable + 1;
}
_local1.items[_local3] = _local1.arrayToObject(dataArray[_local2]);
_local1.items[_local3].__ID__ = _local1.uniqueID++;
_local2++;
}
}
function startFetchAll(pagesize) {
var _local1 = this;
if (_local1.mDataFetcher != null) {
_local1.mDataFetcher.disable();
}
_local1.mDataFetcher = new mx.remoting.RsDataFetcher(_local1, pagesize);
}
function stopFetchAll() {
mDataFetcher.disable();
mDataFetcher = null;
}
function updateViews(event, first, last) {
dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last});
}
static function registerRecordSet() {
Object.registerClass("RecordSet", mx.remoting.RecordSet);
return(true);
}
static var version = "1.2.0.124";
static var init = registerRecordSet();
}
Symbol 23 MovieClip [__Packages.mx.remoting.RecordSetIterator] Frame 0
class mx.remoting.RecordSetIterator
{
var _recordSet, _cursor;
function RecordSetIterator (rec) {
_recordSet = rec;
_cursor = 0;
}
function hasNext() {
return(_cursor < _recordSet.getLength());
}
function next() {
return(_recordSet.getItemAt(_cursor++));
}
static var version = "1.2.0.124";
}
Symbol 24 MovieClip [__Packages.mx.remoting.RsDataRange] Frame 0
class mx.remoting.RsDataRange extends Object
{
var _start, _end;
function RsDataRange (s, e) {
super();
_start = s;
_end = e;
}
function getStart() {
return(_start);
}
function getEnd() {
return(_end);
}
function setEnd(e) {
_end = e;
}
function setStart(s) {
_start = s;
}
}
Symbol 25 MovieClip [__Packages.mx.remoting.RsDataFetcher] Frame 0
class mx.remoting.RsDataFetcher extends Object
{
var mEnabled;
function RsDataFetcher (pgRS, increment) {
var _local1 = this;
super();
_local1.mRecordSet = pgRS;
_local1.mRecordSet.addEventListener("modelChanged", _local1);
_local1.mIncrement = increment;
_local1.mNextRecord = 0;
_local1.mEnabled = true;
_local1.doNext();
}
function disable() {
mEnabled = false;
}
function doNext() {
var _local1 = this;
if (_local1.mEnabled) {
do {
if (_local1.mNextRecord >= _local1.mRecordSet.getRemoteLength()) {
return;
}
var _local2 = new mx.remoting.RsDataRange(_local1.mNextRecord, (_local1.mNextRecord + _local1.mIncrement) - 1);
_local1.mHighestRequested = _local1.mRecordSet.requestRange(_local2);
_local1.mNextRecord = _local1.mNextRecord + _local1.mIncrement;
} while (_local1.mHighestRequested <= 0);
}
}
function modelChanged(eventObj) {
var _local1 = this;
var _local2 = eventObj;
if (((_local2.eventName == "updateItems") && (_local2.firstItem <= _local1.mHighestRequested)) && (_local2.lastItem >= _local1.mHighestRequested)) {
_local1.doNext();
}
if (_local2.eventName == "allRows") {
_local1.disable();
}
}
}
Symbol 26 MovieClip [__Packages.mx.remoting.NetServiceProxyResponder] Frame 0
class mx.remoting.NetServiceProxyResponder extends Object
{
var service, methodName;
function NetServiceProxyResponder (serv, method) {
super();
service = serv;
methodName = method;
}
function onResult(result) {
var _local2 = result;
var _local1 = service.client;
if ((_local2 instanceof mx.remoting.NetServiceProxy) || (_local2 instanceof mx.remoting.RecordSet)) {
_local2._setParentService(service);
}
var _local3 = methodName + "_Result";
if (typeof(_local1[_local3]) == "function") {
_local1[_local3].apply(_local1, [_local2]);
} else if (typeof(_local1.onResult) == "function") {
_local1.onResult(_local2);
} else {
mx.remoting.NetServices.trace("NetServices", "info", 1, (_local3 + " was received from server: ") + _local2);
}
}
function onStatus(result) {
var _local2 = result;
var _local1 = service.client;
var _local3 = methodName + "_Status";
if (typeof(_local1[_local3]) == "function") {
_local1[_local3].apply(_local1, [_local2]);
} else if (typeof(_local1.onStatus) == "function") {
_local1.onStatus(_local2);
} else if (typeof(_root.onStatus) == "function") {
_root.onStatus(_local2);
} else if (typeof(_global.System.onStatus) == "function") {
_global.System.onStatus(_local2);
} else {
mx.remoting.NetServices.trace("NetServices", "info", 2, (((_local3 + " was received from server: <") + _local2.level) + "> ") + _local2.description);
}
}
}
Symbol 27 MovieClip [__Packages.mx.remoting.debug.NetDebugConfig] Frame 0
class mx.remoting.debug.NetDebugConfig extends Object
{
function NetDebugConfig () {
super();
Object.registerClass("NetDebugConfig", mx.remoting.debug.NetDebugConfig);
}
static function getNetDebugVersion() {
return(1);
}
static function attachNetDebugConfigFunctions(ndc) {
var _local1 = ndc;
_local1.setDebug = function (setval) {
this.m_debug = setval;
};
_local1.getDebug = function () {
return(this.m_debug);
};
for (var _local2 in _local1) {
if (typeof(_local1[_local2]) == "object") {
attachNetDebugConfigFunctions(_local1[_local2]);
}
}
return(null);
}
static function getDefaultNetDebugConfig(isController) {
var _local1 = _global;
if (_local1.netDebugConfigSO == undefined) {
var _local2 = "TestMovie_Config_Info";
if (isController) {
_local2 = "Controller_Config_Info";
}
_local1.netDebugConfigSO = SharedObject.getLocal(_local2);
}
if (_local1.netDebugConfigSO.data.config == undefined) {
_local1.netDebugConfigSO.data.config = getRealDefaultNetDebugConfig();
}
_local1.netDebugConfigSO.flush();
return(_local1.netDebugConfigSO.data.config);
}
static function getRealDefaultNetDebugConfig() {
var _local1 = new mx.remoting.debug.NetDebugConfig();
_local1.m_debug = true;
_local1.client = new mx.remoting.debug.NetDebugConfig();
_local1.client.m_debug = true;
_local1.client.trace = true;
_local1.client.recordset = true;
_local1.client.http = true;
_local1.client.rtmp = true;
_local1.realtime_server = new mx.remoting.debug.NetDebugConfig();
_local1.realtime_server.m_debug = true;
_local1.realtime_server.trace = true;
_local1.app_server = new mx.remoting.debug.NetDebugConfig();
_local1.app_server.m_debug = true;
_local1.app_server.trace = true;
_local1.app_server.error = true;
_local1.app_server.recordset = true;
_local1.app_server.httpheaders = false;
_local1.app_server.amf = false;
_local1.app_server.amfheaders = false;
_local1.app_server.coldfusion = true;
return(_local1);
}
}
Symbol 28 MovieClip [__Packages.mx.utils.ObjectCopy] Frame 0
class mx.utils.ObjectCopy
{
function ObjectCopy () {
}
static function copy(refObj) {
var _local1 = new Function(refObj.__proto__.constructor)();
copyProperties(_local1, refObj);
return(_local1);
}
static function copyProperties(dstObj, srcObj) {
var _local2 = srcObj;
var to;
for (var i in _local2) {
to = typeof(_local2[i]);
if (to != "function") {
if (to == "object") {
if (_local2[i] instanceof Array) {
var p = new Array();
var _local3 = _local2[i];
var _local1 = 0;
while (_local1 < _local3.length) {
p[_local1] = _local3[_local1];
_local1++;
}
dstObj[i] = p;
} else if (_local2[i] instanceof String) {
dstObj[i] = new String(_local2[i]);
} else if (_local2[i] instanceof Number) {
dstObj[i] = new Number(_local2[i]);
} else if (_local2[i] instanceof Boolean) {
dstObj[i] = new Boolean(_local2[i]);
} else {
dstObj[i] = copy(_local2[i]);
}
} else {
dstObj[i] = _local2[i];
}
}
}
}
}
Symbol 29 MovieClip [__Packages.mx.remoting.debug.events.NetDebug] Frame 0
class mx.remoting.debug.events.NetDebug extends Object
{
var date, time;
function NetDebug () {
super();
init();
}
function init() {
var _local1 = this;
_local1.eventType = "DebugEvent";
_local1.source = "Client";
_local1.movieUrl = unescape(_root._url);
_local1.initDate();
}
function initDate() {
var _local1 = new Date();
date = _local1;
time = _local1.getTime();
}
}
Symbol 30 MovieClip [__Packages.mx.remoting.debug.events.NetDebugNetConnection] Frame 0
class mx.remoting.debug.events.NetDebugNetConnection extends mx.remoting.debug.events.NetDebug
{
function NetDebugNetConnection () {
super();
}
}
Symbol 31 MovieClip [__Packages.mx.remoting.debug.events.NetDebugConnect] Frame 0
class mx.remoting.debug.events.NetDebugConnect extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugConnect (args) {
var _local1 = args;
var _local2 = this;
super();
_local2.eventType = "Connect";
_local2.connectString = _local1[0];
if (_local1[1] != null) {
_local2.userName = _local1[1];
}
if (_local1[2] != null) {
_local2.password = _local1[2];
}
}
}
Symbol 32 MovieClip [__Packages.mx.remoting.debug.commands.Local] Frame 0
class mx.remoting.debug.commands.Local extends Object
{
var command, data;
function Local () {
super();
}
function init(commandname, dataobj) {
command = commandname;
data = dataobj;
}
}
Symbol 33 MovieClip [__Packages.mx.remoting.debug.commands.StartRTMPTrace] Frame 0
class mx.remoting.debug.commands.StartRTMPTrace extends mx.remoting.debug.commands.Local
{
var init;
function StartRTMPTrace (cs) {
super();
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
init("startRealTimeTrace", _local1);
}
}
Symbol 34 MovieClip [__Packages.mx.remoting.debug.ConnectionMixin] Frame 0
class mx.remoting.debug.ConnectionMixin extends Object
{
var _protocol, _id, _config;
function ConnectionMixin () {
super();
}
static function initialize() {
var _local1 = mx.remoting.Connection.prototype;
var _local2 = mx.remoting.debug.ConnectionMixin.prototype;
if (!_local1.netDebugProxyFunctions) {
_local1.netDebugProxyFunctions = true;
_local1.realConnect = _local1.connect;
_local1.realCall = _local1.call;
_local1.realClose = _local1.close;
_local1.realAddHeader = _local1.addHeader;
_local1.connect = _local2.netDebugProxyConnect;
_local1.call = _local2.netDebugProxyCall;
_local1.close = _local2.netDebugProxyClose;
_local1.addHeader = _local2.netDebugProxyAddHeader;
_local1.attachDebug = _local2.attachDebug;
_local1.sendDebugEvent = _local2.sendDebugEvent;
_local1.sendServerEvent = _local2.sendServerEvent;
_local1.sendClientEvent = _local2.sendClientEvent;
_local1.addNetDebugHeader = _local2.addNetDebugHeader;
_local1.updateConfig = _local2.updateConfig;
_local1.getNetDebug = _local2.getNetDebug;
_local1.isRealTime = _local2.isRealTime;
_local1.setupRecordSet = _local2.setupRecordSet;
_local1.setDebugId = _local2.setDebugId;
_local1.getDebugId = _local2.getDebugId;
_local1.getDebugConfig = _local2.getDebugConfig;
_local1.trace = _local2.trace;
return(true);
}
return(false);
}
function attachDebug() {
var _local1 = this;
if (!_attached) {
_attached = true;
_local1._headerAdded = false;
_local1._configured = false;
_local1._config = new mx.remoting.debug.NetDebugConfig();
mx.utils.ObjectCopy.copyProperties(_local1._config, _local1.getNetDebug().getConfig());
_local1._protocol = "none";
_local1._id = String(_local1.getNetDebug().addNetConnection(_local1));
}
}
function sendDebugEvent(eventobj) {
var _local1 = this;
var _local2 = eventobj;
_local2.protocol = _local1._protocol;
_local2.debugId = _local1._id;
return(_local1.getNetDebug().onEvent(_local2));
}
function sendServerEvent(eventobj) {
eventobj.movieUrl = unescape(_root._url);
if (!sendDebugEvent(eventobj)) {
}
}
function sendClientEvent(eventobj) {
var _local1 = this;
if (_local1._config.m_debug && (_local1._config.client.m_debug)) {
if ((_local1._config.client.http && (_local1._protocol == "http")) || (_local1._config.client.rtmp && (_local1._protocol.substr(0, 4) == "rtmp"))) {
if (!_local1.sendDebugEvent(eventobj)) {
}
}
}
}
function addNetDebugHeader() {
var _local1 = this;
if (!_local1._headerAdded) {
_local1._headerAdded = true;
if ((_local1._config.m_debug && (_local1._config.app_server.m_debug)) && (_local1._protocol == "http")) {
_local1.realAddHeader("amf_server_debug", true, _local1._config.app_server);
} else {
_local1.realAddHeader("amf_server_debug", true, undefined);
}
}
}
function updateConfig(config) {
var _local1 = this;
var _local2 = config;
_local1.attachDebug();
if ((_local2 == null) && (!_local1._configured)) {
_local1._configured = true;
_local2 = mx.remoting.debug.NetDebugConfig.getRealDefaultNetDebugConfig();
}
mx.utils.ObjectCopy.copyProperties(_local1._config, _local2);
_local1._headerAdded = false;
}
function isRealTime() {
return(_protocol.substr(0, 4) == "rtmp");
}
function setupRecordSet() {
var _local1 = this;
_local1.attachDebug();
_local1._config.client.http = _local1._config.client.recordset;
}
function netDebugProxyConnect() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
var _local3 = _local2[0].substr(0, 4);
if ((_local3 == "http") || (_local3.substr(0, 4) == "rtmp")) {
if (_local2[0].charAt(4) == ":") {
_local1._protocol = _local3;
} else {
_local1._protocol = _local2[0].substr(0, 5);
}
} else {
_local1._protocol = "http";
}
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugConnect(_local2));
if (_local1.isRealTime()) {
_local1._connectString = _local2[0];
_local1.getNetDebug().sendCommand(new mx.remoting.debug.commands.StartRTMPTrace(_local2[0]));
var ret = _local1.realConnect.apply(_local1, _local2);
_local1.realCall("@getClientID", new mx.remoting.RTMPClientIDResponse(_local2[0], _local1));
return(ret);
}
return(Boolean(_local1.realConnect.apply(_local1, _local2)));
}
function netDebugProxyCall() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugCall(_local2));
_local1.addNetDebugHeader();
if (_local1._config.app_server) {
_local2[1] = new mx.remoting.debug.NetDebugResponseProxy(_local1, _local2[1]);
return(Boolean(_local1.realCall.apply(_local1, _local2)));
}
return(Boolean(_local1.realCall.apply(_local1, _local2)));
}
function netDebugProxyClose() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugClose());
if (_local1.isRealTime()) {
_local1.getNetDebug().sendCommand(new mx.remoting.debug.commands.StopRTMPTrace(_local1._connectString, _local1._clientId));
}
var _local2 = _local1.realClose();
_local1.getNetDebug().removeNetConnection(_local1);
return(_local2);
}
function netDebugProxyAddHeader() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugAddHeader(arguments));
return(Boolean(_local1.realAddHeader.apply(_local1, arguments)));
}
function setDebugId(id) {
attachDebug();
_id = id;
}
function getDebugId() {
attachDebug();
return(_id);
}
function trace(traceobj) {
var _local1 = this;
_local1.attachDebug();
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTrace(traceobj));
}
}
function getDebugConfig() {
attachDebug();
return(_config);
}
function getNetDebug() {
return(mx.remoting.debug.NetDebug.getNetDebug());
}
static var _attached = false;
}
Symbol 35 MovieClip [__Packages.mx.remoting.debug.events.NetDebugDuplicateNCDError] Frame 0
class mx.remoting.debug.events.NetDebugDuplicateNCDError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugDuplicateNCDError () {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.message = "NCD_ALREADY_RUNNING";
}
}
Symbol 36 MovieClip [__Packages.mx.remoting.debug.GlobalLocalConnection] Frame 0
class mx.remoting.debug.GlobalLocalConnection extends Object
{
var sendPrefix;
function GlobalLocalConnection (isController, receiver, domainName) {
var _local2 = this;
var _local3 = _global;
super();
_local2.maxConnections = 10;
var sToMovie = "_NetDebugLocalToDebugMovie";
var sToController = "_NetDebugLocalToController";
var connectname = null;
if (isController) {
connectname = sToController;
_local2.sendNames = new Array();
_local2.sendNames.push(sToMovie);
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
_local2.sendNames.push(sToMovie + _local1);
_local1++;
}
_local2.maxConnections = 0;
} else {
connectname = sToMovie;
_local2.sendNames = new Array();
_local2.sendNames.push(sToController);
}
_local2.setDomainName(domainName);
if (_local3.g_NetDebugLocalConnection == undefined) {
_local3.g_NetDebugLocalConnection = new LocalConnection();
_local3.g_NetDebugLocalConnection.allowDomain = function () {
return(true);
};
}
if (receiver != null) {
_local3.g_NetDebugLocalConnection.m_Receiver = receiver;
_local3.g_NetDebugLocalConnection.onData = function (dataobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceive(dataobj);
};
_local3.g_NetDebugLocalConnection.onCommand = function (commandobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceiveCommand(commandobj);
};
if (!_local3.g_NetDebugLocalConnection.connect(connectname)) {
var connected = false;
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
if (_local3.g_NetDebugLocalConnection.connect(connectname + _local1)) {
connected = true;
break;
}
_local1++;
}
if (!connected) {
if (isController) {
receiver.onReceiveError(new mx.remoting.debug.events.NetDebugDuplicateNCDError());
}
}
}
}
}
function setDomainName(domainName) {
var _local1 = domainName;
if ((_local1 != null) && (_local1 != "")) {
sendPrefix = _local1 + ":";
} else {
sendPrefix = "";
}
}
function send(dataobj) {
return(sendRaw("onData", dataobj));
}
function sendCommand(commandObj) {
return(sendRaw("onCommand", commandObj));
}
function sendRaw(functionName, obj) {
var _local3 = this;
var _local2 = true;
var snlen = _local3.sendNames.length;
var _local1 = 0;
while (_local1 < snlen) {
_local2 = Boolean(_local2 & _global.g_NetDebugLocalConnection.send(_local3.sendPrefix + _local3.sendNames[_local1], functionName, obj));
_local1++;
}
return(_local2);
}
}
Symbol 37 MovieClip [__Packages.mx.remoting.debug.commands.GetConfig] Frame 0
class mx.remoting.debug.commands.GetConfig extends mx.remoting.debug.commands.Local
{
var init;
function GetConfig () {
super();
}
function GetConfigCommand() {
super();
init("getConfig", null);
}
}
Symbol 38 MovieClip [__Packages.mx.remoting.debug.events.NetDebugFailedSendError] Frame 0
class mx.remoting.debug.events.NetDebugFailedSendError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugFailedSendError (ev) {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.originalEvent = ev;
_local1.message = "NCD_FAILED_TO_SEND_EVENT";
}
}
Symbol 39 MovieClip [__Packages.mx.remoting.debug.events.NetDebugStatus] Frame 0
class mx.remoting.debug.events.NetDebugStatus extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType, status;
function NetDebugStatus (statusobj) {
super();
eventType = "Status";
status = statusobj;
}
}
Symbol 40 MovieClip [__Packages.mx.remoting.debug.events.NetDebugError] Frame 0
class mx.remoting.debug.events.NetDebugError extends mx.remoting.debug.events.NetDebug
{
var eventType, error;
function NetDebugError (dataobj) {
super();
eventType = "NetDebugError";
error = dataobj;
}
}
Symbol 41 MovieClip [__Packages.mx.remoting.debug.events.NetDebugTraceNetServices] Frame 0
class mx.remoting.debug.events.NetDebugTraceNetServices extends mx.remoting.debug.events.NetDebug
{
function NetDebugTraceNetServices (w, s, n, m) {
var _local1 = this;
super();
_local1.eventType = "NetServicesTrace";
_local1.trace = m;
_local1.who = w;
_local1.severity = s;
_local1.number = n;
}
}
Symbol 42 MovieClip [__Packages.mx.remoting.debug.events.NetDebugTrace] Frame 0
class mx.remoting.debug.events.NetDebugTrace extends mx.remoting.debug.events.NetDebug
{
var eventType, trace;
function NetDebugTrace (traceobj) {
super();
eventType = "Trace";
trace = traceobj;
}
}
Symbol 43 MovieClip [__Packages.mx.remoting.debug.NetDebug] Frame 0
class mx.remoting.debug.NetDebug extends Object
{
static var ndSingleton;
var _ncs, _nextNewId, _glc, _config;
function NetDebug () {
var _local1 = this;
super();
_local1._ncs = new Array();
_local1._config = mx.remoting.debug.NetDebugConfig.getDefaultNetDebugConfig(false);
_local1._glc = new mx.remoting.debug.GlobalLocalConnection(false, _local1);
_local1._glc.sendCommand(new mx.remoting.debug.commands.GetConfig());
_local1._nextNewId = 0;
if (_global.System.onStatus == undefined) {
_global.System.onStatus = globalOnStatus;
}
mx.remoting.NetServices.traceNetServices = traceNetServices;
}
function addNetConnection(nc) {
_ncs.push(nc);
return(_nextNewId++);
}
function requestNewConfig() {
return(sendCommand(new mx.remoting.debug.commands.GetConfig()));
}
function removeNetConnection(nc) {
var _local2 = this;
var _local3 = _local2._ncs.length;
var _local1 = 0;
while (_local1 < _local3) {
if (nc == _local2._ncs[_local1]) {
_local2._ncs.splice(_local1, 1);
return;
}
_local1++;
}
}
function sendDebugEvent(eventobj) {
if (!_glc.send(eventobj)) {
_glc.send(new mx.remoting.debug.events.NetDebugFailedSendError(stripNCDEventToMinmal(eventobj)));
return(false);
}
return(true);
}
function sendCommand(commandobj) {
return(_glc.sendCommand(commandobj));
}
function updateConfig(config) {
var _local2 = this;
mx.utils.ObjectCopy.copyProperties(_local2._config, config);
var _local3 = _local2._ncs.length;
var _local1 = 0;
while (_local1 < _local3) {
if (_local2._ncs[_local1] != null) {
_local2._ncs[_local1].updateConfig(config);
}
_local1++;
}
}
function sendStatus(statusobj) {
var _local1 = this;
if (_local1._config.m_debug && (_local1._config.client.m_debug)) {
return(_local1._glc.send(new mx.remoting.debug.events.NetDebugStatus(statusobj)));
}
return(undefined);
}
function onEvent(eventObj) {
return(sendDebugEvent(eventObj));
}
function onEventError(errorObj) {
return(sendDebugEvent(new mx.remoting.debug.events.NetDebugError(errorObj)));
}
function onReceiveCommand(commandobj) {
this[commandobj.command](commandobj.data);
}
function onReceiveError(errorobj) {
sendDebugEvent(new mx.remoting.debug.events.NetDebugError(errorobj));
}
function getConfig() {
return(_config);
}
static function getNetDebug() {
return(ndSingleton);
}
static function trace(obj) {
getNetDebug()._trace(obj);
}
static function traceNetServices(who, severity, number, message) {
getNetDebug()._traceNetServices(who, severity, number, message);
}
static function globalOnStatus(statusobj) {
getNetDebug().sendStatus(statusobj);
}
static function initialize() {
if (ndSingleton == null) {
ndSingleton = new mx.remoting.debug.NetDebug();
mx.remoting.debug.ConnectionMixin.initialize();
}
return(true);
}
static function stripNCDEventToMinmal(ev) {
var _local1 = ev;
var _local2 = new Object();
if (_local1.eventType != null) {
_local2.eventType = _local1.eventType;
}
if (_local1.source != null) {
_local2.source = _local1.source;
}
if (_local1.movieUrl != null) {
_local2.movieUrl = _local1.movieUrl;
}
if (_local1.date != null) {
_local2.date = _local1.date;
}
if (_local1.time != null) {
_local2.time = _local1.time;
}
if (_local1.protocol != null) {
_local2.protocol = _local1.protocol;
}
if (_local1.debugId != null) {
_local2.debugId = _local1.debugId;
}
return(_local2);
}
function _traceNetServices(who, severity, number, message) {
var _local1 = this;
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
if (!_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTraceNetServices(who, severity, number, message))) {
}
}
}
function _trace(traceobj) {
var _local1 = this;
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
if (!_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTrace(traceobj))) {
}
}
}
static var version = "1.2.0.124";
}
Symbol 44 MovieClip [__Packages.mx.remoting.debug.commands.AddRTMPClient] Frame 0
class mx.remoting.debug.commands.AddRTMPClient extends mx.remoting.debug.commands.Local
{
var init;
function AddRTMPClient (cs, cid) {
super();
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
init("addRealTimeClient", _local1);
}
}
Symbol 45 MovieClip [__Packages.mx.remoting.RTMPClientIDResponse] Frame 0
class mx.remoting.RTMPClientIDResponse extends Object
{
var _connectString, _nc;
function RTMPClientIDResponse (cs, nc) {
super();
_connectString = cs;
_nc = nc;
}
function onResult(cid) {
_nc._clientId = cid;
mx.remoting.debug.NetDebug.getNetDebug().sendCommand(new mx.remoting.debug.commands.AddRTMPClient(_connectString, cid));
}
}
Symbol 46 MovieClip [__Packages.mx.remoting.debug.events.NetDebugCall] Frame 0
class mx.remoting.debug.events.NetDebugCall extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugCall (args) {
var _local2 = this;
var _local3 = args;
super();
_local2.eventType = "Call";
_local2.methodName = _local3[0];
_local2.parameters = new Array();
var alen = _local3.length;
var _local1 = 2;
while (_local1 < alen) {
_local2.parameters[_local1 - 2] = _local3[_local1];
_local1++;
}
}
}
Symbol 47 MovieClip [__Packages.mx.remoting.debug.events.NetDebugResult] Frame 0
class mx.remoting.debug.events.NetDebugResult extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType, result;
function NetDebugResult (resultobj) {
super();
eventType = "Result";
result = resultobj;
}
}
Symbol 48 MovieClip [__Packages.mx.remoting.debug.events.NetDebugReceiveCall] Frame 0
class mx.remoting.debug.events.NetDebugReceiveCall extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugReceiveCall (mName, args) {
var _local1 = this;
super();
_local1.eventType = "ReceivedCall";
_local1.methodName = mName;
_local1.parameters = args;
}
}
Symbol 49 MovieClip [__Packages.mx.remoting.debug.NetDebugResponseProxy] Frame 0
class mx.remoting.debug.NetDebugResponseProxy extends Object
{
var _sourceNC, _originalNR;
function NetDebugResponseProxy (source, original) {
super();
_sourceNC = source;
_originalNR = original;
}
function onDebugEvents(debugevents) {
var _local3 = debugevents;
var _local2 = _local3.length;
var _local1 = 0;
while (_local1 < _local2) {
_sourceNC.sendServerEvent(_local3[_local1]);
_local1++;
}
}
function onResult(resultobj) {
_sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugResult(resultobj));
_originalNR.onResult(resultobj);
}
function onStatus(statusobj) {
var _local1 = this;
var _local2 = statusobj;
_local1._sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugStatus(_local2));
if (_local1._originalNR.onStatus != undefined) {
_local1._originalNR.onStatus(_local2);
} else {
_global.System.onStatus(_local2);
}
}
function __resolve(name) {
var _local1 = name;
trace("NetDebugResponseProxy.__resolve name: " + _local1);
_sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugReceiveCall(_local1, arguments));
_originalNR[_local1].apply(arguments);
return(null);
}
}
Symbol 50 MovieClip [__Packages.mx.remoting.debug.events.NetDebugClose] Frame 0
class mx.remoting.debug.events.NetDebugClose extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType;
function NetDebugClose () {
super();
eventType = "Close";
}
}
Symbol 51 MovieClip [__Packages.mx.remoting.debug.commands.StopRTMPTrace] Frame 0
class mx.remoting.debug.commands.StopRTMPTrace extends mx.remoting.debug.commands.Local
{
var init;
function StopRTMPTrace () {
super();
}
function StopRTMPTraceCommand(cs, cid) {
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
init("stopRealTimeTrace", _local1);
}
}
Symbol 52 MovieClip [__Packages.mx.remoting.debug.events.NetDebugAddHeader] Frame 0
class mx.remoting.debug.events.NetDebugAddHeader extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugAddHeader (args) {
var _local1 = this;
var _local2 = args;
super();
_local1.eventType = "AddHeader";
_local1.headerName = _local2[0];
_local1.mustUnderstand = _local2[1];
if (_local2[2] != null) {
_local1.headerObject = _local2[2];
}
}
}
Symbol 53 MovieClip [__Packages.mx.remoting.debug.events.NetDebugInfoError] Frame 0
class mx.remoting.debug.events.NetDebugInfoError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugInfoError (infoobj, mes) {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.info = infoobj;
if (mes != null) {
_local1.message = mes;
}
}
}
Symbol 54 MovieClip [__Packages.mx.remoting.debug.events.NetDebugRtmpLog] Frame 0
class mx.remoting.debug.events.NetDebugRtmpLog extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugRtmpLog (infoobj) {
var _local1 = this;
super();
_local1.eventType = "Trace";
_local1.source = "Flash Communication Server";
_local1.info = infoobj;
_local1.trace = infoobj.description;
}
}
Symbol 55 MovieClip [__Packages.mx.remoting.debug.commands.UpdateNetDebugConfig] Frame 0
class mx.remoting.debug.commands.UpdateNetDebugConfig extends mx.remoting.debug.commands.Local
{
var init;
function UpdateNetDebugConfig () {
super();
}
function UpdateNetDebugCommand(dataobj) {
super();
init("updateConfig", dataobj);
}
}
Symbol 56 MovieClip [__Packages.mx.remoting.ApiClasses] Frame 0
class mx.remoting.ApiClasses extends MovieClip
{
function ApiClasses () {
super();
}
}
Symbol 58 MovieClip [__Packages.mx.remoting.DataGlue] Frame 0
class mx.remoting.DataGlue extends Object
{
var __dataProv, __labelStr, __dataStr, formatFunction;
function DataGlue (dp) {
super();
__dataProv = dp;
}
function get dataProvider() {
return(__dataProv);
}
function get labelString() {
return(__labelStr);
}
function set labelString(val) {
__labelStr = val;
//return(labelString);
}
function get dataString() {
return(__dataStr);
}
function set dataString(val) {
__dataStr = val;
//return(dataString);
}
static function bindFormatStrings(dataConsumer, dp, labelStr, dataStr) {
var _local1 = new mx.remoting.DataGlue(dp);
_local1.__set__labelString(labelStr);
_local1.__set__dataString(dataStr);
_local1.getItemAt = mx.remoting.DataGlue.prototype.getItemAt_FormatString;
dataConsumer.dataProvider = _local1;
}
static function bindFormatFunction(dataConsumer, dp, formatFunc) {
var _local1 = new mx.remoting.DataGlue(dp);
_local1.formatFunction = formatFunc;
_local1.getItemAt = mx.remoting.DataGlue.prototype.getItemAt_FormatFunction;
dataConsumer.setDataProvider(_local1);
}
function addEventListener(eventName, listener) {
dataProvider.addEventListener(eventName, listener);
}
function get length() {
return(getLength());
}
function getLength() {
return(dataProvider.length);
}
function format(formatString, item) {
var _local3 = formatString.split("#");
var result = "";
var tlen = _local3.length;
var _local2;
var _local1 = 0;
while (_local1 < tlen) {
result = result + _local3[_local1];
_local2 = _local3[_local1 + 1];
if (_local2 != undefined) {
result = result + item[_local2];
}
_local1 = _local1 + 2;
}
return(result);
}
function getItemAt_FormatString(index) {
var _local2 = this;
var _local1 = _local2.dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return({label:_local2.format(_local2.__get__labelString(), _local1), data:((_local2.__get__dataString() == null) ? (_local1) : (_local2.format(_local2.__get__dataString(), _local1)))});
}
function getItemAt_FormatFunction(index) {
var _local1 = dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return(formatFunction(_local1));
}
function getItemID(index) {
return(dataProvider.getItemID(index));
}
function addItemAt(index, value) {
dataProvider.addItemAt(index, value);
}
function addItem(value) {
dataProvider.addItem(value);
}
function removeItemAt(index) {
dataProvider.removeItemAt(index);
}
function removeAll() {
dataProvider.removeAll();
}
function replaceItemAt(index, itemObj) {
dataProvider.replaceItemAt(index, itemObj);
}
function sortItemsBy(fieldNames, optionFlags) {
dataProvider.sortItemsBy(fieldNames, optionFlags);
}
function sortItems(compareFunc, optionFlags) {
dataProvider.sortItems(compareFunc, optionFlags);
}
static var version = "1.2.0.124";
}
Symbol 59 MovieClip [__Packages.mx.remoting.PendingCall] Frame 0
class mx.remoting.PendingCall extends Object
{
var __service, __methodName, __responder;
function PendingCall (srv, methodName) {
super();
__service = srv;
__methodName = methodName;
}
function get responder() {
return(__responder);
}
function set responder(res) {
__responder = res;
//return(responder);
}
function onResult(result) {
var _local1 = result;
var _local2 = this;
_local1.serviceName = ((typeof(_local1.serviceName) == "function") ? (_local1.servicename) : (_local1.serviceName));
if (_local1 != null) {
if (_local1 instanceof mx.remoting.NetServiceProxy) {
var serv = (new mx.remoting.Service(null, null, _local1.serviceName, _local2.__service.__get__connection(), _local2.__service.__get__responder()));
_local1 = serv;
} else if (_local1 instanceof mx.remoting.RecordSet) {
var _local3 = new mx.remoting.NetServiceProxy(_local2.__service.__get__connection());
_local1._setParentService(_local3);
_local1.logger = _local2.__service.log;
}
}
if (_local2.__responder != null) {
_local2.__responder.onResult(new mx.rpc.ResultEvent(_local1));
}
if (_local2.__service.log != null) {
_local2.__service.log.logInfo((((_local2.__service.__get__name() + ".") + _local2.__methodName) + "() returned ") + mx.data.binding.ObjectDumper.toString(_local1));
}
}
function onStatus(status) {
var _local1 = this;
var _local2 = status;
if (_local1.__responder != null) {
_local1.__responder.onFault(new mx.rpc.FaultEvent(new mx.rpc.Fault(_local2.code, _local2.description, _local2.details, _local2.type)));
}
if (_local1.__service.log != null) {
_local1.__service.log.logDebug("Service invocation failed.");
_local1.__service.log.logDebug((((_local1.__service.__get__name() + ".") + _local1.__methodName) + "() returned ") + mx.data.binding.ObjectDumper.toString(_local2));
}
}
function get methodName() {
return(__methodName);
}
static var inited = mx.remoting.NetServiceProxy.registerNetServiceProxy();
}
Symbol 60 MovieClip [__Packages.mx.rpc.ResultEvent] Frame 0
class mx.rpc.ResultEvent extends Object
{
var __result;
function ResultEvent (res) {
super();
__result = res;
}
function get result() {
return(__result);
}
}
Symbol 61 MovieClip [__Packages.mx.rpc.Fault] Frame 0
class mx.rpc.Fault extends Object
{
var __faultcode, __faultstring, __detail, __type;
function Fault (code, msg, detail, type) {
var _local1 = this;
super();
_local1.__faultcode = code;
_local1.__faultstring = msg;
_local1.__detail = detail;
_local1.__type = type;
}
function get faultcode() {
return(__faultcode);
}
function get faultstring() {
return(__faultstring);
}
function get detail() {
return(__detail);
}
function get description() {
var _local2 = this;
if (_local2.__description == null) {
if (_local2.__faultstring.indexOf(":") > -1) {
_local2.__description = _local2.__faultstring.substring(_local2.__faultstring.indexOf(":") + 1);
var _local1 = 0;
while (_local2.__description.indexOf(" ", _local1) == _local1) {
_local1++;
}
if (_local1 > 0) {
_local2.__description = _local2.__description.substring(_local1);
}
} else {
_local2.__description = _local2.__faultstring;
}
}
return(_local2.__description);
}
function get type() {
return(__type);
}
}
Symbol 62 MovieClip [__Packages.mx.rpc.FaultEvent] Frame 0
class mx.rpc.FaultEvent extends Object
{
var __fault;
function FaultEvent (f) {
super();
__fault = f;
}
function get fault() {
return(__fault);
}
}
Symbol 63 MovieClip [__Packages.mx.rpc.Responder] Frame 0
interface mx.rpc.Responder{}
Symbol 64 MovieClip [__Packages.mx.remoting.Service] Frame 0
class mx.remoting.Service extends Object
{
var __conn, __serviceName, __responder;
function Service (gatewayURI, logger, serviceName, conn, resp) {
var _local1 = this;
var _local2 = conn;
var _local3 = gatewayURI;
super();
_local1.log = logger;
_local1.log.logInfo("Creating Service for " + serviceName, mx.services.Log.VERBOSE);
if ((_local3 == "") && (_local2 == null)) {
_local3 = mx.remoting.NetServices.gatewayUrl;
}
_local3 = mx.remoting.NetServices.getHttpUrl(_local3);
if (_local2 == null) {
_local2 = mx.remoting.NetServices.getConnection(_local3);
if (_local2 == null) {
_local1.log.logInfo("Creating gateway connection for " + _local3, mx.services.Log.VERBOSE);
_local2 = mx.remoting.NetServices.createGatewayConnection(_local3, logger);
}
}
_local1.__conn = _local2;
_local2.updateConfig();
_local1._allowRes = true;
_local1.__serviceName = serviceName;
_local1.__responder = resp;
_local1.log.logInfo("Successfully created Service", mx.services.Log.VERBOSE);
}
function get connection() {
return(__conn);
}
function __resolve(methodName) {
var _local2 = this;
if (_local2._allowRes) {
var _local1 = _local2.__makeOpFunc(methodName);
_local2[methodName] = _local1;
return(_local1);
}
return(null);
}
function __makeOpFunc(name) {
var op = (new mx.remoting.Operation(name, this));
var _local1 = function () {
op.invoke(arguments);
return(op.send());
};
_local1.send = function () {
return(op.createThenSend());
};
_local1.setResponder = function (resp) {
op.responder = resp;
};
_local1.getRequest = function () {
return(op.request);
};
_local1.setRequest = function (val) {
op.request = val;
};
_local1.addProperty("request", _local1.getRequest, _local1.setRequest);
_local1.operation = op;
return(_local1);
}
function get name() {
return(__serviceName);
}
function get responder() {
return(__responder);
}
static var version = "1.2.0.124";
var _allowRes = false;
}
Symbol 65 MovieClip [__Packages.mx.remoting.Operation] Frame 0
class mx.remoting.Operation
{
var __arguments, __responder, __request, __methodName;
function Operation (methodName, parent) {
var _local1 = this;
_local1.__service = parent;
_local1.__responder = parent.responder;
_local1.__methodName = methodName;
_local1.__invokationName = (_local1.__service.__get__name() + ".") + methodName;
_local1.__request = new Object();
_local1.__arguments = new Array();
}
function createThenSend(Void) {
createArguments();
return(send());
}
function send(Void) {
var _local1 = this;
_local1.__service.log.logInfo((("Invoking " + _local1.__methodName) + " on ") + _local1.__service.__get__name());
var _local3 = new mx.remoting.PendingCall(_local1.__service, _local1.__methodName);
_local3.__set__responder(_local1.__responder);
var _local2 = null;
if (_local1.__arguments == null) {
_local2 = new Array();
} else {
_local2 = _local1.__arguments.concat();
}
_local1.__invokationName = (_local1.__service.__get__name() + ".") + _local1.__methodName;
_local2.unshift(_local1.__invokationName, _local3);
_local1.__service.connection.call.apply(_local1.__service.__get__connection(), _local2);
return(_local3);
}
function invoke(a) {
__arguments = a;
}
function get responder() {
return(__responder);
}
function set responder(r) {
__responder = r;
//return(responder);
}
function get request() {
return(__request);
}
function set request(r) {
__request = r;
//return(request);
}
function get name() {
return(__methodName);
}
function createArguments() {
var _local1 = this;
if (_local1.__request != null) {
_local1.__arguments = new Array();
for (var _local2 in _local1.__request) {
if (_local2 != "arguments") {
_local1.__arguments.unshift(_local1.__request[_local2]);
}
}
}
}
}
Symbol 66 MovieClip [__Packages.mx.data.binding.ObjectDumper] Frame 0
class mx.data.binding.ObjectDumper
{
var inProgress;
function ObjectDumper () {
inProgress = new Array();
}
static function toString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local1 = indent;
var _local2 = maxLineLength;
var _local3 = new mx.data.binding.ObjectDumper();
if (_local2 == undefined) {
_local2 = 100;
}
if (_local1 == undefined) {
_local1 = 0;
}
return(_local3.realToString(obj, showFunctions, showUndefined, showXMLstructures, _local2, _local1));
}
function realToString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local1 = obj;
var x = 0;
while (x < inProgress.length) {
if (inProgress[x] == _local1) {
return("***");
}
x++;
}
inProgress.push(_local1);
indent++;
var t = typeof(_local1);
var result;
if ((_local1 instanceof XMLNode) && (showXMLstructures != true)) {
result = _local1.toString();
} else if (_local1 instanceof Date) {
result = _local1.toString();
} else if (t == "object") {
var _local3 = new Array();
if (_local1 instanceof Array) {
result = "[";
var i = 0;
while (i < _local1.length) {
_local3.push(i);
i++;
}
} else {
result = "{";
for (var i in _local1) {
_local3.push(i);
}
_local3.sort();
}
var sep = "";
var _local2 = 0;
while (_local2 < _local3.length) {
var val = _local1[_local3[_local2]];
var show = true;
if (typeof(val) == "function") {
show = showFunctions == true;
}
if (typeof(val) == "undefined") {
show = showUndefined == true;
}
if (show) {
result = result + sep;
if (!(_local1 instanceof Array)) {
result = result + (_local3[_local2] + ": ");
}
result = result + realToString(val, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent);
sep = ", `";
}
_local2++;
}
if (_local1 instanceof Array) {
result = result + "]";
} else {
result = result + "}";
}
} else if (t == "function") {
result = "function";
} else if (t == "string") {
result = ("\"" + _local1) + "\"";
} else {
result = String(_local1);
}
if (result == "undefined") {
result = "-";
}
inProgress.pop();
return(replaceAll(result, "`", ((result.length < maxLineLength) ? "" : (newline + doIndent(indent)))));
}
static function replaceAll(str, from, to) {
var _local3 = str.split(from);
var result = "";
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3.length) {
result = result + (_local2 + _local3[_local1]);
_local2 = to;
_local1++;
}
return(result);
}
function doIndent(indent) {
var _local3 = indent;
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3) {
_local2 = _local2 + " ";
_local1++;
}
return(_local2);
}
}
Symbol 67 MovieClip [__Packages.mx.rpc.RelayResponder] Frame 0
class mx.rpc.RelayResponder extends Object
{
var __onFault, __obj, __onResult;
function RelayResponder (resp, resultFunc, faultFunc) {
var _local1 = this;
super();
_local1.__obj = resp;
_local1.__onFault = faultFunc;
_local1.__onResult = resultFunc;
}
function onFault(fault) {
__obj[__onFault](fault);
}
function onResult(result) {
__obj[__onResult](result);
}
}
Symbol 68 MovieClip [__Packages.mx.rpc.DefaultResponder] Frame 0
class mx.rpc.DefaultResponder
{
var __target;
function DefaultResponder (t) {
target = (t);
}
function get target() {
return(__target);
}
function set target(t) {
__target = t;
//return(target);
}
function onResult(event) {
trace("RPC Result: " + event.__get__result());
}
function onFault(event) {
trace("RPC Fault: " + event.fault.faultstring);
}
}
Symbol 91 Button
on (release) {
getURL ("http://www.flashrevo.com", "_blank");
}
Symbol 95 Button
on (release) {
getURL ("http://www.clashflash.com", "_blank");
}
Symbol 114 MovieClip Frame 90
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 30
stop();
Symbol 157 Button
on (release) {
getURL ("http://www.flashrevo.com", "_blank");
}
Symbol 194 Button
on (release) {
_root.cpuSpeed = 7.8;
gotoAndStop ("play");
}
on (release) {
_root.naamSpelerA = speler.spelerA.text;
_root.spelerA = speler._currentframe;
_root.pongA = (speler._currentframe * 2) - 1;
_root.naamSpelerB = "Tenkes";
gotoAndStop ("lvl6");
}
Symbol 201 Button
on (release) {
_root.cpuSpeed = 9;
gotoAndStop ("play");
}
on (release) {
_root.naamSpelerA = speler.spelerA.text;
_root.spelerA = speler._currentframe;
_root.pongA = (speler._currentframe * 2) - 1;
_root.naamSpelerB = "Mr. G&W";
gotoAndStop ("lvl8");
}
Symbol 207 Button
on (release) {
_root.cpuSpeed = 10;
gotoAndStop ("play");
}
on (release) {
_root.naamSpelerA = speler.spelerA.text;
_root.spelerA = speler._currentframe;
_root.pongA = (speler._currentframe * 2) - 1;
_root.naamSpelerB = "Mr. G&W";
gotoAndStop ("lvl9");
}
Symbol 217 MovieClip Frame 15
stop();
Symbol 220 MovieClip Frame 31
stop();
Symbol 266 MovieClip Frame 645
stop();
Symbol 279 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 21
stop();
Symbol 305 MovieClip Frame 1
stop();
back.onRelease = function () {
_root.gotoAndStop("menu");
};
Symbol 305 MovieClip Frame 2
stop();
back.onRelease = function () {
_root.gotoAndStop("menu");
};
Symbol 377 MovieClip Frame 310
stop();