Frame 1
var _oPreloaderScreen = (new com.disney.gem.games.total_blackout.screens.PreloaderScreen(mcScreens.mcPreloader));
com.sarbakan.BaseDisneyController.bDEBUG = false;
new com.disney.gem.games.total_blackout.Controller(this, _oPreloaderScreen);
Symbol 1075 MovieClip [__Packages.com.sarbakan.utils.StateManaged] Frame 0
class com.sarbakan.utils.StateManaged
{
var mcRef, bPausable, sNextState, sState;
function StateManaged (_mcRef) {
setMC(_mcRef);
setPausable(true);
}
function setMC(_mcRef) {
mcRef = _mcRef;
}
function setPausable(_bPausable) {
bPausable = _bPausable;
}
function setState(_sState, _bInstant, _bForce) {
sNextState = _sState;
if (_bInstant) {
checkStateChange();
}
if (_bForce) {
mcRef.mcState.gotoAndPlay(1);
}
}
function getState() {
return(sState);
}
function stateStarting() {
return(mcRef.mcState._currentframe == 1);
}
function stateFinished() {
return(mcRef.mcState._currentframe == mcRef.mcState._totalframes);
}
function stateCurrentFrame() {
return(mcRef.mcState._currentframe);
}
function stateIsNot() {
var _local2 = false;
var _local3 = arguments.length - 1;
for ( ; _local3 >= 0 ; _local3--) {
if (arguments[_local3] == sState) {
_local2 = true;
break;
}
}
return(!_local2);
}
function destroy() {
delete mcRef;
}
function get Mc() {
return(mcRef);
}
function onUpdate() {
checkStateChange();
this["state_" + sState]();
}
function checkStateChange() {
if ((sNextState != undefined) && (sNextState != sState)) {
this[("state_" + sState) + "_end"]();
sState = sNextState;
sNextState = undefined;
mcRef.gotoAndStop(sState);
this[("state_" + sState) + "_init"]();
}
}
function onUpdatePaused() {
if (bPausable == false) {
onUpdate();
}
}
function onPause() {
if (bPausable) {
mcRef.mcState.stop();
}
}
function onUnPause() {
if (bPausable) {
mcRef.mcState.play();
}
}
}
Symbol 1076 MovieClip [__Packages.com.sarbakan.utils.ScreenController] Frame 0
class com.sarbakan.utils.ScreenController extends com.sarbakan.utils.StateManaged
{
var setMC, setState, setPausable, oController, bInOut, fHideCallBack, mcRef, sState, stateFinished;
function ScreenController (_mcRef) {
super();
setMC(_mcRef);
setState(sSTATE_HIDDEN);
setPausable(false);
}
function setGameController(_oController) {
oController = _oController;
}
function show(_bInOut) {
bInOut = _bInOut;
if (bInOut) {
setState(sSTATE_IN, true);
} else {
setState(sSTATE_IDLE, true);
}
}
function hide(_fHideCallBack, _bInOutOverride) {
fHideCallBack = _fHideCallBack;
var _local4 = bInOut;
if (_bInOutOverride != undefined) {
_local4 = _bInOutOverride;
}
if (_local4) {
setState(sSTATE_OUT);
} else {
setState(sSTATE_HIDDEN, true);
fHideCallBack();
}
}
function getRef() {
return(mcRef);
}
function isInOutTransitionning() {
return((sState == sSTATE_IN) || (sState == sSTATE_OUT));
}
function state_in() {
if (stateFinished()) {
setState(sSTATE_IDLE);
}
}
function state_out() {
if (stateFinished()) {
setState(sSTATE_HIDDEN, true);
fHideCallBack();
}
}
function state_in_init() {
mcRef.btBlocker.useHandCursor = false;
}
function state_idle_init() {
mcRef.btBlocker.useHandCursor = false;
}
function state_out_init() {
mcRef.btBlocker.useHandCursor = false;
}
static var sSTATE_HIDDEN = "hidden";
static var sSTATE_IN = "in";
static var sSTATE_IDLE = "idle";
static var sSTATE_OUT = "out";
}
Symbol 1077 MovieClip [__Packages.com.disney.gem.games.total_blackout.screens.PreloaderScreen] Frame 0
class com.disney.gem.games.total_blackout.screens.PreloaderScreen extends com.sarbakan.utils.ScreenController
{
var oController, mcRef;
function PreloaderScreen (_mcRef) {
super(_mcRef);
}
function state_idle() {
var _local2 = com.disney.gem.games.total_blackout.Controller(oController).mcTimeline.getBytesLoaded() / com.disney.gem.games.total_blackout.Controller(oController).mcTimeline.getBytesTotal();
mcRef.mcState.txtPercent.text = Math.round(_local2 * 100) + "%";
mcRef.mcState.txtPercentS.text = Math.round(_local2 * 100) + "%";
mcRef.mcState.mcClock.gotoAndStop(Math.floor(Math.round(_local2 * 100) / 10));
if (_local2 == 1) {
com.disney.gem.games.total_blackout.Controller(oController).onPreloadingDone();
}
}
}
Symbol 1078 MovieClip [__Packages.com.sarbakan.BaseDisneyController] Frame 0
class com.sarbakan.BaseDisneyController
{
static var oInstance;
var mcTimeline, oPreloaderScreen, oMainBroadcaster, oFrameRate, aPopups, oTransitionManager, bSoundMuted, nLastSoundToggleTimer, bPaused, oDXDControllerWrapper, nGamePhase, oCurrentScreen, fScreenShowTransitionCallBack, fScreenHideCallBack, nLevel, nScore, bInstructionCanBeDisplayed, bInstructionActive, nLastUpdateTimer;
function BaseDisneyController (_mcTimeline, _oPreloaderScreen) {
oInstance = this;
mcTimeline = _mcTimeline;
_mcTimeline.stop();
oPreloaderScreen = _oPreloaderScreen;
oMainBroadcaster = new Object();
AsBroadcaster.initialize(oMainBroadcaster);
oMainBroadcaster.addListener(this);
if (bDEBUG) {
oFrameRate = new com.sarbakan.utils.FrameRateDisplayer(_mcTimeline, nFRAME_RATE, nGAME_STAGE_WIDTH);
oMainBroadcaster.addListener(oFrameRate);
} else {
Stage.showMenu = false;
mcTimeline._focusrect = false;
}
aPopups = new Array();
if (getControllerMode() == nCONTROLLER_MODE_DXD) {
setDXDCallback();
} else {
initStandAloneController();
}
}
static function getInstance() {
return(oInstance);
}
function init() {
setGamePhase(nGAME_PHASE_PACKAGING);
stopScreenContainers();
oTransitionManager = new com.sarbakan.utils.TransitionManager(mcTimeline.mcTransitions);
oMainBroadcaster.addListener(oTransitionManager);
bSoundMuted = false;
nLastSoundToggleTimer = getTimer();
}
function update(_nElapsed) {
if (bPaused) {
oMainBroadcaster.broadcastMessage("onUpdatePaused", _nElapsed);
} else {
oMainBroadcaster.broadcastMessage("onUpdate", _nElapsed);
}
checkGlobalKeys();
if (getControllerMode() == nCONTROLLER_MODE_DXD) {
bSoundMuted = oDXDControllerWrapper.isMuted();
}
}
function pause() {
if (!bPaused) {
bPaused = true;
oMainBroadcaster.broadcastMessage("onPause");
}
}
function unpause() {
if (bPaused) {
bPaused = false;
oMainBroadcaster.broadcastMessage("onUnPause");
}
}
function togglePause() {
if (bPaused) {
unpause();
} else {
pause();
}
}
function getControllerMode() {
if (com.disney.gem.base.BaseObject == undefined) {
var _local2 = nCONTROLLER_MODE_STANDALONE;
} else {
var _local2 = nCONTROLLER_MODE_DXD;
}
return(_local2);
}
function setGamePhase(_nPhase) {
nGamePhase = _nPhase;
switch (_nPhase) {
case nGAME_PHASE_PRELOADER :
mcTimeline.gotoAndStop("preloader");
break;
case nGAME_PHASE_PACKAGING :
mcTimeline.gotoAndStop("packaging");
break;
case nGAME_PHASE_INGAME :
mcTimeline.gotoAndStop("game");
}
}
function getGamePhase() {
return(nGamePhase);
}
function gameLog(_sText) {
if (getControllerMode() == nCONTROLLER_MODE_DXD) {
oDXDControllerWrapper.gameLog(_sText);
}
}
function showScreen(_oScreenController, _bInOut, _sTransitionID, _fMidTransitionCallBack) {
if (oCurrentScreen) {
hideCurrentScreen(com.sarbakan.utils.Delegate.create(this, showScreen, _oScreenController, _bInOut, null, _fMidTransitionCallBack), _sTransitionID);
} else {
oCurrentScreen = _oScreenController;
oCurrentScreen.setGameController(this);
if (_sTransitionID != undefined) {
fScreenShowTransitionCallBack = _fMidTransitionCallBack;
oTransitionManager.playTransition(_sTransitionID, com.sarbakan.utils.Delegate.create(this, onScreenShowTransitionMiddle, _bInOut));
} else {
oCurrentScreen.show(_bInOut);
_fMidTransitionCallBack();
}
oMainBroadcaster.addListener(oCurrentScreen);
}
}
function hideCurrentScreen(_fHideCallBack, _sTransition, _fEndCallBack) {
fScreenHideCallBack = _fHideCallBack;
if (_sTransition != undefined) {
oTransitionManager.playTransition(_sTransition, com.sarbakan.utils.Delegate.create(oCurrentScreen, oCurrentScreen.hide, com.sarbakan.utils.Delegate.create(this, onScreenHidden)), _fEndCallBack);
} else {
oCurrentScreen.hide(com.sarbakan.utils.Delegate.create(this, onScreenHidden));
}
}
function showPopup(_oPopupController, _bInOut) {
var _local4 = false;
var _local5 = aPopups.length - 1;
for ( ; _local5 >= 0 ; _local5--) {
var _local6 = aPopups[_local5];
if (_oPopupController.getRef() == _local6.getRef()) {
_local4 = true;
_local6.destroy();
oMainBroadcaster.removeListener(_local6);
aPopups[_local5] = _oPopupController;
break;
}
}
if (!_local4) {
aPopups.push(_oPopupController);
}
_oPopupController.setGameController(this);
_oPopupController.show(_bInOut);
oMainBroadcaster.addListener(_oPopupController);
}
function setLevel(_nLevel) {
nLevel = _nLevel;
}
function getLevel() {
return(nLevel);
}
function setScore(_nScore) {
nScore = _nScore;
}
function increaseScore(_nIncrement) {
nScore = nScore + _nIncrement;
}
function getScore() {
return(nScore);
}
function allowInstructions() {
bInstructionCanBeDisplayed = true;
}
function disallowInstructions() {
bInstructionCanBeDisplayed = false;
}
function showInstructions() {
if (canShowInstructions()) {
bInstructionActive = true;
showInstructionsScreen();
}
}
function hideInstructions() {
if (canHideInstructions()) {
bInstructionActive = false;
hideInstructionsScreen();
}
}
function toggleSound() {
if ((getTimer() - nLastSoundToggleTimer) >= nSOUND_TOGGLE_DELAY) {
bSoundMuted = !bSoundMuted;
nLastSoundToggleTimer = getTimer();
if (getControllerMode() == nCONTROLLER_MODE_DXD) {
oDXDControllerWrapper.toggleSound();
} else {
toggleSoundStandalone();
}
}
}
function onPreloadingDone() {
hideCurrentScreen();
init();
}
function onGameStart() {
setLevel(1);
setScore(0);
}
function onLevelStart() {
if (getControllerMode() == nCONTROLLER_MODE_DXD) {
oDXDControllerWrapper.startLevel(nLevel, nScore);
}
}
function onLevelEnd() {
if (getControllerMode() == nCONTROLLER_MODE_DXD) {
oDXDControllerWrapper.endLevel(nLevel, nScore);
}
}
function onGameEnd() {
if (getControllerMode() == nCONTROLLER_MODE_DXD) {
oDXDControllerWrapper.endGame(nLevel, nScore);
}
}
function onTransitionStart(_mcTransition) {
}
function onTransitionMiddle(_mcTransition) {
}
function onEnterFrame() {
var _local2 = getTimer();
update(_local2 - nLastUpdateTimer);
nLastUpdateTimer = _local2;
}
function onScreenShowTransitionMiddle(_bInOut) {
fScreenShowTransitionCallBack();
oCurrentScreen.show(_bInOut);
}
function onScreenHidden() {
oMainBroadcaster.removeListener(oCurrentScreen);
delete oCurrentScreen;
fScreenHideCallBack();
}
function setDXDCallback() {
mcTimeline.init = com.sarbakan.utils.Delegate.create(this, initDXDController);
}
function initDXDController(_oOwner) {
oDXDControllerWrapper = new com.sarbakan.DXDControllerWrapper(this, mcTimeline, _oOwner);
return(oDXDControllerWrapper);
}
function initStandAloneController() {
mcTimeline.onEnterFrame = com.sarbakan.utils.Delegate.create(this, onEnterFrame);
nLastUpdateTimer = getTimer();
initPreloader();
}
function initPreloader() {
setGamePhase(nGAME_PHASE_PRELOADER);
showScreen(oPreloaderScreen);
}
function checkGlobalKeys() {
if (Key.isDown(nKEY_INSTRUCTIONS)) {
if (!bInstructionActive) {
showInstructions();
} else {
hideInstructions();
}
}
if (Key.isDown(nKEY_SOUND)) {
toggleSound();
}
}
function toggleSoundStandalone() {
var _local2 = new Sound(mcTimeline);
if (!bSoundMuted) {
_local2.setVolume(100);
} else {
_local2.setVolume(0);
}
}
function canShowInstructions() {
return((!bInstructionActive) && (bInstructionCanBeDisplayed && ((!oCurrentScreen.isInOutTransitionning()) && (!oTransitionManager.isTransitionning()))));
}
function canHideInstructions() {
return(bInstructionActive && (bInstructionCanBeDisplayed && ((!oCurrentScreen.isInOutTransitionning()) && (!oTransitionManager.isTransitionning()))));
}
function showInstructionsScreen() {
}
function hideInstructionsScreen() {
}
function stopScreenContainers() {
var _local2 = [mcTimeline.mcPopups, mcTimeline.mcScreens];
var _local3 = _local2.length - 1;
for ( ; _local3 >= 0 ; _local3--) {
for (var j in _local2[_local3]) {
_local2[_local3][j].stop();
}
}
}
static var bDEBUG = true;
static var nFRAME_RATE = 30;
static var nCONTROLLER_MODE_STANDALONE = 1;
static var nCONTROLLER_MODE_DXD = 2;
static var nGAME_PHASE_PRELOADER = 1;
static var nGAME_PHASE_PACKAGING = 2;
static var nGAME_PHASE_INGAME = 3;
static var nKEY_INSTRUCTIONS = 72;
static var nKEY_SOUND = 77;
static var nGAME_STAGE_WIDTH = 580;
static var nGAME_STAGE_HEIGHT = 400;
static var nSOUND_TOGGLE_DELAY = 100;
}
Symbol 1079 MovieClip [__Packages.com.sarbakan.utils.TransitionManager] Frame 0
class com.sarbakan.utils.TransitionManager extends com.sarbakan.utils.StateManaged
{
var setPausable, mcTransitionContainer, mcTransition, fMiddleCallBack, fEndCallBack, bTransitionning, setMC, setState, stateFinished, mcRef;
function TransitionManager (_mcTransition) {
super();
setPausable(false);
mcTransitionContainer = _mcTransition;
for (var i in mcTransitionContainer) {
mcTransitionContainer[i].stop();
}
}
function playTransition(_sTransitionID, _fMiddleCallBack, _fEndCallBack) {
mcTransition = mcTransitionContainer["mc" + com.sarbakan.utils.MoreString.upperFirstChar(_sTransitionID)];
fMiddleCallBack = _fMiddleCallBack;
fEndCallBack = _fEndCallBack;
if (mcTransition == undefined) {
} else {
bTransitionning = true;
setMC(mcTransition);
setState(sSTATE_IN);
}
}
function isTransitionning() {
return(bTransitionning);
}
function state_in() {
if (stateFinished()) {
setState(sSTATE_OUT);
fMiddleCallBack();
}
}
function state_out() {
if (stateFinished()) {
bTransitionning = false;
setState(sSTATE_HIDDEN);
fEndCallBack();
}
}
function state_in_init() {
com.sarbakan.BaseDisneyController.getInstance().onTransitionStart(mcTransition);
mcRef.btBlocker.useHandCursor = false;
}
function state_out_init() {
com.sarbakan.BaseDisneyController.getInstance().onTransitionMiddle(mcTransition);
mcRef.btBlocker.useHandCursor = false;
}
static var sSTATE_IN = "in";
static var sSTATE_OUT = "out";
static var sSTATE_HIDDEN = "hidden";
}
Symbol 1080 MovieClip [__Packages.com.sarbakan.utils.MoreString] Frame 0
class com.sarbakan.utils.MoreString
{
function MoreString () {
}
static function pad(_sToPad, _sCharPad, _nMinLength, _sSideToPad) {
var _local6 = String(_sToPad);
while (_local6.length < _nMinLength) {
if (_sSideToPad == "RIGHT") {
_local6 = _local6 + _sCharPad;
} else {
_local6 = _sCharPad + _local6;
}
}
return(_local6);
}
static function trim(_sToTrim, _sCharTrim, _sSideToTrim) {
var _local5 = String(_sToTrim);
if (_sSideToTrim == "RIGHT") {
while (_local5.substr(_local5.length - 2, 1) == _sCharTrim) {
_local5 = _local5.slice(-1);
}
} else {
while (_local5.substr(0, 1) == _sCharTrim) {
_local5 = _local5.slice(1);
}
}
return(_local5);
}
static function replace(_sString, _sFind, _sReplace) {
return(_sString.split(_sFind).join(_sReplace));
}
static function formatTime(_nTime) {
var _local3 = _nTime;
var _local4 = Math.floor(_local3 / 60);
var _local5 = Math.round(_local3 - (_local4 * 60));
return((pad(String(_local4), "0", 2) + ":") + pad(String(_local5), "0", 2));
}
static function formatNumber(__sNumber, __nMinimumChar) {
var _local4 = String(__sNumber);
var _local5 = "";
var _local6 = _local4.length;
_local6 = _local6 / 3;
if (_local6 <= 1) {
var _local7 = _local4;
if (_local7.length < __nMinimumChar) {
_local7 = "0" + _local7;
}
} else {
var _local8 = _local6;
for ( ; _local8 > 1 ; _local8--) {
_local5 = (" " + _local4.substr(-3)) + _local5;
_local4 = _local4.substr(0, -3);
}
var _local7 = _local4 + _local5;
if (_local7.length < __nMinimumChar) {
_local7 = "0" + _local7;
}
}
return(_local7);
}
static function upperFirstChar(_sString) {
return(_sString.substr(0, 1).toUpperCase() + _sString.substr(1));
}
static function lowerFirstChar(_sString) {
return(_sString.substr(0, 1).toLowerCase() + _sString.substr(1));
}
static function convertToBoolean(_sString) {
return(_sString.toLowerCase() == "true");
}
static function formatMoney(_nMoney, _sDelimiteur, _bDecimalOpt) {
if (_bDecimalOpt == undefined) {
var _local9 = true;
} else {
var _local9 = _bDecimalOpt;
}
var _local5 = String(_nMoney).split(".");
if (_local5[1] != undefined) {
var _local6 = _local5[1].substr(0, 2);
switch (_local6.length) {
case 0 :
_local6 = _local6 + "00";
break;
case 1 :
_local6 = _local6 + "0";
break;
case 2 :
break;
default :
_local6 = "00";
}
} else {
var _local6 = "00";
}
var _local8 = _local5[0];
var _local7 = "";
while (_local8.length > 3) {
_local7 = (_sDelimiteur + _local8.substr(_local8.length - 3)) + _local7;
_local8 = _local8.substr(0, _local8.length - 3);
}
_local7 = _local8 + _local7;
if (_local9) {
return(((_local7 + ".") + _local6) + "$");
}
return(_local7 + " $");
}
static function getOrdinalSuffix(_nNumber) {
var _local4 = String(_nNumber);
if ((_local4.substr(-2, 2) == 11) || ((_local4.substr(-2, 2) == 12) || (_local4.substr(-2, 2) == 13))) {
var _local3 = "th";
} else if (_local4.substr(-1, 1) == 1) {
var _local3 = "st";
} else if (_local4.substr(-1, 1) == 2) {
var _local3 = "nd";
} else if (_local4.substr(-1, 1) == 3) {
var _local3 = "rd";
} else {
var _local3 = "th";
}
return(_local3);
}
}
Symbol 1081 MovieClip [__Packages.com.sarbakan.DXDControllerWrapper] Frame 0
class com.sarbakan.DXDControllerWrapper extends com.disney.gem.games.BaseGameController
{
var oRealController, __owner;
function DXDControllerWrapper (_oRealController, _mcTimeline, _oOwner) {
super(_mcTimeline, _oOwner);
oRealController = _oRealController;
}
function init() {
super.init();
oRealController.init();
}
function update(_nElapsed) {
oRealController.update(_nElapsed);
}
function toggleSound() {
__owner.onToggleSound();
}
function isMuted() {
return(!__owner.__soundOn);
}
function gameLog(_sText) {
__owner.gameLog(_sText, "game");
}
}
Symbol 1082 MovieClip [__Packages.com.disney.gem.games.GameContainer] Frame 0
class com.disney.gem.games.GameContainer
{
function GameContainer () {
}
}
Symbol 1083 MovieClip [__Packages.com.sarbakan.utils.FrameRateDisplayer] Frame 0
class com.sarbakan.utils.FrameRateDisplayer
{
var nMovieFPS, nUpdateCounter, nAverageFps, nCurrentFPS, nUpdateCount, mcDebug, nLastGetTimer;
function FrameRateDisplayer (_mcTimeline, _nMovieFPS, _nStageWidth) {
nMovieFPS = _nMovieFPS;
nUpdateCounter = 0;
nAverageFps = 0;
nCurrentFPS = nMovieFPS;
reset();
startDebug(_mcTimeline, _nStageWidth);
}
function get fps() {
return(nCurrentFPS);
}
function onUpdate() {
if ((++nUpdateCount) == nMovieFPS) {
computeFrameRate();
updateDebug();
}
}
function onUpdatePaused() {
onUpdate();
}
function startDebug(_mcTimeline, _nStageWidth) {
mcDebug = _mcTimeline.createEmptyMovieClip("PerformanceWatcherDebug", DEBUG_DEPTH);
mcDebug._x = (_nStageWidth - DEBUG_RIGHT_MARGIN) - 400;
mcDebug._y = DEBUG_TOP_MARGIN;
mcDebug.createTextField("field", 2, 0, 0, 400, 50);
var _local4 = new TextFormat();
_local4.font = DEBUG_FONT;
_local4.size = DEBUG_FONT_SIZE;
_local4.color = DEBUG_FONT_COLOR;
_local4.align = "right";
mcDebug.field.setNewTextFormat(_local4);
mcDebug.field.selectable = false;
mcDebug.createTextField("fieldShadow", 1, 1, 1, 400, 50);
var _local5 = new TextFormat();
_local5.font = DEBUG_FONT;
_local5.size = DEBUG_FONT_SIZE;
_local5.color = DEBUG_FONT_SHADOW_COLOR;
_local5.align = "right";
mcDebug.fieldShadow.setNewTextFormat(_local5);
mcDebug.fieldShadow.selectable = false;
}
function reset() {
nUpdateCount = 0;
nLastGetTimer = getTimer();
}
function computeFrameRate() {
var _local2 = getTimer() - nLastGetTimer;
var _local3 = _local2 / 1000;
nCurrentFPS = Math.round(nMovieFPS / _local3);
reset();
}
function updateDebug() {
if (mcDebug != undefined) {
nUpdateCounter++;
var _local2 = ((nCurrentFPS + " fps (avg ") + getAverage()) + ")";
mcDebug.field.text = _local2;
mcDebug.fieldShadow.text = _local2;
}
}
function getAverage() {
nAverageFps = nAverageFps + ((nCurrentFPS - nAverageFps) * (1 / nUpdateCounter));
var _local2 = "";
var _local3 = String(nAverageFps).split(".");
if (_local3[1] == undefined) {
_local2 = nAverageFps + ".00";
} else if (_local3[1].length == 1) {
_local2 = (_local3[0] + ".0") + _local3[1];
} else {
_local2 = (_local3[0] + ".") + _local3[1].substr(0, 2);
}
return(_local2);
}
static var DEBUG_DEPTH = 123456;
static var DEBUG_RIGHT_MARGIN = 0;
static var DEBUG_TOP_MARGIN = 0;
static var DEBUG_FONT = "Verdana";
static var DEBUG_FONT_SIZE = 10;
static var DEBUG_FONT_COLOR = 16777215;
static var DEBUG_FONT_SHADOW_COLOR = 0;
}
Symbol 1084 MovieClip [__Packages.com.sarbakan.utils.Delegate] Frame 0
class com.sarbakan.utils.Delegate extends Object
{
var func;
function Delegate () {
super();
}
function DelegateArgs(f) {
func = f;
}
static function create(obj, func) {
var _local4 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
var _local4 = arguments.callee.arg;
_local4 = _local4.concat(arguments);
return(_local3.apply(_local2, _local4));
};
_local4.target = obj;
_local4.func = func;
_local4.arg = arguments.slice(2);
return(_local4);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 1085 MovieClip [__Packages.com.disney.gem.games.total_blackout.Controller] Frame 0
class com.disney.gem.games.total_blackout.Controller extends com.sarbakan.BaseDisneyController
{
var bIn, nIndex, mcTimeline, oTransitionManager, showScreen, pause, nGamePhase, unpause, onGameStart, setLevel, setGamePhase, mcLastLevel, nLevel, oGame, oMainBroadcaster, hideCurrentScreen, onLevelStart;
function Controller (_mcTimeline, _oPreloaderScreen) {
super(_mcTimeline, _oPreloaderScreen);
bIn = false;
nIndex = 0;
var _local5 = mcTimeline.createEmptyMovieClip("mcSound", mcTimeline.getNextHighestDepth());
com.disney.gem.games.total_blackout.utility.sndEngine.doInit(_local5);
com.disney.gem.games.total_blackout.utility.sndEngine.setCategoryVolume(com.disney.gem.games.total_blackout.utility.Sounds.sMUSIC_CAT_NAME, com.disney.gem.games.total_blackout.utility.Sounds.nMUSIC_CAT_VOLUME);
com.disney.gem.games.total_blackout.utility.sndEngine.setCategoryVolume(com.disney.gem.games.total_blackout.utility.Sounds.sAMBIENT_CAT_NAME, com.disney.gem.games.total_blackout.utility.Sounds.nAMBIENT_CAT_VOLUME);
com.disney.gem.games.total_blackout.utility.sndEngine.setCategoryVolume(com.disney.gem.games.total_blackout.utility.Sounds.sSOUND_CAT_NAME, com.disney.gem.games.total_blackout.utility.Sounds.nSOUND_CAT_VOLUME);
}
static function getInstance() {
return(com.disney.gem.games.total_blackout.Controller(com.sarbakan.BaseDisneyController.oInstance));
}
function update(_nElapsed) {
super.update(_nElapsed);
if ((oTransitionManager.getState() == "in") && (!bIn)) {
bIn = true;
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_TRANSITION_IN, true, false);
} else if ((oTransitionManager.getState() == "out") && (bIn)) {
bIn = false;
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_TRANSITION_OUT, true, false);
}
}
function init() {
super.init();
showTitleScreen();
com.disney.gem.games.total_blackout.utility.Sounds.setMusic(com.disney.gem.games.total_blackout.utility.Sounds.sMUSIC_PACKAGING);
}
function showTitleScreen(_bShowTransition) {
if (_bShowTransition) {
showScreen(new com.disney.gem.games.total_blackout.screens.TitleScreen(mcTimeline.mcScreens.mcTitle), false, sTRANSITION_DEFAULT);
} else {
showScreen(new com.disney.gem.games.total_blackout.screens.TitleScreen(mcTimeline.mcScreens.mcTitle));
}
}
function showInstructionScreen() {
pause();
if (nGamePhase == com.sarbakan.BaseDisneyController.nGAME_PHASE_INGAME) {
oTransitionManager.playTransition(sTRANSITION_DEFAULT, com.sarbakan.utils.Delegate.create(this, showHelpScreen));
} else {
showScreen(new com.disney.gem.games.total_blackout.screens.HelpScreen(mcTimeline.mcScreens.mcHelp), false, sTRANSITION_DEFAULT);
}
}
function hideInstructionScreen() {
if (nGamePhase == com.sarbakan.BaseDisneyController.nGAME_PHASE_INGAME) {
oTransitionManager.playTransition(sTRANSITION_DEFAULT, com.sarbakan.utils.Delegate.create(this, hideHelpScreen), com.sarbakan.utils.Delegate.create(this, unpause));
} else {
showScreen(new com.disney.gem.games.total_blackout.screens.TitleScreen(mcTimeline.mcScreens.mcTitle), false, sTRANSITION_DEFAULT);
}
}
function startNewGame() {
onGameStart();
setLevel(1);
setGamePhase(com.sarbakan.BaseDisneyController.nGAME_PHASE_INGAME);
com.disney.gem.games.total_blackout.Stats.reset();
oTransitionManager.playTransition(sTRANSITION_DEFAULT, com.sarbakan.utils.Delegate.create(this, restartLevel));
}
function startNextLevel() {
var _local2 = new flash.display.BitmapData(580, 410);
var _local3 = mcTimeline.mcGame.transform.concatenatedMatrix;
var _local4 = new flash.geom.Matrix(_local3.a, _local3.b, _local3.c, _local3.d, 0, 0);
_local2.draw(mcTimeline.mcGame, _local4);
mcTimeline.mcGame.createEmptyMovieClip("mcTempBack", 5000);
mcTimeline.mcGame.mcTempBack.attachBitmap(_local2, 1000);
mcLastLevel = mcTimeline.mcGame.mcTempBack;
mcTimeline.mcGame.mcGame._x = 580;
for (var i in mcTimeline.mcGame.transform.concatenatedMatrix) {
}
setGamePhase(com.sarbakan.BaseDisneyController.nGAME_PHASE_INGAME);
setLevel(nLevel + 1);
restartLevel();
}
function restartLevel(_bRestart) {
if (_bRestart) {
oTransitionManager.playTransition(sTRANSITION_DEFAULT, com.sarbakan.utils.Delegate.create(this, restartLevel));
} else {
setGamePhase(com.sarbakan.BaseDisneyController.nGAME_PHASE_INGAME);
setLevel(nLevel);
if (oGame != undefined) {
oGame.deleteAll();
oMainBroadcaster.removeListener(oGame);
delete oGame;
}
oGame = new com.disney.gem.games.total_blackout.GameEngine(this, mcTimeline.mcGame.mcGame);
oMainBroadcaster.addListener(oGame);
hideCurrentScreen();
onLevelStart();
onLevelTransitionDone();
}
}
function showHelpScreen() {
showScreen(new com.disney.gem.games.total_blackout.screens.HelpScreen(mcTimeline.mcScreens.mcHelp), false);
}
function hideHelpScreen() {
hideCurrentScreen(null);
}
function onLevelTransitionDone() {
oGame.init();
}
function onGameLose() {
com.disney.gem.games.total_blackout.utility.Sounds.setMusic(com.disney.gem.games.total_blackout.utility.Sounds.sMUSIC_PACKAGING);
showScreen(new com.disney.gem.games.total_blackout.screens.EndScreen(mcTimeline.mcScreens.mcLose), false, sTRANSITION_DEFAULT, com.sarbakan.utils.Delegate.create(this, clearLevel, com.sarbakan.BaseDisneyController.nGAME_PHASE_PACKAGING));
}
function onGameWon() {
com.disney.gem.games.total_blackout.utility.Sounds.setMusic(com.disney.gem.games.total_blackout.utility.Sounds.sMUSIC_PACKAGING);
showScreen(new com.disney.gem.games.total_blackout.screens.EndScreen(mcTimeline.mcScreens.mcWin), false, sTRANSITION_DEFAULT, com.sarbakan.utils.Delegate.create(this, clearLevel, com.sarbakan.BaseDisneyController.nGAME_PHASE_PACKAGING));
}
function clearLevel(_nGamePhase) {
setGamePhase(_nGamePhase);
if (oGame != undefined) {
oGame.deleteAll();
oMainBroadcaster.removeListener(oGame);
delete oGame;
}
}
function getGenericName(_sPrefix) {
return((("mc" + _sPrefix) + "_") + (nIndex++));
}
static var sTRANSITION_DEFAULT = "default";
}
Symbol 1086 MovieClip [__Packages.com.disney.gem.games.total_blackout.GameEngine] Frame 0
class com.disney.gem.games.total_blackout.GameEngine
{
static var oInstance;
var oController, mcGame, oHud, aObjects, aEventDispatcher, oPlayerDispatcher, bInited, bCityWokeUp, bSlideFinish, bLoseTry, nClock, oAnimateLast, oAnimateCurr, oDepthItem, oRightWall;
function GameEngine (_oController, _mcGame) {
oController = _oController;
mcGame = _mcGame;
mcGame._parent.mcHud.swapDepths(10000);
oHud = new com.disney.gem.games.total_blackout.Hud(oController, mcGame._parent.mcHud, this);
aObjects = new Array();
aEventDispatcher = new Array();
oPlayerDispatcher = new com.disney.gem.games.total_blackout.events.EventDispatcher();
bInited = false;
bCityWokeUp = false;
bSlideFinish = false;
bLoseTry = false;
nClock = 0;
oInstance = this;
}
function init() {
oHud.init();
com.disney.gem.games.total_blackout.utility.Sounds.setMusic(com.disney.gem.games.total_blackout.utility.Sounds.sMUSIC_INGAME);
mcGame.gotoAndStop("Level" + com.disney.gem.games.total_blackout.Controller.getInstance().getLevel());
oPlayerDispatcher.addEventListener(com.disney.gem.games.total_blackout.events.Event.WAKE_CITY, onCityWake, this);
oPlayerDispatcher.addEventListener(com.disney.gem.games.total_blackout.events.Event.STOP_CLOCK, onClockStop, this);
oPlayerDispatcher.addEventListener(com.disney.gem.games.total_blackout.events.Event.LOSE_TRY, onLoseTry, this);
bInited = false;
buildLevel(com.disney.gem.games.total_blackout.Controller.getInstance().getLevel());
mcGame.createEmptyMovieClip("mcDrawCollision", 99999);
mcGame.mcDrawCollision._x = 0;
mcGame.mcDrawCollision._y = 0;
mcGame.createEmptyMovieClip("mcDrawCross", 99998);
mcGame.mcDrawCross._x = 0;
mcGame.mcDrawCross._y = 0;
bCityWokeUp = false;
if (mcGame._x == 0) {
bSlideFinish = true;
oPlayerDispatcher.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.GOOFY), this);
} else {
oAnimateLast = new com.disney.gem.games.total_blackout.utility.Animate(com.disney.gem.games.total_blackout.Controller.getInstance().mcLastLevel, "_x", com.disney.gem.games.total_blackout.utility.Animate.easeInOut, 0, -580, 30);
oAnimateCurr = new com.disney.gem.games.total_blackout.utility.Animate(mcGame, "_x", com.disney.gem.games.total_blackout.utility.Animate.easeInOut, 580, 0, 30);
}
setAmbient(com.disney.gem.games.total_blackout.Controller.getInstance().getLevel());
com.disney.gem.games.total_blackout.Controller(oController).unpause();
}
function drawCollision(_nX, _nY, _nWidth, _nHeight, _nAlpha) {
with (mcGame.mcDrawCollision) {
clear();
beginFill(16711680, _nAlpha);
moveTo(_nX, _nY);
lineTo(_nX + _nWidth, _nY);
lineTo(_nX + _nWidth, _nY + _nHeight);
lineTo(_nX, _nY + _nHeight);
lineTo(_nX, _nY);
endFill();
}
}
function drawCross(_nX, _nY) {
with (mcGame.mcDrawCross) {
clear();
lineStyle(1, 65535, 100);
moveTo(_nX, 0);
lineTo(_nX, 410);
moveTo(0, _nY);
lineTo(580, _nY);
}
}
function onGameEnd() {
if (bCityWokeUp) {
com.disney.gem.games.total_blackout.utility.Sounds.Stop(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_CLOCK_WARN);
oPlayerDispatcher.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.STOP_ALL_CLOCK), this);
com.disney.gem.games.total_blackout.Stats.tries--;
com.disney.gem.games.total_blackout.Stats.score = 0;
if (com.disney.gem.games.total_blackout.Stats.tries > 0) {
com.disney.gem.games.total_blackout.utility.Sounds.StopAll(com.disney.gem.games.total_blackout.utility.Sounds.sSOUND_CAT_NAME);
oController.restartLevel(true);
} else {
com.disney.gem.games.total_blackout.utility.Sounds.StopAll(com.disney.gem.games.total_blackout.utility.Sounds.sSOUND_CAT_NAME);
oController.onGameLose();
}
} else {
com.disney.gem.games.total_blackout.utility.Sounds.StopAll(com.disney.gem.games.total_blackout.utility.Sounds.sSOUND_CAT_NAME);
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_WIN, true, false, 1, 100);
var _local2 = com.disney.gem.games.total_blackout.Stats.score;
com.disney.gem.games.total_blackout.Stats.score = 0;
oController.increaseScore(_local2);
if (oController.getLevel() == 7) {
oController.onGameWon();
} else {
oController.startNextLevel();
}
}
}
function onCityWake() {
if (!bCityWokeUp) {
bCityWokeUp = true;
onGameEnd();
}
}
function onLoseTry() {
if (!bLoseTry) {
oPlayerDispatcher.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.STOP_ALL_CLOCK), this);
bLoseTry = true;
com.disney.gem.games.total_blackout.Controller.getInstance().pause();
com.disney.gem.games.total_blackout.utility.Sounds.StopAll(com.disney.gem.games.total_blackout.utility.Sounds.sSOUND_CAT_NAME);
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_LOSE, true, false, 1, 100);
com.disney.gem.games.total_blackout.utility.Sounds.Stop(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_CLOCK_WARN);
oController.showPopup(new com.disney.gem.games.total_blackout.popups.LoseTryPopup(oController.mcTimeline.mcPopups.mcLoseTry), true);
}
}
function onClockStop() {
nClock--;
if (nClock <= 0) {
com.disney.gem.games.total_blackout.utility.Sounds.Stop(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_CLOCK_IDLE);
oPlayerDispatcher.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.ACTIVATE_GO), this);
oPlayerDispatcher.addEventListener(com.disney.gem.games.total_blackout.events.Event.GO, onGameEnd, this);
}
}
function deleteAll() {
var _local2 = aObjects.length;
var _local3 = _local2 - 1;
for ( ; _local3 >= 0 ; _local3--) {
aObjects[_local3].destroy();
aObjects.splice(_local3, 1);
}
var _local4 = 0;
for ( ; _local4 < aEventDispatcher.length ; _local4++) {
aEventDispatcher[_local4].clearListeners();
}
oPlayerDispatcher.clearListeners();
delete aEventDispatcher;
delete oPlayerDispatcher;
}
function onUpdate() {
oHud.update();
if (!bSlideFinish) {
if ((!oAnimateCurr.playing) && (!oAnimateLast.playing)) {
bSlideFinish = true;
oPlayerDispatcher.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.GOOFY), this);
delete oAnimateCurr;
delete oAnimateLast;
com.disney.gem.games.total_blackout.Controller.getInstance().mcLastLevel.removeMovieClip();
}
}
}
function buildLevel(_nLevel) {
var _local3 = com.disney.gem.games.total_blackout.utility.ClassFinder.find("com.disney.gem.games.total_blackout.levels.level" + _nLevel);
var _local4 = _local3.Info.colliders;
var _local5 = _local3.Info.items;
var _local7 = 1;
for ( ; _local7 <= _local5 ; _local7++) {
var _local8 = (("com.disney.gem.games.total_blackout." + _local3["oItem" + _local7].type) + ".") + _local3["oItem" + _local7].item;
var _local9 = com.disney.gem.games.total_blackout.utility.ClassFinder.find(_local8);
var _local6 = getProperties(_local3["oItem" + _local7]);
aObjects.push(new _local9[undefined](mcGame, _local6, _local3["oItem" + _local7]));
if ((_local3["oItem" + _local7].item == "MickeysHat") && (com.disney.gem.games.total_blackout.Stats.lifes["level" + _nLevel] == true)) {
aObjects[aObjects.length - 1].destroy();
}
if (_local3["oItem" + _local7].item == "Clock") {
nClock++;
}
if (_local3["oItem" + _local7].depthman == true) {
oDepthItem = aObjects[aObjects.length - 1];
}
}
var _local10 = 1;
for ( ; _local10 <= _local4 ; _local10++) {
var _local6 = getProperties(_local3["oCollider" + _local10]);
aObjects.push(new com.disney.gem.games.total_blackout.colliders.AllSide(mcGame, _local6));
if (_local3["oCollider" + _local10].rightwall) {
oRightWall = aObjects[aObjects.length - 1];
}
}
bInited = true;
}
function setAmbient(_nLevel) {
switch (_nLevel) {
case 1 :
com.disney.gem.games.total_blackout.utility.Sounds.setAmbient(com.disney.gem.games.total_blackout.utility.Sounds.sAMBIENT_LEVEL_1);
break;
case 2 :
com.disney.gem.games.total_blackout.utility.Sounds.setAmbient(com.disney.gem.games.total_blackout.utility.Sounds.sAMBIENT_LEVEL_2);
break;
case 3 :
com.disney.gem.games.total_blackout.utility.Sounds.setAmbient(com.disney.gem.games.total_blackout.utility.Sounds.sAMBIENT_LEVEL_3);
break;
case 4 :
com.disney.gem.games.total_blackout.utility.Sounds.setAmbient(com.disney.gem.games.total_blackout.utility.Sounds.sAMBIENT_LEVEL_4);
break;
case 5 :
com.disney.gem.games.total_blackout.utility.Sounds.setAmbient(com.disney.gem.games.total_blackout.utility.Sounds.sAMBIENT_LEVEL_5);
break;
case 6 :
com.disney.gem.games.total_blackout.utility.Sounds.setAmbient(com.disney.gem.games.total_blackout.utility.Sounds.sAMBIENT_LEVEL_6);
break;
case 7 :
com.disney.gem.games.total_blackout.utility.Sounds.setAmbient(com.disney.gem.games.total_blackout.utility.Sounds.sAMBIENT_LEVEL_7);
}
}
function getProperties(_oItem) {
var _local3 = new Array();
var _local4 = new Array("x", "y", "xscale", "yscale", "rotation", "width", "height");
var _local5 = 0;
for ( ; _local5 < _local4.length ; _local5++) {
if (_oItem[_local4[_local5]] != undefined) {
_local3.push([_local4[_local5], _oItem[_local4[_local5]]]);
}
}
return(_local3);
}
}
Symbol 1087 MovieClip [__Packages.com.disney.gem.games.total_blackout.ItemCacher] Frame 0
class com.disney.gem.games.total_blackout.ItemCacher
{
function ItemCacher () {
}
}
Symbol 1088 MovieClip [__Packages.com.disney.gem.games.total_blackout.levels.level1] Frame 0
class com.disney.gem.games.total_blackout.levels.level1
{
function level1 () {
}
static var Info = {items:16, colliders:4};
static var oItem1 = {type:"elements", item:"Mickey", x:51.5, y:392.8, startx:-132.5, starty:392.8, endx:51.5, endy:392.8, name:"mcItem21", depth:5000};
static var oItem2 = {type:"elements", item:"Go", x:490, y:365, name:"mcItem20", depth:4500};
static var oItem3 = {type:"elements", item:"Clock", x:167.7, y:334.3, startx:167.7, starty:334.3, endx:43, endy:122.9, time:14, name:"mcItem18", depth:4003};
static var oItem4 = {type:"elements", item:"Clock", x:279.6, y:334.3, startx:279.6, starty:334.3, endx:135.9, endy:162.9, time:10, name:"mcItem16", depth:4002};
static var oItem5 = {type:"elements", item:"MickeysHat", x:446.9, y:334.3, startx:446.9, starty:334.3, endx:228.9, endy:113, name:"mcItem12", depth:4001};
static var oItem6 = {type:"elements", item:"Pluto", x:313.3, y:405.3, startx:-94.2, starty:405.3, endx:250.3, endy:405.3, name:"mcItem11", depth:5001};
static var oItem7 = {type:"elements", item:"Clock", x:517.6, y:334.3, startx:517.6, starty:334.3, endx:394.9, endy:166.9, time:8, name:"mcItem9", depth:4000};
static var oItem8 = {type:"elements", item:"Goofy", x:-187.7, y:406.3, startx:-187.7, starty:406.3, endx:801.5, endy:406.3, name:"mcItem8", depth:5002};
static var oItem9 = {type:"platforms", item:"Platform02", x:-1.6, y:141.6, name:"mcItem7", depth:1007};
static var oItem10 = {type:"platforms", item:"Platform01", x:185.5, y:142.2, name:"mcItem6", depth:1006};
static var oItem11 = {type:"platforms", item:"Wall01", x:354.2, y:308.8, name:"mcItem5", depth:1005};
static var oItem12 = {type:"platforms", item:"Copse01", x:236.8, y:343.5, name:"mcItem4", depth:1004};
static var oItem13 = {type:"platforms", item:"Awning01", x:455.1, y:224.8, name:"mcItem3", depth:1003};
static var oItem14 = {type:"platforms", item:"Roof02", x:66.8, y:180.3, name:"mcItem2", depth:1002};
static var oItem15 = {type:"platforms", item:"Roof01", x:334.8, y:185.2, name:"mcItem1", depth:1001};
static var oItem16 = {type:"platforms", item:"Trash01", x:100.3, y:355.1, name:"mcItem0", depth:1000};
static var oCollider1 = {type:"colliders", x:-19.8, y:205, width:40, height:550};
static var oCollider2 = {type:"colliders", x:599.9, y:205, width:40, height:550, rightwall:true};
static var oCollider3 = {type:"colliders", x:290, y:414.9, width:600, height:40};
static var oCollider4 = {type:"colliders", x:290, y:-100, width:600, height:40};
}
Symbol 1089 MovieClip [__Packages.com.disney.gem.games.total_blackout.levels.level2] Frame 0
class com.disney.gem.games.total_blackout.levels.level2
{
function level2 () {
}
static var Info = {items:19, colliders:4};
static var oItem1 = {type:"elements", item:"Mickey", x:76.2, y:394.9, startx:-45, starty:394.9, endx:76.2, endy:394.9, name:"mcItem47", depth:5000, tmpdepth:5600};
static var oItem2 = {type:"elements", item:"Go", x:516.5, y:223.5, name:"mcItem46", depth:4500};
static var oItem3 = {type:"elements", item:"Clock", x:21.9, y:327.7, startx:21.9, starty:327.7, endx:136.7, endy:215.8, time:14, name:"mcItem42", depth:4006, tmpdepth:5506};
static var oItem4 = {type:"elements", item:"Clock", x:343.6, y:103.9, startx:165.6, starty:327.7, endx:343.6, endy:103.9, time:10, name:"mcItem40", depth:4007, tmpdepth:5507};
static var oItem5 = {type:"elements", item:"MickeysHat", x:253.3, y:327.7, startx:253.3, starty:327.7, endx:408.7, endy:135.6, name:"mcItem38", depth:4005, tmpdepth:5505};
static var oItem6 = {type:"elements", item:"Pluto", x:469.7, y:401.6, startx:-69.9, starty:401.7, endx:200.7, endy:401.6, name:"mcItem37", depth:6000};
static var oItem7 = {type:"elements", item:"Clock", x:345.6, y:327.7, startx:345.6, starty:327.7, endx:480.6, endy:55.7, time:8, name:"mcItem35", depth:4004, tmpdepth:5504};
static var oItem8 = {type:"elements", item:"Goofy", x:802, y:399.7, startx:802, starty:399.7, endx:-246.2, endy:399.7, name:"mcItem34", depth:7000};
static var oItem9 = {type:"platforms", item:"Awning02", x:66, y:245.5, name:"mcItem33", depth:3009};
static var oItem10 = {type:"platforms", item:"Tire01", x:338.2, y:345.4, name:"mcItem32", depth:3006};
static var oItem11 = {type:"platforms", item:"Ensign01", depthman:true, x:341.6, y:128.8, name:"mcItem31", depth:5500};
static var oItem12 = {type:"platforms", item:"Tink01", x:388.8, y:345, name:"mcItem30", depth:3005};
static var oItem13 = {type:"platforms", item:"Platform06", x:109.3, y:232.4, name:"mcItem29", depth:3000};
static var oItem14 = {type:"platforms", item:"Platform04", x:436.3, y:179.4, name:"mcItem28", depth:3003};
static var oItem15 = {type:"platforms", item:"Platform05", x:506.7, y:116.8, name:"mcItem27", depth:3002};
static var oItem16 = {type:"platforms", item:"Platform03", x:438.4, y:241.3, name:"mcItem26", depth:3004};
static var oItem17 = {type:"platforms", item:"Copse02", x:112.2, y:347.7, name:"mcItem25", depth:3008};
static var oItem18 = {type:"platforms", item:"Tire02", x:224.3, y:192, name:"mcItem24", depth:3007};
static var oItem19 = {type:"platforms", item:"Pole01", x:381.8, y:64.7, name:"mcItem23", depth:3001};
static var oCollider1 = {type:"colliders", x:-20, y:205, width:40, height:550};
static var oCollider2 = {type:"colliders", x:600, y:205, width:40, height:550, rightwall:true};
static var oCollider3 = {type:"colliders", x:290, y:-100, width:600, height:40};
static var oCollider4 = {type:"colliders", x:290, y:414.9, width:600, height:40};
}
Symbol 1090 MovieClip [__Packages.com.disney.gem.games.total_blackout.levels.level3] Frame 0
class com.disney.gem.games.total_blackout.levels.level3
{
function level3 () {
}
static var Info = {items:20, colliders:4};
static var oItem1 = {type:"elements", item:"Mickey", x:51.5, y:240.6, startx:-132.5, starty:240.6, endx:51.5, endy:240.6, name:"mcItem75", depth:5000};
static var oItem2 = {type:"elements", item:"Go", x:500, y:219.5, name:"mcItem74", depth:4500};
static var oItem3 = {type:"elements", item:"Clock", x:589.6, y:334.3, startx:589.6, starty:334.3, endx:292.9, endy:357.3, time:11, name:"mcItem72", depth:4012};
static var oItem4 = {type:"elements", item:"Clock", x:159.7, y:334.3, startx:159.7, starty:334.3, endx:31.3, endy:149.9, time:8, name:"mcItem70", depth:4011};
static var oItem5 = {type:"elements", item:"Clock", x:378.6, y:334.3, startx:378.6, starty:334.3, endx:279.6, endy:244.9, time:9, name:"mcItem68", depth:4010};
static var oItem6 = {type:"elements", item:"Clock", x:641.6, y:334.3, startx:641.6, starty:334.3, endx:531.9, endy:233.4, time:10, name:"mcItem66", depth:4009};
static var oItem7 = {type:"elements", item:"MickeysHat", x:376.9, y:334.3, startx:376.9, starty:334.3, endx:158.9, endy:117, name:"mcItem64", depth:4008};
static var oItem8 = {type:"elements", item:"Pluto", x:463.3, y:405.3, startx:-94.2, starty:405.3, endx:380.3, endy:405.3, name:"mcItem62", depth:5001};
static var oItem9 = {type:"elements", item:"Goofy", x:-187.7, y:406.3, startx:-187.7, starty:406.3, endx:801.5, endy:406.3, name:"mcItem60", depth:5002};
static var oItem10 = {type:"platforms", item:"Copse03", x:411.7, y:379.1, name:"mcItem59", depth:3010};
static var oItem11 = {type:"platforms", item:"Umbrella01", x:496.8, y:361.2, name:"mcItem58", depth:3011};
static var oItem12 = {type:"platforms", item:"Umbrella01", x:189.6, y:361.2, name:"mcItem57", depth:3007};
static var oItem13 = {type:"platforms", item:"Umbrella01", x:342.4, y:361.2, name:"mcItem56", depth:3009};
static var oItem14 = {type:"platforms", item:"Platform04", x:-126.1, y:178.8, name:"mcItem55", depth:3004};
static var oItem15 = {type:"platforms", item:"Platform03", x:-128.2, y:240.6, name:"mcItem54", depth:3005};
static var oItem16 = {type:"platforms", item:"Roof03", x:426.4, y:265.1, name:"mcItem53", depth:3003};
static var oItem17 = {type:"platforms", item:"Platform07", x:110.4, y:189.6, name:"mcItem52", depth:3001};
static var oItem18 = {type:"platforms", item:"Pole02", x:315.6, y:216.8, name:"mcItem51", depth:3002};
static var oItem19 = {type:"platforms", item:"Copse03", x:259.7, y:379.1, name:"mcItem50", depth:3008};
static var oItem20 = {type:"platforms", item:"Trash01", x:58.8, y:353.1, name:"mcItem49", depth:3006};
static var oCollider1 = {type:"colliders", x:-20, y:205, width:40, height:550};
static var oCollider2 = {type:"colliders", x:600, y:205, width:40, height:550, rightwall:true};
static var oCollider3 = {type:"colliders", x:290, y:-100, width:600, height:40};
static var oCollider4 = {type:"colliders", x:290, y:414.9, width:600, height:40};
}
Symbol 1091 MovieClip [__Packages.com.disney.gem.games.total_blackout.levels.level4] Frame 0
class com.disney.gem.games.total_blackout.levels.level4
{
function level4 () {
}
static var Info = {items:20, colliders:4};
static var oItem1 = {type:"elements", item:"Mickey", x:113.1, y:254.5, startx:-128.5, starty:243.8, endx:113.1, endy:254.5, name:"mcItem106", depth:5000};
static var oItem2 = {type:"elements", item:"Go", x:500, y:216.5, name:"mcItem105", depth:4500};
static var oItem3 = {type:"elements", item:"Clock", x:44.1, y:334.3, startx:44.1, starty:334.3, endx:173.4, endy:105, time:16, name:"mcItem103", depth:4017};
static var oItem4 = {type:"elements", item:"Clock", x:-52.3, y:334.3, startx:-52.3, starty:334.3, endx:43, endy:159.9, time:15, name:"mcItem101", depth:4016};
static var oItem5 = {type:"elements", item:"Clock", x:89.6, y:334.3, startx:89.6, starty:334.3, endx:182.9, endy:238.9, time:12, name:"mcItem99", depth:4015};
static var oItem6 = {type:"elements", item:"Clock", x:402.6, y:334.3, startx:402.6, starty:334.3, endx:517.6, endy:235.2, time:11, name:"mcItem97", depth:4014};
static var oItem7 = {type:"elements", item:"MickeysHat", x:96.9, y:334.3, startx:96.9, starty:334.3, endx:245.1, endy:49, name:"mcItem95", depth:4013};
static var oItem8 = {type:"elements", item:"Pluto", x:413.3, y:405.3, startx:-94.2, starty:405.3, endx:300.3, endy:405.3, name:"mcItem93", depth:5001};
static var oItem9 = {type:"elements", item:"Goofy", x:801.5, y:406.3, startx:801.5, starty:406.3, endx:-187.7, endy:406.3, name:"mcItem91", depth:5002};
static var oItem10 = {type:"platforms", item:"Platform09", x:136.7, y:257.4, name:"mcItem90", depth:1021};
static var oItem11 = {type:"platforms", item:"Moving01", x:471.9, y:21, minx:390.4, miny:125.8, maxx:390.4, maxy:215.8, leftx:310, lefty:25, rightx:471.9, righty:21, ldepth:1018, rdepth:1017, name:"mcItem86", depth:1019};
static var oItem12 = {type:"platforms", item:"Awning03", x:38, y:299.1, name:"mcItem85", depth:1016};
static var oItem13 = {type:"platforms", item:"Roof03", x:-153.5, y:265.1, name:"mcItem84", depth:1015};
static var oItem14 = {type:"platforms", item:"Trash02", x:83.2, y:341.9, name:"mcItem83", depth:1014};
static var oItem15 = {type:"platforms", item:"Platform20", x:535.6, y:244.8, name:"mcItem82", depth:1013};
static var oItem16 = {type:"platforms", item:"Border01", x:274.3, y:369.9, name:"mcItem81", depth:1012};
static var oItem17 = {type:"platforms", item:"Wall02", x:387.3, y:341, name:"mcItem80", depth:1011};
static var oItem18 = {type:"platforms", item:"Roof04", x:200.2, y:104.6, name:"mcItem79", depth:1010};
static var oItem19 = {type:"platforms", item:"Wall03", x:544.3, y:359.8, name:"mcItem78", depth:1009};
static var oItem20 = {type:"platforms", item:"Platform08", x:3.7, y:177.3, name:"mcItem77", depth:1008};
static var oCollider1 = {type:"colliders", x:-20, y:205, width:40, height:550};
static var oCollider2 = {type:"colliders", x:600, y:205, width:40, height:550, rightwall:true};
static var oCollider3 = {type:"colliders", x:290, y:-100, width:600, height:40};
static var oCollider4 = {type:"colliders", x:290, y:414.9, width:600, height:40};
}
Symbol 1092 MovieClip [__Packages.com.disney.gem.games.total_blackout.levels.level5] Frame 0
class com.disney.gem.games.total_blackout.levels.level5
{
function level5 () {
}
static var Info = {items:23, colliders:4};
static var oItem1 = {type:"elements", item:"Mickey", x:51.5, y:246.8, startx:-132.5, starty:246.8, endx:51.5, endy:246.8, name:"mcItem140", depth:5000};
static var oItem2 = {type:"elements", item:"Go", x:490, y:358.5, name:"mcItem139", depth:4500};
static var oItem3 = {type:"elements", item:"Clock", x:426.5, y:334.3, startx:426.5, starty:334.3, endx:294.9, endy:283, time:15, name:"mcItem137", depth:4023};
static var oItem4 = {type:"elements", item:"Clock", x:488.5, y:334.3, startx:488.5, starty:334.3, endx:360.9, endy:120, time:14, name:"mcItem135", depth:4022};
static var oItem5 = {type:"elements", item:"Clock", x:167.7, y:334.3, startx:167.7, starty:334.3, endx:31.3, endy:217.9, time:13, name:"mcItem133", depth:4021};
static var oItem6 = {type:"elements", item:"Clock", x:279.6, y:334.3, startx:279.6, starty:334.3, endx:112, endy:151.9, time:12, name:"mcItem131", depth:4020};
static var oItem7 = {type:"elements", item:"Clock", x:363.6, y:334.3, startx:363.6, starty:334.3, endx:197, endy:67.9, time:11, name:"mcItem129", depth:4019};
static var oItem8 = {type:"elements", item:"MickeysHat", x:556.9, y:334.3, startx:556.9, starty:334.3, endx:377.9, endy:44, name:"mcItem127", depth:4018};
static var oItem9 = {type:"elements", item:"Pluto", x:333.3, y:405.3, startx:-94.2, starty:405.3, endx:333.3, endy:405.3, name:"mcItem125", depth:5001};
static var oItem10 = {type:"elements", item:"Goofy", x:-187.7, y:406.3, startx:-187.7, starty:406.3, endx:801.5, endy:406.3, name:"mcItem123", depth:5002};
static var oItem11 = {type:"platforms", item:"Wall03", x:-35.3, y:359.8, name:"mcItem121", depth:3003};
static var oItem12 = {type:"platforms", item:"Platform20", x:-43.1, y:244.8, name:"mcItem120", depth:3006};
static var oItem13 = {type:"platforms", item:"Fireborn01", x:546.3, y:367.9, name:"mcItem119", depth:3014};
static var oItem14 = {type:"platforms", item:"Mailbox01", x:416.7, y:369.4, name:"mcItem118", depth:3013};
static var oItem15 = {type:"platforms", item:"Moving04", x:498.9, y:213.7, minx:498.9, miny:213.7, maxx:498.9, maxy:305.6, frontx:498.1, fronty:262.4, fdepth:3012, name:"mcItem116", depth:3011};
static var oItem16 = {type:"platforms", item:"Trash01", x:124.7, y:346.3, name:"mcItem115", depth:3005};
static var oItem17 = {type:"platforms", item:"Ensign02", x:304.5, y:219.8, name:"mcItem114", depth:3009};
static var oItem18 = {type:"platforms", item:"Door01", x:292.6, y:301.6, name:"mcItem113", depth:3004};
static var oItem19 = {type:"platforms", item:"Roof05", x:306.4, y:149.3, name:"mcItem112", depth:3010};
static var oItem20 = {type:"platforms", item:"Pole03", x:198.4, y:116.4, name:"mcItem111", depth:3001};
static var oItem21 = {type:"platforms", item:"Border02", x:49.5, y:365.1, name:"mcItem110", depth:3002};
static var oItem22 = {type:"platforms", item:"Platform22", x:69.8, y:169, name:"mcItem109", depth:3008};
static var oItem23 = {type:"platforms", item:"Platform21", x:7.1, y:235.3, name:"mcItem108", depth:3007};
static var oCollider1 = {type:"colliders", x:-20, y:205, width:40, height:550};
static var oCollider2 = {type:"colliders", x:600, y:205, width:40, height:550, rightwall:true};
static var oCollider3 = {type:"colliders", x:290, y:-100, width:600, height:40};
static var oCollider4 = {type:"colliders", x:290, y:414.9, width:600, height:40};
}
Symbol 1093 MovieClip [__Packages.com.disney.gem.games.total_blackout.levels.level6] Frame 0
class com.disney.gem.games.total_blackout.levels.level6
{
function level6 () {
}
static var Info = {items:18, colliders:4};
static var oItem1 = {type:"elements", item:"Mickey", x:51.5, y:393.8, startx:-132.5, starty:393.8, endx:51.5, endy:393.8, name:"mcItem172", depth:5000};
static var oItem2 = {type:"elements", item:"Go", x:510, y:226.5, name:"mcItem171", depth:4500};
static var oItem3 = {type:"elements", item:"Clock", x:267.6, y:334.3, startx:267.6, starty:334.3, endx:430.9, endy:277, time:10, name:"mcItem169", depth:4029};
static var oItem4 = {type:"elements", item:"Clock", x:427.6, y:334.3, startx:427.6, starty:334.3, endx:548.9, endy:57, time:14, name:"mcItem167", depth:4028};
static var oItem5 = {type:"elements", item:"Clock", x:58.6, y:334.3, startx:58.6, starty:334.3, endx:162.9, endy:273.8, time:6, name:"mcItem165", depth:4027};
static var oItem6 = {type:"elements", item:"Clock", x:173.7, y:334.3, startx:173.7, starty:334.3, endx:297, endy:374.9, time:8, name:"mcItem163", depth:4026};
static var oItem7 = {type:"elements", item:"Clock", x:348.7, y:334.3, startx:348.7, starty:334.3, endx:447.9, endy:165.9, time:12, name:"mcItem161", depth:4025};
static var oItem8 = {type:"elements", item:"MickeysHat", x:118, y:334.3, startx:118, starty:334.3, endx:332.9, endy:73, name:"mcItem159", depth:4024};
static var oItem9 = {type:"elements", item:"Pluto", x:453.3, y:405.3, startx:-94.2, starty:405.3, endx:200.3, endy:405.3, name:"mcItem157", depth:5001};
static var oItem10 = {type:"elements", item:"Goofy", x:801.5, y:406.3, startx:801.5, starty:406.3, endx:-187.7, endy:406.3, name:"mcItem155", depth:5002};
static var oItem11 = {type:"platforms", item:"Truck01", x:169.3, y:334.9, name:"mcItem151", depth:3003};
static var oItem12 = {type:"platforms", item:"Wall04", x:73.7, y:360.7, name:"mcItem150", depth:3011};
static var oItem13 = {type:"platforms", item:"Moving03", x:380.5, y:18.1, minx:463.3, miny:94.8, maxx:463.3, maxy:144.8, leftx:380.5, lefty:18.1, rightx:519, righty:18.1, ldepth:3008, rdepth:3009, name:"mcItem148", depth:3010};
static var oItem14 = {type:"platforms", item:"Platform12", x:556.3, y:83.9, name:"mcItem147", depth:3006};
static var oItem15 = {type:"platforms", item:"Platform11", x:554.9, y:260.5, name:"mcItem146", depth:3005};
static var oItem16 = {type:"platforms", item:"Moving02", x:296.5, y:379.7, minx:304.1, miny:301.9, maxx:304.1, maxy:341.9, tubex:296.5, tubey:379.7, name:"mcItem144", depth:3001};
static var oItem17 = {type:"platforms", item:"Platform10", x:454.9, y:304.7, name:"mcItem143", depth:3004};
static var oItem18 = {type:"platforms", item:"Platform13", x:452, y:203.2, name:"mcItem142", depth:3007};
static var oCollider1 = {type:"colliders", x:-20, y:205, width:40, height:550};
static var oCollider2 = {type:"colliders", x:600, y:205, width:40, height:550, rightwall:true};
static var oCollider3 = {type:"colliders", x:290, y:-100, width:600, height:40};
static var oCollider4 = {type:"colliders", x:290, y:414.9, width:600, height:40};
}
Symbol 1094 MovieClip [__Packages.com.disney.gem.games.total_blackout.levels.level7] Frame 0
class com.disney.gem.games.total_blackout.levels.level7
{
function level7 () {
}
static var Info = {items:21, colliders:4};
static var oItem1 = {type:"elements", item:"Mickey", x:51.5, y:246.8, startx:-132.5, starty:246.8, endx:51.5, endy:246.8, name:"mcItem206", depth:5000};
static var oItem2 = {type:"elements", item:"Go", x:152.8, y:368.1, name:"mcItem205", depth:4500};
static var oItem3 = {type:"elements", item:"Clock", x:257.6, y:334.3, startx:257.6, starty:334.3, endx:101.7, endy:343, time:5, name:"mcItem203", depth:4036};
static var oItem4 = {type:"elements", item:"Clock", x:382.6, y:334.3, startx:382.6, starty:334.3, endx:261.9, endy:57, time:18, name:"mcItem201", depth:4035};
static var oItem5 = {type:"elements", item:"Clock", x:602.9, y:334.3, startx:602.9, starty:334.3, endx:443.1, endy:246.3, time:12, name:"mcItem199", depth:4034};
static var oItem6 = {type:"elements", item:"Clock", x:222.6, y:334.3, startx:222.6, starty:334.3, endx:116.2, endy:232.6, time:10, name:"mcItem197", depth:4033};
static var oItem7 = {type:"elements", item:"Clock", x:189.7, y:334.3, startx:189.7, starty:334.3, endx:25, endy:57, time:20, name:"mcItem195", depth:4032};
static var oItem8 = {type:"elements", item:"Clock", x:523.6, y:334.3, startx:523.6, starty:334.3, endx:384.9, endy:88.9, time:17, name:"mcItem193", depth:4031};
static var oItem9 = {type:"elements", item:"MickeysHat", x:306.9, y:334.3, startx:306.9, starty:334.3, endx:119.8, endy:16, name:"mcItem191", depth:4030};
static var oItem10 = {type:"elements", item:"Pluto", x:373.3, y:405.3, startx:-94.2, starty:405.3, endx:373.3, endy:405.3, name:"mcItem189", depth:5001};
static var oItem11 = {type:"elements", item:"Goofy", x:-187.7, y:406.3, startx:-187.7, starty:406.3, endx:801.5, endy:406.3, name:"mcItem187", depth:5002};
static var oItem12 = {type:"platforms", item:"Windsock", x:430, y:61, name:"mcItem184", depth:3007};
static var oItem13 = {type:"platforms", item:"Truck02", x:506.1, y:359.5, name:"mcItem183", depth:3010};
static var oItem14 = {type:"platforms", item:"Platform16", x:-3, y:83.9, name:"mcItem182", depth:3003};
static var oItem15 = {type:"platforms", item:"Platform17", x:71.1, y:260.5, name:"mcItem181", depth:3004};
static var oItem16 = {type:"platforms", item:"Ensign03", x:174, y:100.8, name:"mcItem179", depth:3002};
static var oItem17 = {type:"platforms", item:"Platform19", x:374.8, y:120.6, name:"mcItem178", depth:3001};
static var oItem18 = {type:"platforms", item:"Copse04", x:80, y:365.6, name:"mcItem177", depth:3005};
static var oItem19 = {type:"platforms", item:"Platform18", x:414.2, y:282.2, name:"mcItem176", depth:3006};
static var oItem20 = {type:"platforms", item:"Moving05", x:275.5, y:260.5, minx:275.5, miny:260.5, maxx:275.5, maxy:350.5, name:"mcItem175", depth:3008};
static var oItem21 = {type:"platforms", item:"Moving06", x:539.3, y:230.4, minx:538.8, miny:84.5, maxx:538.8, maxy:178.5, tubex:539.3, tubey:230.4, tdepth:3009, name:"mcItem174", depth:3011};
static var oCollider1 = {type:"colliders", x:-20, y:205, width:40, height:550};
static var oCollider2 = {type:"colliders", x:600, y:205, width:40, height:550, rightwall:true};
static var oCollider3 = {type:"colliders", x:290, y:-100, width:600, height:40};
static var oCollider4 = {type:"colliders", x:290, y:418.9, width:600, height:40};
}
Symbol 1095 MovieClip [__Packages.com.disney.gem.games.total_blackout.collision.CollideItem] Frame 0
class com.disney.gem.games.total_blackout.collision.CollideItem extends com.sarbakan.utils.StateManaged
{
var mcTopLeft, mcBottomRight, nSpeedX, nSpeedY, oTarget, mcRef, sState, sType, Mc;
function CollideItem (_mcRef, _mcTopLeft, _mcBottomRight) {
super(_mcRef);
mcTopLeft = _mcTopLeft;
mcBottomRight = _mcBottomRight;
nSpeedX = 0;
nSpeedY = 0;
}
function topLeft(_mc) {
mcTopLeft = _mc;
}
function bottomRight(_mc) {
mcBottomRight = _mc;
}
function setTarget(_oTarger) {
oTarget = _oTarger;
oTarget.addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
function Collide(_oEvt, _oObj) {
var _local4 = left + speedX;
var _local5 = top + speedY;
var _local6 = right + speedX;
var _local7 = bottom + speedY;
var _local8 = _oObj.left + _oObj.speedX;
var _local9 = _oObj.top + _oObj.speedY;
var _local10 = _oObj.right + _oObj.speedX;
var _local11 = _oObj.bottom + _oObj.speedY;
var _local12 = testCollide(left, top, right, bottom, _oObj.left, _oObj.top, _oObj.right, _oObj.bottom);
var _local13 = testCollide(_local4, _local5, _local6, _local7, _local8, _local9, _local10, _local11);
if ((_local13 > -1) || (_local12 > -1)) {
var _local14 = fromWhere(_local13);
_oEvt.target.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.COLLIDE, _local14), this);
}
}
function forceTest(_oObj) {
var _local3 = 0;
if ((x + (mcRef._width / 2)) > _oObj.left) {
_local3 = _oObj.left - (x + (mcRef._width / 2));
}
return(_local3);
}
function fromWhere(_nFrom) {
switch (_nFrom) {
case 0 :
case 1 :
case 2 :
case 9 :
var _local3 = "top";
break;
case 3 :
case 11 :
case 14 :
case 16 :
_local3 = "left";
break;
case 5 :
case 12 :
case 15 :
case 17 :
_local3 = "right";
break;
case 6 :
case 7 :
case 8 :
case 10 :
_local3 = "bottom";
break;
case 4 :
_local3 = "center";
break;
case 13 :
_local3 = "over";
break;
default :
_local3 = "undefined";
}
return(_local3);
}
function testCollide(_nX1A, _nY1A, _nX2A, _nY2A, _nX1B, _nY1B, _nX2B, _nY2B) {
var _local10 = ((_nX1A < _nX2A) ? (_nX1A) : (_nX2A));
var _local11 = ((_nX1A < _nX2A) ? (_nX2A) : (_nX1A));
var _local12 = ((_nY1A < _nY2A) ? (_nY1A) : (_nY2A));
var _local13 = ((_nY1A < _nY2A) ? (_nY2A) : (_nY1A));
var _local14 = ((_nX1B < _nX2B) ? (_nX1B) : (_nX2B));
var _local15 = ((_nX1B < _nX2B) ? (_nX2B) : (_nX1B));
var _local16 = ((_nY1B < _nY2B) ? (_nY1B) : (_nY2B));
var _local17 = ((_nY1B < _nY2B) ? (_nY2B) : (_nY1B));
var _local18 = -1;
if ((_local15 > _local10) && ((_local17 > _local12) && ((_local14 < _local10) && (_local16 < _local12)))) {
_local18 = (((_local15 - _local10) > (_local17 - _local12)) ? 0 : 14);
} else if ((_local15 < _local11) && ((_local17 > _local12) && ((_local14 > _local10) && (_local16 < _local12)))) {
_local18 = 1;
} else if ((_local15 > _local11) && ((_local17 > _local12) && ((_local14 < _local11) && (_local16 < _local12)))) {
_local18 = (((_local11 - _local14) > (_local17 - _local12)) ? 2 : 15);
} else if ((_local15 > _local10) && ((_local17 < _local13) && ((_local14 < _local10) && (_local16 > _local12)))) {
_local18 = 3;
} else if ((_local15 < _local11) && ((_local17 < _local13) && ((_local14 > _local10) && (_local16 > _local12)))) {
_local18 = 4;
} else if ((_local15 > _local11) && ((_local17 < _local13) && ((_local14 < _local11) && (_local16 > _local12)))) {
_local18 = 5;
} else if ((_local15 > _local10) && ((_local17 > _local13) && ((_local14 < _local10) && (_local16 < _local13)))) {
_local18 = (((_local15 - _local10) > (_local13 - _local16)) ? 6 : 16);
} else if ((_local15 < _local11) && ((_local17 > _local13) && ((_local14 > _local10) && (_local16 < _local13)))) {
_local18 = 7;
} else if ((_local15 > _local11) && ((_local17 > _local13) && ((_local14 < _local11) && (_local16 < _local13)))) {
_local18 = (((_local11 - _local14) > (_local13 - _local16)) ? 8 : 17);
} else if ((_local15 > _local11) && ((_local14 < _local10) && ((_local17 > _local12) && (_local16 < _local12)))) {
_local18 = 9;
} else if ((_local15 > _local11) && ((_local14 < _local10) && ((_local16 < _local13) && (_local17 > _local13)))) {
_local18 = 10;
} else if ((_local15 > _local10) && ((_local14 < _local10) && ((_local16 < _local12) && (_local17 > _local13)))) {
_local18 = 11;
} else if ((_local15 > _local11) && ((_local14 < _local11) && ((_local16 < _local12) && (_local17 > _local13)))) {
_local18 = 12;
} else if ((_local15 > _local11) && ((_local14 < _local10) && ((_local16 < _local12) && (_local17 > _local13)))) {
_local18 = 13;
}
return(_local18);
}
function startListening() {
oTarget.addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
function stopListening() {
oTarget.removeEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
function stateIsOneOf() {
var _local2 = false;
var _local3 = 0;
for ( ; _local3 < arguments.length ; _local3++) {
if (sState == arguments[_local3]) {
_local2 = true;
break;
}
}
return(_local2);
}
function destroy() {
stopListening();
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.removeListener(this);
mcRef.removeMovieClip();
super.destroy();
}
function get x() {
return(mcRef._x);
}
function get y() {
return(mcRef._y);
}
function get top() {
return(mcTopLeft._y + y);
}
function get bottom() {
return(mcBottomRight._y + y);
}
function get left() {
return(mcTopLeft._x + x);
}
function get right() {
return(mcBottomRight._x + x);
}
function get speedX() {
return(nSpeedX);
}
function set speedX(_nSpeedX) {
nSpeedX = _nSpeedX;
//return(speedX);
}
function get speedY() {
return(nSpeedY);
}
function set speedY(_nSpeedY) {
nSpeedY = _nSpeedY;
//return(speedY);
}
function set x(_nX) {
mcRef._x = _nX;
//return(x);
}
function set y(_nY) {
mcRef._y = _nY;
//return(y);
}
function get type() {
return(sType);
}
function get name() {
return(Mc._name);
}
}
Symbol 1096 MovieClip [__Packages.com.disney.gem.games.total_blackout.events.EventDispatcher] Frame 0
class com.disney.gem.games.total_blackout.events.EventDispatcher
{
var oListener, bEnabled;
function EventDispatcher () {
oListener = new Object();
bEnabled = true;
}
function displayList() {
var _local2 = oListener[com.disney.gem.games.total_blackout.events.Event.TEST];
var _local3 = _local2.length;
var _local4 = _local3 - 1;
for ( ; _local4 > -1 ; _local4--) {
}
}
function dispatchEvent(_oEvt, _oOwner) {
if (bEnabled) {
_oEvt.target = this;
var _local4 = oListener[_oEvt.type];
var _local5 = _local4.length;
var _local6 = _local5 - 1;
for ( ; _local6 > -1 ; _local6--) {
var _local7 = _local4[_local6];
_local7.func.apply(_local7.owner, [_oEvt, _oOwner]);
}
}
}
function addEventListener(_sType, _fFunc, _oOwner) {
if (oListener[_sType] == undefined) {
oListener[_sType] = new Array();
}
if (findListener(_sType, _fFunc, _oOwner) == -1) {
oListener[_sType].push({func:_fFunc, owner:_oOwner});
}
}
function removeEventListener(_sType, _fFunc, _oOwner) {
if ((_sType != undefined) && ((_fFunc != undefined) && (_oOwner != undefined))) {
var _local5 = findListener(_sType, _fFunc, _oOwner);
if (_local5 > -1) {
oListener[_sType].splice(_local5, 1);
}
}
}
function clearListeners() {
oListener = new Object();
}
function hasEventListener(_sType) {
return(oListener[_sType].length > 0);
}
function findListener(_sType, _fFunc, _oOwner) {
var _local5 = oListener[_sType];
var _local6 = _local5.length;
var _local7 = -1;
var _local8 = _local6 - 1;
for ( ; _local8 > -1 ; _local8--) {
if ((_local5[_local8].owner == _oOwner) && (_local5[_local8].func == _fFunc)) {
_local7 = _local8;
break;
}
}
return(_local7);
}
function set enabled(_bEnabled) {
bEnabled = _bEnabled;
//return(enabled);
}
function get enabled() {
return(bEnabled);
}
}
Symbol 1097 MovieClip [__Packages.com.disney.gem.games.total_blackout.events.Event] Frame 0
class com.disney.gem.games.total_blackout.events.Event
{
var sType, sFrom, oTarget;
function Event (_sType, _sFrom) {
sType = _sType;
sFrom = _sFrom;
}
function set target(_oTarget) {
oTarget = _oTarget;
//return(target);
}
function get target() {
return(oTarget);
}
function get type() {
return(sType);
}
function get from() {
return(sFrom);
}
function toString() {
return(((("[Event type=\"" + sType) + "\" from=\"") + sFrom) + "\"]");
}
static var COLLIDE = "collide";
static var TEST = "test";
static var PLUTO = "pluto";
static var PLUTO_WAKE = "pluto_wake";
static var MICKEY = "mickey";
static var PASSED = "passed";
static var START_CLOCK = "start_clock";
static var BUMP = "bump";
static var WAKE_CITY = "city_wake";
static var STOP_CLOCK = "stop_clock";
static var SET_SPEED = "set_speed";
static var SCARED = "scared";
static var LOSE_TRY = "lose_try";
static var MOVING = "moving";
static var FORCE_LAND = "force_land";
static var CROSS = "cross";
static var ACTIVATE_GO = "activate_go";
static var GO = "go";
static var GOOFY = "goofy";
static var STOP_ALL_CLOCK = "stop_all_clock";
}
Symbol 1098 MovieClip [__Packages.com.disney.gem.games.total_blackout.colliders.AllSide] Frame 0
class com.disney.gem.games.total_blackout.colliders.AllSide extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var setMC, Mc, mcRef, sType, topLeft, bottomRight, setTarget, Collide;
function AllSide (_mcRef, _aProperties) {
super(undefined, undefined, undefined);
var _local5 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("AllSide");
_mcRef.attachMovie("mcAllSide", _local5, _mcRef.getNextHighestDepth());
setMC(_mcRef[_local5]);
Mc.sName = _local5;
var _local6 = 0;
for ( ; _local6 < _aProperties.length ; _local6++) {
mcRef["_" + _aProperties[_local6][0]] = _aProperties[_local6][1];
}
sType = "collider";
var _local7 = {_x:(mcRef._width / 2) * -1, _y:(mcRef._height / 2) * -1};
var _local8 = {_x:mcRef._width / 2, _y:mcRef._height / 2};
mcRef._visible = false;
topLeft(_local7);
bottomRight(_local8);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local9 = 0;
for ( ; _local9 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local9++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local9].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
function get type() {
return(sType);
}
function get name() {
return(Mc._name);
}
}
Symbol 1099 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Awning01] Frame 0
class com.disney.gem.games.total_blackout.platforms.Awning01 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, bBounce, mcRef, setState, topLeft, bottomRight, setTarget, Collide, oObj, stateCurrentFrame, mcTopLeft, mcBottomRight, top, oTarget, stateFinished;
function Awning01 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_AWNING_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcAwning01", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
bBounce = true;
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
function Bounce(_oObj) {
oObj = com.disney.gem.games.total_blackout.elements.Mickey(_oObj);
setState(STATE_BOUNCE, true);
}
function state_Bounce() {
switch (stateCurrentFrame()) {
case 2 :
mcTopLeft._y = mcTopLeft._y + 2;
mcBottomRight._y = mcBottomRight._y + 2;
oObj.y = top;
break;
case 3 :
mcTopLeft._y = mcTopLeft._y + 5.5;
mcBottomRight._y = mcBottomRight._y + 5.5;
oObj.y = top;
oObj.speedY = (com.disney.gem.games.total_blackout.Config.Mickey.Jump - 1) - 3;
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.SET_SPEED), this);
}
if (stateFinished()) {
mcTopLeft._y = mcTopLeft._y - 7.5;
mcBottomRight._y = mcBottomRight._y - 7.5;
setState(STATE_IDLE, true);
}
}
function get bouncing() {
return(bBounce);
}
static var STATE_IDLE = "Idle";
static var STATE_BOUNCE = "Bounce";
}
Symbol 1100 MovieClip [__Packages.com.disney.gem.games.total_blackout.elements.Mickey] Frame 0
class com.disney.gem.games.total_blackout.elements.Mickey extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var setMC, sType, mcRef, topLeft, bottomRight, setState, oItem, startX, startY, endX, endY, nSpeedX, nXSpeed, bFaceLeft, bGround, bMoving, bInControl, bInRange, bGo, nDecel, aMovableState, nTargetX, nTargetY, bAutoMode, nSpeedY, bCanStop, stateIsNot, bInited, x, nLastX, onAutoMoveComplete, getState, oInRangeWall, left, right, y, oClock, top, bottom, stateIsOneOf, forceTest, stateFinished, stateCurrentFrame;
function Mickey (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Character");
_mcRef.attachMovie("mcMickey", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "Player";
mcRef.mcTopLeft._alpha = 0;
mcRef.mcBottomRight._alpha = 0;
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
setState(STATE_IDLE, true);
oItem = _oItem;
startX = _oItem.startx;
startY = _oItem.starty;
endX = _oItem.endx;
endY = _oItem.endy;
mcRef._x = startX;
mcRef._y = startY;
nSpeedX = 0;
nXSpeed = 0;
bFaceLeft = false;
bGround = false;
bMoving = false;
bInControl = true;
bInRange = false;
bGo = false;
nDecel = com.disney.gem.games.total_blackout.Config.Mickey.Deceleration;
aMovableState = new Array(STATE_START_RUN, STATE_RUN, STATE_STOP_RUN, STATE_JUMP_START, STATE_JUMP_UP, STATE_JUMP_SWITCH, STATE_JUMP_DOWN, STATE_JUMP_LAND);
com.disney.gem.games.total_blackout.utility.Keys.available(com.disney.gem.games.total_blackout.Config.Control.Left, com.disney.gem.games.total_blackout.Config.Control.Right, com.disney.gem.games.total_blackout.Config.Control.Jump, com.disney.gem.games.total_blackout.Config.Control.Deactivate);
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.addEventListener(com.disney.gem.games.total_blackout.events.Event.MICKEY, startInit, this);
activeCollider();
}
function RunTo(_nX, _nY) {
nTargetX = _nX;
nTargetY = _nY;
bAutoMode = true;
setState(STATE_START_RUN, true);
}
function onUpdate() {
super.onUpdate();
com.disney.gem.games.total_blackout.utility.DepthManager.check(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oDepthItem, this);
if (_global.isNaN(nSpeedX)) {
nSpeedX = 0;
}
if (_global.isNaN(nSpeedY)) {
nSpeedY = 0;
}
if (_global.isNaN(nXSpeed)) {
nXSpeed = 0;
}
setFace();
move();
bCanStop = false;
bMoving = false;
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.TEST), this);
if (nSpeedY != 0) {
bGround = false;
}
if (!bGround) {
if ((nSpeedY > 3) && (stateIsNot(STATE_JUMP_SWITCH, STATE_STOP_CLOCK, STATE_JUMP_DOWN, STATE_JUMP_START))) {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_MICKEY_JUMP_DOWN, true, false);
setState(STATE_JUMP_DOWN, true);
} else if ((nSpeedY < 0) && (stateIsNot(STATE_JUMP_SWITCH, STATE_STOP_CLOCK, STATE_JUMP_UP, STATE_JUMP_START))) {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_MICKEY_JUMP_UP, true, false);
setState(STATE_JUMP_UP, true);
}
}
if (bAutoMode) {
autoMove();
} else if (bInited && (bInControl)) {
checkControl();
if (nLastX != x) {
bInRange = true;
}
}
if (bInRange) {
applyGravity();
}
}
function onPause() {
super.onPause();
mcRef.mcState.mcHead.mcLeftEye.stop();
mcRef.mcState.mcHead.mcRightEye.stop();
}
function onUnPause() {
super.onUnPause();
mcRef.mcState.mcHead.mcLeftEye.play();
mcRef.mcState.mcHead.mcRightEye.play();
}
function setSpeedX() {
nSpeedX = nXSpeed;
}
function displayCross() {
mcRef.mcTopLeft._visible = true;
mcRef.mcBottomRight._visible = true;
}
function hideCross() {
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
}
function startInit() {
onAutoMoveComplete = com.sarbakan.utils.Delegate.create(this, startClocks);
RunTo(endX, endY);
}
function setFace() {
if (bFaceLeft && (mcRef._xscale == 100)) {
mcRef._xscale = -100;
} else if ((!bFaceLeft) && (mcRef._xscale == -100)) {
mcRef._xscale = 100;
}
}
function move() {
if (getState() != STATE_JUMP_START) {
mcRef._x = mcRef._x + nSpeedX;
}
mcRef._y = mcRef._y + nSpeedY;
}
function applyGravity() {
nSpeedY = nSpeedY + com.disney.gem.games.total_blackout.Config.Game.Gravity;
}
function startClocks() {
bInited = true;
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.START_CLOCK), this);
}
function activeCollider() {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.addEventListener(com.disney.gem.games.total_blackout.events.Event.COLLIDE, collideWith, this);
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.addEventListener(com.disney.gem.games.total_blackout.events.Event.SET_SPEED, setSpeedX, this);
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.addEventListener(com.disney.gem.games.total_blackout.events.Event.SCARED, onScared, this);
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.addEventListener(com.disney.gem.games.total_blackout.events.Event.MOVING, onMoving, this);
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.addEventListener(com.disney.gem.games.total_blackout.events.Event.FORCE_LAND, onForceLand, this);
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.addEventListener(com.disney.gem.games.total_blackout.events.Event.CROSS, onCross, this);
}
function deactiveCollider() {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.removeEventListener(com.disney.gem.games.total_blackout.events.Event.COLLIDE, collideWith, this);
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.removeEventListener(com.disney.gem.games.total_blackout.events.Event.SET_SPEED, setSpeedX, this);
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.removeEventListener(com.disney.gem.games.total_blackout.events.Event.SCARED, onScared, this);
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.removeEventListener(com.disney.gem.games.total_blackout.events.Event.MOVING, onMoving, this);
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.removeEventListener(com.disney.gem.games.total_blackout.events.Event.FORCE_LAND, onForceLand, this);
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.removeEventListener(com.disney.gem.games.total_blackout.events.Event.CROSS, onCross, this);
}
function autoMove() {
if (oInRangeWall != undefined) {
if (nTargetX > x) {
if (left > oInRangeWall.right) {
bInRange = true;
oInRangeWall = undefined;
}
} else if (nTargetX < x) {
if (right < oInRangeWall.left) {
bInRange = true;
oInRangeWall = undefined;
}
}
}
if (nTargetX > x) {
bFaceLeft = false;
if ((x + nSpeedX) >= nTargetX) {
nSpeedX = nSpeedX - nDecel;
setState(STATE_STOP_RUN, true);
if (nSpeedX <= 0) {
bAutoMode = false;
onAutoMoveComplete();
}
} else {
nSpeedX = com.disney.gem.games.total_blackout.Config.Mickey.MaxSpeed;
}
} else if (nTargetX < x) {
bFaceLeft = true;
if ((x + nSpeedX) <= nTargetX) {
nSpeedX = nSpeedX + nDecel;
setState(STATE_STOP_RUN, true);
if (nSpeedX >= 0) {
bAutoMode = false;
onAutoMoveComplete();
}
} else {
nSpeedX = -com.disney.gem.games.total_blackout.Config.Mickey.MaxSpeed;
}
}
}
function accelerate(_nAccel, _bOnAir) {
if (_bOnAir) {
if (_nAccel > 0) {
nXSpeed = nXSpeed + _nAccel;
if (nXSpeed > com.disney.gem.games.total_blackout.Config.Mickey.MaxSpeed) {
nXSpeed = com.disney.gem.games.total_blackout.Config.Mickey.MaxSpeed;
}
} else if (_nAccel < 0) {
nXSpeed = nXSpeed + _nAccel;
if (nXSpeed < (-com.disney.gem.games.total_blackout.Config.Mickey.MaxSpeed)) {
nXSpeed = -com.disney.gem.games.total_blackout.Config.Mickey.MaxSpeed;
}
}
} else if (_nAccel > 0) {
nSpeedX = nSpeedX + _nAccel;
if (nSpeedX > com.disney.gem.games.total_blackout.Config.Mickey.MaxSpeed) {
nSpeedX = com.disney.gem.games.total_blackout.Config.Mickey.MaxSpeed;
}
} else if (_nAccel < 0) {
nSpeedX = nSpeedX + _nAccel;
if (nSpeedX < (-com.disney.gem.games.total_blackout.Config.Mickey.MaxSpeed)) {
nSpeedX = -com.disney.gem.games.total_blackout.Config.Mickey.MaxSpeed;
}
}
}
function decelerate(_nDecel) {
if (nSpeedX < 0) {
nSpeedX = nSpeedX + com.disney.gem.games.total_blackout.Config.Mickey.Decel;
if (nSpeedX > 0) {
nSpeedX = 0;
}
} else if (nSpeedX > 0) {
nSpeedX = nSpeedX - com.disney.gem.games.total_blackout.Config.Mickey.Decel;
if (nSpeedX < 0) {
nSpeedX = 0;
}
}
}
function applyFriction() {
nSpeedX = nSpeedX * com.disney.gem.games.total_blackout.Config.Game.Friction;
}
function onScared() {
bInControl = false;
nSpeedX = 0;
setState(STATE_SCARED, true);
}
function onMoving(_oEvt, _oObj) {
nSpeedY = 0;
bGround = true;
y = _oObj.top;
}
function onForceLand(_oEvt, _oObj) {
bGround = true;
nSpeedY = 0;
bInRange = false;
if (nLastX != x) {
bInRange = true;
nLastX = x;
}
if (stateIsNot(STATE_RUN, STATE_IDLE, STATE_START_RUN, STATE_STOP_RUN, STATE_JUMP_START, STATE_STOP_CLOCK, STATE_SCARED, STATE_JUMP_LAND, STATE_JUMP_START, STATE_JUMP_UP)) {
nSpeedX = 0;
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_MICKEY_JUMP_LAND, true, false);
com.disney.gem.games.total_blackout.utility.Sounds.Play(_oObj.sLandSound, true, false);
setState(STATE_JUMP_LAND, true);
}
y = _oObj.top;
}
function onCross(_oEvt, _oObj) {
bGround = true;
nSpeedY = 0;
if (stateIsNot(STATE_RUN, STATE_IDLE, STATE_START_RUN, STATE_STOP_RUN, STATE_JUMP_START, STATE_STOP_CLOCK, STATE_SCARED, STATE_JUMP_LAND, STATE_JUMP_START, STATE_JUMP_UP)) {
nSpeedX = 0;
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_MICKEY_JUMP_LAND, true, true);
setState(STATE_JUMP_LAND, true);
com.disney.gem.games.total_blackout.utility.Sounds.Play(_oObj.sLandSound, true, false);
}
y = _oObj.top;
}
function checkControl() {
if (Key.isDown(com.disney.gem.games.total_blackout.Config.Control.Left) && ((!Key.isDown(com.disney.gem.games.total_blackout.Config.Control.Right)) && (stateIsNot(STATE_JUMP_LAND, STATE_SCARED, STATE_STOP_CLOCK)))) {
bFaceLeft = true;
if (bGround) {
accelerate(-com.disney.gem.games.total_blackout.Config.Mickey.Accel);
if ((getState() == STATE_IDLE) || (getState() == STATE_STOP_RUN)) {
setState(STATE_START_RUN, true);
}
} else {
accelerate(-com.disney.gem.games.total_blackout.Config.Mickey.Accel);
}
} else if (Key.isDown(com.disney.gem.games.total_blackout.Config.Control.Right) && ((!Key.isDown(com.disney.gem.games.total_blackout.Config.Control.Left)) && (stateIsNot(STATE_JUMP_LAND, STATE_SCARED, STATE_STOP_CLOCK)))) {
bFaceLeft = false;
if (bGround) {
accelerate(com.disney.gem.games.total_blackout.Config.Mickey.Accel);
if ((getState() == STATE_IDLE) || (getState() == STATE_STOP_RUN)) {
setState(STATE_START_RUN, true);
}
} else {
accelerate(com.disney.gem.games.total_blackout.Config.Mickey.Accel);
}
} else if (com.disney.gem.games.total_blackout.utility.Keys.none(com.disney.gem.games.total_blackout.Config.Control.Left, com.disney.gem.games.total_blackout.Config.Control.Right)) {
if (bGround) {
decelerate(com.disney.gem.games.total_blackout.Config.Mickey.Decel);
if (getState() == STATE_RUN) {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_MICKEY_STOP_RUN, true, true, 1, 100);
setState(STATE_STOP_RUN, true);
}
} else {
applyFriction();
}
}
if (Key.isDown(com.disney.gem.games.total_blackout.Config.Control.Jump) && (getState() != STATE_STOP_CLOCK)) {
if (bGround) {
bGround = false;
com.disney.gem.games.total_blackout.utility.Sounds.Stop(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_MICKEY_RUN);
com.disney.gem.games.total_blackout.utility.Sounds.Stop(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_MICKEY_STOP_RUN);
com.disney.gem.games.total_blackout.utility.Sounds.Stop(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_MICKEY_JUMP_LAND);
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_MICKEY_START_JUMP, true, false, 1, 100);
setState(STATE_JUMP_START, true);
}
}
if (Key.isDown(com.disney.gem.games.total_blackout.Config.Control.Deactivate) && (bGround && (bCanStop))) {
if (oClock.x < x) {
bFaceLeft = true;
} else {
bFaceLeft = false;
}
setState(STATE_STOP_CLOCK, true);
}
}
function collideWith(_oEvt, _oObj) {
if (_oEvt.from != undefined) {
switch (_oObj.type) {
case "collider" :
if (bInRange) {
switch (_oEvt.from) {
case "top" :
bGround = true;
nSpeedY = 0;
y = _oObj.top;
if (stateIsNot(STATE_RUN, STATE_IDLE, STATE_START_RUN, STATE_STOP_RUN, STATE_JUMP_START, STATE_STOP_CLOCK, STATE_SCARED, STATE_JUMP_LAND, STATE_JUMP_START, STATE_JUMP_UP)) {
nSpeedX = 0;
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_MICKEY_JUMP_LAND, true, true);
setState(STATE_JUMP_LAND, true);
com.disney.gem.games.total_blackout.utility.Sounds.Play(_oObj.sLandSound, true, false);
}
break;
case "bottom" :
nSpeedY = 0;
y = _oObj.bottom + (y - top);
break;
case "left" :
nSpeedX = 0;
x = _oObj.left + (x - right);
break;
case "right" :
nSpeedX = 0;
x = _oObj.right + (x - left);
}
}
if (!bInRange) {
oInRangeWall = _oObj;
}
break;
case "platform" :
if ((_oEvt.from == "top") && ((Math.floor((bottom - nSpeedY) * 10) <= Math.floor(_oObj.top * 10)) && ((_oObj.bouncing == undefined) && ((_oObj.bPixel == undefined) && ((_oObj.pixel == undefined) && (_oObj.angular == undefined)))))) {
bGround = true;
nSpeedY = 0;
if (stateIsNot(STATE_RUN, STATE_IDLE, STATE_START_RUN, STATE_STOP_RUN, STATE_JUMP_START, STATE_STOP_CLOCK, STATE_SCARED, STATE_JUMP_LAND, STATE_JUMP_UP)) {
nSpeedX = 0;
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_MICKEY_JUMP_LAND, true, true);
setState(STATE_JUMP_LAND, true);
com.disney.gem.games.total_blackout.utility.Sounds.Play(_oObj.sLandSound, true, false);
}
_oObj.char = this;
y = _oObj.top;
} else if ((_oEvt.from == "top") && (Math.floor((bottom - nSpeedY) * 10) <= Math.floor(_oObj.top * 10))) {
_oObj.Bounce(this);
if (stateIsNot(STATE_RUN, STATE_IDLE, STATE_START_RUN, STATE_STOP_RUN, STATE_JUMP_START, STATE_STOP_CLOCK, STATE_SCARED, STATE_JUMP_LAND, STATE_JUMP_START, STATE_JUMP_UP)) {
nSpeedX = 0;
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_MICKEY_JUMP_LAND, true, true);
setState(STATE_JUMP_LAND, true);
com.disney.gem.games.total_blackout.utility.Sounds.Play(_oObj.sLandSound, true, false);
}
}
break;
case "character" :
if (bInited && (bInControl)) {
_oObj.wakeUp(undefined, this);
nSpeedX = 0;
bInControl = false;
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_MICKEY_SCARED, true, true);
setState(STATE_SCARED, true);
}
break;
case "bonus" :
if (bInited) {
com.disney.gem.games.total_blackout.Stats.lifes["level" + com.disney.gem.games.total_blackout.Controller.getInstance().getLevel()] = true;
com.disney.gem.games.total_blackout.Stats.tries++;
com.disney.gem.games.total_blackout.Controller.getInstance().increaseScore(com.disney.gem.games.total_blackout.Config.Hat.Points);
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_HAT_PICKUP, true, true, 1, 100);
_oObj.destroy();
}
break;
case "clock" :
if (bInited) {
bCanStop = true;
oClock = com.disney.gem.games.total_blackout.elements.Clock(_oObj);
}
break;
case "go" :
if (!(stateIsOneOf(STATE_IDLE, STATE_START_RUN, STATE_STOP_RUN, STATE_RUN) && (!bGo))) {
break;
}
bGo = true;
var _local4 = forceTest(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oRightWall);
if (_local4 != 0) {
_local4 = _local4 - 20;
onAutoMoveComplete = com.sarbakan.utils.Delegate.create(this, forceStop);
RunTo(x + _local4, y);
} else {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.onGameEnd();
}
}
}
}
function forceStop() {
setState(STATE_RUN, true);
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.onGameEnd();
}
function state_Idle() {
}
function state_StartRun() {
if (stateFinished()) {
setState(STATE_RUN, true);
}
}
function state_Run() {
}
function state_StopRun() {
if (stateFinished()) {
setState(STATE_IDLE, true);
}
}
function state_JumpStart() {
if (stateFinished()) {
bInRange = true;
nSpeedY = com.disney.gem.games.total_blackout.Config.Mickey.Jump;
setState(STATE_JUMP_UP, true);
}
}
function state_JumpUp() {
if ((nSpeedY + (com.disney.gem.games.total_blackout.Config.Game.Gravity * 2)) >= 0) {
setState(STATE_JUMP_SWITCH, true);
}
if (stateFinished()) {
mcRef.mcState.stop();
}
}
function state_JumpSwitch() {
if (stateFinished()) {
setState(STATE_JUMP_DOWN, true);
}
}
function state_JumpDown() {
if (stateFinished()) {
mcRef.mcState.stop();
}
}
function state_JumpLand() {
if (stateFinished()) {
setState(STATE_IDLE, true);
}
}
function state_StopClock() {
if (stateCurrentFrame() == 8) {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_MICKEY_STOP_CLOCK, true, false, 1, 100);
oClock.stopTicking();
}
if (stateFinished()) {
setState(STATE_IDLE, true);
}
}
function state_Scared() {
if (stateFinished()) {
setState(STATE_IDLE, true);
}
}
static var STATE_IDLE = "Idle";
static var STATE_START_RUN = "StartRun";
static var STATE_RUN = "Run";
static var STATE_STOP_RUN = "StopRun";
static var STATE_JUMP_START = "JumpStart";
static var STATE_JUMP_UP = "JumpUp";
static var STATE_JUMP_SWITCH = "JumpSwitch";
static var STATE_JUMP_DOWN = "JumpDown";
static var STATE_JUMP_LAND = "JumpLand";
static var STATE_STOP_CLOCK = "StopClock";
static var STATE_SCARED = "Scared";
}
Symbol 1101 MovieClip [__Packages.com.disney.gem.games.total_blackout.elements.Clock] Frame 0
class com.disney.gem.games.total_blackout.elements.Clock extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var setMC, sType, mcRef, topLeft, bottomRight, setState, oItem, startX, startY, endX, endY, oTrajectory, nPassed, nTime, bStop, setTarget, Collide, oTarget, bClockStop, nFrame, x, y, stateFinished, stateCurrentFrame;
function Clock (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Item");
_mcRef.attachMovie("mcClock", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "clock";
mcRef.mcTopLeft._alpha = 0;
mcRef.mcBottomRight._alpha = 0;
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
setState(STATE_HIDDEN, true);
oItem = _oItem;
startX = _oItem.startx;
startY = _oItem.starty;
endX = _oItem.endx;
endY = _oItem.endy;
var _local7 = new flash.geom.Point(startX, startY);
var _local8 = new flash.geom.Point(endX, endY);
oTrajectory = new com.disney.gem.games.total_blackout.utility.Trajectory(_local7, _local8, 150, 30);
nPassed = 0;
nTime = _oItem.time * 30;
mcRef._x = startX;
mcRef._y = startY;
bStop = true;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local9 = 0;
for ( ; _local9 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local9++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local9].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.addEventListener(com.disney.gem.games.total_blackout.events.Event.START_CLOCK, onStart, this);
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.addEventListener(com.disney.gem.games.total_blackout.events.Event.STOP_ALL_CLOCK, stopAllClock, this);
oTarget.addEventListener(com.disney.gem.games.total_blackout.events.Event.PASSED, onPassed, this);
}
function onUpdate() {
super.onUpdate();
if (!bStop) {
tick();
} else {
stopClock();
}
}
function startClock() {
bStop = false;
}
function stopTicking() {
bClockStop = true;
bStop = true;
setState(STATE_BOUNCE, true);
com.disney.gem.games.total_blackout.utility.Sounds.Stop(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_CLOCK_WARN);
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_CLOCK_BOUNCE, false, false, 1, 75);
com.disney.gem.games.total_blackout.Stats.score = com.disney.gem.games.total_blackout.Stats.score + (com.disney.gem.games.total_blackout.Config.Clock.Points + (Math.floor(nTime / 30) * com.disney.gem.games.total_blackout.Config.Clock.PointsSecond));
oTarget.removeEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.STOP_CLOCK), this);
}
function stopAllClock() {
com.disney.gem.games.total_blackout.utility.Sounds.Stop(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_CLOCK_WARN);
bClockStop = true;
bStop = true;
stopClock();
}
function stopClock() {
bStop = true;
if (!bClockStop) {
mcRef.mcState.mcTick.gotoAndStop(1);
} else {
mcRef.mcState.mcTick.gotoAndStop(nFrame);
}
mcRef.mcState.mcTick.stop();
}
function stopAlarm() {
bStop = true;
mcRef.mcState.mcTick.stop();
}
function onStart(_oEvt, _oObj) {
startClock();
bStop = false;
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_CLOCK_IDLE, true, false, 65536, 75);
}
function tick() {
nPassed++;
nFrame = Math.floor((nPassed / nTime) * 100);
mcRef.mcState.mcTick.gotoAndStop(nFrame);
if ((nPassed / nTime) >= 0.75) {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_CLOCK_WARN, true, false, 65536, 100);
setState(STATE_WARNING, true);
mcRef.mcState.mcTick.gotoAndStop(nFrame);
}
if (nPassed == nTime) {
stopAlarm();
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.STOP_ALL_CLOCK), this);
com.disney.gem.games.total_blackout.utility.Sounds.Stop(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_CLOCK_WARN);
com.disney.gem.games.total_blackout.utility.Sounds.Stop(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_CLOCK_IDLE);
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_CLOCK_ALARM, true, false, 1, 100);
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.SCARED), this);
oTarget.removeEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
setState(STATE_RINGS, true);
mcRef.mcState.mcTick.gotoAndStop(nFrame);
}
}
function onPassed(_oEvt, _oObj) {
if ((x <= _oObj.spawn) && (!_oObj.flip)) {
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.BUMP), this);
oTarget.removeEventListener(com.disney.gem.games.total_blackout.events.Event.PASSED, onPassed, this);
setState(STATE_EJECTED, true);
} else if ((x >= _oObj.spawn) && (_oObj.flip)) {
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.BUMP), this);
oTarget.removeEventListener(com.disney.gem.games.total_blackout.events.Event.PASSED, onPassed, this);
setState(STATE_EJECTED, true);
}
}
function state_Ejected() {
stopClock();
oTrajectory.define();
com.disney.gem.games.total_blackout.utility.DepthManager.check(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oDepthItem, this);
if (oTrajectory.ended) {
x = endX;
y = endY;
setState(STATE_BOUNCE, true);
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_CLOCK_BOUNCE, true, true, 1, 100);
} else {
x = oTrajectory.x;
y = oTrajectory.y;
}
}
function state_Bounce() {
if (stateFinished()) {
setState(STATE_IDLE, true);
}
}
function state_Idle() {
}
function state_Rings() {
mcRef.mcState.mcTick.gotoAndStop(100);
if (stateCurrentFrame() == 10) {
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.PLUTO_WAKE), this);
}
}
static var STATE_IDLE = "Idle";
static var STATE_EJECTED = "Ejected";
static var STATE_BOUNCE = "Bounce";
static var STATE_WARNING = "Warning";
static var STATE_RINGS = "Rings";
static var STATE_HIDDEN = "Hidden";
}
Symbol 1102 MovieClip [__Packages.com.disney.gem.games.total_blackout.utility.Trajectory] Frame 0
class com.disney.gem.games.total_blackout.utility.Trajectory
{
var nThrowHeight, nThrowDuration, nThrowTime, oStart, oEnd, oThrow;
function Trajectory (_oStart, _oEnd, _nThrowHeight, _nThrowDuration) {
nThrowHeight = _nThrowHeight;
nThrowDuration = _nThrowDuration;
nThrowTime = 0;
oStart = _oStart;
oEnd = _oEnd;
}
function define() {
if (nThrowTime < nThrowDuration) {
oThrow = flash.geom.Point.interpolate(oEnd, oStart, nThrowTime / nThrowDuration);
nThrowTime++;
}
}
function get x() {
return(oThrow.x);
}
function get y() {
return(oThrow.y - (Math.sin((nThrowTime / nThrowDuration) * Math.PI) * nThrowHeight));
}
function get ended() {
return(nThrowTime >= nThrowDuration);
}
}
Symbol 1103 MovieClip [__Packages.com.disney.gem.games.total_blackout.utility.Sounds] Frame 0
class com.disney.gem.games.total_blackout.utility.Sounds
{
static var sCurrentMusic, sCurrentAmbient;
function Sounds () {
}
static function Play(_sSounds, _bUnique, _bOverride, _nLoop, _nVolume) {
var _local7 = true;
if (_bUnique) {
if (com.disney.gem.games.total_blackout.utility.sndEngine.isSoundPlaying(_sSounds).bPlaying) {
_local7 = false;
}
}
if (_bOverride && (!_local7)) {
Stop(_sSounds);
_local7 = true;
}
if (_nLoop == undefined) {
_nLoop = 1;
}
if (_nVolume == undefined) {
_nVolume = 100;
}
if (_local7) {
com.disney.gem.games.total_blackout.utility.sndEngine.doPlaySoundInCat(sSOUND_CAT_NAME, _sSounds, _nVolume, _nLoop);
}
}
static function Stop(_sSound) {
if (com.disney.gem.games.total_blackout.utility.sndEngine.isSoundPlaying(_sSound).bPlaying) {
com.disney.gem.games.total_blackout.utility.sndEngine.isSoundPlaying(_sSound).oSound.doStop();
}
}
static function Pause(_sCategory) {
com.disney.gem.games.total_blackout.utility.sndEngine.doPauseCategory(_sCategory);
}
static function Unpause(_sCategory) {
com.disney.gem.games.total_blackout.utility.sndEngine.doUnPauseCategory(_sCategory);
}
static function StopAll(_sCategory) {
com.disney.gem.games.total_blackout.utility.sndEngine.doStopCategory(_sCategory);
}
static function setMusic(_sSound) {
if ((sCurrentMusic != undefined) && (sCurrentMusic != _sSound)) {
com.disney.gem.games.total_blackout.utility.sndEngine.isSoundPlaying(sCurrentMusic).oSound.doFadeTo(0);
}
com.disney.gem.games.total_blackout.utility.sndEngine.doPlaySoundInCat(sMUSIC_CAT_NAME, _sSound, 0, 65536, true);
com.disney.gem.games.total_blackout.utility.sndEngine.isSoundPlaying(_sSound).oSound.doFadeTo(100, false);
sCurrentMusic = _sSound;
}
static function setAmbient(_sSound) {
if (com.disney.gem.games.total_blackout.Controller.getInstance().getGamePhase() == com.sarbakan.BaseDisneyController.nGAME_PHASE_INGAME) {
if ((sCurrentAmbient != undefined) && (sCurrentAmbient != _sSound)) {
com.disney.gem.games.total_blackout.utility.sndEngine.isSoundPlaying(sCurrentAmbient).oSound.doFadeTo(0);
}
com.disney.gem.games.total_blackout.utility.sndEngine.doPlaySoundInCat(sAMBIENT_CAT_NAME, _sSound, 0, 65536, true);
com.disney.gem.games.total_blackout.utility.sndEngine.isSoundPlaying(_sSound).oSound.doFadeTo(100, false);
sCurrentAmbient = _sSound;
} else {
StopAll(sAMBIENT_CAT_NAME);
}
}
static var sSOUND_CAT_NAME = "SFX";
static var sAMBIENT_CAT_NAME = "Ambient";
static var sMUSIC_CAT_NAME = "Music";
static var nSOUND_CAT_VOLUME = 80;
static var nAMBIENT_CAT_VOLUME = 50;
static var nMUSIC_CAT_VOLUME = 25;
static var sMUSIC_PACKAGING = "sMu_pack";
static var sMUSIC_INGAME = "sMu_game";
static var sAMBIENT_LEVEL_1 = "sAm_level_1";
static var sAMBIENT_LEVEL_2 = "sAm_level_2";
static var sAMBIENT_LEVEL_3 = "sAm_level_3";
static var sAMBIENT_LEVEL_4 = "sAm_level_4";
static var sAMBIENT_LEVEL_5 = "sAm_level_5";
static var sAMBIENT_LEVEL_6 = "sAm_level_6";
static var sAMBIENT_LEVEL_7 = "sAm_level_7";
static var sSFX_BUTTON_CLICK = "sSfx_button_click";
static var sSFX_BUTTON_ROLLOVER = "sSfx_button_rollover";
static var sSFX_TRANSITION_IN = "sSfx_transition_in";
static var sSFX_TRANSITION_OUT = "sSfx_transition_out";
static var sSFX_LOSE = "sSfx_lose";
static var sSFX_WIN = "sSfx_win";
static var sSFX_MICKEY_RUN = "sSfx_mickey_run";
static var sSFX_MICKEY_STOP_RUN = "sSfx_mickey_stop_run";
static var sSFX_MICKEY_STOP_CLOCK = "sSfx_mickey_stop_clock";
static var sSFX_MICKEY_SCARED = "sSfx_mickey_scared,sSfx_mickey_scared_02,sSfx_mickey_scared_03";
static var sSFX_MICKEY_START_JUMP = "sSfx_mickey_start_jump,sSfx_mickey_start_jump_02,sSfx_mickey_start_jump_03";
static var sSFX_MICKEY_JUMP_UP = "sSfx_mickey_jump_up";
static var sSFX_MICKEY_JUMP_SWITCH = "sSfx_mickey_jump_switch";
static var sSFX_MICKEY_JUMP_DOWN = "sSfx_mickey_jump_down";
static var sSFX_MICKEY_JUMP_LAND = "sSfx_mickey_jump_land,sSfx_mickey_jump_land_02,sSfx_mickey_jump_land_03";
static var sSFX_GOOFY_IDLE = "sSfx_goofy_idle,sSfx_goofy_idle_2";
static var sSFX_GOOFY_BUMP = "sSfx_goofy_bump";
static var sSFX_PLUTO_RUN = "sSfx_pluto_run";
static var sSFX_PLUTO_SLEEP_IN = "sSfx_pluto_sleep_in";
static var sSFX_PLUTO_SLEEP_IDLE = "sSfx_pluto_sleep_idle_02,sSfx_pluto_sleep_idle_03,sSfx_pluto_sleep_idle_04";
static var sSFX_PLUTO_WAKE = "sSfx_pluto_wake";
static var sSFX_CLOCK_IDLE = "sSfx_clock_idle";
static var sSFX_CLOCK_BOUNCE = "sSfx_clock_bounce";
static var sSFX_CLOCK_WARN = "sSfx_clock_warn_02";
static var sSFX_CLOCK_ALARM = "sSfx_clock_alarm";
static var sSFX_HAT_PICKUP = "sSfx_hat_pickup";
static var sSFX_DOOR_LAND = "sSfx_door_land";
static var sSFX_AWNING_LAND = "sSfx_awning_land";
static var sSFX_TIRES_PILE_LAND = "sSfx_tires_pile_land";
static var sSFX_TIRES_RACK_LAND = "sSfx_tires_rack_land";
static var sSFX_PARASOL_LAND = "sSfx_parasol_land";
static var sSFX_TRUCK_BAGS_LAND = "sSfx_truck_bags_land";
static var sSFX_MAILBOX_LAND = "sSfx_mailbox_land,sSfx_mailbox_land_2";
static var sSFX_FIREBORN_LAND = "sSfx_fireborn_land";
static var sSFX_TRASH_LAND = "sSfx_trash_land";
static var sSFX_LEVEL2_ENSIGN_LAND = "sSfx_level2_ensign_land";
static var sSFX_LEVEL5_ENSIGN_LAND = "sSfx_level5_ensign_land";
static var sSFX_TINK_LAND = "sSfx_tink_land";
static var sSFX_POLE_LAND = "sSfx_pole_land";
static var sSFX_ROAD_BLOCK_LAND = "sSfx_road_block_land";
static var sSFX_AMBULANCE_LAND = "sSfx_ambulance_land";
static var sSFX_WOOD_LAND = "sSfx_wood_land";
static var sSFX_METAL_LAND = "sSfx_metal_land";
static var sSFX_BARRIER_LAND = "sSfx_wood_land";
static var sSFX_BARRIER_RELEASE = "sSfx_barrier_release,sSfx_barrier_release_2";
static var sSFX_ROOF_LAND = "sSfx_roof_land";
}
Symbol 1104 MovieClip [__Packages.com.disney.gem.games.total_blackout.utility.sndEngine] Frame 0
class com.disney.gem.games.total_blackout.utility.sndEngine
{
static var aSounds, mcAttach, nSoundNum, aSoundCategories, nMasterVolume;
function sndEngine () {
}
static function doPlaySound(__sLinkage, __nVolume, __nLoop, __bUnique) {
return(doPlaySoundInCat(DEFAULT_CATEGORY, __sLinkage, __nVolume, __nLoop, __bUnique));
}
static function doPlaySoundInCat(__sCategoryName, __sLinkage, __nVolume, __nLoop, __bUnique) {
doCheckInit();
var _local8 = new Array();
if (__nVolume == undefined) {
__nVolume = 100;
}
if (__nLoop == undefined) {
__nLoop = 1;
}
if (__bUnique == undefined) {
__bUnique = false;
}
if (__sLinkage.indexOf(",") > 0) {
_local8 = __sLinkage.split(",");
var _local9 = _local8[Math.floor(Math.random() * (_local8.length - 1))];
} else {
var _local9 = __sLinkage;
}
if (__bUnique) {
var _local11 = isSoundPlaying(__sLinkage);
if (_local11.bPlaying) {
var _local10 = false;
var _local7 = _local11.oSound;
} else {
var _local10 = true;
}
} else {
var _local10 = true;
}
if (_local10) {
doManageCategory(__sCategoryName);
var _local12 = getMCForSound();
var _local13 = new Sound(_local12);
_local13.attachSound(_local9);
if (_local13.duration != undefined) {
var _local7 = new com.disney.gem.games.total_blackout.utility.sndItem(_local13, _local9, __nVolume, __nLoop, __sCategoryName, _local12);
}
_local7.doAddListener(com.disney.gem.games.total_blackout.utility.sndEngine);
aSounds.push(_local7);
}
return(_local7);
}
static function isSoundPlaying(__sLinkageName) {
var _local3 = new Object();
var _local4 = new Array();
_local3.bPlaying = false;
_local3.oSound = undefined;
if (__sLinkageName.indexOf(",") > 0) {
_local4 = __sLinkageName.split(",");
}
if (_local4.length > 0) {
var _local5 = 0;
// unexpected jump
do {
_local5++;
if (_local5 >= aSounds.length) {
break;
}
var _local6 = 0;
} while (for ( ; _local6 < _local4.length ; _local6++) {
if (aSounds[_local5].LinkageName == _local4[_local6]) {
_local3.oSound = aSounds[_local5]_local3.bPlaying = truebreak;
}
}
, !_local3.bPlaying);
} else {
var _local7 = 0;
for ( ; _local7 < aSounds.length ; _local7++) {
if (aSounds[_local7].LinkageName == __sLinkageName) {
_local3.oSound = aSounds[_local7];
_local3.bPlaying = true;
break;
}
}
}
return(_local3);
}
static function doManageExternalSound(__oSound) {
doCheckInit();
doManageCategory(__oSound.Category);
__oSound.doAddListener(com.disney.gem.games.total_blackout.utility.sndEngine);
aSounds.push(__oSound);
}
static function getMCForSound() {
var _local2 = getNextDepth();
var _local3 = mcAttach.createEmptyMovieClip("Snd" + _local2, _local2);
return(_local3);
}
static function getNextDepth() {
nSoundNum++;
return(nSoundNum);
}
static function doInit(__mcAttach) {
mcAttach = __mcAttach;
if (!bInited) {
bInited = true;
nSoundNum = 0;
aSounds = new Array();
aSoundCategories = new Array();
nMasterVolume = 100;
mcAttach.onEnterFrame = com.sarbakan.utils.Delegate.create(com.disney.gem.games.total_blackout.utility.sndEngine, doEnterFrame);
}
}
static function doEnterFrame() {
var _local2 = 0;
for ( ; _local2 < aSounds.length ; _local2++) {
aSounds[_local2].doEnterFrame();
}
}
static function setCategoryVolume(__sCategoryName, __nVol) {
doManageCategory(__sCategoryName);
var _local4 = 0;
for ( ; _local4 < aSoundCategories.length ; _local4++) {
if (aSoundCategories[_local4].sName == __sCategoryName) {
aSoundCategories[_local4].nVolume = __nVol;
}
}
doUpdateAllSoundsVolume();
}
static function getCategoryVolume(__sCategoryName) {
doManageCategory(__sCategoryName);
var _local4 = 0;
for ( ; _local4 < aSoundCategories.length ; _local4++) {
if (aSoundCategories[_local4].sName == __sCategoryName) {
var _local3 = aSoundCategories[_local4].nVolume;
}
}
return(_local3);
}
static function isCategoryMuted(__sCategoryName) {
doManageCategory(__sCategoryName);
var _local4 = 0;
for ( ; _local4 < aSoundCategories.length ; _local4++) {
if (aSoundCategories[_local4].sName == __sCategoryName) {
var _local3 = aSoundCategories[_local4].bMuted;
}
}
return(_local3);
}
static function doSoundEvent(__nEvent, __oSound) {
if (!(__nEvent === EVENT_SOUND_COMPLETE)) {
} else {
var _local4 = false;
var _local5 = 0;
for ( ; _local5 < aSounds.length ; _local5++) {
if (!_local4) {
if (aSounds[_local5] == __oSound) {
_local4 = true;
delete aSounds[_local5];
aSounds.splice(_local5, 1);
}
}
}
}
}
static function doMuteCategory(__sCategoryName) {
var _local3 = 0;
for ( ; _local3 < aSoundCategories.length ; _local3++) {
if (aSoundCategories[_local3].sName == __sCategoryName) {
aSoundCategories[_local3].bMuted = true;
}
}
doUpdateAllSoundsVolume();
}
static function doUnMuteCategory(__sCategoryName) {
var _local3 = 0;
for ( ; _local3 < aSoundCategories.length ; _local3++) {
if (aSoundCategories[_local3].sName == __sCategoryName) {
aSoundCategories[_local3].bMuted = false;
}
}
doUpdateAllSoundsVolume();
}
static function doPauseCategory(__sCategoryName) {
var _local3 = 0;
for ( ; _local3 < aSounds.length ; _local3++) {
if (aSounds[_local3].Category == __sCategoryName) {
aSounds[_local3].doPause();
}
}
}
static function doUnPauseCategory(__sCategoryName) {
var _local3 = 0;
for ( ; _local3 < aSounds.length ; _local3++) {
if (aSounds[_local3].Category == __sCategoryName) {
aSounds[_local3].doResume();
}
}
}
static function doStopCategory(__sCategoryName) {
var _local3 = 0;
for ( ; _local3 < aSounds.length ; _local3++) {
if (aSounds[_local3].Category == __sCategoryName) {
aSounds[_local3].doStop();
}
}
}
static function setMasterVolume(__nVol) {
nMasterVolume = __nVol;
doUpdateAllSoundsVolume();
}
static function __get__NewSoundAllowed() {
return(aSounds.length < MAX_SOUNDS_PLAYING);
}
static function __get__MasterVolume() {
return(nMasterVolume);
}
static function doRemoveListenerFromAllSounds(__oListener) {
var _local3 = 0;
for ( ; _local3 < aSounds.length ; _local3++) {
aSounds[_local3].doRemoveListener(__oListener);
}
}
static function clearData() {
doRemoveListenerFromAllSounds();
var _local2 = 0;
for ( ; _local2 < aSounds.length ; _local2++) {
aSounds[_local2].clearData();
}
}
static function doUpdateAllSoundsVolume() {
var _local2 = 0;
for ( ; _local2 < aSounds.length ; _local2++) {
aSounds[_local2].doUpdateSound();
}
}
static function doCheckInit() {
if (!bInited) {
}
}
static function doManageCategory(__sCategoryName) {
doCheckInit();
var _local3 = false;
var _local4 = 0;
for ( ; _local4 < aSoundCategories.length ; _local4++) {
if (aSoundCategories[_local4].sName == __sCategoryName) {
_local3 = true;
}
}
if (!_local3) {
var _local5 = new Object();
_local5.sName = __sCategoryName;
_local5.nVolume = 100;
_local5.bMuted = false;
aSoundCategories.push(_local5);
}
}
static var EVENT_SOUND_COMPLETE = 1;
static var DEFAULT_CATEGORY = "SFX";
static var MAX_SOUNDS_PLAYING = 128;
static var bInited = false;
}
Symbol 1105 MovieClip [__Packages.com.disney.gem.games.total_blackout.utility.sndItem] Frame 0
class com.disney.gem.games.total_blackout.utility.sndItem
{
var sndObj, sLinkage, mcRef, nRemainingLoop, nCurrentVolume, nTargetVolume, nFadeRate, sCategory, bFadeAtEnd, bMuted, bPaused, bNeedFreshStart, nCurrentTime, aEventListeners, onComplete, bStopAfterFade;
function sndItem (__sndObject, __sLinkage, __nVolume, __nLoop, __sCategory, __mc) {
sndObj = __sndObject;
sLinkage = __sLinkage;
mcRef = __mc;
nRemainingLoop = __nLoop;
nCurrentVolume = __nVolume;
nTargetVolume = __nVolume;
nFadeRate = FADE_RATE;
sCategory = __sCategory;
bFadeAtEnd = false;
bMuted = false;
bPaused = false;
bNeedFreshStart = false;
sndObj.onSoundComplete = com.sarbakan.utils.Delegate.create(this, doSoundComplete);
sndObj.start(0, __nLoop);
sndObj.setVolume(returnComputedVolume(nCurrentVolume));
nCurrentTime = 0;
aEventListeners = new Array();
}
function doEnterFrame() {
if (!bPaused) {
if (nCurrentTime > sndObj.position) {
nRemainingLoop--;
}
nCurrentTime = sndObj.position;
}
doCheckFadeAtEnd();
doManageFade();
}
function doAddListener(__oListener) {
aEventListeners.push(__oListener);
}
function doRemoveListener(__oListener) {
var _local3 = 0;
for ( ; _local3 < aEventListeners.length ; _local3++) {
if (aEventListeners[_local3] == __oListener) {
delete aEventListeners[_local3];
aEventListeners.splice(_local3, 1);
}
}
}
function doSoundComplete() {
if (bNeedFreshStart && (nRemainingLoop > 1)) {
sndObj.start(0, nRemainingLoop - 1);
} else {
if (onComplete != undefined) {
onComplete();
}
doManageEndEvent();
}
}
function doUpdateSound() {
sndObj.setVolume(returnComputedVolume(nCurrentVolume));
}
function doMute() {
bMuted = true;
doUpdateSound();
}
function doUnMute() {
bMuted = false;
doUpdateSound();
}
function doPause() {
sndObj.stop();
bPaused = true;
}
function doResume() {
bPaused = false;
bNeedFreshStart = true;
sndObj.start(nCurrentTime / 1000, 1);
}
function doStop() {
sndObj.stop();
doManageEndEvent();
}
function doFadeTo(__nVolume, __bStopAndDelete) {
if (__bStopAndDelete == undefined) {
__bStopAndDelete = true;
}
bStopAfterFade = __bStopAndDelete;
nTargetVolume = __nVolume;
}
function setFadeRate(__nRate) {
if (__nRate == undefined) {
__nRate = FADE_RATE;
}
nFadeRate = __nRate;
}
function setFadeAtEnd(__bFadeAtEnd) {
bFadeAtEnd = __bFadeAtEnd;
}
function setPan(__nPan) {
sndObj.setPan(__nPan);
}
function get Category() {
return(sCategory);
}
function get LinkageName() {
return(sLinkage);
}
function get Volume() {
return(sndObj.getVolume());
}
function get Position() {
return(sndObj.position);
}
function get SoundObject() {
return(sndObj);
}
function clearData() {
sndObj.stop();
delete sndObj;
mcRef.removeMovieClip();
}
function doCheckFadeAtEnd() {
if (bFadeAtEnd) {
if (nRemainingLoop == 1) {
if ((sndObj.duration - nCurrentTime) <= FADE_AT_END_TIME) {
doFadeTo(0);
}
}
}
}
function doManageEndEvent() {
var _local2 = 0;
for ( ; _local2 < aEventListeners.length ; _local2++) {
aEventListeners[_local2].doSoundEvent(com.disney.gem.games.total_blackout.utility.sndEngine.EVENT_SOUND_COMPLETE, this);
}
aEventListeners = new Array();
mcRef.removeMovieClip();
delete mcRef;
delete aEventListeners;
delete sndObj.onSoundComplete;
delete sndObj;
}
function doManageFade() {
if (nCurrentVolume != nTargetVolume) {
nCurrentVolume = com.sarbakan.utils.MoreMath.getReachNum(nCurrentVolume, nTargetVolume, nFadeRate);
sndObj.setVolume(returnComputedVolume(nCurrentVolume));
}
if ((nCurrentVolume <= 0) && (bStopAfterFade)) {
sndObj.stop();
doManageEndEvent();
}
}
function returnComputedVolume(__nVolume) {
if ((!bMuted) && (!com.disney.gem.games.total_blackout.utility.sndEngine.isCategoryMuted(sCategory))) {
var _local4 = com.disney.gem.games.total_blackout.utility.sndEngine.MasterVolume / 100;
var _local5 = com.disney.gem.games.total_blackout.utility.sndEngine.getCategoryVolume(sCategory) / 100;
var _local3 = __nVolume;
_local3 = _local3 * _local5;
_local3 = _local3 * _local4;
} else {
var _local3 = 0;
}
return(_local3);
}
static var FADE_RATE = 8;
static var FADE_AT_END_TIME = 800;
}
Symbol 1106 MovieClip [__Packages.com.sarbakan.utils.MoreMath] Frame 0
class com.sarbakan.utils.MoreMath
{
function MoreMath () {
}
static function getRandomRange(__nMin, __nMax) {
return(Math.floor(Math.random() * ((__nMax + 1) - __nMin)) + __nMin);
}
static function getPolarity(__nNum) {
var _local3 = 0;
if (__nNum < 0) {
_local3 = -1;
} else if (__nNum > 0) {
_local3 = 1;
}
return(_local3);
}
static function getReachZero(__nNum, __nReducer) {
return(getReachNum(__nNum, 0, __nReducer));
}
static function getReachNum(__nNum, __nTargetNum, __nReducer) {
var _local5 = __nNum;
if (_local5 != __nTargetNum) {
if (_local5 < __nTargetNum) {
_local5 = _local5 + __nReducer;
if (_local5 > __nTargetNum) {
_local5 = __nTargetNum;
}
} else {
_local5 = _local5 - __nReducer;
if (_local5 < __nTargetNum) {
_local5 = __nTargetNum;
}
}
}
return(_local5);
}
static function getDistance(__nX1, __nY1, __nX2, __nY2) {
return(Math.sqrt(Math.pow(Math.abs(__nX2 - __nX1), 2) + Math.pow(Math.abs(__nY2 - __nY1), 2)));
}
static function getManhattanDistance(_x1, _y1, _x2, _y2) {
return(Math.abs(_x1 - _x2) + Math.abs(_y1 - _y2));
}
static function getHypotenuse(__nDX, __nDY) {
return(Math.sqrt(Math.pow(__nDX, 2) + Math.pow(__nDY, 2)));
}
static function getAngle(__nX1, __nY1, __nX2, __nY2) {
var _local6 = __nX2 - __nX1;
var _local7 = __nY2 - __nY1;
var _local8 = Math.atan2(_local7, _local6);
var _local9 = getDegreeFromRadius(_local8);
return(_local9);
}
static function getCleanedAngle(_nAngle) {
while (_nAngle < 360) {
_nAngle = _nAngle + 360;
}
_nAngle = _nAngle % 360;
return(_nAngle);
}
static function getDegreeFromRadius(__nRadius) {
var _local3 = (__nRadius / MATH_PI) * 180;
return(_local3);
}
static function getRadianFromDegree(__nDegree) {
var _local3 = __nDegree * (MATH_PI / 180);
return(_local3);
}
static function getBoundsCenter(_oBox) {
var _local3 = (_oBox.xMin + _oBox.xMax) / 2;
var _local4 = (_oBox.yMin + _oBox.yMax) / 2;
return({x:_local3, y:_local4});
}
static var MATH_PI = Math.PI;
}
Symbol 1107 MovieClip [__Packages.com.disney.gem.games.total_blackout.Config] Frame 0
class com.disney.gem.games.total_blackout.Config
{
function Config () {
}
static var Game = {Tries:3, Gravity:1, Friction:0.8, LevelSlide:10};
static var Control = {Left:37, Right:39, Jump:38, Deactivate:40};
static var Mickey = {Jump:-11.5, Accel:3, MaxSpeed:8, Decel:2};
static var Pluto = {Speed:6};
static var Goofy = {Speed:6};
static var Clock = {DefaultSpeed:3, Points:1000, PointsSecond:100};
static var Hat = {DefaultSpeed:3, Points:500};
static var Platform = {Speed:1};
}
Symbol 1108 MovieClip [__Packages.com.disney.gem.games.total_blackout.Stats] Frame 0
class com.disney.gem.games.total_blackout.Stats
{
function Stats () {
}
static function reset() {
nTries = nTRIES_DEFAULT;
oTries = {level1:false, level2:false, level3:false, level4:false, level5:false, level6:false, level7:false};
}
static function __get__tries() {
return(nTries);
}
static function __set__tries(_nTries) {
nTries = _nTries;
return(__get__tries());
}
static function __get__lifes() {
return(oTries);
}
static function __set__lifes(_oTries) {
oTries = _oTries;
return(__get__lifes());
}
static function __get__score() {
return(nTempScore);
}
static function __set__score(_nScore) {
nTempScore = _nScore;
return(__get__score());
}
static var nTRIES_DEFAULT = com.disney.gem.games.total_blackout.Config.Game.Tries;
static var nTries = com.disney.gem.games.total_blackout.Config.Game.Tries;
static var oTries = {level1:false, level2:false, level3:false, level4:false, level5:false, level6:false, level7:false};
static var nTempScore = 0;
}
Symbol 1109 MovieClip [__Packages.com.disney.gem.games.total_blackout.utility.DepthManager] Frame 0
class com.disney.gem.games.total_blackout.utility.DepthManager
{
function DepthManager () {
}
static function check(_oA, _oB) {
if ((_oA != undefined) && (_oB != undefined)) {
var _local4 = getAngle(_oA, _oB);
var _local5 = {left:_oA.dLeft, right:_oA.dRight, top:_oA.dTop, bottom:_oA.dBottom};
var _local6 = com.disney.gem.games.total_blackout.collision.pixelCollision.check(_local5, _oB, 255);
var _local7 = _local6 != null;
if (!_local7) {
if (_local4 > 0) {
_oB.Mc.swapDepths(_oB.oItem.tmpdepth);
} else {
_oB.Mc.swapDepths(_oB.oItem.depth);
}
}
}
}
static function getAngle(_oPt1, _oPt2) {
var _local4 = (Math.atan2(_oPt2.y - _oPt1.y, _oPt2.x - _oPt1.x) * 180) / Math.PI;
if (_local4 > 180) {
_local4 = -360 + _local4;
}
return(_local4);
}
}
Symbol 1110 MovieClip [__Packages.com.disney.gem.games.total_blackout.collision.pixelCollision] Frame 0
class com.disney.gem.games.total_blackout.collision.pixelCollision
{
function pixelCollision () {
}
static function check(_oOne, _oTwo, _alpha) {
if (_alpha == undefined) {
_alpha = 255;
}
var _local5 = {xMin:_oOne.left, xMax:_oOne.right, yMin:_oOne.top, yMax:_oOne.bottom};
var _local6 = {xMin:_oTwo.left, xMax:_oTwo.right, yMin:_oTwo.top, yMax:_oTwo.bottom};
if (((_local5.xMax < _local6.xMin) || (_local6.xMax < _local5.xMin)) || ((_local5.yMax < _local6.yMin) || (_local6.yMax < _local5.yMin))) {
return(null);
}
var _local7 = com.disney.gem.games.total_blackout.Controller.getInstance().mcTimeline;
var _local8 = {};
_local8.xMin = Math.max(_local5.xMin, _local6.xMin);
_local8.xMax = Math.min(_local5.xMax, _local6.xMax);
_local8.yMin = Math.max(_local5.yMin, _local6.yMin);
_local8.yMax = Math.min(_local5.yMax, _local6.yMax);
var _local9 = new flash.display.BitmapData(_local8.xMax - _local8.xMin, _local8.yMax - _local8.yMin, false);
var _local10 = _oOne.Mc.transform.concatenatedMatrix;
_local10.tx = _local10.tx - (_local8.xMin + _local7.transform.concatenatedMatrix.tx);
_local10.ty = _local10.ty - (_local8.yMin + _local7.transform.concatenatedMatrix.ty);
_local9.draw(_oOne.Mc, _local10, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, _alpha));
_local10 = _oTwo.Mc.transform.concatenatedMatrix;
_local10.tx = _local10.tx - (_local8.xMin + _local7.transform.concatenatedMatrix.tx);
_local10.ty = _local10.ty - (_local8.yMin + _local7.transform.concatenatedMatrix.ty);
_local9.draw(_oTwo.Mc, _local10, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, _alpha), "difference");
var _local11 = _local9.getColorBoundsRect(-1, -16711681);
if ((_local11.width == 0) || (_local11.height == 0)) {
return(null);
}
_local11.x = _local11.x + _local8.xMin;
_local11.y = _local11.y + _local8.yMin;
return(_local11);
}
}
Symbol 1111 MovieClip [__Packages.com.disney.gem.games.total_blackout.utility.Keys] Frame 0
class com.disney.gem.games.total_blackout.utility.Keys
{
static var aAvailable;
function Keys () {
}
static function available() {
var _local2 = 0;
for ( ; _local2 < arguments.length ; _local2++) {
aAvailable.push(arguments[_local2]);
}
}
static function only(_nKey) {
var _local3 = true;
if (!Key.isDown(_nKey)) {
_local3 = false;
} else {
var _local4 = 0;
for ( ; _local4 < aAvailable.length ; _local4++) {
if (Key.isDown(aAvailable[_local4]) && (_nKey != aAvailable[_local4])) {
_local3 = false;
break;
}
}
}
return(_local3);
}
static function none() {
var _local2 = true;
var _local3 = 0;
for ( ; _local3 < arguments.length ; _local3++) {
if (Key.isDown(arguments[_local3])) {
_local2 = false;
break;
}
}
return(_local2);
}
}
Symbol 1112 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Copse01] Frame 0
class com.disney.gem.games.total_blackout.platforms.Copse01 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, Collide, setTarget;
function Copse01 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcCopse01", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
}
static var STATE_IDLE = "Idle";
}
Symbol 1113 MovieClip [__Packages.com.disney.gem.games.total_blackout.elements.Goofy] Frame 0
class com.disney.gem.games.total_blackout.elements.Goofy extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var setMC, sType, mcSpawner, mcRef, setState, startX, startY, endX, endY, bFlip, bAutoMode, x, nTargetX, destroy, nTargetY, stateCurrentFrame, stateFinished;
function Goofy (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Character");
_mcRef.attachMovie("mcGoofy", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "Character";
mcSpawner = mcRef.mcClockSpawn;
mcSpawner._visible = false;
setState(STATE_IDLE, true);
startX = _oItem.startx;
startY = _oItem.starty;
endX = _oItem.endx;
endY = _oItem.endy;
mcRef._x = startX;
mcRef._y = startY;
if (startX > endX) {
mcRef._xscale = -100;
bFlip = true;
} else {
bFlip = false;
}
bAutoMode = false;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.addEventListener(com.disney.gem.games.total_blackout.events.Event.BUMP, onBump, this);
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.addEventListener(com.disney.gem.games.total_blackout.events.Event.GOOFY, onGoofy, this);
}
function onGoofy() {
DriveTo(endX, endY);
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_GOOFY_IDLE, true, true, 65536, 25);
}
function onPause() {
super.onPause();
mcRef.mcState.mcRearWheel.stop();
mcRef.mcState.mcFrontWheel.stop();
mcRef.mcState.mcFront.stop();
mcRef.mcState.mcTrunk.stop();
}
function onUnPause() {
super.onUnPause();
mcRef.mcState.mcRearWheel.play();
mcRef.mcState.mcFrontWheel.play();
mcRef.mcState.mcFront.play();
mcRef.mcState.mcTrunk.play();
}
function onUpdate() {
super.onUpdate();
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.PASSED), this);
if (bAutoMode && (!com.disney.gem.games.total_blackout.Controller.getInstance().oTransitionManager.isTransitionning())) {
autoMove();
}
}
function onBump() {
setState(STATE_BUMP, true, true);
setTrunk();
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_GOOFY_BUMP, true, true, 1, 25);
}
function autoMove() {
if (nTargetX > x) {
if ((x + com.disney.gem.games.total_blackout.Config.Goofy.Speed) > nTargetX) {
x = nTargetX;
giveSignal();
destroy();
} else {
x = x + com.disney.gem.games.total_blackout.Config.Goofy.Speed;
}
} else if (nTargetX < x) {
if ((x - com.disney.gem.games.total_blackout.Config.Goofy.Speed) < nTargetX) {
x = nTargetX;
giveSignal();
destroy();
} else {
x = x - com.disney.gem.games.total_blackout.Config.Goofy.Speed;
}
}
}
function giveSignal() {
com.disney.gem.games.total_blackout.utility.Sounds.Stop(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_GOOFY_IDLE);
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.PLUTO), this);
}
function DriveTo(_nX, _nY) {
nTargetX = _nX;
nTargetY = _nY;
bAutoMode = true;
}
function setTrunk() {
if (bFlip) {
mcRef.mcState.mcTrunk.mcInnerTrunk.gotoAndStop("Left");
} else {
mcRef.mcState.mcTrunk.mcInnerTrunk.gotoAndStop("Right");
}
}
function state_Idle() {
switch (stateCurrentFrame()) {
case 1 :
mcRef.mcState.mcFront.gotoAndPlay(1);
break;
case 5 :
mcRef.mcState.mcFront.gotoAndPlay(5);
break;
case 9 :
mcRef.mcState.mcFront.gotoAndPlay(9);
}
setTrunk();
}
function state_Bump() {
switch (stateCurrentFrame()) {
case 1 :
mcRef.mcState.mcTrunk.gotoAndPlay(1);
mcRef.mcState.mcFront.gotoAndPlay(1);
break;
case 4 :
mcRef.mcState.mcTrunk.gotoAndPlay(4);
mcRef.mcState.mcFront.gotoAndPlay(4);
break;
case 8 :
mcRef.mcState.mcTrunk.gotoAndPlay(8);
mcRef.mcState.mcFront.gotoAndPlay(8);
break;
case 10 :
mcRef.mcState.mcTrunk.gotoAndPlay(10);
mcRef.mcState.mcFront.gotoAndPlay(10);
break;
case 14 :
mcRef.mcState.mcTrunk.gotoAndPlay(14);
mcRef.mcState.mcFront.gotoAndPlay(14);
break;
case 20 :
mcRef.mcState.mcTrunk.gotoAndPlay(20);
mcRef.mcState.mcFront.gotoAndPlay(20);
}
setTrunk();
if (stateFinished()) {
setState(STATE_IDLE_OPENED, true);
mcRef.mcState.mcTrunk.gotoAndStop(20);
setTrunk();
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_GOOFY_IDLE, true, true, 65536, 25);
}
}
function state_Idle_Opened() {
switch (stateCurrentFrame()) {
case 1 :
mcRef.mcState.mcFront.gotoAndPlay(1);
break;
case 5 :
mcRef.mcState.mcFront.gotoAndPlay(5);
break;
case 9 :
mcRef.mcState.mcFront.gotoAndPlay(9);
}
mcRef.mcState.mcTrunk.gotoAndStop(20);
setTrunk();
}
function get spawn() {
if (bFlip) {
var _local2 = x - mcSpawner._x;
} else {
var _local2 = mcSpawner._x + x;
}
return(_local2);
}
function get flip() {
return(bFlip);
}
static var STATE_IDLE = "Idle";
static var STATE_BUMP = "Bump";
static var STATE_IDLE_OPENED = "Idle_Opened";
}
Symbol 1114 MovieClip [__Packages.com.disney.gem.games.total_blackout.elements.MickeysHat] Frame 0
class com.disney.gem.games.total_blackout.elements.MickeysHat extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var setMC, sType, mcRef, topLeft, bottomRight, setState, oItem, startX, startY, endX, endY, oTrajectory, setTarget, Collide, oTarget, x, y;
function MickeysHat (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Item");
_mcRef.attachMovie("mcMickeysHat", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "bonus";
mcRef.mcTopLeft._alpha = 0;
mcRef.mcBottomRight._alpha = 0;
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
setState(STATE_HIDDEN, true);
oItem = _oItem;
startX = _oItem.startx;
startY = _oItem.starty;
endX = _oItem.endx;
endY = _oItem.endy;
var _local7 = new flash.geom.Point(startX, startY);
var _local8 = new flash.geom.Point(endX, endY);
oTrajectory = new com.disney.gem.games.total_blackout.utility.Trajectory(_local7, _local8, 150, 30);
mcRef._x = startX;
mcRef._y = startY;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local9 = 0;
for ( ; _local9 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local9++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local9].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
oTarget.addEventListener(com.disney.gem.games.total_blackout.events.Event.PASSED, onPassed, this);
}
function onUpdate() {
super.onUpdate();
}
function onPassed(_oEvt, _oObj) {
if ((x <= _oObj.spawn) && (!_oObj.flip)) {
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.BUMP), this);
oTarget.removeEventListener(com.disney.gem.games.total_blackout.events.Event.PASSED, onPassed, this);
setState(STATE_EJECTED, true);
} else if ((x >= _oObj.spawn) && (_oObj.flip)) {
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.BUMP), this);
oTarget.removeEventListener(com.disney.gem.games.total_blackout.events.Event.PASSED, onPassed, this);
setState(STATE_EJECTED, true);
}
}
function state_Ejected() {
oTrajectory.define();
com.disney.gem.games.total_blackout.utility.DepthManager.check(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oDepthItem, this);
if (oTrajectory.ended) {
x = endX;
y = endY;
setState(STATE_IDLE, true);
} else {
x = oTrajectory.x;
y = oTrajectory.y;
}
}
static var STATE_IDLE = "Idle";
static var STATE_EJECTED = "Ejected";
static var STATE_PICKED = "Picked";
static var STATE_GONE = "Gone";
static var STATE_HIDDEN = "Hidden";
}
Symbol 1115 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform01] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform01 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform01 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform01", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1116 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform02] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform02 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform02 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform02", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1117 MovieClip [__Packages.com.disney.gem.games.total_blackout.elements.Pluto] Frame 0
class com.disney.gem.games.total_blackout.elements.Pluto extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var setMC, sType, mcRef, topLeft, bottomRight, setState, startX, startY, endX, endY, bAutoMode, nTargetX, nTargetY, setTarget, Collide, oTarget, x, bFlip, stateFinished, stateCurrentFrame;
function Pluto (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Character");
_mcRef.attachMovie("mcPluto", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "character";
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
setState(STATE_RUN, true);
startX = _oItem.startx;
startY = _oItem.starty;
endX = _oItem.endx;
endY = _oItem.endy;
bAutoMode = false;
nTargetX = 0;
nTargetY = 0;
mcRef._x = startX;
mcRef._y = startY;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local7 = 0;
for ( ; _local7 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local7++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local7].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
oTarget.addEventListener(com.disney.gem.games.total_blackout.events.Event.PLUTO, startInit, this);
oTarget.addEventListener(com.disney.gem.games.total_blackout.events.Event.PLUTO_WAKE, wakeUp, this);
}
function onUpdate() {
super.onUpdate();
if (bAutoMode) {
autoMove();
}
}
function wakeUp(_oEvt, _oObj) {
if (_oObj.x < x) {
bFlip = true;
}
setState(STATE_WAKE_UP, true);
com.disney.gem.games.total_blackout.utility.Sounds.Stop(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_PLUTO_SLEEP_IDLE);
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_PLUTO_WAKE, true, false, 1, 100);
}
function autoMove() {
if (nTargetX > x) {
if ((x + com.disney.gem.games.total_blackout.Config.Pluto.Speed) > nTargetX) {
x = nTargetX;
bAutoMode = false;
setState(STATE_SLEEP_IN, true);
com.disney.gem.games.total_blackout.utility.Sounds.Stop(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_PLUTO_RUN);
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_PLUTO_SLEEP_IN, true, false, 1, 100);
} else {
x = x + com.disney.gem.games.total_blackout.Config.Pluto.Speed;
}
} else if (nTargetX < x) {
if ((x - com.disney.gem.games.total_blackout.Config.Pluto.Speed) < nTargetX) {
x = nTargetX;
bAutoMode = false;
setState(STATE_SLEEP_IN, true);
com.disney.gem.games.total_blackout.utility.Sounds.Stop(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_PLUTO_RUN);
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_PLUTO_SLEEP_IN, true, false, 1, 100);
} else {
x = x - com.disney.gem.games.total_blackout.Config.Pluto.Speed;
}
}
}
function startInit() {
GoSleepAt(endX, endY);
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_PLUTO_RUN, true, false, 65536, 100);
}
function GoSleepAt(_nX, _nY) {
nTargetX = _nX;
nTargetY = _nY;
bAutoMode = true;
}
function state_Sleep_In() {
if (stateFinished()) {
giveSignal();
setState(STATE_SLEEP_IDLE, true);
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_PLUTO_SLEEP_IDLE, true, false, 65536, 100);
}
}
function giveSignal() {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.MICKEY), this);
}
function state_WakeUp() {
if (stateCurrentFrame() == 6) {
if (bFlip) {
mcRef._xscale = -100;
x = x + 66;
}
}
if (stateFinished()) {
mcRef.mcState.stop();
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.LOSE_TRY), this);
}
}
static var STATE_RUN = "Run";
static var STATE_SLEEP_IN = "Sleep_In";
static var STATE_SLEEP_IDLE = "Sleep_Idle";
static var STATE_WAKE_UP = "WakeUp";
}
Symbol 1118 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Roof01] Frame 0
class com.disney.gem.games.total_blackout.platforms.Roof01 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Roof01 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcRoof01", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1119 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Roof02] Frame 0
class com.disney.gem.games.total_blackout.platforms.Roof02 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Roof02 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcRoof02", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1120 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Trash01] Frame 0
class com.disney.gem.games.total_blackout.platforms.Trash01 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Trash01 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_TRASH_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcTrash01", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1121 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Wall01] Frame 0
class com.disney.gem.games.total_blackout.platforms.Wall01 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Wall01 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_WOOD_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcWall01", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1122 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Awning02] Frame 0
class com.disney.gem.games.total_blackout.platforms.Awning02 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, bBounce, mcRef, setState, topLeft, bottomRight, setTarget, Collide, oObj, stateCurrentFrame, mcTopLeft, mcBottomRight, top, oTarget, stateFinished;
function Awning02 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_AWNING_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcAwning02", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
bBounce = true;
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
function Bounce(_oObj) {
oObj = com.disney.gem.games.total_blackout.elements.Mickey(_oObj);
setState(STATE_BOUNCE, true);
}
function state_Bounce() {
switch (stateCurrentFrame()) {
case 2 :
mcTopLeft._y = mcTopLeft._y + 2;
mcBottomRight._y = mcBottomRight._y + 2;
oObj.y = top;
break;
case 3 :
mcTopLeft._y = mcTopLeft._y + 5.5;
mcBottomRight._y = mcBottomRight._y + 5.5;
oObj.y = top;
oObj.speedY = (com.disney.gem.games.total_blackout.Config.Mickey.Jump - 1) - 3;
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.SET_SPEED), this);
}
if (stateFinished()) {
mcTopLeft._y = mcTopLeft._y - 7.5;
mcBottomRight._y = mcBottomRight._y - 7.5;
setState(STATE_IDLE, true);
}
}
function get bouncing() {
return(bBounce);
}
static var STATE_IDLE = "Idle";
static var STATE_BOUNCE = "Bounce";
}
Symbol 1123 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Copse02] Frame 0
class com.disney.gem.games.total_blackout.platforms.Copse02 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, Collide, setTarget;
function Copse02 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcCopse02", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
}
static var STATE_IDLE = "Idle";
}
Symbol 1124 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Ensign01] Frame 0
class com.disney.gem.games.total_blackout.platforms.Ensign01 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide, Mc, x, y;
function Ensign01 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_LEVEL2_ENSIGN_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcEnsign01", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._alpha = 0;
mcRef.mcBottomRight._alpha = 0;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
function get dLeft() {
return(x - (Mc._width / 2));
}
function get dRight() {
return(x + (Mc._width / 2));
}
function get dTop() {
return(y - (Mc._height / 2));
}
function get dBottom() {
return(y + (Mc._height / 2));
}
static var STATE_IDLE = "Idle";
}
Symbol 1125 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform03] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform03 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform03 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform03", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1126 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform04] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform04 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform04 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform04", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1127 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform05] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform05 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform05 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform05", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1128 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform06] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform06 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform06 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform06", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1129 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Pole01] Frame 0
class com.disney.gem.games.total_blackout.platforms.Pole01 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Pole01 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_POLE_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPole01", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1130 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Tink01] Frame 0
class com.disney.gem.games.total_blackout.platforms.Tink01 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Tink01 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_TINK_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcTink01", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1131 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Tire01] Frame 0
class com.disney.gem.games.total_blackout.platforms.Tire01 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, bBounce, mcRef, setState, topLeft, bottomRight, setTarget, Collide, oObj, stateCurrentFrame, mcTopLeft, mcBottomRight, top, oTarget, stateFinished;
function Tire01 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_TIRES_RACK_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcTire01", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
bBounce = true;
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
function Bounce(_oObj) {
oObj = com.disney.gem.games.total_blackout.elements.Mickey(_oObj);
setState(STATE_BOUNCE, true);
}
function state_Bounce() {
switch (stateCurrentFrame()) {
case 2 :
mcTopLeft._y = mcTopLeft._y + 2;
mcBottomRight._y = mcBottomRight._y + 2;
oObj.y = top;
break;
case 3 :
mcTopLeft._y = mcTopLeft._y + 5.5;
mcBottomRight._y = mcBottomRight._y + 5.5;
oObj.y = top;
oObj.speedY = (com.disney.gem.games.total_blackout.Config.Mickey.Jump - 1) - 3;
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.SET_SPEED), this);
}
if (stateFinished()) {
mcTopLeft._y = mcTopLeft._y - 7.5;
mcBottomRight._y = mcBottomRight._y - 7.5;
setState(STATE_IDLE, true);
}
}
function get bouncing() {
return(bBounce);
}
static var STATE_IDLE = "Idle";
static var STATE_BOUNCE = "Bounce";
}
Symbol 1132 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Tire02] Frame 0
class com.disney.gem.games.total_blackout.platforms.Tire02 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, bBounce, mcRef, setState, topLeft, bottomRight, setTarget, Collide, oObj, stateCurrentFrame, mcTopLeft, mcBottomRight, top, oTarget, stateFinished;
function Tire02 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_TIRES_PILE_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcTire02", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
bBounce = true;
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
function Bounce(_oObj) {
oObj = com.disney.gem.games.total_blackout.elements.Mickey(_oObj);
setState(STATE_BOUNCE, true);
}
function state_Bounce() {
switch (stateCurrentFrame()) {
case 2 :
mcTopLeft._y = mcTopLeft._y + 2;
mcBottomRight._y = mcBottomRight._y + 2;
oObj.y = top;
break;
case 3 :
mcTopLeft._y = mcTopLeft._y + 5.5;
mcBottomRight._y = mcBottomRight._y + 5.5;
oObj.y = top;
oObj.speedY = (com.disney.gem.games.total_blackout.Config.Mickey.Jump - 1) - 3;
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.SET_SPEED), this);
}
if (stateFinished()) {
mcTopLeft._y = mcTopLeft._y - 7.5;
mcBottomRight._y = mcBottomRight._y - 7.5;
setState(STATE_IDLE, true);
}
}
function get bouncing() {
return(bBounce);
}
static var STATE_IDLE = "Idle";
static var STATE_BOUNCE = "Bounce";
}
Symbol 1133 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Windsock] Frame 0
class com.disney.gem.games.total_blackout.platforms.Windsock extends com.sarbakan.utils.StateManaged
{
var setMC, mcRef, setState;
function Windsock (_mcRef, _aProperties, _oItem) {
super(undefined);
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcWindsock", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
}
static var STATE_IDLE = "Idle";
}
Symbol 1134 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Truck02] Frame 0
class com.disney.gem.games.total_blackout.platforms.Truck02 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, bBounce, mcRef, setState, topLeft, bottomRight, setTarget, Collide, oObj, stateCurrentFrame, mcTopLeft, mcBottomRight, top, oTarget, stateFinished;
function Truck02 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_TRUCK_BAGS_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcTruck02", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
bBounce = true;
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
function Bounce(_oObj) {
oObj = com.disney.gem.games.total_blackout.elements.Mickey(_oObj);
setState(STATE_BOUNCE, true);
}
function state_Bounce() {
switch (stateCurrentFrame()) {
case 2 :
mcTopLeft._y = mcTopLeft._y + 2;
mcBottomRight._y = mcBottomRight._y + 2;
oObj.y = top;
break;
case 3 :
mcTopLeft._y = mcTopLeft._y + 5.5;
mcBottomRight._y = mcBottomRight._y + 5.5;
oObj.y = top;
oObj.speedY = com.disney.gem.games.total_blackout.Config.Mickey.Jump - 1;
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.SET_SPEED), this);
}
if (stateFinished()) {
mcTopLeft._y = mcTopLeft._y - 7.5;
mcBottomRight._y = mcBottomRight._y - 7.5;
setState(STATE_IDLE, true);
}
}
function get bouncing() {
return(bBounce);
}
static var STATE_IDLE = "Idle";
static var STATE_BOUNCE = "Bounce";
}
Symbol 1135 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform16] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform16 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform16 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_WOOD_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform16", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1136 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform17] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform17 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform17 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_WOOD_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform17", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1137 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Ensign03] Frame 0
class com.disney.gem.games.total_blackout.platforms.Ensign03 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Ensign03 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_METAL_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcEnsign03", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1138 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform18] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform18 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform18 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_METAL_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform18", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1139 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform19] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform19 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform19 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform19", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1140 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Copse04] Frame 0
class com.disney.gem.games.total_blackout.platforms.Copse04 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Copse04 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcCopse04", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1141 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Moving05] Frame 0
class com.disney.gem.games.total_blackout.platforms.Moving05 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, mcRef, bUp, bMoving, oItem, sType, setState, topLeft, bottomRight, setTarget, Collide, nSpeedY, char, right, left, top, oTarget;
function Moving05 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcMoving05", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
if (Math.random() > 0.5) {
mcRef._x = _oItem.minx;
mcRef._y = _oItem.miny;
bUp = false;
} else {
mcRef._x = _oItem.maxx;
mcRef._y = _oItem.maxy;
bUp = true;
}
bMoving = true;
oItem = _oItem;
sType = "platform";
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local7 = 0;
for ( ; _local7 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local7++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local7].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
function state_Idle() {
if (bUp) {
nSpeedY = -com.disney.gem.games.total_blackout.Config.Platform.Speed;
if ((mcRef._y - com.disney.gem.games.total_blackout.Config.Platform.Speed) < oItem.miny) {
mcRef._y = oItem.miny;
bUp = false;
} else {
mcRef._y = mcRef._y - com.disney.gem.games.total_blackout.Config.Platform.Speed;
}
} else {
nSpeedY = com.disney.gem.games.total_blackout.Config.Platform.Speed;
if ((mcRef._y + com.disney.gem.games.total_blackout.Config.Platform.Speed) > oItem.maxy) {
mcRef._y = oItem.maxy;
bUp = true;
} else {
mcRef._y = mcRef._y + com.disney.gem.games.total_blackout.Config.Platform.Speed;
}
}
if ((char != undefined) && ((char.x <= right) && ((char.x >= left) && (Math.abs(char.y - top) <= 1)))) {
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.MOVING), this);
}
}
function get up() {
return(bUp);
}
function get moving() {
return(bMoving);
}
static var STATE_IDLE = "Idle";
}
Symbol 1142 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Moving06] Frame 0
class com.disney.gem.games.total_blackout.platforms.Moving06 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, mcRef, bUp, bMoving, oItem, mcTube, sType, setState, topLeft, bottomRight, setTarget, Collide, nSpeedY, bottom, char, right, left, top, oTarget;
function Moving06 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_METAL_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcMoving06", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
if (Math.random() > 0.5) {
mcRef._x = _oItem.minx;
mcRef._y = _oItem.miny;
bUp = false;
} else {
mcRef._x = _oItem.maxx;
mcRef._y = _oItem.maxy;
bUp = true;
}
bMoving = true;
oItem = _oItem;
_local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Tube");
_mcRef.attachMovie("mcMoving_Tube", _local6, oItem.fdepth);
mcTube = _mcRef[_local6];
mcTube._x = oItem.tubex;
mcTube._y = oItem.tubey;
sType = "platform";
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local7 = 0;
for ( ; _local7 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local7++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local7].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
function state_Idle() {
if (bUp) {
nSpeedY = -com.disney.gem.games.total_blackout.Config.Platform.Speed;
if ((mcRef._y - com.disney.gem.games.total_blackout.Config.Platform.Speed) < oItem.miny) {
mcRef._y = oItem.miny;
bUp = false;
} else {
mcRef._y = mcRef._y - com.disney.gem.games.total_blackout.Config.Platform.Speed;
}
} else {
nSpeedY = com.disney.gem.games.total_blackout.Config.Platform.Speed;
if ((mcRef._y + com.disney.gem.games.total_blackout.Config.Platform.Speed) > oItem.maxy) {
mcRef._y = oItem.maxy;
bUp = true;
} else {
mcRef._y = mcRef._y + com.disney.gem.games.total_blackout.Config.Platform.Speed;
}
}
mcTube._height = mcTube._y - bottom;
if ((char != undefined) && ((char.x <= right) && ((char.x >= left) && (Math.abs(char.y - top) <= 1)))) {
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.MOVING), this);
}
}
function destroy() {
mcTube.removeMovieClip();
super.destroy();
}
function get up() {
return(bUp);
}
function get moving() {
return(bMoving);
}
static var STATE_IDLE = "Idle";
}
Symbol 1143 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Truck01] Frame 0
class com.disney.gem.games.total_blackout.platforms.Truck01 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Truck01 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_AMBULANCE_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcTruck01", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1144 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Wall04] Frame 0
class com.disney.gem.games.total_blackout.platforms.Wall04 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, bAngular, mcRef, setState, topLeft, bottomRight, setTarget, char, oTarget, right, left, bottom, top, stateCurrentFrame, nAngle, stateFinished, x, y;
function Wall04 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_BARRIER_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcWall04", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
bAngular = true;
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_DROP, true);
mcRef.mcState.gotoAndStop(4);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
hideCross();
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
function Collide(_oEvt, _oObj) {
var _local4 = _oObj.x;
var _local5 = _oObj.y - 10;
var _local6 = _oObj.x + _oObj.speedX;
var _local7 = _oObj.y + _oObj.speedY;
var _local8 = crossXA;
var _local9 = crossYA;
var _local10 = crossXB;
var _local11 = crossYB;
char = com.disney.gem.games.total_blackout.elements.Mickey(_oObj);
var _local12 = com.disney.gem.games.total_blackout.collision.LineCollision.check(_local4, _local5, _local6, _local7, _local8, _local9, _local10, _local11);
if (_local12.cross) {
if ((_local12.y >= _local5) && ((_local12.y + 10) >= _local5)) {
setState(STATE_IDLE, true);
var _local13 = {};
_local13.type = sType;
_local13.top = _local12.y;
_local13.angular = bAngular;
_local13.sLandSound = sLandSound;
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.CROSS), _local13);
}
}
}
function state_Idle01() {
hideCross();
if ((char.x > right) || ((char.x < left) || ((char.y > bottom) || (char.y < top)))) {
if (stateCurrentFrame() <= 12) {
var _local2 = 1;
} else if (stateCurrentFrame() <= 25) {
var _local2 = 2;
} else if (stateCurrentFrame() <= 37) {
var _local2 = 3;
} else if (stateCurrentFrame() <= 50) {
var _local2 = 4;
}
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_BARRIER_RELEASE, true, false);
setState(STATE_DROP, true);
mcRef.mcState.gotoAndPlay(_local2);
hideCross();
} else {
mcRef.mcState.gotoAndStop(getFrame(char.x));
nAngle = getAngle(mcRef.mcState.mcA, mcRef.mcState.mcB);
}
}
function state_Drop() {
hideCross();
if (stateFinished()) {
mcRef.mcState.stop();
}
}
function getAngle(_mcA, _mcB) {
var _local4 = ((Math.atan2(_mcB._y - _mcA._y, _mcB._x - _mcA._x) * 180) / Math.PI) + 90;
if (_local4 > 180) {
_local4 = -360 + _local4;
}
return(_local4);
}
function getFrame(_nX) {
_nX = _nX - left;
var _local4 = right - left;
var _local3 = Math.floor((_nX / _local4) * 50);
if (_local3 == 0) {
_local3 = 1;
}
return(_local3);
}
function hideCross() {
mcRef.mcState.mcA._visible = false;
mcRef.mcState.mcB._visible = false;
}
function get angle() {
return(nAngle);
}
function get crossXA() {
return(x + mcRef.mcState.mcA._x);
}
function get crossXB() {
return(x + mcRef.mcState.mcB._x);
}
function get crossYA() {
return(y + mcRef.mcState.mcA._y);
}
function get crossYB() {
return(y + mcRef.mcState.mcB._y);
}
static var STATE_IDLE = "Idle01";
static var STATE_DROP = "Drop";
}
Symbol 1145 MovieClip [__Packages.com.disney.gem.games.total_blackout.collision.LineCollision] Frame 0
class com.disney.gem.games.total_blackout.collision.LineCollision
{
function LineCollision () {
}
static function check(_nX1a, _nY1a, _nX2a, _nY2a, _nX1b, _nY1b, _nX2b, _nY2b) {
var _local10 = {cross:false, x:0, y:0};
var _local13 = ((_nX2a - _nX1a) * (_nY2b - _nY1b)) - ((_nY2a - _nY1a) * (_nX2b - _nX1b));
if (_local13 != 0) {
var _local11 = (((_nY1a - _nY1b) * (_nX2b - _nX1b)) - ((_nX1a - _nX1b) * (_nY2b - _nY1b))) / _local13;
var _local12 = (((_nY1a - _nY1b) * (_nX2a - _nX1a)) - ((_nX1a - _nX1b) * (_nY2a - _nY1a))) / _local13;
if ((_local11 >= 0) && ((_local11 <= 1) && ((_local12 >= 0) && (_local12 <= 1)))) {
_local10.cross = true;
_local10.x = _nX1a + (_local11 * (_nX2a - _nX1a));
_local10.y = _nY1a + (_local11 * (_nY2a - _nY1a));
}
}
return(_local10);
}
}
Symbol 1146 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Moving03] Frame 0
class com.disney.gem.games.total_blackout.platforms.Moving03 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, mcRef, bUp, bMoving, oItem, mcLeft, mcRight, sType, setState, topLeft, bottomRight, setTarget, Collide, nSpeedY, char, right, left, top, oTarget;
function Moving03 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_WOOD_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcMoving03", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
if (Math.random() > 0.5) {
mcRef._x = _oItem.minx;
mcRef._y = _oItem.miny;
bUp = false;
} else {
mcRef._x = _oItem.maxx;
mcRef._y = _oItem.maxy;
bUp = true;
}
bMoving = true;
oItem = _oItem;
_local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Rope");
_mcRef.attachMovie("mcRope", _local6, oItem.ldepth);
mcLeft = _mcRef[_local6];
mcLeft._x = oItem.leftx;
mcLeft._y = oItem.righty;
mcLeft._height = (mcRef._y - 24) - mcLeft._y;
_local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Rope");
_mcRef.attachMovie("mcRope", _local6, oItem.rdepth);
mcRight = _mcRef[_local6];
mcRight._x = oItem.rightx;
mcRight._y = oItem.righty;
mcRight._height = (mcRef._y - 24) - mcRight._y;
sType = "platform";
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local7 = 0;
for ( ; _local7 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local7++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local7].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
function state_Idle() {
if (bUp) {
nSpeedY = -com.disney.gem.games.total_blackout.Config.Platform.Speed;
if ((mcRef._y - com.disney.gem.games.total_blackout.Config.Platform.Speed) < oItem.miny) {
mcRef._y = oItem.miny;
bUp = false;
} else {
mcRef._y = mcRef._y - com.disney.gem.games.total_blackout.Config.Platform.Speed;
}
} else {
nSpeedY = com.disney.gem.games.total_blackout.Config.Platform.Speed;
if ((mcRef._y + com.disney.gem.games.total_blackout.Config.Platform.Speed) > oItem.maxy) {
mcRef._y = oItem.maxy;
bUp = true;
} else {
mcRef._y = mcRef._y + com.disney.gem.games.total_blackout.Config.Platform.Speed;
}
}
mcLeft._height = (mcRef._y - 24) - mcLeft._y;
mcRight._height = (mcRef._y - 24) - mcRight._y;
if ((char != undefined) && ((char.x <= right) && ((char.x >= left) && (Math.abs(char.y - top) <= 1)))) {
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.MOVING), this);
}
}
function destroy() {
mcLeft.removeMovieClip();
mcRight.removeMovieClip();
super.destroy();
}
function get up() {
return(bUp);
}
function get moving() {
return(bMoving);
}
static var STATE_IDLE = "Idle";
}
Symbol 1147 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform12] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform12 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform12 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_WOOD_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform12", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1148 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform11] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform11 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform11 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_WOOD_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform11", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1149 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Moving02] Frame 0
class com.disney.gem.games.total_blackout.platforms.Moving02 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, mcRef, bUp, bMoving, oItem, mcTube, bottom, sType, setState, topLeft, bottomRight, setTarget, Collide, nSpeedY, char, right, left, top, oTarget;
function Moving02 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_METAL_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcMoving02", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
if (Math.random() > 0.5) {
mcRef._x = _oItem.minx;
mcRef._y = _oItem.miny;
bUp = false;
} else {
mcRef._x = _oItem.maxx;
mcRef._y = _oItem.maxy;
bUp = true;
}
bMoving = true;
oItem = _oItem;
_local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Tube");
_mcRef.attachMovie("mcMoving_Tube", _local6, oItem.tdepth);
mcTube = _mcRef[_local6];
mcTube._x = oItem.tubex;
mcTube._y = oItem.tubey;
mcTube._height = mcTube._y - bottom;
sType = "platform";
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local7 = 0;
for ( ; _local7 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local7++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local7].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
function state_Idle() {
if (bUp) {
nSpeedY = -com.disney.gem.games.total_blackout.Config.Platform.Speed;
if ((mcRef._y - com.disney.gem.games.total_blackout.Config.Platform.Speed) < oItem.miny) {
mcRef._y = oItem.miny;
bUp = false;
} else {
mcRef._y = mcRef._y - com.disney.gem.games.total_blackout.Config.Platform.Speed;
}
} else {
nSpeedY = com.disney.gem.games.total_blackout.Config.Platform.Speed;
if ((mcRef._y + com.disney.gem.games.total_blackout.Config.Platform.Speed) > oItem.maxy) {
mcRef._y = oItem.maxy;
bUp = true;
} else {
mcRef._y = mcRef._y + com.disney.gem.games.total_blackout.Config.Platform.Speed;
}
}
mcTube._height = mcTube._y - bottom;
if ((char != undefined) && ((char.x <= right) && ((char.x >= left) && (Math.abs(char.y - top) <= 1)))) {
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.MOVING), this);
}
}
function destroy() {
mcTube.removeMovieClip();
super.destroy();
}
function get up() {
return(bUp);
}
function get moving() {
return(bMoving);
}
static var STATE_IDLE = "Idle";
}
Symbol 1150 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform10] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform10 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform10 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_WOOD_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform10", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1151 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform13] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform13 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform13 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_METAL_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform13", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1152 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Wall03] Frame 0
class com.disney.gem.games.total_blackout.platforms.Wall03 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Wall03 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROAD_BLOCK_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcWall03", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1153 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform20] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform20 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform20 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_WOOD_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform20", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1154 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Fireborn01] Frame 0
class com.disney.gem.games.total_blackout.platforms.Fireborn01 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Fireborn01 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_FIREBORN_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcFireborn01", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1155 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Mailbox01] Frame 0
class com.disney.gem.games.total_blackout.platforms.Mailbox01 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Mailbox01 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_MAILBOX_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcMailbox01", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1156 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Moving04] Frame 0
class com.disney.gem.games.total_blackout.platforms.Moving04 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, mcRef, bUp, bMoving, oItem, mcFront, sType, setState, topLeft, bottomRight, setTarget, Collide, nSpeedY, char, right, left, top, oTarget;
function Moving04 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_METAL_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcMoving04", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
if (Math.random() > 0.5) {
mcRef._x = _oItem.minx;
mcRef._y = _oItem.miny;
bUp = false;
} else {
mcRef._x = _oItem.maxx;
mcRef._y = _oItem.maxy;
bUp = true;
}
bMoving = true;
oItem = _oItem;
_local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Front");
_mcRef.attachMovie("mcMoving04_Front", _local6, oItem.fdepth);
mcFront = _mcRef[_local6];
mcFront._x = oItem.frontx;
mcFront._y = oItem.fronty;
sType = "platform";
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local7 = 0;
for ( ; _local7 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local7++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local7].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
function state_Idle() {
if (bUp) {
nSpeedY = -com.disney.gem.games.total_blackout.Config.Platform.Speed;
if ((mcRef._y - com.disney.gem.games.total_blackout.Config.Platform.Speed) < oItem.miny) {
mcRef._y = oItem.miny;
bUp = false;
} else {
mcRef._y = mcRef._y - com.disney.gem.games.total_blackout.Config.Platform.Speed;
}
} else {
nSpeedY = com.disney.gem.games.total_blackout.Config.Platform.Speed;
if ((mcRef._y + com.disney.gem.games.total_blackout.Config.Platform.Speed) > oItem.maxy) {
mcRef._y = oItem.maxy;
bUp = true;
} else {
mcRef._y = mcRef._y + com.disney.gem.games.total_blackout.Config.Platform.Speed;
}
}
if ((char != undefined) && ((char.x <= right) && ((char.x >= left) && (Math.abs(char.y - top) <= 1)))) {
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.MOVING), this);
}
}
function destroy() {
mcFront.removeMovieClip();
super.destroy();
}
function get up() {
return(bUp);
}
function get moving() {
return(bMoving);
}
static var STATE_IDLE = "Idle";
}
Symbol 1157 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Ensign02] Frame 0
class com.disney.gem.games.total_blackout.platforms.Ensign02 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Ensign02 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_LEVEL5_ENSIGN_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcEnsign02", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1158 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Door01] Frame 0
class com.disney.gem.games.total_blackout.platforms.Door01 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Door01 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_DOOR_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcDoor01", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1159 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Roof05] Frame 0
class com.disney.gem.games.total_blackout.platforms.Roof05 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Roof05 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcRoof05", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1160 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Pole03] Frame 0
class com.disney.gem.games.total_blackout.platforms.Pole03 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Pole03 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_POLE_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPole03", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1161 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Border02] Frame 0
class com.disney.gem.games.total_blackout.platforms.Border02 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Border02 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcBorder02", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1162 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform22] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform22 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform22 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform22", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1163 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform21] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform21 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform21 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform21", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1164 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform09] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform09 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform09 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform09", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1165 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Moving01] Frame 0
class com.disney.gem.games.total_blackout.platforms.Moving01 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, mcRef, bUp, bMoving, oItem, mcLeft, mcRight, sType, setState, topLeft, bottomRight, setTarget, Collide, nSpeedY, char, right, left, top, oTarget;
function Moving01 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_WOOD_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcMoving01", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
if (Math.random() > 0.5) {
mcRef._x = _oItem.minx;
mcRef._y = _oItem.miny;
bUp = false;
} else {
mcRef._x = _oItem.maxx;
mcRef._y = _oItem.maxy;
bUp = true;
}
bMoving = true;
oItem = _oItem;
_local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Rope");
_mcRef.attachMovie("mcRope", _local6, _oItem.ldepth);
mcLeft = _mcRef[_local6];
mcLeft._x = _oItem.leftx;
mcLeft._y = _oItem.lefty;
mcLeft._height = (mcRef._y - 20) - mcLeft._y;
_local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Rope");
_mcRef.attachMovie("mcRope", _local6, _oItem.rdepth);
mcRight = _mcRef[_local6];
mcRight._x = _oItem.rightx;
mcRight._y = _oItem.righty;
mcRight._xscale = -100;
mcRight._height = (mcRef._y - 20) - mcRight._y;
sType = "platform";
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local7 = 0;
for ( ; _local7 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local7++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local7].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
function state_Idle() {
if (bUp) {
nSpeedY = -com.disney.gem.games.total_blackout.Config.Platform.Speed;
if ((mcRef._y - com.disney.gem.games.total_blackout.Config.Platform.Speed) < oItem.miny) {
mcRef._y = oItem.miny;
bUp = false;
} else {
mcRef._y = mcRef._y - com.disney.gem.games.total_blackout.Config.Platform.Speed;
}
} else {
nSpeedY = com.disney.gem.games.total_blackout.Config.Platform.Speed;
if ((mcRef._y + com.disney.gem.games.total_blackout.Config.Platform.Speed) > oItem.maxy) {
mcRef._y = oItem.maxy;
bUp = true;
} else {
mcRef._y = mcRef._y + com.disney.gem.games.total_blackout.Config.Platform.Speed;
}
}
mcLeft._height = (mcRef._y - 20) - mcLeft._y;
mcRight._height = (mcRef._y - 20) - mcRight._y;
if ((char != undefined) && ((char.x <= right) && ((char.x >= left) && (Math.abs(char.y - top) <= 1)))) {
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.MOVING), this);
}
}
function destroy() {
mcLeft.removeMovieClip();
mcRight.removeMovieClip();
super.destroy();
}
function get up() {
return(bUp);
}
function get moving() {
return(bMoving);
}
static var STATE_IDLE = "Idle";
}
Symbol 1166 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Awning03] Frame 0
class com.disney.gem.games.total_blackout.platforms.Awning03 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, bBounce, mcRef, setState, topLeft, bottomRight, setTarget, Collide, oObj, stateCurrentFrame, mcTopLeft, mcBottomRight, top, oTarget, stateFinished;
function Awning03 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_AWNING_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcAwning03", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
bBounce = true;
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
function Bounce(_oObj) {
oObj = com.disney.gem.games.total_blackout.elements.Mickey(_oObj);
setState(STATE_BOUNCE, true);
}
function state_Bounce() {
switch (stateCurrentFrame()) {
case 2 :
mcTopLeft._y = mcTopLeft._y + 2;
mcBottomRight._y = mcBottomRight._y + 2;
oObj.y = top;
break;
case 3 :
mcTopLeft._y = mcTopLeft._y + 5.5;
mcBottomRight._y = mcBottomRight._y + 5.5;
oObj.y = top;
oObj.speedY = com.disney.gem.games.total_blackout.Config.Mickey.Jump - 4;
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.SET_SPEED), this);
}
if (stateFinished()) {
mcTopLeft._y = mcTopLeft._y - 7.5;
mcBottomRight._y = mcBottomRight._y - 7.5;
setState(STATE_IDLE, true);
}
}
function get bouncing() {
return(bBounce);
}
static var STATE_IDLE = "Idle";
static var STATE_BOUNCE = "Bounce";
}
Symbol 1167 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Roof03] Frame 0
class com.disney.gem.games.total_blackout.platforms.Roof03 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, bPixel, oRect, setState, topLeft, bottomRight, setTarget, char, oTarget, y, mcTopLeft, nTempTop;
function Roof03 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcRoof03", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
bPixel = true;
oRect = null;
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
function state_Idle() {
if ((char != undefined) && (oRect != null)) {
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.MOVING), oRect);
}
}
function Collide(_oEvt, _oObj) {
var _local4 = {};
top = mcTopLeft._y + y;
var _local5 = com.disney.gem.games.total_blackout.collision.pixelCollision.check(this, _oObj, 255);
if (_local5 != null) {
_local4.type = sType;
_local4.top = _local5.y;
_local4.pixel = bPixel;
_local4.sLandSound = sLandSound;
_local4.owner = this;
oRect = _local4;
if ((Math.abs(_oObj.y - _local5.y) <= 20) && (_oObj.speedY >= 0)) {
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.FORCE_LAND), _local4);
}
} else {
oRect = null;
}
}
function get top() {
return(nTempTop);
}
function set top(_nTop) {
nTempTop = _nTop;
//return(top);
}
static var STATE_IDLE = "Idle";
}
Symbol 1168 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Trash02] Frame 0
class com.disney.gem.games.total_blackout.platforms.Trash02 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Trash02 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_TRASH_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcTrash02", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1169 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Border01] Frame 0
class com.disney.gem.games.total_blackout.platforms.Border01 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Border01 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcBorder01", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1170 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Wall02] Frame 0
class com.disney.gem.games.total_blackout.platforms.Wall02 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Wall02 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_WOOD_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcWall02", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1171 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Roof04] Frame 0
class com.disney.gem.games.total_blackout.platforms.Roof04 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Roof04 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcRoof04", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1172 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform08] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform08 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform08 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform08", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1173 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Copse03] Frame 0
class com.disney.gem.games.total_blackout.platforms.Copse03 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Copse03 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcCopse03", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1174 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Umbrella01] Frame 0
class com.disney.gem.games.total_blackout.platforms.Umbrella01 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, bBounce, mcRef, setState, topLeft, bottomRight, setTarget, Collide, oObj, stateCurrentFrame, mcTopLeft, mcBottomRight, top, oTarget, stateFinished;
function Umbrella01 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_PARASOL_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcUmbrella01", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
bBounce = true;
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
function Bounce(_oObj) {
oObj = com.disney.gem.games.total_blackout.elements.Mickey(_oObj);
setState(STATE_BOUNCE, true);
}
function state_Bounce() {
switch (stateCurrentFrame()) {
case 2 :
mcTopLeft._y = mcTopLeft._y + 2;
mcBottomRight._y = mcBottomRight._y + 2;
oObj.y = top;
break;
case 3 :
mcTopLeft._y = mcTopLeft._y + 5.5;
mcBottomRight._y = mcBottomRight._y + 5.5;
oObj.y = top;
oObj.speedY = (com.disney.gem.games.total_blackout.Config.Mickey.Jump - 1) - 3;
oTarget.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.SET_SPEED), this);
}
if (stateFinished()) {
mcTopLeft._y = mcTopLeft._y - 7.5;
mcBottomRight._y = mcBottomRight._y - 7.5;
setState(STATE_IDLE, true);
}
}
function get bouncing() {
return(bBounce);
}
static var STATE_IDLE = "Idle";
static var STATE_BOUNCE = "Bounce";
}
Symbol 1175 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Platform07] Frame 0
class com.disney.gem.games.total_blackout.platforms.Platform07 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Platform07 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_ROOF_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPlatform07", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1176 MovieClip [__Packages.com.disney.gem.games.total_blackout.platforms.Pole02] Frame 0
class com.disney.gem.games.total_blackout.platforms.Pole02 extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var sLandSound, setMC, sType, mcRef, setState, topLeft, bottomRight, setTarget, Collide;
function Pole02 (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
sLandSound = com.disney.gem.games.total_blackout.utility.Sounds.sSFX_POLE_LAND;
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Platform");
_mcRef.attachMovie("mcPole02", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "platform";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
setState(STATE_IDLE, true);
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
}
static var STATE_IDLE = "Idle";
}
Symbol 1177 MovieClip [__Packages.com.disney.gem.games.total_blackout.elements.Go] Frame 0
class com.disney.gem.games.total_blackout.elements.Go extends com.disney.gem.games.total_blackout.collision.CollideItem
{
var setMC, sType, mcRef, topLeft, bottomRight, setTarget, Collide, stopListening, oTarget, setState, startListening, stateFinished;
function Go (_mcRef, _aProperties, _oItem) {
super(undefined, undefined, undefined);
var _local6 = com.disney.gem.games.total_blackout.Controller.getInstance().getGenericName("Go");
_mcRef.attachMovie("mcGo", _local6, _oItem.depth);
setMC(_mcRef[_local6]);
sType = "go";
var _local7 = 0;
for ( ; _local7 < _aProperties.length ; _local7++) {
mcRef["_" + _aProperties[_local7][0]] = _aProperties[_local7][1];
}
mcRef.mcTopLeft._visible = false;
mcRef.mcBottomRight._visible = false;
topLeft({_x:mcRef.mcTopLeft._x, _y:mcRef.mcTopLeft._y});
bottomRight({_x:mcRef.mcBottomRight._x, _y:mcRef.mcBottomRight._y});
setTarget(com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher);
var _local8 = 0;
for ( ; _local8 < com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher.length ; _local8++) {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.aEventDispatcher[_local8].addEventListener(com.disney.gem.games.total_blackout.events.Event.TEST, Collide, this);
}
stopListening();
oTarget.addEventListener(com.disney.gem.games.total_blackout.events.Event.ACTIVATE_GO, onActivate, this);
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
setState(STATE_HIDDEN, true);
}
function onActivate() {
startListening();
setState(STATE_APPEAR, true);
}
function state_Appear() {
if (stateFinished()) {
setState(STATE_IDLE, true);
}
}
static var STATE_IDLE = "Idle";
static var STATE_APPEAR = "Appear";
static var STATE_HIDDEN = "Hidden";
}
Symbol 1178 MovieClip [__Packages.com.disney.gem.games.total_blackout.utility.Animate] Frame 0
class com.disney.gem.games.total_blackout.utility.Animate
{
var oObj, sProp, fFunc, nBegin, nDuration, nTime, bPlaying, nChange;
function Animate (_oObj, _sProp, _fFunc, _nBegin, _nFinish, _nDuration) {
oObj = _oObj;
sProp = _sProp;
fFunc = _fFunc;
nBegin = _nBegin;
nDuration = _nDuration;
finish = _nFinish;
nTime = 0;
start();
}
function start() {
bPlaying = true;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.addListener(this);
}
function stop() {
bPlaying = false;
com.disney.gem.games.total_blackout.Controller.getInstance().oMainBroadcaster.removeListener(this);
}
function get time() {
return(nTime);
}
function set time(_nTime) {
if (_nTime > nDuration) {
setPosition(finish);
stop();
} else {
nTime = _nTime;
update();
}
//return(time);
}
function set position(_nPosition) {
setPosition(_nPosition);
//return(position);
}
function setPosition(_nPosition) {
oObj[sProp] = _nPosition;
}
function get position() {
return(getPosition());
}
function getPosition(_nTime) {
if (_nTime == undefined) {
_nTime = nTime;
}
return(fFunc(_nTime, nBegin, nChange, nDuration));
}
function set finish(_nFinish) {
nChange = _nFinish - nBegin;
//return(finish);
}
function get finish() {
return(nBegin + nChange);
}
function onUpdate() {
time = nTime + 1;
}
function update() {
position = getPosition(nTime);
}
function get playing() {
return(bPlaying);
}
static function easeInOut(_nTime, _nBegin, _nChange, _nDuration) {
_nTime = _nTime / (_nDuration / 2);
if (_nTime < 1) {
return(((((((_nChange / 2) * _nTime) * _nTime) * _nTime) * _nTime) * _nTime) + _nBegin);
}
_nTime = _nTime - 2;
return(((_nChange / 2) * (((((_nTime * _nTime) * _nTime) * _nTime) * _nTime) + 2)) + _nBegin);
}
}
Symbol 1179 MovieClip [__Packages.com.disney.gem.games.total_blackout.Hud] Frame 0
class com.disney.gem.games.total_blackout.Hud
{
var oController, mcHud, oGame, txtTries, txtScore, txtTriesS, txtScoreS;
function Hud (_oController, _mcHud, _oGame) {
oController = _oController;
mcHud = _mcHud;
oGame = _oGame;
txtTries = mcHud.txtTries;
txtScore = mcHud.txtScore;
txtTriesS = mcHud.txtTriesS;
txtScoreS = mcHud.txtScoreS;
mcHud.btMenu.onRollOver = com.sarbakan.utils.Delegate.create(this, onBtOver);
mcHud.btMenu.onRelease = com.sarbakan.utils.Delegate.create(this, onBtMenu);
}
function init() {
txtTries.text = String(com.disney.gem.games.total_blackout.Stats.tries);
txtTriesS.text = String(com.disney.gem.games.total_blackout.Stats.tries);
txtScore.text = String(com.disney.gem.games.total_blackout.Controller(oController).getScore() + com.disney.gem.games.total_blackout.Stats.score);
txtScoreS.text = String(com.disney.gem.games.total_blackout.Controller(oController).getScore() + com.disney.gem.games.total_blackout.Stats.score);
}
function update() {
txtTries.text = String(com.disney.gem.games.total_blackout.Stats.tries);
txtTriesS.text = String(com.disney.gem.games.total_blackout.Stats.tries);
txtScore.text = String(com.disney.gem.games.total_blackout.Controller(oController).getScore() + com.disney.gem.games.total_blackout.Stats.score);
txtScoreS.text = String(com.disney.gem.games.total_blackout.Controller(oController).getScore() + com.disney.gem.games.total_blackout.Stats.score);
}
function onBtOver() {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_BUTTON_ROLLOVER, true, false);
}
function onBtMenu() {
com.disney.gem.games.total_blackout.Controller.getInstance().pause();
com.disney.gem.games.total_blackout.Controller.getInstance().showPopup(new com.disney.gem.games.total_blackout.popups.MenuPopup(com.disney.gem.games.total_blackout.Controller.getInstance().mcTimeline.mcPopups.mcMenu), true);
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_BUTTON_CLICK, true, false);
}
}
Symbol 1180 MovieClip [__Packages.com.disney.gem.games.total_blackout.popups.MenuPopup] Frame 0
class com.disney.gem.games.total_blackout.popups.MenuPopup extends com.sarbakan.utils.ScreenController
{
var oController, hide, mcRef;
function MenuPopup (_mcRef) {
super(_mcRef);
}
function onBtSound() {
playClick();
com.disney.gem.games.total_blackout.Controller(oController).toggleSound();
updateSoundGroup();
}
function onBtHelp() {
playClick();
hide(null, true);
com.disney.gem.games.total_blackout.Controller(oController).showInstructionScreen();
}
function onBtQuit() {
playClick();
hide(com.sarbakan.utils.Delegate.create(this, onHide), true);
}
function onBtResume() {
playClick();
com.disney.gem.games.total_blackout.Controller(oController).unpause();
com.disney.gem.games.total_blackout.utility.Sounds.Unpause(com.disney.gem.games.total_blackout.utility.Sounds.sSOUND_CAT_NAME);
com.disney.gem.games.total_blackout.utility.Sounds.Unpause(com.disney.gem.games.total_blackout.utility.Sounds.sAMBIENT_CAT_NAME);
com.disney.gem.games.total_blackout.utility.Sounds.setMusic(com.disney.gem.games.total_blackout.utility.Sounds.sMUSIC_INGAME);
hide();
}
function state_in_init() {
super.state_in_init();
setBts();
com.disney.gem.games.total_blackout.utility.Sounds.Pause(com.disney.gem.games.total_blackout.utility.Sounds.sSOUND_CAT_NAME);
com.disney.gem.games.total_blackout.utility.Sounds.Pause(com.disney.gem.games.total_blackout.utility.Sounds.sAMBIENT_CAT_NAME);
com.disney.gem.games.total_blackout.utility.Sounds.setMusic(com.disney.gem.games.total_blackout.utility.Sounds.sMUSIC_PACKAGING);
}
function state_idle_init() {
super.state_idle_init();
setBts();
}
function state_out_init() {
super.state_out_init();
setBts();
}
function onHide() {
com.disney.gem.games.total_blackout.Controller(oController).showPopup(new com.disney.gem.games.total_blackout.popups.ConfirmPopup(com.disney.gem.games.total_blackout.Controller(oController).mcTimeline.mcPopups.mcConfirm, this), true);
}
function setBts() {
mcRef.mcState.mcContent.btHelp.onRelease = com.sarbakan.utils.Delegate.create(this, onBtHelp);
mcRef.mcState.mcContent.btHelp.onRollOver = com.sarbakan.utils.Delegate.create(this, playOver);
mcRef.mcState.mcContent.btQuit.onRelease = com.sarbakan.utils.Delegate.create(this, onBtQuit);
mcRef.mcState.mcContent.btQuit.onRollOver = com.sarbakan.utils.Delegate.create(this, playOver);
mcRef.mcState.mcContent.btResume.onRelease = com.sarbakan.utils.Delegate.create(this, onBtResume);
mcRef.mcState.mcContent.btResume.onRollOver = com.sarbakan.utils.Delegate.create(this, playOver);
mcRef.mcState.mcContent.mcSoundToggle.onRelease = com.sarbakan.utils.Delegate.create(this, onBtSound);
mcRef.mcState.mcContent.mcSoundToggle.onRollOver = com.sarbakan.utils.Delegate.create(this, playOver);
updateSoundGroup();
}
function updateSoundGroup() {
var _local2 = "On";
if (com.disney.gem.games.total_blackout.Controller(oController).bSoundMuted) {
_local2 = "Off";
}
mcRef.mcState.mcContent.mcSoundToggle.gotoAndStop(_local2);
mcRef.mcState.mcContent.mcSoundToggle.btSound.onRelease = com.sarbakan.utils.Delegate.create(this, onBtSound);
}
function playClick() {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_BUTTON_CLICK, true, true);
}
function playOver() {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_BUTTON_ROLLOVER, true, false);
}
}
Symbol 1181 MovieClip [__Packages.com.disney.gem.games.total_blackout.popups.ConfirmPopup] Frame 0
class com.disney.gem.games.total_blackout.popups.ConfirmPopup extends com.sarbakan.utils.ScreenController
{
var oMenuOrigin, hide, oController, mcRef;
function ConfirmPopup (_mcRef, _oMenuOrigin) {
super(_mcRef);
oMenuOrigin = _oMenuOrigin;
}
function onBtNo() {
playClick();
hide(com.sarbakan.utils.Delegate.create(this, onHide));
}
function onBtYes() {
playClick();
hide();
com.disney.gem.games.total_blackout.Controller(oController).onGameLose();
}
function state_in_init() {
super.state_in_init();
setBts();
}
function state_idle_init() {
super.state_idle_init();
setBts();
}
function state_out_init() {
super.state_out_init();
setBts();
}
function onHide() {
oMenuOrigin.show(true);
}
function setBts() {
mcRef.mcState.mcContent.btNo.onRelease = com.sarbakan.utils.Delegate.create(this, onBtNo);
mcRef.mcState.mcContent.btNo.onRollOver = com.sarbakan.utils.Delegate.create(this, playOver);
mcRef.mcState.mcContent.btYes.onRelease = com.sarbakan.utils.Delegate.create(this, onBtYes);
mcRef.mcState.mcContent.btYes.onRollOver = com.sarbakan.utils.Delegate.create(this, playOver);
}
function playClick() {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_BUTTON_CLICK, true, true);
}
function playOver() {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_BUTTON_ROLLOVER, true, false);
}
}
Symbol 1182 MovieClip [__Packages.com.disney.gem.games.total_blackout.popups.LoseTryPopup] Frame 0
class com.disney.gem.games.total_blackout.popups.LoseTryPopup extends com.sarbakan.utils.ScreenController
{
var nFrame, nPasse, setState;
function LoseTryPopup (_mcRef) {
super(_mcRef);
nFrame = 30 * 3;
nPasse = 0;
}
function state_idle() {
nPasse++;
if (nPasse >= nFrame) {
nPasse = 0;
setState(com.sarbakan.utils.ScreenController.sSTATE_OUT, true);
}
}
function state_out_end() {
com.disney.gem.games.total_blackout.Controller.getInstance().oGame.oPlayerDispatcher.dispatchEvent(new com.disney.gem.games.total_blackout.events.Event(com.disney.gem.games.total_blackout.events.Event.WAKE_CITY), this);
}
}
Symbol 1183 MovieClip [__Packages.com.disney.gem.games.total_blackout.utility.ClassFinder] Frame 0
class com.disney.gem.games.total_blackout.utility.ClassFinder
{
function ClassFinder () {
}
static function find(_sPackage) {
var _local3 = _global;
var _local4 = _sPackage.split(".");
var _local5 = 0;
for ( ; _local5 < _local4.length ; _local5++) {
_local3 = _local3[_local4[_local5]];
}
return(Function(_local3));
}
}
Symbol 1184 MovieClip [__Packages.com.disney.gem.games.total_blackout.screens.TitleScreen] Frame 0
class com.disney.gem.games.total_blackout.screens.TitleScreen extends com.sarbakan.utils.ScreenController
{
var oController, mcRef;
function TitleScreen (_mcRef) {
super(_mcRef);
}
function onBtHelp() {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_BUTTON_CLICK, true, true);
com.disney.gem.games.total_blackout.Controller(oController).showInstructionScreen();
}
function onBtPlay() {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_BUTTON_CLICK, true, true);
com.disney.gem.games.total_blackout.Controller(oController).startNewGame();
}
function onBtOver() {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_BUTTON_ROLLOVER, true, false);
}
function state_idle_init() {
super.state_idle_init();
mcRef.mcState.mcContent.btHelp.onRelease = com.sarbakan.utils.Delegate.create(this, onBtHelp);
mcRef.mcState.mcContent.btHelp.onRollOver = com.sarbakan.utils.Delegate.create(this, onBtOver);
mcRef.mcState.mcContent.btPlay.onRelease = com.sarbakan.utils.Delegate.create(this, onBtPlay);
mcRef.mcState.mcContent.btPlay.onRollOver = com.sarbakan.utils.Delegate.create(this, onBtOver);
}
}
Symbol 1185 MovieClip [__Packages.com.disney.gem.games.total_blackout.screens.HelpScreen] Frame 0
class com.disney.gem.games.total_blackout.screens.HelpScreen extends com.sarbakan.utils.ScreenController
{
var setState, oController, mcRef;
function HelpScreen (_mcRef) {
super(_mcRef);
setState(com.sarbakan.utils.ScreenController.sSTATE_IDLE);
}
function onBtPlay() {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_BUTTON_CLICK, true, true);
if (com.disney.gem.games.total_blackout.Controller(oController).getGamePhase() == com.sarbakan.BaseDisneyController.nGAME_PHASE_INGAME) {
com.disney.gem.games.total_blackout.Controller(oController).hideInstructionScreen();
com.disney.gem.games.total_blackout.utility.Sounds.Unpause(com.disney.gem.games.total_blackout.utility.Sounds.sSOUND_CAT_NAME);
com.disney.gem.games.total_blackout.utility.Sounds.Unpause(com.disney.gem.games.total_blackout.utility.Sounds.sAMBIENT_CAT_NAME);
com.disney.gem.games.total_blackout.utility.Sounds.setMusic(com.disney.gem.games.total_blackout.utility.Sounds.sMUSIC_INGAME);
} else {
com.disney.gem.games.total_blackout.Controller(oController).startNewGame();
}
}
function onBtNext() {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_BUTTON_CLICK, true, true);
setState("idle2");
}
function onBtBack() {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_BUTTON_CLICK, true, true);
setState("idle");
}
function onBtOver() {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_BUTTON_ROLLOVER, true, false);
}
function state_idle_init() {
super.state_idle_init();
mcRef.mcState.mcContent.btNext.onRelease = com.sarbakan.utils.Delegate.create(this, onBtNext);
mcRef.mcState.mcContent.btNext.onRollOver = com.sarbakan.utils.Delegate.create(this, onBtOver);
mcRef.mcState.mcContent.btPlay.onRelease = com.sarbakan.utils.Delegate.create(this, onBtPlay);
mcRef.mcState.mcContent.btPlay.onRollOver = com.sarbakan.utils.Delegate.create(this, onBtOver);
}
function state_idle2_init() {
mcRef.btBlocker.useHandCursor = false;
mcRef.mcState.mcContent.btPlay.onRelease = com.sarbakan.utils.Delegate.create(this, onBtPlay);
mcRef.mcState.mcContent.btPlay.onRollOver = com.sarbakan.utils.Delegate.create(this, onBtOver);
mcRef.mcState.mcContent.btBack.onRelease = com.sarbakan.utils.Delegate.create(this, onBtBack);
mcRef.mcState.mcContent.btBack.onRollOver = com.sarbakan.utils.Delegate.create(this, onBtOver);
}
}
Symbol 1186 MovieClip [__Packages.com.disney.gem.games.total_blackout.screens.EndScreen] Frame 0
class com.disney.gem.games.total_blackout.screens.EndScreen extends com.sarbakan.utils.ScreenController
{
var oController, mcRef;
function EndScreen (_mcRef) {
super(_mcRef);
com.disney.gem.games.total_blackout.utility.Sounds.StopAll(com.disney.gem.games.total_blackout.utility.Sounds.sAMBIENT_CAT_NAME);
com.disney.gem.games.total_blackout.utility.Sounds.setMusic(com.disney.gem.games.total_blackout.utility.Sounds.sMUSIC_PACKAGING);
}
function onBtPlay() {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_BUTTON_CLICK, true, true);
com.disney.gem.games.total_blackout.Controller(oController).showTitleScreen(true);
}
function onBtOver() {
com.disney.gem.games.total_blackout.utility.Sounds.Play(com.disney.gem.games.total_blackout.utility.Sounds.sSFX_BUTTON_ROLLOVER, true, false);
}
function state_idle_init() {
super.state_idle_init();
mcRef.mcState.mcContent.btPlay.onRelease = com.sarbakan.utils.Delegate.create(this, onBtPlay);
mcRef.mcState.mcContent.btPlay.onRollOver = com.sarbakan.utils.Delegate.create(this, onBtOver);
mcRef.mcState.mcContent.txtScore.text = String(com.disney.gem.games.total_blackout.Controller.getInstance().getScore());
mcRef.mcState.mcContent.txtScoreS.text = String(com.disney.gem.games.total_blackout.Controller.getInstance().getScore());
}
}
Symbol 802 MovieClip Frame 1
stop();