Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var _local3;
var _local9;
var _local2;
var _local11;
var _local4;
var _local10;
var _local6;
_local9 = (_global ? _global : (_level0._root));
if (_local9["__mochibot__" + swfid]) {
return(_local9["__mochibot__" + swfid]);
}
_local2 = System.security;
_local3 = mc._root.getSWFVersion;
_local11 = 8;
if (!_local2) {
_local2 = {};
}
_local4 = _local2.sandboxType;
if (_local4 == "localWithFile") {
return(null);
}
_local3 = _local2.allowDomain;
if (_local3) {
_local2.allowDomain("mochibot.com");
}
_local3 = _local2.allowInsecureDomain;
if (_local3) {
_local2.allowInsecureDomain("mochibot.com");
}
_local10 = (((((((((("http://mochibot.com/my/core.swf?mv=7&fv=" + _local11) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (_local4 ? ("&sb=" + _local4) : "")) + (trk ? "&t=1" : "");
lv = mc.getNextHighestDepth();
_local6 = mc.createEmptyMovieClip("__mochibot__" + swfid, lv);
_local6.loadMovieNum(_local10, lv);
return(_local6);
}
__com_mochibot__("19267000", this, 10301, true);
mcProgressBar._xscale = 0;
Frame 3
mcProgressBar._xscale = (100 * getBytesLoaded()) / getBytesTotal();
if (getBytesLoaded() < getBytesTotal()) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay ("Init");
}
Frame 12
_root.txPreload.text = "";
var i = 32;
while (i < 150) {
_root.txPreload.text = _root.txPreload.text + String.fromCharCode(i);
i++;
}
Frame 14
if (this.getBytesLoaded() < this.getBytesTotal()) {
gotoAndPlay(_currentframe - 1);
}
Frame 15
_global.soundEffects = new sound.SoundEffects(_root);
soundEffects.playBackgroundLoop();
Instance of Symbol 111 MovieClip "mcArcadeTown" in Frame 158
onClipEvent (load) {
this.gotoAndStop(45);
}
Instance of Symbol 111 MovieClip "mcArcadeTown" in Frame 159
onClipEvent (load) {
this.gotoAndStop(54);
}
Instance of Symbol 111 MovieClip "mcArcadeTown" in Frame 161
onClipEvent (load) {
this.gotoAndStop(54);
}
Instance of Symbol 111 MovieClip "mcArcadeTown" in Frame 164
onClipEvent (load) {
this.gotoAndStop(47);
}
Instance of Symbol 111 MovieClip "mcArcadeTown" in Frame 166
onClipEvent (load) {
this.gotoAndStop(32);
}
Frame 168
function drawEffect() {
displacementMap.dispose();
bmp.dispose();
bmpGlow.dispose();
var _local3 = new flash.geom.Point(_root.mcGame._x, _root.mcGame._y);
displacementMap = new flash.display.BitmapData(400, 400, 0, true);
displacementMap.draw(_root.mcDisplacement);
var _local5 = new flash.filters.DisplacementMapFilter(displacementMap, new flash.geom.Point(0, 0), 4, 4, 5, 5, "ignore");
_root.mcGame._visible = true;
var _local2 = _root.effects.createEmptyMovieClip("layer", 0);
_local2._visible = false;
bmp = new flash.display.BitmapData(420, 420, true, 0);
var _local4 = new flash.geom.Matrix();
_local4.translate((-_local3.x) + 10, (-_local3.y) + 10);
bmp.draw(_root, _local4);
bmp.applyFilter(bmp, bmp.rectangle, new flash.geom.Point(0, 0), _local5);
bmpGlow = bmp.clone();
bmpGlow.threshold(bmpGlow, bmpGlow.rectangle, new flash.geom.Point(0, 0), "<", 13421772, 0, 16777215, true);
bmpGlow.applyFilter(bmpGlow, bmpGlow.rectangle, new flash.geom.Point(0, 0), new flash.filters.BlurFilter(2, 2, 5));
_local2.attachBitmap(bmpGlow, 1);
_local2.attachBitmap(bmp, 0);
_local2._x = _local3.x - 10;
_local2._y = _local3.y - 10;
_local2._visible = true;
_root.mcGame._visible = false;
}
_global.soundEffects = new sound.SoundEffects(_root);
soundEffects.playBackgroundLoop();
_root.mcDisplacement._visible = false;
var effects = _root.createEmptyMovieClip("effects", 1);
effects.onEnterFrame = drawEffect;
var displacementMap;
var bmp;
var bmpGlow;
var userData = SharedObject.getLocal("ReMazeSaveGame");
if (userData.data.level == undefined) {
this.btContinue._visible = false;
}
Frame 190
stop();
Frame 222
_root.effects.removeMovieClip();
Frame 255
function drawEffect() {
displacementMap.dispose();
bmp.dispose();
bmpGlow.dispose();
var _local3 = new flash.geom.Point(_root.mcGame._x, _root.mcGame._y);
displacementMap = new flash.display.BitmapData(400, 400, 0, true);
displacementMap.draw(_root.mcDisplacement);
var _local5 = new flash.filters.DisplacementMapFilter(displacementMap, new flash.geom.Point(0, 0), 4, 4, 5, 5, "ignore");
_root.mcGame._visible = true;
var _local2 = _root.effects.createEmptyMovieClip("layer", 0);
_local2._visible = false;
bmp = new flash.display.BitmapData(420, 420, true, 0);
var _local4 = new flash.geom.Matrix();
_local4.translate((-_local3.x) + 10, (-_local3.y) + 10);
bmp.draw(_root, _local4);
bmp.applyFilter(bmp, bmp.rectangle, new flash.geom.Point(0, 0), _local5);
bmpGlow = bmp.clone();
bmpGlow.threshold(bmpGlow, bmpGlow.rectangle, new flash.geom.Point(0, 0), "<", 13421772, 0, 16777215, true);
bmpGlow.applyFilter(bmpGlow, bmpGlow.rectangle, new flash.geom.Point(0, 0), new flash.filters.BlurFilter(2, 2, 5));
_local2.attachBitmap(bmpGlow, 1);
_local2.attachBitmap(bmp, 0);
_local2._x = _local3.x - 10;
_local2._y = _local3.y - 10;
_local2._visible = true;
_root.mcGame._visible = false;
}
_global.soundEffects = new sound.SoundEffects(_root);
soundEffects.playBackgroundLoop();
_root.mcDisplacement._visible = false;
var effects = _root.createEmptyMovieClip("effects", 1);
effects.onEnterFrame = drawEffect;
var displacementMap;
var bmp;
var bmpGlow;
stop();
Frame 256
gotoAndStop ("Play");
Frame 257
gotoAndStop ("Play");
Frame 258
gotoAndStop ("Play");
Symbol 2 MovieClip [Tile_Solid] Frame 1
#initclip 51
Object.registerClass("Tile_Solid", tiles.Solid);
#endinitclip
Symbol 4 MovieClip [Tile_Walkable] Frame 1
#initclip 18
Object.registerClass("Tile_Walkable", tiles.Walkable);
#endinitclip
Symbol 6 MovieClip [Target] Frame 1
#initclip 19
Object.registerClass("Target", entities.Target);
#endinitclip
Symbol 8 MovieClip [Teleporter] Frame 1
#initclip 20
Object.registerClass("Teleporter", entities.Teleporter);
#endinitclip
Symbol 10 MovieClip [Trap] Frame 1
#initclip 21
Object.registerClass("Trap", entities.Trap);
#endinitclip
Symbol 19 MovieClip [Player] Frame 1
#initclip 22
Object.registerClass("Player", entities.Player);
#endinitclip
play();
Symbol 19 MovieClip [Player] Frame 3
stop();
Symbol 19 MovieClip [Player] Frame 18
this.applyDestinedPosition();
Symbol 19 MovieClip [Player] Frame 26
this.animationIsPlaying = false;
gotoAndPlay ("NormalNoTrans");
Symbol 19 MovieClip [Player] Frame 30
_global.soundEffects.playDyingSound();
Symbol 19 MovieClip [Player] Frame 71
this.animationIsPlaying = false;
this.currentLab.playerDied();
stop();
Symbol 24 MovieClip [Player Mirrored] Frame 1
#initclip 23
Object.registerClass("Player Mirrored", entities.PlayerMirrored);
#endinitclip
play();
Symbol 24 MovieClip [Player Mirrored] Frame 3
stop();
Symbol 24 MovieClip [Player Mirrored] Frame 18
this.applyDestinedPosition();
Symbol 24 MovieClip [Player Mirrored] Frame 26
this.animationIsPlaying = false;
gotoAndPlay ("NormalNoTrans");
Symbol 24 MovieClip [Player Mirrored] Frame 30
_global.soundEffects.playDyingSound();
Symbol 24 MovieClip [Player Mirrored] Frame 71
this.animationIsPlaying = false;
this.currentLab.playerDied();
stop();
Symbol 29 MovieClip [PlayerCW] Frame 1
#initclip 24
Object.registerClass("PlayerCW", entities.PlayerCW);
#endinitclip
play();
Symbol 29 MovieClip [PlayerCW] Frame 3
stop();
Symbol 29 MovieClip [PlayerCW] Frame 18
this.applyDestinedPosition();
Symbol 29 MovieClip [PlayerCW] Frame 26
this.animationIsPlaying = false;
gotoAndPlay ("NormalNoTrans");
Symbol 29 MovieClip [PlayerCW] Frame 30
_global.soundEffects.playDyingSound();
Symbol 29 MovieClip [PlayerCW] Frame 71
this.animationIsPlaying = false;
this.currentLab.playerDied();
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 32 MovieClip [Lab_22] Frame 1
#initclip 25
Object.registerClass("Lab_22", lab.Lab);
#endinitclip
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 32 MovieClip [Lab_22] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "targetA";
}
Symbol 36 MovieClip [GlowingTrap] Frame 1
#initclip 26
Object.registerClass("GlowingTrap", entities.Trap);
#endinitclip
if (!inited) {
inited = true;
gotoAndPlay(Math.floor(Math.random() * _totalframes));
}
Symbol 37 MovieClip Frame 1
stop();
Symbol 38 MovieClip [Lab_23] Frame 1
#initclip 27
Object.registerClass("Lab_23", lab.Lab);
#endinitclip
this.jumpA._alpha = 25;
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 38 MovieClip [Lab_23] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "B";
}
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 38 MovieClip [Lab_23] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "jumpC";
}
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 38 MovieClip [Lab_23] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "A";
}
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 38 MovieClip [Lab_23] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "C";
}
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 38 MovieClip [Lab_23] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "E";
}
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 38 MovieClip [Lab_23] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "F";
}
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 38 MovieClip [Lab_23] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "D";
}
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 38 MovieClip [Lab_23] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "jumpTest";
}
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 38 MovieClip [Lab_23] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "jumpB";
}
Symbol 39 MovieClip Frame 1
stop();
Symbol 40 MovieClip [Lab_21] Frame 1
#initclip 28
Object.registerClass("Lab_21", lab.Lab);
#endinitclip
Symbol 41 MovieClip [Lab_20] Frame 1
#initclip 29
Object.registerClass("Lab_20", lab.Lab);
#endinitclip
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 41 MovieClip [Lab_20] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "targetA";
}
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 41 MovieClip [Lab_20] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "targetB";
}
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 41 MovieClip [Lab_20] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "targetC";
}
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 41 MovieClip [Lab_20] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "targetD";
}
Symbol 42 MovieClip [Lab_18] Frame 1
#initclip 30
Object.registerClass("Lab_18", lab.Lab);
#endinitclip
Symbol 43 MovieClip [Lab_19] Frame 1
#initclip 31
Object.registerClass("Lab_19", lab.Lab);
#endinitclip
Symbol 44 MovieClip [Lab_17] Frame 1
#initclip 32
Object.registerClass("Lab_17", lab.Lab);
#endinitclip
Symbol 45 MovieClip [Lab_15] Frame 1
#initclip 33
Object.registerClass("Lab_15", lab.Lab);
#endinitclip
Symbol 46 MovieClip [Lab_16] Frame 1
#initclip 34
Object.registerClass("Lab_16", lab.Lab);
#endinitclip
Symbol 47 MovieClip [Lab_10] Frame 1
#initclip 35
Object.registerClass("Lab_10", lab.Lab);
#endinitclip
Symbol 49 MovieClip Frame 1
function onEnterFrame() {
if (timer > 0) {
timer--;
return(undefined);
}
timer = timerTotal;
var _local1 = field.text;
if (currentWordOffset < currentWord.length) {
_local1 = _local1 + currentWord.charAt(currentWordOffset);
currentWordOffset++;
} else if ((countDown--) > 0) {
} else {
countDown = countDownTime;
currentWordOffset = 0;
if (wordMatches || ((Math.random() * 100) < 90)) {
wordMatches = false;
currentWordIndex = (currentWordIndex + 1) % words.length;
currentWord = words[currentWordIndex];
} else {
wordMatches = true;
currentWordIndex = Math.floor(Math.random() * words.length);
currentWord = matchingWords[Math.floor(Math.random() * matchingWords.length)];
}
_local1 = "";
}
field.text = _local1;
if (wordMatches) {
var _local2 = new TextFormat();
_local2.color = 16711680 /* 0xFF0000 */;
field.setTextFormat(0, 2, _local2);
}
}
this.createTextField("txField", 99, 0, 11, _width, 40);
var field = this.txField;
var format = new TextFormat();
format.font = "Bit3";
format.size = 16;
format.align = "center";
field.setNewTextFormat(format);
field.textColor = 16777215 /* 0xFFFFFF */;
field.text = "Teset";
var currentWordIndex = Math.floor(Math.random() * words.length);
var currentWord = words[currentWordIndex];
var currentWordOffset = 0;
var countDownTime = 10;
var countDown = countDownTime;
var wordMatches = false;
var timerTotal = 5;
var timer = timerTotal;
field.text = "";
stop();
Symbol 50 MovieClip [Lab_014] Frame 1
#initclip 36
Object.registerClass("Lab_014", lab.Lab);
#endinitclip
Instance of Symbol 49 MovieClip in Symbol 50 MovieClip [Lab_014] Frame 1
//component parameters
onClipEvent (construct) {
words = [];
words[0] = "remake";
words[1] = "re-enter";
words[2] = "re-echo";
words[3] = "reconsider";
words[4] = "rename";
words[5] = "replace";
words[6] = "rebuild";
words[7] = "re-construct";
words[8] = "recalculate";
words[9] = "re-connect";
words[10] = "re-check";
matchingWords = [];
matchingWords[0] = "restrict";
matchingWords[1] = "replay";
matchingWords[2] = "rethink";
}
Symbol 51 MovieClip [Lab_11] Frame 1
#initclip 37
Object.registerClass("Lab_11", lab.Lab);
#endinitclip
Symbol 71 MovieClip Frame 1
function onEnterFrame() {
var _local2 = fields[Math.floor(Math.random() * fields.length)];
var _local1 = _local2.text;
if ((Math.random() * 1000) < 3) {
_local1 = words[Math.floor(Math.random() * words.length)] + _local1;
} else {
_local1 = String.fromCharCode(Math.floor((Math.random() * 32) + 90)) + _local1;
}
if (_local1.length > 8) {
_local1.substr(0, 8);
}
_local2.text = _local1;
}
var fields = [];
for (var i in this) {
var field = TextField(this[i]);
if (field) {
fields.push(field);
}
}
var j = 0;
while (j < fields.length) {
fields[j].text = "";
j++;
}
stop();
Symbol 72 MovieClip [Lab_12] Frame 1
#initclip 38
Object.registerClass("Lab_12", lab.Lab);
#endinitclip
Instance of Symbol 71 MovieClip in Symbol 72 MovieClip [Lab_12] Frame 1
//component parameters
onClipEvent (construct) {
words = [];
words[0] = "DARK";
words[1] = "HELP";
words[2] = "PAIN";
words[3] = "HATEHATEHATE";
words[4] = "CONFUSED";
words[5] = "REVENGE";
}
Symbol 73 MovieClip [Lab_09] Frame 1
#initclip 39
Object.registerClass("Lab_09", lab.Lab);
#endinitclip
Symbol 74 MovieClip [Lab_08] Frame 1
#initclip 40
Object.registerClass("Lab_08", lab.Lab);
#endinitclip
Symbol 75 MovieClip [Lab_07] Frame 1
#initclip 41
Object.registerClass("Lab_07", lab.Lab);
#endinitclip
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 75 MovieClip [Lab_07] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "target";
}
Symbol 76 MovieClip [Lab_13] Frame 1
#initclip 42
Object.registerClass("Lab_13", lab.Lab);
#endinitclip
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 76 MovieClip [Lab_13] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "targetA";
}
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 76 MovieClip [Lab_13] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "targetB";
}
Instance of Symbol 8 MovieClip [Teleporter] in Symbol 76 MovieClip [Lab_13] Frame 1
//component parameters
onClipEvent (construct) {
targetMovieClip = "targetC";
}
Symbol 77 MovieClip [Lab_05] Frame 1
#initclip 43
Object.registerClass("Lab_05", lab.Lab);
#endinitclip
Symbol 78 MovieClip [Lab_04] Frame 1
#initclip 44
Object.registerClass("Lab_04", lab.Lab);
#endinitclip
Symbol 79 MovieClip [Lab_03] Frame 1
#initclip 45
Object.registerClass("Lab_03", lab.Lab);
#endinitclip
Symbol 80 MovieClip [Lab_06] Frame 1
#initclip 46
Object.registerClass("Lab_06", lab.Lab);
#endinitclip
Symbol 81 MovieClip [Lab_06_b] Frame 1
#initclip 47
Object.registerClass("Lab_06_b", lab.Lab);
#endinitclip
Symbol 82 MovieClip [Lab_02] Frame 1
#initclip 48
Object.registerClass("Lab_02", lab.Lab);
#endinitclip
Symbol 83 MovieClip [Lab_01] Frame 1
#initclip 49
Object.registerClass("Lab_01", lab.Lab);
#endinitclip
Symbol 84 MovieClip [Lab_00] Frame 1
#initclip 50
Object.registerClass("Lab_00", lab.Lab);
#endinitclip
Symbol 160 MovieClip [__Packages.graphics.Movie] Frame 0
class graphics.Movie extends MovieClip
{
var moviePosition, _x, _y, beginFill, lineStyle, moveTo, lineTo, endFill, removeMovieClip;
function Movie () {
super();
moviePosition = new math.Vector();
}
function get position() {
moviePosition.x = _x;
moviePosition.y = _y;
return(moviePosition.copy());
}
function set position(pos) {
_x = (moviePosition.x = pos.x);
_y = (moviePosition.y = pos.y);
//return(position);
}
function drawSquare(size, fillColor, lineColor, strokeWidth) {
beginFill(fillColor);
lineStyle(strokeWidth, lineColor);
moveTo(0, 0);
lineTo(size, 0);
lineTo(size, size);
lineTo(0, size);
endFill();
}
function remove() {
removeMovieClip();
}
function toString() {
return("M " + this);
}
}
Symbol 161 MovieClip [__Packages.math.Vector] Frame 0
class math.Vector
{
static var pool;
var x, y, next;
function Vector (__x, __y) {
x = ((__x == undefined) ? 0 : (__x));
y = ((__y == undefined) ? 0 : (__y));
next = null;
}
static function random(scalar) {
scalar = ((scalar == undefined) ? 1 : (scalar));
var _local2 = recycle();
_local2.x = (Math.random() * scalar) - (scalar / 2);
_local2.y = (Math.random() * scalar) - (scalar / 2);
return(_local2);
}
function change(__x, __y) {
x = __x;
y = __y;
}
function copy() {
return(new math.Vector(x, y));
}
function equals(other) {
if (other.x != x) {
return(false);
}
if (other.y != y) {
return(false);
}
return(true);
}
function isValid() {
return(!((((x == undefined) || (y == undefined)) || (isNaN(x))) || (isNaN(y))));
}
function isZero() {
return((x == 0) && (y == 0));
}
static function trash(vec) {
if (poolSize > MAX_SIZE) {
return(undefined);
}
vec.x = (vec.y = 0);
vec.next = pool;
pool = vec;
poolSize++;
}
static function recycle() {
if (poolSize > 0) {
poolSize--;
var _local1 = pool;
pool = pool.next;
return(_local1);
}
return(new math.Vector());
}
function mAdd(V) {
x = x + V.x;
y = y + V.y;
}
function mSub(V) {
x = x - V.x;
y = y - V.y;
}
function mScalar(a) {
x = x * a;
y = y * a;
}
function mNormal() {
var _local2 = x;
x = -y;
y = _local2;
}
function mNormalize() {
var _local2 = Math.sqrt((x * x) + (y * y));
x = x / _local2;
y = y / _local2;
}
function mSaveNormalize() {
if ((x == 0) && (y == 0)) {
return(undefined);
}
var _local2 = Math.sqrt((x * x) + (y * y));
x = x / _local2;
y = y / _local2;
}
function mInverse() {
x = -x;
y = -y;
}
function mProjectOn(V) {
var _local3 = ((x * V.x) + (y * V.y)) / ((V.x * V.x) + (V.y * V.y));
x = _local3 * V.x;
y = _local3 * V.y;
}
function mSaveProjectOn(V) {
if ((V.x != 0) || (V.y != 0)) {
var _local3 = ((x * V.x) + (y * V.y)) / ((V.x * V.x) + (V.y * V.y));
x = _local3 * V.x;
y = _local3 * V.y;
} else {
x = (y = 0);
}
}
function get length() {
return(Math.sqrt((x * x) + (y * y)));
}
function get angle() {
return(Math.atan2(y, x));
}
function get length2() {
return((x * x) + (y * y));
}
function toString() {
return(((("(" + (Math.round(x * 100) / 100)) + ",") + (Math.round(y * 100) / 100)) + ")");
}
function add(W) {
return(new math.Vector(x + W.x, y + W.y));
}
function sub(W) {
return(new math.Vector(x - W.x, y - W.y));
}
function dot(W) {
return((x * W.x) + (y * W.y));
}
function cross(W) {
return((x * W.y) - (y * W.x));
}
function scalar(a) {
return(new math.Vector(a * x, a * y));
}
function normal() {
return(new math.Vector(-y, x));
}
function normalize() {
var _local2 = Math.sqrt((x * x) + (y * y));
return(new math.Vector(x / _local2, y / _local2));
}
function saveNormalize() {
if ((x == 0) && (y == 0)) {
return(new math.Vector(0, 0));
}
var _local2 = Math.sqrt((x * x) + (y * y));
return(new math.Vector(x / _local2, y / _local2));
}
function inverse() {
return(new math.Vector(-x, -y));
}
function normalInv() {
return(new math.Vector(y, x));
}
function projectOn(W) {
var _local3 = W.x;
var _local2 = W.y;
var _local4 = ((x * _local3) + (y * _local2)) / ((_local3 * _local3) + (_local2 * _local2));
return(new math.Vector(_local4 * _local3, _local4 * _local2));
}
function saveProjectOn(W) {
var _local3 = 0;
var _local2 = 0;
if ((W.x != 0) || (W.y != 0)) {
_local3 = W.x;
_local2 = W.y;
var _local5 = ((x * _local3) + (y * _local2)) / ((_local3 * _local3) + (_local2 * _local2));
_local3 = _local5 * _local3;
_local2 = _local5 * _local2;
}
return(new math.Vector(_local3, _local2));
}
function draw(pos, canvas, color) {
canvas.lineStyle(2, color);
canvas.moveTo(pos.x, pos.y);
canvas.lineTo(pos.x + x, pos.y + y);
}
static var poolSize = 0;
static var MAX_SIZE = 50;
}
Symbol 162 MovieClip [__Packages.entities.Entity] Frame 0
class entities.Entity extends graphics.Movie
{
var currentLab, gridPosition, __get__position, initPosition, __set__position;
function Entity () {
super();
}
function init(currentLab) {
this.currentLab = currentLab;
gridPosition = currentLab.getGridPosition(__get__position());
initPosition = gridPosition.copy();
applyGridPosition();
}
function applyGridPosition() {
__set__position(currentLab.getRealPosition(gridPosition));
}
function getGridPosition() {
return(gridPosition);
}
function reset() {
gridPosition.x = initPosition.x;
gridPosition.y = initPosition.y;
applyGridPosition();
}
}
Symbol 163 MovieClip [__Packages.lab.Lab] Frame 0
class lab.Lab extends graphics.Movie
{
var height, _height, width, _width, players, buisyFlag, initFlag, touchablesList, grid, touchablesGrid, currentGame, mcResetEffect, keyInputDesired;
function Lab () {
super();
height = _height / 20;
width = _width / 20;
players = [];
touchables = [];
buisyFlag = (initFlag = false);
touchablesList = [];
grid = new Array(width);
touchablesGrid = new Array(width);
var _local4 = 0;
while (_local4 < width) {
grid[_local4] = new Array(height);
touchablesGrid[_local4] = new Array(height);
var _local3 = 0;
while (_local3 < height) {
grid[_local4][_local3] = null;
touchablesGrid[_local4][_local3] = [];
_local3++;
}
_local4++;
}
}
function init(currentGame) {
this.currentGame = currentGame;
if (initFlag) {
return(undefined);
}
initFlag = true;
for (var _local7 in this) {
var _local3 = tiles.Tile(this[_local7]);
if (_local3) {
grid[Math.floor(_local3._x / 20)][Math.floor(_local3._y / 20)] = _local3;
continue;
}
var _local2 = entities.Entity(this[_local7]);
if (_local2) {
_local2.init(this);
var _local5 = _local2.getGridPosition();
var _local6 = entities.Player(_local2);
if (_local6) {
players.push(_local6);
continue;
}
var _local4 = entities.Touchable(_local2);
if (_local4) {
touchablesGrid[_local5.x][_local5.y].push(_local4);
touchablesList.push(_local4);
continue;
}
}
}
}
function playerDied() {
currentGame.reset();
}
function reset() {
var _local3 = 0;
while (_local3 < players.length) {
players[_local3].reset();
_local3++;
}
var _local2 = 0;
while (_local2 < touchablesList.length) {
touchablesList[_local2].reset();
_local2++;
}
buisyFlag = false;
mcResetEffect.play();
}
function kill() {
currentGame = null;
}
function update() {
keyInputDesired = true;
buisyFlag = false;
for (var _local4 in players) {
players[_local4].setFinished(false);
if (players[_local4].isBuisy()) {
buisyFlag = true;
keyInputDesired = false;
}
}
for (var _local4 in players) {
var _local3 = players[_local4].getGridPosition();
var _local2 = 0;
while (_local2 < touchablesGrid[_local3.x][_local3.y].length) {
touchablesGrid[_local3.x][_local3.y][_local2].touchedBy(players[_local4]);
_local2++;
}
}
}
function keyPressed(key) {
if (!keyInputDesired) {
return(undefined);
}
var _local3 = new math.Vector();
if (key == 37) {
_local3.x = -1;
} else if (key == 39) {
_local3.x = 1;
} else if (key == 38) {
_local3.y = -1;
} else if (key == 40) {
_local3.y = 1;
}
var _local2 = 0;
while (_local2 < players.length) {
players[_local2].move(_local3.copy());
_local2++;
}
keyInputDesired = false;
}
function isBuisy() {
return(buisyFlag);
}
function isDone() {
if (players.length == 0) {
return(false);
}
for (var _local2 in players) {
if (!players[_local2].isFinished()) {
return(false);
}
}
return(true);
}
function getGridPosition(position) {
return(new math.Vector(Math.floor(position.x / TILE_SIZE), Math.floor(position.y / TILE_SIZE)));
}
function getRealPosition(gridPosition) {
return(gridPosition.scalar(20));
}
function getTile(position) {
return(grid[position.x][position.y]);
}
var TILE_SIZE = 20;
}
Symbol 164 MovieClip [__Packages.game.Game] Frame 0
class game.Game extends Object
{
var labs, acceptKeyInput;
function Game (target) {
super();
labs = [];
for (var _local5 in target) {
var _local3 = lab.Lab(target[_local5]);
_local3.init(this);
if (_local3) {
labs.push(_local3);
}
}
acceptKeyInput = true;
Key.addListener(this);
}
function update() {
var _local2 = true;
acceptKeyInput = true;
for (var _local3 in labs) {
labs[_local3].update();
_local2 = _local2 && (labs[_local3].isDone());
acceptKeyInput = acceptKeyInput && (!labs[_local3].isBuisy());
}
return(_local2);
}
function kill() {
Key.removeListener(this);
for (var _local2 in labs) {
labs[_local2].kill();
}
labs = [];
}
function reset() {
var _local2 = 0;
while (_local2 < labs.length) {
labs[_local2].reset();
_local2++;
}
}
function onKeyDown() {
var _local2 = Key.getCode();
if (!acceptKeyInput) {
return(undefined);
}
if (_local2 == 32) {
reset();
return(undefined);
}
for (var _local3 in labs) {
labs[_local3].keyPressed(_local2);
}
}
}
Symbol 165 MovieClip [__Packages.tiles.Tile] Frame 0
class tiles.Tile extends graphics.Movie
{
function Tile () {
super();
}
function isWalkable(from) {
trace("abstract");
return(false);
}
}
Symbol 166 MovieClip [__Packages.entities.Moveable] Frame 0
interface entities.Moveable
{
}
Symbol 167 MovieClip [__Packages.entities.Player] Frame 0
class entities.Player extends entities.Entity implements entities.Moveable
{
var dead, finished, animationIsPlaying, gridPosition, currentLab, applyGridPosition, destinedPosition, gotoAndPlay;
function Player () {
super();
}
function init(currentLab) {
super.init(currentLab);
dead = (finished = (animationIsPlaying = false));
}
function move(dir) {
if (animationIsPlaying) {
return(undefined);
}
var _local2 = gridPosition.add(dir);
var _local3 = currentLab.getTile(_local2);
if (_local3.isWalkable()) {
gridPosition = _local2;
}
applyGridPosition();
}
function applyDestinedPosition() {
gridPosition = destinedPosition;
destinedPosition = null;
applyGridPosition();
}
function teleportTo(position) {
if (destinedPosition != null) {
return(undefined);
}
destinedPosition = position.copy();
animationIsPlaying = true;
(gotoAndPlay("Teleport"));// not popped
}
function die() {
if (dead) {
return(undefined);
}
dead = (animationIsPlaying = true);
(gotoAndPlay("Die"));// not popped
}
function reachedTarget() {
finished = true;
}
function setFinished(finished) {
this.finished = finished;
}
function isFinished() {
return(finished);
}
function isBuisy() {
return(animationIsPlaying);
}
function reset() {
super.reset();
finished = (dead = (animationIsPlaying = false));
(gotoAndPlay("Normal"));// not popped
}
}
Symbol 168 MovieClip [__Packages.entities.Touchable] Frame 0
interface entities.Touchable
{
}
Symbol 169 MovieClip [__Packages.entities.Teleporter] Frame 0
class entities.Teleporter extends entities.Entity implements entities.Touchable
{
var targetPosition, targetMovieClip;
function Teleporter () {
super();
targetPosition = new math.Vector();
}
function init(currentLab) {
super.init(currentLab);
targetPosition.x = currentLab[targetMovieClip]._x;
targetPosition.y = currentLab[targetMovieClip]._y;
targetPosition = currentLab.getGridPosition(targetPosition);
}
function touchedBy(player) {
player.teleportTo(targetPosition);
}
}
Symbol 170 MovieClip [__Packages.tiles.Walkable] Frame 0
class tiles.Walkable extends tiles.Tile
{
function Walkable () {
super();
}
function isWalkable(from) {
return(true);
}
}
Symbol 171 MovieClip [__Packages.entities.Target] Frame 0
class entities.Target extends entities.Entity implements entities.Touchable
{
function Target () {
super();
}
function init(currentLab) {
super.init(currentLab);
}
function touchedBy(player) {
player.reachedTarget();
}
function reset() {
super.reset();
}
}
Symbol 172 MovieClip [__Packages.entities.Trap] Frame 0
class entities.Trap extends entities.Entity implements entities.Touchable
{
function Trap () {
super();
}
function touchedBy(player) {
player.die();
}
}
Symbol 173 MovieClip [__Packages.entities.PlayerMirrored] Frame 0
class entities.PlayerMirrored extends entities.Player
{
function PlayerMirrored () {
super();
}
function move(dir) {
dir.mScalar(-1);
super.move(dir);
}
}
Symbol 174 MovieClip [__Packages.entities.PlayerCW] Frame 0
class entities.PlayerCW extends entities.Player
{
function PlayerCW () {
super();
}
function move(dir) {
dir.mNormal();
super.move(dir);
}
}
Symbol 175 MovieClip [__Packages.tiles.Solid] Frame 0
class tiles.Solid extends tiles.Tile
{
function Solid () {
super();
}
function isWalkable(from) {
return(false);
}
}
Symbol 176 MovieClip [__Packages.sound.SoundEffects] Frame 0
class sound.SoundEffects
{
var backgroundLoop, dyingSound, backgroundLoopIsPlaying;
function SoundEffects (target) {
backgroundLoop = new Sound(target);
dyingSound = new Sound(target);
backgroundLoopIsPlaying = false;
}
function playBackgroundLoop() {
if (backgroundLoopIsPlaying) {
return(undefined);
}
backgroundLoopIsPlaying = true;
backgroundLoop.attachSound("Loop");
backgroundLoop.start(0, 9999999999);
}
function playDyingSound() {
dyingSound.attachSound("PlayerDead");
dyingSound.start(0, 0);
}
}
Symbol 111 MovieClip Frame 54
stop();
Symbol 113 Button
on (press) {
getURL ("http://www.arcadetown.com/index.asp?gameid=remaze", "_blank");
}
Symbol 118 MovieClip Frame 149
if ((firstTime != undefined) && (Math.random() < 0.5)) {
firstTime = false;
gotoAndPlay (1);
}
Symbol 123 Button
on (press) {
play();
}
Instance of Symbol 130 MovieClip in Symbol 131 MovieClip Frame 1
on (press) {
getURL ("http://www.arcadetown.com/index.asp?gameid=remaze", "_blank");
}
Symbol 132 Button
on (press) {
getURL ("http://www.arcadetown.com/free_content/index.asp", "_blank");
}
Symbol 133 Button
on (press) {
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = undefined;
userData.flush();
play();
}
Symbol 134 Button
on (press) {
getURL ("http://www.arcadetown.com/index.asp?gameid=remaze", "_blank");
}
Symbol 135 Button
on (press) {
play();
}
Symbol 159 MovieClip Frame 1
var userData = SharedObject.getLocal("ReMazeSaveGame");
if (userData.data.level == undefined) {
play();
} else {
var level = String(userData.data.level);
this.gotoAndPlay("" + level);
}
Symbol 159 MovieClip Frame 185
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 186
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Turing";
userData.flush();
Symbol 159 MovieClip Frame 205
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 206
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Zuse";
userData.flush();
Symbol 159 MovieClip Frame 229
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 230
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Chomsky";
userData.flush();
Symbol 159 MovieClip Frame 248
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 249
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Church";
userData.flush();
Symbol 159 MovieClip Frame 273
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 274
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Neumann";
userData.flush();
Symbol 159 MovieClip Frame 299
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 300
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Knuth";
userData.flush();
Symbol 159 MovieClip Frame 356
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 357
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Babbage";
userData.flush();
Symbol 159 MovieClip Frame 368
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 369
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Hopper";
userData.flush();
Symbol 159 MovieClip Frame 384
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 385
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Weizenbaum";
userData.flush();
Symbol 159 MovieClip Frame 391
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 392
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Wirth";
userData.flush();
Symbol 159 MovieClip Frame 416
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 417
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Hoare";
userData.flush();
Symbol 159 MovieClip Frame 435
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 436
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Dijkstra";
userData.flush();
Symbol 159 MovieClip Frame 443
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 444
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Ford";
userData.flush();
Symbol 159 MovieClip Frame 462
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 463
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Naur";
userData.flush();
Symbol 159 MovieClip Frame 472
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 473
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Shannon";
userData.flush();
Symbol 159 MovieClip Frame 481
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 482
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Fulkerson";
userData.flush();
Symbol 159 MovieClip Frame 496
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 497
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Karp";
userData.flush();
Symbol 159 MovieClip Frame 507
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 508
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Edmonds";
userData.flush();
Symbol 159 MovieClip Frame 537
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 538
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Ackermann";
userData.flush();
Symbol 159 MovieClip Frame 571
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 572
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Petri";
userData.flush();
Symbol 159 MovieClip Frame 585
function onEnterFrame() {
var _local1 = currentGame.update();
if (_local1) {
currentGame.reset();
currentGame.kill();
onEnterFrame = null;
play();
}
}
var currentGame = (new game.Game(this));
stop();
Symbol 159 MovieClip Frame 586
var userData = SharedObject.getLocal("ReMazeSaveGame");
userData.data.level = "Sedgewick";
userData.flush();
Symbol 159 MovieClip Frame 602
function onEnterFrame() {
if (step >= 20) {
if ((countdown--) > 0) {
return(undefined);
}
onEnterFrame = null;
play();
return(undefined);
}
if (step <= 0) {
var _local2 = 0;
while (_local2 <= (20 + step)) {
var _local1 = 0;
while (_local1 <= (20 + step)) {
tiles[_local2][_local1 - _local2]._alpha = 100;
_local1++;
}
_local2++;
}
} else {
var _local2 = 0;
while (_local2 <= (20 + step)) {
var _local1 = 0;
while (_local1 <= (20 + step)) {
tiles[_local2 - _local1][_local1]._alpha = 100;
_local1++;
}
_local2++;
}
}
step++;
}
this.tiles = new Array(20);
var x = 0;
while (x < 20) {
tiles[x] = new Array(20);
var y = 0;
while (y < 20) {
var depth = ((x * 20) + y);
var tile;
if (((((y == 8) || (y == 9)) || (y == 10)) && ((x == 11) || (x == 9))) || ((y == 8) && (x == 8))) {
tile = this.attachMovie("Tile_Walkable", depth, depth);
} else {
tile = this.attachMovie("Tile_Solid", depth, depth);
}
tile._x = 20 * x;
tile._y = 20 * y;
tile._alpha = 0;
tiles[x][y] = tile;
y++;
}
x++;
}
var step = -20;
var countdown = 15;
stop();
Symbol 159 MovieClip Frame 614
function onEnterFrame() {
if (step >= 20) {
if ((countdown--) > 0) {
return(undefined);
}
onEnterFrame = null;
play();
return(undefined);
}
if (step <= 0) {
var _local2 = 0;
while (_local2 <= (20 + step)) {
var _local1 = 0;
while (_local1 <= (20 + step)) {
tiles[_local2][_local1 - _local2].removeMovieClip();
_local1++;
}
_local2++;
}
} else {
var _local2 = 0;
while (_local2 <= (20 + step)) {
var _local1 = 0;
while (_local1 <= (20 + step)) {
tiles[_local2 - _local1][_local1].removeMovieClip();
_local1++;
}
_local2++;
}
}
step++;
}
var step = -20;
var countdown = 15;
stop();
Symbol 159 MovieClip Frame 618
function onEnterFrame() {
index++;
if (index > text.length) {
onEnterFrame = null;
play();
return(undefined);
}
this.txMessage.text = this.txMessage.text + text.charAt(index);
}
var text = "You made it.";
var index = -1;
stop();
Symbol 159 MovieClip Frame 630
function onEnterFrame() {
index++;
if (index > text.length) {
onEnterFrame = null;
play();
return(undefined);
}
this.txMessage.text = this.txMessage.text + text.charAt(index);
}
var text = "\nYou aren't lost.";
var index = -1;
stop();
Symbol 159 MovieClip Frame 644
function onEnterFrame() {
index++;
if (index > text.length) {
onEnterFrame = null;
play();
return(undefined);
}
this.txMessage.text = this.txMessage.text + text.charAt(index);
}
var text = "\nPerhaps next time...";
var index = -1;
stop();
Symbol 159 MovieClip Frame 659
function onEnterFrame() {
index++;
if (index > text.length) {
onEnterFrame = null;
play();
return(undefined);
}
this.txMessage.text = this.txMessage.text + text.charAt(index);
}
var text = "\n...you'll even understand.";
var index = -1;
stop();
Symbol 159 MovieClip Frame 678
function onEnterFrame() {
if (txMessage.text.length > 0) {
txMessage.text = txMessage.text.substr(0, txMessage.length - 1);
} else {
onEnterFrame = null;
play();
}
}
stop();
Symbol 159 MovieClip Frame 692
function onEnterFrame() {
index++;
if (index > text.length) {
onEnterFrame = null;
play();
return(undefined);
}
this.txMessage.text = this.txMessage.text + text.charAt(index);
}
var text = "Created by Felix Reidl.";
var index = -1;
stop();
Symbol 159 MovieClip Frame 706
function onEnterFrame() {
index++;
if (index > text.length) {
onEnterFrame = null;
play();
return(undefined);
}
this.txMessage.text = this.txMessage.text + text.charAt(index);
}
var text = "\nSpecial thanks to Fernando.";
var index = -1;
stop();
Symbol 159 MovieClip Frame 725
function onEnterFrame() {
if (txMessage.text.length > 0) {
txMessage.text = txMessage.text.substr(0, txMessage.length - 1);
} else {
onEnterFrame = null;
play();
}
}
stop();
Symbol 159 MovieClip Frame 746
function onMouseDown() {
onMouseDown = null;
this.action = "replay";
play();
}
function onKeyDown() {
onKeyDown = null;
Key.removeListener(this);
play();
}
Key.addListener(this);
stop();
Symbol 159 MovieClip Frame 762
if (action == "replay") {
gotoAndPlay ("Game");
} else {
_root.gotoAndPlay("Menu");
}