Frame 1
function progressLoad() {
var _local2 = this.getBytesLoaded();
var _local4 = this.getBytesTotal();
var _local3 = Math.floor((_local2 / _local4) * 100);
loadBottomMc.mcLoader.loadbar_mc.gotoAndStop(_local3);
if (((_local3 == 100) && (_local2 > 1000)) && (bXMLloaded)) {
clearInterval(nLoadIntervalID);
gotoAndPlay ("_game");
bSiteLoaded = true;
}
}
stop();
bXMLloaded = false;
if (_root.cid == undefined) {
_root.cid = "uk";
}
var mainXML = new XML();
mainXML.ignoreWhite = true;
var me = this;
mainXML.onLoad = function (success) {
var _local2 = this.idMap["1_1_title"].childNodes[0].nodeValue;
me.bXMLloaded = true;
};
var file = (cid + "/xml/main.xml");
mainXML.load(file);
nLoadIntervalID = setInterval(this, "progressLoad", 40);
Frame 46
stop();
Symbol 10 MovieClip Frame 1
stop();
trace(this);
Symbol 12 MovieClip Frame 1
stop();
Symbol 16 MovieClip Frame 1
function fadeIn() {
image_mc.onEnterFrame = function () {
this._alpha = this._alpha + 10;
if (this._alpha >= 100) {
delete this.onEnterFrame;
}
};
}
var image_mc = createEmptyMovieClip("image_mc", getNextHighestDepth());
image_mc._alpha = 0;
var me = this;
var mclListener = new Object();
mclListener.onLoadInit = function (target_mc) {
me.fadeIn();
};
var image_mcl = new MovieClipLoader();
image_mcl.addListener(mclListener);
image_mcl.loadClip(_root.cid + "/images/loader_logo.png", image_mc);
Symbol 334 MovieClip [__Packages.com.digitaloutlook.pop.InfoScreen] Frame 0
class com.digitaloutlook.pop.InfoScreen extends MovieClip
{
static var instance;
var bisOpen, mcLevel1, bisHelpScreen, mcContinue, sGamePlay, nLevelToShow, mcShadow, mcBg, _visible, gotoAndStop, mcLevel0, mcCountdown, _currentframe;
function InfoScreen () {
super();
instance = this;
}
static function getInstance() {
return(instance);
}
function onLoad() {
init();
}
function init() {
bisOpen = false;
mcLevel1._visible = false;
hide();
bisHelpScreen = false;
mcContinue._visible = false;
mcContinue.fSetText(com.digitaloutlook.pop.Application.fIdMap("continue"));
}
function fShowHelp(vSGamePlay) {
sGamePlay = vSGamePlay;
bisOpen = true;
var _local2 = com.digitaloutlook.pop.Application.fIdMap("instructions_title");
com.digitaloutlook.pop.Application.getInstance().laserOff();
bisHelpScreen = true;
show();
mcLevel1._visible = false;
nLevelToShow = com.digitaloutlook.pop.Level.currentLevel;
mcShadow.gotoAndPlay("_open");
mcBg.gotoAndPlay("_open");
var me = this;
mcContinue.onRelease = function () {
me.mcLevel1.txtTitle.htmlText = "";
me.mcLevel1.txtInstructions.htmlText = "";
if (com.digitaloutlook.pop.Application.getInstance().bGameIsPaused) {
com.digitaloutlook.pop.Application.getInstance().laserOn();
}
com.digitaloutlook.pop.Application.getInstance().mcHelp.enabled = true;
me.bisHelpScreen = false;
me.bisOpen = false;
me.hide();
this._visible = false;
};
}
function setPopulateLevelIntro(arg_nLevel, arg_nLevelScore, arg_currentScore) {
_visible = false;
if ((arg_nLevel == com.digitaloutlook.pop.Level.LEVEL_ONE) || (arg_nLevel == com.digitaloutlook.pop.Level.END_OF_LEVEL)) {
nLevelToShow = arg_nLevel;
gotoAndStop("_level" + arg_nLevel);
mcLevel1._visible = false;
mcShadow.gotoAndPlay("_open");
mcBg.gotoAndPlay("_open");
} else if (arg_nLevel == -1) {
gotoAndStop("_level0");
mcShadow.gotoAndPlay("_open");
mcBg.gotoAndPlay("_open");
} else {
gotoAndStop("_level1");
com.digitaloutlook.pop.Application.getInstance().fDoTime();
}
var me = this;
switch (arg_nLevel) {
case -1 :
gotoAndStop("_level0");
mcLevel1.txtTitle.htmlText = com.digitaloutlook.pop.Application.fIdMap("freeplay_1_title");
mcLevel1.mcInstructions.txt.htmlText = com.digitaloutlook.pop.Application.fIdMap("freeplay_1_body");
mcLevel1.mcStart.fSetText(com.digitaloutlook.pop.Application.fIdMap("play"));
mcLevel1.mcStart._visible = true;
mcLevel1.mcStart.copy = com.digitaloutlook.pop.Application.fIdMap("play");
mcLevel1.mcStart.onRelease = function () {
me.fStartGame();
this._visible = false;
};
break;
case com.digitaloutlook.pop.Level.LEVEL_ONE :
gotoAndStop("_level" + arg_nLevel);
mcLevel1.txtTitle.htmlText = com.digitaloutlook.pop.Application.fIdMap("1_1_title");
mcLevel1.mcInstructions.txt.htmlText = com.digitaloutlook.pop.Application.fIdMap("1_1_body");
mcLevel1.mcInfoText1.txt.htmlText = com.digitaloutlook.pop.Application.fIdMap("1_1_info1");
mcLevel1.mcInfoText2.txt.htmlText = com.digitaloutlook.pop.Application.fIdMap("1_1_info2");
mcLevel1.mcInfoText3.txt.htmlText = com.digitaloutlook.pop.Application.fIdMap("1_1_info3");
mcLevel1.mcStart.fSetText(com.digitaloutlook.pop.Application.fIdMap("play"));
mcLevel1.mcStart._visible = true;
mcLevel1.mcStart.copy = com.digitaloutlook.pop.Application.fIdMap("play");
mcLevel1.mcStart.onRelease = function () {
this._visible = false;
me.fStartCountdown();
};
break;
case com.digitaloutlook.pop.Level.LEVEL_TWO :
case com.digitaloutlook.pop.Level.LEVEL_THREE :
case com.digitaloutlook.pop.Level.LEVEL_FOUR :
case com.digitaloutlook.pop.Level.LEVEL_FIVE :
case com.digitaloutlook.pop.Level.LEVEL_SIX :
case com.digitaloutlook.pop.Level.LEVEL_SEVEN :
case com.digitaloutlook.pop.Level.LEVEL_EIGHT :
case com.digitaloutlook.pop.Level.LEVEL_NINE :
case com.digitaloutlook.pop.Level.LEVEL_TEN :
case com.digitaloutlook.pop.Level.LEVEL_ELEVEN :
case com.digitaloutlook.pop.Level.LEVEL_TWELVE :
mcLevel1.txtTitle.htmlText = com.digitaloutlook.pop.Application.fIdMap((arg_nLevel + 1) + "_1_title");
mcLevel1.txtInstructions.htmlText = com.digitaloutlook.pop.Application.fIdMap((arg_nLevel + 1) + "_1_body");
break;
case com.digitaloutlook.pop.Level.END_OF_LEVEL :
mcLevel1.txtTitle.htmlText = com.digitaloutlook.pop.Application.fIdMap("stage_end_title");
mcLevel1.txtInstructions.htmlText = com.digitaloutlook.pop.Application.fIdMap("stage_end_copy");
mcLevel1.txtScoreCopy.htmlText = com.digitaloutlook.pop.Application.fIdMap("stage_end_score");
var _local4 = arg_nLevelScore;
mcLevel1.txtPcnt.htmlText = com.digitaloutlook.pop.Application.fIdMap("speed");
if (isNaN(arg_nLevelScore) || (arg_nLevelScore <= 0)) {
mcLevel1.txtFiguresBonus.text = "0";
} else {
fCountUp(mcLevel1.txtFiguresBonus, arg_nLevelScore, mcLevel1.txtScore, arg_currentScore);
}
mcLevel1.mcStart.fSetText(com.digitaloutlook.pop.Application.fIdMap("play"));
mcLevel1.mcStart.copy = com.digitaloutlook.pop.Application.fIdMap("play");
mcLevel1.mcStart.onRelease = function () {
if (com.digitaloutlook.pop.Level.__get__gameEnded()) {
me.hide();
com.digitaloutlook.pop.Application.getInstance().fDoEndGame();
} else {
me.setPopulateLevelIntro(com.digitaloutlook.pop.Level.__get__currentLevel(), arg_currentScore);
}
};
break;
}
fCheckInstructionPos(mcLevel1.txtInstructions);
show();
}
function fCountdownEnded() {
fStartGame();
}
function fCheckInstructionPos(arg_txtFld) {
if (bisHelpScreen == false) {
if (arg_txtFld.textHeight > 21) {
arg_txtFld._y = arg_txtFld._y - 7;
}
}
}
function fCountUp(arg_txt, arg_nBonus, arg_txtTotalScore, arg_currScore) {
arg_txt.text = String(arg_nBonus);
arg_txtTotalScore.text = String(arg_currScore + arg_nBonus);
}
function fStartGame() {
mcLevel0._visible = false;
mcLevel1._visible = false;
mcBg.gotoAndPlay("_close");
mcShadow.gotoAndPlay("_close");
}
function fOpenAnimFinished(arg_target) {
bisOpen = true;
if (arg_target._name == "mcBg") {
if (nLevelToShow == undefined) {
nLevelToShow = 0;
}
trace("nLevelToShow : " + nLevelToShow);
mcLevel1._visible = true;
if (bisHelpScreen) {
mcContinue._visible = true;
}
}
if (bisHelpScreen) {
gotoAndStop("_levelhelp");
if (sGamePlay == "Freeplay") {
mcLevel1.txtTitle.htmlText = com.digitaloutlook.pop.Application.fIdMap("instructions_freeplay_title");
mcLevel1.txtInstructions.htmlText = com.digitaloutlook.pop.Application.fIdMap("instructions_freeplay_body");
} else {
mcLevel1.txtTitle.htmlText = com.digitaloutlook.pop.Application.fIdMap("instructions_title");
mcLevel1.txtInstructions.htmlText = com.digitaloutlook.pop.Application.fIdMap("instructions_body");
}
}
}
function fStartCountdown() {
if (!bisHelpScreen) {
mcCountdown.gotoAndPlay("_start");
}
}
function fCloseAnimFinished(arg_target) {
bisOpen = false;
if (arg_target._name == "mcBg") {
hide();
com.digitaloutlook.pop.Application.getInstance().fStartLevel();
}
}
function show() {
trace("infoscreen : show" + _currentframe);
_visible = true;
}
function hide() {
trace("infoscreen : hide");
_visible = false;
}
}
Symbol 335 MovieClip [__Packages.com.digitaloutlook.pop.Application] Frame 0
class com.digitaloutlook.pop.Application extends MovieClip
{
static var instance, xml;
var arrItems, _parent, bFirstTime, mcVisitSite, mcIntro, mcStart, mcFreeplay, mcReleaseDate, mcHelp, txtCopyright, sGamePlay, oItemFactory, mcItemClip, oLevels, nScore, mcInfoScreen, txtHiScoreNum, txtScoreNum, txtScore, txtHiScore, txtLevel, txtLevelNum, mcTimer, nFreeplay, bubbles_txt, musicMC, mcHome, mcLevels, mcCheat, gotoAndStop, sndGameover, mcHatch, nShot, nItemsHit, sndWalleWow, mcEndPanelCopy, mcRestart, sndLaserRed, sndLaserBlue, mcBackground, mcLaser, mcBeam, txtBubblesPopped, getURL, sndLaserRedMC, createEmptyMovieClip, getNextHighestDepth, sndLaserBlueMC, sndWalleWowMC, sndGameplay, sndGameplayMC, sndGeneral, sndGeneralMC, sndGameoverMC, intGeneralSFX, intGameSFX;
function Application () {
super();
arrItems = new Array();
instance = this;
setupSounds();
}
function onLoad() {
setXML(_parent.mainXML);
initIntroScreen();
}
static function getInstance() {
return(instance);
}
function initIntroScreen() {
var me = this;
bFirstTime = true;
mcVisitSite.txt.htmlText = fIdMap("visit_site");
mcIntro.titleMC.title_txt.htmlText = fIdMap("game_title");
mcIntro.introMC.txtIntro.htmlText = fIdMap("intro_copy");
mcStart.fSetText(fIdMap("start"));
mcStart.onRelease = function () {
me.bFreeplayActive = false;
me.sGamePlay = "Timer";
me.mcHatch.gotoAndPlay("_close");
me.submitTrack("play");
};
mcFreeplay.fSetText(fIdMap("freeplay_title"));
mcFreeplay.onRelease = function () {
me.bFreeplayActive = true;
me.sGamePlay = "Freeplay";
me.mcHatch.gotoAndPlay("_close");
me.submitTrack("play");
};
mcReleaseDate.fSetPreReleaseText(fIdMap("prerelease"));
mcReleaseDate.fSetPostReleaseText(fIdMap("postrelease"));
mcReleaseDate.fSetReleaseDate(fIdMap("release_date"));
mcHelp.txt.htmlText = fIdMap("instruction_button");
mcHelp.onRelease = function () {
com.digitaloutlook.pop.Application.getInstance().mcInfoScreen.fShowHelp();
};
var sOfficialSite = fIdMap("official_site");
mcVisitSite.onRelease = function () {
this.getURL(sOfficialSite, "_blank");
};
mcVisitSite.onRollOver = function () {
com.digitaloutlook.pop.Application.getInstance().laserOff();
};
mcVisitSite.onRollOut = function () {
if (this.bGameIsInProgress) {
com.digitaloutlook.pop.Application.getInstance().laserOn();
}
};
txtCopyright.htmlText = fIdMap("copyright");
}
function pause() {
bGameIsInProgress = false;
}
function unpause() {
bGameIsInProgress = true;
mcHelp.enabled = true;
}
function initGameScreen() {
if (sGamePlay == "Timer") {
oItemFactory = new com.digitaloutlook.pop.ItemFactory(mcItemClip);
oLevels = new com.digitaloutlook.pop.Level(oItemFactory);
oLevels.reset();
nScore = 0;
mcInfoScreen.setPopulateLevelIntro(com.digitaloutlook.pop.Level.__get__currentLevel());
if (nHiScore == 0) {
txtHiScoreNum.text = "000000";
}
txtScoreNum.text = "0";
txtScore.htmlText = fIdMap("score");
txtHiScore.htmlText = fIdMap("high_score");
txtLevel.htmlText = fIdMap("level");
txtLevelNum.text = "1";
mcTimer._visible = true;
mcFreeplay._visible = false;
} else {
var appInst = this;
mcFreeplay.newsheetTxt.htmlText = fIdMap("newsheet_title");
oItemFactory = new com.digitaloutlook.pop.ItemFactory(mcItemClip);
oLevels = new com.digitaloutlook.pop.Level(oItemFactory);
oLevels.reset();
nScore = 0;
mcInfoScreen.setPopulateLevelIntro(-1);
mcFreeplay._visible = true;
txtScoreNum.text = "";
txtScore.htmlText = "";
txtLevel.htmlText = "";
txtLevelNum.text = "";
nFreeplay = mcFreeplay.mc_freeplay1;
mcFreeplay.mc_freeplay1.onRollOver = (mcFreeplay.mc_freeplay2.onRollOver = (mcFreeplay.mc_freeplay3.onRollOver = function () {
appInst.laserOff();
this.gotoAndStop(2);
}));
mcFreeplay.mc_freeplay1.onRollOut = (mcFreeplay.mc_freeplay2.onRollOut = (mcFreeplay.mc_freeplay3.onRollOut = function () {
if ((!com.digitaloutlook.pop.InfoScreen.getInstance().bisOpen) && (!appInst.bFreeplayLevelEnd)) {
appInst.laserOn();
}
if (appInst.nFreeplay != this) {
this.gotoAndStop(1);
}
}));
mcFreeplay.mc_freeplay1.onRelease = (mcFreeplay.mc_freeplay2.onRelease = (mcFreeplay.mc_freeplay3.onRelease = function () {
appInst.bFreeplayLevelEnd = false;
appInst.bGameIsInProgress;
var _local2 = "_" + this._name.split("_")[1];
appInst.sfreeplay = _local2;
if (appInst.nFreeplay != this) {
appInst.nFreeplay.gotoAndStop(1);
appInst.mcLevels.gotoAndStop(_local2);
} else {
appInst.mcLevels.layoutMC.gotoAndPlay(1);
}
this.gotoAndPlay(3);
appInst.nFreeplay = this;
}));
}
bubbles_txt.htmlText = fIdMap("bubblesLeft");
var appInst = this;
mcHelp.onRelease = function () {
this.enabled = false;
appInst.mcInfoScreen.fShowHelp(appInst.sGamePlay);
appInst.laserOff();
appInst.bGameIsPaused = true;
};
mcHelp.onRollOver = function () {
appInst.laserOff();
};
mcHelp.onRollOut = function () {
if ((!com.digitaloutlook.pop.InfoScreen.getInstance().bisHelpScreen) && (!appInst.bFreeplayLevelEnd)) {
appInst.laserOn();
}
};
if (!isMusicActive) {
musicMC.gotoAndStop("off");
}
var appInst = this;
musicMC.onRelease = function () {
if (appInst.isMusicActive) {
appInst.fadeMusicDown();
this.gotoAndStop("off");
} else {
appInst.fadeMusicUp();
this.gotoAndStop("on");
}
};
musicMC.onRollOver = function () {
appInst.laserOff();
};
musicMC.onRollOut = function () {
if ((!com.digitaloutlook.pop.InfoScreen.getInstance().bisHelpScreen) && (!appInst.bFreeplayLevelEnd)) {
appInst.laserOn();
}
};
mcHome.txt.htmlText = fIdMap("home");
mcHome.onRollOver = function () {
appInst.laserOff();
};
mcHome.onRollOut = function () {
if ((!com.digitaloutlook.pop.InfoScreen.getInstance().bisHelpScreen) && (!appInst.bFreeplayLevelEnd)) {
appInst.laserOn();
}
};
mcHome.onRelease = function () {
appInst.fResetGame();
appInst.isGeneralMusicActive = false;
appInst.fadeGeneralSFXDown();
appInst.isGameMusicActive = false;
appInst.fadeGameSFXDown();
var nInt = setInterval(function () {
appInst.initIntroScreen();
clearInterval(nInt);
}, 100);
};
var sOfficialSite = fIdMap("official_site");
mcVisitSite.onRelease = function () {
this.getURL(sOfficialSite, "_blank");
};
mcVisitSite.onRollOver = function () {
appInst.laserOff();
};
mcVisitSite.onRollOut = function () {
if (((!com.digitaloutlook.pop.InfoScreen.getInstance().bisHelpScreen) && (!appInst.bFreeplayLevelEnd)) && (!appInst.bHatchClosed)) {
appInst.laserOn();
}
};
mcLevels.start(sGamePlay);
mcCheat.onRollOver = function () {
com.digitaloutlook.pop.Application.getInstance().laserOff();
};
mcCheat.onRollOut = function () {
if (com.digitaloutlook.pop.Application.getInstance().bGameIsInProgress) {
com.digitaloutlook.pop.Application.getInstance().laserOn();
}
};
mcCheat.onRelease = function () {
com.digitaloutlook.pop.Application.getInstance().fDoEndLevel();
};
}
function hatchClosed() {
isGameMusicActive = false;
fadeGameSFXDown();
isGeneralMusicActive = true;
fadeGeneralSFXUp();
bHatchClosed = true;
if ((com.digitaloutlook.pop.Level.__get__currentLevel() == null) || (com.digitaloutlook.pop.Level.__get__currentLevel() == 0)) {
gotoAndStop("_game");
mcTimer._visible = false;
}
mcLevels.start(sGamePlay);
}
function hatchOpen() {
isGeneralMusicActive = false;
fadeGeneralSFXDown();
if (sGameOver) {
sndGameover.start(0, 1);
} else {
isGameMusicActive = true;
fadeGameSFXUp();
}
bHatchClosed = false;
}
function fStartLevel() {
mcHelp.enabled = true;
if (sGamePlay == "Timer") {
txtLevelNum.text = String(com.digitaloutlook.pop.Level.__get__currentLevel() + 1);
}
mcHatch.gotoAndPlay("_open");
var me = this;
var nInt = setInterval(function () {
me.oLevels.startNextLevel();
me.onStartShoot();
clearInterval(nInt);
}, 1000);
}
function fResetGame() {
fResetVars();
getInstance().gotoAndStop("_intro");
}
function fResetVars() {
sGameOver = false;
mcTimer.resetTimer();
bGameIsInProgress = false;
oLevels.reset();
getInstance().laserOff();
}
function onStartShoot() {
bGracePeriod = true;
nShot = 0;
nItemsHit = 0;
bGameIsInProgress = true;
if (sGamePlay == "Timer") {
mcTimer.start();
}
laserOn();
new com.digitaloutlook.pop.displacement_filter.MeltAreaEffect(this, mcLevels);
var me = this;
var nInt = setInterval(function () {
me.bGracePeriod = false;
clearInterval(nInt);
}, 2000);
}
function fDoEndLevel() {
sndWalleWow.start(0, 1);
if (sGamePlay == "Timer") {
laserOff();
oLevels.levelEnded();
mcHelp.enabled = false;
mcTimer.stop();
bGameIsInProgress = false;
var me = this;
var nLevelScore = (mcTimer.returnTime() * 10);
var nCloseInt = setInterval(function () {
me.mcHatch.gotoAndPlay("_close");
clearInterval(nCloseInt);
}, 1000);
if (sGamePlay == "Timer") {
var nInt = setInterval(function () {
clearInterval(nInt);
var _local1 = Math.round((me.nItemsHit / me.nShot) * 100);
if (isNaN(_local1)) {
_local1 = 0;
}
me.mcInfoScreen.setPopulateLevelIntro(com.digitaloutlook.pop.Level.END_OF_LEVEL, nLevelScore, me.nScore);
me.nScore = me.nScore + nLevelScore;
}, 2000);
} else {
var nInt = setInterval(function () {
clearInterval(nInt);
var _local1 = Math.round((me.nItemsHit / me.nShot) * 100);
if (isNaN(_local1)) {
_local1 = 0;
}
me.mcInfoScreen.setPopulateLevelIntro(-1, nLevelScore, me.nScore);
com.digitaloutlook.pop.Application.getInstance().mcLevels.gotoAndStop(1);
com.digitaloutlook.pop.Application.getInstance().mcLevels.gotoAndStop(com.digitaloutlook.pop.Application.getInstance().sfreeplay);
}, 2000);
}
} else {
sndWalleWow.start(0, 1);
laserOff();
bGameIsInProgress = false;
bFreeplayLevelEnd = true;
}
}
function fDoEndGame() {
fDoEndGameSetup("pass");
mcEndPanelCopy.mcBoard.txtTitle.htmlText = fIdMap("end_title");
}
function fDoEndGameFail() {
fDoEndGameSetup("fail");
mcEndPanelCopy.mcBoard.txtTitle.htmlText = fIdMap("end_title_fail");
}
function fDoEndGameSetup(endState) {
sGameOver = true;
com.digitaloutlook.pop.BubbleSheet.getInstance().stopSounds();
bGameIsInProgress = false;
laserOff();
gotoAndStop("_endgame");
if (endState == "fail") {
mcEndPanelCopy.mcBoard.gotoAndStop(2);
} else {
mcEndPanelCopy.mcBoard.gotoAndStop(1);
}
mcEndPanelCopy.mcBoard.txtScore.htmlText = fIdMap("end_score");
mcEndPanelCopy.mcBoard.txtBestscore.htmlText = fIdMap("end_bestscore");
mcEndPanelCopy.mcBoard.txtnScore.text = String(nScore);
if (nScore > nHiScore) {
nHiScore = nScore;
}
mcEndPanelCopy.mcBoard.txtnHiScore.text = String(nHiScore);
mcRestart.fSetText(fIdMap("restart_btn"));
mcRestart.copy = fIdMap("restart_btn");
var me = this;
mcRestart.onRelease = function () {
me.fResetVars();
me.submitTrack("play again");
me.mcHatch.gotoAndPlay("_close");
var nGameInt = setInterval(function () {
me.gotoAndStop("_game");
clearInterval(nGameInt);
}, 1000);
};
mcHatch.gotoAndPlay("_open");
}
function laserHitWalle() {
if ((sGamePlay == "Timer") && (!bGracePeriod)) {
if (sLaserSound == "blue") {
sLaserSound = "red";
sndLaserRed.start(0, 100);
sndLaserBlue.stop();
}
clearInterval(nInt);
mcBackground.mcWallEAnim.gotoAndPlay("_hit");
mcLaser.mcBeam.gotoAndStop(2);
bIsLaserActive = false;
var me = this;
var nInt = setInterval(function () {
clearInterval(nInt);
me.mcLaser.mcBeam.gotoAndStop(1);
me.bIsLaserActive = true;
if ((me.sLaserSound == "red") && (me.bGameIsInProgress)) {
me.sLaserSound = "blue";
me.sndLaserRed.stop();
}
}, 2000);
}
}
function wallEanimEnded() {
laserOn();
bGameIsInProgress = true;
}
function checkLaser() {
if (bGameIsInProgress || (sGamePlay == "Freeplay")) {
laserOn();
}
}
function laserOn() {
bGameIsPaused = false;
bGameIsInProgress = true;
mcBeam._visible = true;
mcLaser._visible = true;
Mouse.hide();
}
function laserOff() {
sndLaserBlue.stop();
sndLaserRed.stop();
bGameIsInProgress = false;
mcBeam._visible = false;
mcLaser._visible = false;
Mouse.show();
}
static function setXML(arg_xml) {
xml = arg_xml;
}
static function getXML() {
return(xml);
}
static function fIdMap(arg_s) {
return(xml.idMap[arg_s].childNodes[0].nodeValue);
}
function fUpdatePoppedBubbles(numPopped, numTotal) {
if (sGamePlay == "Timer") {
nScore = nScore + nScoreInc;
txtScoreNum.text = String(nScore);
}
fSetPoppedText(numPopped, numTotal);
}
function fSetPoppedText(numPopped, numTotal) {
var _local2 = numTotal - numPopped;
txtBubblesPopped.text = _local2;
}
function fDoTime() {
com.digitaloutlook.GameTimer.getInstance().fResetTimer();
}
function submitTrack(sID) {
getURL(("javascript:jSimpleTrack ('" + sID) + "');");
}
function setupSounds() {
if (!sndLaserRed) {
sndLaserRedMC = createEmptyMovieClip("sndLaserRedMC", getNextHighestDepth());
sndLaserRed = new Sound(sndLaserRedMC);
sndLaserRed.attachSound("SFXLaserRed");
sndLaserRed.setVolume(50);
sndLaserRed.stop();
}
if (!sndLaserBlue) {
sndLaserBlueMC = createEmptyMovieClip("sndLaserBlueMC", getNextHighestDepth());
sndLaserBlue = new Sound(sndLaserBlueMC);
sndLaserBlue.attachSound("SFXLaserBlue");
sndLaserBlue.setVolume(50);
sndLaserBlue.stop();
}
if (!sndWalleWow) {
sndWalleWowMC = createEmptyMovieClip("sndWalleWowMC", getNextHighestDepth());
sndWalleWow = new Sound(sndWalleWowMC);
sndWalleWow.attachSound("SFXWalleWow");
sndWalleWow.setVolume(80);
sndWalleWow.stop();
}
if (!sndGameplay) {
sndGameplayMC = createEmptyMovieClip("sndGameplayMC", getNextHighestDepth());
sndGameplay = new Sound(sndGameplayMC);
sndGameplay.attachSound("SFXGameplay");
sndGameplay.setVolume(0);
sndGameplay.stop();
}
if (!sndGeneral) {
sndGeneralMC = createEmptyMovieClip("sndGeneralMC", getNextHighestDepth());
sndGeneral = new Sound(sndGeneralMC);
sndGeneral.attachSound("SFXGeneral");
sndGeneral.setVolume(0);
sndGeneral.stop();
}
if (!sndGameover) {
sndGameoverMC = createEmptyMovieClip("sndGameoverMC", getNextHighestDepth());
sndGameover = new Sound(sndGameoverMC);
sndGameover.attachSound("SFXGameover");
sndGameover.setVolume(0);
sndGameover.stop();
}
}
function fadeGeneralSFXUp() {
clearInterval(intGeneralSFX);
if (isMusicActive) {
sndGeneral.start(0, 1000);
var appInst = this;
intGeneralSFX = setInterval(function () {
var _local1 = appInst.sndGeneral.getVolume();
if (_local1 < 70) {
appInst.sndGeneral.setVolume(_local1 + 5);
} else {
clearInterval(appInst.intGeneralSFX);
}
}, 50);
}
}
function fadeGeneralSFXDown() {
clearInterval(intGeneralSFX);
var appInst = this;
intGeneralSFX = setInterval(function () {
var _local1 = appInst.sndGeneral.getVolume();
if (_local1 > 0) {
appInst.sndGeneral.setVolume(_local1 - 5);
} else {
appInst.sndGeneral.stop();
clearInterval(appInst.intGeneralSFX);
}
}, 50);
}
function fadeGameSFXUp() {
clearInterval(intGameSFX);
if (isMusicActive) {
sndGameplay.start(0, 1000);
var appInst = this;
intGameSFX = setInterval(function () {
var _local1 = appInst.sndGameplay.getVolume();
if (_local1 < 100) {
appInst.sndGameplay.setVolume(_local1 + 5);
} else {
clearInterval(appInst.intGameSFX);
}
}, 50);
}
}
function fadeGameSFXDown() {
clearInterval(intGameSFX);
var appInst = this;
intGameSFX = setInterval(function () {
var _local1 = appInst.sndGameplay.getVolume();
if (_local1 > 0) {
appInst.sndGameplay.setVolume(_local1 - 5);
} else {
appInst.sndGameplay.stop();
clearInterval(appInst.intGameSFX);
}
}, 50);
}
function fadeMusicDown() {
isMusicActive = false;
fadeGameSFXDown();
fadeGeneralSFXDown();
}
function fadeMusicUp() {
isMusicActive = true;
trace("app : isGameMusicActive : " + isGameMusicActive);
if (isGameMusicActive) {
fadeGameSFXUp();
}
if (isGeneralMusicActive) {
fadeGeneralSFXUp();
}
}
var bGameIsInProgress = false;
var bGameIsPaused = false;
var bIsLaserActive = true;
var nScoreInc = 5;
var nHiScore = 0;
var sfreeplay = "_freeplay1";
var bFreeplayActive = false;
var bFreeplayLevelEnd = false;
var bHatchClosed = false;
var bGracePeriod = true;
var sGameOver = false;
var sLaserSound = "blue";
var isMusicActive = true;
var isGameMusicActive = true;
var isGeneralMusicActive = true;
}
Symbol 336 MovieClip [__Packages.com.digitaloutlook.pop.ItemFactory] Frame 0
class com.digitaloutlook.pop.ItemFactory
{
var mcCon, __get__difficulty;
function ItemFactory (arg) {
mcCon = arg;
}
function fNewDontHitItem(arg_xPos, arg_yPos) {
var _local2 = new com.digitaloutlook.pop.items.Item("mcDontHit", mcCon, arg_xPos, arg_yPos);
fInitItem(_local2);
_local2.points = -300;
_local2.allowedToHit = false;
_local2.explosionType = 2;
return(_local2);
}
function fNewSingleItem(arg_xPos, arg_yPos) {
var _local2 = new com.digitaloutlook.pop.items.Item("mcTestItem1", mcCon, arg_xPos, arg_yPos);
fInitItem(_local2);
var _local3 = Math.ceil(Math.random() * 2);
_local2.mc.gotoAndStop(_local3);
_local2.points = 100;
return(_local2);
}
static function fNewAnyItem(arg_con, arg_mcItem, arg_xPos, arg_yPos) {
var _local1 = new com.digitaloutlook.pop.items.Item(arg_mcItem, arg_con, arg_xPos, arg_yPos);
fInitItem(_local1);
return(_local1);
}
function fNewLetterItem(arg_xPos, arg_yPos, arg_nLevel) {
var _local2 = new com.digitaloutlook.pop.items.Item("mcLetter_" + arg_nLevel, mcCon, arg_xPos, arg_yPos);
_local2.rotationInc = 10;
_local2.points = 150;
_local2.type = "letter" + arg_nLevel;
_local2.explosionType = 3;
fInitItem(_local2);
return(_local2);
}
function fNewMultiHit(arg_xPos, arg_yPos, arg_strength) {
var _local2 = new com.digitaloutlook.pop.items.MultiHitItem("mcMultiHit" + Math.ceil(Math.random() * 2), mcCon, arg_xPos, arg_yPos);
fInitItem(_local2);
var _local3 = randRange(5, 10);
if (_local2.x > (Stage.width / 2)) {
_local3 = _local3 * -1;
}
_local2.setVel(_local3, -randRange(25, 30));
_local2.hits = arg_strength;
_local2.points = arg_strength * 150;
_local2.explosionType = 3;
return(_local2);
}
function fNewRichochetItem(arg_xPos, arg_yPos, arg_strength) {
var _local2 = new com.digitaloutlook.pop.items.RichochetItem("mcRicochet", mcCon, arg_xPos, arg_yPos);
fInitItem(_local2);
_local2.points = arg_strength * 100;
_local2.hits = arg_strength;
_local2.setScale(randRange(50, 80));
return(_local2);
}
function fNewShip() {
var _local6 = [0, Stage.width - 30];
var _local5 = randRange(150, 300);
var _local4 = Math.round(Math.random()) - 1;
var _local2 = new com.digitaloutlook.pop.items.Item("mcShip", mcCon, _local6[_local4 + 1], _local5);
var _local3 = Math.round(randRange(15, 20));
if (_local4 != -1) {
_local3 = -_local3;
} else {
_local2.setRotation(180);
}
_local2.points = 100;
_local2.setVel(_local3, -10);
_local2.gravity = nGravity;
_local2.drag = 1;
_local2.explosionType = 3;
_local2.type = "shooter";
fNewFoam(_local2.mc.mcFoam);
return(_local2);
}
function fNewFoam(arg_mcCon) {
var arrItems = new Array();
var _local2 = 0;
while (_local2 < 15) {
var _local1 = fNewAnyItem(arg_mcCon, "mcTrace", randRange(0, 50), randRange(-5, 5));
_local1.shrink = 1.03;
_local1.gravity = 0;
_local1.setScale(randRange(50, 100));
_local1.__set__fadeInc(randRange(3, 7));
_local1.__set__alpha(69);
_local1.setVel(0, 0);
arrItems.push(_local1);
_local2++;
}
arg_mcCon.onEnterFrame = function () {
var _local1 = 0;
while (_local1 < arrItems.length) {
arrItems[_local1].update();
_local1++;
}
};
}
function fNewExplosionParticle(arg_xPos, arg_yPos, arg_type) {
var _local2;
if (arg_type == null) {
_local2 = new com.digitaloutlook.pop.items.Item("mcExplosion", mcCon, arg_xPos, arg_yPos);
} else {
_local2 = new com.digitaloutlook.pop.items.Item("mcExplosion" + arg_type, mcCon, arg_xPos, arg_yPos);
}
_local2.__set__rotationInc(randRange(3, 20));
_local2.__set__fadeInc(randRange(3, 6));
_local2.setScale(randRange(50, 100));
_local2.shrink = 0.97;
fInitItem(_local2);
_local2.setVel(randRange(-20, 20), randRange(-20, 20));
return(_local2);
}
static function fNewLaserBeam(arg_xStartPos, arg_yStartPos, arg_xEndPos, arg_yEndPos, arg_nAngle, arg_mcCon) {
var _local3 = 60;
var _local6 = (arg_xEndPos - arg_xStartPos) / _local3;
var _local5 = (arg_yEndPos - arg_yStartPos) / _local3;
var _local4 = new Array();
var _local1 = 0;
while (_local1 < _local3) {
if (_local1 > 1) {
var _local2 = new com.digitaloutlook.pop.items.Item("mcLaserBeam", arg_mcCon, arg_xStartPos + (_local6 * _local1), arg_yStartPos + (_local5 * _local1), arg_nAngle);
_local4.push(_local2);
_local2.setVel(0, 0);
_local2.shrink = 0.75;
}
_local1++;
}
return(_local4);
}
static function fInitItem(arg_item) {
var _local1 = arg_item;
var _local2 = randRange(7, 15);
if (_local1.x > (Stage.width / 2)) {
_local2 = _local2 * -1;
}
_local1.rotationInc = Math.round(randRange(-15, 15));
_local1.setVel(_local2, -randRange(20, 25));
_local1.drag = nDrag;
_local1.gravity = nGravity;
}
function set difficulty(arg) {
nDifficulty = arg;
//return(__get__difficulty());
}
static function randRange(min, max) {
var _local1 = (Math.random() * (max - min)) + min;
return(_local1 * nDifficulty);
}
static var nGravity = 0.7;
static var nDrag = 0.96;
static var nDifficulty = 1;
}
Symbol 337 MovieClip [__Packages.com.digitaloutlook.pop.items.Item] Frame 0
class com.digitaloutlook.pop.items.Item
{
var clip, xVel, yVel, __get__fadeInc, nRotation, __get__rotationInc, nPoints, nExplosionType;
function Item (arg_linkageName, arg_con, xpos, ypos, rot) {
var _local2 = arg_con.getNextHighestDepth();
clip = arg_con.attachMovie(arg_linkageName, arg_linkageName + _local2, _local2);
clip._x = xpos;
clip._y = ypos;
if (rot != null) {
clip._rotation = rot;
}
}
function get mc() {
return(clip);
}
function setRotation(arg_rot) {
clip._rotation = arg_rot;
}
function setVel(xvel, yvel) {
xVel = xvel;
yVel = yvel;
}
function setScale(newscale) {
clip._xscale = (clip._yscale = newscale);
}
function set fadeInc(newfade) {
fade = newfade;
//return(__get__fadeInc());
}
function set rotationInc(newRotation) {
nRotation = newRotation;
//return(__get__rotationInc());
}
function update() {
clip._x = clip._x + xVel;
clip._y = clip._y + yVel;
xVel = xVel * drag;
yVel = yVel * drag;
clip._xscale = (clip._yscale = clip._yscale * shrink);
clip._alpha = clip._alpha - fade;
clip._rotation = clip._rotation + nRotation;
yVel = yVel + gravity;
}
function get isOnScreen() {
if (((clip._y > Stage.height) || (clip._x > (Stage.width + clip._width))) || (clip._x < (-clip._width))) {
return(false);
}
return(true);
}
function hit() {
hits--;
}
function get destroyed() {
return(hits <= 0);
}
function get alpha() {
return(mc._alpha);
}
function set alpha(arg) {
mc._alpha = arg;
//return(alpha);
}
function get x() {
return(mc._x);
}
function get y() {
return(mc._y);
}
function set points(arg) {
nPoints = arg;
//return(points);
}
function set explosionType(arg) {
nExplosionType = arg;
//return(explosionType);
}
function get explosionType() {
return(nExplosionType);
}
function get points() {
return(nPoints);
}
function get scale() {
return(clip._xscale);
}
function destroy() {
clip.removeMovieClip();
}
var drag = 1;
var shrink = 1;
var gravity = 0;
var fade = 0;
var rotation = 0;
var hits = 1;
var allowedToHit = true;
}
Symbol 338 MovieClip [__Packages.com.digitaloutlook.pop.items.MultiHitItem] Frame 0
class com.digitaloutlook.pop.items.MultiHitItem extends com.digitaloutlook.pop.items.Item
{
var hits, __get__mc;
function MultiHitItem (arg_linkageName, arg_con, xpos, ypos) {
super(arg_linkageName, arg_con, xpos, ypos);
}
function hit() {
super.hit();
if (hits > 0) {
__get__mc().gotoAndStop("_hit" + hits);
}
}
}
Symbol 339 MovieClip [__Packages.com.digitaloutlook.pop.items.RichochetItem] Frame 0
class com.digitaloutlook.pop.items.RichochetItem extends com.digitaloutlook.pop.items.MultiHitItem
{
var hits, __get__mc, yVel, __get__x, xVel;
function RichochetItem (arg_linkageName, arg_con, xpos, ypos) {
super(arg_linkageName, arg_con, xpos, ypos);
}
function hit() {
super.hit();
if (hits > 0) {
__get__mc().gotoAndStop("_hit" + hits);
}
yVel = -((Math.random() * 10) + 20);
var _local3 = Math.round(Math.random() * 4) + 4;
if (__get__x() > (Stage.width / 2)) {
_local3 = _local3 * -1;
}
xVel = _local3;
}
}
Symbol 340 MovieClip [__Packages.com.digitaloutlook.pop.LevelsClip] Frame 0
class com.digitaloutlook.pop.LevelsClip extends MovieClip
{
var gotoAndStop, _visible;
function LevelsClip () {
super();
hide();
}
function start(sGamePlay) {
if (sGamePlay == "Timer") {
gotoAndStop("_level" + (com.digitaloutlook.pop.Level.__get__currentLevel() + 1));
} else {
gotoAndStop("_freeplay1");
}
show();
}
function hide() {
_visible = false;
}
function show() {
_visible = true;
}
}
Symbol 341 MovieClip [__Packages.com.digitaloutlook.pop.Level] Frame 0
class com.digitaloutlook.pop.Level
{
static var bGameEnded, nLevel;
var oItemFactory, arrLevels, nNext, nStage, bLevelEnded, bStageEnded, nInt, arrTypes, x, y;
function Level (arg_oItemFactory) {
oItemFactory = arg_oItemFactory;
}
function startNextLevel() {
bGameEnded = false;
fStart(arrLevels[nLevel]);
}
function reset() {
nLevel = LEVEL_ONE;
}
function fStart(arg_oLevel) {
var _local2 = arg_oLevel;
nNext = 0;
nStage = 0;
bLevelEnded = false;
bStageEnded = false;
}
function nextStage() {
clearInterval(nInt);
bStageEnded = false;
var _local2 = this;
}
function checkNextMove() {
nNext++;
if (nNext > (arrTypes[nStage].length - 1)) {
nStage++;
nNext = 0;
if (arrTypes[nStage] == null) {
if (arrLevels[nLevel + 1] == null) {
bGameEnded = true;
}
nStage = 0;
nLevel++;
bLevelEnded = true;
} else {
bStageEnded = true;
}
}
}
static function get currentLevel() {
return(nLevel);
}
static function get gameEnded() {
return(nLevel > LEVEL_EIGHT);
}
function levelEnded() {
nLevel++;
}
function get lastThrownPos() {
return([x, y]);
}
function get stageEnded() {
return(bStageEnded);
}
static var LEVEL_ONE = 0;
static var LEVEL_TWO = 1;
static var LEVEL_THREE = 2;
static var LEVEL_FOUR = 3;
static var LEVEL_FIVE = 4;
static var LEVEL_SIX = 5;
static var LEVEL_SEVEN = 6;
static var LEVEL_EIGHT = 7;
static var LEVEL_NINE = 8;
static var LEVEL_TEN = 9;
static var LEVEL_ELEVEN = 10;
static var LEVEL_TWELVE = 11;
static var END_OF_LEVEL = 99;
var SINGLE = 1;
var SHOOTER = 2;
var LETTER = 3;
var DONTHIT = 4;
var RICOCHET = 5;
var MULTI = 6;
}
Symbol 342 MovieClip [__Packages.com.digitaloutlook.GameTimer] Frame 0
class com.digitaloutlook.GameTimer extends MovieClip
{
static var instance;
var txtCopy, elapsedTime, nTimeRemaining, nInt, txt;
function GameTimer () {
super();
instance = this;
}
static function getInstance() {
return(instance);
}
function onLoad() {
resetTimer();
txtCopy.htmlText = com.digitaloutlook.pop.Application.fIdMap("timer");
elapsedTime = new Date();
}
function start() {
resetTimer();
fStartTimer();
}
function get levelTime() {
return(nTimeRemaining);
}
function returnTime() {
return(nTimeRemaining);
}
function stop() {
clearInterval(nInt);
}
function fResetTimer() {
if (com.digitaloutlook.pop.Level.__get__currentLevel() < 5) {
gameTime = 45;
} else {
gameTime = 60;
}
txt.text = String(gameTime);
}
function fStartTimer() {
clearInterval(nInt);
nTimeRemaining = gameTime;
var me = this;
nInt = setInterval(function () {
if (!com.digitaloutlook.pop.InfoScreen.getInstance().bisHelpScreen) {
me.nTimeRemaining = me.nTimeRemaining - 1;
me.fDisplayTime();
me.fCheckEndGame();
}
}, 1000);
}
function fDisplayTime() {
txt.text = nTimeRemaining.toString();
}
function fCheckEndGame() {
if (nTimeRemaining == 0) {
clearInterval(nInt);
com.digitaloutlook.pop.Application.getInstance().fDoEndGameFail();
}
}
function resetTimer() {
clearInterval(nInt);
txt.text = gameTime.toString();
}
var gameTime = 45;
}
Symbol 343 MovieClip [__Packages.com.digitaloutlook.pop.displacement_filter.MeltAreaEffect] Frame 0
class com.digitaloutlook.pop.displacement_filter.MeltAreaEffect
{
var mcMaster, mcImage, mcDisplacement, mcDrawClip, bmdDisplacement, bmdNewStuff, cmf, dmf;
function MeltAreaEffect (mstr, image) {
mcMaster = mstr;
mcImage = image;
var _local4 = mcImage._width;
var _local5 = mcImage._height;
mcDisplacement = mcMaster.createEmptyMovieClip("displacementclip", mcMaster.getNextHighestDepth());
var _local6 = mcDisplacement.createEmptyMovieClip("baselayer", 1);
var _local7 = new flash.display.BitmapData(_local4, _local5, false, 8323072);
_local6.attachBitmap(_local7, 1);
mcDrawClip = mcDisplacement.createEmptyMovieClip("toplayer", 10);
mcDrawClip._visible = false;
bmdDisplacement = new flash.display.BitmapData(_local4, _local5);
bmdNewStuff = new flash.display.BitmapData(_local4, _local5, true, 0);
mcDisplacement.attachBitmap(bmdNewStuff, 5);
mcDisplacement._visible = false;
var _local3 = mcDrawClip.createEmptyMovieClip("drop" + d, d);
var d = _local3.getNextHighestDepth();
_local3 = _local3.createEmptyMovieClip("drop" + d, d);
_local3.attachMovie("mcBurnArea", "mcBurnArea", _local3.getNextHighestDepth());
_local3.startDrag(true);
var _local2 = new Array();
_local2 = _local2.concat([1, 0, 0, 0, 0]);
_local2 = _local2.concat([0, 1, 0, 0, 0]);
_local2 = _local2.concat([0, 0, 1, 0, 0]);
_local2 = _local2.concat([0, 0, 0, 0.95, 0]);
cmf = new flash.filters.ColorMatrixFilter(_local2);
setInterval(this, "drawDisplacementMap", 40);
}
function drawDisplacementMap() {
bmdNewStuff.draw(mcDrawClip);
bmdNewStuff.applyFilter(bmdNewStuff, bmdNewStuff.rectangle, new flash.geom.Point(0, 0), cmf);
bmdDisplacement.draw(mcDisplacement);
dmf = new flash.filters.DisplacementMapFilter(bmdDisplacement, new flash.geom.Point(0, 0), 1, 1, 5, 20);
mcImage.filters = [dmf];
}
}
Symbol 344 MovieClip [__Packages.com.digitaloutlook.pop.BubbleSheet] Frame 0
class com.digitaloutlook.pop.BubbleSheet extends MovieClip
{
static var instance;
var arrBubbles, nRotate, nScale, mcOverlay, _rotation, _parent, _xscale, _yscale, nTotalBubbles, servoSmooth, servoSmoothMC, createEmptyMovieClip, getNextHighestDepth;
function BubbleSheet () {
super();
init();
}
function init() {
instance = this;
arrBubbles = new Array();
nRotate = 0.5;
nScale = 0.5;
fScaleRotate();
setupSounds();
}
static function getInstance() {
return(instance);
}
function onEnterFrame() {
if (com.digitaloutlook.pop.Application.getInstance().bGameIsInProgress && (!com.digitaloutlook.pop.Application.getInstance().bFreeplayActive)) {
var _local4 = {x:_root._xmouse, y:_root._ymouse};
if (mcOverlay.hitTest(_local4.x, _local4.y, true)) {
com.digitaloutlook.pop.Application.getInstance().laserHitWalle();
}
var _local3 = com.digitaloutlook.pop.Level.__get__currentLevel();
if (((_local3 == 2) || (_local3 == 4)) || (_local3 == 7)) {
startSounds();
_rotation = _rotation + nRotate;
if (_rotation > 20) {
nRotate = -nRotate;
}
if (_rotation < -25) {
nRotate = -nRotate;
}
_parent.arms_mc._rotation = _rotation;
}
if (_local3 >= 6) {
startSounds();
_xscale = _xscale + nScale;
_yscale = _yscale + nScale;
_parent.arms_mc._xscale = _parent.arms_mc._xscale + nScale;
_parent.arms_mc._yscale = _parent.arms_mc._yscale + nScale;
if (_xscale > 110) {
nScale = -nScale;
}
if (_xscale < 90) {
nScale = -nScale;
}
}
}
}
function fScaleRotate() {
var _local2 = com.digitaloutlook.pop.Level.__get__currentLevel();
if (_local2 > com.digitaloutlook.pop.Level.LEVEL_SIX) {
nRotate = 1;
}
if (_local2 > com.digitaloutlook.pop.Level.LEVEL_NINE) {
nScale = 1;
}
}
function registerBubble(arg_bubbles) {
var _local3 = false;
var _local2 = 0;
while (_local2 < arrBubbles.length) {
if (arrBubbles[_local2] == arg_bubbles) {
_local3 = true;
break;
}
_local2++;
}
if (!_local3) {
arrBubbles.push(arg_bubbles);
}
nTotalBubbles = arrBubbles.length;
com.digitaloutlook.pop.Application.getInstance().fSetPoppedText(0, nTotalBubbles);
}
function fPopped(arg_bubble) {
var _local2 = 0;
while (_local2 < arrBubbles.length) {
if (arrBubbles[_local2] == arg_bubble) {
arrBubbles.splice(_local2, 1);
break;
}
_local2++;
}
var _local4 = nTotalBubbles - arrBubbles.length;
com.digitaloutlook.pop.Application.getInstance().fUpdatePoppedBubbles(_local4, nTotalBubbles);
if (arrBubbles.length == 0) {
com.digitaloutlook.pop.Application.getInstance().fDoEndLevel();
}
}
function setupSounds() {
if (!servoSmooth) {
servoSmoothMC = createEmptyMovieClip("servoSmoothMC", getNextHighestDepth());
servoSmooth = new Sound(servoSmoothMC);
servoSmooth.attachSound("servoSmooth");
servoSmooth.setVolume(200);
servoSmooth.stop();
}
}
function startSounds() {
if (!soundsPlaying) {
soundsPlaying = true;
servoSmooth.start(0, 1000);
}
}
function stopSounds() {
soundsPlaying = false;
servoSmooth.stop();
}
var soundsPlaying = false;
}
Symbol 345 MovieClip [__Packages.com.digitaloutlook.pop.Bubble] Frame 0
class com.digitaloutlook.pop.Bubble extends MovieClip
{
var bIsPopable, _parent, mcPopSound, _xscale, gotoAndPlay, enabled;
function Bubble () {
super();
bIsPopable = true;
_parent.registerBubble(this);
var _local3 = new Sound(mcPopSound);
_local3.setVolume(1000);
}
function onRollOver() {
if (com.digitaloutlook.pop.Application.getInstance().bGameIsInProgress && (com.digitaloutlook.pop.Application.getInstance().bIsLaserActive)) {
pop();
}
}
function pop() {
var _local2 = 1 + random(4);
if (_xscale == 100) {
mcPopSound.gotoAndPlay("pop_" + _local2);
} else if (_xscale > 100) {
mcPopSound.gotoAndPlay("pop_low_" + _local2);
} else {
mcPopSound.gotoAndPlay("pop_high_" + _local2);
}
gotoAndPlay("_pop");
bIsPopable = false;
enabled = false;
_parent.fPopped(this);
}
}
Symbol 346 MovieClip [__Packages.com.digitaloutlook.pop.Laser] Frame 0
class com.digitaloutlook.pop.Laser extends MovieClip
{
var nStartX, _x, _y, _parent, _rotation, mcBeam, _visible;
function Laser () {
super();
}
function onLoad() {
nStartX = _x;
}
function onEnterFrame() {
if (com.digitaloutlook.pop.Application.getInstance().bGameIsInProgress) {
var _local3 = {x:_x, y:_y};
_parent.localToGlobal(_local3);
var _local5 = _local3.x - com.digitaloutlook.pop.Application.getInstance()._xmouse;
var _local4 = _local3.y - com.digitaloutlook.pop.Application.getInstance()._ymouse;
var _local6 = Math.sqrt(Math.pow(_local5, 2) + Math.pow(_local4, 2));
_rotation = 0;
mcBeam._x = -(_local6 + 12);
var _local2 = Math.atan2(_local4, _local5) * 57.2957795130823;
if ((_local2 < 5) || (_local2 > 175)) {
_visible = false;
} else {
_visible = true;
}
_rotation = _local2;
}
}
}
Symbol 347 MovieClip [__Packages.com.digitaloutlook.pop.ReleaseDate] Frame 0
class com.digitaloutlook.pop.ReleaseDate extends MovieClip
{
var sPreRelease, sPostRelease, txt;
function ReleaseDate () {
super();
}
function fSetPreReleaseText(arg_sPreRelase) {
sPreRelease = arg_sPreRelase;
}
function fSetPostReleaseText(arg_sPostRelease) {
sPostRelease = arg_sPostRelease;
}
function fSetReleaseDate(arg_sReleaseDate) {
var _local10 = arg_sReleaseDate;
var _local3 = new Date();
var _local6 = _local3.getMonth() + 1;
var _local12 = _local3.getDate();
var _local8 = _local3.getFullYear();
var _local4 = _local10.split("-");
var _local11 = Number(_local4[2]);
var _local7 = Number(_local4[1]);
var _local5 = Number(_local4[0]);
var _local2 = false;
if (_local7 < _local6) {
_local2 = true;
}
if (_local6 == _local7) {
if (_local11 <= _local12) {
_local2 = true;
}
}
if (_local5 < _local8) {
_local2 = true;
}
if (_local5 > _local8) {
_local2 = false;
}
var _local9;
if (!_local2) {
_local9 = sPreRelease;
} else {
_local9 = sPostRelease;
}
txt.htmlText = _local9;
}
}
Symbol 57 MovieClip Frame 3
stop();
Symbol 65 MovieClip Frame 40
stop();
Symbol 68 MovieClip Frame 205
stop();
Symbol 78 MovieClip Frame 8
stop();
Symbol 80 MovieClip Frame 1
function fSetText(arg_sText) {
txt.htmlText = arg_sText;
txt._y = -6 + ((mcBg._height / 2) - ((txt.textHeight + 2) / 2));
}
stop();
if ((txt.text == "") && (copy != undefined)) {
fSetText(copy);
}
Symbol 82 MovieClip Frame 1
function fSetText(arg_sText) {
txt.htmlText = arg_sText;
txt._y = -6 + ((mcBg._height / 2) - ((txt.textHeight + 2) / 2));
trace((("mcStart : " + txt) + " : ") + arg_sText);
}
stop();
if ((txt.text == "") && (copy != undefined)) {
fSetText(copy);
}
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 12
stop();
this._parent.hatchClosed();
btn.useHandCursor = false;
Symbol 90 MovieClip Frame 22
stop();
this._parent.hatchOpen();
Symbol 102 MovieClip Frame 7
stop();
Symbol 103 MovieClip Frame 1
function fSetText(arg_sText) {
txt.htmlText = arg_sText;
txt._y = -6 + ((mcBg._height / 2) - ((txt.textHeight + 2) / 2));
}
stop();
if ((txt.text == "") && (copy != undefined)) {
fSetText(copy);
}
Symbol 108 MovieClip Frame 8
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 1
function fadeIn() {
image_mc.onEnterFrame = function () {
this._alpha = this._alpha + 10;
if (this._alpha >= 100) {
delete this.onEnterFrame;
}
};
}
var image_mc = createEmptyMovieClip("image_mc", getNextHighestDepth());
image_mc._alpha = 0;
var me = this;
var mclListener = new Object();
mclListener.onLoadInit = function (target_mc) {
target_mc._x = target_mc._x - (target_mc._width / 2);
me.fadeIn();
};
var image_mcl = new MovieClipLoader();
image_mcl.addListener(mclListener);
image_mcl.loadClip(_root.cid + "/images/logo.png", image_mc);
Symbol 114 MovieClip [mcReleaseDate] Frame 1
#initclip 31
Object.registerClass("mcReleaseDate", com.digitaloutlook.pop.ReleaseDate);
#endinitclip
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 9
stop();
this._parent.fOpenAnimFinished(this);
Symbol 122 MovieClip Frame 17
this._parent.fCloseAnimFinished(this);
stop();
Symbol 128 MovieClip Frame 20
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 55
this._parent.fCountdownEnded();
gotoAndStop (1);
Symbol 140 MovieClip Frame 15
this._parent.fStartCountdown();
stop();
Symbol 143 MovieClip Frame 15
stop();
Symbol 154 MovieClip [mcInfoScreen] Frame 1
#initclip 15
Object.registerClass("mcInfoScreen", com.digitaloutlook.pop.InfoScreen);
#endinitclip
stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 9
gotoAndStop (1);
Symbol 189 MovieClip Frame 19
gotoAndStop (1);
Symbol 189 MovieClip Frame 29
gotoAndStop (1);
Symbol 189 MovieClip Frame 39
gotoAndStop (1);
Symbol 189 MovieClip Frame 49
gotoAndStop (1);
Symbol 189 MovieClip Frame 59
gotoAndStop (1);
Symbol 189 MovieClip Frame 69
gotoAndStop (1);
Symbol 189 MovieClip Frame 79
gotoAndStop (1);
Symbol 189 MovieClip Frame 89
gotoAndStop (1);
Symbol 189 MovieClip Frame 99
gotoAndStop (1);
Symbol 189 MovieClip Frame 109
gotoAndStop (1);
Symbol 189 MovieClip Frame 119
gotoAndStop (1);
Symbol 196 MovieClip Frame 1
_rotation = random(360);
Symbol 196 MovieClip Frame 5
stop();
Symbol 199 MovieClip [mcBubbleMedium] Frame 1
#initclip 16
Object.registerClass("mcBubbleMedium", com.digitaloutlook.pop.Bubble);
#endinitclip
stop();
Symbol 199 MovieClip [mcBubbleMedium] Frame 2
Symbol 199 MovieClip [mcBubbleMedium] Frame 11
stop();
Symbol 205 MovieClip [mcBubbleSheet_circle] Frame 1
#initclip 17
Object.registerClass("mcBubbleSheet_circle", com.digitaloutlook.pop.BubbleSheet);
#endinitclip
Symbol 210 MovieClip [mcBubbleSheet_square] Frame 1
#initclip 18
Object.registerClass("mcBubbleSheet_square", com.digitaloutlook.pop.BubbleSheet);
#endinitclip
Symbol 216 MovieClip [mcBubbleSheet_square_rotate] Frame 1
#initclip 19
Object.registerClass("mcBubbleSheet_square_rotate", com.digitaloutlook.pop.BubbleSheet);
#endinitclip
Symbol 221 MovieClip [mcBubbleSheet_square_cutout] Frame 1
#initclip 20
Object.registerClass("mcBubbleSheet_square_cutout", com.digitaloutlook.pop.BubbleSheet);
#endinitclip
Symbol 225 MovieClip [mcBubbleSheet_square_cutout_rotate] Frame 1
#initclip 21
Object.registerClass("mcBubbleSheet_square_cutout_rotate", com.digitaloutlook.pop.BubbleSheet);
#endinitclip
Symbol 231 MovieClip [mcBubbleSheet_irregular_cutout] Frame 1
#initclip 22
Object.registerClass("mcBubbleSheet_irregular_cutout", com.digitaloutlook.pop.BubbleSheet);
#endinitclip
Symbol 233 MovieClip [mcBubbleSheet_irregular_cutout_zoom] Frame 1
#initclip 23
Object.registerClass("mcBubbleSheet_irregular_cutout_zoom", com.digitaloutlook.pop.BubbleSheet);
#endinitclip
Symbol 234 MovieClip [mcBubbleSheet_freeplay1] Frame 1
#initclip 24
Object.registerClass("mcBubbleSheet_freeplay1", com.digitaloutlook.pop.BubbleSheet);
#endinitclip
init();
Symbol 234 MovieClip [mcBubbleSheet_freeplay1] Frame 2
stop();
Symbol 235 MovieClip [mcBubbleSheet_freeplay2] Frame 1
#initclip 25
Object.registerClass("mcBubbleSheet_freeplay2", com.digitaloutlook.pop.BubbleSheet);
#endinitclip
init();
Symbol 235 MovieClip [mcBubbleSheet_freeplay2] Frame 2
stop();
Symbol 236 MovieClip [mcBubbleSheet_freeplay3] Frame 1
#initclip 26
Object.registerClass("mcBubbleSheet_freeplay3", com.digitaloutlook.pop.BubbleSheet);
#endinitclip
init();
Symbol 236 MovieClip [mcBubbleSheet_freeplay3] Frame 2
stop();
Symbol 237 MovieClip [mcLevels] Frame 1
#initclip 27
Object.registerClass("mcLevels", com.digitaloutlook.pop.LevelsClip);
#endinitclip
stop();
Symbol 240 MovieClip Frame 1
stop();
Symbol 241 MovieClip [mcLaser] Frame 1
#initclip 28
Object.registerClass("mcLaser", com.digitaloutlook.pop.Laser);
#endinitclip
Symbol 245 MovieClip Frame 8
stop();
Symbol 246 MovieClip Frame 1
function fSetText(arg_sText) {
txt.htmlText = arg_sText;
txt._y = -6 + ((mcBg._height / 2) - ((txt.textHeight + 2) / 2));
trace((("mcStart : " + txt) + " : ") + arg_sText);
}
stop();
if ((txt.text == "") && (copy != undefined)) {
fSetText(copy);
}
Symbol 267 MovieClip Frame 1
stop();
Symbol 278 MovieClip [mcTimer] Frame 1
#initclip 29
Object.registerClass("mcTimer", com.digitaloutlook.GameTimer);
#endinitclip
Symbol 284 MovieClip Frame 8
stop();
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 13
gotoAndStop (2);
Symbol 287 MovieClip Frame 2
stop();
Symbol 287 MovieClip Frame 14
gotoAndStop (2);
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 14
gotoAndStop (2);
Symbol 313 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 126
gotoAndPlay (29);
Symbol 327 MovieClip Frame 24
stop();
Symbol 328 MovieClip Frame 37
stop();
Symbol 329 MovieClip [mcApplication] Frame 1
#initclip 30
Object.registerClass("mcApplication", com.digitaloutlook.pop.Application);
#endinitclip
stop();
Symbol 329 MovieClip [mcApplication] Frame 11
initGameScreen();
Symbol 329 MovieClip [mcApplication] Frame 31
stop();