Section 1
//beam_1_96 (game_fla.beam_1_96)
package game_fla {
import flash.display.*;
public dynamic class beam_1_96 extends MovieClip {
public function beam_1_96(){
addFrameScript(4, frame5);
}
function frame5(){
trace("goto", ((parent as MovieClip).currentFrame + 1));
(parent as MovieClip).gotoAndStop(((parent as MovieClip).currentFrame + 1));
}
}
}//package game_fla
Section 2
//beam_10_116 (game_fla.beam_10_116)
package game_fla {
import flash.display.*;
public dynamic class beam_10_116 extends MovieClip {
public function beam_10_116(){
addFrameScript(4, frame5);
}
function frame5(){
(parent as MovieClip).gotoAndStop(((parent as MovieClip).currentFrame + 1));
}
}
}//package game_fla
Section 3
//beam_2_100 (game_fla.beam_2_100)
package game_fla {
import flash.display.*;
public dynamic class beam_2_100 extends MovieClip {
public function beam_2_100(){
addFrameScript(4, frame5);
}
function frame5(){
(parent as MovieClip).gotoAndStop(((parent as MovieClip).currentFrame + 1));
}
}
}//package game_fla
Section 4
//beam_3_102 (game_fla.beam_3_102)
package game_fla {
import flash.display.*;
public dynamic class beam_3_102 extends MovieClip {
public function beam_3_102(){
addFrameScript(4, frame5);
}
function frame5(){
(parent as MovieClip).gotoAndStop(((parent as MovieClip).currentFrame + 1));
}
}
}//package game_fla
Section 5
//beam_4_104 (game_fla.beam_4_104)
package game_fla {
import flash.display.*;
public dynamic class beam_4_104 extends MovieClip {
public function beam_4_104(){
addFrameScript(4, frame5);
}
function frame5(){
(parent as MovieClip).gotoAndStop(((parent as MovieClip).currentFrame + 1));
}
}
}//package game_fla
Section 6
//beam_5_106 (game_fla.beam_5_106)
package game_fla {
import flash.display.*;
public dynamic class beam_5_106 extends MovieClip {
public function beam_5_106(){
addFrameScript(4, frame5);
}
function frame5(){
(parent as MovieClip).gotoAndStop(((parent as MovieClip).currentFrame + 1));
}
}
}//package game_fla
Section 7
//beam_6_108 (game_fla.beam_6_108)
package game_fla {
import flash.display.*;
public dynamic class beam_6_108 extends MovieClip {
public function beam_6_108(){
addFrameScript(4, frame5);
}
function frame5(){
(parent as MovieClip).gotoAndStop(((parent as MovieClip).currentFrame + 1));
}
}
}//package game_fla
Section 8
//beam_7_110 (game_fla.beam_7_110)
package game_fla {
import flash.display.*;
public dynamic class beam_7_110 extends MovieClip {
public function beam_7_110(){
addFrameScript(4, frame5);
}
function frame5(){
(parent as MovieClip).gotoAndStop(((parent as MovieClip).currentFrame + 1));
}
}
}//package game_fla
Section 9
//beam_8_112 (game_fla.beam_8_112)
package game_fla {
import flash.display.*;
public dynamic class beam_8_112 extends MovieClip {
public function beam_8_112(){
addFrameScript(4, frame5);
}
function frame5(){
(parent as MovieClip).gotoAndStop(((parent as MovieClip).currentFrame + 1));
}
}
}//package game_fla
Section 10
//beam_9_114 (game_fla.beam_9_114)
package game_fla {
import flash.display.*;
public dynamic class beam_9_114 extends MovieClip {
public function beam_9_114(){
addFrameScript(4, frame5);
}
function frame5(){
(parent as MovieClip).gotoAndStop(((parent as MovieClip).currentFrame + 1));
}
}
}//package game_fla
Section 11
//beam_all_95 (game_fla.beam_all_95)
package game_fla {
import flash.display.*;
public dynamic class beam_all_95 extends MovieClip {
public var up:MovieClip;
}
}//package game_fla
Section 12
//digits_123 (game_fla.digits_123)
package game_fla {
import flash.display.*;
public dynamic class digits_123 extends MovieClip {
public function digits_123(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package game_fla
Section 13
//FXnew_97 (game_fla.FXnew_97)
package game_fla {
import flash.display.*;
public dynamic class FXnew_97 extends MovieClip {
public var old:MovieClip;
}
}//package game_fla
Section 14
//game_start_16 (game_fla.game_start_16)
package game_fla {
import flash.events.*;
import flash.display.*;
public dynamic class game_start_16 extends MovieClip {
public var btnemc:MovieClip;
public function game_start_16(){
addFrameScript(49, frame50, 64, frame65);
}
function frame65(){
stop();
(parent as MovieClip).play();
}
function frame50(){
stop();
btnemc.useHandCursor = true;
btnemc.buttonMode = true;
btnemc.addEventListener(MouseEvent.CLICK, function ():void{
play();
});
btnemc.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
new buttonsnd().play();
});
stop();
}
}
}//package game_fla
Section 15
//holders_118 (game_fla.holders_118)
package game_fla {
import flash.events.*;
import flash.display.*;
public dynamic class holders_118 extends MovieClip {
public var plesen:MovieClip;
public function holders_118(){
addFrameScript(24, frame25, 34, frame35);
}
function frame25(){
stop();
dispatchEvent(new Event("DONE"));
}
function frame35(){
stop();
}
}
}//package game_fla
Section 16
//MainTimeline (game_fla.MainTimeline)
package game_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var bar:MovieClip;
public var area10_1:MovieClip;
public var area10_2:MovieClip;
public var area10_3:MovieClip;
public var area10_4:MovieClip;
public var area10_5:MovieClip;
public var area10_6:MovieClip;
public var area10_7:MovieClip;
public var beamatplacecounter:uint;
public var donecounter:uint;
public var holders:MovieClip;
public var bd:BitmapData;
public var d1:MovieClip;
public var d4:MovieClip;
public var d5:MovieClip;
public var d6:MovieClip;
public var d2:MovieClip;
public var leveltime:uint;
public var d3:MovieClip;
public var i:uint;
public var skull1:MovieClip;
public var skull2:MovieClip;
public var skull3:MovieClip;
public var skull4:MovieClip;
public var skull8:MovieClip;
public var skull5:MovieClip;
public var skull6:MovieClip;
public var skull9:MovieClip;
public var skull7:MovieClip;
public var offset:Point;
public var gameid:String;
public var z:uint;
public var plesenbitmap:Bitmap;
public var showid:uint;
public var timearea:TextField;
public var btnemc:MovieClip;
public var back:MovieClip;
public var powerbar:MovieClip;
public var done1:MovieClip;
public var done3:MovieClip;
public var done5:MovieClip;
public var done8:MovieClip;
public var done2:MovieClip;
public var done4:MovieClip;
public var done7:MovieClip;
public var done9:MovieClip;
public var version:uint;
public var done11:MovieClip;
public var done12:MovieClip;
public var done13:MovieClip;
public var done10:MovieClip;
public var done6:MovieClip;
public var gotoMainMenu:Boolean;
public var image:MovieClip;
public var menu:MovieClip;
public var basepoint:Point;
public var menuitem1:MovieClip;
public var menuitem3:MovieClip;
public var menuitem4:MovieClip;
public var menuitem2:MovieClip;
public var pic:MovieClip;
public var areas:Array;
public var scans:MovieClip;
public var mi:Array;
public var beamflash:MovieClip;
public var bdtmp:BitmapData;
public var holder:MovieClip;
public var addplesencounter:uint;
public var beamatplacecountermax:uint;
public var gametime:uint;
public var gamescore:uint;
public var citem:uint;
public var area9_1:MovieClip;
public var area9_2:MovieClip;
public var area9_3:MovieClip;
public var area9_4:MovieClip;
public var area9_5:MovieClip;
public var area9_6:MovieClip;
public var qq:uint;
public var skull10:MovieClip;
public var area8_2:MovieClip;
public var area8_3:MovieClip;
public var area8_5:MovieClip;
public var skull11:MovieClip;
public var skull12:MovieClip;
public var skull13:MovieClip;
public var area8_1:MovieClip;
public var area8_4:MovieClip;
public var device:MovieClip;
public var cchar:uint;
public var shadowbitmap:Bitmap;
public var st:uint;
public var myContextMenu:ContextMenu;
public var fineshed:Boolean;
public var area8_6:MovieClip;
public var area7_1:MovieClip;
public var area7_3:MovieClip;
public var area7_4:MovieClip;
public var area7_5:MovieClip;
public var area7_6:MovieClip;
public var area7_2:MovieClip;
public var canstart:Boolean;
public var options:MovieClip;
public var shadowmc:MovieClip;
public var area6_1:MovieClip;
public var area6_3:MovieClip;
public var area6_4:MovieClip;
public var area6_5:MovieClip;
public var area6_2:MovieClip;
public var area6_6:MovieClip;
public var mousedown:Boolean;
public var step:Number;
public var beamsound:SoundChannel;
public var totalpixels:uint;
public var area5_1:MovieClip;
public var area5_2:MovieClip;
public var area5_3:MovieClip;
public var area5_4:MovieClip;
public var area5_6:MovieClip;
public var area5_5:MovieClip;
public var item:ContextMenuItem;
public var beammask:MovieClip;
public var TranslateShowed:Boolean;
public var powersound:SoundChannel;
public var area4_1:MovieClip;
public var area4_2:MovieClip;
public var area4_3:MovieClip;
public var area4_4:MovieClip;
public var area4_5:MovieClip;
public var gotomainbtn:MovieClip;
public var prevdevicex:Number;
public var config:configManager;
public var area13_2:MovieClip;
public var area13_3:MovieClip;
public var area13_4:MovieClip;
public var area13_5:MovieClip;
public var area13_6:MovieClip;
public var area13_1:MovieClip;
public var powermaskcounter:uint;
public var area3_1:MovieClip;
public var area3_2:MovieClip;
public var area3_3:MovieClip;
public var item1:ContextMenuItem;
public var letcounter:uint;
public var levelid:uint;
public var area12_1:MovieClip;
public var area12_2:MovieClip;
public var area12_3:MovieClip;
public var area12_4:MovieClip;
public var area12_5:MovieClip;
public var beam:MovieClip;
public var area2_1:MovieClip;
public var area2_3:MovieClip;
public var area2_4:MovieClip;
public var area2_2:MovieClip;
public var area11_1:MovieClip;
public var area11_2:MovieClip;
public var area11_3:MovieClip;
public var area11_4:MovieClip;
public var area11_5:MovieClip;
public var area11_6:MovieClip;
public var area11_7:MovieClip;
public var bdshadow:BitmapData;
public var area1_1:MovieClip;
public var area1_2:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 212, frame213, 213, frame214, 216, frame217, 217, frame218, 218, frame219, 219, frame220, 220, frame221);
}
public function loaded(_arg1:Event):void{
stage.removeEventListener(MouseEvent.CLICK, stageclck);
back.visible = true;
}
public function goBonus():void{
navigateToURL(new URLRequest((((("http://tds.mutanky.com/?gameid=" + gameid) + "&version=") + version) + "&action=bonus")), "_blank");
}
public function plasenDONE(_arg1:Event):void{
leveltime = getTimer();
bd = new BitmapData(holders.plesen.width, holders.plesen.height, true, 0xFFFFFF);
bd.draw(holders.plesen);
bdtmp = bd.clone();
plesenbitmap.bitmapData = bd;
holders.plesen.removeChildAt(0);
holders.plesen.addChild(plesenbitmap);
shadowmc.filters = [new DropShadowFilter(2, 0, 0, 0.75, 4, 4, 5, BitmapFilterQuality.HIGH, false, false)];
bdshadow = bd;
shadowbitmap.bitmapData = bdshadow;
shadowmc.addChild(shadowbitmap);
image.visible = true;
canstart = true;
addEventListener(MouseEvent.MOUSE_DOWN, MDOWN);
addEventListener(MouseEvent.MOUSE_UP, MUP);
}
public function goMoreGames():void{
navigateToURL(new URLRequest((((("http://tds.mutanky.com/?gameid=" + gameid) + "&version=") + version) + "&action=more-games")), "_blank");
}
function frame2(){
loaderInfo.addEventListener(ProgressEvent.PROGRESS, update);
stop();
}
function frame3(){
stop();
config.addArea("menu1", menu.holder1);
config.addArea("menu2", menu.holder2);
mi = ["play", "scans", "more games", "extras"];
if ((((levelid > 1)) && ((levelid < 14)))){
mi[0] = "continue";
};
if ((((levelid == 14)) && (!(TranslateShowed)))){
mi[0] = "ending";
};
citem = 0;
cchar = 0;
letcounter = 0;
addEventListener(Event.ENTER_FRAME, EF1);
menuitem1.addEventListener(MouseEvent.CLICK, PLAY);
menuitem2.addEventListener(MouseEvent.CLICK, SCANS);
menuitem3.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
goMoreGames();
});
menuitem4.addEventListener(MouseEvent.CLICK, EXTRAS);
}
function frame1(){
version = 1;
gameid = "postnuke-explorer-1";
config = new configManager(gameid, version, stage);
st = getTimer();
levelid = 1;
gamescore = 0;
gametime = 0;
showid = levelid;
gotoMainMenu = true;
TranslateShowed = false;
fineshed = false;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.showDefaultContextMenu = false;
myContextMenu = new ContextMenu();
item = new ContextMenuItem("!!!- MORE GAMES -!!!");
myContextMenu.customItems.push(item);
item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuItemSelectHandler);
item1 = new ContextMenuItem("EXIT");
myContextMenu.customItems.push(item1);
item1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuItemSelectHandler1);
contextMenu = myContextMenu;
loaderInfo.addEventListener(Event.COMPLETE, function (_arg1:Event):void{
gotoAndStop(1, "menu");
});
}
public function cl(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, scrollMM);
removeEventListener(MouseEvent.CLICK, cl);
if (gotoMainMenu){
gotoAndStop(1, "menu");
} else {
gotoAndStop(1, "Scans");
};
}
public function EF(_arg1:Event):void{
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:String;
var _local7:uint;
donecounter++;
if (donecounter == 25){
if (chkdone()){
removeEventListener(Event.ENTER_FRAME, EF);
removeEventListener(MouseEvent.MOUSE_DOWN, MDOWN);
removeEventListener(MouseEvent.MOUSE_UP, MUP);
scans.visible = true;
scans.gotoAndStop(levelid);
gotoMainMenu = true;
beammask.x = -100;
beamflash.visible = false;
levelid++;
gametime = (gametime + (getTimer() - leveltime));
return;
};
donecounter = 0;
};
if (!options.visible){
if (canstart){
_local2 = ((gametime + getTimer()) - leveltime);
_local3 = int((_local2 / 60000));
_local4 = int(((_local2 - (_local3 * 60000)) / 1000));
_local5 = int((((_local2 - (_local3 * 60000)) - (_local4 * 1000)) / 10));
if (_local3 < 10){
_local6 = ("0" + String(_local3));
} else {
_local6 = String(_local3);
};
_local6 = (_local6 + ":");
if (_local4 < 10){
_local6 = (_local6 + ("0" + String(_local4)));
} else {
_local6 = (_local6 + String(_local4));
};
_local6 = (_local6 + ":");
if (_local5 < 10){
_local6 = (_local6 + ("0" + String(_local5)));
} else {
_local6 = (_local6 + String(_local5));
};
timearea.text = _local6;
addplesencounter++;
if (addplesencounter == 1){
addplesen();
addplesencounter = 0;
};
device.x = (stage.mouseX - 44);
if (device.x < -36){
device.x = -36;
};
if (device.x > 500){
device.x = 500;
};
beam.x = (device.x + 44);
device.gotoAndStop((int((device.x / step)) + 1));
if (prevdevicex != device.x){
if (mousedown){
makehole();
};
prevdevicex = device.x;
beamatplacecounter = 0;
beamflash.visible = false;
};
if (beamatplacecounter >= beamatplacecountermax){
beamatplacecounter = 0;
};
beammask.x = (device.x + 40);
if (mousedown){
beamatplacecounter++;
if (beamatplacecounter == beamatplacecountermax){
beamatplacecounter = 0;
makehole();
};
if (powerbar.powermask.x > -90){
powermaskcounter++;
if (powermaskcounter == 10){
powermaskcounter = 0;
powerbar.powermask.x = (powerbar.powermask.x + -9);
};
};
} else {
if (powerbar.powermask.x < 0){
powermaskcounter++;
if (powermaskcounter == 10){
powermaskcounter = 0;
powerbar.powermask.x = (powerbar.powermask.x + 9);
playpowersound(int(((90 + powerbar.powermask.x) / 9)));
};
};
};
_local7 = (int((((90 + powerbar.powermask.x) / 9) + 1)) * 2);
beam.up.scaleX = (_local7 / 20);
if (beam.currentFrame != _local7){
beam.gotoAndStop(_local7);
if (mousedown){
playbeamsound(_local7);
};
};
} else {
device.x = (device.x + -4);
};
};
}
public function update(_arg1:ProgressEvent):void{
var _local2:Number;
_local2 = Math.floor(((_arg1.bytesLoaded * 100) / _arg1.bytesTotal));
bar.scaleX = (_local2 / 100);
}
public function menuItemSelectHandler1(_arg1:ContextMenuEvent):void{
gotoAndStop(1, "menu");
}
public function chkdone():Boolean{
var _local1:uint;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:uint;
_local1 = 0;
_local2 = 0;
if (bd != null){
_local5 = 0;
while (_local5 < bd.width) {
_local6 = 0;
while (_local6 < bd.height) {
_local1++;
_local3 = bd.getPixel32(_local5, _local6);
_local4 = ((_local3 >> 24) & 0xFF);
if (_local4 == 0){
_local2++;
};
_local6++;
};
_local5++;
};
};
if ((_local2 / (_local1 / 100)) > 99.89){
return (true);
};
return (false);
}
public function scrollMM(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
_local2 = (int((((550 / 2) - stage.mouseX) / 25)) + 1);
_local3 = (int((((400 / 2) - stage.mouseY) / 25)) + 1);
pic.x = (pic.x + _local2);
pic.y = (pic.y + _local3);
if (pic.x > 0){
pic.x = 0;
};
if (pic.x < (-(pic.width) + 550)){
pic.x = (-(pic.width) + 550);
};
if (pic.y > 0){
pic.y = 0;
};
if (pic.y < (-(pic.height) + 400)){
pic.y = (-(pic.height) + 400);
};
}
function frame213(){
stop();
btnemc.useHandCursor = true;
btnemc.buttonMode = true;
btnemc.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
play();
});
btnemc.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
new buttonsnd().play();
});
}
function frame218(){
config.addArea("scans", holder);
gotoMainMenu = false;
qq = levelid;
if (fineshed){
qq = 14;
};
i = 1;
while (i < qq) {
(getChildByName(("skull" + i)) as MovieClip).visible = false;
(getChildByName(("done" + i)) as MovieClip).useHandCursor = true;
(getChildByName(("done" + i)) as MovieClip).buttonMode = true;
(getChildByName(("done" + i)) as MovieClip).addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
showid = int(_arg1.target.name.substr(4, 2));
trace("wtf", showid);
gotoAndStop(1, "Scans_one");
});
i++;
};
i = qq;
while (i < 14) {
(getChildByName(("skull" + i)) as MovieClip).alpha = 0;
(getChildByName(("skull" + i)) as MovieClip).useHandCursor = true;
(getChildByName(("skull" + i)) as MovieClip).buttonMode = true;
(getChildByName(("skull" + i)) as MovieClip).addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
new buttonsnd().play();
_arg1.target.alpha = 1;
});
(getChildByName(("skull" + i)) as MovieClip).addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.alpha = 0;
});
(getChildByName(("done" + i)) as MovieClip).visible = false;
i++;
};
gotomainbtn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
new buttonsnd().play();
_arg1.target.y--;
});
gotomainbtn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.y++;
});
gotomainbtn.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
gotoAndStop(1, "menu");
});
gotomainbtn.useHandCursor = true;
gotomainbtn.buttonMode = true;
}
function frame219(){
addEventListener(Event.ENTER_FRAME, scrollMM);
addEventListener(MouseEvent.CLICK, cl);
trace("??", showid);
pic.gotoAndStop(showid);
}
function frame214(){
stop();
}
function frame217(){
stop();
totalpixels = 0;
step = (460 / 29);
mousedown = false;
donecounter = 0;
canstart = false;
addplesencounter = 0;
powermaskcounter = 0;
beamatplacecounter = 0;
beamatplacecountermax = 1;
prevdevicex = device.x;
basepoint = new Point(0, 0);
offset = new Point(100, 100);
scans.visible = false;
scans.gotoAndStop((levelid + 1));
scans.addEventListener("WATCH", watchEvent);
scans.addEventListener("NEXT", nextEvent);
areas = [[[area1_1, 25], [area1_2, 25]], [[area2_1, 25], [area2_2, 25], [area2_3, 25], [area2_4, 25]], [[area3_1, 25], [area3_2, 25], [area3_3, 25]], [[area4_1, 30], [area4_2, 30], [area4_3, 30], [area4_4, 30], [area4_5, 30]], [[area5_1, 30], [area5_2, 30], [area5_3, 30], [area5_4, 30], [area5_5, 30], [area5_6, 30]], [[area6_1, 30], [area6_2, 30], [area6_3, 30], [area6_4, 30], [area6_5, 30], [area6_6, 30]], [[area7_1, 35], [area7_2, 35], [area7_3, 35], [area7_4, 35], [area7_5, 35], [area7_6, 35]], [[area8_1, 35], [area8_2, 35], [area8_3, 35], [area8_4, 35], [area8_5, 35], [area8_6, 35]], [[area9_1, 35], [area9_2, 35], [area9_3, 35], [area9_4, 35], [area9_5, 35], [area9_6, 35]], [[area10_1, 40], [area10_2, 40], [area10_3, 40], [area10_4, 40], [area10_5, 40], [area10_6, 40], [area10_7, 40]], [[area11_1, 50], [area11_2, 50], [area11_3, 50], [area11_4, 50], [area11_5, 50], [area11_6, 50], [area11_7, 50]], [[area12_1, 60], [area12_2, 60], [area12_3, 60], [area12_4, 60], [area12_5, 60]], [[area13_1, 75], [area13_2, 75], [area13_3, 75], [area13_4, 75], [area13_5, 75], [area13_6, 75]]];
i = 0;
while (i < areas.length) {
z = 0;
while (z < areas[i].length) {
areas[i][z][0].visible = false;
z++;
};
i++;
};
beam.visible = false;
beam.gotoAndStop(1);
device.gotoAndStop(1);
plesenbitmap = new Bitmap();
shadowbitmap = new Bitmap();
options.visible = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown);
powerbar.powermask.x = -90;
image.visible = false;
image.gotoAndStop(levelid);
holders.plesen.gotoAndStop(levelid);
beamflash.visible = false;
holders.addEventListener("DONE", plasenDONE);
addEventListener(Event.ENTER_FRAME, EF);
setscore();
}
public function gotoMenu():void{
removeEventListener(Event.ENTER_FRAME, EF);
removeEventListener(MouseEvent.MOUSE_DOWN, MDOWN);
removeEventListener(MouseEvent.MOUSE_UP, MUP);
gotoAndStop(1, "menu");
}
function frame220(){
TranslateShowed = true;
fineshed = true;
}
function frame221(){
stop();
back.titem.text = "back";
back.mouseChildren = false;
back.visible = false;
stage.addEventListener(MouseEvent.CLICK, stageclck);
config.addArea("extras", holder);
config.addEventListener("LOADED_extras", loaded);
back.useHandCursor = true;
back.buttonMode = true;
back.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
new buttonsnd().play();
back.y--;
});
back.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
back.y++;
});
back.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
gotoAndStop(1, "menu");
});
}
public function playpowersound(_arg1:uint):void{
if (powersound != null){
powersound.stop();
};
trace(_arg1);
switch (_arg1){
case 1:
powersound = new p01().play();
break;
case 2:
powersound = new p02().play();
break;
case 3:
powersound = new p03().play();
break;
case 4:
powersound = new p04().play();
break;
case 5:
powersound = new p05().play();
break;
case 6:
powersound = new p06().play();
break;
case 7:
powersound = new p07().play();
break;
case 8:
powersound = new p08().play();
break;
case 9:
powersound = new p09().play();
break;
case 10:
powersound = new p10().play();
break;
};
}
public function SCANS(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, EF1);
gotoAndStop(1, "Scans");
}
public function addplesen():void{
var _local1:Array;
var _local2:Array;
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local8:uint;
_local1 = [];
_local2 = [];
if (bd != null){
_local3 = 0;
while (_local3 < areas[(levelid - 1)].length) {
_local4 = 0;
_local5 = areas[(levelid - 1)][_local3][1];
_local6 = 0;
while ((((_local4 < _local5)) && ((_local6 < (_local5 * 10))))) {
_local6++;
_local7 = (int(((areas[(levelid - 1)][_local3][0].x + 1) + (Math.random() * (areas[(levelid - 1)][_local3][0].width - 2)))) - 6);
_local8 = (int(((areas[(levelid - 1)][_local3][0].y + 1) + (Math.random() * (areas[(levelid - 1)][_local3][0].height - 2)))) - 5);
if (areas[(levelid - 1)][_local3][0].hitTestPoint((_local7 + 6), (_local8 + 5), true)){
_local1[0] = bd.getPixel32(_local7, _local8);
_local1[1] = bd.getPixel32((_local7 + 1), _local8);
_local1[2] = bd.getPixel32(_local7, (_local8 - 1));
_local1[3] = bd.getPixel32(_local7, (_local8 + 1));
_local2[0] = ((_local1[0] >> 24) & 0xFF);
_local2[1] = ((_local1[1] >> 24) & 0xFF);
_local2[2] = ((_local1[2] >> 24) & 0xFF);
_local2[3] = ((_local1[3] >> 24) & 0xFF);
if (((!((_local2[0] == 0))) && ((_local2[1] == 0)))){
_local4++;
bd.copyPixels(bdtmp, new Rectangle(_local7, _local8, 2, 1), new Point(_local7, _local8));
};
if ((((_local2[0] == 0)) && (!((_local2[1] == 0))))){
_local4++;
bd.copyPixels(bdtmp, new Rectangle(_local7, _local8, 2, 1), new Point(_local7, _local8));
};
if (((!((_local2[0] == 0))) && ((_local2[2] == 0)))){
_local4++;
bd.copyPixels(bdtmp, new Rectangle(_local7, (_local8 - 1), 1, 2), new Point(_local7, (_local8 - 1)));
};
if (((!((_local2[0] == 0))) && ((_local2[3] == 0)))){
_local4++;
bd.copyPixels(bdtmp, new Rectangle(_local7, (_local8 + 1), 1, 2), new Point(_local7, (_local8 + 1)));
};
};
};
_local3++;
};
};
}
public function beammaskmaker(_arg1, _arg2):Number{
var _local3:Number;
var _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:uint;
_local3 = 0;
_local6 = int((_arg1 - (_arg2 / 2)));
while (_local6 < int((_arg1 + (_arg2 / 2)))) {
_local7 = bd.height;
while (_local7 > 0) {
_local4 = bd.getPixel32(_local6, _local7);
_local5 = ((_local4 >> 24) & 0xFF);
if (_local5 != 0){
_local3 = _local7;
break;
};
_local7--;
};
_local6++;
};
return (_local3);
}
public function gotoScans():void{
removeEventListener(Event.ENTER_FRAME, EF);
removeEventListener(MouseEvent.MOUSE_DOWN, MDOWN);
removeEventListener(MouseEvent.MOUSE_UP, MUP);
gotoAndStop(1, "Scans");
}
public function playbeamsound(_arg1:uint):void{
if (beamsound != null){
beamsound.stop();
};
switch (_arg1){
case 2:
beamsound = new b01().play(0, int.MAX_VALUE);
break;
case 4:
beamsound = new b02().play(0, int.MAX_VALUE);
break;
case 6:
beamsound = new b03().play(0, int.MAX_VALUE);
break;
case 8:
beamsound = new b04().play(0, int.MAX_VALUE);
break;
case 10:
beamsound = new b05().play(0, int.MAX_VALUE);
break;
case 12:
beamsound = new b06().play(0, int.MAX_VALUE);
break;
case 14:
beamsound = new b07().play(0, int.MAX_VALUE);
break;
case 16:
beamsound = new b08().play(0, int.MAX_VALUE);
break;
case 18:
beamsound = new b09().play(0, int.MAX_VALUE);
break;
case 22:
beamsound = new b10().play(0, int.MAX_VALUE);
break;
};
}
public function EXTRAS(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, EF1);
gotoAndStop(1, "Extras");
}
public function stageclck(_arg1:Event):void{
stage.removeEventListener(MouseEvent.CLICK, stageclck);
gotoAndStop(1, "menu");
}
public function MDOWN(_arg1:MouseEvent):void{
if (canstart){
playbeamsound((int((((90 + powerbar.powermask.x) / 9) + 1)) * 2));
mousedown = true;
powermaskcounter = 0;
beam.visible = true;
makehole();
};
}
public function menuItemSelectHandler(_arg1:ContextMenuEvent):void{
goMoreGames();
}
public function watchEvent(_arg1:Event):void{
showid = (levelid - 1);
gotoAndStop(1, "Scans_one");
}
public function PLAY(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, EF1);
if (levelid == 1){
play();
} else {
if (mi[0] != "ending"){
if (levelid > 13){
levelid = 1;
};
gotoAndStop(1, "game");
} else {
gotoAndStop(1, "Translate");
};
};
}
public function nextEvent(_arg1:Event):void{
showid = levelid;
gotoAndPlay(1, "loopback");
}
public function setscore():void{
var _local1:String;
var _local2:uint;
var _local3:uint;
_local1 = String(gamescore);
_local2 = _local1.length;
if (_local2 < 6){
_local3 = 0;
while (_local3 < (6 - _local2)) {
_local1 = ("0" + _local1);
_local3++;
};
};
_local3 = 1;
while (_local3 < 7) {
(getChildByName(("d" + _local3)) as MovieClip).gotoAndStop((int(_local1.substr((_local3 - 1), 1)) + 1));
_local3++;
};
}
public function MUP(_arg1:MouseEvent):void{
playbeamsound(0);
if (canstart){
powerbar.powermask.x = -90;
mousedown = false;
beam.visible = false;
beamflash.visible = false;
powermaskcounter = 0;
};
}
public function EF1(_arg1:Event):void{
var m:MovieClip;
var e = _arg1;
if (menu.currentFrame > 24){
letcounter++;
if (letcounter == 2){
if (citem < mi.length){
m = (getChildByName(("menuitem" + (citem + 1))) as MovieClip);
if (cchar < (mi[citem].length + 1)){
m.titem.text = mi[citem].substr(0, cchar);
cchar++;
} else {
m.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
new buttonsnd().play();
_arg1.target.y = (_arg1.target.y + -2);
});
m.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.y = (_arg1.target.y + 2);
});
m.buttonMode = true;
m.useHandCursor = true;
m.mouseChildren = false;
citem++;
cchar = 0;
};
} else {
removeEventListener(Event.ENTER_FRAME, EF1);
};
};
if (letcounter == 2){
letcounter = 0;
};
};
}
public function makehole():void{
var _local1:*;
var _local2:Number;
var _local3:Number;
var _local4:MovieClip;
var _local5:BitmapData;
var _local6:Rectangle;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:uint;
_local1 = (device.x + 40);
_local3 = beam.currentFrame;
if (_local3 < 3){
_local3 = 3;
};
_local2 = beammaskmaker(_local1, _local3);
if (_local3 < 4){
offset = new Point((_local1 - (_local3 * 1.25)), (_local2 - _local3));
} else {
offset = new Point((_local1 - _local3), (_local2 - _local3));
};
playpowersound(_local3);
_local4 = new MovieClip();
_local4.graphics.beginFill(0);
_local4.graphics.drawCircle(_local3, _local3, _local3);
_local4.graphics.endFill();
_local5 = new BitmapData(_local4.width, _local4.height, true, 4294967295);
_local6 = new Rectangle(_local5.width, _local5.height);
_local5.draw(_local4);
_local5.copyChannel(_local5, _local5.getColorBoundsRect(0xFFFFFF, 0, true), basepoint, 1, 8);
_local7 = 0;
_local10 = offset.x;
while (_local10 < (offset.x + (_local3 * 2))) {
_local11 = offset.y;
while (_local11 < (offset.y + (_local3 * 2))) {
_local8 = bd.getPixel32(_local10, _local11);
_local9 = ((_local8 >> 24) & 0xFF);
if (_local9 != 0){
_local7++;
};
_local11++;
};
_local10++;
};
totalpixels = (totalpixels + int((_local7 / 10)));
gamescore = (gamescore + int((_local7 / 10)));
setscore();
bd.copyPixels(bd, new Rectangle(offset.x, offset.y, (_local3 * 2), (_local3 * 2)), offset, _local5, basepoint, false);
beammask.y = (_local2 - (_local3 * 2));
if (beammask.y <= 4){
beamflash.visible = false;
beammask.y = 4;
} else {
beamflash.visible = true;
};
if (!beamflash.visible){
beamatplacecountermax = 1;
};
beamflash.y = (beammask.y + 10);
beamflash.x = (beammask.x + 5);
}
public function reportKeyDown(_arg1:KeyboardEvent):void{
trace(_arg1.charCode);
if (_arg1.charCode == 27){
options.visible = true;
canstart = false;
beammask.x = -100;
beamflash.visible = false;
};
}
}
}//package game_fla
Section 17
//MENU_2 (game_fla.MENU_2)
package game_fla {
import flash.display.*;
public dynamic class MENU_2 extends MovieClip {
public var holder1:MovieClip;
public var holder2:MovieClip;
}
}//package game_fla
Section 18
//menu_menu_6 (game_fla.menu_menu_6)
package game_fla {
import flash.display.*;
public dynamic class menu_menu_6 extends MovieClip {
public function menu_menu_6(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package game_fla
Section 19
//menuitem_9 (game_fla.menuitem_9)
package game_fla {
import flash.display.*;
import flash.text.*;
public dynamic class menuitem_9 extends MovieClip {
public var titem:TextField;
}
}//package game_fla
Section 20
//options_176 (game_fla.options_176)
package game_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class options_176 extends MovieClip {
public var btn3:MovieClip;
public var btn2:MovieClip;
public var btn4:MovieClip;
public var i:uint;
public var btn1:MovieClip;
public var m:MovieClip;
public function options_176(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i < 5) {
m = (getChildByName(("btn" + i)) as MovieClip);
m.useHandCursor = true;
m.buttonMode = true;
m.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
new buttonsnd().play();
_arg1.target.y--;
});
m.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.y++;
});
i++;
};
btn1.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
(root as MovieClip).goBonus();
});
btn2.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
(parent.parent as MovieClip).gotoAndStop(1, "Scans");
});
btn3.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
(root as MovieClip).goMoreGames();
});
btn4.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
(parent.parent as MovieClip).gotoAndStop(1, "menu");
});
}
}
}//package game_fla
Section 21
//options1_126 (game_fla.options1_126)
package game_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class options1_126 extends MovieClip {
public var btn3:MovieClip;
public var btn2:MovieClip;
public var btn4:MovieClip;
public var i:uint;
public var btn1:MovieClip;
public var m:MovieClip;
public function options1_126(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i < 5) {
m = (getChildByName(("btn" + i)) as MovieClip);
m.useHandCursor = true;
m.buttonMode = true;
m.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
new buttonsnd().play();
_arg1.target.y--;
});
m.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.y++;
});
i++;
};
btn1.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
visible = false;
(parent as MovieClip).canstart = true;
});
btn2.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
(root as MovieClip).gotoScans();
});
btn3.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
(root as MovieClip).goMoreGames();
});
btn4.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
(root as MovieClip).gotoMenu();
});
}
}
}//package game_fla
Section 22
//powerbar_124 (game_fla.powerbar_124)
package game_fla {
import flash.display.*;
public dynamic class powerbar_124 extends MovieClip {
public var powermask:MovieClip;
}
}//package game_fla
Section 23
//scan_01_132 (game_fla.scan_01_132)
package game_fla {
import flash.display.*;
public dynamic class scan_01_132 extends MovieClip {
public var msg:MovieClip;
public function scan_01_132(){
addFrameScript(0, frame1, 62, frame63);
}
function frame1(){
stop();
}
function frame63(){
stop();
}
}
}//package game_fla
Section 24
//scan_02_140 (game_fla.scan_02_140)
package game_fla {
import flash.display.*;
public dynamic class scan_02_140 extends MovieClip {
public var msg:MovieClip;
public function scan_02_140(){
addFrameScript(0, frame1, 62, frame63);
}
function frame1(){
stop();
}
function frame63(){
stop();
}
}
}//package game_fla
Section 25
//scan_03_141 (game_fla.scan_03_141)
package game_fla {
import flash.display.*;
public dynamic class scan_03_141 extends MovieClip {
public var msg:MovieClip;
public function scan_03_141(){
addFrameScript(0, frame1, 62, frame63);
}
function frame1(){
stop();
}
function frame63(){
stop();
}
}
}//package game_fla
Section 26
//scan_04_142 (game_fla.scan_04_142)
package game_fla {
import flash.display.*;
public dynamic class scan_04_142 extends MovieClip {
public var msg:MovieClip;
public function scan_04_142(){
addFrameScript(0, frame1, 62, frame63);
}
function frame1(){
stop();
}
function frame63(){
stop();
}
}
}//package game_fla
Section 27
//scan_05_143 (game_fla.scan_05_143)
package game_fla {
import flash.display.*;
public dynamic class scan_05_143 extends MovieClip {
public var msg:MovieClip;
public function scan_05_143(){
addFrameScript(0, frame1, 62, frame63);
}
function frame1(){
stop();
}
function frame63(){
stop();
}
}
}//package game_fla
Section 28
//scan_06_144 (game_fla.scan_06_144)
package game_fla {
import flash.display.*;
public dynamic class scan_06_144 extends MovieClip {
public var msg:MovieClip;
public function scan_06_144(){
addFrameScript(0, frame1, 62, frame63);
}
function frame1(){
stop();
}
function frame63(){
stop();
}
}
}//package game_fla
Section 29
//scan_07_145 (game_fla.scan_07_145)
package game_fla {
import flash.display.*;
public dynamic class scan_07_145 extends MovieClip {
public var msg:MovieClip;
public function scan_07_145(){
addFrameScript(0, frame1, 62, frame63);
}
function frame1(){
stop();
}
function frame63(){
stop();
}
}
}//package game_fla
Section 30
//scan_08_146 (game_fla.scan_08_146)
package game_fla {
import flash.display.*;
public dynamic class scan_08_146 extends MovieClip {
public var msg:MovieClip;
public function scan_08_146(){
addFrameScript(0, frame1, 62, frame63);
}
function frame1(){
stop();
}
function frame63(){
stop();
}
}
}//package game_fla
Section 31
//scan_09_147 (game_fla.scan_09_147)
package game_fla {
import flash.display.*;
public dynamic class scan_09_147 extends MovieClip {
public var msg:MovieClip;
public function scan_09_147(){
addFrameScript(0, frame1, 62, frame63);
}
function frame1(){
stop();
}
function frame63(){
stop();
}
}
}//package game_fla
Section 32
//scan_10_148 (game_fla.scan_10_148)
package game_fla {
import flash.display.*;
public dynamic class scan_10_148 extends MovieClip {
public var msg:MovieClip;
public function scan_10_148(){
addFrameScript(0, frame1, 62, frame63);
}
function frame1(){
stop();
}
function frame63(){
stop();
}
}
}//package game_fla
Section 33
//scan_11_149 (game_fla.scan_11_149)
package game_fla {
import flash.display.*;
public dynamic class scan_11_149 extends MovieClip {
public var msg:MovieClip;
public function scan_11_149(){
addFrameScript(0, frame1, 62, frame63);
}
function frame1(){
stop();
}
function frame63(){
stop();
}
}
}//package game_fla
Section 34
//scan_12_150 (game_fla.scan_12_150)
package game_fla {
import flash.display.*;
public dynamic class scan_12_150 extends MovieClip {
public var msg:MovieClip;
public function scan_12_150(){
addFrameScript(0, frame1, 62, frame63);
}
function frame1(){
stop();
}
function frame63(){
stop();
}
}
}//package game_fla
Section 35
//scan_13_151 (game_fla.scan_13_151)
package game_fla {
import flash.display.*;
public dynamic class scan_13_151 extends MovieClip {
public var msg:MovieClip;
public function scan_13_151(){
addFrameScript(0, frame1, 62, frame63);
}
function frame1(){
stop();
}
function frame63(){
stop();
}
}
}//package game_fla
Section 36
//scans_all_131 (game_fla.scans_all_131)
package game_fla {
import flash.display.*;
public dynamic class scans_all_131 extends MovieClip {
public var scans:MovieClip;
}
}//package game_fla
Section 37
//symbol_136 (game_fla.symbol_136)
package game_fla {
import flash.display.*;
public dynamic class symbol_136 extends MovieClip {
public function symbol_136(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package game_fla
Section 38
//text_1_19 (game_fla.text_1_19)
package game_fla {
import flash.display.*;
public dynamic class text_1_19 extends MovieClip {
public function text_1_19(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package game_fla
Section 39
//text_2_133 (game_fla.text_2_133)
package game_fla {
import flash.events.*;
import flash.display.*;
public dynamic class text_2_133 extends MovieClip {
public var okbtn:MovieClip;
public function text_2_133(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
okbtn.useHandCursor = true;
okbtn.buttonMode = true;
okbtn.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
(parent as MovieClip).play();
});
}
}
}//package game_fla
Section 40
//text_3_138 (game_fla.text_3_138)
package game_fla {
import flash.events.*;
import flash.display.*;
public dynamic class text_3_138 extends MovieClip {
public var btn2:MovieClip;
public var btn1:MovieClip;
public function text_3_138(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
btn1.useHandCursor = true;
btn1.buttonMode = true;
btn1.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
parent.parent.dispatchEvent(new Event("WATCH"));
});
btn2.useHandCursor = true;
btn2.buttonMode = true;
btn2.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
parent.parent.dispatchEvent(new Event("NEXT"));
});
}
}
}//package game_fla
Section 41
//text_4_152 (game_fla.text_4_152)
package game_fla {
import flash.events.*;
import flash.display.*;
public dynamic class text_4_152 extends MovieClip {
public var btn2:MovieClip;
public var btn1:MovieClip;
public function text_4_152(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
btn1.useHandCursor = true;
btn1.buttonMode = true;
btn1.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
parent.parent.dispatchEvent(new Event("WATCH"));
});
btn2.useHandCursor = true;
btn2.buttonMode = true;
btn2.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
(parent.parent.parent as MovieClip).gotoAndStop(1, "Translate");
});
}
}
}//package game_fla
Section 42
//tra_172 (game_fla.tra_172)
package game_fla {
import flash.display.*;
public dynamic class tra_172 extends MovieClip {
public function tra_172(){
addFrameScript(468, frame469);
}
function frame469(){
stop();
}
}
}//package game_fla
Section 43
//translation_171 (game_fla.translation_171)
package game_fla {
import flash.display.*;
public dynamic class translation_171 extends MovieClip {
public function translation_171(){
addFrameScript(504, frame505);
}
function frame505(){
stop();
}
}
}//package game_fla
Section 44
//b01 (b01)
package {
import flash.media.*;
public dynamic class b01 extends Sound {
}
}//package
Section 45
//b02 (b02)
package {
import flash.media.*;
public dynamic class b02 extends Sound {
}
}//package
Section 46
//b03 (b03)
package {
import flash.media.*;
public dynamic class b03 extends Sound {
}
}//package
Section 47
//b04 (b04)
package {
import flash.media.*;
public dynamic class b04 extends Sound {
}
}//package
Section 48
//b05 (b05)
package {
import flash.media.*;
public dynamic class b05 extends Sound {
}
}//package
Section 49
//b06 (b06)
package {
import flash.media.*;
public dynamic class b06 extends Sound {
}
}//package
Section 50
//b07 (b07)
package {
import flash.media.*;
public dynamic class b07 extends Sound {
}
}//package
Section 51
//b08 (b08)
package {
import flash.media.*;
public dynamic class b08 extends Sound {
}
}//package
Section 52
//b09 (b09)
package {
import flash.media.*;
public dynamic class b09 extends Sound {
}
}//package
Section 53
//b10 (b10)
package {
import flash.media.*;
public dynamic class b10 extends Sound {
}
}//package
Section 54
//buttonsnd (buttonsnd)
package {
import flash.media.*;
public dynamic class buttonsnd extends Sound {
}
}//package
Section 55
//configManager (configManager)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
public class configManager extends MovieClip {
var popupurl:String;// = ""
var areacontent:Dictionary;
public var chk9:Boolean;// = false
var configXML:XML;
var showonload:String;// = null
var areas:Dictionary;
var ver:uint;
var gid:String;
public function configManager(_arg1:String, _arg2:uint, _arg3:Stage):void{
var loader:URLLoader;
var ioErrorHandler:Function;
var loadXML:Function;
var gameid = _arg1;
var version = _arg2;
var st = _arg3;
configXML = <config></config>
;
areas = new Dictionary(true);
areacontent = new Dictionary(true);
showonload = null;
popupurl = "";
chk9 = false;
super();
ioErrorHandler = function (_arg1:Event):void{
trace("config fail");
};
loadXML = function (_arg1:Event):void{
var i:uint;
var k:uint;
var tmpfn:Function;
var e = _arg1;
trace(e.target.data);
configXML = new XML(e.target.data);
trace("config loaded\n\n");
if (String(configXML.settings.player.@chk9) == "yes"){
chk9 = true;
};
i = 0;
while (i < configXML.stages.stage.length()) {
k = 0;
while (k < configXML.stages.stage[i].banners.banner.length()) {
if (configXML.stages.stage[i].banners.banner[k].@autoload == "true"){
trace(((("get content " + configXML.stages.stage[i].@name) + " loc:") + configXML.stages.stage[i].banners.banner[k].@location));
getContent(configXML.stages.stage[i].@name, k, configXML.stages.stage[i].banners.banner[k].@location, configXML.stages.stage[i].banners.banner[k].@x, configXML.stages.stage[i].banners.banner[k].@y, configXML.stages.stage[i].banners.banner[k].@href);
};
if (configXML.stages.stage[i].@name == "popup"){
tmpfn = function (_arg1:Event):void{
if (popupurl != ""){
navigateToURL(new URLRequest(popupurl), "_blank");
};
st.removeEventListener(MouseEvent.CLICK, tmpfn);
};
st.addEventListener(MouseEvent.CLICK, tmpfn);
popupurl = configXML.stages.stage[i].banners.banner[k].@href;
};
k = (k + 1);
};
i = (i + 1);
};
};
gid = gameid;
ver = version;
loader = new URLLoader();
loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, ioErrorHandler);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loader.addEventListener(Event.COMPLETE, loadXML);
loader.load(new URLRequest(((("http://config.mutanky.com/?gameid=" + gameid) + "&version=") + version)));
}
function getContent(_arg1:String, _arg2:uint, _arg3:String, _arg4:Number, _arg5:Number, _arg6:String):void{
var loader:Loader;
var loadcontent:Function;
var id = _arg1;
var arrid = _arg2;
var loc = _arg3;
var x = _arg4;
var y = _arg5;
var href = _arg6;
loadcontent = function (_arg1:Event):void{
var bannerid:uint;
var e = _arg1;
if (areacontent[id] == undefined){
areacontent[id] = [];
};
e.target.content.x = x;
e.target.content.y = y;
e.target.content.href = href;
e.target.content.gameid = gid;
e.target.content.version = ver;
areacontent[id][arrid] = e.target.content;
if (showonload == id){
bannerid = int((Math.random() * areacontent[id].length));
areas[id].addChild(areacontent[id][bannerid]);
if (areacontent[id][bannerid].href != ""){
areacontent[id][bannerid].addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
navigateToURL(new URLRequest(areacontent[id][bannerid].href), "_blank");
});
};
};
trace("content loaded");
trace(("LOADED_" + id));
dispatchEvent(new Event(("LOADED_" + id)));
};
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadcontent);
loader.load(new URLRequest(loc));
}
public function addArea(_arg1:String, _arg2:MovieClip):void{
var bannerid:uint;
var i:uint;
var k:uint;
var id = _arg1;
var area = _arg2;
if (areas[id] == undefined){
areas[id] = area;
if (areacontent[id] == undefined){
areacontent[id] = [];
i = 0;
while (i < configXML.stages.stage.length()) {
if (String(configXML.stages.stage[i].@name) == id){
k = 0;
while (k < configXML.stages.stage[i].banners.banner.length()) {
getContent(configXML.stages.stage[i].@name, k, configXML.stages.stage[i].banners.banner[k].@location, configXML.stages.stage[i].banners.banner[k].@x, configXML.stages.stage[i].banners.banner[k].@y, configXML.stages.stage[i].banners.banner[k].@href);
k = (k + 1);
};
};
i = (i + 1);
};
};
};
bannerid = int((Math.random() * areacontent[id].length));
if (((((!((areacontent[id][bannerid] == null))) && (!((areacontent[id][bannerid] == undefined))))) && (!(area.contains(areacontent[id][bannerid]))))){
area.addChild(areacontent[id][bannerid]);
dispatchEvent(new Event(("LOADED_" + id)));
if (areacontent[id][bannerid].href != ""){
areacontent[id][bannerid].addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
navigateToURL(new URLRequest(areacontent[id][bannerid].href), "_blank");
});
};
} else {
showonload = id;
};
trace((("start " + id) + " area"));
}
}
}//package
Section 56
//p01 (p01)
package {
import flash.media.*;
public dynamic class p01 extends Sound {
}
}//package
Section 57
//p02 (p02)
package {
import flash.media.*;
public dynamic class p02 extends Sound {
}
}//package
Section 58
//p03 (p03)
package {
import flash.media.*;
public dynamic class p03 extends Sound {
}
}//package
Section 59
//p04 (p04)
package {
import flash.media.*;
public dynamic class p04 extends Sound {
}
}//package
Section 60
//p05 (p05)
package {
import flash.media.*;
public dynamic class p05 extends Sound {
}
}//package
Section 61
//p06 (p06)
package {
import flash.media.*;
public dynamic class p06 extends Sound {
}
}//package
Section 62
//p07 (p07)
package {
import flash.media.*;
public dynamic class p07 extends Sound {
}
}//package
Section 63
//p08 (p08)
package {
import flash.media.*;
public dynamic class p08 extends Sound {
}
}//package
Section 64
//p09 (p09)
package {
import flash.media.*;
public dynamic class p09 extends Sound {
}
}//package
Section 65
//p10 (p10)
package {
import flash.media.*;
public dynamic class p10 extends Sound {
}
}//package