[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 2 (8 B)
stop();
Frame 10 (258 B)
stop();
var sunStories2SOTmp = SharedObject.getLocal(Define.NAME_RECORDSET);
var tempValue = sunStories2SOTmp.data.levelData.tutorialPlayed;
if (isNaN(tempValue)) {
instButtonSkipLogo._visible = false;
} else {
instButtonSkipLogo._visible = true;
}
Instance of Symbol 304 MovieClip [clipLogo] in Frame 10 (21 B)
/* no clip actions */
Frame 17 (260 B)
stop();
var sunStories2SOTmp = SharedObject.getLocal(Define.NAME_RECORDSET);
var tempValue = sunStories2SOTmp.data.levelData.tutorialPlayed;
if (isNaN(tempValue)) {
instButtonSkipIntro._visible = false;
} else {
instButtonSkipIntro._visible = true;
}
Frame 25 (24.76 KiB) ● ● ●
buildInputForArrowsAndQuality = function () {
world.onKeyDown = function () {
var _local2 = Key.getCode();
switch (_local2) {
case 73 :
_root.playGameSoundIndependentlly(Define.SOUNDS_SELECCION, 1);
if (_root.gEnableInformationArrows == 0) {
_root.gEnableInformationArrows = 1;
_root.gMission.enableAllArrows(true);
} else {
_root.gEnableInformationArrows = 0;
_root.gMission.enableAllArrows(false);
}
break;
case 81 :
_root.playGameSoundIndependentlly(Define.SOUNDS_SELECCION, 1);
_root.gQualitySetted = _root.gQualitySetted + 1;
if (_root.gQualitySetted > 2) {
_root.gQualitySetted = 0;
}
switch (_root.gQualitySetted) {
case 0 :
_root._quality = "LOW";
break;
case 1 :
_root._quality = "MEDIUM";
break;
case 2 :
_root._quality = "HIGH";
}
}
};
Key.addListener(world);
};
var gIsSoundEnable = false;
var gGameSong = new Sound();
var gBonusLoadGameSucceded = false;
var nmSounds = new Array();
var nmSoundEnabled = true;
var nmPreviousSoundLoaded = -1;
var nmCurrentSoundLoaded = 0;
var nmCurrentSoundPlayer = 0;
loadGameSound = function (nindex) {
var _local2 = new Sound();
nmPreviousSoundLoaded = nmCurrentSoundLoaded;
switch (nindex) {
case Define.SOUNDS_MELODIA_MENU :
_local2.attachSound("melodiamenu");
break;
case Define.SOUNDS_SELECCION :
_local2.attachSound("tonoseleccion");
break;
case Define.SOUNDS_INICIO_NIVEL :
_local2.attachSound("melodiainicionivel");
break;
case Define.SOUNDS_VICTORIA :
_local2.attachSound("melodiavictoria");
break;
case Define.SOUNDS_DERROTA :
_local2.attachSound("melodiaderrota");
break;
case Define.SOUNDS_FX_BONUS :
_local2.attachSound("bonusMelody");
break;
case Define.SOUNDS_FX_STAR_CAPTURED :
_local2.attachSound("enemyDestroyed");
break;
case Define.SOUNDS_FX_ENEMY_DESTROYED :
_local2.attachSound("starCaptured");
break;
}
_root.nmCurrentSoundLoaded = _root.nmCurrentSoundLoaded + 1;
nmSounds.push(_local2);
};
stopGameSounds = function () {
var _local1 = 0;
while (_local1 < nmSounds.length) {
nmSounds[_local1].stop();
_local1++;
}
};
playGameSound = function (nindex, iter) {
nmCurrentSoundPlayer = nindex;
if ((nmSoundEnabled == true) && (gIsSoundEnable == false)) {
stopGameSounds();
nmSounds[nindex].start(0, iter);
}
};
playGameSoundIndependentlly = function (nindex, iter) {
nmCurrentSoundPlayer = nindex;
if (nmSoundEnabled == true) {
nmSounds[nindex].start(0, iter);
}
};
playGameSound_Efective = function (nindex, iter) {
nmCurrentSoundPlayer = nindex;
if (nmSoundEnabled == true) {
stopGameSounds();
nmSounds[nindex].start(0, iter);
}
};
playGameSoundStops = function (nindex, iter) {
nmCurrentSoundPlayer = nindex;
if (nmSoundEnabled == true) {
stopGameSounds();
nmSounds[nindex].start(0, iter);
}
};
loadSongOfTheLevel = function () {
var _local1;
gIsSoundEnable = true;
if (gLastStateGame != Define.STATE_GAME_LOSE) {
if (Define.ENABLE_SOUND_BY_URL) {
_local1 = "http://www.newgrounds.com/audio/download.php?which=single&id=";
} else {
_local1 = ("music/LEVEL_0" + (gCurrentLevel + 1)) + "_";
}
switch (gCurrentLevel) {
case 0 :
_local1 = _local1 + "52413";
break;
case 1 :
_local1 = _local1 + "13768";
break;
case 2 :
_local1 = _local1 + "29487";
break;
case 3 :
_local1 = _local1 + "34119";
break;
case 4 :
_local1 = _local1 + "41531";
break;
case 5 :
_local1 = _local1 + "74494";
break;
case 6 :
_local1 = _local1 + "29282";
}
if (Define.ENABLE_SOUND_BY_URL) {
gGameSong.loadSound(_local1, false);
} else {
gGameSong.loadSound(_local1 + ".mp3", false);
}
}
};
loadGameData = function () {
gListLevelScore = new Array();
gListLevelStarsScore = new Array();
gListLevelBonusScore = new Array();
var _local1 = 0;
while (_local1 < Define.TOTAL_NUMBER_OF_LEVELS) {
gListLevelScore.push(-1);
gListLevelStarsScore.push(-1);
gListLevelBonusScore.push(-1);
_local1++;
}
nmTotalLevelDone = 0;
var _local2 = SharedObject.getLocal(Define.NAME_RECORDSET);
gTutorialHasBeenPlayed = _local2.data.levelData.tutorialPlayed;
if (isNaN(gTutorialHasBeenPlayed)) {
gTutorialHasBeenPlayed = 0;
}
nmDifficultySetted = _local2.data.levelData.difficultySetted;
if (isNaN(nmDifficultySetted)) {
nmDifficultySetted = 1;
} else if ((nmDifficultySetted < 0) || (nmDifficultySetted > 2)) {
nmDifficultySetted = 1;
}
gEnableInformationArrows = _local2.data.levelData.enableInformationArrows;
if (isNaN(gEnableInformationArrows)) {
gEnableInformationArrows = 1;
}
_local1 = 0;
while (_local1 < Define.TOTAL_NUMBER_OF_LEVELS) {
gListLevelScore[_local1] = _local2.data.levelData.gListLevelScore[_local1];
if (!isNaN(gListLevelScore[_local1])) {
nmTotalLevelDone++;
}
_local1++;
}
_local1 = 0;
while (_local1 < Define.TOTAL_NUMBER_OF_LEVELS) {
gListLevelStarsScore[_local1] = _local2.data.levelData.gListLevelStarsScore[_local1];
_local1++;
}
_local1 = 0;
while (_local1 < Define.TOTAL_NUMBER_OF_LEVELS) {
gListLevelBonusScore[_local1] = _local2.data.levelData.gListLevelBonusScore[_local1];
_local1++;
}
if (nmTotalLevelDone >= Define.TOTAL_NUMBER_OF_LEVELS) {
nmTotalLevelDone = Define.TOTAL_NUMBER_OF_LEVELS - 1;
}
};
saveGameData = function () {
var _local1 = new Object();
_local1.tutorialPlayed = gTutorialHasBeenPlayed;
_local1.difficultySetted = nmDifficultySetted;
_local1.enableInformationArrows = gEnableInformationArrows;
_local1.gListLevelScore = gListLevelScore;
_local1.gListLevelStarsScore = gListLevelStarsScore;
_local1.gListLevelBonusScore = gListLevelBonusScore;
var _local2 = SharedObject.getLocal(Define.NAME_RECORDSET);
_local2.data.levelData = _local1;
_local2.flush();
};
saveGameDataLevel = function () {
if (!isNaN(gListLevelScore[gCurrentLevel])) {
if (gListLevelScore[gCurrentLevel] > gScoreTotalDone) {
gListLevelScore[gCurrentLevel] = gScoreTotalDone;
}
if (gListLevelStarsScore[gCurrentLevel] > gStarsCollected) {
gListLevelStarsScore[gCurrentLevel] = gStarsCollected;
}
if (gListLevelBonusScore[gCurrentLevel] < gBonusCollected) {
gListLevelBonusScore[gCurrentLevel] = gBonusCollected;
}
} else {
gListLevelScore[gCurrentLevel] = gScoreTotalDone;
gListLevelStarsScore[gCurrentLevel] = gStarsCollected;
gListLevelBonusScore[gCurrentLevel] = gBonusCollected;
nmTotalLevelDone++;
}
};
changeGeneralGameState = function (newState) {
gIterator = 0;
gLastStateGame = gStateGame;
gStateGame = newState;
if (Define.DEBUG_GENERAL) {
switch (gStateGame) {
case Define.STATE_GAME_MENU :
trace("gStateGame=STATE_GAME_MENU");
break;
case Define.STATE_GAME_QUESTION :
trace("gStateGame=STATE_GAME_QUESTION");
break;
case Define.STATE_GAME_LOADING :
trace("gStateGame=STATE_GAME_LOADING");
break;
case Define.STATE_GAME_PRESENTATION :
trace("gStateGame=STATE_GAME_PRESENTATION");
break;
case Define.STATE_GAME_INTRO :
trace("gStateGame=STATE_GAME_INTRO");
break;
case Define.STATE_GAME_RUN :
trace("gStateGame=STATE_GAME_RUN");
break;
case Define.STATE_GAME_VICTORY :
trace("gStateGame=STATE_GAME_VICTORY");
break;
case Define.STATE_GAME_LOSE :
trace("gStateGame=STATE_GAME_LOSE");
break;
case Define.STATE_GAME_TUTORIAL1 :
trace("gStateGame=STATE_GAME_TUTORIAL1");
break;
case Define.STATE_GAME_TUTORIAL2 :
trace("gStateGame=STATE_GAME_TUTORIAL2");
break;
case Define.STATE_GAME_TUTORIAL3 :
trace("gStateGame=STATE_GAME_TUTORIAL3");
break;
case Define.STATE_GAME_TUTORIAL4 :
trace("gStateGame=STATE_GAME_TUTORIAL4");
break;
case Define.STATE_GAME_TUTORIAL5 :
trace("gStateGame=STATE_GAME_TUTORIAL5");
break;
case Define.STATE_GAME_TUTORIAL6 :
trace("gStateGame=STATE_GAME_TUTORIAL6");
}
}
};
initGame = function (p_currentLevel) {
gCurrentLevel = p_currentLevel;
if (gCurrentLevel == -1) {
changeGeneralGameState(Define.STATE_GAME_LOADING);
} else if (Define.DEBUG_ENABLE_QUESTION) {
changeGeneralGameState(Define.STATE_GAME_QUESTION);
} else {
gIsSoundEnable = true;
changeGeneralGameState(Define.STATE_GAME_LOADING);
}
_root.onEnterFrame = function () {
mainGameLogic();
};
};
insertRayInList = function () {
var _local1 = new flash.geom.Point((gSun._rayIni.x + gSun._rayEnd.x) / 2, (gSun._rayIni.y + gSun._rayEnd.y) / 2);
var _local2 = gWorld.getWorldPoint(_local1);
var _local3 = Define.getOrientationToPoint(gSunPosScreen, _local1);
gListRays[gIndexRayForming].initRay(_local2, _local1, _local3);
gIndexRayForming = -1;
};
buildFuntionalityMouse = function () {
world.onMouseMove = function () {
if (gSun._sunActiveYaw) {
gSun._sunPoint.x = _xmouse;
gSun._sunPoint.y = _ymouse;
gSun._sunYaw = Define.getOrientationToPoint(gSunPosScreen, gSun._sunPoint);
if (_root.gSun._sunSizePercentage <= 0) {
gSun._sunActiveYaw = false;
gSun._rayEnd.x = _xmouse;
gSun._rayEnd.y = _ymouse;
insertRayInList();
with (_root.world.rayito) {
clear();
}
}
}
};
world.onPress = function () {
if ((gSun._sunActiveYaw == false) && (_activeSunSuperRays <= 0)) {
if (_root.gSun._sunSizePercentage > 0) {
gSun._sunActiveYaw = true;
gSun._sunPoint.x = _xmouse;
gSun._sunPoint.y = _ymouse;
gSun._rayIni.x = _xmouse;
gSun._rayIni.y = _ymouse;
var _local2 = 0;
while (_local2 < Define.TOTAL_NUMBER_RAY) {
if (gListRays[_local2]._state == cRay.STATE_RAY_NULL) {
gIndexRayForming = _local2;
gListRays[_local2].changeState(cRay.STATE_RAY_INIT);
break;
}
_local2++;
}
gSun._sunYaw = Define.getOrientationToPoint(gSunPosScreen, gSun._sunPoint);
}
}
};
world.onRelease = function () {
if (gSun._sunActiveYaw) {
gSun._sunActiveYaw = false;
gSun._rayEnd.x = _xmouse;
gSun._rayEnd.y = _ymouse;
insertRayInList();
with (_root.world.rayito) {
clear();
}
}
};
};
logicCameraControl = function () {
var _local1 = gMission._waypoints[gMission._currentWaypoint]._pos;
gDirectionToWay = Define.getDirectionPlus(gPosScroll, _local1);
if (Define.DEBUG_CAMERA_SCROLL) {
trace(((("gState=Define.STATE_GAME_PRESENTATION: PREVIOUS gPosScroll(" + gPosScroll.x) + ",") + gPosScroll.y) + ")");
}
gPosScroll = Define.moveDirectionPlus(gPosScroll, gDirectionToWay, gSpeedScroll, Math.abs(gPosScroll.x - _local1.x), Math.abs(gPosScroll.y - _local1.y));
var _local2 = Define.distancePoint(gPosScroll, _local1);
if (Define.DEBUG_CAMERA_SCROLL) {
trace((((((((((("Define.STATE_GAME_PRESENTATION: gPosScroll(" + gPosScroll.x) + ",") + gPosScroll.y) + "); direction=") + gDirectionToWay) + "; speed=") + gSpeedScroll) + "; Waypoint(") + gMission._currentWaypoint) + "): distance=") + _local2);
}
if (_local2 == 0) {
gPosScroll.x = gMission._waypoints[gMission._currentWaypoint]._pos.x;
gPosScroll.y = gMission._waypoints[gMission._currentWaypoint]._pos.y;
gSpeedScroll = gMission._waypoints[gMission._currentWaypoint]._speedToNextWaypoint;
gMission.updateCurrentWaypoint();
}
gWorld.changeCamera(gPosScroll.x, gPosScroll.y);
gWorld.buildBoardBitmapDataWindowPartial();
};
logicRunGame = function () {
var _local2 = new Date().getTime();
gTimeDif = _local2 - gLastTimeRecorded;
gLastTimeRecorded = _local2;
if (gMission._currentWaypoint < gMission._waypoints.length) {
logicCameraControl();
gDirectionObjectsCamera = Define.getDirectionPlus(gWorld._myLastCamera, gWorld._myCamera);
gDifCameraX = Math.abs(gWorld._myCamera.x - gWorld._myLastCamera.x);
gDifCameraY = Math.abs(gWorld._myCamera.y - gWorld._myLastCamera.y);
}
gSun.logic();
gMission.logic();
var _local1 = 0;
while (_local1 < Define.TOTAL_NUMBER_RAY) {
gListRays[_local1].logicRay();
_local1++;
}
if (gActiveBlackHole) {
gBlackHole.logic();
}
};
mainGameLogic = function () {
switch (gStateGame) {
case Define.STATE_GAME_QUESTION :
instClipMenuGame.gotoAndStop("vacio");
instClipMenuGame._visible = false;
instClipMenuResultGame._visible = true;
instClipMenuResultGame.gotoAndStop("question");
gBonusLoadGameSucceded = false;
break;
case Define.STATE_GAME_LOADING :
gIterator++;
if (gIterator == 1) {
if (instClipMenuGame._visible == true) {
instClipMenuGame.gotoAndStop("vacio");
instClipMenuGame._visible = false;
}
instClipMenuResultGame._visible = true;
instClipMenuResultGame.gotoAndStop("loading");
gGeneralStarCounter = 0;
gGeneralEnemyCounter = 0;
gGeneralEnemyCounterBlackHole = 0;
gActiveBlackHole = false;
var _local4;
switch (gCurrentLevel) {
case -1 :
_local4 = "TilesSunStories1";
break;
case 0 :
_local4 = "TilesSunStories1";
break;
case 1 :
_local4 = "TilesSunStories2";
break;
case 2 :
_local4 = "TilesSunStories3";
break;
case 3 :
_local4 = "TilesSunStories4";
break;
case 4 :
_local4 = "TilesSunStories5";
break;
case 5 :
_local4 = "TilesSunStories6";
break;
case 6 :
_local4 = "TilesSunStories7";
}
gWorld = new Worldmap(this, world, gCurrentLevel, gPos, new flash.geom.Point(Stage.width, Stage.height), 2, _local4);
gMission = new cMission(this, world, gCurrentLevel);
if (gIsSoundEnable) {
if (gCurrentLevel >= 0) {
loadSongOfTheLevel();
}
}
if (Define.ENABLE_XML_INTEGRATED) {
changeGeneralGameState(Define.STATE_GAME_PRESENTATION);
} else {
gWorldHasBeenLoaded = false;
gMissionHasBeenLoaded = false;
}
}
break;
case Define.STATE_GAME_PRESENTATION :
if ((((Define.DEBUG_GAMELOAD_SUBGAME == false) && (gWorldHasBeenLoaded == true)) && (gMissionHasBeenLoaded == true)) && ((gIsSoundEnable == false) || ((gIsSoundEnable == true) && (gGameSong.getBytesLoaded() == gGameSong.getBytesTotal())))) {
world._x = 0;
world._y = 0;
if (gIsSoundEnable == true) {
delete _root.pinturaLoadGame.onEnterFrame;
delete instClipMenuResultGame.onPress;
delete instClipMenuResultGame.onRelease;
removeMovieClip(_root.pinturaLoadGame);
}
if (Define.DEBUG_CAMERA_SCROLL) {
trace("gState=Define.STATE_GAME_PRESENTATION:" + gMission.getString());
var _local3 = 0;
while (_local3 < gMission._waypoints.length) {
trace((("_waypoints[" + _local3) + "]=") + gMission._waypoints[_local3].getString());
_local3++;
}
}
gMission._currentWaypoint = -1;
gMission.updateCurrentWaypoint();
gPosScroll = new flash.geom.Point(gMission._waypoints[gMission._currentWaypoint]._pos.x, gMission._waypoints[gMission._currentWaypoint]._pos.y);
gSpeedScroll = gMission._waypoints[gMission._currentWaypoint]._speedToNextWaypoint;
gMission._currentWaypoint = gMission._currentWaypoint + 1;
gWorld.changeCamera(gPosScroll.x, gPosScroll.y);
gWorld.buildBoardBitmapDataWindow();
instClipMenuResultGame._visible = false;
instClipMenuResultGame.gotoAndStop("parar");
changeGeneralGameState(Define.STATE_GAME_INTRO);
gSun = gMission._waypoints[0]._objects[0];
gMission.initShootMemory();
}
break;
case Define.STATE_GAME_INTRO :
gIterator++;
switch (gIterator) {
case 1 :
logicCameraControl();
gDirectionObjectsCamera = Define.getDirectionPlus(gWorld._myLastCamera, gWorld._myCamera);
gDifCameraX = Math.abs(gWorld._myCamera.x - gWorld._myLastCamera.x);
gDifCameraY = Math.abs(gWorld._myCamera.y - gWorld._myLastCamera.y);
if (gBonusLoadGameSucceded == true) {
gBonusLoadGameSucceded = false;
gSun._numberOfSupersAvailable = 1;
}
gSun.logic();
gMission.logic();
if (gActiveBlackHole) {
gBlackHole.logic();
}
switch (_root.nmDifficultySetted) {
case 0 :
gLimitSizeToWin = Define.ENERGY_LEVEL_TO_SUCCESS_MODE_EASY;
break;
case 1 :
gLimitSizeToWin = Define.ENERGY_LEVEL_TO_SUCCESS_MODE_NORMAL;
break;
case 2 :
gLimitSizeToWin = Define.ENERGY_LEVEL_TO_SUCCESS_MODE_HARD;
}
instClipPresentationLevel._visible = true;
instClipPresentationLevel.gotoAndPlay("Seccion1");
instClipPresentationLevel.instLetreroLevel.instTextDifficulty.text = Define.getDificulty(_root.nmDifficultySetted);
instClipPresentationLevel.instLetreroLevel.instSongTitle.text = Define.getSongName(gCurrentLevel);
instInterfaceGameData._visible = true;
instInterfaceGameData.instTextScore.text = 0;
instInterfaceGameData.instTextEnergy.text = gSun._sunSizePercentage;
instInterfaceGameData.instTextBonusAvailable.text = gSun._numberOfSupersAvailable;
if (gIsSoundEnable == true) {
instInterfaceGameData.instGamePause._visible = false;
} else {
instInterfaceGameData.instGamePause._visible = true;
}
_root.playGameSound(Define.SOUNDS_INICIO_NIVEL, 1);
break;
case 2 :
gIterator = 1;
break;
default :
if (gIsSoundEnable == true) {
gGameSong.start(0, 1);
}
if (gCurrentLevel != -1) {
changeGeneralGameState(Define.STATE_GAME_RUN);
} else {
changeGeneralGameState(Define.STATE_GAME_TUTORIAL1);
}
gScoreTotalDone = 0;
gStarsCollected = 0;
gBonusCollected = 0;
gTimeAcumulatedMain = 0;
buildFuntionalityMouse();
if (Define.DEBUG_CAMERA_SCROLL) {
trace(((("gState=Define.STATE_GAME_PRESENTATION: gPosScroll(" + gPosScroll.x) + ",") + gPosScroll.y) + ")");
}
gLastTimeRecorded = new Date().getTime();
}
break;
case Define.STATE_GAME_RUN :
logicRunGame();
if (gMission._currentWaypoint >= gMission._waypoints.length) {
switch (gSun._state) {
case cObject.STATE_PROTAGONIST_RUN :
if (gSun._sunSizePercentage > gLimitSizeToWin) {
gSun.changeState(cObject.STATE_PROTAGONIST_WIN);
} else {
gSun.changeState(cObject.STATE_PROTAGONIST_LOSE);
}
break;
case -1 :
instInterfaceGameData._visible = false;
if (gSun._sunSizePercentage > gLimitSizeToWin) {
instClipMenuResultGame._visible = true;
instClipMenuResultGame.gotoAndPlay("victoria");
changeGeneralGameState(Define.STATE_GAME_VICTORY);
} else if (gActiveBlackHole == false) {
instClipMenuResultGame._visible = true;
instClipMenuResultGame.gotoAndPlay("derrota");
changeGeneralGameState(Define.STATE_GAME_LOSE);
}
break;
}
if (gActiveBlackHole) {
switch (gBlackHole._state) {
case cObject.STATE_FINALENEMY_RUN :
if (gSun._sunSizePercentage <= gLimitSizeToWin) {
gBlackHole.changeState(cObject.STATE_FINALENEMY_WIN);
} else {
gBlackHole.changeState(cObject.STATE_FINALENEMY_LOSE);
}
break;
case -1 :
instInterfaceGameData._visible = false;
gTimeAcumulatedMain = gTimeAcumulatedMain + gTimeDif;
if (gSun._sunSizePercentage <= gLimitSizeToWin) {
if (gTimeAcumulatedMain > 3000) {
gTimeAcumulatedMain = 0;
instClipMenuResultGame._visible = true;
instClipMenuResultGame.gotoAndPlay("derrota");
changeGeneralGameState(Define.STATE_GAME_LOSE);
}
}
break;
}
}
}
break;
case Define.STATE_GAME_VICTORY :
if (gIterator < 10) {
gIterator++;
}
if (gIterator == 1) {
if (gIsSoundEnable == true) {
gGameSong.stop();
}
var _local5 = gIsSoundEnable;
gIsSoundEnable = false;
_root.playGameSound(Define.SOUNDS_VICTORIA, 1);
gIsSoundEnable = _local5;
}
break;
case Define.STATE_GAME_LOSE :
if (gIterator < 10) {
gIterator++;
}
if (gIterator == 1) {
if (gIsSoundEnable == true) {
gGameSong.stop();
}
var _local5 = gIsSoundEnable;
gIsSoundEnable = false;
_root.playGameSound(Define.SOUNDS_DERROTA, 1);
gIsSoundEnable = _local5;
}
break;
case Define.STATE_GAME_MENU :
break;
case Define.STATE_GAME_TUTORIAL1 :
if (gIterator < 10) {
gIterator++;
}
if (gIterator == 1) {
instClipTutorial._visible = true;
instClipTutorial.gotoAndPlay("tutorial1");
}
logicRunGame();
if (gMission._currentWaypoint > 1) {
gMission._currentWaypoint = 1;
}
if (Key.isDown(39) || (Key.isDown(68))) {
activeRight = true;
}
if (Key.isDown(38) || (Key.isDown(87))) {
activeUp = true;
}
if (Key.isDown(37) || (Key.isDown(65))) {
activeLeft = true;
}
if (Key.isDown(40) || (Key.isDown(83))) {
activeDown = true;
}
if (((activeRight && (activeUp)) && (activeLeft)) && (activeDown)) {
changeGeneralGameState(Define.STATE_GAME_TUTORIAL2);
}
break;
case Define.STATE_GAME_TUTORIAL2 :
if (gIterator < 10) {
gIterator++;
}
if (gIterator == 1) {
instClipTutorial.gotoAndPlay("tutorial2");
}
logicRunGame();
if (gMission._currentWaypoint > 1) {
gMission._currentWaypoint = 1;
}
if (gStarsCollected > 5) {
changeGeneralGameState(Define.STATE_GAME_TUTORIAL3);
}
break;
case Define.STATE_GAME_TUTORIAL3 :
if (gIterator < 10) {
gIterator++;
}
if (gIterator == 1) {
instClipTutorial.gotoAndPlay("tutorial3");
}
logicRunGame();
if (gMission._currentWaypoint > 2) {
gMission._currentWaypoint = 2;
}
if (gScoreTotalDone >= 120) {
changeGeneralGameState(Define.STATE_GAME_TUTORIAL4);
}
break;
case Define.STATE_GAME_TUTORIAL4 :
if (gIterator < 10) {
gIterator++;
}
if (gIterator == 1) {
instClipTutorial.gotoAndPlay("tutorial4");
}
logicRunGame();
if (gMission._currentWaypoint > 3) {
gMission._currentWaypoint = 3;
}
if (gSun._activeSunSuperRays > 0) {
changeGeneralGameState(Define.STATE_GAME_TUTORIAL5);
}
break;
case Define.STATE_GAME_TUTORIAL5 :
if (gIterator < 10) {
gIterator++;
}
if (gIterator == 1) {
instClipTutorial.gotoAndPlay("tutorial5");
}
logicRunGame();
if (gMission._currentWaypoint > 10) {
changeGeneralGameState(Define.STATE_GAME_TUTORIAL6);
}
break;
case Define.STATE_GAME_TUTORIAL6 :
gCurrentLevel = 0;
instClipTutorial.gotoAndStop("vacio");
instClipTutorial._visible = false;
gIsSoundEnable = true;
changeGeneralGameState(Define.STATE_GAME_LOADING);
gMission.freeResources();
}
};
var gWorld;
var gMission;
var gBlackHole;
var gActiveBlackHole;
var gSun;
var gSunPosScreen;
var gCurrentRay;
var gListRays;
var gIndexRayForming;
var gStateGame;
var gLastStateGame = Define.STATE_GAME_MENU;
var gCurrentLevel = 0;
var gIterator = 0;
var gLastTimeRecorded = -1;
var gTimeDif = -1;
var gPosScroll;
var gDirectionToWay;
var gSpeedScroll;
var gDirectionObjectsCamera;
var gDifCameraX;
var gDifCameraY;
var gWorldHasBeenLoaded;
var gMissionHasBeenLoaded;
var gGeneralStarCounter;
var gGeneralEnemyCounter;
var gGeneralEnemyCounterBlackHole;
var nmRecordStoreName = new String("SunStories2Ca");
var gEnableInformationArrows = 1;
var gTutorialHasBeenPlayed = 0;
var nmDifficultySetted = 1;
var gLimitSizeToWin = 50;
var nmTotalLevelDone = 0;
var gScoreTotalDone = 0;
var gStarsCollected = 0;
var gBonusCollected = 0;
var nmLevelToShow = 0;
var gTimeAcumulatedMain = 0;
var gListLevelScore;
var gListLevelStarsScore;
var gListLevelBonusScore;
instClipMenuResultGame._visible = false;
instClipPresentationLevel.gotoAndStop("vacio");
instClipPresentationLevel._visible = false;
instInterfaceGameData._visible = false;
instClipTutorial._visible = false;
var activeUp = false;
var activeDown = false;
var activeLeft = false;
var activeRight = false;
gListRays = new Array(Define.TOTAL_NUMBER_RAY);
var i = 0;
while (i < Define.TOTAL_NUMBER_RAY) {
gListRays[i] = new cRay(i);
i++;
}
loadGameData();
loadGameSound(Define.SOUNDS_MELODIA_MENU);
loadGameSound(Define.SOUNDS_SELECCION);
loadGameSound(Define.SOUNDS_INICIO_NIVEL);
loadGameSound(Define.SOUNDS_VICTORIA);
loadGameSound(Define.SOUNDS_DERROTA);
loadGameSound(Define.SOUNDS_FX_BONUS);
loadGameSound(Define.SOUNDS_FX_STAR_CAPTURED);
loadGameSound(Define.SOUNDS_FX_ENEMY_DESTROYED);
nmSoundEnabled = true;
buildInputForArrowsAndQuality();
var gQualitySetted = 2;
_root._quality = "HIGH";
stop();
Symbol 17 MovieClip [cargador] Frame 1 (349 B)
kabiertos = int(_root.getBytesLoaded() / 1024);
ktotal = int(_root.getBytesTotal() / 1024);
porcentaje = int((kabiertos * 100) / ktotal);
instLoadingBarProgress.instText.text = ("LOADING " + porcentaje) + "%";
instLoadingBarProgress.instMaskLoadingBarProgress._xscale = porcentaje;
if (kabiertos >= ktotal) {
_root.gotoAndStop("main");
}
Symbol 35 MovieClip Frame 40 (8 B)
stop();
Symbol 47 Button (29 B)
on (press) {
_root.play();
}
Symbol 48 Button (23 B)
on (press) {
play();
}
Instance of Symbol 18 MovieClip in Symbol 51 MovieClip Frame 1 (438 B)
onClipEvent (load) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("play_button");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 51 MovieClip Frame 130 (8 B)
stop();
Symbol 51 MovieClip Frame 154 (30 B)
_root.gotoAndPlay("sponsor");
Symbol 101 Button (65 B)
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 105 Button (65 B)
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 245 MovieClip Frame 141 (20 B)
gotoAndPlay ("bb");
Symbol 834 MovieClip [__Packages.Define] Frame 0 (13.76 KiB) ● ●
class Define
{
function Define () {
}
static function getDirection(posOrigin, posDestination) {
var _local4;
var _local3;
if ((posOrigin.x == posDestination.x) && (posOrigin.y == posDestination.y)) {
return(DIRECTION_NONE);
}
_local4 = posOrigin.x - posDestination.x;
_local3 = posOrigin.y - posDestination.y;
if (Math.abs(_local4) > Math.abs(_local3)) {
if (_local4 > 0) {
return(DIRECTION_LEFT);
}
return(DIRECTION_RIGHT);
}
if (_local3 > 0) {
return(DIRECTION_UP);
}
return(DIRECTION_DOWN);
}
static function getDirectionPlus(posOrigin, posDestination) {
var _local2 = posOrigin.x - posDestination.x;
var _local1 = posOrigin.y - posDestination.y;
if (_local2 == 0) {
if (_local1 > 0) {
return(DIRECTION_UP);
}
return(DIRECTION_DOWN);
}
if (_local1 == 0) {
if (_local2 > 0) {
return(DIRECTION_LEFT);
}
return(DIRECTION_RIGHT);
}
if (_local2 > 0) {
if (_local1 > 0) {
return(DIRECTION_UP_LEFT);
}
return(DIRECTION_DOWN_LEFT);
}
if (_local1 > 0) {
return(DIRECTION_UP_RIGHT);
}
return(DIRECTION_DOWN_RIGHT);
}
static function getDirectionOpposite(direccion) {
switch (direccion) {
case DIRECTION_UP :
return(DIRECTION_DOWN);
case DIRECTION_DOWN :
return(DIRECTION_UP);
case DIRECTION_RIGHT :
return(DIRECTION_LEFT);
case DIRECTION_LEFT :
return(DIRECTION_RIGHT);
case DIRECTION_UP_LEFT :
return(DIRECTION_DOWN_RIGHT);
case DIRECTION_UP_RIGHT :
return(DIRECTION_DOWN_LEFT);
case DIRECTION_DOWN_LEFT :
return(DIRECTION_UP_RIGHT);
case DIRECTION_DOWN_RIGHT :
return(DIRECTION_UP_LEFT);
}
return(DIRECTION_NONE);
}
static function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
static function incrementAngle(p_yaw, p_incr) {
return(p_yaw + p_incr);
}
static function getRadians(valueGrad) {
return((valueGrad * Math.PI) / 180);
}
static function getGrados(valueRad) {
return((valueRad * 180) / Math.PI);
}
static function movePointYaw(pos, yaw, stepLength) {
var _local1 = new flash.geom.Point(pos.x, pos.y);
_local1.x = _local1.x + (stepLength * Math.cos(yaw));
_local1.y = _local1.y + (stepLength * Math.sin(yaw));
return(_local1);
}
static function distancePoint(posA, posB) {
return(flash.geom.Point.distance(posA, posB));
}
static function moveDirection(posMove, directionMove, stepLength) {
var _local1 = new flash.geom.Point(posMove.x, posMove.y);
switch (directionMove) {
case DIRECTION_LEFT :
_local1.x = _local1.x - stepLength;
break;
case DIRECTION_RIGHT :
_local1.x = _local1.x + stepLength;
break;
case DIRECTION_UP :
_local1.y = _local1.y - stepLength;
break;
case DIRECTION_DOWN :
_local1.y = _local1.y + stepLength;
break;
case DIRECTION_UP_LEFT :
_local1.x = _local1.x - stepLength;
_local1.y = _local1.y - stepLength;
break;
case DIRECTION_UP_RIGHT :
_local1.x = _local1.x + stepLength;
_local1.y = _local1.y - stepLength;
break;
case DIRECTION_DOWN_LEFT :
_local1.x = _local1.x - stepLength;
_local1.y = _local1.y + stepLength;
break;
case DIRECTION_DOWN_RIGHT :
_local1.x = _local1.x + stepLength;
_local1.y = _local1.y + stepLength;
}
return(_local1);
}
static function moveDirectionPlus(posMove, directionMove, stepLength, stepXDif, stepYDif) {
var _local1 = new flash.geom.Point(posMove.x, posMove.y);
switch (directionMove) {
case DIRECTION_LEFT :
if (stepXDif > stepLength) {
_local1.x = _local1.x - stepLength;
} else {
_local1.x = _local1.x - stepXDif;
}
break;
case DIRECTION_RIGHT :
if (stepXDif > stepLength) {
_local1.x = _local1.x + stepLength;
} else {
_local1.x = _local1.x + stepXDif;
}
break;
case DIRECTION_UP :
if (stepYDif > stepLength) {
_local1.y = _local1.y - stepLength;
} else {
_local1.y = _local1.y - stepYDif;
}
break;
case DIRECTION_DOWN :
if (stepYDif > stepLength) {
_local1.y = _local1.y + stepLength;
} else {
_local1.y = _local1.y + stepYDif;
}
break;
case DIRECTION_UP_LEFT :
if (stepXDif > stepLength) {
_local1.x = _local1.x - stepLength;
} else {
_local1.x = _local1.x - stepXDif;
}
if (stepYDif > stepLength) {
_local1.y = _local1.y - stepLength;
} else {
_local1.y = _local1.y - stepYDif;
}
break;
case DIRECTION_UP_RIGHT :
if (stepXDif > stepLength) {
_local1.x = _local1.x + stepLength;
} else {
_local1.x = _local1.x + stepXDif;
}
if (stepYDif > stepLength) {
_local1.y = _local1.y - stepLength;
} else {
_local1.y = _local1.y - stepYDif;
}
break;
case DIRECTION_DOWN_LEFT :
if (stepXDif > stepLength) {
_local1.x = _local1.x - stepLength;
} else {
_local1.x = _local1.x - stepXDif;
}
if (stepYDif > stepLength) {
_local1.y = _local1.y + stepLength;
} else {
_local1.y = _local1.y + stepYDif;
}
break;
case DIRECTION_DOWN_RIGHT :
if (stepXDif > stepLength) {
_local1.x = _local1.x + stepLength;
} else {
_local1.x = _local1.x + stepXDif;
}
if (stepYDif > stepLength) {
_local1.y = _local1.y + stepLength;
} else {
_local1.y = _local1.y + stepYDif;
}
}
return(_local1);
}
static function getOrientationToPoint(p_posOrigin, p_posGoal) {
return(Math.atan2(p_posGoal.y - p_posOrigin.y, p_posGoal.x - p_posOrigin.x));
}
static function moveYaw(p_pos, p_yaw, p_stepLength) {
return(new flash.geom.Point(p_pos.x + (p_stepLength * Math.cos(p_yaw)), p_pos.y + (p_stepLength * Math.sin(p_yaw))));
}
static function isInsideBox(p_pos, p_x_origin, p_y_origin, p_x_end, p_y_end) {
return((((p_pos.x > p_x_origin) && (p_pos.y > p_y_origin)) && (p_pos.x < p_x_end)) && (p_pos.y < p_y_end));
}
static function askDirectionPoint(p_pos, p_yaw, p_objetive) {
var _local4 = new Array(p_pos.x, 0, p_pos.y);
var _local8 = new Array(p_pos.x + Math.cos(p_yaw), 0, p_pos.y + Math.sin(p_yaw));
var _local7 = new Array(p_pos.x, 1, p_pos.y);
var _local3 = new Array(0, 0, 0);
var _local2 = new Array(0, 0, 0);
var _local1 = new Array(0, 0, 0);
_local3[0] = _local8[0] - _local4[0];
_local3[1] = _local8[1] - _local4[1];
_local3[2] = _local8[2] - _local4[2];
_local2[0] = _local7[0] - _local4[0];
_local2[1] = _local7[1] - _local4[1];
_local2[2] = _local7[2] - _local4[2];
_local1[0] = (_local3[1] * _local2[2]) - (_local3[2] * _local2[1]);
_local1[1] = (_local3[2] * _local2[0]) - (_local3[0] * _local2[2]);
_local1[2] = (_local3[0] * _local2[1]) - (_local3[1] * _local2[0]);
var _local5 = Math.sqrt(((_local1[0] * _local1[0]) + (_local1[1] * _local1[1])) + (_local1[2] * _local1[2]));
if (_local5 == 0) {
_local1[0] = 0;
_local1[1] = 0;
_local1[2] = 0;
} else {
_local1[0] = _local1[0] / _local5;
_local1[1] = _local1[1] / _local5;
_local1[2] = _local1[2] / _local5;
}
var _local9 = -(((_local1[0] * _local4[0]) + (_local1[1] * _local4[1])) + (_local1[2] * _local4[2]));
return(((p_objetive.x * _local1[0]) + (p_objetive.y * _local1[2])) + _local9);
}
static function getDistancePlanePoint(p_pos, p_yaw, p_objetive) {
var _local4 = new Array(p_pos.x, 0, p_pos.y);
var _local8 = new Array(p_pos.x + Math.cos(p_yaw + (Math.PI/2)), 0, p_pos.y + Math.sin(p_yaw + (Math.PI/2)));
var _local7 = new Array(p_pos.x, 1, p_pos.y);
var _local3 = new Array(0, 0, 0);
var _local2 = new Array(0, 0, 0);
var _local1 = new Array(0, 0, 0);
_local3[0] = _local8[0] - _local4[0];
_local3[1] = _local8[1] - _local4[1];
_local3[2] = _local8[2] - _local4[2];
_local2[0] = _local7[0] - _local4[0];
_local2[1] = _local7[1] - _local4[1];
_local2[2] = _local7[2] - _local4[2];
_local1[0] = (_local3[1] * _local2[2]) - (_local3[2] * _local2[1]);
_local1[1] = (_local3[2] * _local2[0]) - (_local3[0] * _local2[2]);
_local1[2] = (_local3[0] * _local2[1]) - (_local3[1] * _local2[0]);
var _local5 = Math.sqrt(((_local1[0] * _local1[0]) + (_local1[1] * _local1[1])) + (_local1[2] * _local1[2]));
if (_local5 == 0) {
_local1[0] = 0;
_local1[1] = 0;
_local1[2] = 0;
} else {
_local1[0] = _local1[0] / _local5;
_local1[1] = _local1[1] / _local5;
_local1[2] = _local1[2] / _local5;
}
var _local9 = -(((_local1[0] * _local4[0]) + (_local1[1] * _local4[1])) + (_local1[2] * _local4[2]));
return(Math.abs(((p_objetive.x * _local1[0]) + (p_objetive.y * _local1[2])) + _local9));
}
static function getDay(p_day) {
switch (p_day) {
case 0 :
return("MONDAY");
case 1 :
return("TUESDAY");
case 2 :
return("WEDNESDAY");
case 3 :
return("THURSDAY");
case 4 :
return("FRIDAY");
case 5 :
return("SATURDAY");
}
return("SUNDAY");
}
static function getDificulty(p_difficulty) {
switch (p_difficulty) {
case 0 :
return("MODE EASY");
case 1 :
return("MODE NORMAL");
case 2 :
return("MODE HARD");
case 3 :
return("MODE CRAZY");
}
}
static function getSongName(p_songname) {
switch (p_songname) {
case 0 :
return("F1uk3-Fiesta by F1uk3");
case 1 :
return("Dreams (remix) by Dark-Jayson");
case 2 :
return("~Next to Me~ (Demo) by arcanedragon-2004");
case 3 :
return("It's My Turn To Be Pope! by Murraymints");
case 4 :
return("Working Out by chesderman");
case 5 :
return("Alexandra's Tune by AlxEllis");
case 6 :
return("Deeper Shores (Geniewiz RMX) by genie-wiz");
}
}
static var NAME_RECORDSET = "SunStories2DefC";
static var DEBUG_ENABLE_QUESTION = false;
static var ENABLE_SOUND_BY_URL = true;
static var ENABLE_XML_INTEGRATED = true;
static var TOTAL_NUMBER_OF_LEVELS = 7;
static var ENERGY_LEVEL_TO_SUCCESS_MODE_EASY = 20;
static var ENERGY_LEVEL_TO_SUCCESS_MODE_NORMAL = 40;
static var ENERGY_LEVEL_TO_SUCCESS_MODE_HARD = 60;
static var TOTAL_NUMBER_OF_ACTIVE_GAME_ELEMENTS = 60;
static var TOTAL_NUMBER_RAY = 10;
static var TOTAL_RANGE_WAYPOINTS_EXEC = 5;
static var TOTAL_RANGE_TEST_DESACTIVATION = 5;
static var TOTAL_NUMBER_OF_SHOOTS = 20;
static var ENERGY_STAR_FOR_SUN = 5;
static var TIME_TO_DECRESE_UNIT_ENERGY_SUN = 500;
static var UNITS_ENERGY_TO_DECREASE_SUN = 5;
static var UNITS_POTENCE_RAY = 14;
static var MAX_SPEED_OF_THE_SHOOT = 12;
static var BLACKHOLE_TOTAL_ENEMIES_THROW = 20;
static var DEBUG_GENERAL = false;
static var DEBUG_GAMELOAD_SUBGAME = false;
static var DEBUG_XML_LOAD = false;
static var DEBUG_MISSION_LOAD = false;
static var DEBUG_WAYPOINT_LOAD = false;
static var DEBUG_OBJECT = false;
static var DEBUG_CAMERA_SCROLL = false;
static var DEBUG_SUN_RAY = false;
static var DEBUG_PROTAGONIST = false;
static var DEBUG_FINAL_ENEMY = false;
static var DEBUG_ENEMY_TYPE1 = false;
static var DEBUG_ENEMY_TYPE2 = true;
static var DEBUG_ENEMY_TYPE3 = true;
static var DEBUG_ENEMY_TYPE4 = true;
static var DEBUG_ENEMY_TYPE5 = true;
static var DEBUG_ENEMY_TYPE6 = true;
static var DEBUG_ENEMY_TYPE7 = true;
static var DEBUG_ENEMY_TYPE8 = true;
static var DEBUG_ENEMY_TYPE9 = true;
static var DEBUG_ENEMY_TYPE10 = true;
static var DEBUG_ITEM_STAR_1 = false;
static var DEBUG_ITEM_STAR_2 = true;
static var DEBUG_ITEM_STAR_3 = true;
static var DEBUG_ITEM_OTHER1 = true;
static var DEBUG_ITEM_OTHER2 = true;
static var DEBUG_ITEM_OTHER3 = true;
static var STATE_GAME_MENU = 0;
static var STATE_GAME_QUESTION = 1;
static var STATE_GAME_LOADING = 2;
static var STATE_GAME_PRESENTATION = 3;
static var STATE_GAME_INTRO = 4;
static var STATE_GAME_RUN = 5;
static var STATE_GAME_VICTORY = 6;
static var STATE_GAME_LOSE = 7;
static var STATE_GAME_TUTORIAL1 = 8;
static var STATE_GAME_TUTORIAL2 = 9;
static var STATE_GAME_TUTORIAL3 = 10;
static var STATE_GAME_TUTORIAL4 = 11;
static var STATE_GAME_TUTORIAL5 = 12;
static var STATE_GAME_TUTORIAL6 = 14;
static var OBJ_PROTAGONIST = 0;
static var OBJ_FINAL_ENEMY = 1;
static var OBJ_ENEMY_TYPE1 = 2;
static var OBJ_ENEMY_TYPE2 = 3;
static var OBJ_ENEMY_TYPE3 = 4;
static var OBJ_ENEMY_TYPE4 = 5;
static var OBJ_ENEMY_TYPE5 = 6;
static var OBJ_ENEMY_TYPE6 = 7;
static var OBJ_ENEMY_TYPE7 = 8;
static var OBJ_ENEMY_TYPE8 = 9;
static var OBJ_ENEMY_TYPE9 = 10;
static var OBJ_ENEMY_TYPE10 = 11;
static var OBJ_ITEM_STAR_1 = 12;
static var OBJ_ITEM_STAR_2 = 13;
static var OBJ_ITEM_STAR_3 = 14;
static var OBJ_ITEM_OTHER1 = 15;
static var OBJ_ITEM_OTHER2 = 16;
static var OBJ_ITEM_OTHER3 = 17;
static var OBJ_ARROW_WAYPOINT = 18;
static var DEPTH_ITEM_STAR = 1000;
static var DEPTH_ENEMY = 2000;
static var DEPTH_PROTAGONIST = 29000;
static var DEPTH_ITEM_OTHER = 30000;
static var DEPTH_SHOOTS_ENEMIES = 40000;
static var DEPTH_SUN_RAY = 50000;
static var DEPTH_EARTH_CLIP = 60000;
static var DEPTH_FINAL_ENEMY = 70000;
static var SOUNDS_MELODIA_MENU = 0;
static var SOUNDS_SELECCION = 1;
static var SOUNDS_INICIO_NIVEL = 2;
static var SOUNDS_VICTORIA = 3;
static var SOUNDS_DERROTA = 4;
static var SOUNDS_FX_BONUS = 5;
static var SOUNDS_FX_STAR_CAPTURED = 6;
static var SOUNDS_FX_ENEMY_DESTROYED = 7;
static var DIRECTION_LEFT = 0;
static var DIRECTION_RIGHT = 1;
static var DIRECTION_UP = 2;
static var DIRECTION_DOWN = 3;
static var DIRECTION_UP_LEFT = 4;
static var DIRECTION_UP_RIGHT = 5;
static var DIRECTION_DOWN_LEFT = 6;
static var DIRECTION_DOWN_RIGHT = 7;
static var DIRECTION_NONE = -1;
}
Symbol 835 MovieClip [__Packages.cMission] Frame 0 (7.85 KiB) ● ●
class cMission
{
var _game, _world, _currentLevel, _currentWaypoint, _docxml, _waypoints, _activeObjects, _shoots, _iniRangeWaypoint, _endRangeWaypoint;
function cMission (game, world, currentLevel) {
_game = game;
_world = world;
_currentLevel = currentLevel;
_currentWaypoint = 0;
if (Define.ENABLE_XML_INTEGRATED) {
var _local4 = new String(cXml.XML_MISSIONS[_currentLevel + 1]);
_docxml = new XML(_local4);
_docxml.ignoreWhite = true;
activeGameElements_Memory();
var _local3 = 0;
while (_local3 < _docxml.firstChild.childNodes.length) {
switch (_local3) {
case 0 :
if (Define.DEBUG_MISSION_LOAD) {
trace((((("Propiedad(" + _local3) + ")=") + _docxml.firstChild.childNodes[_local3].attributes.name) + ";Value=") + _root.gMission._docxml.firstChild.childNodes[_local3].firstChild.nodeValue);
}
_waypoints = new Array(Number(_docxml.firstChild.childNodes[_local3].nodeValue));
break;
default :
_waypoints[_local3 - 1] = new cWaypoint(_game, _world, _docxml.firstChild.childNodes[_local3], _local3 - 1);
}
_local3++;
}
_root.gMissionHasBeenLoaded = true;
} else {
_docxml = new XML();
_docxml.ignoreWhite = true;
activeGameElements_Memory();
_docxml.onLoad = function () {
var _local2 = 0;
while (_local2 < _root.gMission._docxml.firstChild.childNodes.length) {
switch (_local2) {
case 0 :
if (Define.DEBUG_MISSION_LOAD) {
trace((((("Propiedad(" + _local2) + ")=") + _root.gMission._docxml.firstChild.childNodes[_local2].attributes.name) + ";Value=") + _root.gMission._docxml.firstChild.childNodes[_local2].firstChild.nodeValue);
}
_root.gMission._waypoints = new Array(Number(_root.gMission._docxml.firstChild.childNodes[_local2].nodeValue));
break;
default :
_root.gMission._waypoints[_local2 - 1] = new cWaypoint(_root.gMission._game, _root.gMission._world, _root.gMission._docxml.firstChild.childNodes[_local2], _local2 - 1);
}
_local2++;
}
_root.gMissionHasBeenLoaded = true;
_root.changeGeneralGameState(Define.STATE_GAME_PRESENTATION);
};
_docxml.load(("_levelssun/mission" + (_currentLevel + 1)) + ".xml");
}
}
function freeResources() {
var _local2 = 0;
while (_local2 < Define.TOTAL_NUMBER_OF_ACTIVE_GAME_ELEMENTS) {
_activeObjects[_local2].freeResources();
_local2++;
}
_activeObjects.splice(0, _activeObjects.length);
_local2 = 0;
while (_local2 < _waypoints.length) {
_waypoints[_local2].freeResources();
_local2++;
}
_waypoints.splice(0, _waypoints.length);
_local2 = 0;
while (_local2 < Define.TOTAL_NUMBER_OF_SHOOTS) {
_shoots[_local2].freeResources();
_local2++;
}
_shoots.splice(0, _shoots.length);
}
function initShootMemory() {
_shoots = new Array(Define.TOTAL_NUMBER_OF_SHOOTS);
var _local2 = 0;
while (_local2 < Define.TOTAL_NUMBER_OF_SHOOTS) {
_shoots[_local2] = new cObject(_game, _world, null, -1, _local2);
_local2++;
}
}
function activeGameElements_Memory() {
_activeObjects = new Array(Define.TOTAL_NUMBER_OF_ACTIVE_GAME_ELEMENTS);
var _local2 = 0;
while (_local2 < Define.TOTAL_NUMBER_OF_ACTIVE_GAME_ELEMENTS) {
_activeObjects[_local2] = new cObject(_game, _world, null, -1, -3);
_local2++;
}
}
function activeGameElements_InsertElement(p_waypoint, p_initBuffer) {
var _local3;
var _local2 = 0;
while (_local2 < Define.TOTAL_NUMBER_OF_ACTIVE_GAME_ELEMENTS) {
_local3 = _activeObjects[_local2];
if (_local3._active == false) {
_local3.initObjectFromBuffer(p_waypoint, p_initBuffer);
return(undefined);
}
_local2++;
}
}
function activeGameElements_InsertElement_Arrow(p_waypoint) {
var _local4;
var _local2 = 0;
while (_local2 < Define.TOTAL_NUMBER_OF_ACTIVE_GAME_ELEMENTS) {
_local4 = _activeObjects[_local2];
if (_local4._active == false) {
if (p_waypoint < (_waypoints.length - 1)) {
_local4.initObjectArrow(p_waypoint, _waypoints[p_waypoint]._pos, _waypoints[p_waypoint + 1]._pos);
return(undefined);
}
}
_local2++;
}
}
function enableAllArrows(p_value) {
var _local3;
var _local2 = 0;
while (_local2 < Define.TOTAL_NUMBER_OF_ACTIVE_GAME_ELEMENTS) {
_local3 = _activeObjects[_local2];
if ((_local3._active == true) && (_local3._type == Define.OBJ_ARROW_WAYPOINT)) {
_local3._clip._visible = p_value;
}
_local2++;
}
}
function insertShoot(p_pos, p_typeShoot, p_yaw, p_stepLength) {
var _local2 = 0;
while (_local2 < Define.TOTAL_NUMBER_OF_SHOOTS) {
if (_shoots[_local2]._active == false) {
_shoots[_local2].initShoot(p_pos, p_typeShoot, p_yaw, p_stepLength);
return(undefined);
}
_local2++;
}
}
function getNearestElement(p_pos, p_typeIni, p_typeEnd) {
var _local2;
var _local6;
var _local5 = 1000000 /* 0x0F4240 */;
var _local4 = 0;
var _local3 = 0;
while (_local3 < Define.TOTAL_NUMBER_OF_ACTIVE_GAME_ELEMENTS) {
_local2 = _activeObjects[_local3];
if (_local2._active == true) {
if ((_local2._type >= p_typeIni) && (_local2._type <= p_typeEnd)) {
_local4 = Define.distancePoint(p_pos, _local2._pos);
if (_local4 < _local5) {
_local5 = _local4;
_local6 = _local2;
}
}
}
_local3++;
}
return(_local6);
}
function testColisionEnemies(p_clip, p_damage) {
if (_root.gActiveBlackHole) {
var _local4 = 0;
while (_local4 < Define.BLACKHOLE_TOTAL_ENEMIES_THROW) {
if (_root.gBlackHole._enemiesBlackHole[_local4]._active == true) {
if (_root.gBlackHole._enemiesBlackHole[_local4].testClipColision(p_clip, p_damage)) {
return(true);
}
}
_local4++;
}
if (_root.gBlackHole.testClipColision(p_clip, p_damage / 1.5)) {
return(true);
}
}
var _local3;
var _local4 = 0;
while (_local4 < Define.TOTAL_NUMBER_OF_ACTIVE_GAME_ELEMENTS) {
_local3 = _activeObjects[_local4];
if (_local3._active == true) {
if ((_local3._type > Define.OBJ_FINAL_ENEMY) && (_local3._type <= Define.OBJ_ENEMY_TYPE10)) {
if (_local3.testClipColision(p_clip, p_damage)) {
return(true);
}
}
}
_local4++;
}
return(false);
}
function updateCurrentWaypoint() {
if (_currentWaypoint < _waypoints.length) {
_currentWaypoint = _currentWaypoint + 1;
}
if (_currentWaypoint == 0) {
activeGameElements_InsertElement_Arrow(1);
} else {
activeGameElements_InsertElement_Arrow(_currentWaypoint);
}
if (_currentWaypoint <= _waypoints.length) {
_iniRangeWaypoint = _currentWaypoint;
if (_iniRangeWaypoint < 1) {
_iniRangeWaypoint = 1;
}
_endRangeWaypoint = _iniRangeWaypoint + Define.TOTAL_RANGE_WAYPOINTS_EXEC;
if (_endRangeWaypoint > _waypoints.length) {
_endRangeWaypoint = _waypoints.length;
}
if (_hasBeenInitializated == false) {
var _local2 = _iniRangeWaypoint;
while (_local2 < _endRangeWaypoint) {
_waypoints[_local2].initObjectsWaypoint();
_local2++;
}
_hasBeenInitializated = true;
} else {
_waypoints[_endRangeWaypoint - 1].initObjectsWaypoint();
}
}
}
function logic() {
var _local3;
var _local2 = 0;
while (_local2 < Define.TOTAL_NUMBER_OF_ACTIVE_GAME_ELEMENTS) {
_local3 = _activeObjects[_local2];
if (_local3._active == true) {
_local3.logic();
}
_local2++;
}
_local2 = 0;
while (_local2 < Define.TOTAL_NUMBER_OF_SHOOTS) {
_shoots[_local2].logic();
_local2++;
}
}
function getString() {
var _local2;
_local2 = _local2 + (("_currentWaypoint=" + _currentWaypoint) + ";");
_local2 = _local2 + (("_waypoints.length=" + _waypoints.length) + ";");
return(_local2);
}
var _hasBeenInitializated = false;
}
Symbol 836 MovieClip [__Packages.cXml] Frame 0 (8 B)
!!!ERROR
Symbol 837 MovieClip [__Packages.cWaypoint] Frame 0 (8 B)
!!!ERROR
Symbol 838 MovieClip [__Packages.cObject] Frame 0 (8 B)
!!!ERROR
Symbol 839 MovieClip [__Packages.Worldmap] Frame 0 (8 B)
!!!ERROR
Symbol 840 MovieClip [__Packages.cRay] Frame 0 (8 B)
!!!ERROR
Symbol 257 Button (42 B)
on (press) {
_root.gotoAndPlay("logo");
}
Symbol 304 MovieClip [clipLogo] Frame 1 (83 B)
_root.mySoundTmpLogo.attachSound("logomelody");
_root.mySoundTmpLogo.start(0, 1);
Symbol 304 MovieClip [clipLogo] Frame 200 (36 B)
stop();
_root.gotoAndPlay("logo");
Symbol 308 Button (42 B)
on (press) {
_root.gotoAndPlay("main");
}
Symbol 369 MovieClip Frame 26 (8 B)
stop();
Symbol 461 MovieClip Frame 29 (8 B)
stop();
Symbol 463 MovieClip Frame 539 (36 B)
stop();
_root.gotoAndPlay("main");
Symbol 483 MovieClip Frame 1 (8 B)
stop();
Symbol 483 MovieClip Frame 10 (8 B)
stop();
Symbol 483 MovieClip Frame 20 (8 B)
stop();
Symbol 483 MovieClip Frame 30 (8 B)
stop();
Symbol 484 MovieClip Frame 1 (44 B)
this.instRotableCircle.gotoAndStop("rojo");
Instance of Symbol 483 MovieClip "instRotableCircle" in Symbol 484 MovieClip Frame 1 (21 B)
/* no clip actions */
Symbol 484 MovieClip Frame 10 (45 B)
this.instRotableCircle.gotoAndStop("verde");
Symbol 484 MovieClip Frame 20 (44 B)
this.instRotableCircle.gotoAndStop("azul");
Symbol 484 MovieClip Frame 30 (46 B)
this.instRotableCircle.gotoAndStop("blanco");
Symbol 493 MovieClip Frame 1 (8 B)
stop();
Symbol 493 MovieClip Frame 2 (8 B)
stop();
Symbol 493 MovieClip Frame 3 (8 B)
stop();
Symbol 493 MovieClip Frame 4 (8 B)
stop();
Symbol 493 MovieClip Frame 5 (8 B)
stop();
Symbol 496 MovieClip [clipFlecha] Frame 1 (8 B)
stop();
Symbol 496 MovieClip [clipFlecha] Frame 2 (8 B)
stop();
Symbol 497 MovieClip Frame 1 (8 B)
stop();
Symbol 497 MovieClip Frame 10 (1.07 KiB) ●
instSkip0.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
_root.changeGeneralGameState(Define.STATE_GAME_TUTORIAL6);
gotoAndPlay ("vacio");
};
instLabelInformationTutorial0.gotoAndStop("azul");
instSkip0.gotoAndStop("azul");
instLabelInformationTutorial0.instSmallText.text = "You MOVE the SUN with the ARROW KEYS or (A/S/D/W)\n C'MON TEST IT!";
instSkip0.instLongTextButton.text = "SKIP TUTORIAL";
instLabelInformationTutorial0._alpha = 0;
instSkip0._alpha = 0;
if (_root.gTutorialHasBeenPlayed == 0) {
instSkip0._visible = false;
}
totalNumberFramesAnimationMainMenu = 20;
instLabelInformationTutorial0.onEnterFrame = function () {
this._y = this._y + (151 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (60 / totalNumberFramesAnimationMainMenu);
};
instSkip0.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (60 / totalNumberFramesAnimationMainMenu);
};
instBackgroundTutorial._alpha = 20;
Symbol 497 MovieClip Frame 31 (857 B)
delete instLabelInformationTutorial0.onEnterFrame;
delete instSkip0.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instSkip0.onRollOver = function () {
activeChangeColor = 2;
this.shiftInX = 0;
};
instSkip0.onRollOut = function () {
activeChangeColor = -1;
};
instSkip0.onEnterFrame = function () {
if (activeChangeColor == 2) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 497 MovieClip Frame 35 (1.04 KiB) ●
instLabelInformationTutorial1.gotoAndStop("azul");
instLabelInformationTutorial1.instSmallText.text = "You must COLLECT STARS to KEEP YOUR ENERGY\n C'MON COLLECT SOME STARS!";
instLabelInformationTutorial1._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instLabelInformationTutorial1.onEnterFrame = function () {
this._y = this._y + (151 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (60 / totalNumberFramesAnimationMainMenu);
};
instSkip1.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
_root.changeGeneralGameState(Define.STATE_GAME_TUTORIAL6);
gotoAndPlay ("vacio");
};
instSkip1.gotoAndStop("azul");
instSkip1.instLongTextButton.text = "SKIP TUTORIAL";
instSkip1._alpha = 0;
if (_root.gTutorialHasBeenPlayed == 0) {
instSkip1._visible = false;
}
instSkip1.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (60 / totalNumberFramesAnimationMainMenu);
};
Symbol 497 MovieClip Frame 56 (857 B)
delete instLabelInformationTutorial1.onEnterFrame;
delete instSkip1.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instSkip1.onRollOver = function () {
activeChangeColor = 2;
this.shiftInX = 0;
};
instSkip1.onRollOut = function () {
activeChangeColor = -1;
};
instSkip1.onEnterFrame = function () {
if (activeChangeColor == 2) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 497 MovieClip Frame 60 (1.04 KiB) ●
instLabelInformationTutorial2.gotoAndStop("azul");
instLabelInformationTutorial2.instSmallText.text = "DRAW RAYS with the MOUSE to DESTROY the enemies\n C'MON DESTROY SOME METEOS!";
instLabelInformationTutorial2._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instLabelInformationTutorial2.onEnterFrame = function () {
this._y = this._y + (151 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (60 / totalNumberFramesAnimationMainMenu);
};
instSkip2.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
_root.changeGeneralGameState(Define.STATE_GAME_TUTORIAL6);
gotoAndPlay ("vacio");
};
instSkip2.gotoAndStop("azul");
instSkip2.instLongTextButton.text = "SKIP TUTORIAL";
instSkip2._alpha = 0;
if (_root.gTutorialHasBeenPlayed == 0) {
instSkip2._visible = false;
}
instSkip2.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (60 / totalNumberFramesAnimationMainMenu);
};
Symbol 497 MovieClip Frame 80 (857 B)
delete instLabelInformationTutorial2.onEnterFrame;
delete instSkip2.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instSkip2.onRollOver = function () {
activeChangeColor = 2;
this.shiftInX = 0;
};
instSkip2.onRollOut = function () {
activeChangeColor = -1;
};
instSkip2.onEnterFrame = function () {
if (activeChangeColor == 2) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 497 MovieClip Frame 85 (1.06 KiB) ●
instLabelInformationTutorial3.gotoAndStop("azul");
instLabelInformationTutorial3.instSmallText.text = "Collect 3 SPECIAL STARS and get a SUPER ATTACK that you can use PRESSING SPACE BAR\n C'MON TEST IT!";
instLabelInformationTutorial3._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instLabelInformationTutorial3.onEnterFrame = function () {
this._y = this._y + (151 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (60 / totalNumberFramesAnimationMainMenu);
};
instSkip3.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
_root.changeGeneralGameState(Define.STATE_GAME_TUTORIAL6);
gotoAndPlay ("vacio");
};
instSkip3.gotoAndStop("azul");
instSkip3.instLongTextButton.text = "SKIP TUTORIAL";
instSkip3._alpha = 0;
if (_root.gTutorialHasBeenPlayed == 0) {
instSkip3._visible = false;
}
instSkip3.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (60 / totalNumberFramesAnimationMainMenu);
};
Symbol 497 MovieClip Frame 105 (857 B)
delete instLabelInformationTutorial3.onEnterFrame;
delete instSkip3.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instSkip3.onRollOver = function () {
activeChangeColor = 2;
this.shiftInX = 0;
};
instSkip3.onRollOut = function () {
activeChangeColor = -1;
};
instSkip3.onEnterFrame = function () {
if (activeChangeColor == 2) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 497 MovieClip Frame 110 (1.01 KiB) ●
instButtonPlay.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
_root.changeGeneralGameState(Define.STATE_GAME_TUTORIAL6);
gotoAndPlay ("vacio");
};
instLabelInformationTutorial4.gotoAndStop("azul");
instButtonPlay.gotoAndStop("azul");
instBackgroundTutorial.gotoAndStop("azul");
instLabelInformationTutorial4.instSmallText.text = "KEEP ENOUGH ENERGY and you will be able to LIGTH YOUR WORLD!";
instButtonPlay.instTextButton.text = "PLAY";
instLabelInformationTutorial4._alpha = 0;
instButtonPlay._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instLabelInformationTutorial4.onEnterFrame = function () {
this._y = this._y + (151 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (60 / totalNumberFramesAnimationMainMenu);
};
instButtonPlay.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (60 / totalNumberFramesAnimationMainMenu);
};
Symbol 497 MovieClip Frame 131 (877 B)
delete instLabelInformationTutorial4.onEnterFrame;
delete instButtonPlay.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instButtonPlay.onRollOver = function () {
activeChangeColor = 1;
this.shiftInX = 0;
};
instButtonPlay.onRollOut = function () {
activeChangeColor = -1;
};
instButtonPlay.onEnterFrame = function () {
if (activeChangeColor == 1) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 512 MovieClip [starClip] Frame 1 (8 B)
stop();
Symbol 512 MovieClip [starClip] Frame 2 (8 B)
stop();
Symbol 512 MovieClip [starClip] Frame 3 (8 B)
stop();
Symbol 512 MovieClip [starClip] Frame 4 (8 B)
stop();
Symbol 523 MovieClip [sunClip] Frame 12 (30 B)
gotoAndPlay ("presentation");
Symbol 523 MovieClip [sunClip] Frame 25 (23 B)
gotoAndPlay ("quiet");
Symbol 523 MovieClip [sunClip] Frame 37 (24 B)
gotoAndPlay ("follow");
Symbol 523 MovieClip [sunClip] Frame 49 (25 B)
gotoAndPlay ("victory");
Symbol 523 MovieClip [sunClip] Frame 70 (23 B)
gotoAndPlay ("quiet");
Symbol 539 MovieClip [clipStatsInformation] Frame 1 (8 B)
stop();
Symbol 539 MovieClip [clipStatsInformation] Frame 3 (8 B)
stop();
Symbol 575 MovieClip Frame 51 (8 B)
stop();
Symbol 576 MovieClip Frame 40 (8 B)
stop();
Symbol 586 MovieClip [blackHoleClip] Frame 12 (30 B)
gotoAndPlay ("presentation");
Symbol 586 MovieClip [blackHoleClip] Frame 25 (23 B)
gotoAndPlay ("quiet");
Symbol 586 MovieClip [blackHoleClip] Frame 37 (24 B)
gotoAndPlay ("follow");
Symbol 586 MovieClip [blackHoleClip] Frame 49 (25 B)
gotoAndPlay ("victory");
Symbol 586 MovieClip [blackHoleClip] Frame 58 (30 B)
gotoAndPlay ("presentation");
Symbol 613 MovieClip Frame 71 (8 B)
stop();
Symbol 660 MovieClip Frame 20 (8 B)
stop();
Symbol 690 MovieClip Frame 44 (8 B)
stop();
Symbol 696 MovieClip Frame 100 (8 B)
stop();
Symbol 700 Button (281 B)
on (press) {
_root.instClipMenuResultGame._alpha = 100;
_root.instClipMenuResultGame._visible = false;
_root.gMission.freeResources();
_root.changeGeneralGameState(Define.STATE_GAME_MENU);
_root.instClipMenuGame._visible = true;
_root.instClipMenuGame.gotoAndPlay("about");
}
Symbol 701 MovieClip Frame 554 (8 B)
stop();
Symbol 703 MovieClip Frame 1 (2.01 KiB) ●
activeChangeColor = -1;
factorEscalaContraccion = 4;
instYesButton.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
_root.gIsSoundEnable = true;
_root.loadSongOfTheLevel();
_root.changeGeneralGameState(Define.STATE_GAME_LOADING);
};
instNoButton.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
_root.gIsSoundEnable = false;
_root.changeGeneralGameState(Define.STATE_GAME_LOADING);
};
instYesButton.gotoAndStop("azul");
instNoButton.gotoAndStop("azul");
instYesButton.instTextButton.text = "YES";
instNoButton.instTextButton.text = "NO";
instYesButton.onRollOver = function () {
activeChangeColor = 0;
this.shiftInX = 0;
};
instYesButton.onRollOut = function () {
activeChangeColor = -1;
};
instNoButton.onRollOver = function () {
activeChangeColor = 1;
this.shiftInX = 0;
};
instNoButton.onRollOut = function () {
activeChangeColor = -1;
};
instYesButton.onEnterFrame = function () {
if (activeChangeColor == 0) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instNoButton.onEnterFrame = function () {
if (activeChangeColor == 1) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 703 MovieClip Frame 20 (16.08 KiB) ● ● ●
instBonusReached._visible = false;
instSunLoading._visible = false;
instStarLoading1._visible = false;
instStarLoading2._visible = false;
instStarLoading3._visible = false;
instStarLoading4._visible = false;
instStarLoading5._visible = false;
instStarLoading6._visible = false;
instStarLoading7._visible = false;
instStarLoading8._visible = false;
instStarLoading9._visible = false;
if (_root.gIsSoundEnable == false) {
instClipLoadingInfo.instBigText.text = "LOADING...";
instClipLoadingInfo.gotoAndStop("azul");
} else {
instSunLoading._visible = true;
instSunLoading.numberOfStarsLoad = 0;
switch (_root.gCurrentLevel) {
case 0 :
instStarLoading1._visible = true;
instStarLoading1._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading1._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading2._visible = true;
instStarLoading2._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading2._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading3._visible = true;
instStarLoading3._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading3._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instSunLoading.numberOfStarsLoad = 3;
break;
case 1 :
instStarLoading1._visible = true;
instStarLoading1._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading1._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading2._visible = true;
instStarLoading2._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading2._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading3._visible = true;
instStarLoading3._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading3._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading4._visible = true;
instStarLoading4._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading4._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instSunLoading.numberOfStarsLoad = 4;
break;
case 2 :
instStarLoading1._visible = true;
instStarLoading1._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading1._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading2._visible = true;
instStarLoading2._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading2._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading3._visible = true;
instStarLoading3._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading3._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading4._visible = true;
instStarLoading4._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading4._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading5._visible = true;
instStarLoading5._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading5._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instSunLoading.numberOfStarsLoad = 5;
break;
case 3 :
instStarLoading1._visible = true;
instStarLoading1._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading1._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading2._visible = true;
instStarLoading2._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading2._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading3._visible = true;
instStarLoading3._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading3._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading4._visible = true;
instStarLoading4._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading4._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading5._visible = true;
instStarLoading5._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading5._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading6._visible = true;
instStarLoading6._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading6._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instSunLoading.numberOfStarsLoad = 6;
break;
case 4 :
instStarLoading1._visible = true;
instStarLoading1._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading1._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading2._visible = true;
instStarLoading2._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading2._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading3._visible = true;
instStarLoading3._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading3._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading4._visible = true;
instStarLoading4._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading4._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading5._visible = true;
instStarLoading5._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading5._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading6._visible = true;
instStarLoading6._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading6._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading7._visible = true;
instStarLoading7._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading7._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instSunLoading.numberOfStarsLoad = 7;
break;
case 5 :
instStarLoading1._visible = true;
instStarLoading1._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading1._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading2._visible = true;
instStarLoading2._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading2._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading3._visible = true;
instStarLoading3._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading3._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading4._visible = true;
instStarLoading4._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading4._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading5._visible = true;
instStarLoading5._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading5._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading6._visible = true;
instStarLoading6._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading6._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading7._visible = true;
instStarLoading7._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading7._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading8._visible = true;
instStarLoading8._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading8._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instSunLoading.numberOfStarsLoad = 8;
break;
case 6 :
instStarLoading1._visible = true;
instStarLoading1._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading1._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading2._visible = true;
instStarLoading2._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading2._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading3._visible = true;
instStarLoading3._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading3._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading4._visible = true;
instStarLoading4._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading4._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading5._visible = true;
instStarLoading5._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading5._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading6._visible = true;
instStarLoading6._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading6._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading7._visible = true;
instStarLoading7._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading7._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading8._visible = true;
instStarLoading8._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading8._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instStarLoading9._visible = true;
instStarLoading9._x = Define.randRange(instStarLoading1._width >> 1, Stage.width);
instStarLoading9._y = Define.randRange(instStarLoading1._height >> 1, Stage.height);
instSunLoading.numberOfStarsLoad = 9;
}
_root.createEmptyMovieClip("pinturaLoadGame", this.getNextHighestDepth());
_root.pinturaLoadGame.estado = 0;
_root.pinturaLoadGame.onEnterFrame = function () {
switch (this.estado) {
case 1 :
with (this) {
lineStyle(15, 16777215, 100);
moveTo(_root._xmouse, _root._ymouse);
}
this.estado = 2;
return;
case 2 :
with (this) {
lineStyle(15, 16777215, 100);
lineTo(_root._xmouse, _root._ymouse);
}
}
};
this.onPress = function () {
_root.pinturaLoadGame.estado = 1;
};
this.onRelease = function () {
_root.pinturaLoadGame.estado = 0;
};
instClipLoadingInfo.onEnterFrame = function () {
var _local3 = Math.floor((_root.gGameSong.getBytesLoaded() * 100) / _root.gGameSong.getBytesTotal());
if (isNaN(_local3)) {
_local3 = 0;
}
this.instBigText.text = ("LOAD " + _local3) + "%";
};
instClipLoadingInfo.gotoAndStop("azul");
instSunLoading.numberOfStarsConsumed = instSunLoading.numberOfStarsLoad;
instSunLoading.incrementSize = 0;
instSunLoading.yaw = Define.getRadians(0);
instSunLoading._xscale = 20;
instSunLoading._yscale = 20;
instSunLoading.onEnterFrame = function () {
var posTmp = Define.moveYaw(new flash.geom.Point(this._x, this._y), this.yaw, 5);
if (this.numberOfStarsConsumed == 0) {
_root.gBonusLoadGameSucceded = true;
this.numberOfStarsConsumed = -1;
instBonusReached._visible = true;
_root.playGameSound_Efective(Define.SOUNDS_FX_BONUS, 1);
instBonusReached.gotoAndPlay("azul");
instBonusReached.instBigText.text = "BONUS";
with (_root.pinturaLoadGame) {
clear();
}
}
if (_root.pinturaLoadGame.hitTest(posTmp.x, posTmp.y, true)) {
var incrLeftYaw = 0;
do {
incrLeftYaw = incrLeftYaw - Define.getRadians(1);
var posTmp = Define.moveYaw(new flash.geom.Point(this._x, this._y), this.yaw + incrLeftYaw, 5);
if (incrLeftYaw < -6.28318530717959) {
break;
}
} while (_root.pinturaLoadGame.hitTest(posTmp.x, posTmp.y, true));
var incrRightYaw = 0;
do {
incrRightYaw = incrRightYaw + Define.getRadians(1);
var posTmp = Define.moveYaw(new flash.geom.Point(this._x, this._y), this.yaw + incrRightYaw, 5);
if (incrRightYaw > (Math.PI*2)) {
break;
}
} while (_root.pinturaLoadGame.hitTest(posTmp.x, posTmp.y, true));
if ((incrRightYaw <= (Math.PI*2)) && (incrLeftYaw >= -6.28318530717959)) {
if (Math.abs(incrRightYaw) > Math.abs(incrLeftYaw)) {
this.yaw = this.yaw + incrLeftYaw;
} else {
this.yaw = this.yaw + incrRightYaw;
}
}
}
this._x = posTmp.x;
this._y = posTmp.y;
if (this.incrementSize > 0) {
this.incrementSize--;
this._xscale++;
this._yscale++;
}
if (this._x > Stage.width) {
this._x = 0;
}
if (this._x < 0) {
this._x = Stage.width;
}
if (this._y > Stage.height) {
this._y = 0;
}
if (this._y < 0) {
this._y = Stage.height;
}
if (instStarLoading1._visible == true) {
if (instStarLoading1.hitTest(this._x, this._y, true)) {
instStarLoading1._visible = false;
this.incrementSize = 80 / this.numberOfStarsLoad;
this.numberOfStarsConsumed--;
_root.playGameSound_Efective(Define.SOUNDS_FX_STAR_CAPTURED, 1);
}
}
if (instStarLoading2._visible == true) {
if (instStarLoading2.hitTest(this._x, this._y, true)) {
instStarLoading2._visible = false;
this.incrementSize = 80 / this.numberOfStarsLoad;
this.numberOfStarsConsumed--;
_root.playGameSound_Efective(Define.SOUNDS_FX_STAR_CAPTURED, 1);
}
}
if (instStarLoading3._visible == true) {
if (instStarLoading3.hitTest(this._x, this._y, true)) {
instStarLoading3._visible = false;
this.incrementSize = 80 / this.numberOfStarsLoad;
this.numberOfStarsConsumed--;
_root.playGameSound_Efective(Define.SOUNDS_FX_STAR_CAPTURED, 1);
}
}
if (instStarLoading4._visible == true) {
if (instStarLoading4.hitTest(this._x, this._y, true)) {
instStarLoading4._visible = false;
this.incrementSize = 80 / this.numberOfStarsLoad;
this.numberOfStarsConsumed--;
_root.playGameSound_Efective(Define.SOUNDS_FX_STAR_CAPTURED, 1);
}
}
if (instStarLoading5._visible == true) {
if (instStarLoading5.hitTest(this._x, this._y, true)) {
instStarLoading5._visible = false;
this.incrementSize = 80 / this.numberOfStarsLoad;
this.numberOfStarsConsumed--;
_root.playGameSound_Efective(Define.SOUNDS_FX_STAR_CAPTURED, 1);
}
}
if (instStarLoading6._visible == true) {
if (instStarLoading6.hitTest(this._x, this._y, true)) {
instStarLoading6._visible = false;
this.incrementSize = 80 / this.numberOfStarsLoad;
this.numberOfStarsConsumed--;
_root.playGameSound_Efective(Define.SOUNDS_FX_STAR_CAPTURED, 1);
}
}
if (instStarLoading7._visible == true) {
if (instStarLoading7.hitTest(this._x, this._y, true)) {
instStarLoading7._visible = false;
this.incrementSize = 80 / this.numberOfStarsLoad;
this.numberOfStarsConsumed--;
_root.playGameSound_Efective(Define.SOUNDS_FX_STAR_CAPTURED, 1);
}
}
if (instStarLoading8._visible == true) {
if (instStarLoading8.hitTest(this._x, this._y, true)) {
instStarLoading8._visible = false;
this.incrementSize = 80 / this.numberOfStarsLoad;
this.numberOfStarsConsumed--;
_root.playGameSound_Efective(Define.SOUNDS_FX_STAR_CAPTURED, 1);
}
}
if (instStarLoading9._visible == true) {
if (instStarLoading9.hitTest(this._x, this._y, true)) {
instStarLoading9._visible = false;
this.incrementSize = 80 / this.numberOfStarsLoad;
this.numberOfStarsConsumed--;
_root.playGameSound_Efective(Define.SOUNDS_FX_STAR_CAPTURED, 1);
}
}
};
}
stop();
Symbol 703 MovieClip Frame 40 (2.17 KiB) ●
instExit1.onRelease = function () {
_root.playGameSound_Efective(Define.SOUNDS_SELECCION, 1);
_root.instClipMenuResultGame._alpha = 100;
_root.instClipMenuResultGame._visible = false;
_root.gMission.freeResources();
_root.changeGeneralGameState(Define.STATE_GAME_MENU);
_root.instClipMenuGame._visible = true;
_root.instClipMenuGame.gotoAndPlay("mainMenu");
};
instNext1.onRelease = function () {
_root.playGameSound_Efective(Define.SOUNDS_SELECCION, 1);
if (_root.gCurrentLevel < (Define.TOTAL_NUMBER_OF_LEVELS - 1)) {
_root.gMission.freeResources();
_root.gCurrentLevel++;
_root.changeGeneralGameState(Define.STATE_GAME_LOADING);
} else {
gotoAndPlay ("finJuego");
}
};
instSunVictory.gotoAndPlay("victory");
instLabelVictoria.gotoAndStop("azul");
instExit1.gotoAndStop("azul");
instNext1.gotoAndStop("azul");
instClipStatsInformation.instTextDay.text = Define.getDay(_root.gCurrentLevel);
instClipStatsInformation.instSongTitle.text = Define.getSongName(_root.gCurrentLevel);
instClipStatsInformation.instTextTime.text = "" + _root.gScoreTotalDone;
instClipStatsInformation.instTextStars.text = "" + _root.gStarsCollected;
instClipStatsInformation.instTextBonus.text = "" + _root.gBonusCollected;
instLabelVictoria.instBigText.text = "Congratulations";
instExit1.instTextButton.text = "Exit";
instNext1.instTextButton.text = "Next";
instLabelVictoria._alpha = 0;
instExit1._alpha = 0;
instNext1._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instLabelVictoria.onEnterFrame = function () {
this._y = this._y + (120 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instExit1.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instNext1.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
_root.saveGameDataLevel();
_root.saveGameData();
Symbol 703 MovieClip Frame 60 (1.59 KiB) ●
delete instLabelVictoria.onEnterFrame;
delete instExit1.onEnterFrame;
delete instNext1.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instSunVictory.gotoAndPlay("victory");
instExit1.onRollOver = function () {
activeChangeColor = 0;
this.shiftInX = 0;
};
instExit1.onRollOut = function () {
activeChangeColor = -1;
};
instNext1.onRollOver = function () {
activeChangeColor = 1;
this.shiftInX = 0;
};
instNext1.onRollOut = function () {
activeChangeColor = -1;
};
instExit1.onEnterFrame = function () {
if (activeChangeColor == 0) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instNext1.onEnterFrame = function () {
if (activeChangeColor == 1) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 703 MovieClip Frame 62 (1.6 KiB) ●
instExit2.onRelease = function () {
_root.playGameSound_Efective(Define.SOUNDS_SELECCION, 1);
_root.instClipMenuResultGame._alpha = 100;
_root.instClipMenuResultGame._visible = false;
_root.gMission.freeResources();
_root.changeGeneralGameState(Define.STATE_GAME_MENU);
_root.instClipMenuGame._visible = true;
_root.instClipMenuGame.gotoAndPlay("mainMenu");
};
instRetry2.onRelease = function () {
_root.playGameSound_Efective(Define.SOUNDS_SELECCION, 1);
_root.gMission.freeResources();
_root.changeGeneralGameState(Define.STATE_GAME_LOADING);
};
instBlackHoleVictory.gotoAndPlay("victory");
instLabelDerrota1.gotoAndStop("rojo");
instExit2.gotoAndStop("rojo");
instRetry2.gotoAndStop("rojo");
instLabelDerrota1.instBigText.text = "Sorry";
instExit2.instTextButton.text = "Exit";
instRetry2.instTextButton.text = "Retry";
instLabelDerrota1._alpha = 0;
instExit2._alpha = 0;
instRetry2._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instLabelDerrota1.onEnterFrame = function () {
this._y = this._y + (120 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instExit2.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instRetry2.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
Symbol 703 MovieClip Frame 82 (1.6 KiB) ●
delete instLabelDerrota1.onEnterFrame;
delete instExit2.onEnterFrame;
delete instRetry2.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instBlackHoleVictory.gotoAndPlay("victory");
instExit2.onRollOver = function () {
activeChangeColor = 0;
this.shiftInX = 0;
};
instExit2.onRollOut = function () {
activeChangeColor = -1;
};
instRetry2.onRollOver = function () {
activeChangeColor = 1;
this.shiftInX = 0;
};
instRetry2.onRollOut = function () {
activeChangeColor = -1;
};
instExit2.onEnterFrame = function () {
if (activeChangeColor == 0) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instRetry2.onEnterFrame = function () {
if (activeChangeColor == 1) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 703 MovieClip Frame 84 (8 B)
stop();
Symbol 703 MovieClip Frame 104 (4.77 KiB) ●
delete instLabelEndGame.onEnterFrame;
delete instExitToCredits.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instSun.gotoAndPlay("quiet");
stateSun = 0;
instBlackHole.gotoAndPlay("quiet");
stateBlackHole = 0;
instSun.onRollOver = function () {
if (stateSun == 0) {
stateSun = 1;
this.gotoAndPlay("victory");
}
};
instSun.onRollOut = function () {
if (stateSun == 1) {
stateSun = 0;
this.gotoAndPlay("quiet");
}
};
instBlackHole.onRollOver = function () {
if (stateBlackHole == 0) {
stateBlackHole = 1;
this.gotoAndPlay("victory");
}
};
instBlackHole.onRollOut = function () {
if (stateBlackHole == 1) {
stateBlackHole = 0;
this.gotoAndPlay("quiet");
}
};
waypoints = new Array([200, 160], [200, 440], [640, 440], [640, 160]);
stepLength = 5;
instLetter1.gotoAndStop(Define.randRange(1, 25));
instLetter1.iterator = 0;
instLetter1.state = 0;
instLetter1.currentWaypoint = 0;
instLetter1._y = waypoints[instLetter1.currentWaypoint][1];
instLetter2.gotoAndStop(Define.randRange(1, 25));
instLetter2.iterator = 0;
instLetter2.state = 0;
instLetter2.currentWaypoint = 0;
instLetter2._y = waypoints[instLetter2.currentWaypoint][1];
instLetter3.gotoAndStop(Define.randRange(1, 25));
instLetter3.iterator = 0;
instLetter3.state = 0;
instLetter3.currentWaypoint = 1;
instLetter3._x = waypoints[instLetter3.currentWaypoint][0];
instLetter4.gotoAndStop(Define.randRange(1, 25));
instLetter4.iterator = 0;
instLetter4.state = 0;
instLetter4.currentWaypoint = 1;
instLetter4._x = waypoints[instLetter4.currentWaypoint][0];
instLetter5.gotoAndStop(Define.randRange(1, 25));
instLetter5.iterator = 0;
instLetter5.state = 0;
instLetter5.currentWaypoint = 2;
instLetter5._y = waypoints[instLetter5.currentWaypoint][1];
instLetter6.gotoAndStop(Define.randRange(1, 25));
instLetter6.iterator = 0;
instLetter6.state = 0;
instLetter6.currentWaypoint = 2;
instLetter6._y = waypoints[instLetter6.currentWaypoint][1];
instLetter7.gotoAndStop(Define.randRange(1, 25));
instLetter7.iterator = 0;
instLetter7.state = 0;
instLetter7.currentWaypoint = 3;
instLetter7._x = waypoints[instLetter7.currentWaypoint][0];
instLetter8.gotoAndStop(Define.randRange(1, 25));
instLetter8.iterator = 0;
instLetter8.state = 0;
instLetter8.currentWaypoint = 3;
instLetter8._x = waypoints[instLetter8.currentWaypoint][0];
followWaypoint = function (enemy) {
var _local3 = Math.abs(enemy._x - waypoints[enemy.currentWaypoint][0]) + Math.abs(enemy._y - waypoints[enemy.currentWaypoint][1]);
if (_local3 < (stepLength * 2)) {
enemy._x = waypoints[enemy.currentWaypoint][0];
enemy._y = waypoints[enemy.currentWaypoint][1];
enemy.currentWaypoint++;
enemy.iterator = 0;
if (enemy.currentWaypoint >= waypoints.length) {
enemy.currentWaypoint = 0;
}
}
enemy.iterator++;
var _local2 = new flash.geom.Point(enemy._x, enemy._y);
var _local5 = new flash.geom.Point(waypoints[enemy.currentWaypoint][0], waypoints[enemy.currentWaypoint][1]);
var _local4 = Define.getDirection(_local2, _local5);
switch (_local4) {
case Define.DIRECTION_LEFT :
enemy._x = enemy._x - stepLength;
break;
case Define.DIRECTION_RIGHT :
enemy._x = enemy._x + stepLength;
break;
case Define.DIRECTION_UP :
enemy._y = enemy._y - stepLength;
break;
case Define.DIRECTION_DOWN :
enemy._y = enemy._y + stepLength;
}
};
instLetter1.onEnterFrame = function () {
followWaypoint(this);
};
instLetter2.onEnterFrame = function () {
followWaypoint(this);
};
instLetter3.onEnterFrame = function () {
followWaypoint(this);
};
instLetter4.onEnterFrame = function () {
followWaypoint(this);
};
instLetter5.onEnterFrame = function () {
followWaypoint(this);
};
instLetter6.onEnterFrame = function () {
followWaypoint(this);
};
instLetter7.onEnterFrame = function () {
followWaypoint(this);
};
instLetter8.onEnterFrame = function () {
followWaypoint(this);
};
instExitToCredits.onRollOver = function () {
activeChangeColor = 0;
this.shiftInX = 0;
};
instExitToCredits.onRollOut = function () {
activeChangeColor = -1;
};
instExitToCredits.onEnterFrame = function () {
if (activeChangeColor == 0) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
if (stepLength < 25) {
stepLength = stepLength + 0.2;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
if (stepLength > 4) {
stepLength = stepLength - 0.2;
}
}
};
stop();
Symbol 703 MovieClip Frame 110 (8 B)
stop();
Symbol 704 Button (65 B)
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 705 Button (65 B)
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 717 MovieClip Frame 35 (8 B)
stop();
Symbol 726 MovieClip Frame 1 (8 B)
stop();
Symbol 726 MovieClip Frame 7 (8 B)
stop();
Symbol 732 MovieClip [shootClip] Frame 1 (8 B)
stop();
Symbol 732 MovieClip [shootClip] Frame 6 (8 B)
stop();
Symbol 732 MovieClip [shootClip] Frame 11 (8 B)
stop();
Symbol 732 MovieClip [shootClip] Frame 16 (8 B)
stop();
Symbol 737 MovieClip Frame 7 (8 B)
stop();
Symbol 738 MovieClip Frame 15 (8 B)
stop();
Symbol 744 MovieClip Frame 16 (8 B)
stop();
Symbol 784 MovieClip [enemyClip] Frame 1 (1 B)
Symbol 784 MovieClip [enemyClip] Frame 14 (24 B)
gotoAndPlay ("enemy1");
Symbol 784 MovieClip [enemyClip] Frame 15 (1 B)
Symbol 784 MovieClip [enemyClip] Frame 29 (24 B)
gotoAndPlay ("enemy1");
Symbol 784 MovieClip [enemyClip] Frame 50 (28 B)
_visible = false;
stop();
Symbol 784 MovieClip [enemyClip] Frame 51 (1 B)
Symbol 784 MovieClip [enemyClip] Frame 65 (24 B)
gotoAndPlay ("enemy2");
Symbol 784 MovieClip [enemyClip] Frame 66 (1 B)
Symbol 784 MovieClip [enemyClip] Frame 79 (24 B)
gotoAndPlay ("enemy2");
Symbol 784 MovieClip [enemyClip] Frame 99 (28 B)
_visible = false;
stop();
Symbol 784 MovieClip [enemyClip] Frame 114 (24 B)
gotoAndPlay ("enemy3");
Symbol 784 MovieClip [enemyClip] Frame 126 (24 B)
gotoAndPlay ("enemy3");
Symbol 784 MovieClip [enemyClip] Frame 147 (28 B)
_visible = false;
stop();
Symbol 784 MovieClip [enemyClip] Frame 163 (24 B)
gotoAndPlay ("enemy4");
Symbol 784 MovieClip [enemyClip] Frame 175 (24 B)
gotoAndPlay ("enemy4");
Symbol 784 MovieClip [enemyClip] Frame 196 (28 B)
_visible = false;
stop();
Symbol 784 MovieClip [enemyClip] Frame 211 (24 B)
gotoAndPlay ("enemy5");
Symbol 784 MovieClip [enemyClip] Frame 223 (24 B)
gotoAndPlay ("enemy5");
Symbol 784 MovieClip [enemyClip] Frame 243 (28 B)
_visible = false;
stop();
Symbol 784 MovieClip [enemyClip] Frame 258 (24 B)
gotoAndPlay ("enemy6");
Symbol 784 MovieClip [enemyClip] Frame 271 (24 B)
gotoAndPlay ("enemy6");
Symbol 784 MovieClip [enemyClip] Frame 291 (28 B)
_visible = false;
stop();
Symbol 784 MovieClip [enemyClip] Frame 305 (24 B)
gotoAndPlay ("enemy7");
Symbol 784 MovieClip [enemyClip] Frame 317 (24 B)
gotoAndPlay ("enemy7");
Symbol 784 MovieClip [enemyClip] Frame 337 (28 B)
_visible = false;
stop();
Symbol 784 MovieClip [enemyClip] Frame 351 (24 B)
gotoAndPlay ("enemy8");
Symbol 784 MovieClip [enemyClip] Frame 363 (24 B)
gotoAndPlay ("enemy8");
Symbol 784 MovieClip [enemyClip] Frame 380 (28 B)
_visible = false;
stop();
Symbol 784 MovieClip [enemyClip] Frame 395 (24 B)
gotoAndPlay ("enemy9");
Symbol 784 MovieClip [enemyClip] Frame 407 (24 B)
gotoAndPlay ("enemy9");
Symbol 784 MovieClip [enemyClip] Frame 424 (28 B)
_visible = false;
stop();
Symbol 784 MovieClip [enemyClip] Frame 437 (25 B)
gotoAndPlay ("enemy10");
Symbol 784 MovieClip [enemyClip] Frame 449 (25 B)
gotoAndPlay ("enemy10");
Symbol 784 MovieClip [enemyClip] Frame 467 (28 B)
_visible = false;
stop();
Symbol 784 MovieClip [enemyClip] Frame 468 (47 B)
instStarEnemy1.gotoAndStop("normal");
stop();
Symbol 784 MovieClip [enemyClip] Frame 472 (47 B)
instStarEnemy2.gotoAndStop("super1");
stop();
Symbol 784 MovieClip [enemyClip] Frame 476 (47 B)
instStarEnemy3.gotoAndStop("super2");
stop();
Symbol 784 MovieClip [enemyClip] Frame 480 (47 B)
instStarEnemy4.gotoAndStop("super3");
stop();
Symbol 784 MovieClip [enemyClip] Frame 484 (8 B)
stop();
Symbol 784 MovieClip [enemyClip] Frame 513 (29 B)
gotoAndPlay ("arrowCamera");
Symbol 793 MovieClip Frame 1 (2.18 KiB) ●
instButtonPlay.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("menuPlay");
};
instButtonSettings.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("settings");
};
instButtonHelp.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("help");
};
instButtonAbout.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("about");
};
instButtonPlay.gotoAndStop("rojo");
instButtonSettings.gotoAndStop("rojo");
instButtonHelp.gotoAndStop("rojo");
instButtonAbout.gotoAndStop("rojo");
instButtonPlay.instTextButton.text = "PLAY";
instButtonSettings.instTextButton.text = "SETTINGS";
instButtonHelp.instTextButton.text = "HELP";
instButtonAbout.instTextButton.text = "ABOUT";
instButtonPlay._alpha = 0;
instButtonSettings._alpha = 0;
instButtonHelp._alpha = 0;
instButtonAbout._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instButtonPlay.onEnterFrame = function () {
this._y = this._y + (169.6 / totalNumberFramesAnimationMainMenu);
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instButtonSettings.onEnterFrame = function () {
this._x = this._x - (170 / totalNumberFramesAnimationMainMenu);
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instButtonHelp.onEnterFrame = function () {
this._x = this._x - (170 / totalNumberFramesAnimationMainMenu);
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instButtonAbout.onEnterFrame = function () {
this._y = this._y - (170 / totalNumberFramesAnimationMainMenu);
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
Symbol 793 MovieClip Frame 22 (3.06 KiB) ●
delete instButtonPlay.onEnterFrame;
delete instButtonSettings.onEnterFrame;
delete instButtonHelp.onEnterFrame;
delete instButtonAbout.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instButtonPlay.onRollOver = function () {
activeChangeColor = 0;
this.shiftInX = 0;
};
instButtonPlay.onRollOut = function () {
activeChangeColor = -1;
};
instButtonSettings.onRollOver = function () {
activeChangeColor = 1;
this.shiftInX = 0;
};
instButtonSettings.onRollOut = function () {
activeChangeColor = -1;
};
instButtonHelp.onRollOver = function () {
activeChangeColor = 2;
this.shiftInX = 0;
};
instButtonHelp.onRollOut = function () {
activeChangeColor = -1;
};
instButtonAbout.onRollOver = function () {
activeChangeColor = 3;
this.shiftInX = 0;
};
instButtonAbout.onRollOut = function () {
activeChangeColor = -1;
};
instButtonPlay.onEnterFrame = function () {
if (activeChangeColor == 0) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instButtonSettings.onEnterFrame = function () {
if (activeChangeColor == 1) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instButtonHelp.onEnterFrame = function () {
if (activeChangeColor == 2) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instButtonAbout.onEnterFrame = function () {
if (activeChangeColor == 3) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 793 MovieClip Frame 25 (1.69 KiB) ●
instButtonNewGame.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
_root.initGame(-1);
};
instButtonMenuLoad.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
_root.loadGameData();
gotoAndPlay ("menuLoad");
};
instButtonBack.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("mainMenu");
};
instButtonNewGame.gotoAndStop("azul");
instButtonMenuLoad.gotoAndStop("azul");
instButtonBack.gotoAndStop("azul");
instButtonNewGame.instTextButton.text = "NEW GAME";
instButtonMenuLoad.instTextButton.text = "LOAD GAME";
instButtonBack.instTextButton.text = "BACK";
instButtonNewGame._alpha = 0;
instButtonMenuLoad._alpha = 0;
instButtonBack._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instButtonNewGame.onEnterFrame = function () {
this._x = this._x - (200.1 / totalNumberFramesAnimationMainMenu);
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instButtonMenuLoad.onEnterFrame = function () {
this._x = this._x - (200.1 / totalNumberFramesAnimationMainMenu);
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instButtonBack.onEnterFrame = function () {
this._x = this._x - (200.1 / totalNumberFramesAnimationMainMenu);
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
Symbol 793 MovieClip Frame 46 (2.32 KiB) ●
delete instButtonNewGame.onEnterFrame;
delete instButtonMenuLoad.onEnterFrame;
delete instButtonBack.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instButtonNewGame.onRollOver = function () {
activeChangeColor = 0;
this.shiftInX = 0;
};
instButtonNewGame.onRollOut = function () {
activeChangeColor = -1;
};
instButtonMenuLoad.onRollOver = function () {
activeChangeColor = 1;
this.shiftInX = 0;
};
instButtonMenuLoad.onRollOut = function () {
activeChangeColor = -1;
};
instButtonBack.onRollOver = function () {
activeChangeColor = 2;
this.shiftInX = 0;
};
instButtonBack.onRollOut = function () {
activeChangeColor = -1;
};
instButtonNewGame.onEnterFrame = function () {
if (activeChangeColor == 0) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instButtonMenuLoad.onEnterFrame = function () {
if (activeChangeColor == 1) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instButtonBack.onEnterFrame = function () {
if (activeChangeColor == 2) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 793 MovieClip Frame 50 (5.4 KiB) ● ●
limitOfLevelsDoneLoadLevel = _root.nmTotalLevelDone + 1;
delete instSelectedLevel.onRelease;
delete instBackLevel.onRelease;
delete instNextLevel.onRelease;
delete instSelectLevelEntry1.onRelease;
delete instSelectLevelEntry2.onRelease;
delete instSelectedLevel.onEnterFrame;
delete instBackLevel.onEnterFrame;
delete instNextLevel.onEnterFrame;
delete instSelectLevelEntry1.onEnterFrame;
delete instSelectLevelEntry2.onEnterFrame;
instSelectedLevel._y = -80;
instSelectedLevel.gotoAndStop("azul");
instBackLevel.gotoAndStop("azul");
instNextLevel.gotoAndStop("azul");
setElementsVisibility = function (optionVisibility) {
instSelectedLevel._visible = optionVisibility;
instBackLevel._visible = optionVisibility;
instNextLevel._visible = optionVisibility;
instSelectLevelEntry1._visible = optionVisibility;
instSelectLevelEntry2._visible = optionVisibility;
};
setElementsVisibility(true);
instBackLevel.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
if ((_root.nmLevelToShow - 2) < 0) {
gotoAndPlay ("menuPlay");
} else {
_root.nmLevelToShow = _root.nmLevelToShow - 2;
gotoAndPlay ("menuLoad");
}
};
instNextLevel.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
if ((_root.nmLevelToShow + 2) > _root.nmTotalLevelDone) {
gotoAndPlay ("menuPlay");
} else {
_root.nmLevelToShow = _root.nmLevelToShow + 2;
gotoAndPlay ("menuLoad");
}
};
instSelectLevelEntry1.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
setElementsVisibility(false);
_root.gHasBeenPreviouslyPlayedTutorial = true;
_root.initGame(_root.nmLevelToShow);
};
instSelectLevelEntry2.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
setElementsVisibility(false);
_root.gHasBeenPreviouslyPlayedTutorial = true;
_root.initGame(_root.nmLevelToShow + 1);
};
setElementsVisibility(false);
instSelectedLevel._visible = true;
instBackLevel._visible = true;
instNextLevel._visible = true;
instSelectedLevel.instBigText.text = "Select Level";
if ((_root.nmLevelToShow - 2) < 0) {
instBackLevel.instTextButton.text = "Exit";
} else {
instBackLevel.instTextButton.text = "Previous";
}
if ((_root.nmLevelToShow + 2) >= limitOfLevelsDoneLoadLevel) {
instNextLevel.instTextButton.text = "Exit";
} else {
instNextLevel.instTextButton.text = "Next";
}
if (_root.nmLevelToShow < limitOfLevelsDoneLoadLevel) {
instSelectLevelEntry1._visible = true;
if (!isNaN(_root.gListLevelScore[_root.nmLevelToShow])) {
instSelectLevelEntry1.gotoAndStop("stadistics");
instSelectLevelEntry1.instTextDay.text = Define.getDay(_root.nmLevelToShow);
instSelectLevelEntry1.instSongTitle.text = Define.getSongName(_root.nmLevelToShow);
instSelectLevelEntry1.instTextTime.text = "" + _root.gListLevelScore[_root.nmLevelToShow];
instSelectLevelEntry1.instTextStars.text = "" + _root.gListLevelStarsScore[_root.nmLevelToShow];
instSelectLevelEntry1.instTextBonus.text = "" + _root.gListLevelBonusScore[_root.nmLevelToShow];
} else {
instSelectLevelEntry1.gotoAndStop("newDay");
instSelectLevelEntry1.instTextDay.text = Define.getDay(_root.nmLevelToShow);
instSelectLevelEntry1.instSongTitle.text = Define.getSongName(_root.nmLevelToShow);
}
}
if ((_root.nmLevelToShow + 1) < limitOfLevelsDoneLoadLevel) {
instSelectLevelEntry2._visible = true;
if (!isNaN(_root.gListLevelScore[_root.nmLevelToShow + 1])) {
instSelectLevelEntry2.gotoAndStop("stadistics");
instSelectLevelEntry2.instTextDay.text = Define.getDay(_root.nmLevelToShow + 1);
instSelectLevelEntry2.instSongTitle.text = Define.getSongName(_root.nmLevelToShow + 1);
instSelectLevelEntry2.instTextTime.text = "" + _root.gListLevelScore[_root.nmLevelToShow + 1];
instSelectLevelEntry2.instTextStars.text = "" + _root.gListLevelStarsScore[_root.nmLevelToShow + 1];
instSelectLevelEntry2.instTextBonus.text = "" + _root.gListLevelBonusScore[_root.nmLevelToShow + 1];
} else {
instSelectLevelEntry2.gotoAndStop("newDay");
instSelectLevelEntry2.instTextDay.text = Define.getDay(_root.nmLevelToShow + 1);
instSelectLevelEntry2.instSongTitle.text = Define.getSongName(_root.nmLevelToShow + 1);
}
}
instSelectedLevel._alpha = 0;
instBackLevel._alpha = 0;
instNextLevel._alpha = 0;
instSelectLevelEntry1._alpha = 0;
instSelectLevelEntry2._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instSelectedLevel.onEnterFrame = function () {
this._y = this._y + (100 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instBackLevel.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instNextLevel.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instSelectLevelEntry1.onEnterFrame = function () {
if (_root.nmLevelToShow < limitOfLevelsDoneLoadLevel) {
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
}
};
instSelectLevelEntry2.onEnterFrame = function () {
if ((_root.nmLevelToShow + 1) < limitOfLevelsDoneLoadLevel) {
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
}
};
Symbol 793 MovieClip Frame 71 (1.42 KiB) ●
limitOfLevelsDoneLoadLevel = _root.nmTotalLevelDone + 1;
delete instSelectedLevel.onEnterFrame;
delete instBackLevel.onEnterFrame;
delete instNextLevel.onEnterFrame;
delete instSelectLevelEntry1.onEnterFrame;
delete instSelectLevelEntry2.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 5;
instBackLevel.onRollOver = function () {
activeChangeColor = 0;
this.shiftInX = 0;
};
instBackLevel.onRollOut = function () {
activeChangeColor = -1;
};
instNextLevel.onRollOver = function () {
activeChangeColor = 1;
this.shiftInX = 0;
};
instNextLevel.onRollOut = function () {
activeChangeColor = -1;
};
applyMovementRotation = function (nmElementRotableCircle, numeroActivacion) {
if (activeChangeColor == numeroActivacion) {
nmElementRotableCircle._alpha = nmElementRotableCircle._alpha - factorEscalaContraccion;
if (nmElementRotableCircle._alpha < 10) {
nmElementRotableCircle._alpha = 100;
}
nmElementRotableCircle._rotation = nmElementRotableCircle._rotation + factorEscalaContraccion;
if (nmElementRotableCircle._rotation > 360) {
nmElementRotableCircle._rotation = 0;
}
} else {
nmElementRotableCircle._alpha = 100;
nmElementRotableCircle._rotation = 0;
}
};
instBackLevel.onEnterFrame = function () {
applyMovementRotation(this.instRotableCircle, 0);
};
instNextLevel.onEnterFrame = function () {
applyMovementRotation(this.instRotableCircle, 1);
};
stop();
Symbol 793 MovieClip Frame 72 (5.08 KiB) ● ●
instButtonSound.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
if (_root.nmSoundEnabled == false) {
_root.nmSoundEnabled = true;
this.instTextButton.text = "SOUND ON";
} else {
_root.nmSoundEnabled = false;
this.instTextButton.text = "SOUND OFF";
_root.stopGameSounds();
}
};
instButtonDifficulty.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
_root.nmDifficultySetted = _root.nmDifficultySetted + 1;
if (_root.nmDifficultySetted > 2) {
_root.nmDifficultySetted = 0;
}
switch (_root.nmDifficultySetted) {
case 0 :
this.instLongTextButton.text = "\nDIFFICULTY EASY";
break;
case 1 :
this.instLongTextButton.text = "\nDIFFICULTY NORMAL";
break;
case 2 :
this.instLongTextButton.text = "\nDIFFICULTY HARD";
}
};
instButtonQuality.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
_root.gQualitySetted = _root.gQualitySetted + 1;
if (_root.gQualitySetted > 2) {
_root.gQualitySetted = 0;
}
switch (_root.gQualitySetted) {
case 0 :
_root._quality = "LOW";
this.instLongTextButton.text = "\nLOW QUALITY";
break;
case 1 :
_root._quality = "MEDIUM";
this.instLongTextButton.text = "\nMEDIUM QUALITY";
break;
case 2 :
_root._quality = "HIGH";
this.instLongTextButton.text = "\nHIGH QUALITY";
}
};
instButtonArrows.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
if (_root.gEnableInformationArrows == 0) {
_root.gEnableInformationArrows = 1;
this.instLongTextButton.text = "PATH ARROWS: ON";
} else {
_root.gEnableInformationArrows = 0;
this.instLongTextButton.text = "PATH ARROWS: OFF";
}
};
instButtonBack.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
_root.saveGameData();
if (_root.gLastStateGame == Define.STATE_GAME_RUN) {
gotoAndPlay ("pause");
} else {
gotoAndPlay ("mainMenu");
}
};
instTitleSettings.gotoAndStop("verde");
instButtonDifficulty.gotoAndStop("verde");
instButtonSound.gotoAndStop("verde");
instButtonArrows.gotoAndStop("verde");
instButtonBack.gotoAndStop("verde");
instButtonQuality.gotoAndStop("verde");
instTitleSettings.instBigText.text = "SETTINGS";
switch (_root.nmDifficultySetted) {
case 0 :
instButtonDifficulty.instLongTextButton.text = "\nDIFFICULTY EASY";
break;
case 1 :
instButtonDifficulty.instLongTextButton.text = "\nDIFFICULTY NORMAL";
break;
case 2 :
instButtonDifficulty.instLongTextButton.text = "\nDIFFICULTY HARD";
}
if (_root.nmSoundEnabled == 0) {
instButtonSound.instTextButton.text = "SOUND OFF";
} else {
instButtonSound.instTextButton.text = "SOUND ON";
}
instButtonBack.instTextButton.text = "BACK";
switch (_root.gQualitySetted) {
case 0 :
instButtonQuality.instLongTextButton.text = "\nLOW QUALITY";
break;
case 1 :
instButtonQuality.instLongTextButton.text = "\nMEDIUM QUALITY";
break;
case 2 :
instButtonQuality.instLongTextButton.text = "\nHIGH QUALITY";
}
if (_root.gEnableInformationArrows == 0) {
instButtonArrows.instLongTextButton.text = "PATH ARROWS: OFF";
} else {
instButtonArrows.instLongTextButton.text = "PATH ARROWS: ON";
}
instTitleSettings._alpha = 0;
instButtonSound._alpha = 0;
instButtonBack._alpha = 0;
instButtonDifficulty._alpha = 0;
instButtonArrows._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instTitleSettings.onEnterFrame = function () {
this._y = this._y + (128 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instButtonDifficulty.onEnterFrame = function () {
this._x = this._x + (244.1 / totalNumberFramesAnimationMainMenu);
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instButtonSound.onEnterFrame = function () {
this._x = this._x + (390 / totalNumberFramesAnimationMainMenu);
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instButtonQuality.onEnterFrame = function () {
this._x = this._x + (563 / totalNumberFramesAnimationMainMenu);
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instButtonArrows.onEnterFrame = function () {
this._x = this._x + (371 / totalNumberFramesAnimationMainMenu);
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instButtonBack.onEnterFrame = function () {
this._x = this._x - (221.5 / totalNumberFramesAnimationMainMenu);
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
Symbol 793 MovieClip Frame 93 (3.87 KiB) ●
delete instTitleSettings.onEnterFrame;
delete instButtonDifficulty.onEnterFrame;
delete instButtonSound.onEnterFrame;
delete instButtonQuality.onEnterFrame;
delete instButtonArrows.onEnterFrame;
delete instButtonBack.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instButtonDifficulty.onRollOver = function () {
activeChangeColor = 0;
this.shiftInX = 0;
};
instButtonDifficulty.onRollOut = function () {
activeChangeColor = -1;
};
instButtonSound.onRollOver = function () {
activeChangeColor = 1;
this.shiftInX = 0;
};
instButtonSound.onRollOut = function () {
activeChangeColor = -1;
};
instButtonBack.onRollOver = function () {
activeChangeColor = 2;
this.shiftInX = 0;
};
instButtonBack.onRollOut = function () {
activeChangeColor = -1;
};
instButtonQuality.onRollOver = function () {
activeChangeColor = 3;
this.shiftInX = 0;
};
instButtonQuality.onRollOut = function () {
activeChangeColor = -1;
};
instButtonArrows.onRollOver = function () {
activeChangeColor = 4;
this.shiftInX = 0;
};
instButtonArrows.onRollOut = function () {
activeChangeColor = -1;
};
instButtonDifficulty.onEnterFrame = function () {
if (activeChangeColor == 0) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instButtonSound.onEnterFrame = function () {
if (activeChangeColor == 1) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instButtonBack.onEnterFrame = function () {
if (activeChangeColor == 2) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instButtonQuality.onEnterFrame = function () {
if (activeChangeColor == 3) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instButtonArrows.onEnterFrame = function () {
if (activeChangeColor == 4) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 793 MovieClip Frame 98 (1.66 KiB) ●
instBackHelp0.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
if (_root.gLastStateGame == Define.STATE_GAME_RUN) {
gotoAndPlay ("pause");
} else {
gotoAndPlay ("mainMenu");
}
};
instNextHelp0.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("help1");
};
instTitleHelp0.gotoAndStop("azul");
instExplanationHelp0.gotoAndStop("azul");
instBackHelp0.gotoAndStop("azul");
instNextHelp0.gotoAndStop("azul");
instTitleHelp0.instBigText.text = "HELP 1 OF 6";
instExplanationHelp0.instText.text = "You are a small SUN that must travel a long way TO LIGHT its little WORLD.";
instBackHelp0.instTextButton.text = "EXIT";
instNextHelp0.instTextButton.text = "NEXT";
instTitleHelp0._alpha = 0;
instExplanationHelp0._alpha = 0;
instBackHelp0._alpha = 0;
instNextHelp0._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instTitleHelp0.onEnterFrame = function () {
this._y = this._y + (128 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instExplanationHelp0.onEnterFrame = function () {
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instBackHelp0.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instNextHelp0.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
Symbol 793 MovieClip Frame 119 (1.66 KiB) ●
delete instTitleHelp0.onEnterFrame;
delete instExplanationHelp0.onEnterFrame;
delete instBackHelp0.onEnterFrame;
delete instNextHelp0.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instSunHelp1.gotoAndPlay("quiet");
instBackHelp0.onRollOver = function () {
activeChangeColor = 0;
this.shiftInX = 0;
};
instBackHelp0.onRollOut = function () {
activeChangeColor = -1;
};
instNextHelp0.onRollOver = function () {
activeChangeColor = 1;
this.shiftInX = 0;
};
instNextHelp0.onRollOut = function () {
activeChangeColor = -1;
};
instBackHelp0.onEnterFrame = function () {
if (activeChangeColor == 0) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instNextHelp0.onEnterFrame = function () {
if (activeChangeColor == 1) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 793 MovieClip Frame 121 (1.61 KiB) ●
instBackHelp1.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("help");
};
instNextHelp1.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("help2");
};
instTitleHelp1.gotoAndStop("azul");
instExplanationHelp1.gotoAndStop("azul");
instBackHelp1.gotoAndStop("azul");
instNextHelp1.gotoAndStop("azul");
instTitleHelp1.instBigText.text = "HELP 2 OF 6";
instExplanationHelp1.instText.text = "You must get the STARS to keep the SUN'S ENERGY. Use the KEY ARROWS or (A/S/D/W) to MOVE the SUN\n C'MON TEST IT NOW ;)";
instBackHelp1.instTextButton.text = "BACK";
instNextHelp1.instTextButton.text = "NEXT";
instTitleHelp1._alpha = 0;
instExplanationHelp1._alpha = 0;
instBackHelp1._alpha = 0;
instNextHelp1._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instTitleHelp1.onEnterFrame = function () {
this._y = this._y + (128 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instExplanationHelp1.onEnterFrame = function () {
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instBackHelp1.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instNextHelp1.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
Symbol 793 MovieClip Frame 142 (2.84 KiB) ●
delete instTitleHelp1.onEnterFrame;
delete instExplanationHelp1.onEnterFrame;
delete instBackHelp1.onEnterFrame;
delete instNextHelp1.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instSunHelp2.gotoAndPlay("quiet");
instSunHelp2._xscale = 40;
instSunHelp2._yscale = 40;
instSunHelp2.incrementSize = 0;
instSunHelp2.onEnterFrame = function () {
if (this.incrementSize > 0) {
this.incrementSize--;
this._xscale++;
this._yscale++;
}
if (Key.isDown(39) || (Key.isDown(68))) {
this._x = this._x + 4;
}
if (Key.isDown(38) || (Key.isDown(87))) {
this._y = this._y - 4;
}
if (Key.isDown(37) || (Key.isDown(65))) {
this._x = this._x - 4;
}
if (Key.isDown(40) || (Key.isDown(83))) {
this._y = this._y + 4;
}
if (instStarHelp1._visible == true) {
if (instStarHelp1.hitTest(this._x, this._y, true)) {
instStarHelp1._visible = false;
this.incrementSize = 20;
}
}
if (instStarHelp2._visible == true) {
if (instStarHelp2.hitTest(this._x, this._y, true)) {
instStarHelp2._visible = false;
this.incrementSize = 20;
}
}
if (instStarHelp3._visible == true) {
if (instStarHelp3.hitTest(this._x, this._y, true)) {
instStarHelp3._visible = false;
this.incrementSize = 20;
}
}
if (instStarHelp4._visible == true) {
if (instStarHelp4.hitTest(this._x, this._y, true)) {
instStarHelp4._visible = false;
this.incrementSize = 20;
}
}
};
instBackHelp1.onRollOver = function () {
activeChangeColor = 0;
this.shiftInX = 0;
};
instBackHelp1.onRollOut = function () {
activeChangeColor = -1;
};
instNextHelp1.onRollOver = function () {
activeChangeColor = 1;
this.shiftInX = 0;
};
instNextHelp1.onRollOut = function () {
activeChangeColor = -1;
};
instBackHelp1.onEnterFrame = function () {
if (activeChangeColor == 0) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instNextHelp1.onEnterFrame = function () {
if (activeChangeColor == 1) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 793 MovieClip Frame 145 (1.59 KiB) ●
instBackHelp2.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("help1");
};
instNextHelp2.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("help3");
};
instTitleHelp2.gotoAndStop("azul");
instExplanationHelp2.gotoAndStop("azul");
instBackHelp2.gotoAndStop("azul");
instNextHelp2.gotoAndStop("azul");
instTitleHelp2.instBigText.text = "HELP 3 OF 6";
instExplanationHelp2.instText.text = "If you collect three SPECIAL STARS, you will get A SUPER ATTACK that you can use pressing SPACEBAR";
instBackHelp2.instTextButton.text = "BACK";
instNextHelp2.instTextButton.text = "NEXT";
instTitleHelp2._alpha = 0;
instExplanationHelp2._alpha = 0;
instBackHelp2._alpha = 0;
instNextHelp2._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instTitleHelp2.onEnterFrame = function () {
this._y = this._y + (128 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instExplanationHelp2.onEnterFrame = function () {
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instBackHelp2.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instNextHelp2.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
Symbol 793 MovieClip Frame 166 (1.75 KiB) ●
delete instTitleHelp2.onEnterFrame;
delete instExplanationHelp2.onEnterFrame;
delete instBackHelp2.onEnterFrame;
delete instNextHelp2.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instSuperStar1.gotoAndStop("super1");
instSuperStar2.gotoAndStop("super2");
instSuperStar3.gotoAndStop("super3");
stepLength = 5;
instBackHelp2.onRollOver = function () {
activeChangeColor = 0;
this.shiftInX = 0;
};
instBackHelp2.onRollOut = function () {
activeChangeColor = -1;
};
instNextHelp2.onRollOver = function () {
activeChangeColor = 1;
this.shiftInX = 0;
};
instNextHelp2.onRollOut = function () {
activeChangeColor = -1;
};
instBackHelp2.onEnterFrame = function () {
if (activeChangeColor == 0) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instNextHelp2.onEnterFrame = function () {
if (activeChangeColor == 1) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 793 MovieClip Frame 168 (1.55 KiB) ●
instBackHelp3.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("help2");
};
instNextHelp3.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("help4");
};
instTitleHelp3.gotoAndStop("azul");
instExplanationHelp3.gotoAndStop("azul");
instBackHelp3.gotoAndStop("azul");
instNextHelp3.gotoAndStop("azul");
instTitleHelp3.instBigText.text = "HELP 4 OF 6";
instExplanationHelp3.instText.text = "You will destroy the enemies DRAWING rays with the MOUSE";
instBackHelp3.instTextButton.text = "BACK";
instNextHelp3.instTextButton.text = "NEXT";
instTitleHelp3._alpha = 0;
instExplanationHelp3._alpha = 0;
instBackHelp3._alpha = 0;
instNextHelp3._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instTitleHelp3.onEnterFrame = function () {
this._y = this._y + (128 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instExplanationHelp3.onEnterFrame = function () {
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instBackHelp3.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instNextHelp3.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
Symbol 793 MovieClip Frame 189 (1.74 KiB) ●
delete instTitleHelp3.onEnterFrame;
delete instExplanationHelp3.onEnterFrame;
delete instBackHelp3.onEnterFrame;
delete instNextHelp3.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instEnemyHelp31.gotoAndPlay("enemy1");
instEnemyHelp32.gotoAndPlay("enemy2");
instEnemyHelp33.gotoAndPlay("enemy3");
instBackHelp3.onRollOver = function () {
activeChangeColor = 0;
this.shiftInX = 0;
};
instBackHelp3.onRollOut = function () {
activeChangeColor = -1;
};
instNextHelp3.onRollOver = function () {
activeChangeColor = 1;
this.shiftInX = 0;
};
instNextHelp3.onRollOut = function () {
activeChangeColor = -1;
};
instBackHelp3.onEnterFrame = function () {
if (activeChangeColor == 0) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instNextHelp3.onEnterFrame = function () {
if (activeChangeColor == 1) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 793 MovieClip Frame 190 (1.59 KiB) ●
instBackHelp4.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("help3");
};
instNextHelp4.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("help5");
};
instTitleHelp4.gotoAndStop("azul");
instExplanationHelp4.gotoAndStop("azul");
instBackHelp4.gotoAndStop("azul");
instNextHelp4.gotoAndStop("azul");
instTitleHelp4.instBigText.text = "HELP 5 OF 6";
instExplanationHelp4.instText.text = "Press key \"I\" to ENABLE/DISABLE path information ARROWS\n Press key \"Q\" to switch between quality";
instBackHelp4.instTextButton.text = "BACK";
instNextHelp4.instTextButton.text = "EXIT";
instTitleHelp4._alpha = 0;
instExplanationHelp4._alpha = 0;
instBackHelp4._alpha = 0;
instNextHelp4._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instTitleHelp4.onEnterFrame = function () {
this._y = this._y + (128 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instExplanationHelp4.onEnterFrame = function () {
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instBackHelp4.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instNextHelp4.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
Symbol 793 MovieClip Frame 210 (1.66 KiB) ●
delete instTitleHelp4.onEnterFrame;
delete instExplanationHelp4.onEnterFrame;
delete instBackHelp4.onEnterFrame;
delete instNextHelp4.onEnterFrame;
instArroww.gotoAndPlay("arrowCamera");
activeChangeColor = -1;
factorEscalaContraccion = 4;
instBackHelp4.onRollOver = function () {
activeChangeColor = 0;
this.shiftInX = 0;
};
instBackHelp4.onRollOut = function () {
activeChangeColor = -1;
};
instNextHelp4.onRollOver = function () {
activeChangeColor = 1;
this.shiftInX = 0;
};
instNextHelp4.onRollOut = function () {
activeChangeColor = -1;
};
instBackHelp4.onEnterFrame = function () {
if (activeChangeColor == 0) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instNextHelp4.onEnterFrame = function () {
if (activeChangeColor == 1) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 793 MovieClip Frame 215 (1.63 KiB) ●
instBackHelp5.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("help4");
};
instNextHelp5.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
if (_root.gLastStateGame == Define.STATE_GAME_RUN) {
gotoAndPlay ("pause");
} else {
gotoAndPlay ("mainMenu");
}
};
instTitleHelp5.gotoAndStop("azul");
instExplanationHelp5.gotoAndStop("azul");
instBackHelp5.gotoAndStop("azul");
instNextHelp5.gotoAndStop("azul");
instTitleHelp5.instBigText.text = "HELP 6 OF 6";
instExplanationHelp5.instText.text = "Show your hability with an WIN the evil forces";
instBackHelp5.instTextButton.text = "BACK";
instNextHelp5.instTextButton.text = "EXIT";
instTitleHelp5._alpha = 0;
instExplanationHelp5._alpha = 0;
instBackHelp5._alpha = 0;
instNextHelp5._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instTitleHelp5.onEnterFrame = function () {
this._y = this._y + (128 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instExplanationHelp5.onEnterFrame = function () {
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instBackHelp5.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instNextHelp5.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
Symbol 793 MovieClip Frame 235 (1.62 KiB) ●
delete instTitleHelp5.onEnterFrame;
delete instExplanationHelp5.onEnterFrame;
delete instBackHelp5.onEnterFrame;
delete instNextHelp5.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instBackHelp5.onRollOver = function () {
activeChangeColor = 0;
this.shiftInX = 0;
};
instBackHelp5.onRollOut = function () {
activeChangeColor = -1;
};
instNextHelp5.onRollOver = function () {
activeChangeColor = 1;
this.shiftInX = 0;
};
instNextHelp5.onRollOut = function () {
activeChangeColor = -1;
};
instBackHelp5.onEnterFrame = function () {
if (activeChangeColor == 0) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instNextHelp5.onEnterFrame = function () {
if (activeChangeColor == 1) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 793 MovieClip Frame 239 (2.57 KiB) ●
instBackAbout.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("mainMenu");
};
instNextAbout.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("about2");
};
instTitleAbout.gotoAndStop("azul");
instCreditDesigner.gotoAndStop("azul");
instCreditArtist.gotoAndStop("azul");
instCreditMusician.gotoAndStop("azul");
instBackAbout.gotoAndStop("azul");
instNextAbout.gotoAndStop("azul");
instTitleAbout.instBigText.text = "TEAM";
instCreditDesigner.instLongTextButton.text = "DESIGNER: FREE CREATOR";
instCreditArtist.instLongTextButton.text = "ART: JOAQUIN FERRER";
instCreditMusician.instLongTextButton.text = "FX MUSIC: DANIEL MART\u00CDN";
instBackAbout.instTextButton.text = "BACK";
instNextAbout.instTextButton.text = "NEXT";
instTitleAbout._alpha = 0;
instCreditDesigner._alpha = 0;
instCreditArtist._alpha = 0;
instCreditMusician._alpha = 0;
instBackAbout._alpha = 0;
instNextAbout._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instTitleAbout.onEnterFrame = function () {
this._y = this._y + (100 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instCreditDesigner.onEnterFrame = function () {
this._x = this._x + (286 / totalNumberFramesAnimationMainMenu);
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instCreditArtist.onEnterFrame = function () {
this._x = this._x - (274.1 / totalNumberFramesAnimationMainMenu);
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instCreditMusician.onEnterFrame = function () {
this._y = this._y - (280 / totalNumberFramesAnimationMainMenu);
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instBackAbout.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instNextAbout.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
Symbol 793 MovieClip Frame 260 (3.13 KiB) ●
delete instTitleAbout.onEnterFrame;
delete instCreditDesigner.onEnterFrame;
delete instCreditArtist.onEnterFrame;
delete instCreditMusician.onEnterFrame;
delete instBackAbout.onEnterFrame;
delete instNextAbout.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instBackAbout.onRollOver = function () {
activeChangeColor = 0;
this.shiftInX = 0;
};
instBackAbout.onRollOut = function () {
activeChangeColor = -1;
};
instNextAbout.onRollOver = function () {
activeChangeColor = 1;
this.shiftInX = 0;
};
instNextAbout.onRollOut = function () {
activeChangeColor = -1;
};
designerActivated = 0;
musicianActivated = 0;
artistActivated = 0;
instCreditDesigner.onRelease = function () {
designerActivated = (designerActivated + 1) % 2;
};
instCreditArtist.onRelease = function () {
artistActivated = (artistActivated + 1) % 2;
};
instCreditMusician.onRelease = function () {
musicianActivated = (musicianActivated + 1) % 2;
};
instBackAbout.onEnterFrame = function () {
if (activeChangeColor == 0) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instNextAbout.onEnterFrame = function () {
if (activeChangeColor == 1) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instCreditDesigner.onEnterFrame = function () {
if (designerActivated == 1) {
this.play();
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._rotation = 0;
this.stop();
}
};
instCreditArtist.onEnterFrame = function () {
if (artistActivated == 1) {
this.play();
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._rotation = 0;
this.stop();
}
};
instCreditMusician.onEnterFrame = function () {
if (musicianActivated == 1) {
this.play();
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._rotation = 0;
this.stop();
}
};
stop();
Symbol 793 MovieClip Frame 264 (1.46 KiB) ●
instBackAbout2.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("about");
};
instNextAbout2.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("mainMenu");
};
instTitleCredits2.gotoAndStop("azul");
instBackAbout2.gotoAndStop("azul");
instNextAbout2.gotoAndStop("azul");
instTitleCredits2.instBigText.text = "CONTACT";
instFondoAbout2.gotoAndStop("creditos");
instBackAbout2.instTextButton.text = "BACK";
instNextAbout2.instTextButton.text = "EXIT";
instTitleCredits2._alpha = 0;
instFondoAbout2._alpha = 0;
instBackAbout2._alpha = 0;
instNextAbout2._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instTitleCredits2.onEnterFrame = function () {
this._y = this._y + (118 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instFondoAbout2.onEnterFrame = function () {
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instBackAbout2.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instNextAbout2.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
Symbol 793 MovieClip Frame 286 (1.63 KiB) ●
delete instTitleCredits2.onEnterFrame;
delete instFondoAbout2.onEnterFrame;
delete instBackAbout2.onEnterFrame;
delete instNextAbout2.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instBackAbout2.onRollOver = function () {
activeChangeColor = 0;
this.shiftInX = 0;
};
instBackAbout2.onRollOut = function () {
activeChangeColor = -1;
};
instNextAbout2.onRollOver = function () {
activeChangeColor = 1;
this.shiftInX = 0;
};
instNextAbout2.onRollOut = function () {
activeChangeColor = -1;
};
instBackAbout2.onEnterFrame = function () {
if (activeChangeColor == 0) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instNextAbout2.onEnterFrame = function () {
if (activeChangeColor == 1) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 793 MovieClip Frame 288 (8 B)
stop();
Symbol 793 MovieClip Frame 293 (2.63 KiB) ●
instButtonContinue.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
_root.instClipMenuGame.gotoAndPlay("vacio");
_root.instClipMenuGame._visible = false;
_root.changeGeneralGameState(Define.STATE_GAME_RUN);
};
instButtonHelp.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("help");
};
instButtonSettings.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
gotoAndPlay ("settings");
};
instButtonExit.onRelease = function () {
_root.playGameSound(Define.SOUNDS_SELECCION, 1);
_root.changeGeneralGameState(Define.STATE_GAME_MENU);
_root.instClipMenuGame._visible = true;
_root.gMission.freeResources();
gotoAndPlay ("mainMenu");
};
instLabelPause.gotoAndStop("azul");
instButtonContinue.gotoAndStop("azul");
instButtonSettings.gotoAndStop("azul");
instButtonHelp.gotoAndStop("azul");
instButtonExit.gotoAndStop("azul");
instLabelPause.instBigText.text = "PAUSE";
instButtonContinue.instTextButton.text = "CONTINUE";
instButtonSettings.instTextButton.text = "SETTINGS";
instButtonHelp.instTextButton.text = "HELP";
instButtonExit.instTextButton.text = "EXIT";
instBackgroundPause._alpha = 0;
instLabelPause._alpha = 0;
instButtonContinue._alpha = 0;
instButtonSettings._alpha = 0;
instButtonHelp._alpha = 0;
instButtonExit._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instBackgroundPause.onEnterFrame = function () {
this._alpha = this._alpha + (80 / totalNumberFramesAnimationMainMenu);
};
instLabelPause.onEnterFrame = function () {
this._y = this._y + (272 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instButtonContinue.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instButtonSettings.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation + (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instButtonHelp.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
instButtonExit.onEnterFrame = function () {
this.instRotableCircle._rotation = this.instRotableCircle._rotation - (360 / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
Symbol 793 MovieClip Frame 313 (3.15 KiB) ●
delete instBackgroundPause.onEnterFrame;
delete instLabelPause.onEnterFrame;
delete instButtonContinue.onEnterFrame;
delete instButtonSettings.onEnterFrame;
delete instButtonHelp.onEnterFrame;
delete instButtonExit.onEnterFrame;
activeChangeColor = -1;
factorEscalaContraccion = 4;
instButtonContinue.onRollOver = function () {
activeChangeColor = 0;
this.shiftInX = 0;
};
instButtonContinue.onRollOut = function () {
activeChangeColor = -1;
};
instButtonHelp.onRollOver = function () {
activeChangeColor = 1;
this.shiftInX = 0;
};
instButtonHelp.onRollOut = function () {
activeChangeColor = -1;
};
instButtonExit.onRollOver = function () {
activeChangeColor = 2;
this.shiftInX = 0;
};
instButtonExit.onRollOut = function () {
activeChangeColor = -1;
};
instButtonSettings.onRollOver = function () {
activeChangeColor = 3;
this.shiftInX = 0;
};
instButtonSettings.onRollOut = function () {
activeChangeColor = -1;
};
instButtonContinue.onEnterFrame = function () {
if (activeChangeColor == 0) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instButtonHelp.onEnterFrame = function () {
if (activeChangeColor == 1) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instButtonExit.onEnterFrame = function () {
if (activeChangeColor == 2) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
instButtonSettings.onEnterFrame = function () {
if (activeChangeColor == 3) {
this.instRotableCircle._alpha = this.instRotableCircle._alpha - factorEscalaContraccion;
if (this.instRotableCircle._alpha < 10) {
this.instRotableCircle._alpha = 100;
}
this.instRotableCircle._rotation = this.instRotableCircle._rotation + factorEscalaContraccion;
if (this.instRotableCircle._rotation > 360) {
this.instRotableCircle._rotation = 0;
}
} else {
this.instRotableCircle._alpha = 100;
this.instRotableCircle._rotation = 0;
}
};
stop();
Symbol 793 MovieClip Frame 314 (8 B)
stop();
Symbol 793 MovieClip Frame 324 (8 B)
stop();
Symbol 793 MovieClip Frame 335 (8 B)
stop();
Symbol 802 MovieClip [gameHandInformative] Frame 1 (8 B)
stop();
Symbol 802 MovieClip [gameHandInformative] Frame 2 (8 B)
stop();
Instance of Symbol 797 MovieClip [gamePause] "instGamePause" in Symbol 810 MovieClip [interfaceGameData] Frame 1 (156 B)
on (press) {
_root.instClipMenuGame._visible = true;
_root.instClipMenuGame.gotoAndPlay("pause");
_root.changeGeneralGameState(Define.STATE_GAME_MENU);
}
Symbol 830 MovieClip [clipLetreroLevel] Frame 1 (0.98 KiB)
instLowResolution.onRelease = function () {
_root.gQualitySetted = 0;
_root._quality = "LOW";
_root.instClipPresentationLevel.instLetreroLevel._alpha = 100;
_root.instClipPresentationLevel.gotoAndPlay("Seccion2");
};
instMediumResolution.onRelease = function () {
_root.gQualitySetted = 1;
_root._quality = "MEDIUM";
_root.instClipPresentationLevel.instLetreroLevel._alpha = 100;
_root.instClipPresentationLevel.gotoAndPlay("Seccion2");
};
instHighResolution.onRelease = function () {
_root.gQualitySetted = 2;
_root._quality = "HIGH";
_root.instClipPresentationLevel.instLetreroLevel._alpha = 100;
_root.instClipPresentationLevel.gotoAndPlay("Seccion2");
};
instLowResolution.instTextButton.text = "LOW QUALITY";
instMediumResolution.instTextButton.text = "MEDIUM QUALITY";
instHighResolution.instTextButton.text = "HIGH QUALITY";
instLowResolution.gotoAndStop("rojo");
instMediumResolution.gotoAndStop("rojo");
instHighResolution.gotoAndStop("rojo");
stop();
stop();
Symbol 830 MovieClip [clipLetreroLevel] Frame 2 (8 B)
stop();
Symbol 830 MovieClip [clipLetreroLevel] Frame 3 (8 B)
stop();
Symbol 830 MovieClip [clipLetreroLevel] Frame 4 (8 B)
stop();
Symbol 830 MovieClip [clipLetreroLevel] Frame 5 (8 B)
stop();
Symbol 830 MovieClip [clipLetreroLevel] Frame 6 (8 B)
stop();
Symbol 830 MovieClip [clipLetreroLevel] Frame 7 (8 B)
stop();
Symbol 830 MovieClip [clipLetreroLevel] Frame 8 (8 B)
stop();
Symbol 831 MovieClip Frame 1 (713 B)
if (_root.gCurrentLevel != -1) {
instLetreroLevel.gotoAndStop(_root.gCurrentLevel + 1);
instLetreroLevel.instTextLevel.text = "" + Define.getDay(_root.gCurrentLevel);
instLetreroLevel.instTextDifficulty.text = "" + Define.getDificulty(_root.nmDifficultySetted);
} else {
instLetreroLevel.gotoAndStop(8);
instLetreroLevel.instSongTitle.text = "Learn the basic control and goals";
instLetreroLevel.instTextDifficulty.text = "";
}
instLetreroLevel._alpha = 0;
totalNumberFramesAnimationMainMenu = 20;
instLetreroLevel.onEnterFrame = function () {
this._x = this._x - (Stage.width / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha + (100 / totalNumberFramesAnimationMainMenu);
};
Symbol 831 MovieClip Frame 21 (47 B)
delete instLetreroLevel.onEnterFrame;
stop();
Symbol 831 MovieClip Frame 22 (425 B)
delete instLetreroLevel.onEnterFrame;
totalNumberFramesAnimationMainMenu = 20;
instLetreroLevel.onEnterFrame = function () {
this._x = this._x - (Stage.width / totalNumberFramesAnimationMainMenu);
this._alpha = this._alpha - (100 / totalNumberFramesAnimationMainMenu);
if (this._alpha < 5) {
if (_root.gStateGame != Define.STATE_GAME_TUTORIAL1) {
_root.gIterator = 2;
}
this._visible = false;
}
};
Symbol 831 MovieClip Frame 44 (8 B)
stop();