Frame 1
_quality = "LOW";
fscommand ("allowscale", false);
if (System.capabilities.version.substr(4, 1) < 8) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Frame 3
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
my_cm.builtInItems.print = true;
this.menu = my_cm;
var myBitmapData = (new flash.display.BitmapData(96, 96, false, 4294967295));
myBitmapData.draw(_root.maze);
var mc = this.createEmptyMovieClip("mc", 0);
mc.attachBitmap(myBitmapData, 0);
Instance of Symbol 7 MovieClip "player" in Frame 3
onClipEvent (load) {
function getKey() {
if (Key.isDown(37)) {
if (_root.myBitmapData.getPixel(_root.player._x - 1, _root.player._y).toString(16) != "0") {
this._x--;
}
}
if (Key.isDown(38)) {
if ((_root.myBitmapData.getPixel(_root.player._x, _root.player._y - 1).toString(16) != "0") && (this._y > 1)) {
this._y--;
}
}
if (Key.isDown(39)) {
if (_root.myBitmapData.getPixel(_root.player._x + 1, _root.player._y).toString(16) != "0") {
this._x++;
}
}
if (Key.isDown(40)) {
if ((_root.myBitmapData.getPixel(_root.player._x, _root.player._y + 1).toString(16) != "0") && (this._y < 94)) {
this._y++;
}
if ((this._x == 47) && (this._y == 94)) {
_root.win = true;
this._y = 150;
}
}
}
this.swapDepths(10);
}
onClipEvent (enterFrame) {
getKey();
}
Instance of Symbol 23 MovieClip in Frame 3
onClipEvent (load) {
_root.win = false;
this.swapDepths(11);
}
onClipEvent (enterFrame) {
if (_root.win) {
this.gotoAndStop(2);
}
}
Symbol 7 MovieClip Frame 100
gotoAndPlay (50);
Symbol 19 MovieClip Frame 32
gotoAndPlay (15);
Symbol 23 MovieClip Frame 1
stop();