Frame 1
setLevel = function (newLevel, newStart_point) {
levelData = newLevel;
start_point = newStart_point;
levelFromEditor = true;
};
stop();
var randInterface = ("loadInterface" + Math.floor(Math.random() * 2));
this.attachMovie(randInterface, "loadInterface", 0, {filename:"data"});
var total = this.getBytesTotal();
this.onEnterFrame = function () {
var _local2 = this.getBytesLoaded();
this.loadInterface.fill_mc._xscale = (_local2 * 100) / total;
if (_local2 == total) {
this.loadInterface.removeMovieClip();
this.play();
delete randInterface;
delete total;
this.onEnterFrame = function () {
};
}
};
onUnload = function () {
mdm.Exception.DebugWindow.trace("game.swf unload()");
};
Frame 3
stop();
_quality = "LOW";
_global.ROOT = this;
_global.RAM = {firstLevel:"levels/level1.lvl"};
makeStereoMusic = function (target_mc, newName, newDepth) {
target_mc = ((target_mc != undefined) ? (target_mc) : this);
newName = ((newName != undefined) ? (newName) : "musicSystem_mc");
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
newDepth = (newDepth ? (newDepth) : (nextDepth(target_mc)));
var _this = target_mc.createEmptyMovieClip(newName, newDepth);
_this.createEmptyMovieClip("right_mc", 1);
_this.createEmptyMovieClip("left_mc", 0);
_this.rightSound = new Sound(_this.right_mc);
_this.leftSound = new Sound(_this.left_mc);
_this.songName = " ";
_this.loops = 999999 /* 0x0F423F */;
_this.stereoDelay = 0.02;
_this._volume = 1;
_this._songVolume = 1;
_this.isPlaying = false;
_this.onID3 = function () {
};
_this.onLoad = function () {
};
_this.onSoundComplete = function () {
};
_this.onFadeComplete = function () {
};
_this.playSong = function (songName) {
if (_this.songName != songName) {
_this.rightSound.stop();
_this.leftSound.stop();
_this.rightSound.onSoundComplete = function () {
};
_this.rightSound = new Sound(_this.right_mc);
_this.leftSound = new Sound(_this.left_mc);
var _local2 = songName.lastIndexOf(".");
var _local1 = (songName.substr(0, _local2) + "_intro") + ".mp3";
_this.songName = songName;
_this.isPlaying = false;
if (_this._songVolume == 0) {
_this.songVolume = 100;
}
_this.gotoLoop = function () {
var _local1 = _this.songName;
_this.songName = "";
_this.playLoop(_local1);
_this.applyVolume();
_this.broadcastMessage("onSoundComplete");
_this.onSoundComplete();
};
_this.rightSound.onSoundComplete = function () {
_this.gotoLoop();
};
_this.rightSound.attachSound(_local1);
_this.leftSound.attachSound(_local1);
if (_this.leftSound.duration == undefined) {
_this.gotoLoop();
}
}
if (_this.isPlaying == false) {
_this.rightSound.start(0 + _this.stereoDelay, 1);
_this.leftSound.start(0, 1);
_this.setChannels();
_this.applyVolume();
_this.isPlaying = true;
}
};
_this.play = _this.playSong;
_this.playLoop = function (songName) {
if (_this.songName != songName) {
_this.rightSound.stop();
_this.leftSound.stop();
_this.rightSound.onSoundComplete = function () {
};
_this.rightSound = new Sound(_this.right_mc);
_this.leftSound = new Sound(_this.left_mc);
_this.rightSound.attachSound(songName);
_this.leftSound.attachSound(songName);
_this.songName = songName;
_this.isPlaying = false;
_this.rightSound.onSoundComplete = function () {
_this.broadcastMessage("onSoundComplete");
_this.onSoundComplete();
};
}
if (_this.isPlaying == false) {
_this.rightSound.start(0 + _this.stereoDelay);
_this.leftSound.start(0);
_this.setChannels();
_this.applyVolume();
_this.isPlaying = true;
_this.rightSound.onSoundComplete = function () {
_this.rightSound.start(0 + _this.stereoDelay);
_this.leftSound.start(0);
_this.broadcastMessage("onSoundComplete");
_this.onSoundComplete();
};
}
};
_this.stopMusic = function () {
_this.fade.stop();
delete _this.fade;
delete _this.fadeVol;
_this.rightSound.stop();
_this.leftSound.stop();
_this.isPlaying = false;
_this.songName = "";
};
_this.stop = _this.stopMusic;
_this.getVolume = function () {
return(_this._volume * 100);
};
_this.setVolume = function (newVolume) {
_this._volume = newVolume / 100;
_this.applyVolume();
};
_this.addProperty("volume", _this.getVolume, _this.setVolume);
_this.getSongVolume = function () {
return(_this._songVolume * 100);
};
_this.setSongVolume = function (newVolume) {
_this._songVolume = newVolume / 100;
_this.applyVolume();
};
_this.addProperty("songVolume", _this.getSongVolume, _this.setSongVolume);
_this.getDuration = function () {
return(_this.leftSound.duration);
};
_this.addProperty("duration", _this.getDuration, null);
_this.fadeTo = function (endVolume, seconds) {
var _local2 = _this._songVolume * 100;
delete _this.fade;
_this.fadeVol = _local2;
_this.fade = new mx.transitions.Tween(_this, "fadeVol", null, _local2, endVolume, seconds, true);
_this.fade.onMotionChanged = function () {
_this.setSongVolume(this.position);
};
_this.fade.onMotionFinished = function () {
_this.fade.stop();
delete _this.fade;
delete _this.fadeVol;
if (_this._songVolume == 0) {
_this.stopMusic();
}
_this.broadcastMessage("onFadeComplete");
_this.onFadeComplete();
};
};
_this.setChannels = function () {
_this.rightSound.setPan(100);
_this.leftSound.setPan(-100);
};
_this.applyVolume = function () {
_this.rightSound.setVolume((100 * _this._volume) * _this._songVolume);
_this.leftSound.setVolume((100 * _this._volume) * _this._songVolume);
};
_this.passSoundEvents = function () {
_this.leftSound.onID3 = function () {
_this.broadcastMessage("onID3");
_this.onID3();
};
_this.leftSound.onLoad = function (success) {
_this.broadcastMessage("onLoad");
_this.onLoad(success);
};
};
AsBroadcaster.initialize(this);
_this.setChannels();
_this.passSoundEvents();
return(_this);
};
_global.MUSIC = makeStereoMusic(ROOT, "music_mc", 1);
makeSoundSystem = function (target_mc, name, depth) {
target_mc = ((target_mc != undefined) ? (target_mc) : this);
name = ((target_mc != undefined) ? (name) : "soundSystem_mc");
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
depth = ((depth != undefined) ? (depth) : (nextDepth(target_mc)));
var _this = target_mc.createEmptyMovieClip(name, depth);
_this.sound_array = new Array();
_this.soundVolume = 100;
_this.play = function (soundName, volume, loop) {
volume = ((volume != undefined) ? (volume) : 100);
loop = ((loop != undefined) ? (loop) : false);
var _local5 = "transformClip_" + Math.floor(Math.random() * 999);
var _local4 = _this.createEmptyMovieClip(_local5, nextDepth(_this));
var new_sound = new Sound(_local4);
_this.sound_array.push(new_sound);
new_sound.transformClip = _local4;
new_sound.volume = volume;
new_sound.setVolume(new_sound.volume * (_this.soundVolume / 100));
new_sound.attachSound(soundName);
if (loop) {
new_sound.start(0, 99999);
} else {
new_sound.start();
}
new_sound.remove = function () {
var _local2 = 0;
while (_local2 < _this.sound_array.length) {
if (this == _this.sound_array[_local2]) {
_this.sound_array[_local2].stop();
_this.sound_array[_local2].transformClip.removeMovieClip();
_this.sound_array.splice(_local2, 1);
break;
}
_local2++;
}
};
if (!loop) {
new_sound.onSoundComplete = function () {
new_sound.onSoundDone();
new_sound.remove();
};
}
if (new_sound.duration == undefined) {
new_sound.remove();
} else {
return(new_sound);
}
};
_this.stopAll = function () {
for (var _local1 in _this.sound_array) {
_this.sound_array[_local1].stop();
_this.sound_array.pop();
}
};
_this.setVolume = function (newVolume) {
_this.soundVolume = newVolume;
var _local1 = 0;
while (_local1 < _this.sound_array.length) {
_this.sound_array[_local1].setVolume(_this.sound_array[_local1].volume * (_this.soundVolume / 100));
_local1++;
}
};
_this.getVolume = function () {
return(_this.soundVolume);
};
_this.addProperty("volume", _this.getVolume, _this.setVolume);
return(_this);
};
_global.SOUND = makeSoundSystem(ROOT, "sound_mc", 2);
placeLevel = function (data) {
ROOT.game_mc.removeMovieClip();
ROOT.attachMovie("game_mc", "game_mc", 4, {levelData:data});
};
readXml = function (parentPath, targetData) {
for (childName in parentPath.attributes) {
if (childName != "xmlType") {
var _local1 = parentPath.attributes[childName];
if (isNaN(Number(_local1))) {
if (_local1 == "true") {
targetData[childName] = true;
} else if (_local1 == "false") {
targetData[childName] = false;
} else {
var _local7 = "";
var _local9 = String.fromCharCode(10);
var _local4 = 0;
var _local2 = 0;
while (_local2 != undefined) {
_local2 = _local1.indexOf(_local9, _local4);
if (_local2 == -1) {
_local2 = undefined;
}
stringSlice = _local1.slice(_local4, _local2);
_local4 = _local2 + 1;
_local7 = _local7 + stringSlice;
}
_local1 = _local7;
targetData[childName] = _local1;
}
} else {
targetData[childName] = Number(_local1);
}
}
delete childName;
}
for (childIndex in parentPath.childNodes) {
var _local5 = parentPath.childNodes[childIndex];
var childName = _local5.nodeName;
var _local6 = _local5.attributes.xmlType;
if (_local6 == "array") {
targetData[childName] = new Array();
var _local10 = targetData[childName];
readXml(_local5, _local10);
} else if (_local6 == "variable") {
var _local1 = _local5.attributes.value;
if (isNaN(Number(_local1))) {
if (_local1 == "true") {
targetData[childName] = true;
} else if (_local1 == "false") {
targetData[childName] = false;
} else {
var _local7 = "";
var _local9 = String.fromCharCode(10);
var _local4 = 0;
var _local2 = 0;
while (_local2 != undefined) {
_local2 = _local1.indexOf(_local9, _local4);
if (_local2 == -1) {
_local2 = undefined;
}
stringSlice = _local1.slice(_local4, _local2);
_local4 = _local2 + 1;
_local7 = _local7 + stringSlice;
}
_local1 = _local7;
targetData[childName] = _local1;
}
} else {
targetData[childName] = Number(_local1);
}
} else if (_local6 == "object") {
targetData[childName] = new Object();
var _local10 = targetData[childName];
readXml(_local5, _local10);
}
}
delete childIndex;
delete stringSlice;
};
loadLevel = function (file) {
var level_xml = new XML();
level_xml.file = file;
level_xml.onLoad = function (success) {
if (success) {
var _local1 = {};
readXml(level_xml.firstChild, _local1);
ROOT.placeLevel(_local1.level);
} else {
var _local2 = function (internal_xml) {
ROOT.internalLevel.removeMovieClip();
var _local1 = {};
readXml(internal_xml.firstChild, _local1);
setTimeout(ROOT.placeLevel, 34, _local1.level);
};
ROOT.attachMovie(level_xml.file, "internalLevel", 5, {onLoad:_local2});
}
};
level_xml.load(file);
};
if (levelFromEditor) {
placeLevel(levelData);
} else {
ROOT.attachMovie("titleScreen", "titleScreen", 3);
}
restartLevel = function () {
var _local1 = game_mc.levelData;
placeLevel(_local1);
};
onUnload = function () {
game_mc.removeMovieClip();
_global.ROOT = null;
delete _global.ROOT;
_global.RAM = null;
delete _global.RAM;
_global.SPRITES = null;
delete _global.SPRITES;
_global.PLAYER_SHOTS = null;
delete _global.PLAYER_SHOTS;
_global.ENEMY_SPRITES = null;
delete _global.ENEMY_SPRITES;
_global.OVERLAY = null;
delete _global.OVERLAY;
_global.PLAYER = null;
delete _global.PLAYER;
_global.BACKGROUND = null;
delete _global.BACKGROUND;
_global.MAP = null;
delete _global.MAP;
_global.HUD = null;
delete _global.HUD;
_global.SCROLLER = null;
delete _global.SCROLLER;
MUSIC.stopMusic();
_global.MUSIC = null;
delete _global.MUSIC;
SOUND.stopAll();
_global.SOUND = null;
delete _global.SOUND;
};
Symbol 9 MovieClip [loadInterface1] Frame 1
Symbol 20 MovieClip [loadInterface0] Frame 1
this.onEnterFrame = function () {
glow_mc._x = fill_mc._x + fill_mc._width;
};
Symbol 28 MovieClip [titleScreen] Frame 1
MUSIC.play("music/title.mp3");
newGame = function () {
ROOT.loadLevel(RAM.firstLevel);
this.removeMovieClip();
};
key = {};
key.onKeyUp = function () {
newGame();
};
Key.addListener(key);
onPress = function () {
newGame();
};
onUnload = function () {
Key.removeListener(key);
};
Symbol 29 MovieClip [game_mc] Frame 1
_this = this;
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
_global.BACKGROUND = this.attachMovie("background", "background", 1);
makeMap = function (instanceName, target_mc, depth, width, height) {
function addCollisionMethods(_this) {
_this.twoPointCollide = function (side, sprite_mc, velocity_obj, xOffset, yOffset) {
xOffset = (xOffset ? (xOffset) : 0);
yOffset = (yOffset ? (yOffset) : 0);
var _local1 = new flash.geom.Point(sprite_mc._x + velocity_obj.xVel, sprite_mc._y + velocity_obj.yVel);
var _local3 = _local1.clone();
buffer = 4;
switch (side) {
case "up" :
_local1.x = _local1.x - (sprite_mc.width - buffer);
_local1.y = _local1.y - sprite_mc.height;
_local3.x = _local3.x + (sprite_mc.width - buffer);
_local3.y = _local3.y - sprite_mc.height;
break;
case "down" :
_local1.x = _local1.x - (sprite_mc.width - buffer);
_local1.y = _local1.y + sprite_mc.height;
_local3.x = _local3.x + (sprite_mc.width - buffer);
_local3.y = _local3.y + sprite_mc.height;
break;
case "left" :
_local1.x = _local1.x - sprite_mc.width;
_local1.y = _local1.y - (sprite_mc.height - buffer);
_local3.x = _local3.x - sprite_mc.width;
_local3.y = _local3.y + (sprite_mc.height - buffer);
break;
case "right" :
_local1.x = _local1.x + sprite_mc.width;
_local1.y = _local1.y - (sprite_mc.height - buffer);
_local3.x = _local3.x + sprite_mc.width;
_local3.y = _local3.y + (sprite_mc.height - buffer);
}
_local1.x = _local1.x + xOffset;
_local1.y = _local1.y + yOffset;
_local3.x = _local3.x + xOffset;
_local3.y = _local3.y + yOffset;
_local1.x = Math.floor(_local1.x / 16);
_local1.y = Math.floor(_local1.y / 16);
_local3.x = Math.floor(_local3.x / 16);
_local3.y = Math.floor(_local3.y / 16);
var _local5 = _this[_local1.x][_local1.y];
var _local7 = _this[_local3.x][_local3.y];
var _local4 = 0;
if ((_local5 > 0) || (_local7 > 0)) {
if ((_local5 == 1) || (_local7 == 1)) {
_local4 = 1;
} else {
_local4 = _local5;
}
}
return(_local4);
};
_this.getPixelCollision = function (x, y) {
x = Math.floor(x / 16);
y = Math.floor(y / 16);
return(_this[x][y]);
};
_this.getTileCollision(x, y);
return(_this[x][y]);
}
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
target_mc = (target_mc ? (target_mc) : this);
depth = ((depth != undefined) ? (depth) : (nextDepth(target_mc)));
width = (width ? (width) : 20);
height = (height ? (height) : 15);
var _this = target_mc.createEmptyMovieClip(instanceName, depth);
_this.width = width;
_this.height = height;
_this.chipset_pic = new flash.display.BitmapData(480, 256, true, 0);
_this.collision_array = new Array();
var x = 0;
while (x < width) {
_this.collision_array[x] = new Array();
var y = 0;
while (y < height) {
_this.collision_array[x][y] = 0;
y++;
}
x++;
}
addCollisionMethods(_this.collision_array);
_this.reset = function (width, height) {
function addCollisionMethods(_this) {
_this.twoPointCollide = function (side, sprite_mc, velocity_obj, xOffset, yOffset) {
xOffset = (xOffset ? (xOffset) : 0);
yOffset = (yOffset ? (yOffset) : 0);
var _local1 = new flash.geom.Point(sprite_mc._x + velocity_obj.xVel, sprite_mc._y + velocity_obj.yVel);
var _local3 = _local1.clone();
buffer = 4;
switch (side) {
case "up" :
_local1.x = _local1.x - (sprite_mc.width - buffer);
_local1.y = _local1.y - sprite_mc.height;
_local3.x = _local3.x + (sprite_mc.width - buffer);
_local3.y = _local3.y - sprite_mc.height;
break;
case "down" :
_local1.x = _local1.x - (sprite_mc.width - buffer);
_local1.y = _local1.y + sprite_mc.height;
_local3.x = _local3.x + (sprite_mc.width - buffer);
_local3.y = _local3.y + sprite_mc.height;
break;
case "left" :
_local1.x = _local1.x - sprite_mc.width;
_local1.y = _local1.y - (sprite_mc.height - buffer);
_local3.x = _local3.x - sprite_mc.width;
_local3.y = _local3.y + (sprite_mc.height - buffer);
break;
case "right" :
_local1.x = _local1.x + sprite_mc.width;
_local1.y = _local1.y - (sprite_mc.height - buffer);
_local3.x = _local3.x + sprite_mc.width;
_local3.y = _local3.y + (sprite_mc.height - buffer);
}
_local1.x = _local1.x + xOffset;
_local1.y = _local1.y + yOffset;
_local3.x = _local3.x + xOffset;
_local3.y = _local3.y + yOffset;
_local1.x = Math.floor(_local1.x / 16);
_local1.y = Math.floor(_local1.y / 16);
_local3.x = Math.floor(_local3.x / 16);
_local3.y = Math.floor(_local3.y / 16);
var _local5 = _this[_local1.x][_local1.y];
var _local7 = _this[_local3.x][_local3.y];
var _local4 = 0;
if ((_local5 > 0) || (_local7 > 0)) {
if ((_local5 == 1) || (_local7 == 1)) {
_local4 = 1;
} else {
_local4 = _local5;
}
}
return(_local4);
};
_this.getPixelCollision = function (x, y) {
x = Math.floor(x / 16);
y = Math.floor(y / 16);
return(_this[x][y]);
};
_this.getTileCollision(x, y);
return(_this[x][y]);
}
for (var _local4 in _this) {
var _local1 = _this[_local4];
if (typeof(_local1) == "movieclip") {
if (_local4.slice(0, 5) == "layer") {
_local1.removeMovieClip();
}
} else if (_local1 instanceof flash.display.BitmapData) {
if ((_local4.slice(0, 5) == "layer") || (_local4 == "chipset_pic")) {
_this[_local4].dispose();
delete _this[_local4];
}
}
}
_this.width = (width ? (width) : (_this.width));
_this.height = (height ? (height) : (_this.height));
_this.chipset_pic = new flash.display.BitmapData(480, 256, true, 0);
_this.collision_array = new Array();
var x = 0;
while (x < _this.width) {
_this.collision_array[x] = new Array();
var y = 0;
while (y < _this.height) {
_this.collision_array[x][y] = 0;
y++;
}
x++;
}
addCollisionMethods(_this.collision_array);
};
_this.setTile = function (x, y, id, layer) {
layer = ((layer != undefined) ? (layer) : 0);
var _local4 = 30;
var _local9 = id % _local4;
var _local8 = Math.floor(id / _local4);
var _local5 = new flash.geom.Rectangle(_local9 * 16, _local8 * 16, 16, 16);
var _local6 = new flash.geom.Point(x * 16, y * 16);
var _local2 = ("layer" + layer) + "_mc";
var _local3 = ("layer" + layer) + "_pic";
if (_this[_local2] == undefined) {
var _local7 = (_this[_local3] = new flash.display.BitmapData(_this.width * 16, _this.height * 16, true, 0));
_this.createEmptyMovieClip(_local2, layer * 10);
_this[_local2].attachBitmap(_local7, 0, true, false);
}
_this[_local3].copyPixels(_this.chipset_pic, _local5, _local6);
};
_this.loadChipset = function (fileName) {
var _local2 = new flash.geom.Rectangle(0, 0, 480, 256);
_this.chipset_pic.fillRect(_local2, 0);
var _local1 = flash.display.BitmapData.loadBitmap(fileName);
if (_local1.width > -1) {
_this.chipset_pic = _local1.clone();
_local1.dispose();
_this.onLoad();
} else {
_this.createEmptyMovieClip("load_mc", 99);
_this.load_mc._xscale = 1;
_this.load_mc._yscale = 1;
_this.loader = new MovieClipLoader();
_this.loader.loadClip(fileName, _this.load_mc);
_this.loader.onLoadInit = function (load_mc) {
var _local1 = new flash.display.BitmapData(480, 256, true, 0);
_local1.draw(_this.load_mc);
_this.chipset_pic = _local1.clone();
_local1.dispose();
_this.onLoad();
_this.loader.unloadClip(load_mc);
delete _this.loader;
};
}
};
_this.drawObj = function (data_obj) {
switch (data_obj.format) {
case 2 :
_this.drawCompactObj(data_obj);
break;
default :
_this.drawLargeObj(data_obj);
}
};
_this.drawLargeObj = function (data_obj) {
_this.reset();
_this.width = data_obj.width;
_this.height = data_obj.height;
if (data_obj.collision != undefined) {
_this.collision_array = new Array();
var x = 0;
while (x < data_obj.width) {
_this.collision_array[x] = new Array();
var y = 0;
while (y < data_obj.height) {
_this.collision_array[x][y] = data_obj.collision[x][y];
y++;
}
x++;
}
addCollisionMethods(_this.collision_array);
}
var _local10 = new flash.geom.Rectangle(0, 0, 480, 256);
_this.chipset_pic.fillRect(_local10, 0);
var _local9 = flash.display.BitmapData.loadBitmap(data_obj.chipset);
if (_local9.width > -1) {
_this.chipset_pic = _local9.clone();
_local9.dispose();
lay = 0;
while (lay < data_obj.layers.length) {
var x = 0;
while (x < _this.width) {
var y = 0;
while (y < _this.height) {
var _local1 = data_obj.layers[lay][x][y];
_this.setTile(x, y, _local1, lay);
y++;
}
x++;
}
lay++;
}
_this.onLoad();
delete _this.loadData;
} else {
_this.createEmptyMovieClip("load_mc", 99);
_this.load_mc._xscale = 1;
_this.load_mc._yscale = 1;
_this.loader = new MovieClipLoader();
_this.loader.loadClip(data_obj.chipset, _this.load_mc);
_this.loader.onLoadInit = function (load_mc) {
var _local4 = new flash.display.BitmapData(480, 256, true, 0);
_local4.draw(_this.load_mc);
var _local5 = new flash.geom.Rectangle(0, 0, 480, 256);
_this.chipset_pic.copyPixels(_local4, _local5, {x:0, y:0});
_this.loader.unloadClip(_this.load_mc);
lay = 0;
while (lay < data_obj.layers.length) {
var _local2 = 0;
while (_local2 < _this.width) {
var _local1 = 0;
while (_local1 < _this.height) {
var _local3 = data_obj.layers[lay][_local2][_local1];
_this.setTile(_local2, _local1, _local3, lay);
_local1++;
}
_local2++;
}
lay++;
}
_this.onLoad();
delete _this.loadData;
delete _this.loader;
};
}
};
_this.drawCompactObj = function (data_obj) {
_this.reset();
_this.width = data_obj.width;
_this.height = data_obj.height;
var _local3 = 1;
if (data_obj.collision != undefined) {
_this.collision_array = new Array();
var x = 0;
while (x < data_obj.width) {
_this.collision_array[x] = new Array();
var y = 0;
while (y < data_obj.height) {
var _local1 = data_obj.collision.charAt(_local3);
if (_local1 == "0x") {
var _local2 = 33;
} else {
var _local2 = parseInt(_local1, 36);
}
_local3++;
_this.collision_array[x][y] = _local2;
y++;
}
x++;
}
addCollisionMethods(_this.collision_array);
}
var _local12 = new flash.geom.Rectangle(0, 0, 480, 256);
_this.chipset_pic.fillRect(_local12, 0);
var drawLayers = function () {
lay = 0;
while (lay < data_obj.layers.length) {
var _local5 = 1;
var _local3 = 0;
while (_local3 < _this.width) {
var _local1 = 0;
while (_local1 < _this.height) {
var _local2 = data_obj.layers[lay].substr(_local5, 2);
if (_local2 == "0x") {
var _local4 = 33;
} else {
var _local4 = parseInt(_local2, 36);
}
_local5 = _local5 + 2;
_this.setTile(_local3, _local1, _local4, lay);
_local1++;
}
_local3++;
}
lay++;
}
};
var _local11 = flash.display.BitmapData.loadBitmap(data_obj.chipset);
if (_local11.width > -1) {
_this.chipset_pic = _local11.clone();
_local11.dispose();
drawLayers();
_this.onLoad();
delete _this.loadData;
delete drawLayers;
} else {
_this.createEmptyMovieClip("load_mc", 99);
_this.load_mc._xscale = 1;
_this.load_mc._yscale = 1;
_this.loader = new MovieClipLoader();
_this.loader.loadClip(data_obj.chipset, _this.load_mc);
_this.loader.onLoadInit = function (load_mc) {
var _local1 = new flash.display.BitmapData(480, 256, true, 0);
_local1.draw(_this.load_mc);
var _local2 = new flash.geom.Rectangle(0, 0, 480, 256);
_this.chipset_pic.copyPixels(_local1, _local2, {x:0, y:0});
_this.loader.unloadClip(_this.load_mc);
drawLayers();
_this.onLoad();
delete _this.loadData;
delete _this.loader;
delete drawLayers;
};
}
};
_this.load = function (fileName) {
XML.prototype.ignoreWhite = true;
_this.attachMovie(fileName, "loadMap_mc", 98);
if (_this.loadMap_mc) {
_this.loadMap_mc.onLoad = function (data) {
_this.load_xml = data;
_this.loadData = new Object();
readXml = function (parentPath, targetData) {
for (childName in parentPath.attributes) {
if (childName != "xmlType") {
var _local1 = parentPath.attributes[childName];
if (isNaN(Number(_local1))) {
if (_local1 == "true") {
targetData[childName] = true;
} else if (_local1 == "false") {
targetData[childName] = false;
} else {
var _local7 = "";
var _local9 = String.fromCharCode(10);
var _local4 = 0;
var _local2 = 0;
while (_local2 != undefined) {
_local2 = _local1.indexOf(_local9, _local4);
if (_local2 == -1) {
_local2 = undefined;
}
stringSlice = _local1.slice(_local4, _local2);
_local4 = _local2 + 1;
_local7 = _local7 + stringSlice;
}
_local1 = _local7;
targetData[childName] = _local1;
}
} else {
targetData[childName] = Number(_local1);
}
}
delete childName;
}
for (childIndex in parentPath.childNodes) {
var _local5 = parentPath.childNodes[childIndex];
var childName = _local5.nodeName;
var _local6 = _local5.attributes.xmlType;
if (_local6 == "array") {
targetData[childName] = new Array();
var _local10 = targetData[childName];
readXml(_local5, _local10);
} else if (_local6 == "variable") {
var _local1 = _local5.attributes.value;
if (isNaN(Number(_local1))) {
if (_local1 == "true") {
targetData[childName] = true;
} else if (_local1 == "false") {
targetData[childName] = false;
} else {
var _local7 = "";
var _local9 = String.fromCharCode(10);
var _local4 = 0;
var _local2 = 0;
while (_local2 != undefined) {
_local2 = _local1.indexOf(_local9, _local4);
if (_local2 == -1) {
_local2 = undefined;
}
stringSlice = _local1.slice(_local4, _local2);
_local4 = _local2 + 1;
_local7 = _local7 + stringSlice;
}
_local1 = _local7;
targetData[childName] = _local1;
}
} else {
targetData[childName] = Number(_local1);
}
} else if (_local6 == "object") {
targetData[childName] = new Object();
var _local10 = targetData[childName];
readXml(_local5, _local10);
}
}
delete childIndex;
delete stringSlice;
};
readXml(_this.load_xml, _this.loadData);
_this.drawObj(_this.loadData.map);
loadMap_mc.removeMovieClip();
};
} else {
_this.load_xml = new XML();
_this.load_xml.load(fileName);
_this.load_xml.onLoad = function (success) {
readXml = function (parentPath, targetData) {
for (childName in parentPath.attributes) {
if (childName != "xmlType") {
var _local1 = parentPath.attributes[childName];
if (isNaN(Number(_local1))) {
if (_local1 == "true") {
targetData[childName] = true;
} else if (_local1 == "false") {
targetData[childName] = false;
} else {
var _local7 = "";
var _local9 = String.fromCharCode(10);
var _local4 = 0;
var _local2 = 0;
while (_local2 != undefined) {
_local2 = _local1.indexOf(_local9, _local4);
if (_local2 == -1) {
_local2 = undefined;
}
stringSlice = _local1.slice(_local4, _local2);
_local4 = _local2 + 1;
_local7 = _local7 + stringSlice;
}
_local1 = _local7;
targetData[childName] = _local1;
}
} else {
targetData[childName] = Number(_local1);
}
}
delete childName;
}
for (childIndex in parentPath.childNodes) {
var _local5 = parentPath.childNodes[childIndex];
var childName = _local5.nodeName;
var _local6 = _local5.attributes.xmlType;
if (_local6 == "array") {
targetData[childName] = new Array();
var _local10 = targetData[childName];
readXml(_local5, _local10);
} else if (_local6 == "variable") {
var _local1 = _local5.attributes.value;
if (isNaN(Number(_local1))) {
if (_local1 == "true") {
targetData[childName] = true;
} else if (_local1 == "false") {
targetData[childName] = false;
} else {
var _local7 = "";
var _local9 = String.fromCharCode(10);
var _local4 = 0;
var _local2 = 0;
while (_local2 != undefined) {
_local2 = _local1.indexOf(_local9, _local4);
if (_local2 == -1) {
_local2 = undefined;
}
stringSlice = _local1.slice(_local4, _local2);
_local4 = _local2 + 1;
_local7 = _local7 + stringSlice;
}
_local1 = _local7;
targetData[childName] = _local1;
}
} else {
targetData[childName] = Number(_local1);
}
} else if (_local6 == "object") {
targetData[childName] = new Object();
var _local10 = targetData[childName];
readXml(_local5, _local10);
}
}
delete childIndex;
delete stringSlice;
};
if (success) {
_this.loadData = new Object();
readXml(_this.load_xml, _this.loadData);
_this.drawObj(_this.loadData.map);
}
};
}
};
_this.scroll = function (x, y, screenWidth, screenHeight, smoothness) {
screenWidth = (screenWidth ? (screenWidth) : 320);
screenHeight = (screenHeight ? (screenHeight) : 240);
smoothness = (smoothness ? (smoothness) : 1);
var _local5 = screenWidth / 2;
var _local6 = screenHeight / 2;
var _local2 = _this.width * 16;
var _local4 = _this.height * 16;
if (x < _local5) {
var _local8 = 0;
} else if (x > (_local2 - _local5)) {
var _local8 = (-_local2) + screenWidth;
} else {
var _local8 = (-x) + _local5;
}
if (y < _local6) {
var _local9 = 0;
} else if (y > (_local4 - _local6)) {
var _local9 = (-_local4) + screenHeight;
} else {
var _local9 = (-y) + _local6;
}
if (_local2 < screenWidth) {
var _local11 = screenWidth - _local2;
_this._x = _local11 / 2;
} else {
_this._x = _this._x + ((_local8 - _this._x) * smoothness);
}
if (_local4 < screenHeight) {
var _local10 = screenHeight - _local4;
_this._y = _local10 / 2;
} else {
_this._y = _this._y + ((_local9 - _this._y) * smoothness);
}
};
return(_this);
};
_global.MAP = makeMap("map_mc", _this, 2);
map_mc.onLoad = function () {
function newSprite(newSettings, newTarget, newName, newDepth) {
newTarget = (newTarget ? (newTarget) : this);
newName = (newName ? (newName) : ("sprite_" + Math.floor(Math.random() * 9999)));
while (newTarget[newName]) {
newName = "sprite_" + Math.floor(Math.random() * 9999);
}
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
newDepth = ((newDepth != undefined) ? (newDepth) : (nextDepth(newTarget)));
var _this = newTarget.createEmptyMovieClip(newName, newDepth);
newSettings.direction = ((newSettings.direction != undefined) ? (newSettings.direction) : 0);
newSettings.directions = ((newSettings.directions != undefined) ? (newSettings.directions) : 1);
newSettings.frame = ((newSettings.frame != undefined) ? (newSettings.frame) : 0);
newSettings.frames = ((newSettings.frames != undefined) ? (newSettings.frames) : 1);
newSettings.pose = ((newSettings.pose != undefined) ? (newSettings.pose) : 0);
newSettings.columns = ((newSettings.columns != undefined) ? (newSettings.columns) : 1);
newSettings.rows = ((newSettings.rows != undefined) ? (newSettings.rows) : 1);
newSettings.animType = ((newSettings.animType != undefined) ? (newSettings.animType) : "loop");
newSettings.animDirection = ((newSettings.animDirection != undefined) ? (newSettings.animDirection) : 1);
newSettings.delay = ((newSettings.delay != undefined) ? (newSettings.delay) : 4);
newSettings.isAnimating = ((newSettings.isAnimating != undefined) ? (newSettings.isAnimating) : true);
_this.init = {};
_this.internal = {};
_this.spriteWidth = 0;
_this.spriteHeight = 0;
_this.mask_mc = _this.createEmptyMovieClip("mask_mc", 1);
_this.mask_mc.beginFill(16711680, 0);
_this.mask_mc.lineTo(16, 0);
_this.mask_mc.lineTo(16, 16);
_this.mask_mc.lineTo(0, 16);
_this.mask_mc.lineTo(0, 0);
_this.mask_mc.endFill();
_this.offsetX = 0;
_this.offsetY = 0;
_this.refresh = false;
_this.loader = new MovieClipLoader();
_this.update = function () {
var _local2 = _this.internal.pose % _this.internal.columns;
_this.image_mc._x = (_this.offsetX - ((_local2 * _this.spriteWidth) * _this.internal.frames)) - (_this.internal.frame * _this.spriteWidth);
var _local1 = Math.floor(_this.internal.pose / _this.internal.columns);
_this.image_mc._y = (_this.offsetY - ((_local1 * _this.spriteHeight) * _this.internal.directions)) - (_this.internal.direction * _this.spriteHeight);
_this.refresh = false;
};
_this.updateMask = function () {
_this.mask_mc._width = _this.spriteWidth;
_this.mask_mc._height = _this.spriteHeight;
_this.mask_mc._x = _this.offsetX;
_this.mask_mc._y = _this.offsetY;
};
_this.updateSize = function () {
_this.spriteWidth = (_this.image_mc._width / _this.internal.columns) / _this.internal.frames;
_this.spriteHeight = (_this.image_mc._height / _this.internal.rows) / _this.internal.directions;
_this.offsetX = (-_this.spriteWidth) / 2;
_this.offsetY = -_this.spriteHeight;
_this.updateMask();
};
_this.set_charset = function (new_charset) {
_this.removeSnapshot = function () {
removeMovieClip(_this.previous_mc);
};
delete _this.previous_pic;
_this.previous_pic = new flash.display.BitmapData(_this.mask_mc._width, _this.mask_mc._height, true, 0);
var _local2 = new flash.geom.Matrix();
_local2.translate(-_this.offsetX, -_this.offsetY);
_this.previous_pic.draw(_this, _local2);
removeMovieClip(_this.previous_mc);
_this.createEmptyMovieClip("previous_mc", 0);
_this.previous_mc.attachBitmap(_this.previous_pic, 0);
_this.previous_mc._x = _this.offsetX;
_this.previous_mc._y = _this.offsetY;
_this.loader.new_charset = new_charset;
_this.loader._this = _this;
_this.loader.onLoadInit = function () {
_this.internal.frame = _this.init.frame;
_this.updateSize();
_this.image_mc.setMask(_this.mask_mc);
_this.previous_mc.removeMovieClip();
_this.image_mc._alpha = 100;
_this.update();
_this.onLoad();
};
_this.loader.onLoadError = function () {
};
_this.loader.externalFile = false;
_this.image_mc.removeMovieClip();
_this.createEmptyMovieClip("image_mc", 2);
_this.image_mc._alpha = 0;
_this.image_mc.attachMovie(new_charset, "image", 2);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.image_pic.dispose();
_this.image_pic = flash.display.BitmapData.loadBitmap(new_charset);
_this.image_mc.attachBitmap(_this.image_pic, 0);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.loader.externalFile = true;
_this.loader.loadClip(new_charset, _this.image_mc);
} else {
_this.loader.onLoadInit();
}
} else {
_this.loader.onLoadInit();
}
_this.internal.charset = new_charset;
};
_this.set_directions = function (new_directions) {
if (new_directions < 0) {
new_directions = 1;
}
_this.internal.directions = Math.floor(Math.abs(Number(new_directions)));
_this.updateSize();
_this.refresh = true;
};
_this.set_direction = function (new_direction) {
var _local2 = _this.internal.directions / 4;
if (new_direction == "up") {
new_direction = 0;
} else if (new_direction == "right") {
new_direction = Math.round(1 * _local2);
} else if (new_direction == "down") {
new_direction = Math.round(2 * _local2);
} else if (new_direction == "left") {
new_direction = Math.round(3 * _local2);
}
while (new_direction < 0) {
new_direction = new_direction + _this.internal.directions;
}
_this.refresh = true;
_this.internal.direction = Math.floor(Number(new_direction) % _this.internal.directions);
};
_this.set_frames = function (new_frames) {
if (_this.internal.frame > (new_frames - 1)) {
_this.internal.frame = new_frames - 1;
}
_this.internal.frames = Math.floor(Math.abs(Number(new_frames)));
_this.updateSize();
_this.refresh = true;
};
_this.set_frame = function (new_frame) {
if (new_frame < 0) {
new_frame = 0;
}
if (new_frame > (_this.internal.frames - 1)) {
new_frame = _this.internal.frames - 1;
}
_this.refresh = true;
_this.internal.frame = Math.floor(Math.abs(Number(new_frame)));
};
_this.set_columns = function (new_columns) {
_this.internal.columns = Math.floor(Math.abs(Number(new_columns)));
_this.updateSize();
_this.refresh = true;
};
_this.set_rows = function (new_rows) {
_this.internal.rows = Math.floor(Math.abs(Number(new_rows)));
_this.updateSize();
_this.refresh = true;
};
_this.set_pose = function (new_pose) {
var _local1 = (_this.internal.columns * _this.internal.rows) - 1;
if (new_pose < 0) {
new_pose = 0;
}
if (new_pose > _local1) {
new_pose = _local1;
}
_this.refresh = true;
_this.internal.pose = Math.floor(Math.abs(Number(new_pose)));
};
_this.set_animType = function (new_animType) {
if (((new_animType == "loop") || (new_animType == "yoyo")) || (new_animType == "once")) {
_this.internal.animType = String(new_animType);
}
};
_this.set_animDirection = function (new_animDirection) {
if (new_animDirection < -1) {
new_animDirection = -1;
}
if (new_animDirection > 1) {
new_animDirection = 1;
}
if ((new_animDirection == -1) || (new_animDirection == 1)) {
_this.internal.animDirection = Number(new_animDirection);
}
};
_this.set_delay = function (new_delay) {
if (new_delay <= 0) {
new_delay = 1;
}
_this.internal.delay = Number(new_delay);
};
_this.set_isAnimating = function (new_isAnimating) {
if (new_isAnimating.toLowerCase() == "true") {
new_isAnimating = true;
}
if (new_isAnimating.toLowerCase() == "false") {
new_isAnimating = false;
}
if (new_isAnimating != _this.internal.isAnimating) {
if (new_isAnimating) {
_this.advanceAnimation();
} else {
_this.internal.frame = Number(_this.init.frame);
}
_this.refresh = true;
}
_this.internal.isAnimating = Boolean(new_isAnimating);
};
_this.setParams = function (newSettings) {
if ((newSettings.charset != undefined) && (newSettings.charset != _this.internal.charset)) {
_this.set_charset(newSettings.charset);
_this.init.charset = _this.internal.charset;
}
if ((newSettings.directions != undefined) && (newSettings.directions != _this.internal.directions)) {
_this.set_directions(newSettings.directions);
_this.init.directions = _this.internal.directions;
}
if ((newSettings.direction != undefined) && (newSettings.direction != _this.internal.direction)) {
_this.set_direction(newSettings.direction);
_this.init.direction = _this.internal.direction;
}
if ((newSettings.frames != undefined) && (newSettings.frames != _this.internal.frames)) {
_this.set_frames(newSettings.frames);
_this.init.frames = _this.internal.frames;
}
if ((newSettings.frame != undefined) && (newSettings.frame != _this.internal.frame)) {
_this.set_frame(newSettings.frame);
_this.init.frame = _this.internal.frame;
}
if ((newSettings.columns != undefined) && (newSettings.columns != _this.internal.columns)) {
_this.set_columns(newSettings.columns);
_this.init.columns = _this.internal.columns;
}
if ((newSettings.rows != undefined) && (newSettings.rows != _this.internal.rows)) {
_this.set_rows(newSettings.rows);
_this.init.rows = _this.internal.rows;
}
if ((newSettings.pose != undefined) && (newSettings.pose != _this.internal.pose)) {
_this.set_pose(newSettings.pose);
_this.init.pose = _this.internal.pose;
}
if ((newSettings.animType != undefined) && (newSettings.animType != _this.internal.animType)) {
_this.set_animType(newSettings.animType);
_this.init.animType = _this.internal.animType;
}
if ((newSettings.animDirection != undefined) && (newSettings.animDirection != _this.internal.animDirection)) {
_this.set_animDirection(newSettings.animDirection);
_this.init.animDirection = _this.internal.animDirection;
}
if ((newSettings.delay != undefined) && (newSettings.delay != _this.internal.delay)) {
_this.set_delay(newSettings.delay);
_this.init.delay = _this.internal.delay;
}
if ((newSettings.isAnimating != undefined) && (newSettings.isAnimating != _this.internal.isAnimating)) {
_this.set_isAnimating(newSettings.isAnimating);
_this.init.isAnimating = _this.internal.isAnimating;
}
if (_this.refresh) {
_this.update();
}
};
_this.getParams = function () {
var _local1 = {};
for (var _local2 in _this.init) {
_local1[_local2] = _this.init[_local2];
}
return(_local1);
};
_this.advanceAnimation = function () {
_this.internal.frame = _this.internal.frame + _this.internal.animDirection;
switch (_this.internal.animType) {
case "loop" :
if (_this.internal.frame < 0) {
_this.internal.frame = _this.internal.frame + _this.internal.frames;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frame - _this.internal.frames;
}
return;
case "once" :
if (_this.internal.frame < 0) {
_this.internal.frame = 0;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frames - 1;
}
return;
case "yoyo" :
if (_this.internal.frame < 0) {
_this.internal.frame = _this.internal.frame + 2;
_this.internal.animDirection = _this.internal.animDirection * -1;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frame - 2;
_this.internal.animDirection = _this.internal.animDirection * -1;
}
if (_this.internal.frame < 0) {
_this.internal.frame = 0;
}
if (_this.internal.frame < _this.internal.frames) {
break;
}
_this.internal.frame = _this.internal.frames - 1;
}
};
_this.fps = 30;
_this.loop = function () {
if (_this.internal.isAnimating) {
_this.advanceAnimation();
}
_this.update();
_this.loopInterval = setTimeout(_this.loop, (1000 / _this.fps) * _this.internal.delay);
};
_this.loopInterval = setTimeout(_this.loop, 0);
_this.lookAt = function (sprite1, sprite2) {
var _local2 = sprite2._x - sprite1._x;
var _local1 = sprite2._y - sprite1._y;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
var _local4 = _local2 / _local3;
var _local5 = _local1 / _local3;
if (Math.abs(_local5) > Math.abs(_local4)) {
if (_local5 < 0) {
_this.setParams({direction:"up"});
} else {
_this.setParams({direction:"down"});
}
} else if (_local4 < 0) {
_this.setParams({direction:"left"});
} else {
_this.setParams({direction:"right"});
}
};
_this.setParams(newSettings);
_this.onUnload = function () {
clearTimeout(_this.loopInterval);
};
return(_this);
}
_global.ENEMY_SPRITES.removeMovieClip();
_global.ENEMY_SPRITES = map_mc.createEmptyMovieClip("ENEMY_SPRITES", 11);
_global.PLAYER_SHOTS.removeMovieClip();
_global.PLAYER_SHOTS = map_mc.createEmptyMovieClip("PLAYER_SHOTS", 12);
_global.SPRITES.removeMovieClip();
_global.SPRITES = map_mc.createEmptyMovieClip("SPRITES", 13);
_global.PLAYER = SPRITES.attachMovie("player", "player", nextDepth(SPRITES));
PLAYER._x = 16;
PLAYER._y = 112;
addSprite = function (thisSprite) {
if (ENEMY_SPRITES[thisSprite.name] == undefined) {
var _local7 = thisSprite.type;
var _local2 = thisSprite.name;
var _local3 = nextDepth(ENEMY_SPRITES);
var _local6 = thisSprite.position.x;
var _local5 = thisSprite.position.y;
var _local4 = thisSprite.data;
var _local10 = ENEMY_SPRITES.attachMovie(_local7, _local2, _local3, {_x:_local6, _y:_local5, data:_local4});
}
};
for (var _local10 in levelData.sprites) {
addSprite(levelData.sprites[_local10]);
}
_global.HUD.removeMovieClip();
_global.HUD = _this.attachMovie("hud", "hud", 3);
_global.SCROLLER.removeMovieClip();
_global.SCROLLER = SPRITES.attachMovie("scroller", "scroller", nextDepth(SPRITES));
};
map_mc.drawObj(levelData.map);
this.onUnload = function () {
trace("game_mc unload");
var _local3 = function (varName) {
_global[varName].removeMovieClip();
_global[varName] = null;
delete _global[varName];
};
var _local2 = ["BACKGROUND", "MAP", "ENEMY_SPRITES", "PLAYER_SHOTS", "SPRITES", "PLAYER", "HUD", "SCROLLER"];
for (var _local4 in _local2) {
_local3(_local2[_local4]);
}
};
Symbol 33 MovieClip [playerWin] Frame 1
function newSprite(newSettings, newTarget, newName, newDepth) {
newTarget = (newTarget ? (newTarget) : this);
newName = (newName ? (newName) : ("sprite_" + Math.floor(Math.random() * 9999)));
while (newTarget[newName]) {
newName = "sprite_" + Math.floor(Math.random() * 9999);
}
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
newDepth = ((newDepth != undefined) ? (newDepth) : (nextDepth(newTarget)));
var _this = newTarget.createEmptyMovieClip(newName, newDepth);
newSettings.direction = ((newSettings.direction != undefined) ? (newSettings.direction) : 0);
newSettings.directions = ((newSettings.directions != undefined) ? (newSettings.directions) : 1);
newSettings.frame = ((newSettings.frame != undefined) ? (newSettings.frame) : 0);
newSettings.frames = ((newSettings.frames != undefined) ? (newSettings.frames) : 1);
newSettings.pose = ((newSettings.pose != undefined) ? (newSettings.pose) : 0);
newSettings.columns = ((newSettings.columns != undefined) ? (newSettings.columns) : 1);
newSettings.rows = ((newSettings.rows != undefined) ? (newSettings.rows) : 1);
newSettings.animType = ((newSettings.animType != undefined) ? (newSettings.animType) : "loop");
newSettings.animDirection = ((newSettings.animDirection != undefined) ? (newSettings.animDirection) : 1);
newSettings.delay = ((newSettings.delay != undefined) ? (newSettings.delay) : 4);
newSettings.isAnimating = ((newSettings.isAnimating != undefined) ? (newSettings.isAnimating) : true);
_this.init = {};
_this.internal = {};
_this.spriteWidth = 0;
_this.spriteHeight = 0;
_this.mask_mc = _this.createEmptyMovieClip("mask_mc", 1);
_this.mask_mc.beginFill(16711680, 0);
_this.mask_mc.lineTo(16, 0);
_this.mask_mc.lineTo(16, 16);
_this.mask_mc.lineTo(0, 16);
_this.mask_mc.lineTo(0, 0);
_this.mask_mc.endFill();
_this.offsetX = 0;
_this.offsetY = 0;
_this.refresh = false;
_this.loader = new MovieClipLoader();
_this.update = function () {
var _local2 = _this.internal.pose % _this.internal.columns;
_this.image_mc._x = (_this.offsetX - ((_local2 * _this.spriteWidth) * _this.internal.frames)) - (_this.internal.frame * _this.spriteWidth);
var _local1 = Math.floor(_this.internal.pose / _this.internal.columns);
_this.image_mc._y = (_this.offsetY - ((_local1 * _this.spriteHeight) * _this.internal.directions)) - (_this.internal.direction * _this.spriteHeight);
_this.refresh = false;
};
_this.updateMask = function () {
_this.mask_mc._width = _this.spriteWidth;
_this.mask_mc._height = _this.spriteHeight;
_this.mask_mc._x = _this.offsetX;
_this.mask_mc._y = _this.offsetY;
};
_this.updateSize = function () {
_this.spriteWidth = (_this.image_mc._width / _this.internal.columns) / _this.internal.frames;
_this.spriteHeight = (_this.image_mc._height / _this.internal.rows) / _this.internal.directions;
_this.offsetX = (-_this.spriteWidth) / 2;
_this.offsetY = -_this.spriteHeight;
_this.updateMask();
};
_this.set_charset = function (new_charset) {
_this.removeSnapshot = function () {
removeMovieClip(_this.previous_mc);
};
delete _this.previous_pic;
_this.previous_pic = new flash.display.BitmapData(_this.mask_mc._width, _this.mask_mc._height, true, 0);
var _local2 = new flash.geom.Matrix();
_local2.translate(-_this.offsetX, -_this.offsetY);
_this.previous_pic.draw(_this, _local2);
removeMovieClip(_this.previous_mc);
_this.createEmptyMovieClip("previous_mc", 0);
_this.previous_mc.attachBitmap(_this.previous_pic, 0);
_this.previous_mc._x = _this.offsetX;
_this.previous_mc._y = _this.offsetY;
_this.loader.new_charset = new_charset;
_this.loader._this = _this;
_this.loader.onLoadInit = function () {
_this.internal.frame = _this.init.frame;
_this.updateSize();
_this.image_mc.setMask(_this.mask_mc);
_this.previous_mc.removeMovieClip();
_this.image_mc._alpha = 100;
_this.update();
_this.onLoad();
};
_this.loader.onLoadError = function () {
};
_this.loader.externalFile = false;
_this.image_mc.removeMovieClip();
_this.createEmptyMovieClip("image_mc", 2);
_this.image_mc._alpha = 0;
_this.image_mc.attachMovie(new_charset, "image", 2);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.image_pic.dispose();
_this.image_pic = flash.display.BitmapData.loadBitmap(new_charset);
_this.image_mc.attachBitmap(_this.image_pic, 0);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.loader.externalFile = true;
_this.loader.loadClip(new_charset, _this.image_mc);
} else {
_this.loader.onLoadInit();
}
} else {
_this.loader.onLoadInit();
}
_this.internal.charset = new_charset;
};
_this.set_directions = function (new_directions) {
if (new_directions < 0) {
new_directions = 1;
}
_this.internal.directions = Math.floor(Math.abs(Number(new_directions)));
_this.updateSize();
_this.refresh = true;
};
_this.set_direction = function (new_direction) {
var _local2 = _this.internal.directions / 4;
if (new_direction == "up") {
new_direction = 0;
} else if (new_direction == "right") {
new_direction = Math.round(1 * _local2);
} else if (new_direction == "down") {
new_direction = Math.round(2 * _local2);
} else if (new_direction == "left") {
new_direction = Math.round(3 * _local2);
}
while (new_direction < 0) {
new_direction = new_direction + _this.internal.directions;
}
_this.refresh = true;
_this.internal.direction = Math.floor(Number(new_direction) % _this.internal.directions);
};
_this.set_frames = function (new_frames) {
if (_this.internal.frame > (new_frames - 1)) {
_this.internal.frame = new_frames - 1;
}
_this.internal.frames = Math.floor(Math.abs(Number(new_frames)));
_this.updateSize();
_this.refresh = true;
};
_this.set_frame = function (new_frame) {
if (new_frame < 0) {
new_frame = 0;
}
if (new_frame > (_this.internal.frames - 1)) {
new_frame = _this.internal.frames - 1;
}
_this.refresh = true;
_this.internal.frame = Math.floor(Math.abs(Number(new_frame)));
};
_this.set_columns = function (new_columns) {
_this.internal.columns = Math.floor(Math.abs(Number(new_columns)));
_this.updateSize();
_this.refresh = true;
};
_this.set_rows = function (new_rows) {
_this.internal.rows = Math.floor(Math.abs(Number(new_rows)));
_this.updateSize();
_this.refresh = true;
};
_this.set_pose = function (new_pose) {
var _local1 = (_this.internal.columns * _this.internal.rows) - 1;
if (new_pose < 0) {
new_pose = 0;
}
if (new_pose > _local1) {
new_pose = _local1;
}
_this.refresh = true;
_this.internal.pose = Math.floor(Math.abs(Number(new_pose)));
};
_this.set_animType = function (new_animType) {
if (((new_animType == "loop") || (new_animType == "yoyo")) || (new_animType == "once")) {
_this.internal.animType = String(new_animType);
}
};
_this.set_animDirection = function (new_animDirection) {
if (new_animDirection < -1) {
new_animDirection = -1;
}
if (new_animDirection > 1) {
new_animDirection = 1;
}
if ((new_animDirection == -1) || (new_animDirection == 1)) {
_this.internal.animDirection = Number(new_animDirection);
}
};
_this.set_delay = function (new_delay) {
if (new_delay <= 0) {
new_delay = 1;
}
_this.internal.delay = Number(new_delay);
};
_this.set_isAnimating = function (new_isAnimating) {
if (new_isAnimating.toLowerCase() == "true") {
new_isAnimating = true;
}
if (new_isAnimating.toLowerCase() == "false") {
new_isAnimating = false;
}
if (new_isAnimating != _this.internal.isAnimating) {
if (new_isAnimating) {
_this.advanceAnimation();
} else {
_this.internal.frame = Number(_this.init.frame);
}
_this.refresh = true;
}
_this.internal.isAnimating = Boolean(new_isAnimating);
};
_this.setParams = function (newSettings) {
if ((newSettings.charset != undefined) && (newSettings.charset != _this.internal.charset)) {
_this.set_charset(newSettings.charset);
_this.init.charset = _this.internal.charset;
}
if ((newSettings.directions != undefined) && (newSettings.directions != _this.internal.directions)) {
_this.set_directions(newSettings.directions);
_this.init.directions = _this.internal.directions;
}
if ((newSettings.direction != undefined) && (newSettings.direction != _this.internal.direction)) {
_this.set_direction(newSettings.direction);
_this.init.direction = _this.internal.direction;
}
if ((newSettings.frames != undefined) && (newSettings.frames != _this.internal.frames)) {
_this.set_frames(newSettings.frames);
_this.init.frames = _this.internal.frames;
}
if ((newSettings.frame != undefined) && (newSettings.frame != _this.internal.frame)) {
_this.set_frame(newSettings.frame);
_this.init.frame = _this.internal.frame;
}
if ((newSettings.columns != undefined) && (newSettings.columns != _this.internal.columns)) {
_this.set_columns(newSettings.columns);
_this.init.columns = _this.internal.columns;
}
if ((newSettings.rows != undefined) && (newSettings.rows != _this.internal.rows)) {
_this.set_rows(newSettings.rows);
_this.init.rows = _this.internal.rows;
}
if ((newSettings.pose != undefined) && (newSettings.pose != _this.internal.pose)) {
_this.set_pose(newSettings.pose);
_this.init.pose = _this.internal.pose;
}
if ((newSettings.animType != undefined) && (newSettings.animType != _this.internal.animType)) {
_this.set_animType(newSettings.animType);
_this.init.animType = _this.internal.animType;
}
if ((newSettings.animDirection != undefined) && (newSettings.animDirection != _this.internal.animDirection)) {
_this.set_animDirection(newSettings.animDirection);
_this.init.animDirection = _this.internal.animDirection;
}
if ((newSettings.delay != undefined) && (newSettings.delay != _this.internal.delay)) {
_this.set_delay(newSettings.delay);
_this.init.delay = _this.internal.delay;
}
if ((newSettings.isAnimating != undefined) && (newSettings.isAnimating != _this.internal.isAnimating)) {
_this.set_isAnimating(newSettings.isAnimating);
_this.init.isAnimating = _this.internal.isAnimating;
}
if (_this.refresh) {
_this.update();
}
};
_this.getParams = function () {
var _local1 = {};
for (var _local2 in _this.init) {
_local1[_local2] = _this.init[_local2];
}
return(_local1);
};
_this.advanceAnimation = function () {
_this.internal.frame = _this.internal.frame + _this.internal.animDirection;
switch (_this.internal.animType) {
case "loop" :
if (_this.internal.frame < 0) {
_this.internal.frame = _this.internal.frame + _this.internal.frames;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frame - _this.internal.frames;
}
return;
case "once" :
if (_this.internal.frame < 0) {
_this.internal.frame = 0;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frames - 1;
}
return;
case "yoyo" :
if (_this.internal.frame < 0) {
_this.internal.frame = _this.internal.frame + 2;
_this.internal.animDirection = _this.internal.animDirection * -1;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frame - 2;
_this.internal.animDirection = _this.internal.animDirection * -1;
}
if (_this.internal.frame < 0) {
_this.internal.frame = 0;
}
if (_this.internal.frame < _this.internal.frames) {
break;
}
_this.internal.frame = _this.internal.frames - 1;
}
};
_this.fps = 30;
_this.loop = function () {
if (_this.internal.isAnimating) {
_this.advanceAnimation();
}
_this.update();
_this.loopInterval = setTimeout(_this.loop, (1000 / _this.fps) * _this.internal.delay);
};
_this.loopInterval = setTimeout(_this.loop, 0);
_this.lookAt = function (sprite1, sprite2) {
var _local2 = sprite2._x - sprite1._x;
var _local1 = sprite2._y - sprite1._y;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
var _local4 = _local2 / _local3;
var _local5 = _local1 / _local3;
if (Math.abs(_local5) > Math.abs(_local4)) {
if (_local5 < 0) {
_this.setParams({direction:"up"});
} else {
_this.setParams({direction:"down"});
}
} else if (_local4 < 0) {
_this.setParams({direction:"left"});
} else {
_this.setParams({direction:"right"});
}
};
_this.setParams(newSettings);
_this.onUnload = function () {
clearTimeout(_this.loopInterval);
};
return(_this);
}
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
var settings = {charset:"charset/player.png", direction:0, directions:3, frame:0, frames:1, pose:0, columns:1, rows:1, animType:"loop", animDirection:1, delay:3, isAnimating:true};
image = newSprite(settings);
image._y = 8;
Symbol 33 MovieClip [playerWin] Frame 10
stop();
xVel = 0;
onEnterFrame = function () {
xVel = xVel + 1;
_x = (_x + xVel);
};
Symbol 34 MovieClip [player] Frame 1
function newSprite(newSettings, newTarget, newName, newDepth) {
newTarget = (newTarget ? (newTarget) : this);
newName = (newName ? (newName) : ("sprite_" + Math.floor(Math.random() * 9999)));
while (newTarget[newName]) {
newName = "sprite_" + Math.floor(Math.random() * 9999);
}
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
newDepth = ((newDepth != undefined) ? (newDepth) : (nextDepth(newTarget)));
var _this = newTarget.createEmptyMovieClip(newName, newDepth);
newSettings.direction = ((newSettings.direction != undefined) ? (newSettings.direction) : 0);
newSettings.directions = ((newSettings.directions != undefined) ? (newSettings.directions) : 1);
newSettings.frame = ((newSettings.frame != undefined) ? (newSettings.frame) : 0);
newSettings.frames = ((newSettings.frames != undefined) ? (newSettings.frames) : 1);
newSettings.pose = ((newSettings.pose != undefined) ? (newSettings.pose) : 0);
newSettings.columns = ((newSettings.columns != undefined) ? (newSettings.columns) : 1);
newSettings.rows = ((newSettings.rows != undefined) ? (newSettings.rows) : 1);
newSettings.animType = ((newSettings.animType != undefined) ? (newSettings.animType) : "loop");
newSettings.animDirection = ((newSettings.animDirection != undefined) ? (newSettings.animDirection) : 1);
newSettings.delay = ((newSettings.delay != undefined) ? (newSettings.delay) : 4);
newSettings.isAnimating = ((newSettings.isAnimating != undefined) ? (newSettings.isAnimating) : true);
_this.init = {};
_this.internal = {};
_this.spriteWidth = 0;
_this.spriteHeight = 0;
_this.mask_mc = _this.createEmptyMovieClip("mask_mc", 1);
_this.mask_mc.beginFill(16711680, 0);
_this.mask_mc.lineTo(16, 0);
_this.mask_mc.lineTo(16, 16);
_this.mask_mc.lineTo(0, 16);
_this.mask_mc.lineTo(0, 0);
_this.mask_mc.endFill();
_this.offsetX = 0;
_this.offsetY = 0;
_this.refresh = false;
_this.loader = new MovieClipLoader();
_this.update = function () {
var _local2 = _this.internal.pose % _this.internal.columns;
_this.image_mc._x = (_this.offsetX - ((_local2 * _this.spriteWidth) * _this.internal.frames)) - (_this.internal.frame * _this.spriteWidth);
var _local1 = Math.floor(_this.internal.pose / _this.internal.columns);
_this.image_mc._y = (_this.offsetY - ((_local1 * _this.spriteHeight) * _this.internal.directions)) - (_this.internal.direction * _this.spriteHeight);
_this.refresh = false;
};
_this.updateMask = function () {
_this.mask_mc._width = _this.spriteWidth;
_this.mask_mc._height = _this.spriteHeight;
_this.mask_mc._x = _this.offsetX;
_this.mask_mc._y = _this.offsetY;
};
_this.updateSize = function () {
_this.spriteWidth = (_this.image_mc._width / _this.internal.columns) / _this.internal.frames;
_this.spriteHeight = (_this.image_mc._height / _this.internal.rows) / _this.internal.directions;
_this.offsetX = (-_this.spriteWidth) / 2;
_this.offsetY = -_this.spriteHeight;
_this.updateMask();
};
_this.set_charset = function (new_charset) {
_this.removeSnapshot = function () {
removeMovieClip(_this.previous_mc);
};
delete _this.previous_pic;
_this.previous_pic = new flash.display.BitmapData(_this.mask_mc._width, _this.mask_mc._height, true, 0);
var _local2 = new flash.geom.Matrix();
_local2.translate(-_this.offsetX, -_this.offsetY);
_this.previous_pic.draw(_this, _local2);
removeMovieClip(_this.previous_mc);
_this.createEmptyMovieClip("previous_mc", 0);
_this.previous_mc.attachBitmap(_this.previous_pic, 0);
_this.previous_mc._x = _this.offsetX;
_this.previous_mc._y = _this.offsetY;
_this.loader.new_charset = new_charset;
_this.loader._this = _this;
_this.loader.onLoadInit = function () {
_this.internal.frame = _this.init.frame;
_this.updateSize();
_this.image_mc.setMask(_this.mask_mc);
_this.previous_mc.removeMovieClip();
_this.image_mc._alpha = 100;
_this.update();
_this.onLoad();
};
_this.loader.onLoadError = function () {
};
_this.loader.externalFile = false;
_this.image_mc.removeMovieClip();
_this.createEmptyMovieClip("image_mc", 2);
_this.image_mc._alpha = 0;
_this.image_mc.attachMovie(new_charset, "image", 2);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.image_pic.dispose();
_this.image_pic = flash.display.BitmapData.loadBitmap(new_charset);
_this.image_mc.attachBitmap(_this.image_pic, 0);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.loader.externalFile = true;
_this.loader.loadClip(new_charset, _this.image_mc);
} else {
_this.loader.onLoadInit();
}
} else {
_this.loader.onLoadInit();
}
_this.internal.charset = new_charset;
};
_this.set_directions = function (new_directions) {
if (new_directions < 0) {
new_directions = 1;
}
_this.internal.directions = Math.floor(Math.abs(Number(new_directions)));
_this.updateSize();
_this.refresh = true;
};
_this.set_direction = function (new_direction) {
var _local2 = _this.internal.directions / 4;
if (new_direction == "up") {
new_direction = 0;
} else if (new_direction == "right") {
new_direction = Math.round(1 * _local2);
} else if (new_direction == "down") {
new_direction = Math.round(2 * _local2);
} else if (new_direction == "left") {
new_direction = Math.round(3 * _local2);
}
while (new_direction < 0) {
new_direction = new_direction + _this.internal.directions;
}
_this.refresh = true;
_this.internal.direction = Math.floor(Number(new_direction) % _this.internal.directions);
};
_this.set_frames = function (new_frames) {
if (_this.internal.frame > (new_frames - 1)) {
_this.internal.frame = new_frames - 1;
}
_this.internal.frames = Math.floor(Math.abs(Number(new_frames)));
_this.updateSize();
_this.refresh = true;
};
_this.set_frame = function (new_frame) {
if (new_frame < 0) {
new_frame = 0;
}
if (new_frame > (_this.internal.frames - 1)) {
new_frame = _this.internal.frames - 1;
}
_this.refresh = true;
_this.internal.frame = Math.floor(Math.abs(Number(new_frame)));
};
_this.set_columns = function (new_columns) {
_this.internal.columns = Math.floor(Math.abs(Number(new_columns)));
_this.updateSize();
_this.refresh = true;
};
_this.set_rows = function (new_rows) {
_this.internal.rows = Math.floor(Math.abs(Number(new_rows)));
_this.updateSize();
_this.refresh = true;
};
_this.set_pose = function (new_pose) {
var _local1 = (_this.internal.columns * _this.internal.rows) - 1;
if (new_pose < 0) {
new_pose = 0;
}
if (new_pose > _local1) {
new_pose = _local1;
}
_this.refresh = true;
_this.internal.pose = Math.floor(Math.abs(Number(new_pose)));
};
_this.set_animType = function (new_animType) {
if (((new_animType == "loop") || (new_animType == "yoyo")) || (new_animType == "once")) {
_this.internal.animType = String(new_animType);
}
};
_this.set_animDirection = function (new_animDirection) {
if (new_animDirection < -1) {
new_animDirection = -1;
}
if (new_animDirection > 1) {
new_animDirection = 1;
}
if ((new_animDirection == -1) || (new_animDirection == 1)) {
_this.internal.animDirection = Number(new_animDirection);
}
};
_this.set_delay = function (new_delay) {
if (new_delay <= 0) {
new_delay = 1;
}
_this.internal.delay = Number(new_delay);
};
_this.set_isAnimating = function (new_isAnimating) {
if (new_isAnimating.toLowerCase() == "true") {
new_isAnimating = true;
}
if (new_isAnimating.toLowerCase() == "false") {
new_isAnimating = false;
}
if (new_isAnimating != _this.internal.isAnimating) {
if (new_isAnimating) {
_this.advanceAnimation();
} else {
_this.internal.frame = Number(_this.init.frame);
}
_this.refresh = true;
}
_this.internal.isAnimating = Boolean(new_isAnimating);
};
_this.setParams = function (newSettings) {
if ((newSettings.charset != undefined) && (newSettings.charset != _this.internal.charset)) {
_this.set_charset(newSettings.charset);
_this.init.charset = _this.internal.charset;
}
if ((newSettings.directions != undefined) && (newSettings.directions != _this.internal.directions)) {
_this.set_directions(newSettings.directions);
_this.init.directions = _this.internal.directions;
}
if ((newSettings.direction != undefined) && (newSettings.direction != _this.internal.direction)) {
_this.set_direction(newSettings.direction);
_this.init.direction = _this.internal.direction;
}
if ((newSettings.frames != undefined) && (newSettings.frames != _this.internal.frames)) {
_this.set_frames(newSettings.frames);
_this.init.frames = _this.internal.frames;
}
if ((newSettings.frame != undefined) && (newSettings.frame != _this.internal.frame)) {
_this.set_frame(newSettings.frame);
_this.init.frame = _this.internal.frame;
}
if ((newSettings.columns != undefined) && (newSettings.columns != _this.internal.columns)) {
_this.set_columns(newSettings.columns);
_this.init.columns = _this.internal.columns;
}
if ((newSettings.rows != undefined) && (newSettings.rows != _this.internal.rows)) {
_this.set_rows(newSettings.rows);
_this.init.rows = _this.internal.rows;
}
if ((newSettings.pose != undefined) && (newSettings.pose != _this.internal.pose)) {
_this.set_pose(newSettings.pose);
_this.init.pose = _this.internal.pose;
}
if ((newSettings.animType != undefined) && (newSettings.animType != _this.internal.animType)) {
_this.set_animType(newSettings.animType);
_this.init.animType = _this.internal.animType;
}
if ((newSettings.animDirection != undefined) && (newSettings.animDirection != _this.internal.animDirection)) {
_this.set_animDirection(newSettings.animDirection);
_this.init.animDirection = _this.internal.animDirection;
}
if ((newSettings.delay != undefined) && (newSettings.delay != _this.internal.delay)) {
_this.set_delay(newSettings.delay);
_this.init.delay = _this.internal.delay;
}
if ((newSettings.isAnimating != undefined) && (newSettings.isAnimating != _this.internal.isAnimating)) {
_this.set_isAnimating(newSettings.isAnimating);
_this.init.isAnimating = _this.internal.isAnimating;
}
if (_this.refresh) {
_this.update();
}
};
_this.getParams = function () {
var _local1 = {};
for (var _local2 in _this.init) {
_local1[_local2] = _this.init[_local2];
}
return(_local1);
};
_this.advanceAnimation = function () {
_this.internal.frame = _this.internal.frame + _this.internal.animDirection;
switch (_this.internal.animType) {
case "loop" :
if (_this.internal.frame < 0) {
_this.internal.frame = _this.internal.frame + _this.internal.frames;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frame - _this.internal.frames;
}
return;
case "once" :
if (_this.internal.frame < 0) {
_this.internal.frame = 0;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frames - 1;
}
return;
case "yoyo" :
if (_this.internal.frame < 0) {
_this.internal.frame = _this.internal.frame + 2;
_this.internal.animDirection = _this.internal.animDirection * -1;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frame - 2;
_this.internal.animDirection = _this.internal.animDirection * -1;
}
if (_this.internal.frame < 0) {
_this.internal.frame = 0;
}
if (_this.internal.frame < _this.internal.frames) {
break;
}
_this.internal.frame = _this.internal.frames - 1;
}
};
_this.fps = 30;
_this.loop = function () {
if (_this.internal.isAnimating) {
_this.advanceAnimation();
}
_this.update();
_this.loopInterval = setTimeout(_this.loop, (1000 / _this.fps) * _this.internal.delay);
};
_this.loopInterval = setTimeout(_this.loop, 0);
_this.lookAt = function (sprite1, sprite2) {
var _local2 = sprite2._x - sprite1._x;
var _local1 = sprite2._y - sprite1._y;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
var _local4 = _local2 / _local3;
var _local5 = _local1 / _local3;
if (Math.abs(_local5) > Math.abs(_local4)) {
if (_local5 < 0) {
_this.setParams({direction:"up"});
} else {
_this.setParams({direction:"down"});
}
} else if (_local4 < 0) {
_this.setParams({direction:"left"});
} else {
_this.setParams({direction:"right"});
}
};
_this.setParams(newSettings);
_this.onUnload = function () {
clearTimeout(_this.loopInterval);
};
return(_this);
}
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
var settings = {charset:"charset/player.png", direction:0, directions:3, frame:0, frames:1, pose:0, columns:1, rows:1, animType:"loop", animDirection:1, delay:3, isAnimating:true};
image = newSprite(settings);
image._y = 8;
radius = 8;
maxSpeed = 6;
accel = 2;
decel = 0.7;
xVel = 0;
yVel = 0;
getVelocity = function () {
if (Key.isDown(37)) {
if (xVel > (-maxSpeed)) {
xVel = xVel - accel;
}
} else if (Key.isDown(39)) {
if (xVel < maxSpeed) {
xVel = xVel + accel;
}
} else {
xVel = xVel * decel;
xVel = ((Math.abs(xVel) < 1) ? 0 : (xVel));
}
if (Key.isDown(38)) {
image.setParams({direction:1});
if (yVel > (-maxSpeed)) {
yVel = yVel - accel;
}
} else if (Key.isDown(40)) {
image.setParams({direction:2});
if (yVel < maxSpeed) {
yVel = yVel + accel;
}
} else {
image.setParams({direction:0});
yVel = yVel * decel;
yVel = ((Math.abs(yVel) < 1) ? 0 : (yVel));
}
};
hitWalls = function () {
var _local6 = ((xVel == 0) ? 0 : (xVel / Math.abs(xVel)));
var _local4 = (_x + xVel) + (_local6 * radius);
var _local5 = _y + yVel;
var _local2 = Math.floor(_local4 / 16);
var _local3 = Math.floor(_local5 / 16);
var _local1 = MAP.collision_array[_local2][_local3];
if (_local1 == 1) {
xVel = 0;
}
var _local7 = ((yVel == 0) ? 0 : (yVel / Math.abs(yVel)));
_local4 = _x + xVel;
_local5 = (_y + yVel) + (_local7 * radius);
_local2 = Math.floor(_local4 / 16);
_local3 = Math.floor(_local5 / 16);
_local1 = MAP.collision_array[_local2][_local3];
if (_local1 == 1) {
yVel = 0;
}
};
getsCrushed = function () {
var _local4 = _x + radius;
var _local2 = Math.floor(_local4 / 16);
var _local3 = Math.floor(_y / 16);
var _local1 = MAP.collision_array[_local2][_local3];
if (_local1 == 1) {
itDies();
}
};
hitScreen = function () {
xNext = _x + xVel;
if (xNext < SCROLLER._x) {
xVel = 0;
_x = (SCROLLER._x + SCROLLER.speed);
getsCrushed();
}
if (xNext > (SCROLLER._x + SCROLLER._width)) {
xVel = 0;
_x = (SCROLLER._x + SCROLLER._width);
}
yNext = _y + yVel;
if (yNext < (SCROLLER._y + 4)) {
yVel = 0;
_y = (SCROLLER._y + 4);
}
if (yNext > (SCROLLER._y + SCROLLER._height)) {
yVel = 0;
_y = (SCROLLER._y + SCROLLER._height);
}
};
applyMotion = function () {
_x = (_x + xVel);
_y = (_y + yVel);
};
itMoves = function () {
getVelocity();
hitWalls();
hitScreen();
applyMotion();
};
reload = 0;
reloadTime = 5;
itShoots = function () {
if (reload > 0) {
reload--;
} else if (Key.isDown(32)) {
var _local1 = nextDepth(PLAYER_SHOTS);
var _local2 = "shot_" + _local1;
PLAYER_SHOTS.attachMovie("playerShot", _local2, _local1, {_x:_x + 8, _y:_y});
SOUND.play("sound/playerShot.mp3");
reload = reloadTime;
}
if (!Key.isDown(32)) {
reload = 0;
}
};
maxHp = 3;
hp = maxHp;
HUD.update();
invince = 0;
invinceTime = 30;
itHurts = function () {
if (invince > 0) {
invince--;
_visible = (!_visible);
} else {
_visible = true;
var _local1 = new flash.geom.Point(_x, _y);
MAP.localToGlobal(_local1);
if (ENEMY_SPRITES.hitTest(_local1.x, _local1.y, true)) {
hp--;
HUD.update();
SOUND.play("sound/playerHurt.mp3");
invince = invinceTime;
}
}
};
itDies = function () {
this.onEnterFrame = null;
var _local2 = nextDepth(SPRITES);
var _local3 = "boom_" + _local2;
SPRITES.attachMovie("bigExplosion", _local3, _local2, {_x:_x, _y:_y});
_visible = false;
MUSIC.stopMusic();
setTimeout(ROOT.restartLevel, 2000);
};
onEnterFrame = function () {
itMoves();
itShoots();
itHurts();
if (hp <= 0) {
itDies();
}
};
Symbol 41 MovieClip Frame 15
gotoAndPlay (1);
Symbol 42 MovieClip [enemyShot] Frame 1
_this = this;
speed = (speed ? (speed) : 8);
itMoves = function () {
_x = (_x - speed);
};
removeThis = function () {
_this.removeMovieClip();
};
itCollides = function () {
var _local2 = new flash.geom.Point(_x, _y);
MAP.localToGlobal(_local2);
if (PLAYER.hitTest(_local2.x, _local2.y, true)) {
setTimeout(removeThis, 67);
this.onEnterFrame = null;
_visible = false;
}
};
itHitsWalls = function () {
var _local3 = Math.floor(_x / 16);
var _local4 = Math.floor(_y / 16);
var _local2 = MAP.collision_array[_local3][_local4];
if (_local2 == 1) {
setTimeout(removeThis, 67);
this.onEnterFrame = null;
_visible = false;
}
};
itExpires = function () {
var _local2 = this.hitTest(SCROLLER);
if (!_local2) {
this.removeMovieClip();
}
};
maxHp = 1;
hp = maxHp;
invince = 0;
invinceTime = 3;
itHurts = function () {
if (invince > 0) {
invince--;
_visible = (!_visible);
} else {
_visible = true;
var _local1 = new flash.geom.Point(_x + 8, _y);
MAP.localToGlobal(_local1);
if (PLAYER_SHOTS.hitTest(_local1.x, _local1.y, true)) {
hp--;
SOUND.play("sound/enemyHurt.mp3");
invince = invinceTime;
}
}
};
removeThis = function () {
_this.removeMovieClip();
};
itDies = function () {
_visible = false;
setTimeout(removeThis, 34);
this.onEnterFrame = null;
};
onEnterFrame = function () {
itMoves();
itCollides();
itHitsWalls();
itExpires();
itHurts();
if (hp <= 0) {
itDies();
}
};
Symbol 43 MovieClip Frame 15
gotoAndPlay (1);
Symbol 44 MovieClip [playerShot] Frame 1
_this = this;
speed = (speed ? (speed) : 8);
itMoves = function () {
_x = (_x + speed);
};
removeThis = function () {
_this.removeMovieClip();
};
itCollides = function () {
var _local2 = new flash.geom.Point(_x, _y);
MAP.localToGlobal(_local2);
if (ENEMY_SPRITES.hitTest(_local2.x, _local2.y, true)) {
setTimeout(removeThis, 34);
this.onEnterFrame = null;
_visible = false;
}
};
itHitsWalls = function () {
var _local3 = Math.floor(_x / 16);
var _local4 = Math.floor(_y / 16);
var _local2 = MAP.collision_array[_local3][_local4];
if (_local2 == 1) {
setTimeout(removeThis, 34);
this.onEnterFrame = null;
_visible = false;
}
};
itExpires = function () {
var _local2 = this.hitTest(SCROLLER);
if (!_local2) {
this.removeMovieClip();
}
};
onEnterFrame = function () {
itMoves();
itCollides();
itHitsWalls();
itExpires();
};
Symbol 71 MovieClip [smallExplosion] Frame 1
SOUND.play("sound/smallExplosion.mp3");
Symbol 71 MovieClip [smallExplosion] Frame 14
this.removeMovieClip();
Symbol 72 MovieClip [bigExplosion] Frame 1
SOUND.play("sound/bigExplosion.mp3");
Symbol 72 MovieClip [bigExplosion] Frame 14
this.removeMovieClip();
Symbol 74 MovieClip [scroller] Frame 1
speed = 0.5;
mapWidth = MAP.width * 16;
itMoves = function () {
if ((_x + _width) < mapWidth) {
_x = (_x + speed);
MAP._x = -_x;
}
};
onEnterFrame = function () {
itMoves();
};
Symbol 77 MovieClip [enemy2] Frame 1
function newSprite(newSettings, newTarget, newName, newDepth) {
newTarget = (newTarget ? (newTarget) : this);
newName = (newName ? (newName) : ("sprite_" + Math.floor(Math.random() * 9999)));
while (newTarget[newName]) {
newName = "sprite_" + Math.floor(Math.random() * 9999);
}
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
newDepth = ((newDepth != undefined) ? (newDepth) : (nextDepth(newTarget)));
var _this = newTarget.createEmptyMovieClip(newName, newDepth);
newSettings.direction = ((newSettings.direction != undefined) ? (newSettings.direction) : 0);
newSettings.directions = ((newSettings.directions != undefined) ? (newSettings.directions) : 1);
newSettings.frame = ((newSettings.frame != undefined) ? (newSettings.frame) : 0);
newSettings.frames = ((newSettings.frames != undefined) ? (newSettings.frames) : 1);
newSettings.pose = ((newSettings.pose != undefined) ? (newSettings.pose) : 0);
newSettings.columns = ((newSettings.columns != undefined) ? (newSettings.columns) : 1);
newSettings.rows = ((newSettings.rows != undefined) ? (newSettings.rows) : 1);
newSettings.animType = ((newSettings.animType != undefined) ? (newSettings.animType) : "loop");
newSettings.animDirection = ((newSettings.animDirection != undefined) ? (newSettings.animDirection) : 1);
newSettings.delay = ((newSettings.delay != undefined) ? (newSettings.delay) : 4);
newSettings.isAnimating = ((newSettings.isAnimating != undefined) ? (newSettings.isAnimating) : true);
_this.init = {};
_this.internal = {};
_this.spriteWidth = 0;
_this.spriteHeight = 0;
_this.mask_mc = _this.createEmptyMovieClip("mask_mc", 1);
_this.mask_mc.beginFill(16711680, 0);
_this.mask_mc.lineTo(16, 0);
_this.mask_mc.lineTo(16, 16);
_this.mask_mc.lineTo(0, 16);
_this.mask_mc.lineTo(0, 0);
_this.mask_mc.endFill();
_this.offsetX = 0;
_this.offsetY = 0;
_this.refresh = false;
_this.loader = new MovieClipLoader();
_this.update = function () {
var _local2 = _this.internal.pose % _this.internal.columns;
_this.image_mc._x = (_this.offsetX - ((_local2 * _this.spriteWidth) * _this.internal.frames)) - (_this.internal.frame * _this.spriteWidth);
var _local1 = Math.floor(_this.internal.pose / _this.internal.columns);
_this.image_mc._y = (_this.offsetY - ((_local1 * _this.spriteHeight) * _this.internal.directions)) - (_this.internal.direction * _this.spriteHeight);
_this.refresh = false;
};
_this.updateMask = function () {
_this.mask_mc._width = _this.spriteWidth;
_this.mask_mc._height = _this.spriteHeight;
_this.mask_mc._x = _this.offsetX;
_this.mask_mc._y = _this.offsetY;
};
_this.updateSize = function () {
_this.spriteWidth = (_this.image_mc._width / _this.internal.columns) / _this.internal.frames;
_this.spriteHeight = (_this.image_mc._height / _this.internal.rows) / _this.internal.directions;
_this.offsetX = (-_this.spriteWidth) / 2;
_this.offsetY = -_this.spriteHeight;
_this.updateMask();
};
_this.set_charset = function (new_charset) {
_this.removeSnapshot = function () {
removeMovieClip(_this.previous_mc);
};
delete _this.previous_pic;
_this.previous_pic = new flash.display.BitmapData(_this.mask_mc._width, _this.mask_mc._height, true, 0);
var _local2 = new flash.geom.Matrix();
_local2.translate(-_this.offsetX, -_this.offsetY);
_this.previous_pic.draw(_this, _local2);
removeMovieClip(_this.previous_mc);
_this.createEmptyMovieClip("previous_mc", 0);
_this.previous_mc.attachBitmap(_this.previous_pic, 0);
_this.previous_mc._x = _this.offsetX;
_this.previous_mc._y = _this.offsetY;
_this.loader.new_charset = new_charset;
_this.loader._this = _this;
_this.loader.onLoadInit = function () {
_this.internal.frame = _this.init.frame;
_this.updateSize();
_this.image_mc.setMask(_this.mask_mc);
_this.previous_mc.removeMovieClip();
_this.image_mc._alpha = 100;
_this.update();
_this.onLoad();
};
_this.loader.onLoadError = function () {
};
_this.loader.externalFile = false;
_this.image_mc.removeMovieClip();
_this.createEmptyMovieClip("image_mc", 2);
_this.image_mc._alpha = 0;
_this.image_mc.attachMovie(new_charset, "image", 2);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.image_pic.dispose();
_this.image_pic = flash.display.BitmapData.loadBitmap(new_charset);
_this.image_mc.attachBitmap(_this.image_pic, 0);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.loader.externalFile = true;
_this.loader.loadClip(new_charset, _this.image_mc);
} else {
_this.loader.onLoadInit();
}
} else {
_this.loader.onLoadInit();
}
_this.internal.charset = new_charset;
};
_this.set_directions = function (new_directions) {
if (new_directions < 0) {
new_directions = 1;
}
_this.internal.directions = Math.floor(Math.abs(Number(new_directions)));
_this.updateSize();
_this.refresh = true;
};
_this.set_direction = function (new_direction) {
var _local2 = _this.internal.directions / 4;
if (new_direction == "up") {
new_direction = 0;
} else if (new_direction == "right") {
new_direction = Math.round(1 * _local2);
} else if (new_direction == "down") {
new_direction = Math.round(2 * _local2);
} else if (new_direction == "left") {
new_direction = Math.round(3 * _local2);
}
while (new_direction < 0) {
new_direction = new_direction + _this.internal.directions;
}
_this.refresh = true;
_this.internal.direction = Math.floor(Number(new_direction) % _this.internal.directions);
};
_this.set_frames = function (new_frames) {
if (_this.internal.frame > (new_frames - 1)) {
_this.internal.frame = new_frames - 1;
}
_this.internal.frames = Math.floor(Math.abs(Number(new_frames)));
_this.updateSize();
_this.refresh = true;
};
_this.set_frame = function (new_frame) {
if (new_frame < 0) {
new_frame = 0;
}
if (new_frame > (_this.internal.frames - 1)) {
new_frame = _this.internal.frames - 1;
}
_this.refresh = true;
_this.internal.frame = Math.floor(Math.abs(Number(new_frame)));
};
_this.set_columns = function (new_columns) {
_this.internal.columns = Math.floor(Math.abs(Number(new_columns)));
_this.updateSize();
_this.refresh = true;
};
_this.set_rows = function (new_rows) {
_this.internal.rows = Math.floor(Math.abs(Number(new_rows)));
_this.updateSize();
_this.refresh = true;
};
_this.set_pose = function (new_pose) {
var _local1 = (_this.internal.columns * _this.internal.rows) - 1;
if (new_pose < 0) {
new_pose = 0;
}
if (new_pose > _local1) {
new_pose = _local1;
}
_this.refresh = true;
_this.internal.pose = Math.floor(Math.abs(Number(new_pose)));
};
_this.set_animType = function (new_animType) {
if (((new_animType == "loop") || (new_animType == "yoyo")) || (new_animType == "once")) {
_this.internal.animType = String(new_animType);
}
};
_this.set_animDirection = function (new_animDirection) {
if (new_animDirection < -1) {
new_animDirection = -1;
}
if (new_animDirection > 1) {
new_animDirection = 1;
}
if ((new_animDirection == -1) || (new_animDirection == 1)) {
_this.internal.animDirection = Number(new_animDirection);
}
};
_this.set_delay = function (new_delay) {
if (new_delay <= 0) {
new_delay = 1;
}
_this.internal.delay = Number(new_delay);
};
_this.set_isAnimating = function (new_isAnimating) {
if (new_isAnimating.toLowerCase() == "true") {
new_isAnimating = true;
}
if (new_isAnimating.toLowerCase() == "false") {
new_isAnimating = false;
}
if (new_isAnimating != _this.internal.isAnimating) {
if (new_isAnimating) {
_this.advanceAnimation();
} else {
_this.internal.frame = Number(_this.init.frame);
}
_this.refresh = true;
}
_this.internal.isAnimating = Boolean(new_isAnimating);
};
_this.setParams = function (newSettings) {
if ((newSettings.charset != undefined) && (newSettings.charset != _this.internal.charset)) {
_this.set_charset(newSettings.charset);
_this.init.charset = _this.internal.charset;
}
if ((newSettings.directions != undefined) && (newSettings.directions != _this.internal.directions)) {
_this.set_directions(newSettings.directions);
_this.init.directions = _this.internal.directions;
}
if ((newSettings.direction != undefined) && (newSettings.direction != _this.internal.direction)) {
_this.set_direction(newSettings.direction);
_this.init.direction = _this.internal.direction;
}
if ((newSettings.frames != undefined) && (newSettings.frames != _this.internal.frames)) {
_this.set_frames(newSettings.frames);
_this.init.frames = _this.internal.frames;
}
if ((newSettings.frame != undefined) && (newSettings.frame != _this.internal.frame)) {
_this.set_frame(newSettings.frame);
_this.init.frame = _this.internal.frame;
}
if ((newSettings.columns != undefined) && (newSettings.columns != _this.internal.columns)) {
_this.set_columns(newSettings.columns);
_this.init.columns = _this.internal.columns;
}
if ((newSettings.rows != undefined) && (newSettings.rows != _this.internal.rows)) {
_this.set_rows(newSettings.rows);
_this.init.rows = _this.internal.rows;
}
if ((newSettings.pose != undefined) && (newSettings.pose != _this.internal.pose)) {
_this.set_pose(newSettings.pose);
_this.init.pose = _this.internal.pose;
}
if ((newSettings.animType != undefined) && (newSettings.animType != _this.internal.animType)) {
_this.set_animType(newSettings.animType);
_this.init.animType = _this.internal.animType;
}
if ((newSettings.animDirection != undefined) && (newSettings.animDirection != _this.internal.animDirection)) {
_this.set_animDirection(newSettings.animDirection);
_this.init.animDirection = _this.internal.animDirection;
}
if ((newSettings.delay != undefined) && (newSettings.delay != _this.internal.delay)) {
_this.set_delay(newSettings.delay);
_this.init.delay = _this.internal.delay;
}
if ((newSettings.isAnimating != undefined) && (newSettings.isAnimating != _this.internal.isAnimating)) {
_this.set_isAnimating(newSettings.isAnimating);
_this.init.isAnimating = _this.internal.isAnimating;
}
if (_this.refresh) {
_this.update();
}
};
_this.getParams = function () {
var _local1 = {};
for (var _local2 in _this.init) {
_local1[_local2] = _this.init[_local2];
}
return(_local1);
};
_this.advanceAnimation = function () {
_this.internal.frame = _this.internal.frame + _this.internal.animDirection;
switch (_this.internal.animType) {
case "loop" :
if (_this.internal.frame < 0) {
_this.internal.frame = _this.internal.frame + _this.internal.frames;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frame - _this.internal.frames;
}
return;
case "once" :
if (_this.internal.frame < 0) {
_this.internal.frame = 0;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frames - 1;
}
return;
case "yoyo" :
if (_this.internal.frame < 0) {
_this.internal.frame = _this.internal.frame + 2;
_this.internal.animDirection = _this.internal.animDirection * -1;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frame - 2;
_this.internal.animDirection = _this.internal.animDirection * -1;
}
if (_this.internal.frame < 0) {
_this.internal.frame = 0;
}
if (_this.internal.frame < _this.internal.frames) {
break;
}
_this.internal.frame = _this.internal.frames - 1;
}
};
_this.fps = 30;
_this.loop = function () {
if (_this.internal.isAnimating) {
_this.advanceAnimation();
}
_this.update();
_this.loopInterval = setTimeout(_this.loop, (1000 / _this.fps) * _this.internal.delay);
};
_this.loopInterval = setTimeout(_this.loop, 0);
_this.lookAt = function (sprite1, sprite2) {
var _local2 = sprite2._x - sprite1._x;
var _local1 = sprite2._y - sprite1._y;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
var _local4 = _local2 / _local3;
var _local5 = _local1 / _local3;
if (Math.abs(_local5) > Math.abs(_local4)) {
if (_local5 < 0) {
_this.setParams({direction:"up"});
} else {
_this.setParams({direction:"down"});
}
} else if (_local4 < 0) {
_this.setParams({direction:"left"});
} else {
_this.setParams({direction:"right"});
}
};
_this.setParams(newSettings);
_this.onUnload = function () {
clearTimeout(_this.loopInterval);
};
return(_this);
}
_this = this;
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
var settings = {charset:"charset/enemy2.png", direction:0, directions:1, frame:0, frames:8, pose:0, columns:1, rows:1, animType:"loop", animDirection:1, delay:1, isAnimating:true};
image = newSprite(settings);
image._y = 12;
xStart = _x;
yStart = _y;
speed = 2;
itMoves = function () {
xStart = xStart - speed;
_x = (xStart + controller._x);
_y = (yStart + controller._y);
};
maxHp = 1;
hp = maxHp;
invince = 0;
invinceTime = 3;
itHurts = function () {
if (invince > 0) {
invince--;
_visible = (!_visible);
} else {
_visible = true;
var _local1 = new flash.geom.Point(_x, _y);
MAP.localToGlobal(_local1);
if (PLAYER_SHOTS.hitTest(_local1.x, _local1.y, true)) {
hp--;
SOUND.play("sound/enemyHurt.mp3");
invince = invinceTime;
}
}
};
removeThis = function () {
_this.removeMovieClip();
};
itDies = function () {
var _local2 = nextDepth(SPRITES);
var _local3 = "boom_" + _local2;
SPRITES.attachMovie("smallExplosion", _local3, _local2, {_x:_x, _y:_y});
_visible = false;
setTimeout(removeThis, 34);
this.onEnterFrame = null;
};
idle = true;
itActivates = function () {
if (_x < ((SCROLLER._x + SCROLLER._width) + 64)) {
idle = false;
}
};
itExpires = function () {
if (_x < SCROLLER._x) {
this.removeMovieClip();
}
};
onEnterFrame = function () {
if (idle) {
itActivates();
} else {
itMoves();
itHurts();
if (hp <= 0) {
itDies();
}
itExpires();
}
};
Symbol 77 MovieClip [enemy2] Frame 36
gotoAndPlay ("loop");
Symbol 78 MovieClip [enemy3] Frame 1
function newSprite(newSettings, newTarget, newName, newDepth) {
newTarget = (newTarget ? (newTarget) : this);
newName = (newName ? (newName) : ("sprite_" + Math.floor(Math.random() * 9999)));
while (newTarget[newName]) {
newName = "sprite_" + Math.floor(Math.random() * 9999);
}
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
newDepth = ((newDepth != undefined) ? (newDepth) : (nextDepth(newTarget)));
var _this = newTarget.createEmptyMovieClip(newName, newDepth);
newSettings.direction = ((newSettings.direction != undefined) ? (newSettings.direction) : 0);
newSettings.directions = ((newSettings.directions != undefined) ? (newSettings.directions) : 1);
newSettings.frame = ((newSettings.frame != undefined) ? (newSettings.frame) : 0);
newSettings.frames = ((newSettings.frames != undefined) ? (newSettings.frames) : 1);
newSettings.pose = ((newSettings.pose != undefined) ? (newSettings.pose) : 0);
newSettings.columns = ((newSettings.columns != undefined) ? (newSettings.columns) : 1);
newSettings.rows = ((newSettings.rows != undefined) ? (newSettings.rows) : 1);
newSettings.animType = ((newSettings.animType != undefined) ? (newSettings.animType) : "loop");
newSettings.animDirection = ((newSettings.animDirection != undefined) ? (newSettings.animDirection) : 1);
newSettings.delay = ((newSettings.delay != undefined) ? (newSettings.delay) : 4);
newSettings.isAnimating = ((newSettings.isAnimating != undefined) ? (newSettings.isAnimating) : true);
_this.init = {};
_this.internal = {};
_this.spriteWidth = 0;
_this.spriteHeight = 0;
_this.mask_mc = _this.createEmptyMovieClip("mask_mc", 1);
_this.mask_mc.beginFill(16711680, 0);
_this.mask_mc.lineTo(16, 0);
_this.mask_mc.lineTo(16, 16);
_this.mask_mc.lineTo(0, 16);
_this.mask_mc.lineTo(0, 0);
_this.mask_mc.endFill();
_this.offsetX = 0;
_this.offsetY = 0;
_this.refresh = false;
_this.loader = new MovieClipLoader();
_this.update = function () {
var _local2 = _this.internal.pose % _this.internal.columns;
_this.image_mc._x = (_this.offsetX - ((_local2 * _this.spriteWidth) * _this.internal.frames)) - (_this.internal.frame * _this.spriteWidth);
var _local1 = Math.floor(_this.internal.pose / _this.internal.columns);
_this.image_mc._y = (_this.offsetY - ((_local1 * _this.spriteHeight) * _this.internal.directions)) - (_this.internal.direction * _this.spriteHeight);
_this.refresh = false;
};
_this.updateMask = function () {
_this.mask_mc._width = _this.spriteWidth;
_this.mask_mc._height = _this.spriteHeight;
_this.mask_mc._x = _this.offsetX;
_this.mask_mc._y = _this.offsetY;
};
_this.updateSize = function () {
_this.spriteWidth = (_this.image_mc._width / _this.internal.columns) / _this.internal.frames;
_this.spriteHeight = (_this.image_mc._height / _this.internal.rows) / _this.internal.directions;
_this.offsetX = (-_this.spriteWidth) / 2;
_this.offsetY = -_this.spriteHeight;
_this.updateMask();
};
_this.set_charset = function (new_charset) {
_this.removeSnapshot = function () {
removeMovieClip(_this.previous_mc);
};
delete _this.previous_pic;
_this.previous_pic = new flash.display.BitmapData(_this.mask_mc._width, _this.mask_mc._height, true, 0);
var _local2 = new flash.geom.Matrix();
_local2.translate(-_this.offsetX, -_this.offsetY);
_this.previous_pic.draw(_this, _local2);
removeMovieClip(_this.previous_mc);
_this.createEmptyMovieClip("previous_mc", 0);
_this.previous_mc.attachBitmap(_this.previous_pic, 0);
_this.previous_mc._x = _this.offsetX;
_this.previous_mc._y = _this.offsetY;
_this.loader.new_charset = new_charset;
_this.loader._this = _this;
_this.loader.onLoadInit = function () {
_this.internal.frame = _this.init.frame;
_this.updateSize();
_this.image_mc.setMask(_this.mask_mc);
_this.previous_mc.removeMovieClip();
_this.image_mc._alpha = 100;
_this.update();
_this.onLoad();
};
_this.loader.onLoadError = function () {
};
_this.loader.externalFile = false;
_this.image_mc.removeMovieClip();
_this.createEmptyMovieClip("image_mc", 2);
_this.image_mc._alpha = 0;
_this.image_mc.attachMovie(new_charset, "image", 2);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.image_pic.dispose();
_this.image_pic = flash.display.BitmapData.loadBitmap(new_charset);
_this.image_mc.attachBitmap(_this.image_pic, 0);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.loader.externalFile = true;
_this.loader.loadClip(new_charset, _this.image_mc);
} else {
_this.loader.onLoadInit();
}
} else {
_this.loader.onLoadInit();
}
_this.internal.charset = new_charset;
};
_this.set_directions = function (new_directions) {
if (new_directions < 0) {
new_directions = 1;
}
_this.internal.directions = Math.floor(Math.abs(Number(new_directions)));
_this.updateSize();
_this.refresh = true;
};
_this.set_direction = function (new_direction) {
var _local2 = _this.internal.directions / 4;
if (new_direction == "up") {
new_direction = 0;
} else if (new_direction == "right") {
new_direction = Math.round(1 * _local2);
} else if (new_direction == "down") {
new_direction = Math.round(2 * _local2);
} else if (new_direction == "left") {
new_direction = Math.round(3 * _local2);
}
while (new_direction < 0) {
new_direction = new_direction + _this.internal.directions;
}
_this.refresh = true;
_this.internal.direction = Math.floor(Number(new_direction) % _this.internal.directions);
};
_this.set_frames = function (new_frames) {
if (_this.internal.frame > (new_frames - 1)) {
_this.internal.frame = new_frames - 1;
}
_this.internal.frames = Math.floor(Math.abs(Number(new_frames)));
_this.updateSize();
_this.refresh = true;
};
_this.set_frame = function (new_frame) {
if (new_frame < 0) {
new_frame = 0;
}
if (new_frame > (_this.internal.frames - 1)) {
new_frame = _this.internal.frames - 1;
}
_this.refresh = true;
_this.internal.frame = Math.floor(Math.abs(Number(new_frame)));
};
_this.set_columns = function (new_columns) {
_this.internal.columns = Math.floor(Math.abs(Number(new_columns)));
_this.updateSize();
_this.refresh = true;
};
_this.set_rows = function (new_rows) {
_this.internal.rows = Math.floor(Math.abs(Number(new_rows)));
_this.updateSize();
_this.refresh = true;
};
_this.set_pose = function (new_pose) {
var _local1 = (_this.internal.columns * _this.internal.rows) - 1;
if (new_pose < 0) {
new_pose = 0;
}
if (new_pose > _local1) {
new_pose = _local1;
}
_this.refresh = true;
_this.internal.pose = Math.floor(Math.abs(Number(new_pose)));
};
_this.set_animType = function (new_animType) {
if (((new_animType == "loop") || (new_animType == "yoyo")) || (new_animType == "once")) {
_this.internal.animType = String(new_animType);
}
};
_this.set_animDirection = function (new_animDirection) {
if (new_animDirection < -1) {
new_animDirection = -1;
}
if (new_animDirection > 1) {
new_animDirection = 1;
}
if ((new_animDirection == -1) || (new_animDirection == 1)) {
_this.internal.animDirection = Number(new_animDirection);
}
};
_this.set_delay = function (new_delay) {
if (new_delay <= 0) {
new_delay = 1;
}
_this.internal.delay = Number(new_delay);
};
_this.set_isAnimating = function (new_isAnimating) {
if (new_isAnimating.toLowerCase() == "true") {
new_isAnimating = true;
}
if (new_isAnimating.toLowerCase() == "false") {
new_isAnimating = false;
}
if (new_isAnimating != _this.internal.isAnimating) {
if (new_isAnimating) {
_this.advanceAnimation();
} else {
_this.internal.frame = Number(_this.init.frame);
}
_this.refresh = true;
}
_this.internal.isAnimating = Boolean(new_isAnimating);
};
_this.setParams = function (newSettings) {
if ((newSettings.charset != undefined) && (newSettings.charset != _this.internal.charset)) {
_this.set_charset(newSettings.charset);
_this.init.charset = _this.internal.charset;
}
if ((newSettings.directions != undefined) && (newSettings.directions != _this.internal.directions)) {
_this.set_directions(newSettings.directions);
_this.init.directions = _this.internal.directions;
}
if ((newSettings.direction != undefined) && (newSettings.direction != _this.internal.direction)) {
_this.set_direction(newSettings.direction);
_this.init.direction = _this.internal.direction;
}
if ((newSettings.frames != undefined) && (newSettings.frames != _this.internal.frames)) {
_this.set_frames(newSettings.frames);
_this.init.frames = _this.internal.frames;
}
if ((newSettings.frame != undefined) && (newSettings.frame != _this.internal.frame)) {
_this.set_frame(newSettings.frame);
_this.init.frame = _this.internal.frame;
}
if ((newSettings.columns != undefined) && (newSettings.columns != _this.internal.columns)) {
_this.set_columns(newSettings.columns);
_this.init.columns = _this.internal.columns;
}
if ((newSettings.rows != undefined) && (newSettings.rows != _this.internal.rows)) {
_this.set_rows(newSettings.rows);
_this.init.rows = _this.internal.rows;
}
if ((newSettings.pose != undefined) && (newSettings.pose != _this.internal.pose)) {
_this.set_pose(newSettings.pose);
_this.init.pose = _this.internal.pose;
}
if ((newSettings.animType != undefined) && (newSettings.animType != _this.internal.animType)) {
_this.set_animType(newSettings.animType);
_this.init.animType = _this.internal.animType;
}
if ((newSettings.animDirection != undefined) && (newSettings.animDirection != _this.internal.animDirection)) {
_this.set_animDirection(newSettings.animDirection);
_this.init.animDirection = _this.internal.animDirection;
}
if ((newSettings.delay != undefined) && (newSettings.delay != _this.internal.delay)) {
_this.set_delay(newSettings.delay);
_this.init.delay = _this.internal.delay;
}
if ((newSettings.isAnimating != undefined) && (newSettings.isAnimating != _this.internal.isAnimating)) {
_this.set_isAnimating(newSettings.isAnimating);
_this.init.isAnimating = _this.internal.isAnimating;
}
if (_this.refresh) {
_this.update();
}
};
_this.getParams = function () {
var _local1 = {};
for (var _local2 in _this.init) {
_local1[_local2] = _this.init[_local2];
}
return(_local1);
};
_this.advanceAnimation = function () {
_this.internal.frame = _this.internal.frame + _this.internal.animDirection;
switch (_this.internal.animType) {
case "loop" :
if (_this.internal.frame < 0) {
_this.internal.frame = _this.internal.frame + _this.internal.frames;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frame - _this.internal.frames;
}
return;
case "once" :
if (_this.internal.frame < 0) {
_this.internal.frame = 0;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frames - 1;
}
return;
case "yoyo" :
if (_this.internal.frame < 0) {
_this.internal.frame = _this.internal.frame + 2;
_this.internal.animDirection = _this.internal.animDirection * -1;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frame - 2;
_this.internal.animDirection = _this.internal.animDirection * -1;
}
if (_this.internal.frame < 0) {
_this.internal.frame = 0;
}
if (_this.internal.frame < _this.internal.frames) {
break;
}
_this.internal.frame = _this.internal.frames - 1;
}
};
_this.fps = 30;
_this.loop = function () {
if (_this.internal.isAnimating) {
_this.advanceAnimation();
}
_this.update();
_this.loopInterval = setTimeout(_this.loop, (1000 / _this.fps) * _this.internal.delay);
};
_this.loopInterval = setTimeout(_this.loop, 0);
_this.lookAt = function (sprite1, sprite2) {
var _local2 = sprite2._x - sprite1._x;
var _local1 = sprite2._y - sprite1._y;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
var _local4 = _local2 / _local3;
var _local5 = _local1 / _local3;
if (Math.abs(_local5) > Math.abs(_local4)) {
if (_local5 < 0) {
_this.setParams({direction:"up"});
} else {
_this.setParams({direction:"down"});
}
} else if (_local4 < 0) {
_this.setParams({direction:"left"});
} else {
_this.setParams({direction:"right"});
}
};
_this.setParams(newSettings);
_this.onUnload = function () {
clearTimeout(_this.loopInterval);
};
return(_this);
}
_this = this;
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
var settings = {charset:"charset/enemy3.png", direction:0, directions:1, frame:0, frames:1, pose:0, columns:1, rows:1, animType:"loop", animDirection:1, delay:1, isAnimating:true};
image = newSprite(settings);
image._y = 16;
xAccel = 0.1;
yAccel = 0.2;
xSpeed = 0.8;
ySpeed = 2;
xVel = 0;
yVel = 0;
itMoves = function () {
if (_x < PLAYER._x) {
if (xVel < xSpeed) {
xVel = xVel + xAccel;
}
} else if (_x > PLAYER._x) {
if (xVel > (-xSpeed)) {
xVel = xVel - xAccel;
}
}
if (_y < PLAYER._y) {
if (yVel < ySpeed) {
yVel = yVel + yAccel;
}
} else if (_y > PLAYER._y) {
if (yVel > (-ySpeed)) {
yVel = yVel - yAccel;
}
}
_x = (_x + xVel);
_y = (_y + yVel);
};
shootReload = 15;
shootTimer = shootReload;
itShoots = function () {
if (shootTimer > 0) {
shootTimer--;
} else {
var _local1 = nextDepth(ENEMY_SPRITES);
var _local2 = "shot_" + _local1;
ENEMY_SPRITES.attachMovie("enemyShot", _local2, _local1, {_x:_x - 8, _y:_y});
SOUND.play("sound/enemyShot.mp3");
shootTimer = shootReload;
}
};
maxHp = 3;
hp = maxHp;
invince = 0;
invinceTime = 3;
itHurts = function () {
if (invince > 0) {
invince--;
_visible = (!_visible);
} else {
_visible = true;
var _local1 = new flash.geom.Point(_x, _y);
MAP.localToGlobal(_local1);
if (PLAYER_SHOTS.hitTest(_local1.x, _local1.y, true)) {
hp--;
SOUND.play("sound/enemyHurt.mp3");
invince = invinceTime;
}
}
};
removeThis = function () {
_this.removeMovieClip();
};
itDies = function () {
var _local2 = nextDepth(SPRITES);
var _local3 = "boom_" + _local2;
SPRITES.attachMovie("smallExplosion", _local3, _local2, {_x:_x, _y:_y});
_visible = false;
setTimeout(removeThis, 34);
this.onEnterFrame = null;
};
idle = true;
itActivates = function () {
if (_x < ((SCROLLER._x + SCROLLER._width) + 16)) {
idle = false;
}
};
itExpires = function () {
if (_x < SCROLLER._x) {
this.removeMovieClip();
}
};
onEnterFrame = function () {
if (idle) {
itActivates();
} else {
itMoves();
itShoots();
itHurts();
if (hp <= 0) {
itDies();
}
itExpires();
}
};
Symbol 79 MovieClip [scrollSpeed] Frame 1
_this = this;
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
if (_parent == ENEMY_SPRITES) {
SPRITES.attachMovie("scrollSpeed", _name, nextDepth(SPRITES), {data:data, _x:_x, _y:_y});
_this.removeMovieClip();
}
itActivates = function () {
if (_x < (SCROLLER._x + SCROLLER._width)) {
this.onEnterFrame = null;
SCROLLER.speed = data.speed;
_this.removeMovieClip();
}
};
onEnterFrame = function () {
itActivates();
};
Symbol 80 MovieClip [changeMusic] Frame 1
_this = this;
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
if (_parent == ENEMY_SPRITES) {
SPRITES.attachMovie("changeMusic", _name, nextDepth(SPRITES), {data:data, _x:_x, _y:_y});
_this.removeMovieClip();
}
itActivates = function () {
if (_x < (SCROLLER._x + SCROLLER._width)) {
this.onEnterFrame = null;
changeSong = function () {
if (data.file == "") {
MUSIC.stopMusic();
} else {
MUSIC.play(data.file);
}
_this.removeMovieClip();
};
setTimeout(changeSong, 33.3333333333333);
}
};
onEnterFrame = function () {
itActivates();
};
Symbol 81 MovieClip [changeBackground] Frame 1
_this = this;
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
if (_parent == ENEMY_SPRITES) {
SPRITES.attachMovie("changeBackground", _name, nextDepth(SPRITES), {data:data, _x:_x, _y:_y});
_this.removeMovieClip();
}
itActivates = function () {
if (_x < (SCROLLER._x + SCROLLER._width)) {
this.onEnterFrame = null;
BACKGROUND.file = data.file;
_this.removeMovieClip();
}
};
onEnterFrame = function () {
itActivates();
};
Symbol 82 MovieClip [nextLevel] Frame 1
_this = this;
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
if (_parent == ENEMY_SPRITES) {
SPRITES.attachMovie("nextLevel", _name, nextDepth(SPRITES), {data:data, _x:_x, _y:_y});
_this.removeMovieClip();
}
itActivates = function () {
if ((_x < ((SCROLLER._x + SCROLLER._width) + 16)) && (PLAYER.hp > 0)) {
this.onEnterFrame = null;
PLAYER.onEnterFrame = null;
var _local2 = function () {
SPRITES.attachMovie("playerWin", "playerWin", nextDepth(SPRITES), {_x:PLAYER._x, _y:PLAYER._y});
PLAYER._visible = false;
};
setTimeout(_local2, 1000);
setTimeout(ROOT.loadLevel, 3000, data.file);
}
};
onEnterFrame = function () {
itActivates();
};
Symbol 83 MovieClip [enemy1] Frame 1
function newSprite(newSettings, newTarget, newName, newDepth) {
newTarget = (newTarget ? (newTarget) : this);
newName = (newName ? (newName) : ("sprite_" + Math.floor(Math.random() * 9999)));
while (newTarget[newName]) {
newName = "sprite_" + Math.floor(Math.random() * 9999);
}
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
newDepth = ((newDepth != undefined) ? (newDepth) : (nextDepth(newTarget)));
var _this = newTarget.createEmptyMovieClip(newName, newDepth);
newSettings.direction = ((newSettings.direction != undefined) ? (newSettings.direction) : 0);
newSettings.directions = ((newSettings.directions != undefined) ? (newSettings.directions) : 1);
newSettings.frame = ((newSettings.frame != undefined) ? (newSettings.frame) : 0);
newSettings.frames = ((newSettings.frames != undefined) ? (newSettings.frames) : 1);
newSettings.pose = ((newSettings.pose != undefined) ? (newSettings.pose) : 0);
newSettings.columns = ((newSettings.columns != undefined) ? (newSettings.columns) : 1);
newSettings.rows = ((newSettings.rows != undefined) ? (newSettings.rows) : 1);
newSettings.animType = ((newSettings.animType != undefined) ? (newSettings.animType) : "loop");
newSettings.animDirection = ((newSettings.animDirection != undefined) ? (newSettings.animDirection) : 1);
newSettings.delay = ((newSettings.delay != undefined) ? (newSettings.delay) : 4);
newSettings.isAnimating = ((newSettings.isAnimating != undefined) ? (newSettings.isAnimating) : true);
_this.init = {};
_this.internal = {};
_this.spriteWidth = 0;
_this.spriteHeight = 0;
_this.mask_mc = _this.createEmptyMovieClip("mask_mc", 1);
_this.mask_mc.beginFill(16711680, 0);
_this.mask_mc.lineTo(16, 0);
_this.mask_mc.lineTo(16, 16);
_this.mask_mc.lineTo(0, 16);
_this.mask_mc.lineTo(0, 0);
_this.mask_mc.endFill();
_this.offsetX = 0;
_this.offsetY = 0;
_this.refresh = false;
_this.loader = new MovieClipLoader();
_this.update = function () {
var _local2 = _this.internal.pose % _this.internal.columns;
_this.image_mc._x = (_this.offsetX - ((_local2 * _this.spriteWidth) * _this.internal.frames)) - (_this.internal.frame * _this.spriteWidth);
var _local1 = Math.floor(_this.internal.pose / _this.internal.columns);
_this.image_mc._y = (_this.offsetY - ((_local1 * _this.spriteHeight) * _this.internal.directions)) - (_this.internal.direction * _this.spriteHeight);
_this.refresh = false;
};
_this.updateMask = function () {
_this.mask_mc._width = _this.spriteWidth;
_this.mask_mc._height = _this.spriteHeight;
_this.mask_mc._x = _this.offsetX;
_this.mask_mc._y = _this.offsetY;
};
_this.updateSize = function () {
_this.spriteWidth = (_this.image_mc._width / _this.internal.columns) / _this.internal.frames;
_this.spriteHeight = (_this.image_mc._height / _this.internal.rows) / _this.internal.directions;
_this.offsetX = (-_this.spriteWidth) / 2;
_this.offsetY = -_this.spriteHeight;
_this.updateMask();
};
_this.set_charset = function (new_charset) {
_this.removeSnapshot = function () {
removeMovieClip(_this.previous_mc);
};
delete _this.previous_pic;
_this.previous_pic = new flash.display.BitmapData(_this.mask_mc._width, _this.mask_mc._height, true, 0);
var _local2 = new flash.geom.Matrix();
_local2.translate(-_this.offsetX, -_this.offsetY);
_this.previous_pic.draw(_this, _local2);
removeMovieClip(_this.previous_mc);
_this.createEmptyMovieClip("previous_mc", 0);
_this.previous_mc.attachBitmap(_this.previous_pic, 0);
_this.previous_mc._x = _this.offsetX;
_this.previous_mc._y = _this.offsetY;
_this.loader.new_charset = new_charset;
_this.loader._this = _this;
_this.loader.onLoadInit = function () {
_this.internal.frame = _this.init.frame;
_this.updateSize();
_this.image_mc.setMask(_this.mask_mc);
_this.previous_mc.removeMovieClip();
_this.image_mc._alpha = 100;
_this.update();
_this.onLoad();
};
_this.loader.onLoadError = function () {
};
_this.loader.externalFile = false;
_this.image_mc.removeMovieClip();
_this.createEmptyMovieClip("image_mc", 2);
_this.image_mc._alpha = 0;
_this.image_mc.attachMovie(new_charset, "image", 2);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.image_pic.dispose();
_this.image_pic = flash.display.BitmapData.loadBitmap(new_charset);
_this.image_mc.attachBitmap(_this.image_pic, 0);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.loader.externalFile = true;
_this.loader.loadClip(new_charset, _this.image_mc);
} else {
_this.loader.onLoadInit();
}
} else {
_this.loader.onLoadInit();
}
_this.internal.charset = new_charset;
};
_this.set_directions = function (new_directions) {
if (new_directions < 0) {
new_directions = 1;
}
_this.internal.directions = Math.floor(Math.abs(Number(new_directions)));
_this.updateSize();
_this.refresh = true;
};
_this.set_direction = function (new_direction) {
var _local2 = _this.internal.directions / 4;
if (new_direction == "up") {
new_direction = 0;
} else if (new_direction == "right") {
new_direction = Math.round(1 * _local2);
} else if (new_direction == "down") {
new_direction = Math.round(2 * _local2);
} else if (new_direction == "left") {
new_direction = Math.round(3 * _local2);
}
while (new_direction < 0) {
new_direction = new_direction + _this.internal.directions;
}
_this.refresh = true;
_this.internal.direction = Math.floor(Number(new_direction) % _this.internal.directions);
};
_this.set_frames = function (new_frames) {
if (_this.internal.frame > (new_frames - 1)) {
_this.internal.frame = new_frames - 1;
}
_this.internal.frames = Math.floor(Math.abs(Number(new_frames)));
_this.updateSize();
_this.refresh = true;
};
_this.set_frame = function (new_frame) {
if (new_frame < 0) {
new_frame = 0;
}
if (new_frame > (_this.internal.frames - 1)) {
new_frame = _this.internal.frames - 1;
}
_this.refresh = true;
_this.internal.frame = Math.floor(Math.abs(Number(new_frame)));
};
_this.set_columns = function (new_columns) {
_this.internal.columns = Math.floor(Math.abs(Number(new_columns)));
_this.updateSize();
_this.refresh = true;
};
_this.set_rows = function (new_rows) {
_this.internal.rows = Math.floor(Math.abs(Number(new_rows)));
_this.updateSize();
_this.refresh = true;
};
_this.set_pose = function (new_pose) {
var _local1 = (_this.internal.columns * _this.internal.rows) - 1;
if (new_pose < 0) {
new_pose = 0;
}
if (new_pose > _local1) {
new_pose = _local1;
}
_this.refresh = true;
_this.internal.pose = Math.floor(Math.abs(Number(new_pose)));
};
_this.set_animType = function (new_animType) {
if (((new_animType == "loop") || (new_animType == "yoyo")) || (new_animType == "once")) {
_this.internal.animType = String(new_animType);
}
};
_this.set_animDirection = function (new_animDirection) {
if (new_animDirection < -1) {
new_animDirection = -1;
}
if (new_animDirection > 1) {
new_animDirection = 1;
}
if ((new_animDirection == -1) || (new_animDirection == 1)) {
_this.internal.animDirection = Number(new_animDirection);
}
};
_this.set_delay = function (new_delay) {
if (new_delay <= 0) {
new_delay = 1;
}
_this.internal.delay = Number(new_delay);
};
_this.set_isAnimating = function (new_isAnimating) {
if (new_isAnimating.toLowerCase() == "true") {
new_isAnimating = true;
}
if (new_isAnimating.toLowerCase() == "false") {
new_isAnimating = false;
}
if (new_isAnimating != _this.internal.isAnimating) {
if (new_isAnimating) {
_this.advanceAnimation();
} else {
_this.internal.frame = Number(_this.init.frame);
}
_this.refresh = true;
}
_this.internal.isAnimating = Boolean(new_isAnimating);
};
_this.setParams = function (newSettings) {
if ((newSettings.charset != undefined) && (newSettings.charset != _this.internal.charset)) {
_this.set_charset(newSettings.charset);
_this.init.charset = _this.internal.charset;
}
if ((newSettings.directions != undefined) && (newSettings.directions != _this.internal.directions)) {
_this.set_directions(newSettings.directions);
_this.init.directions = _this.internal.directions;
}
if ((newSettings.direction != undefined) && (newSettings.direction != _this.internal.direction)) {
_this.set_direction(newSettings.direction);
_this.init.direction = _this.internal.direction;
}
if ((newSettings.frames != undefined) && (newSettings.frames != _this.internal.frames)) {
_this.set_frames(newSettings.frames);
_this.init.frames = _this.internal.frames;
}
if ((newSettings.frame != undefined) && (newSettings.frame != _this.internal.frame)) {
_this.set_frame(newSettings.frame);
_this.init.frame = _this.internal.frame;
}
if ((newSettings.columns != undefined) && (newSettings.columns != _this.internal.columns)) {
_this.set_columns(newSettings.columns);
_this.init.columns = _this.internal.columns;
}
if ((newSettings.rows != undefined) && (newSettings.rows != _this.internal.rows)) {
_this.set_rows(newSettings.rows);
_this.init.rows = _this.internal.rows;
}
if ((newSettings.pose != undefined) && (newSettings.pose != _this.internal.pose)) {
_this.set_pose(newSettings.pose);
_this.init.pose = _this.internal.pose;
}
if ((newSettings.animType != undefined) && (newSettings.animType != _this.internal.animType)) {
_this.set_animType(newSettings.animType);
_this.init.animType = _this.internal.animType;
}
if ((newSettings.animDirection != undefined) && (newSettings.animDirection != _this.internal.animDirection)) {
_this.set_animDirection(newSettings.animDirection);
_this.init.animDirection = _this.internal.animDirection;
}
if ((newSettings.delay != undefined) && (newSettings.delay != _this.internal.delay)) {
_this.set_delay(newSettings.delay);
_this.init.delay = _this.internal.delay;
}
if ((newSettings.isAnimating != undefined) && (newSettings.isAnimating != _this.internal.isAnimating)) {
_this.set_isAnimating(newSettings.isAnimating);
_this.init.isAnimating = _this.internal.isAnimating;
}
if (_this.refresh) {
_this.update();
}
};
_this.getParams = function () {
var _local1 = {};
for (var _local2 in _this.init) {
_local1[_local2] = _this.init[_local2];
}
return(_local1);
};
_this.advanceAnimation = function () {
_this.internal.frame = _this.internal.frame + _this.internal.animDirection;
switch (_this.internal.animType) {
case "loop" :
if (_this.internal.frame < 0) {
_this.internal.frame = _this.internal.frame + _this.internal.frames;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frame - _this.internal.frames;
}
return;
case "once" :
if (_this.internal.frame < 0) {
_this.internal.frame = 0;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frames - 1;
}
return;
case "yoyo" :
if (_this.internal.frame < 0) {
_this.internal.frame = _this.internal.frame + 2;
_this.internal.animDirection = _this.internal.animDirection * -1;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frame - 2;
_this.internal.animDirection = _this.internal.animDirection * -1;
}
if (_this.internal.frame < 0) {
_this.internal.frame = 0;
}
if (_this.internal.frame < _this.internal.frames) {
break;
}
_this.internal.frame = _this.internal.frames - 1;
}
};
_this.fps = 30;
_this.loop = function () {
if (_this.internal.isAnimating) {
_this.advanceAnimation();
}
_this.update();
_this.loopInterval = setTimeout(_this.loop, (1000 / _this.fps) * _this.internal.delay);
};
_this.loopInterval = setTimeout(_this.loop, 0);
_this.lookAt = function (sprite1, sprite2) {
var _local2 = sprite2._x - sprite1._x;
var _local1 = sprite2._y - sprite1._y;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
var _local4 = _local2 / _local3;
var _local5 = _local1 / _local3;
if (Math.abs(_local5) > Math.abs(_local4)) {
if (_local5 < 0) {
_this.setParams({direction:"up"});
} else {
_this.setParams({direction:"down"});
}
} else if (_local4 < 0) {
_this.setParams({direction:"left"});
} else {
_this.setParams({direction:"right"});
}
};
_this.setParams(newSettings);
_this.onUnload = function () {
clearTimeout(_this.loopInterval);
};
return(_this);
}
_this = this;
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
var settings = {charset:"charset/enemy1.png", direction:0, directions:1, frame:0, frames:8, pose:0, columns:1, rows:1, animType:"loop", animDirection:1, delay:1, isAnimating:true};
image = newSprite(settings);
image._y = 12;
speed = 2;
itMoves = function () {
_x = (_x - speed);
};
maxHp = 1;
hp = maxHp;
invince = 0;
invinceTime = 3;
itHurts = function () {
if (invince > 0) {
invince--;
_visible = (!_visible);
} else {
_visible = true;
var _local1 = new flash.geom.Point(_x, _y);
MAP.localToGlobal(_local1);
if (PLAYER_SHOTS.hitTest(_local1.x, _local1.y, true)) {
hp--;
SOUND.play("sound/enemyHurt.mp3");
invince = invinceTime;
}
}
};
removeThis = function () {
_this.removeMovieClip();
};
itDies = function () {
var _local2 = nextDepth(SPRITES);
var _local3 = "boom_" + _local2;
SPRITES.attachMovie("smallExplosion", _local3, _local2, {_x:_x, _y:_y});
_visible = false;
setTimeout(removeThis, 34);
this.onEnterFrame = null;
};
idle = true;
itActivates = function () {
if (_x < ((SCROLLER._x + SCROLLER._width) + 16)) {
idle = false;
}
};
itExpires = function () {
if (_x < SCROLLER._x) {
this.removeMovieClip();
}
};
onEnterFrame = function () {
if (idle) {
itActivates();
} else {
itMoves();
itHurts();
if (hp <= 0) {
itDies();
}
itExpires();
}
};
Symbol 84 MovieClip [background] Frame 1
_this = this;
initFile = file;
_file = "";
loader = new MovieClipLoader();
loader.onLoadInit = function () {
_this.dispatchEvent({type:"complete"});
_this.complete();
};
loader.onLoadError = function () {
_this.dispatchEvent({type:"error"});
_this.error();
};
_this.getFile = function () {
return(_file);
};
_this.setFile = function (newValue, doEvent) {
_file = newValue;
_this.image_mc.removeMovieClip();
_this.attachMovie(newValue, "image_mc", 0);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.createEmptyMovieClip("image_mc", 0);
_this.image_pic = flash.display.BitmapData.loadBitmap(newValue);
_this.image_mc.attachBitmap(_this.image_pic, 0);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.loader.loadClip(newValue, _this.image_mc);
} else {
_this.dispatchEvent({type:"complete"});
_this.complete();
}
} else {
_this.dispatchEvent({type:"complete"});
_this.complete();
}
};
_this.addProperty("file", _this.getFile, _this.setFile);
file = initFile;
this.dispatchEvent({type:"load"});
this.load();
Symbol 85 MovieClip [shotBlock2] Frame 1
function newSprite(newSettings, newTarget, newName, newDepth) {
newTarget = (newTarget ? (newTarget) : this);
newName = (newName ? (newName) : ("sprite_" + Math.floor(Math.random() * 9999)));
while (newTarget[newName]) {
newName = "sprite_" + Math.floor(Math.random() * 9999);
}
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
newDepth = ((newDepth != undefined) ? (newDepth) : (nextDepth(newTarget)));
var _this = newTarget.createEmptyMovieClip(newName, newDepth);
newSettings.direction = ((newSettings.direction != undefined) ? (newSettings.direction) : 0);
newSettings.directions = ((newSettings.directions != undefined) ? (newSettings.directions) : 1);
newSettings.frame = ((newSettings.frame != undefined) ? (newSettings.frame) : 0);
newSettings.frames = ((newSettings.frames != undefined) ? (newSettings.frames) : 1);
newSettings.pose = ((newSettings.pose != undefined) ? (newSettings.pose) : 0);
newSettings.columns = ((newSettings.columns != undefined) ? (newSettings.columns) : 1);
newSettings.rows = ((newSettings.rows != undefined) ? (newSettings.rows) : 1);
newSettings.animType = ((newSettings.animType != undefined) ? (newSettings.animType) : "loop");
newSettings.animDirection = ((newSettings.animDirection != undefined) ? (newSettings.animDirection) : 1);
newSettings.delay = ((newSettings.delay != undefined) ? (newSettings.delay) : 4);
newSettings.isAnimating = ((newSettings.isAnimating != undefined) ? (newSettings.isAnimating) : true);
_this.init = {};
_this.internal = {};
_this.spriteWidth = 0;
_this.spriteHeight = 0;
_this.mask_mc = _this.createEmptyMovieClip("mask_mc", 1);
_this.mask_mc.beginFill(16711680, 0);
_this.mask_mc.lineTo(16, 0);
_this.mask_mc.lineTo(16, 16);
_this.mask_mc.lineTo(0, 16);
_this.mask_mc.lineTo(0, 0);
_this.mask_mc.endFill();
_this.offsetX = 0;
_this.offsetY = 0;
_this.refresh = false;
_this.loader = new MovieClipLoader();
_this.update = function () {
var _local2 = _this.internal.pose % _this.internal.columns;
_this.image_mc._x = (_this.offsetX - ((_local2 * _this.spriteWidth) * _this.internal.frames)) - (_this.internal.frame * _this.spriteWidth);
var _local1 = Math.floor(_this.internal.pose / _this.internal.columns);
_this.image_mc._y = (_this.offsetY - ((_local1 * _this.spriteHeight) * _this.internal.directions)) - (_this.internal.direction * _this.spriteHeight);
_this.refresh = false;
};
_this.updateMask = function () {
_this.mask_mc._width = _this.spriteWidth;
_this.mask_mc._height = _this.spriteHeight;
_this.mask_mc._x = _this.offsetX;
_this.mask_mc._y = _this.offsetY;
};
_this.updateSize = function () {
_this.spriteWidth = (_this.image_mc._width / _this.internal.columns) / _this.internal.frames;
_this.spriteHeight = (_this.image_mc._height / _this.internal.rows) / _this.internal.directions;
_this.offsetX = (-_this.spriteWidth) / 2;
_this.offsetY = -_this.spriteHeight;
_this.updateMask();
};
_this.set_charset = function (new_charset) {
_this.removeSnapshot = function () {
removeMovieClip(_this.previous_mc);
};
delete _this.previous_pic;
_this.previous_pic = new flash.display.BitmapData(_this.mask_mc._width, _this.mask_mc._height, true, 0);
var _local2 = new flash.geom.Matrix();
_local2.translate(-_this.offsetX, -_this.offsetY);
_this.previous_pic.draw(_this, _local2);
removeMovieClip(_this.previous_mc);
_this.createEmptyMovieClip("previous_mc", 0);
_this.previous_mc.attachBitmap(_this.previous_pic, 0);
_this.previous_mc._x = _this.offsetX;
_this.previous_mc._y = _this.offsetY;
_this.loader.new_charset = new_charset;
_this.loader._this = _this;
_this.loader.onLoadInit = function () {
_this.internal.frame = _this.init.frame;
_this.updateSize();
_this.image_mc.setMask(_this.mask_mc);
_this.previous_mc.removeMovieClip();
_this.image_mc._alpha = 100;
_this.update();
_this.onLoad();
};
_this.loader.onLoadError = function () {
};
_this.loader.externalFile = false;
_this.image_mc.removeMovieClip();
_this.createEmptyMovieClip("image_mc", 2);
_this.image_mc._alpha = 0;
_this.image_mc.attachMovie(new_charset, "image", 2);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.image_pic.dispose();
_this.image_pic = flash.display.BitmapData.loadBitmap(new_charset);
_this.image_mc.attachBitmap(_this.image_pic, 0);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.loader.externalFile = true;
_this.loader.loadClip(new_charset, _this.image_mc);
} else {
_this.loader.onLoadInit();
}
} else {
_this.loader.onLoadInit();
}
_this.internal.charset = new_charset;
};
_this.set_directions = function (new_directions) {
if (new_directions < 0) {
new_directions = 1;
}
_this.internal.directions = Math.floor(Math.abs(Number(new_directions)));
_this.updateSize();
_this.refresh = true;
};
_this.set_direction = function (new_direction) {
var _local2 = _this.internal.directions / 4;
if (new_direction == "up") {
new_direction = 0;
} else if (new_direction == "right") {
new_direction = Math.round(1 * _local2);
} else if (new_direction == "down") {
new_direction = Math.round(2 * _local2);
} else if (new_direction == "left") {
new_direction = Math.round(3 * _local2);
}
while (new_direction < 0) {
new_direction = new_direction + _this.internal.directions;
}
_this.refresh = true;
_this.internal.direction = Math.floor(Number(new_direction) % _this.internal.directions);
};
_this.set_frames = function (new_frames) {
if (_this.internal.frame > (new_frames - 1)) {
_this.internal.frame = new_frames - 1;
}
_this.internal.frames = Math.floor(Math.abs(Number(new_frames)));
_this.updateSize();
_this.refresh = true;
};
_this.set_frame = function (new_frame) {
if (new_frame < 0) {
new_frame = 0;
}
if (new_frame > (_this.internal.frames - 1)) {
new_frame = _this.internal.frames - 1;
}
_this.refresh = true;
_this.internal.frame = Math.floor(Math.abs(Number(new_frame)));
};
_this.set_columns = function (new_columns) {
_this.internal.columns = Math.floor(Math.abs(Number(new_columns)));
_this.updateSize();
_this.refresh = true;
};
_this.set_rows = function (new_rows) {
_this.internal.rows = Math.floor(Math.abs(Number(new_rows)));
_this.updateSize();
_this.refresh = true;
};
_this.set_pose = function (new_pose) {
var _local1 = (_this.internal.columns * _this.internal.rows) - 1;
if (new_pose < 0) {
new_pose = 0;
}
if (new_pose > _local1) {
new_pose = _local1;
}
_this.refresh = true;
_this.internal.pose = Math.floor(Math.abs(Number(new_pose)));
};
_this.set_animType = function (new_animType) {
if (((new_animType == "loop") || (new_animType == "yoyo")) || (new_animType == "once")) {
_this.internal.animType = String(new_animType);
}
};
_this.set_animDirection = function (new_animDirection) {
if (new_animDirection < -1) {
new_animDirection = -1;
}
if (new_animDirection > 1) {
new_animDirection = 1;
}
if ((new_animDirection == -1) || (new_animDirection == 1)) {
_this.internal.animDirection = Number(new_animDirection);
}
};
_this.set_delay = function (new_delay) {
if (new_delay <= 0) {
new_delay = 1;
}
_this.internal.delay = Number(new_delay);
};
_this.set_isAnimating = function (new_isAnimating) {
if (new_isAnimating.toLowerCase() == "true") {
new_isAnimating = true;
}
if (new_isAnimating.toLowerCase() == "false") {
new_isAnimating = false;
}
if (new_isAnimating != _this.internal.isAnimating) {
if (new_isAnimating) {
_this.advanceAnimation();
} else {
_this.internal.frame = Number(_this.init.frame);
}
_this.refresh = true;
}
_this.internal.isAnimating = Boolean(new_isAnimating);
};
_this.setParams = function (newSettings) {
if ((newSettings.charset != undefined) && (newSettings.charset != _this.internal.charset)) {
_this.set_charset(newSettings.charset);
_this.init.charset = _this.internal.charset;
}
if ((newSettings.directions != undefined) && (newSettings.directions != _this.internal.directions)) {
_this.set_directions(newSettings.directions);
_this.init.directions = _this.internal.directions;
}
if ((newSettings.direction != undefined) && (newSettings.direction != _this.internal.direction)) {
_this.set_direction(newSettings.direction);
_this.init.direction = _this.internal.direction;
}
if ((newSettings.frames != undefined) && (newSettings.frames != _this.internal.frames)) {
_this.set_frames(newSettings.frames);
_this.init.frames = _this.internal.frames;
}
if ((newSettings.frame != undefined) && (newSettings.frame != _this.internal.frame)) {
_this.set_frame(newSettings.frame);
_this.init.frame = _this.internal.frame;
}
if ((newSettings.columns != undefined) && (newSettings.columns != _this.internal.columns)) {
_this.set_columns(newSettings.columns);
_this.init.columns = _this.internal.columns;
}
if ((newSettings.rows != undefined) && (newSettings.rows != _this.internal.rows)) {
_this.set_rows(newSettings.rows);
_this.init.rows = _this.internal.rows;
}
if ((newSettings.pose != undefined) && (newSettings.pose != _this.internal.pose)) {
_this.set_pose(newSettings.pose);
_this.init.pose = _this.internal.pose;
}
if ((newSettings.animType != undefined) && (newSettings.animType != _this.internal.animType)) {
_this.set_animType(newSettings.animType);
_this.init.animType = _this.internal.animType;
}
if ((newSettings.animDirection != undefined) && (newSettings.animDirection != _this.internal.animDirection)) {
_this.set_animDirection(newSettings.animDirection);
_this.init.animDirection = _this.internal.animDirection;
}
if ((newSettings.delay != undefined) && (newSettings.delay != _this.internal.delay)) {
_this.set_delay(newSettings.delay);
_this.init.delay = _this.internal.delay;
}
if ((newSettings.isAnimating != undefined) && (newSettings.isAnimating != _this.internal.isAnimating)) {
_this.set_isAnimating(newSettings.isAnimating);
_this.init.isAnimating = _this.internal.isAnimating;
}
if (_this.refresh) {
_this.update();
}
};
_this.getParams = function () {
var _local1 = {};
for (var _local2 in _this.init) {
_local1[_local2] = _this.init[_local2];
}
return(_local1);
};
_this.advanceAnimation = function () {
_this.internal.frame = _this.internal.frame + _this.internal.animDirection;
switch (_this.internal.animType) {
case "loop" :
if (_this.internal.frame < 0) {
_this.internal.frame = _this.internal.frame + _this.internal.frames;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frame - _this.internal.frames;
}
return;
case "once" :
if (_this.internal.frame < 0) {
_this.internal.frame = 0;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frames - 1;
}
return;
case "yoyo" :
if (_this.internal.frame < 0) {
_this.internal.frame = _this.internal.frame + 2;
_this.internal.animDirection = _this.internal.animDirection * -1;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frame - 2;
_this.internal.animDirection = _this.internal.animDirection * -1;
}
if (_this.internal.frame < 0) {
_this.internal.frame = 0;
}
if (_this.internal.frame < _this.internal.frames) {
break;
}
_this.internal.frame = _this.internal.frames - 1;
}
};
_this.fps = 30;
_this.loop = function () {
if (_this.internal.isAnimating) {
_this.advanceAnimation();
}
_this.update();
_this.loopInterval = setTimeout(_this.loop, (1000 / _this.fps) * _this.internal.delay);
};
_this.loopInterval = setTimeout(_this.loop, 0);
_this.lookAt = function (sprite1, sprite2) {
var _local2 = sprite2._x - sprite1._x;
var _local1 = sprite2._y - sprite1._y;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
var _local4 = _local2 / _local3;
var _local5 = _local1 / _local3;
if (Math.abs(_local5) > Math.abs(_local4)) {
if (_local5 < 0) {
_this.setParams({direction:"up"});
} else {
_this.setParams({direction:"down"});
}
} else if (_local4 < 0) {
_this.setParams({direction:"left"});
} else {
_this.setParams({direction:"right"});
}
};
_this.setParams(newSettings);
_this.onUnload = function () {
clearTimeout(_this.loopInterval);
};
return(_this);
}
_this = this;
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
if (_parent == ENEMY_SPRITES) {
SPRITES.attachMovie("shotBlock2", _name, nextDepth(SPRITES), {data:data, _x:_x, _y:_y});
_this.removeMovieClip();
}
frame = 0;
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
var settings = {charset:"charset/shotBlock2.png", direction:0, directions:1, frame:0, frames:7, pose:0, columns:1, rows:1, animType:"once", animDirection:1, delay:1, isAnimating:false};
image = newSprite(settings);
image._y = 8;
maxHp = 3;
hp = maxHp;
invince = 0;
invinceTime = 3;
itHurts = function () {
if (invince > 0) {
invince--;
} else {
var _local1 = new flash.geom.Point(_x, _y);
MAP.localToGlobal(_local1);
if (PLAYER_SHOTS.hitTest(_local1.x, _local1.y, true)) {
hp--;
frame++;
image.setParams({frame:frame});
SOUND.play("sound/enemyHurt.mp3");
invince = invinceTime;
}
}
};
xTile = Math.floor(_x / 16);
yTile = Math.floor(_y / 16);
MAP.collision_array[xTile][yTile] = 1;
removeThis = function () {
MAP.collision_array[xTile][yTile] = 0;
_this.removeMovieClip();
};
itDies = function () {
image.setParams({isAnimating:true});
setTimeout(removeThis, 100);
this.onEnterFrame = null;
};
idle = true;
itActivates = function () {
if (_x < ((SCROLLER._x + SCROLLER._width) + 16)) {
idle = false;
}
};
itExpires = function () {
if (_x < SCROLLER._x) {
this.removeMovieClip();
}
};
onEnterFrame = function () {
if (idle) {
itActivates();
} else {
itHurts();
if (hp <= 0) {
itDies();
}
itExpires();
}
};
Symbol 86 MovieClip [shotBlock] Frame 1
function newSprite(newSettings, newTarget, newName, newDepth) {
newTarget = (newTarget ? (newTarget) : this);
newName = (newName ? (newName) : ("sprite_" + Math.floor(Math.random() * 9999)));
while (newTarget[newName]) {
newName = "sprite_" + Math.floor(Math.random() * 9999);
}
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
newDepth = ((newDepth != undefined) ? (newDepth) : (nextDepth(newTarget)));
var _this = newTarget.createEmptyMovieClip(newName, newDepth);
newSettings.direction = ((newSettings.direction != undefined) ? (newSettings.direction) : 0);
newSettings.directions = ((newSettings.directions != undefined) ? (newSettings.directions) : 1);
newSettings.frame = ((newSettings.frame != undefined) ? (newSettings.frame) : 0);
newSettings.frames = ((newSettings.frames != undefined) ? (newSettings.frames) : 1);
newSettings.pose = ((newSettings.pose != undefined) ? (newSettings.pose) : 0);
newSettings.columns = ((newSettings.columns != undefined) ? (newSettings.columns) : 1);
newSettings.rows = ((newSettings.rows != undefined) ? (newSettings.rows) : 1);
newSettings.animType = ((newSettings.animType != undefined) ? (newSettings.animType) : "loop");
newSettings.animDirection = ((newSettings.animDirection != undefined) ? (newSettings.animDirection) : 1);
newSettings.delay = ((newSettings.delay != undefined) ? (newSettings.delay) : 4);
newSettings.isAnimating = ((newSettings.isAnimating != undefined) ? (newSettings.isAnimating) : true);
_this.init = {};
_this.internal = {};
_this.spriteWidth = 0;
_this.spriteHeight = 0;
_this.mask_mc = _this.createEmptyMovieClip("mask_mc", 1);
_this.mask_mc.beginFill(16711680, 0);
_this.mask_mc.lineTo(16, 0);
_this.mask_mc.lineTo(16, 16);
_this.mask_mc.lineTo(0, 16);
_this.mask_mc.lineTo(0, 0);
_this.mask_mc.endFill();
_this.offsetX = 0;
_this.offsetY = 0;
_this.refresh = false;
_this.loader = new MovieClipLoader();
_this.update = function () {
var _local2 = _this.internal.pose % _this.internal.columns;
_this.image_mc._x = (_this.offsetX - ((_local2 * _this.spriteWidth) * _this.internal.frames)) - (_this.internal.frame * _this.spriteWidth);
var _local1 = Math.floor(_this.internal.pose / _this.internal.columns);
_this.image_mc._y = (_this.offsetY - ((_local1 * _this.spriteHeight) * _this.internal.directions)) - (_this.internal.direction * _this.spriteHeight);
_this.refresh = false;
};
_this.updateMask = function () {
_this.mask_mc._width = _this.spriteWidth;
_this.mask_mc._height = _this.spriteHeight;
_this.mask_mc._x = _this.offsetX;
_this.mask_mc._y = _this.offsetY;
};
_this.updateSize = function () {
_this.spriteWidth = (_this.image_mc._width / _this.internal.columns) / _this.internal.frames;
_this.spriteHeight = (_this.image_mc._height / _this.internal.rows) / _this.internal.directions;
_this.offsetX = (-_this.spriteWidth) / 2;
_this.offsetY = -_this.spriteHeight;
_this.updateMask();
};
_this.set_charset = function (new_charset) {
_this.removeSnapshot = function () {
removeMovieClip(_this.previous_mc);
};
delete _this.previous_pic;
_this.previous_pic = new flash.display.BitmapData(_this.mask_mc._width, _this.mask_mc._height, true, 0);
var _local2 = new flash.geom.Matrix();
_local2.translate(-_this.offsetX, -_this.offsetY);
_this.previous_pic.draw(_this, _local2);
removeMovieClip(_this.previous_mc);
_this.createEmptyMovieClip("previous_mc", 0);
_this.previous_mc.attachBitmap(_this.previous_pic, 0);
_this.previous_mc._x = _this.offsetX;
_this.previous_mc._y = _this.offsetY;
_this.loader.new_charset = new_charset;
_this.loader._this = _this;
_this.loader.onLoadInit = function () {
_this.internal.frame = _this.init.frame;
_this.updateSize();
_this.image_mc.setMask(_this.mask_mc);
_this.previous_mc.removeMovieClip();
_this.image_mc._alpha = 100;
_this.update();
_this.onLoad();
};
_this.loader.onLoadError = function () {
};
_this.loader.externalFile = false;
_this.image_mc.removeMovieClip();
_this.createEmptyMovieClip("image_mc", 2);
_this.image_mc._alpha = 0;
_this.image_mc.attachMovie(new_charset, "image", 2);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.image_pic.dispose();
_this.image_pic = flash.display.BitmapData.loadBitmap(new_charset);
_this.image_mc.attachBitmap(_this.image_pic, 0);
if ((_this.image_mc._width == undefined) || (_this.image_mc._width == 0)) {
_this.loader.externalFile = true;
_this.loader.loadClip(new_charset, _this.image_mc);
} else {
_this.loader.onLoadInit();
}
} else {
_this.loader.onLoadInit();
}
_this.internal.charset = new_charset;
};
_this.set_directions = function (new_directions) {
if (new_directions < 0) {
new_directions = 1;
}
_this.internal.directions = Math.floor(Math.abs(Number(new_directions)));
_this.updateSize();
_this.refresh = true;
};
_this.set_direction = function (new_direction) {
var _local2 = _this.internal.directions / 4;
if (new_direction == "up") {
new_direction = 0;
} else if (new_direction == "right") {
new_direction = Math.round(1 * _local2);
} else if (new_direction == "down") {
new_direction = Math.round(2 * _local2);
} else if (new_direction == "left") {
new_direction = Math.round(3 * _local2);
}
while (new_direction < 0) {
new_direction = new_direction + _this.internal.directions;
}
_this.refresh = true;
_this.internal.direction = Math.floor(Number(new_direction) % _this.internal.directions);
};
_this.set_frames = function (new_frames) {
if (_this.internal.frame > (new_frames - 1)) {
_this.internal.frame = new_frames - 1;
}
_this.internal.frames = Math.floor(Math.abs(Number(new_frames)));
_this.updateSize();
_this.refresh = true;
};
_this.set_frame = function (new_frame) {
if (new_frame < 0) {
new_frame = 0;
}
if (new_frame > (_this.internal.frames - 1)) {
new_frame = _this.internal.frames - 1;
}
_this.refresh = true;
_this.internal.frame = Math.floor(Math.abs(Number(new_frame)));
};
_this.set_columns = function (new_columns) {
_this.internal.columns = Math.floor(Math.abs(Number(new_columns)));
_this.updateSize();
_this.refresh = true;
};
_this.set_rows = function (new_rows) {
_this.internal.rows = Math.floor(Math.abs(Number(new_rows)));
_this.updateSize();
_this.refresh = true;
};
_this.set_pose = function (new_pose) {
var _local1 = (_this.internal.columns * _this.internal.rows) - 1;
if (new_pose < 0) {
new_pose = 0;
}
if (new_pose > _local1) {
new_pose = _local1;
}
_this.refresh = true;
_this.internal.pose = Math.floor(Math.abs(Number(new_pose)));
};
_this.set_animType = function (new_animType) {
if (((new_animType == "loop") || (new_animType == "yoyo")) || (new_animType == "once")) {
_this.internal.animType = String(new_animType);
}
};
_this.set_animDirection = function (new_animDirection) {
if (new_animDirection < -1) {
new_animDirection = -1;
}
if (new_animDirection > 1) {
new_animDirection = 1;
}
if ((new_animDirection == -1) || (new_animDirection == 1)) {
_this.internal.animDirection = Number(new_animDirection);
}
};
_this.set_delay = function (new_delay) {
if (new_delay <= 0) {
new_delay = 1;
}
_this.internal.delay = Number(new_delay);
};
_this.set_isAnimating = function (new_isAnimating) {
if (new_isAnimating.toLowerCase() == "true") {
new_isAnimating = true;
}
if (new_isAnimating.toLowerCase() == "false") {
new_isAnimating = false;
}
if (new_isAnimating != _this.internal.isAnimating) {
if (new_isAnimating) {
_this.advanceAnimation();
} else {
_this.internal.frame = Number(_this.init.frame);
}
_this.refresh = true;
}
_this.internal.isAnimating = Boolean(new_isAnimating);
};
_this.setParams = function (newSettings) {
if ((newSettings.charset != undefined) && (newSettings.charset != _this.internal.charset)) {
_this.set_charset(newSettings.charset);
_this.init.charset = _this.internal.charset;
}
if ((newSettings.directions != undefined) && (newSettings.directions != _this.internal.directions)) {
_this.set_directions(newSettings.directions);
_this.init.directions = _this.internal.directions;
}
if ((newSettings.direction != undefined) && (newSettings.direction != _this.internal.direction)) {
_this.set_direction(newSettings.direction);
_this.init.direction = _this.internal.direction;
}
if ((newSettings.frames != undefined) && (newSettings.frames != _this.internal.frames)) {
_this.set_frames(newSettings.frames);
_this.init.frames = _this.internal.frames;
}
if ((newSettings.frame != undefined) && (newSettings.frame != _this.internal.frame)) {
_this.set_frame(newSettings.frame);
_this.init.frame = _this.internal.frame;
}
if ((newSettings.columns != undefined) && (newSettings.columns != _this.internal.columns)) {
_this.set_columns(newSettings.columns);
_this.init.columns = _this.internal.columns;
}
if ((newSettings.rows != undefined) && (newSettings.rows != _this.internal.rows)) {
_this.set_rows(newSettings.rows);
_this.init.rows = _this.internal.rows;
}
if ((newSettings.pose != undefined) && (newSettings.pose != _this.internal.pose)) {
_this.set_pose(newSettings.pose);
_this.init.pose = _this.internal.pose;
}
if ((newSettings.animType != undefined) && (newSettings.animType != _this.internal.animType)) {
_this.set_animType(newSettings.animType);
_this.init.animType = _this.internal.animType;
}
if ((newSettings.animDirection != undefined) && (newSettings.animDirection != _this.internal.animDirection)) {
_this.set_animDirection(newSettings.animDirection);
_this.init.animDirection = _this.internal.animDirection;
}
if ((newSettings.delay != undefined) && (newSettings.delay != _this.internal.delay)) {
_this.set_delay(newSettings.delay);
_this.init.delay = _this.internal.delay;
}
if ((newSettings.isAnimating != undefined) && (newSettings.isAnimating != _this.internal.isAnimating)) {
_this.set_isAnimating(newSettings.isAnimating);
_this.init.isAnimating = _this.internal.isAnimating;
}
if (_this.refresh) {
_this.update();
}
};
_this.getParams = function () {
var _local1 = {};
for (var _local2 in _this.init) {
_local1[_local2] = _this.init[_local2];
}
return(_local1);
};
_this.advanceAnimation = function () {
_this.internal.frame = _this.internal.frame + _this.internal.animDirection;
switch (_this.internal.animType) {
case "loop" :
if (_this.internal.frame < 0) {
_this.internal.frame = _this.internal.frame + _this.internal.frames;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frame - _this.internal.frames;
}
return;
case "once" :
if (_this.internal.frame < 0) {
_this.internal.frame = 0;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frames - 1;
}
return;
case "yoyo" :
if (_this.internal.frame < 0) {
_this.internal.frame = _this.internal.frame + 2;
_this.internal.animDirection = _this.internal.animDirection * -1;
} else if (_this.internal.frame >= _this.internal.frames) {
_this.internal.frame = _this.internal.frame - 2;
_this.internal.animDirection = _this.internal.animDirection * -1;
}
if (_this.internal.frame < 0) {
_this.internal.frame = 0;
}
if (_this.internal.frame < _this.internal.frames) {
break;
}
_this.internal.frame = _this.internal.frames - 1;
}
};
_this.fps = 30;
_this.loop = function () {
if (_this.internal.isAnimating) {
_this.advanceAnimation();
}
_this.update();
_this.loopInterval = setTimeout(_this.loop, (1000 / _this.fps) * _this.internal.delay);
};
_this.loopInterval = setTimeout(_this.loop, 0);
_this.lookAt = function (sprite1, sprite2) {
var _local2 = sprite2._x - sprite1._x;
var _local1 = sprite2._y - sprite1._y;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
var _local4 = _local2 / _local3;
var _local5 = _local1 / _local3;
if (Math.abs(_local5) > Math.abs(_local4)) {
if (_local5 < 0) {
_this.setParams({direction:"up"});
} else {
_this.setParams({direction:"down"});
}
} else if (_local4 < 0) {
_this.setParams({direction:"left"});
} else {
_this.setParams({direction:"right"});
}
};
_this.setParams(newSettings);
_this.onUnload = function () {
clearTimeout(_this.loopInterval);
};
return(_this);
}
_this = this;
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
if (_parent == ENEMY_SPRITES) {
SPRITES.attachMovie("shotBlock", _name, nextDepth(SPRITES), {data:data, _x:_x, _y:_y});
_this.removeMovieClip();
}
_global.nextDepth = function (this_mc) {
this_mc = (this_mc ? (this_mc) : _root);
var _local4 = 1;
var _local5 = 1048676 /* 0x100064 */;
for (var _local6 in this_mc) {
var _local2 = this_mc[_local6].getDepth();
if ((_local2 < _local5) && (_local2 >= _local4)) {
_local4 = _local2 + 1;
}
}
return(_local4);
};
var settings = {charset:"charset/shotBlock.png", direction:0, directions:1, frame:0, frames:5, pose:0, columns:1, rows:1, animType:"once", animDirection:1, delay:1, isAnimating:false};
image = newSprite(settings);
image._y = 8;
maxHp = 1;
hp = maxHp;
invince = 0;
invinceTime = 2;
itHurts = function () {
if (invince > 0) {
invince--;
_visible = (!_visible);
} else {
_visible = true;
var _local1 = new flash.geom.Point(_x, _y);
MAP.localToGlobal(_local1);
if (PLAYER_SHOTS.hitTest(_local1.x, _local1.y, true)) {
hp--;
SOUND.play("sound/enemyHurt.mp3");
invince = invinceTime;
}
}
};
xTile = Math.floor(_x / 16);
yTile = Math.floor(_y / 16);
MAP.collision_array[xTile][yTile] = 1;
removeThis = function () {
MAP.collision_array[xTile][yTile] = 0;
_this.removeMovieClip();
};
itDies = function () {
image.setParams({isAnimating:true});
setTimeout(removeThis, 100);
this.onEnterFrame = null;
};
idle = true;
itActivates = function () {
if (_x < ((SCROLLER._x + SCROLLER._width) + 16)) {
idle = false;
}
};
itExpires = function () {
if (_x < SCROLLER._x) {
this.removeMovieClip();
}
};
onEnterFrame = function () {
if (idle) {
itActivates();
} else {
itHurts();
if (hp <= 0) {
itDies();
}
itExpires();
}
};
Symbol 95 MovieClip [hud] Frame 1
update = function () {
var _local1 = (PLAYER.hp * 100) / PLAYER.maxHp;
fill._xscale = _local1;
};
Symbol 96 MovieClip [ending] Frame 1
MUSIC.fadeTo(0, 2);
Symbol 96 MovieClip [ending] Frame 90
stop();
ROOT.attachMovie("titleScreen", "titleScreen", 3);
ROOT.game_mc.removeMovieClip();
Symbol 97 MovieClip [theEnd] Frame 1
_this = this;
itActivates = function () {
if (_x < (SCROLLER._x + SCROLLER._width)) {
_this.onEnterFrame = null;
HUD.attachMovie("ending", "ending", nextDepth(SPRITES));
_this.removeMovieClip();
}
};
onEnterFrame = function () {
itActivates();
};
Symbol 181 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 182 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 183 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 103 MovieClip Frame 5
stop();
Symbol 107 MovieClip Frame 5
stop();
Symbol 111 MovieClip Frame 5
stop();
Symbol 115 MovieClip Frame 5
stop();
Symbol 116 MovieClip Frame 1
stop();
waitTimeout = null;
boltTimeout = null;
showBolt = function () {
SOUND.play("sound/lightning.mp3");
var _local1 = Math.floor(Math.random() * 4) + 3;
gotoAndStop(_local1);
boltTimeout = setTimeout(hideBolt, 133.333333333333);
};
hideBolt = function () {
gotoAndStop (2);
var _local1 = Math.floor((Math.random() * 5) * 1000);
waitTimeout = setTimeout(showBolt, _local1);
};
hideBolt();
onUnload = function () {
clearTimeout(waitTimeout);
clearTimeout(boltTimeout);
};
Symbol 121 MovieClip Frame 300
gotoAndPlay (1);
Symbol 126 MovieClip Frame 200
gotoAndPlay (1);
Symbol 131 MovieClip Frame 101
gotoAndPlay (1);
Symbol 133 MovieClip [levels/level1.lvl] Frame 1
data_txt = "<data><level name=\"levels\\evel1.lvl\" xmlType=\"object\"><sprites xmlType=\"array\"><101 name=\"sprite_98\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1432\" y=\"216\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></101><100 name=\"sprite_88\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2488\" y=\"216\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></100><99 name=\"sprite_97\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2456\" y=\"216\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></99><98 name=\"sprite_96\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2424\" y=\"216\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></98><97 name=\"sprite_95\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2392\" y=\"216\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></97><96 name=\"sprite_61\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2360\" y=\"216\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></96><95 name=\"sprite_59\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2200\" y=\"216\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></95><94 name=\"level2\" type=\"nextLevel\" xmlType=\"object\"><editSprite isAnimating=\"false\" animDirection=\"1\" delay=\"1\" animType=\"loop\" pose=\"0\" rows=\"1\" columns=\"1\" frame=\"0\" frames=\"1\" direction=\"0\" directions=\"1\" charset=\"sprites/scroll/area.swf\" xmlType=\"object\" /><position x=\"2872\" y=\"8\" xmlType=\"object\" /><flags xmlType=\"array\" /><data file=\"levels/level2.lvl\" xmlType=\"object\" /></94><93 name=\"sprite_94\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2616\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></93><92 name=\"sprite_93\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2680\" y=\"56\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></92><91 name=\"sprite_92\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2744\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></91><90 name=\"sprite_91\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2808\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></90><89 name=\"sprite_90\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2872\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></89><88 name=\"sprite_89\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2776\" y=\"184\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></88><87 name=\"sprite_87\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2232\" y=\"216\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></87><86 name=\"sprite_86\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2328\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></86><85 name=\"sprite_85\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2344\" y=\"72\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></85><84 name=\"sprite_84\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2168\" y=\"8\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></84><83 name=\"sprite_83\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2168\" y=\"40\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></83><82 name=\"sprite_82\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1960\" y=\"72\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></82><81 name=\"sprite_81\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1960\" y=\"8\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></81><80 name=\"sprite_80\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1608\" y=\"72\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></80><79 name=\"sprite_79\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1608\" y=\"8\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></79><78 name=\"sprite_78\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1384\" y=\"72\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></78><77 name=\"sprite_77\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1352\" y=\"56\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></77><76 name=\"sprite_76\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1320\" y=\"72\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></76><75 name=\"sprite_75\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1480\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></75><74 name=\"sprite_74\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1384\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></74><73 name=\"sprite_73\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1192\" y=\"200\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></73><72 name=\"sprite_72\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1192\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></72><71 name=\"sprite_71\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1128\" y=\"216\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></71><70 name=\"sprite_70\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1128\" y=\"184\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></70><69 name=\"sprite_69\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1208\" y=\"184\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></69><68 name=\"sprite_68\" type=\"enemy3\" xmlType=\"object\"><editSprite charset=\"charset/enemy3.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"1\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1608\" y=\"104\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></68><67 name=\"sprite_67\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1400\" y=\"136\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></67><66 name=\"sprite_66\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1272\" y=\"104\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></66><65 name=\"sprite_65\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1272\" y=\"136\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></65><64 name=\"sprite_64\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"904\" y=\"72\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></64><63 name=\"sprite_63\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"904\" y=\"8\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></63><62 name=\"sprite_62\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"904\" y=\"40\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></62><61 name=\"sprite_60\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"696\" y=\"40\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></61><60 name=\"sprite_58\" type=\"enemy3\" xmlType=\"object\"><editSprite charset=\"charset/enemy3.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"1\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"456\" y=\"40\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></60><59 name=\"scroll_speed\" type=\"scrollSpeed\" xmlType=\"object\"><editSprite isAnimating=\"false\" animDirection=\"1\" delay=\"1\" animType=\"loop\" pose=\"0\" rows=\"1\" columns=\"1\" frame=\"0\" frames=\"1\" direction=\"0\" directions=\"1\" charset=\"sprites/scroll/area.swf\" xmlType=\"object\" /><position x=\"8\" y=\"40\" xmlType=\"object\" /><flags xmlType=\"array\" /><data speed=\"1.5\" xmlType=\"object\" /></59><58 name=\"sprite_56\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2504\" y=\"72\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></58><57 name=\"sprite_55\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2536\" y=\"8\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></57><56 name=\"sprite_54\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2472\" y=\"72\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></56><55 name=\"sprite_53\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2488\" y=\"72\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></55><54 name=\"sprite_52\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2472\" y=\"216\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></54><53 name=\"sprite_51\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2472\" y=\"184\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></53><52 name=\"sprite_50\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2472\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></52><51 name=\"sprite_49\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2456\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></51><50 name=\"sprite_48\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2440\" y=\"184\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></50><49 name=\"sprite_47\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2424\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></49><48 name=\"sprite_46\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2376\" y=\"184\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></48><47 name=\"sprite_45\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2408\" y=\"184\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></47><46 name=\"sprite_44\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2392\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></46><45 name=\"sprite_43\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2360\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></45><44 name=\"sprite_42\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2248\" y=\"216\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></44><43 name=\"sprite_41\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2312\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></43><42 name=\"sprite_40\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2296\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></42><41 name=\"sprite_39\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2280\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></41><40 name=\"sprite_38\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2264\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></40><39 name=\"sprite_37\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2248\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></39><38 name=\"sprite_36\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2232\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></38><37 name=\"sprite_35\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2216\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></37><36 name=\"sprite_34\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2200\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></36><35 name=\"sprite_33\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2184\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></35><34 name=\"sprite_32\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2168\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></34><33 name=\"sprite_31\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2088\" y=\"104\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></33><32 name=\"sprite_30\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2088\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></32><31 name=\"sprite_29\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"2088\" y=\"136\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></31><30 name=\"sprite_28\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1976\" y=\"184\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></30><29 name=\"sprite_27\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1976\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></29><28 name=\"sprite_26\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1960\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></28><27 name=\"sprite_25\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1960\" y=\"184\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></27><26 name=\"sprite_24\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1976\" y=\"136\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></26><25 name=\"sprite_23\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1976\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></25><24 name=\"sprite_22\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1976\" y=\"104\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></24><23 name=\"sprite_21\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1960\" y=\"104\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></23><22 name=\"sprite_20\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1960\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></22><21 name=\"sprite_19\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1960\" y=\"136\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></21><20 name=\"sprite_18\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1928\" y=\"216\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></20><19 name=\"sprite_17\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1688\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></19><18 name=\"sprite_16\" type=\"shot";
data_txt = data_txt + "Block\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1672\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></18><17 name=\"sprite_15\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1656\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></17><16 name=\"sprite_14\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1640\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></16><15 name=\"sprite_13\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1624\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></15><14 name=\"sprite_12\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1576\" y=\"200\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></14><13 name=\"sprite_11\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1576\" y=\"184\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></13><12 name=\"sprite_10\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1592\" y=\"184\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></12><11 name=\"sprite_9\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1592\" y=\"200\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></11><10 name=\"sprite_8\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1544\" y=\"200\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></10><9 name=\"sprite_7\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1544\" y=\"216\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></9><8 name=\"sprite_6\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1528\" y=\"216\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></8><7 name=\"sprite_5\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1528\" y=\"200\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></7><6 name=\"sprite_4\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1512\" y=\"200\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></6><5 name=\"sprite_3\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1512\" y=\"216\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></5><4 name=\"sprite_2\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1496\" y=\"216\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></4><3 name=\"sprite_1\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1496\" y=\"200\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></3><2 name=\"sprite_0\" type=\"shotBlock\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"5\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1400\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></2><1 name=\"music\" type=\"changeMusic\" xmlType=\"object\"><editSprite isAnimating=\"false\" animDirection=\"1\" delay=\"1\" animType=\"loop\" pose=\"0\" rows=\"1\" columns=\"1\" frame=\"0\" frames=\"1\" direction=\"0\" directions=\"1\" charset=\"sprites/scroll/area.swf\" xmlType=\"object\" /><position x=\"8\" y=\"24\" xmlType=\"object\" /><flags xmlType=\"array\" /><data file=\"music/title.mp3\" xmlType=\"object\" /></1><0 name=\"background\" type=\"changeBackground\" xmlType=\"object\"><editSprite isAnimating=\"false\" animDirection=\"1\" delay=\"1\" animType=\"loop\" pose=\"0\" rows=\"1\" columns=\"1\" frame=\"0\" frames=\"1\" direction=\"0\" directions=\"1\" charset=\"sprites/scroll/area.swf\" xmlType=\"object\" /><position x=\"8\" y=\"8\" xmlType=\"object\" /><flags xmlType=\"array\" /><data file=\"swf/clouds.swf\" xmlType=\"object\" /></0></sprites><map format=\"2\" width=\"180\" height=\"15\" chipset=\"chipset/shooter1.png\" collision=\"_000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000001111000000001111111000001111111111000001111111111000001111111111000001111111111000001111111111000001111111111000001111111111000001111111111000000000000001000000000000001000000000000001000000000000001000000000000001000001111100001000001000100001000001000100001000001000100001000001000100001000001000100001000001000100001001001000100001001001000100001000001000100001100011000101111100011000101111000001000101111010101000100001010101000100001000001000111101000001000000001000001000100001000001000100001000001000100001000001000100001000001000100001000001000100001011111000100001000000000100001011111110100001000001000100001000001000100001000001000100001000001000110101000001000100001000001000101011100001000100001110001000110101111001010100001111001010101011111001010100001111001010100001111001010100001111001010101101111001010100001111001010101111111001000100001111001100101101111001100100001111001100111101111001100100001111001110101111111001100100001000001100101111011101100100001011101101101101011101000100001011101000100001011101000100001011101000100001011101000111001011101000111001011101000111001011101000111001000001000100001000001000110011000001010110011000001010100001111101110101111111101110101111111101110101111111101110101111000001000101111000001000100001000001000111101000001001100001000001000100101000001000100101000001010100101000001010100101000001110100101000000000100101010101111100001010101000000001010101000100001010101000100001010101000100001010101000111101010101000100001010101000100101000001000100101000001000100101010101000100101010101000100101010101000100101010101000100101010101000100101010101000100101010101000100101010101000100101000001000100101000001000100101010101101100101010101101110101010101101110101010101101110101010101101110101010101101110001010101101110101010101101110101000001101110101000001101100101010101000100101010101110100101010101010100101010101010100101010101000100101010101011100101010101000100101010101110100101010001010100101010101010100101000101000100001111101010111011000001010111011011111010111011000000011111011111111000111011000001011111011000001010111011000001000100001000001110110111000001010110111000001010110111000001010110111000001010110111000001000110111000001000110111000001000100001000001000100001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001000000000000001\" xmlType=\"object\"><layers xmlType=\"array\"><2 value=\"_7676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676763l7676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676764676767676767676767676767676764776767676767676767676767676764776767676767676767676767676764876767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676467646764676767676767676767676477647764776767676767676767676477647764776767676767676767676477647764776767676767676767676477647764776767676767676767676477647764776767676767676767676477647764776767676767676767676487648764876767676767676767676767676767676767676767676767676767676767676767676767676767676467646764676767676767676767676477647764776767676767676767676477647764776767676767676767676477647764776767676767676767676477647764776767676767676767676477647764776767676767676767676477647764776767676767676767676487648764876767676767676767676767676767676767676767676767676767676767676767676767676767676467646764676767676767676767676477647764776767676767676767676477647764776767676767676767676477647764776767676767676767676477647764776767676767676767676477647764776767676767676767676477647764776767676767676767676487648764876767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676467676767676767676767676767676477676767676767676767676767676477676762l3f3f3f49767676767676477676767676767676767676767676477676767676767676767676767676477676767676767676767676767676487676767676767676767676767676767676767676767676767676767646767676767676767676767676767647767676767676767676767676767647767676767676767676767676767647767676767676767676767676767647767676767676767676767676767647767676767676767676767676767648767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676\" xmlType=\"variable\" /><1 value=\"_767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676\" xmlType=\"variable\" /><0 value=\"_00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z0000000000000000000000010v0v0c0000000000000000010v0v0c0w0w0w0000000000010v0v0c0w0w0w0w0w0w00000000050z0w0w0w0w0w0w0w0w0w00000000050z0w0w0w0w0w0w0w0w0w00000000050z0w0w0w0w0w0w0w0w0w00000000050z0w0w0w0w0w0w0w0w0w00000000050z0w0w0w0w0w0w0w0w0w00000000050z0w0w0w0w0w0w0w0w0w0000000000030x0x0x0x0x0x0x0x0d00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000000000000000000000050z00000000002n3k3k3k3h000000050z00000000002q0000002q000000050z00000000002q0000002q000000050z00000000002q0000002q000000050z00000000002q0000002q000000050z00000000002q0000002q000000050z00000000002q0000002q000000050z00001v00002q0000002q000000050z00001w00002q0000002q000000050z00000000002q0000002q000000050z1v0000001v2q0000002q00010v0v0c1w0000001w2q0000002q050z0w0w0w00000000002q0000002q00030x0x0d001v001v002q0000002q000000050z001w001w002q0000002q000000050z00000000002q0000002o3j3j3n050z00000000002q00000000000000050z00000000002q0000004g000000050z00000000002q0000002q000000050z00000000002q0000002q000000050z00000000002q0000002q000000050z00000000002q0000002q000000050z00000000002q0000002q000000050z002t3k3k3k3i0000002q000000050z0000000000000000002q000000050z002t3k3k3k2s3k3n002q000000050z00000000002q0000002q000000050z00000000002q0000002q000000050z00000000002q0000002q000000050z00000000002q0000002q1x001x050z00000000002q0000002q000000050z00000000002q0000002q001x001x0z1p000000002q0000002q000000050z161p0000002q0000002q1x001x050z0w161p00002q764d762q000000050z0w0w1q00002q762p762q001x001x0z0w0w1q00002q762p762q000000050z0w0w1q00002q762p762q000000050z0w0w1q00002q762p762q000000050z0w0w1q00002q762p762q001x1x050z0w0w1q00002q762p762q000000050z0w0w1q00002q764d762q001x1x1x0z0w0w1q00002q7676762q000000050z0w0w1q00002q4d76762q001x1x050z0w0w1q00002q2p76762q000000050z0w0w1q00002q2p76762q1x1x1x050z0w0w1q00002q2p76762q000000050z0w0w1q00002q4d3n762q001x1x1x0z0x0x1r00002q2p76762q000000050z00000000002q2p76762q001x1x1x0z00010v1p002q2p76762q000000050z00020w1q002q4d762t2q001x1x050z00020w1q002q7676762q000000050z00020w1q002q7676762q000000000200020w1q002q7676762q000000000200020w1q002q7676762q000000000200020w1q002q7676762q1x1x00000200020w1q002q7676762q1x1x00000200020w1q002q7676762q1x1x00000200030x1r002q7676762q1x1x00000200000000002q7676762q767676760200000000002q7676762q1x00001x0200000000002q764g762q1x00001x0200000000002q762q762q76767676022k2k2k2k002k2k2k762q001x1x1x022k2k2k2k002k2k2k002q001x1x1x022k2k2k2k002k2k2k002q001x1x1x022k2k2k2k002k2k2k002q001x1x1x0200000000002q0000002q001x1x1x0200000000002q0000002q000000000200000000002q0000003m3k3k3n000200000000002q00002t3l000000000200000000002q0000002q00001v000200000000002q0000002q00001w000200000000002q004g002q00001v000200000000002q002q002q00001w000200000000002o3k3i002q00001v00020000000000000000002q00001w0002002k002k002n3k3k3k3i0000000002002k002k002q000000000000000002002k002k002q0000004g0000000002002k002k002q0000002q0000000002002k002k002q0000002q0000000002002k002k002q0000003m3j3j4d0002002k002k002q0000002q0000000002002k002k002q0000002q00001v000200000000002q0000002q00001w000200000000002q0000002q00001v0002002k002k002q0000002q00001w0002002k002k002q0000002q00001v0002002k002k002q0000002q00001w0002002k002k002q0000002q00001v0002002k002k002q0000002q00001w0002002k002k002q0000002q00001v0002002k002k002q0000002q00001w0002002k002k002q0000002q00001v000200000000002q0000002q00001w000200000000002q0000002q00001v0002002k002k003m3h002n3l00001w0002002k002k002q2p002p3m3h001v0002002k002k002q2p002p2q2p001w0002002k002k002q2p002p2q2p001v0002002k002k002q2p002p2q2p001w0002002k002k002q2p002p2q2p00000002002k002k002q2p002p2q2p001v0002002k002k002q2p002p2q2p001w000200000000002q2p002p3m3i001v000200000000003m3i002o3l00001w0002002k002k002q0000002q00001v0002002k002k003m3k3h002q00001w0002002k002k002q002q002q00001v0002002k002k002q004h002q00001w0002002k002k002q0000002q00001v0002002k002k002q002t3k3l00001w0002002k002k002q0000002q00001v0002002k002k003m3k3h002q00001w0002002k0000002q002q002q00001v0002002k002k002q004h002q00001w00020000002k002q0000002q00000000022k2k2k2k002q004g002q1v1v001v0200000000002q002q002q1w1w001w02002k2k2k2k2q002q002q1v1v001v02000000000000002o3k3l1w1w001w022k2k2k2k2k2q0000002q1v1v001v0200000000002q002n3k3l1w1w001w0200000000002q004h002q1x1x001x0200000000002q0000002q000000000200000000003m3k3h002q1x001x1x0200000000002q002q002q1v001v1v0200000000002q002q002q1w001w1w0200000000002q002q002q1v001v1v0200000000002q004h002q1w001w1w0200000000002q0000002q1v001v1v0200000000002q0000002q1w001w1w0200000000002q0000002q000000000200000000004h0000004h0000000002000000000000000000000000000002000000000000000000000000000002000000000000000000000000000002000000000000000000000000000002000000000000000000000000000002000000000000000000000000000002000000000000000000000000000002\" xmlType=\"variable\" /></layers></map></level></data>";
data = new XML(data_txt);
onLoad(data);
Symbol 134 MovieClip [levels/level2.lvl] Frame 1
data_txt = "<data><level name=\"levels\\evel2.lvl\" xmlType=\"object\"><sprites xmlType=\"array\"><22 name=\"sprite_0\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2104\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></22><21 name=\"level3\" type=\"nextLevel\" xmlType=\"object\"><editSprite isAnimating=\"false\" animDirection=\"1\" delay=\"1\" animType=\"loop\" pose=\"0\" rows=\"1\" columns=\"1\" frame=\"0\" frames=\"1\" direction=\"0\" directions=\"1\" charset=\"sprites/scroll/area.swf\" xmlType=\"object\" /><position x=\"2872\" y=\"8\" xmlType=\"object\" /><flags xmlType=\"array\" /><data file=\"levels/level3.lvl\" xmlType=\"object\" /></21><20 name=\"sprite_16\" type=\"enemy3\" xmlType=\"object\"><editSprite charset=\"charset/enemy3.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"1\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2552\" y=\"184\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></20><19 name=\"sprite_15\" type=\"enemy3\" xmlType=\"object\"><editSprite charset=\"charset/enemy3.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"1\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2488\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></19><18 name=\"sprite_14\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2392\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></18><17 name=\"sprite_13\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2360\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></17><16 name=\"sprite_12\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2200\" y=\"184\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></16><15 name=\"sprite_11\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1336\" y=\"88\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></15><14 name=\"sprite_10\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1096\" y=\"184\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></14><13 name=\"sprite_9\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"408\" y=\"184\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></13><12 name=\"sprite_8\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"408\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></12><11 name=\"sprite_7\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"376\" y=\"184\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></11><10 name=\"sprite_6\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"376\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></10><9 name=\"sprite_5\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"344\" y=\"184\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></9><8 name=\"sprite_4\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"344\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></8><7 name=\"sprite_3\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"472\" y=\"104\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></7><6 name=\"slow_speed\" type=\"scrollSpeed\" xmlType=\"object\"><editSprite isAnimating=\"false\" animDirection=\"1\" delay=\"1\" animType=\"loop\" pose=\"0\" rows=\"1\" columns=\"1\" frame=\"0\" frames=\"1\" direction=\"0\" directions=\"1\" charset=\"sprites/scroll/area.swf\" xmlType=\"object\" /><position x=\"8\" y=\"40\" xmlType=\"object\" /><flags xmlType=\"array\" /><data speed=\"1\" xmlType=\"object\" /></6><5 name=\"music_level\" type=\"changeMusic\" xmlType=\"object\"><editSprite isAnimating=\"false\" animDirection=\"1\" delay=\"1\" animType=\"loop\" pose=\"0\" rows=\"1\" columns=\"1\" frame=\"0\" frames=\"1\" direction=\"0\" directions=\"1\" charset=\"sprites/scroll/area.swf\" xmlType=\"object\" /><position x=\"616\" y=\"24\" xmlType=\"object\" /><flags xmlType=\"array\" /><data file=\"music/level.mp3\" xmlType=\"object\" /></5><4 name=\"music_title\" type=\"changeMusic\" xmlType=\"object\"><editSprite isAnimating=\"false\" animDirection=\"1\" delay=\"1\" animType=\"loop\" pose=\"0\" rows=\"1\" columns=\"1\" frame=\"0\" frames=\"1\" direction=\"0\" directions=\"1\" charset=\"sprites/scroll/area.swf\" xmlType=\"object\" /><position x=\"8\" y=\"24\" xmlType=\"object\" /><flags xmlType=\"array\" /><data file=\"music/title.mp3\" xmlType=\"object\" /></4><3 name=\"fast_speed\" type=\"scrollSpeed\" xmlType=\"object\"><editSprite isAnimating=\"false\" animDirection=\"1\" delay=\"1\" animType=\"loop\" pose=\"0\" rows=\"1\" columns=\"1\" frame=\"0\" frames=\"1\" direction=\"0\" directions=\"1\" charset=\"sprites/scroll/area.swf\" xmlType=\"object\" /><position x=\"616\" y=\"40\" xmlType=\"object\" /><flags xmlType=\"array\" /><data speed=\"5\" xmlType=\"object\" /></3><2 name=\"warp\" type=\"changeBackground\" xmlType=\"object\"><editSprite isAnimating=\"false\" animDirection=\"1\" delay=\"1\" animType=\"loop\" pose=\"0\" rows=\"1\" columns=\"1\" frame=\"0\" frames=\"1\" direction=\"0\" directions=\"1\" charset=\"sprites/scroll/area.swf\" xmlType=\"object\" /><position x=\"616\" y=\"8\" xmlType=\"object\" /><flags xmlType=\"array\" /><data file=\"swf/warp.swf\" xmlType=\"object\" /></2><1 name=\"stars\" type=\"changeBackground\" xmlType=\"object\"><editSprite isAnimating=\"false\" animDirection=\"1\" delay=\"1\" animType=\"loop\" pose=\"0\" rows=\"1\" columns=\"1\" frame=\"0\" frames=\"1\" direction=\"0\" directions=\"1\" charset=\"sprites/scroll/area.swf\" xmlType=\"object\" /><position x=\"8\" y=\"8\" xmlType=\"object\" /><flags xmlType=\"array\" /><data file=\"swf/stars.swf\" xmlType=\"object\" /></1><0 name=\"enemy3\" type=\"enemy3\" xmlType=\"object\"><editSprite charset=\"charset/enemy3.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"1\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"600\" y=\"104\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></0></sprites><map format=\"2\" width=\"180\" height=\"15\" chipset=\"chipset/shooter1.png\" collision=\"_000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000011100000000000111100000000001111100000000011111100000000111111100000000111111100000000111111100000000000011100000000111011100000000111011100000000111011100000000111011100001000111011100001000111011100011000111011100111100000000000111110000000000111111000000000111111100000000111111100000000111111110000000111111110000000111111110000000111111110000000111111110000000111111110000000111111110000000111111110000000111111110000000111111110000000111111110000000111111110000000111111110000000111111110000000111111110001111111111110001111111111110001111111111110001111111111110000000111111110000000111111110000000111111111111100111111111111100111111111111100111111111111100111111110000000111111110000111111111110000111111111110000111111111110000111111111110000000111111110000000111111110000000111111110000000111111111111100111111111111100111111111111100111111111111100111111110000000111111110000011111111110000011111111110000011111111110000000111111110001110111111110001110111111110001110111111110001110111111110001110111111110001110111111110001110111111110001110111111110001110111111110111110111111110111110111111110111110111111110000000111111110000000111111110000000111111111110000111111111110000111111111110001111111111100011111111111100111111111111001111111111111001111111111110001111111111110001111111111110001111111111110001111111111110001111111111110001111111111110001111111111110001111111111110001111111111110000111111111110000011111111111100001111111111111000111111111111110111111111111110111111111111110111111111111110111111111111110111111111111110111111111111110111111111111110111111111110000111111111110111111111111110111111111111110111111111111110000111111111111110111111111111110111111111111110111111111100000111111111100001111111111100001111111111100001111111111100000111111111100110111111111101110111111111101110111111111101110111111111101110111111111101110111111111100000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111011111111000111011111111000111011111111000111011111111000111011111111000111011111111000111011111111000111\" xmlType=\"object\"><layers xmlType=\"array\"><0 value=\"_0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011p000000000000000000000000010c1q0000000000000000000000010c0w1q00000000000000000000010c0w0w1q000000000000000000010c0w0w0w1q0000000000000000010c0w0w0w0w1q0000000000000000020w0w0w0w0w1q0000000000000000030x0x0x0d0w1q000000000000000000000000020w1q0000000000000000010v1p00020w1q0000000000000000020w1q00020w1q0000000000000000020w1q00020w1q0000000000000000020w1q00020w1q0000000001000000020w1q00020w1q0000000002000000020w1q00020w1q000000010c000000030x1r00030x1r0000010c0w1p0000000000000000000000020w0w161p00000000000000000000020w0w0w161p000000000000000000020w0w0w0w161p0000000000000000020w0w0w0w0w1q0000000000000000020w0w0w0w0w161p00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q000000010v0v0v0c0w0w0w0w0w0w1q0000050z0w0w0w0w0w0w0w0w0w0w1q0000050z0w0w0w0w0w0w0w0w0w0w1q000000030x0x0x0d0w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w160v0v0v0v1p0000020w0w0w0w0w0w0w0w0w0w0w1q0000020w0w0w0w0w0w0w0w0w0w0w1q0000020w0w0w0w0w0w170x0x0x0x1r0000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000010v0v0c0w0w0w0w0w0w1q000000050z0w0w0w0w0w0w0w0w0w1q000000050z0w0w0w0w0w0w0w0w0w1q00000000030x0x0d0w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w160v0v0v0v1p0000020w0w0w0w0w0w0w0w0w0w0w1q0000020w0w0w0w0w0w0w0w0w0w0w1q0000020w0w0w0w0w0w170x0x0x0x1r0000020w0w0w0w0w0w1q00000000000000020w0w0w0w0w0w1q0000000000010v0c0w0w0w0w0w0w1q0000000000020w0w0w0w0w0w0w0w1q0000000000030x0d0w0w0w0w0w0w1q000000000000050z0w0w0w0w0w0w1q000000010v1p050z0w0w0w0w0w0w1q000000020w1q050z0w0w0w0w0w0w1q000000020w1q050z0w0w0w0w0w0w1q000000020w1q050z0w0w0w0w0w0w1q000000020w1q050z0w0w0w0w0w0w1q000000020w1q050z0w0w0w0w0w0w1q000000020w1q050z0w0w0w0w0w0w1q000000020w1q050z0w0w0w0w0w0w1q000000020w1q050z0w0w0w0w0w0w1q00010v0c0w1q050z0w0w0w0w0w0w1q00020w0w0w1q050z0w0w0w0w0w0w1q00030x0x0x1r050z0w0w0w0w0w0w1q000000000000050z0w0w0w0w0w0w1q000000000000050z0w0w0w0w0w0w1q000000000000050z0w0w0w0w0w0w160v0v1p000000050z0w0w0w0w0w0w0w0w0w1q000000050z0w0w0w0w0w0w0w0w171r000000010c0w0w0w0w0w0w0w0w1q000000010c0w0w0w0w0w0w0w0w171r0000010c0w0w0w0w0w0w0w0w0w1q0000010c0w0w0w0w0w0w0w0w0w171r00050z0w0w0w0w0w0w0w0w0w0w1q0000050z0w0w0w0w0w0w0w0w0w0w1q0000050z0w0w0w0w0w0w0w0w0w0w1q0000050z0w0w0w0w0w0w0w0w0w0w1q0000050z0w0w0w0w0w0w0w0w0w0w1q0000050z0w0w0w0w0w0w0w0w0w0w1q0000050z0w0w0w0w0w0w0w0w0w0w1q0000050z0w0w0w0w0w0w0w0w0w0w1q0000050z0w0w0w0w0w0w0w0w0w0w1q000000030d0w0w0w0w0w0w0w0w0w1q00000000030d0w0w0w0w0w0w0w0w1q0000000000030d0w0w0w0w0w0w0w160v1p00000000030d0w0w0w0w0w0w0w0w160v1p000000020w0w0w0w0w0w0w0w0w0w160v1p00020w0w0w0w0w0w0w0w0w0w0w0w1q00020w0w0w0w0w0w0w0w0w0w0w0w1q00020w0w0w0w0w0w0w0w0w0w0w0w1q00020w0w0w0w0w0w0w0w0w0w0w0w1q00020w0w0w0w0w0w0w0w0w0w0w0w1q00020w0w0w0w0w0w0w0w0w0w0w0w1q00020w0w0w0w0w0w0w0w0w170x0x1r00020w0w0w0w0w0w0w0w0w1q00000000020w0w0w0w0w0w0w0w0w1q00010v0v0c0w0w0w0w0w0w0w0w0w1q050z0w0w0w0w0w0w0w0w0w0w0w0w1q00030x0x0d0w0w0w0w0w0w0w0w0w1q00000000020w0w0w0w0w0w0w0w0w160v0v1p00020w0w0w0w0w0w0w0w0w0w0w0w1q00020w0w0w0w0w0w0w0w170x0x0x1r00020w0w0w0w0w0w0w0w1q0000000000020w0w0w0w0w0w0w0w1q00000000010c0w0w0w0w0w0w0w0w1q00000000020w0w0w0w0w0w0w0w0w1q00000000030d0w0w0w0w0w0w0w0w1q0000000000020w0w0w0w0w0w0w0w1q0000011p00020w0w0w0w0w0w0w0w1q00010c1q00020w0w0w0w0w0w0w0w1q00020w1q00020w0w0w0w0w0w0w0w1q00020w1q00020w0w0w0w0w0w0w0w1q00020w1q00020w0w0w0w0w0w0w0w1q00020x1r00020w0w0w0w0w0w0w0w1q0000000000020w0w0w0w0w0w0w0w160v1p000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w\" xmlType=\"variable\" /></layers></map></level></data>";
data = new XML(data_txt);
onLoad(data);
Symbol 135 MovieClip [levels/level3.lvl] Frame 1
data_txt = "<data><level name=\"levels\\evel3.lvl\" xmlType=\"object\"><sprites xmlType=\"array\"><46 name=\"theEnd\" type=\"theEnd\" xmlType=\"object\"><editSprite direction=\"0\" directions=\"1\" frame=\"0\" frames=\"1\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"4\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2872\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></46><45 name=\"sprite_43\" type=\"changeMusic\" xmlType=\"object\"><editSprite direction=\"0\" directions=\"1\" frame=\"0\" frames=\"1\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"4\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"8\" y=\"40\" xmlType=\"object\" /><flags xmlType=\"array\" /><data file=\"music/level.mp3\" xmlType=\"object\" /></45><44 name=\"sprite_42\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2648\" y=\"232\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></44><43 name=\"sprite_41\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2648\" y=\"200\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></43><42 name=\"sprite_40\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2648\" y=\"168\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></42><41 name=\"sprite_39\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2648\" y=\"136\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></41><40 name=\"sprite_38\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2648\" y=\"104\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></40><39 name=\"sprite_37\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2648\" y=\"72\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></39><38 name=\"sprite_36\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2648\" y=\"40\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></38><37 name=\"sprite_35\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2648\" y=\"8\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></37><36 name=\"sprite_34\" type=\"enemy3\" xmlType=\"object\"><editSprite charset=\"charset/enemy3.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"1\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2520\" y=\"200\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></36><35 name=\"sprite_33\" type=\"enemy3\" xmlType=\"object\"><editSprite charset=\"charset/enemy3.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"1\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2552\" y=\"72\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></35><34 name=\"sprite_32\" type=\"enemy3\" xmlType=\"object\"><editSprite charset=\"charset/enemy3.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"1\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2392\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></34><33 name=\"sprite_31\" type=\"enemy3\" xmlType=\"object\"><editSprite charset=\"charset/enemy3.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"1\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2296\" y=\"232\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></33><32 name=\"sprite_30\" type=\"enemy3\" xmlType=\"object\"><editSprite charset=\"charset/enemy3.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"1\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2184\" y=\"136\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></32><31 name=\"sprite_29\" type=\"enemy3\" xmlType=\"object\"><editSprite charset=\"charset/enemy3.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"1\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"2280\" y=\"8\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></31><30 name=\"sprite_28\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1880\" y=\"136\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></30><29 name=\"sprite_27\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1880\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></29><28 name=\"sprite_26\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1880\" y=\"104\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></28><27 name=\"sprite_25\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1816\" y=\"136\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></27><26 name=\"sprite_24\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1816\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></26><25 name=\"sprite_23\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1816\" y=\"104\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></25><24 name=\"sprite_22\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1752\" y=\"136\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></24><23 name=\"sprite_21\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1752\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></23><22 name=\"sprite_20\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1752\" y=\"104\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></22><21 name=\"sprite_19\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1688\" y=\"136\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></21><20 name=\"sprite_18\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1688\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></20><19 name=\"sprite_17\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1688\" y=\"104\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></19><18 name=\"sprite_16\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1624\" y=\"136\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></18><17 name=\"sprite_15\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1624\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></17><16 name=\"sprite_14\" type=\"shotBlock2\" xmlType=\"object\"><editSprite charset=\"charset/shotBlock2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"7\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"once\" animDirection=\"1\" delay=\"1\" isAnimating=\"false\" xmlType=\"object\" /><position x=\"1624\" y=\"104\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></16><15 name=\"sprite_13\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1304\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></15><14 name=\"sprite_12\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1336\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></14><13 name=\"sprite_11\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1208\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></13><12 name=\"sprite_10\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1176\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></12><11 name=\"sprite_9\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1048\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></11><10 name=\"sprite_8\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"1080\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></10><9 name=\"sprite_7\" type=\"enemy2\" xmlType=\"object\"><editSprite charset=\"charset/enemy2.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"344\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></9><8 name=\"sprite_6\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"760\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></8><7 name=\"sprite_5\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"712\" y=\"136\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></7><6 name=\"sprite_4\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"712\" y=\"104\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></6><5 name=\"sprite_3\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"664\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></5><4 name=\"sprite_2\" type=\"enemy3\" xmlType=\"object\"><editSprite charset=\"charset/enemy3.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"1\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"616\" y=\"136\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></4><3 name=\"sprite_1\" type=\"enemy3\" xmlType=\"object\"><editSprite charset=\"charset/enemy3.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"1\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"616\" y=\"104\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></3><2 name=\"sprite_0\" type=\"enemy1\" xmlType=\"object\"><editSprite charset=\"charset/enemy1.png\" direction=\"0\" directions=\"1\" frame=\"0\" frames=\"8\" pose=\"0\" columns=\"1\" rows=\"1\" animType=\"loop\" animDirection=\"1\" delay=\"1\" isAnimating=\"true\" xmlType=\"object\" /><position x=\"312\" y=\"120\" xmlType=\"object\" /><flags xmlType=\"array\" /><data xmlType=\"object\" /></2><1 name=\"bg_warp\" type=\"changeBackground\" xmlType=\"object\"><editSprite isAnimating=\"false\" animDirection=\"1\" delay=\"1\" animType=\"loop\" pose=\"0\" rows=\"1\" columns=\"1\" frame=\"0\" frames=\"1\" direction=\"0\" directions=\"1\" charset=\"sprites/scroll/area.swf\" xmlType=\"object\" /><position x=\"8\" y=\"24\" xmlType=\"object\" /><flags xmlType=\"array\" /><data file=\"swf/warp.swf\" xmlType=\"object\" /></1><0 name=\"scroll_fast\" type=\"scrollSpeed\" xmlType=\"object\"><editSprite isAnimating=\"false\" animDirection=\"1\" delay=\"1\" animType=\"loop\" pose=\"0\" rows=\"1\" columns=\"1\" frame=\"0\" frames=\"1\" direction=\"0\" directions=\"1\" charset=\"sprites/scroll/area.swf\" xmlType=\"object\" /><position x=\"8\" y=\"8\" xmlType=\"object\" /><flags xmlType=\"array\" /><data speed=\"5\" xmlType=\"object\" /></0></sprites><map format=\"2\" width=\"180\" height=\"15\" chipset=\"chipset/shooter1.png\" collision=\"_111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111111000111111111100000000011110000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\" xmlType=\"object\"><layers xmlType=\"array\"><0 value=\"_0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w0w0w1q000000020w0w0w0w0w0w0w0w170x1r000000030x0x0x0d0w0w170x1r000000000000000000030d0x1r00000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\" xmlType=\"variable\" /></layers></map></level></data>";
data = new XML(data_txt);
onLoad(data);
Symbol 149 MovieClip Frame 900
gotoAndPlay (1);
Symbol 153 MovieClip Frame 600
gotoAndPlay (1);
Symbol 157 MovieClip Frame 300
gotoAndPlay (1);
Symbol 164 MovieClip Frame 90
gotoAndPlay (1);
Symbol 168 MovieClip Frame 60
gotoAndPlay (1);
Symbol 172 MovieClip Frame 30
gotoAndPlay (1);
Symbol 180 MovieClip Frame 1
stop();