Frame 1
txtPercent = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
txtPercentage = txtPercent + "% loaded";
loader.gotoAndStop(txtPercent);
Frame 2
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.play();
} else {
gotoAndPlay (1);
}
Frame 78
var myGameClass = (new com.games.skateTokyoGame.SkateTokyoGameClass(this));
myGameClass.init();
play();
Frame 84
stop();
Frame 101
play();
Frame 124
stop();
Frame 125
play();
Frame 146
stop();
Frame 147
play();
Frame 170
stop();
Symbol 6 MovieClip Frame 1
stop();
Symbol 760 MovieClip [__Packages.com.games.skateTokyoGame.SkateTokyoGameClass] Frame 0
class com.games.skateTokyoGame.SkateTokyoGameClass
{
var rootMC, __powerupArray, __obstacleArray, __sceneryArray, __enemyArray, soundManager_mc, __farthestLevelReached, isContinuing, __sceneryCurrentDepth, __powerupCurrentDepth, __obstacleCurrentDepth, __enemyCurrentDepth, myGameStateManager, myLevelManager, myUIClass, myRoadManager, mySkaterClass, myGlobalSpeed, myTimerClass, myDistanceManager, myRandomEventManager, __finishLineDown, myPowerupClass, myObstacleClass, mySceneryClass, myEnemyClass, level, __get__gameLevel;
function SkateTokyoGameClass (aMovieClip) {
rootMC = aMovieClip;
initDepths();
com.events.EventDispatcher.initialize(this);
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/sessionstart");
__powerupArray = new com.data.types.Array2();
__obstacleArray = new com.data.types.Array2();
__sceneryArray = new com.data.types.Array2();
__enemyArray = new com.data.types.Array2();
var _local2 = rootMC.attachMovie("ManagerSymbol", "soundManagerMC", depths_obj.soundManager);
_local2._visible = false;
var _local3 = new com.managers.SoundManager(_local2);
soundManager_mc = _local3;
soundManager_mc.addSound("glassesSound");
soundManager_mc.addSound("alarmSound");
soundManager_mc.addSound("barkSound");
soundManager_mc.addSound("godzillaAttackSound");
soundManager_mc.addSound("godzillaRoarSound");
soundManager_mc.addSound("level1loop");
soundManager_mc.addSound("level2loop");
soundManager_mc.addSound("level3loop");
soundManager_mc.addSound("youwin");
soundManager_mc.addSound("youlose");
soundManager_mc.addSound("wipeout");
soundManager_mc.addSound("hit1");
soundManager_mc.addSound("hit2");
soundManager_mc.addSound("grind");
soundManager_mc.addSound("kickjump");
soundManager_mc.addSound("land");
soundManager_mc.addSound("pushoff");
soundManager_mc.setSoundVolume("level3loop", 50);
soundManager_mc.playSound("level3loop", 0, 999);
__farthestLevelReached = 0;
isContinuing = false;
}
function addEventListener() {
}
function removeEventListener() {
}
function dispatchEvent() {
}
function init() {
createClasses();
initClasses();
}
function initDepths() {
depths_obj.gameStateManagerDepth = 0;
depths_obj.soundManager = 1;
depths_obj.roadDepth = 10;
depths_obj.obstacleDepth_lowest = 50;
depths_obj.obstacleDepth_highest = 59;
depths_obj.enemyDepth_lowest = 70;
depths_obj.enemyDepth_highest = 79;
depths_obj.powerupDepth_lowest = 80;
depths_obj.powerupDepth_highest = 89;
depths_obj.skaterDepth = 190;
depths_obj.sceneryDepth_lowest = 200;
depths_obj.sceneryDepth_highest = 210;
depths_obj.UIDepth = 880;
depths_obj.hurryDepth = 885;
depths_obj.transitionDepth = 890;
depths_obj.readySetGoDepth = 900;
depths_obj.FPSmeter = 1000;
__sceneryCurrentDepth = depths_obj.sceneryDepth_highest;
__powerupCurrentDepth = depths_obj.powerupDepth_highest;
__obstacleCurrentDepth = depths_obj.obstacleDepth_highest;
__enemyCurrentDepth = depths_obj.enemyDepth_highest;
}
function createClasses() {
var _local2 = new com.managers.GameStateManager(rootMC, depths_obj.gameStateManagerDepth);
myGameStateManager = _local2;
myGameStateManager.addEventListener("onIntroGameStateTick", this);
myGameStateManager.addEventListener("onInstructionsGameStateTick", this);
myGameStateManager.addEventListener("onSetupGameStateTick", this);
myGameStateManager.addEventListener("onRoundSetupStateTick", this);
myGameStateManager.addEventListener("onMainGameStateTick", this);
myGameStateManager.addEventListener("onLoseGameStateTick", this);
myGameStateManager.addEventListener("onWinGameStateTick", this);
var _local3 = new com.managers.LevelManager();
myLevelManager = _local3;
}
function initClasses() {
myGameStateManager.init();
}
function setupGame() {
myGameStateManager.__set__setGameState("GS_ROUND_SETUP_");
if (!isContinuing) {
trace("you are continuing in setupGame, so don't re-init the level manager");
myLevelManager.init();
}
}
function setupInstructionsState() {
rootMC.gotoAndStop("instructions");
myGameStateManager.__set__setGameState("GS_GAME_INSTRUCTIONS_");
}
function setupPlayState() {
rootMC.gotoAndStop("playFrame");
myGameStateManager.__set__setGameState("GS_GAME_SETUP_");
}
function setupRound() {
rootMC.gotoAndStop("playFrame");
if (!isContinuing) {
trace("you are continuing in setupGame, so don't increment the level");
myLevelManager.incrementLevel();
}
com.utilities.StatTracker.submitStat(("/flashgames/skateTokyo/level_" + myLevelManager.__get__getGameLevel()) + "_reached");
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/totallogosshown");
var _local7 = new com.games.skateTokyoGame.UIClass(rootMC, depths_obj.UIDepth);
myUIClass = _local7;
var _local8 = new com.games.skateTokyoGame.RoadManager(rootMC, depths_obj.roadDepth);
myRoadManager = _local8;
var _local5 = new com.games.skateTokyoGame.SkaterClass(rootMC, depths_obj.skaterDepth, myLevelManager.__get__getGameLevel());
mySkaterClass = _local5;
var _local2 = new com.games.skateTokyoGame.GlobalSpeed();
myGlobalSpeed = _local2;
var _local3 = new com.games.skateTokyoGame.TimerClass();
myTimerClass = _local3;
var _local4 = new com.games.skateTokyoGame.DistanceManager(myUIClass.__get__getUIClip());
myDistanceManager = _local4;
var _local6 = new com.games.skateTokyoGame.RandomEventManager();
myRandomEventManager = _local6;
myGameStateManager.addEventListener("onMainGameStateTick", myGlobalSpeed);
myGameStateManager.addEventListener("onMainGameStateTick", mySkaterClass);
myGameStateManager.addEventListener("onMainGameStateTick", myRoadManager);
myGameStateManager.addEventListener("onMainGameStateTick", myTimerClass);
myGlobalSpeed.init();
myGlobalSpeed.addEventListener("onSpeedChange", mySkaterClass);
myGlobalSpeed.addEventListener("onSpeedChange", myRoadManager);
myTimerClass.addEventListener("onOutOfTime", this);
myDistanceManager.addEventListener("onDistanceReached", this);
myDistanceManager.addEventListener("onMovedDistance", myRandomEventManager);
myRandomEventManager.addEventListener("onCreatePowerup", this);
myRandomEventManager.addEventListener("onCreateObstacle", this);
myRandomEventManager.addEventListener("onCreateLightpost", this);
myRandomEventManager.addEventListener("onCreateTree", this);
myRandomEventManager.addEventListener("onCreateEnemy", this);
mySkaterClass.addEventListener("onSkaterJump", this);
myUIClass.updateGameLevel(myLevelManager.__get__getGameLevel());
showTransition();
__finishLineDown = false;
myGameStateManager.__set__setGameState("GS_PAUSE_");
soundManager_mc.stopSound("level1loop");
soundManager_mc.stopSound("level2loop");
soundManager_mc.stopSound("level3loop");
soundManager_mc.stopSound("youwin");
soundManager_mc.stopSound("youlose");
soundManager_mc.setSoundVolume(("level" + myLevelManager.__get__getGameLevel()) + "loop", 50);
soundManager_mc.playSound(("level" + myLevelManager.__get__getGameLevel()) + "loop", 0, 999);
}
function startRound() {
myTimerClass.init();
myDistanceManager.init();
myRandomEventManager.init(myLevelManager.__get__getGameLevel());
mySkaterClass.init();
myGameStateManager.__set__setGameState("GS_GAME_");
rootMC.attachMovie("ReadySetGoSymbol", "readySetGo_mc", depths_obj.readySetGoDepth, {_x:275});
}
function setupWinRoundState() {
cleanUpListeners();
cleanUpStage();
trace("no longer continuing");
isContinuing = false;
if (myLevelManager.__get__getGameLevel() == 3) {
setupWinState();
} else {
com.utilities.StatTracker.submitStat(("/flashgames/skateTokyo/level_" + myLevelManager.__get__getGameLevel()) + "_passed");
rootMC.gotoAndStop("winRoundFrame");
myGameStateManager.__set__setGameState("GS_END_OF_ROUND_");
}
soundManager_mc.stopSound("alarmSound");
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/totallogosshown");
}
function nextRoundPrompt() {
setupRound();
}
function showTransition() {
rootMC.attachMovie(("transition" + myLevelManager.__get__getGameLevel()) + "Symbol", "transitionSymbolThing", depths_obj.transitionDepth, {_x:275, _y:200});
}
function STAGE_ANIMATION_ATTACH_HURRY() {
rootMC.attachMovie("hurrySymbol", "hurry_symbol_mc", depths_obj.hurryDepth, {_x:275, _y:200});
soundManager_mc.setSoundVolume("alarmSound", 50);
soundManager_mc.playSound("alarmSound", 0, 1);
}
function STAGE_ANIMATION_COMPLETE_Transition() {
startRound();
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/totallogosshown");
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/totallogosshown");
}
function STAGE_ANIMATION_COMPLETE_Jump() {
mySkaterClass.doneJumping();
}
function STAGE_ANIMATION_COMPLETE_Land() {
soundManager_mc.setSoundVolume("land", 50);
soundManager_mc.playSound("land", 0, 1);
}
function STAGE_ANIMATION_COMPLETE_Pushoff() {
mySkaterClass.donePushingOff();
}
function STAGE_ANIMATION_COMPLETE_Fall() {
mySkaterClass.doneFalling();
myGlobalSpeed.__set__setIsSkaterFalling(false);
}
function STAGE_ANIMATION_PushOff() {
soundManager_mc.setSoundVolume("pushoff", 50);
soundManager_mc.playSound("pushoff", 0, 1);
}
function STAGE_ANIMATION_CrashLand() {
soundManager_mc.setSoundVolume("wipeout", 50);
soundManager_mc.playSound("wipeout", 0, 1);
}
function setupWinState() {
rootMC.gotoAndStop("winGame");
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/gamewon");
myGameStateManager.__set__setGameState("GS_WIN_");
soundManager_mc.stopSound("level1loop");
soundManager_mc.stopSound("level2loop");
soundManager_mc.stopSound("level3loop");
soundManager_mc.setSoundVolume("youwin", 50);
soundManager_mc.playSound("youwin", 0, 999);
}
function setupLoseState() {
rootMC.gotoAndStop("loseFrame");
cleanUpListeners();
cleanUpStage();
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/gamelost");
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/totallogosshown");
myGameStateManager.__set__setGameState("GS_LOSE_");
soundManager_mc.stopSound("level1loop");
soundManager_mc.stopSound("level2loop");
soundManager_mc.stopSound("level3loop");
soundManager_mc.stopSound("alarmSound");
soundManager_mc.setSoundVolume("youlose", 50);
soundManager_mc.playSound("youlose", 0, 999);
}
function setupPlayAgainState() {
rootMC.gotoAndStop("playFrame");
myGameStateManager.__set__setGameState("GS_GAME_SETUP_");
}
function exampleEvent() {
var _local2 = new com.events.Event(this, "onExampleEvent");
_local2.data = new Object();
_local2.data.butts = true;
dispatchEvent(_local2);
}
function cleanUpListeners() {
myGameStateManager.removeEventListener("onMainGameStateTick", myGlobalSpeed);
myGameStateManager.removeEventListener("onMainGameStateTick", mySkaterClass);
myGameStateManager.removeEventListener("onMainGameStateTick", myRoadManager);
myGameStateManager.removeEventListener("onMainGameStateTick", myTimerClass);
myGlobalSpeed.removeEventListener("onSpeedChange", mySkaterClass);
myGlobalSpeed.removeEventListener("onSpeedChange", myRoadManager);
myTimerClass.removeEventListener("onOutOfTime", this);
myDistanceManager.removeEventListener("onDistanceReached", this);
myDistanceManager.removeEventListener("onMovedDistance", myRandomEventManager);
myRandomEventManager.removeEventListener("onCreatePowerup", this);
myRandomEventManager.removeEventListener("onCreateObstacle", this);
myRandomEventManager.removeEventListener("onCreateLightpost", this);
myRandomEventManager.removeEventListener("onCreateTree", this);
myRandomEventManager.removeEventListener("onCreateEnemy", this);
mySkaterClass.removeEventListener("onSkaterJump", this);
}
function cleanUpStage() {
mySkaterClass.removeMe();
myRoadManager.removeMe();
myUIClass.removeMe();
rootMC.hurry_symbol_mc.removeMovieClip();
var _local3 = __powerupArray.length;
var _local2 = 0;
while (_local2 < _local3) {
removePowerUp(__powerupArray[0]);
_local2++;
}
_local3 = __obstacleArray.length;
_local2 = 0;
while (_local2 < _local3) {
removeObstacle(__obstacleArray[0]);
_local2++;
}
_local3 = __sceneryArray.length;
_local2 = 0;
while (_local2 < _local3) {
removeScenery(__sceneryArray[0]);
_local2++;
}
_local3 = __enemyArray.length;
_local2 = 0;
while (_local2 < _local3) {
removeEnemy(__enemyArray[0]);
_local2++;
}
}
function playerGetsPowerup(aClass) {
mySkaterClass.hitPowerup();
myGlobalSpeed.changeSpeed(100);
removePowerUp(aClass);
soundManager_mc.setSoundVolume("glassesSound", 50);
soundManager_mc.playSound("glassesSound", 0, 0);
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/powerupcollected");
}
function playerHitsObstacle(aClass) {
mySkaterClass.hitObstacle();
myGlobalSpeed.changeSpeed(-100);
myGlobalSpeed.__set__setIsSkaterFalling(true);
soundManager_mc.setSoundVolume("hit1", 50);
soundManager_mc.playSound("hit1", 0, 1);
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/hitObstacle");
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/wipedOut");
}
function playerHitsEnemy(aClass) {
mySkaterClass.hitObstacle();
myGlobalSpeed.changeSpeed(-100);
myGlobalSpeed.__set__setIsSkaterFalling(true);
soundManager_mc.setSoundVolume("hit1", 50);
soundManager_mc.playSound("hit1", 0, 1);
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/hitEnemy");
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/wipedOut");
aClass.playerHitMe();
}
function removePowerUp(aClass) {
myGlobalSpeed.removeEventListener("onSpeedChange", aClass);
myGameStateManager.removeEventListener("onMainGameStateTick", aClass);
aClass.removeEventListener("onOffBottomOfStage", this);
aClass.removeEventListener("onPowerupMove", this);
aClass.removeMe();
__powerupArray.deleteOne(aClass);
}
function removeObstacle(aClass) {
myGlobalSpeed.removeEventListener("onSpeedChange", aClass);
myGameStateManager.removeEventListener("onMainGameStateTick", aClass);
aClass.removeEventListener("onObstacleOffBottomOfStage", this);
aClass.removeEventListener("onObstacleMove", this);
aClass.removeMe();
__obstacleArray.deleteOne(aClass);
}
function removeScenery(aClass) {
myGlobalSpeed.removeEventListener("onSpeedChange", aClass);
myGameStateManager.removeEventListener("onMainGameStateTick", aClass);
aClass.removeEventListener("onObstacleOffBottomOfStage", this);
__sceneryArray.deleteOne(aClass);
aClass.removeMe();
}
function removeEnemy(aClass) {
myGlobalSpeed.removeEventListener("onSpeedChange", aClass);
myGameStateManager.removeEventListener("onMainGameStateTick", aClass);
aClass.removeEventListener("onObstacleOffBottomOfStage", this);
aClass.removeEventListener("onObstacleMove", this);
__enemyArray.deleteOne(aClass);
aClass.removeMe();
}
function STAGE_BUTTON_Instructions() {
setupInstructionsState();
}
function STAGE_BUTTON_LogoButton() {
trace("STAGE_BUTTON_LogoButton");
getURL ("http://www.myspace.com/squareo", "_blank");
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/websitebuttonpressed");
}
function STAGE_BUTTON_SoundButton(aPass) {
switch (aPass) {
case "play" :
soundManager_mc.setGlobalVolume(100);
break;
case "stop" :
soundManager_mc.setGlobalVolume(0);
}
}
function STAGE_BUTTON_Play() {
setupPlayState();
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/playpressed");
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/totallogosshown");
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/totallogosshown");
}
function STAGE_BUTTON_WinRound() {
setupWinRoundState();
}
function STAGE_BUTTON_NextRound() {
nextRoundPrompt();
}
function STAGE_BUTTON_Lose() {
setupLoseState();
}
function STAGE_BUTTON_PlayAgain(aString) {
trace("STAGE_BUTTON_PlayAgain");
switch (aString) {
case "lost" :
__farthestLevelReached = myLevelManager.getGameLevel;
trace("__farthestLevelReached = " + __farthestLevelReached);
isContinuing = true;
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/tryagainpressed");
break;
case "win" :
__farthestLevelReached = 0;
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/playagainpressed");
}
setupPlayAgainState();
}
function createPowerUp(aType) {
switch (aType) {
case "finishline" :
makePowerUp("finishline");
break;
case "powerup" :
if (__powerupArray.length >= 1) {
break;
}
makePowerUp("powerup");
}
}
function makePowerUp(aType) {
var _local2 = new com.games.skateTokyoGame.PowerupClass(rootMC, __powerupCurrentDepth, myGlobalSpeed.__get__getGlobalSpeed());
myPowerupClass = _local2;
myPowerupClass.init(aType);
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/powerupspawned");
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/totallogosshown");
__powerupArray.push(myPowerupClass);
myGlobalSpeed.addEventListener("onSpeedChange", myPowerupClass);
myGameStateManager.addEventListener("onMainGameStateTick", myPowerupClass);
myPowerupClass.addEventListener("onOffBottomOfStage", this);
myPowerupClass.addEventListener("onPowerupMove", this);
__powerupCurrentDepth--;
if (__powerupCurrentDepth < depths_obj.powerupDepth_lowest) {
__powerupCurrentDepth = depths_obj.powerupDepth_highest;
}
}
function createObstacle(aEvent) {
var _local2;
switch (myLevelManager.__get__getGameLevel()) {
case 1 :
_local2 = 4;
break;
case 2 :
_local2 = 5;
break;
case 3 :
_local2 = 6;
}
_local2 = 3 + myLevelManager.__get__getGameLevel();
if (__obstacleArray.length < _local2) {
var _local3 = new com.games.skateTokyoGame.ObstacleClass(rootMC, __obstacleCurrentDepth, myGlobalSpeed.__get__getGlobalSpeed(), aEvent);
myObstacleClass = _local3;
myObstacleClass.init(myLevelManager.__get__getGameLevel());
__obstacleArray.push(myObstacleClass);
myGlobalSpeed.addEventListener("onSpeedChange", myObstacleClass);
myGameStateManager.addEventListener("onMainGameStateTick", myObstacleClass);
myObstacleClass.addEventListener("onObstacleOffBottomOfStage", this);
myObstacleClass.addEventListener("onObstacleMove", this);
__obstacleCurrentDepth--;
if (__obstacleCurrentDepth < depths_obj.obstacleDepth_lowest) {
__obstacleCurrentDepth = depths_obj.obstacleDepth_highest;
}
}
}
function createTree() {
var _local2 = new com.games.skateTokyoGame.SceneryClass(rootMC, __sceneryCurrentDepth, myGlobalSpeed.__get__getGlobalSpeed());
mySceneryClass = _local2;
mySceneryClass.init();
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/treespawned");
__sceneryArray.push(mySceneryClass);
myGlobalSpeed.addEventListener("onSpeedChange", mySceneryClass);
myGameStateManager.addEventListener("onMainGameStateTick", mySceneryClass);
mySceneryClass.addEventListener("onSceneryOffBottomOfStage", this);
__sceneryCurrentDepth--;
if (__sceneryCurrentDepth < depths_obj.sceneryDepth_lowest) {
__sceneryCurrentDepth = depths_obj.sceneryDepth_highest;
}
}
function createEnemy() {
var _local2 = new com.games.skateTokyoGame.EnemyClass(rootMC, __enemyCurrentDepth, myGlobalSpeed.__get__getGlobalSpeed());
myEnemyClass = _local2;
myEnemyClass.init(myLevelManager.__get__getGameLevel());
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/enemyspawned");
__enemyArray.push(myEnemyClass);
myGlobalSpeed.addEventListener("onSpeedChange", myEnemyClass);
myGameStateManager.addEventListener("onMainGameStateTick", myEnemyClass);
myEnemyClass.addEventListener("onEnemyOffBottomOfStage", this);
myEnemyClass.addEventListener("onEnemyMove", this);
__enemyCurrentDepth--;
if (__enemyCurrentDepth < depths_obj.enemyDepth_lowest) {
__enemyCurrentDepth = depths_obj.enemyDepth_highest;
}
}
function onSomeEvent(aEvent) {
}
function onPowerupMove(aEvent) {
if (!mySkaterClass.__get__getIsFalling()) {
var _local2 = aEvent.data.whichClass;
var _local4 = _local2.getMC;
var _local3 = mySkaterClass.__get__getMC().hitTest_mc;
if (_local3.hitTest(_local4)) {
if (_local2.getIsFinishLine) {
setupWinRoundState();
} else {
playerGetsPowerup(_local2);
}
}
}
}
function onObstacleMove(aEvent) {
if (!mySkaterClass.__get__getIsFalling()) {
if (!mySkaterClass.__get__getIsInvuln()) {
var _local2 = aEvent.data.whichClass;
var _local4 = _local2.getMC;
var _local3 = mySkaterClass.__get__getMC().hitTest_mc;
if (_local2.getIsJumpable) {
if (!mySkaterClass.__get__getIsJumping()) {
if (_local4.hitTest(_local3)) {
playerHitsObstacle(_local2);
}
}
} else if (_local4.hitTest(_local3)) {
playerHitsObstacle(_local2);
}
}
}
}
function onEnemyMove(aEvent) {
if (!mySkaterClass.__get__getIsFalling()) {
if (!mySkaterClass.__get__getIsInvuln()) {
var _local2 = aEvent.data.whichClass;
var _local4 = _local2.getMC;
var _local3 = mySkaterClass.__get__getMC().hitTest_mc;
if (_local4.hitTest(_local3)) {
playerHitsEnemy(_local2);
}
}
}
}
function onEnemyOffBottomOfStage(aEvent) {
removeEnemy(aEvent.data.whichClass);
}
function onCreateLightpost(aEvent) {
}
function onCreateTree(aEvent) {
if (myGlobalSpeed.__get__getGlobalSpeed() > 0) {
createTree();
}
}
function onSceneryOffBottomOfStage(aEvent) {
removeScenery(aEvent.data.whichClass);
}
function onObstacleOffBottomOfStage(aEvent) {
removeObstacle(aEvent.data.whichClass);
}
function onOffBottomOfStage(aEvent) {
removePowerUp(aEvent.data.whichClass);
}
function onCreateObstacle(aEvent) {
if (!__finishLineDown) {
if (myGlobalSpeed.__get__getGlobalSpeed() > 0) {
createObstacle(aEvent);
}
}
}
function onCreatePowerup(aEvent) {
if (!__finishLineDown) {
if (myGlobalSpeed.__get__getGlobalSpeed() > 0) {
createPowerUp("powerup");
}
}
}
function onCreateEnemy(aEvent) {
if (!__finishLineDown) {
if (myGlobalSpeed.__get__getGlobalSpeed() > 0) {
createEnemy();
}
}
}
function onOutOfTime(aEvent) {
setupLoseState();
}
function onDistanceReached(aEvent) {
createPowerUp("finishline");
__finishLineDown = true;
}
function onFinishlineCrossed(aEvent) {
setupWinRoundState();
}
function onIntroGameStateTick(aEvent) {
}
function onInstructionsGameStateTick(aEvent) {
}
function onSetupGameStateTick(aEvent) {
setupGame();
}
function onRoundSetupStateTick(aEvent) {
setupRound();
}
function onMainGameStateTick(aEvent) {
myUIClass.updateTimeLeft(myTimerClass.__get__getTimeLeft());
myUIClass.updateGlobalSpeed(myGlobalSpeed.__get__getGlobalSpeed());
myDistanceManager.pushCurrentSpeed(myGlobalSpeed.__get__getGlobalSpeed());
myRandomEventManager.tick();
}
function onLoseGameStateTick(aEvent) {
}
function onWinGameStateTick(aEvent) {
}
function onSkaterJump(aEvent) {
soundManager_mc.setSoundVolume("kickjump", 50);
soundManager_mc.playSound("kickjump", 0, 1);
}
function get getGameLevel() {
return(level);
}
function set gameLevel(level_inc) {
level = level_inc;
//return(__get__gameLevel());
}
var depths_obj = new Object();
}
Symbol 761 MovieClip [__Packages.com.utilities.FPSMeter] Frame 0
class com.utilities.FPSMeter
{
var rootMC, myDepth, countedFrames, startTimer, myTextArea, level, __get__gameLevel;
function FPSMeter (aRoot, aDepth) {
trace("FPSMeter");
rootMC = aRoot;
myDepth = aDepth;
com.events.EventDispatcher.initialize(this);
countedFrames = 0;
startTimer = getTimer();
trace("startTimer = " + startTimer);
}
function addEventListener() {
}
function removeEventListener() {
}
function dispatchEvent() {
}
function init() {
rootMC.createEmptyMovieClip("SuperClippyThing", myDepth);
rootMC.SuperClippyThing.ref = this;
rootMC.SuperClippyThing.onPress = function () {
trace("boop");
this.ref.resetStats();
};
rootMC.SuperClippyThing.createTextField("FPSText_txt", myDepth, 0, 0, 50, 50);
myTextArea = rootMC.SuperClippyThing.FPSText_txt;
myTextArea.selectable = false;
rootMC.SuperClippyThing.onEnterFrame = function () {
var _local2 = this.ref;
var _local6 = _local2.countedFrames++;
var _local3 = getTimer();
var _local4 = (_local3 - _local2.startTimer) / 1000;
var _local5 = Math.round(_local6 / _local4);
_local2.myTextArea.text = _local5;
};
}
function resetStats() {
trace("resetStats");
countedFrames = 0;
startTimer = getTimer();
}
function exampleEvent() {
var _local2 = new com.events.Event(this, "onExampleEvent");
_local2.data = new Object();
_local2.data.butts = true;
dispatchEvent(_local2);
}
function onSomeEvent(aEvent) {
}
function get getGameLevel() {
return(level);
}
function set gameLevel(level_inc) {
level = level_inc;
//return(__get__gameLevel());
}
}
Symbol 762 MovieClip [__Packages.com.events.EventDispatcher] Frame 0
class com.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (isTracing_boolean == true) {
trace(("@@EventDispatcher.initialize (" + object) + ")");
}
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new com.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (isTracing_boolean == true) {
trace((("@@" + this) + ".dispatchEvent() type: ") + eventObj.type);
}
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
if (isTracing_boolean == true) {
trace(((((("@@" + this) + ".addEventListener (") + event) + ",") + handler) + ")");
}
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
if (isTracing_boolean == true) {
trace(((((("@@" + this) + ".removeEventListener (") + event) + ",") + handler) + ")");
}
var _local3 = "__q_" + event;
_removeEventListener(this[_local3], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
static var isTracing_boolean = false;
}
Symbol 763 MovieClip [__Packages.com.events.Event] Frame 0
class com.events.Event extends Object
{
var target, type;
function Event (aTarget_obj, aType_str) {
super();
target = aTarget_obj;
type = aType_str;
}
}
Symbol 764 MovieClip [__Packages.com.managers.GameStateManager] Frame 0
class com.managers.GameStateManager
{
var gameEnterframeEngineClipDepth, rootMC, gameState, __get__setGameState;
function GameStateManager (aRootMC, aDepth) {
gameEnterframeEngineClipDepth = aDepth;
rootMC = aRootMC;
com.events.EventDispatcher.initialize(this);
}
function addEventListener() {
}
function removeEventListener() {
}
function dispatchEvent() {
}
function init() {
rootMC.createEmptyMovieClip("gameEngineEnterframe_MC", gameEnterframeEngineClipDepth);
rootMC.gameEngineEnterframe_MC.ref = this;
rootMC.gameEngineEnterframe_MC.onEnterFrame = function () {
this.ref.gameEngineLoop();
};
gameState = GS_INTRO_;
}
function gameEngineLoop() {
if (gameState == GS_INTRO_) {
var _local2 = new com.events.Event(this, "onIntroGameStateTick");
dispatchEvent(_local2);
} else if (gameState == GS_GAME_INSTRUCTIONS_) {
var _local2 = new com.events.Event(this, "onInstructionsGameStateTick");
dispatchEvent(_local2);
} else if (gameState == GS_GAME_SETUP_) {
var _local2 = new com.events.Event(this, "onSetupGameStateTick");
dispatchEvent(_local2);
} else if (gameState == GS_ROUND_SETUP_) {
var _local2 = new com.events.Event(this, "onRoundSetupStateTick");
dispatchEvent(_local2);
} else if (gameState == GS_GAME_) {
var _local2 = new com.events.Event(this, "onMainGameStateTick");
dispatchEvent(_local2);
} else if (gameState == GS_END_OF_ROUND_) {
var _local2 = new com.events.Event(this, "onEndOfRoundGameStateTick");
dispatchEvent(_local2);
} else if (gameState == GS_LOSE_ROUND_) {
var _local2 = new com.events.Event(this, "onLoseRoundGameStateTick");
dispatchEvent(_local2);
} else if (gameState == GS_SETUP_BONUS_ROUND_) {
var _local2 = new com.events.Event(this, "onSetupBonusRoundGameStateTick");
dispatchEvent(_local2);
} else if (gameState == GS_BONUS_ROUND_) {
var _local2 = new com.events.Event(this, "onBonusRoundGameStateTick");
dispatchEvent(_local2);
} else if (gameState == GS_END_OF_BONUS_ROUND_) {
var _local2 = new com.events.Event(this, "onEndOfBonusRoundGameStateTick");
dispatchEvent(_local2);
} else if (gameState == GS_LOSE_) {
var _local2 = new com.events.Event(this, "onLoseGameStateTick");
dispatchEvent(_local2);
} else if (gameState == GS_WIN_) {
var _local2 = new com.events.Event(this, "onWinGameStateTick");
dispatchEvent(_local2);
} else if (gameState == GS_PAUSE_) {
var _local2 = new com.events.Event(this, "onPauseGameStateTick");
dispatchEvent(_local2);
}
}
function set setGameState(aGameState) {
trace("setting gameState to " + aGameState);
gameState = this[aGameState];
//return(__get__setGameState());
}
function get getGameState() {
return(gameState);
}
var GS_SETUP_ = 1;
var GS_INTRO_ = 2;
var GS_GAME_INSTRUCTIONS_ = 13;
var GS_GAME_SETUP_ = 3;
var GS_ROUND_SETUP_ = 4;
var GS_GAME_ = 5;
var GS_END_OF_ROUND_ = 6;
var GS_LOSE_ROUND_ = 12;
var GS_SETUP_BONUS_ROUND_ = 7;
var GS_BONUS_ROUND_ = 8;
var GS_END_OF_BONUS_ROUND_ = 9;
var GS_LOSE_ = 10;
var GS_PAUSE_ = 11;
var GS_WIN_ = 14;
}
Symbol 765 MovieClip [__Packages.com.managers.LevelManager] Frame 0
class com.managers.LevelManager
{
var level, stage, __get__gameLevel, __get__gameStage;
function LevelManager () {
com.events.EventDispatcher.initialize(this);
}
function addEventListener() {
}
function removeEventListener() {
}
function dispatchEvent() {
}
function init() {
trace("LevelManager init");
level = 0;
stage = 0;
}
function resetLevel() {
var _local2 = level;
var _local3 = stage;
if (_local2 < 4) {
level = 1;
} else if ((_local2 > 3) and (_local2 < 7)) {
level = 4;
} else if ((_local2 < 6) and (_local2 < 9)) {
level = 7;
}
}
function incrementLevel() {
level++;
}
function incrementStage() {
stage++;
}
function exampleEvent() {
var _local2 = new com.events.Event(this, "onExampleEvent");
_local2.data = new Object();
_local2.data.butts = true;
dispatchEvent(_local2);
}
function onSomeEvent(aEvent) {
}
function get getGameLevel() {
return(level);
}
function get getGameStage() {
return(stage);
}
function set gameLevel(aLevel) {
level = aLevel;
//return(__get__gameLevel());
}
function set gameStage(aStage) {
stage = aStage;
//return(__get__gameStage());
}
}
Symbol 766 MovieClip [__Packages.com.games.skateTokyoGame.SkaterClass] Frame 0
class com.games.skateTokyoGame.SkaterClass
{
var rootMC, myDepth, myMC, isGoingLeft, isGoingRight, isJumping, isPedaling, isFalling, isInvuln, myKeyboardManager, initialInvulnTime, initialFlipFlopTime, myGlobalSpeed, level, __get__gameLevel;
function SkaterClass (aRootMC, aDepth, aGameLevel) {
rootMC = aRootMC;
myDepth = aDepth;
rootMC.attachMovie("SkaterSymbol", "skaterSymbol_mc", aDepth, {_x:275, _y:400 - originY});
myMC = rootMC.skaterSymbol_mc;
myMC.hitTest_mc._visible = false;
myMC.gotoAndStop(aGameLevel);
myMC.cacheAsBitmap = true;
com.events.EventDispatcher.initialize(this);
isGoingLeft = false;
isGoingRight = false;
isJumping = false;
isPedaling = false;
isFalling = false;
isInvuln = false;
}
function addEventListener() {
}
function removeEventListener() {
}
function dispatchEvent() {
}
function init() {
var _local2 = new com.managers.KeyboardManager();
myKeyboardManager = _local2;
}
function doneJumping() {
isJumping = false;
setPoseBasedOnSpeed();
}
function donePushingOff() {
isPedaling = false;
setPoseBasedOnSpeed();
}
function doneFalling() {
isFalling = false;
myMC._x = 275;
myMC._y = 400 - originY;
triggerInvuln();
}
function exampleEvent() {
var _local2 = new com.events.Event(this, "onExampleEvent");
_local2.data = new Object();
_local2.data.butts = true;
dispatchEvent(_local2);
}
function removeMe() {
myMC.removeMovieClip();
}
function hitObstacle() {
isFalling = true;
isJumping = false;
myMC.skater_mc.gotoAndStop(7);
}
function hitPowerup() {
triggerInvuln();
}
function triggerInvuln() {
isInvuln = true;
initialInvulnTime = getTimer();
initialFlipFlopTime = getTimer();
}
function doRight() {
if (!isJumping) {
if (!isPedaling) {
if (!isGoingRight) {
isGoingRight = true;
isGoingLeft = false;
myMC.skater_mc.gotoAndStop(3);
}
}
}
myMC._x = myMC._x + (turnSpeed + (myGlobalSpeed / 20));
if (myMC._x > 450) {
myMC._x = 450;
}
}
function doLeft() {
if (!isJumping) {
if (!isPedaling) {
if (!isGoingLeft) {
isGoingLeft = true;
isGoingRight = false;
myMC.skater_mc.gotoAndStop(2);
}
}
}
myMC._x = myMC._x - (turnSpeed + (myGlobalSpeed / 20));
if (myMC._x < 100) {
myMC._x = 100;
}
}
function doJump() {
if (!isJumping) {
if (!isPedaling) {
isJumping = true;
myMC.skater_mc.gotoAndStop(4);
var _local2 = new com.events.Event(this, "onSkaterJump");
_local2.data = new Object();
_local2.data.butts = true;
dispatchEvent(_local2);
}
}
}
function setPoseBasedOnSpeed() {
if (!isJumping) {
if (!isPedaling) {
if (myGlobalSpeed <= 50) {
myMC.skater_mc.gotoAndStop(1);
} else if (myGlobalSpeed > 50) {
myMC.skater_mc.gotoAndStop(6);
} else {
trace("something is wrong with SkaterClass.setPoseBasedOnSpeed()");
}
}
}
}
function setY() {
myMC._y = (400 - originY) - (myGlobalSpeed / 2);
}
function onSomeEvent(aEvent) {
}
function onSpeedChange(aEvent) {
myGlobalSpeed = aEvent.data.globalSpeed;
if (!isFalling) {
if (aEvent.data.pedaling) {
if (!isPedaling) {
myMC.skater_mc.gotoAndStop(5);
isPedaling = true;
}
}
}
}
function onMainGameStateTick(aEvent) {
if (!isFalling) {
if (myKeyboardManager.getKeyDown(37) || (myKeyboardManager.getKeyDown(65))) {
doLeft();
}
if (myKeyboardManager.getKeyDown(39) || (myKeyboardManager.getKeyDown(68))) {
doRight();
}
if (myKeyboardManager.getKeyDown(32)) {
doJump();
}
if ((((!myKeyboardManager.getKeyDown(39)) && (!myKeyboardManager.getKeyDown(68))) && (!myKeyboardManager.getKeyDown(37))) && (!myKeyboardManager.getKeyDown(65))) {
setPoseBasedOnSpeed();
}
setY();
}
if (isInvuln) {
var _local2 = getTimer() - initialFlipFlopTime;
if (_local2 > flipFlopDuration) {
initialFlipFlopTime = getTimer();
if (myMC._visible) {
myMC._visible = false;
} else {
myMC._visible = true;
}
}
var _local3 = getTimer() - initialInvulnTime;
if (_local3 > invulnDuration) {
isInvuln = false;
myMC._visible = true;
}
setY();
}
}
function get getGameLevel() {
return(level);
}
function get getIsJumping() {
return(isJumping);
}
function get getIsFalling() {
return(isFalling);
}
function get getIsInvuln() {
return(isInvuln);
}
function get getMC() {
return(myMC);
}
function set gameLevel(level_inc) {
level = level_inc;
//return(__get__gameLevel());
}
var turnSpeed = 5;
var originY = 50;
var flipFlopDuration = 100;
var invulnDuration = 3000;
}
Symbol 767 MovieClip [__Packages.com.managers.KeyboardManager] Frame 0
class com.managers.KeyboardManager
{
var ref, level, __get__gameLevel;
function KeyboardManager () {
com.events.EventDispatcher.initialize(this);
myListener.onKeyUp = onKeyUpEventFunction;
myListener.onKeyDown = onKeyDownEventFunction;
myListener.ref = this;
Key.addListener(myListener);
}
function addEventListener() {
}
function removeEventListener() {
}
function dispatchEvent() {
}
function init() {
}
function onKeyUpEventFunction() {
var _local2 = new com.events.Event(this, "onKeyUpEvent");
_local2.data = new Object();
_local2.data.keyDownNumber = Key.getCode();
ref.dispatchEvent(_local2);
}
function onKeyDownEventFunction() {
var _local2 = new com.events.Event(this, "onKeyDownEvent");
_local2.data = new Object();
_local2.data.keyDownNumber = Key.getCode();
ref.dispatchEvent(_local2);
}
function exampleEvent() {
var _local2 = new com.events.Event(this, "onExampleEvent");
_local2.data = new Object();
_local2.data.butts = true;
dispatchEvent(_local2);
}
function onSomeEvent(aEvent) {
}
function getKeyDown(aKeyNumber) {
return(Key.isDown(aKeyNumber));
}
function get getGameLevel() {
return(level);
}
function set gameLevel(level_inc) {
level = level_inc;
//return(__get__gameLevel());
}
var myListener = new Object();
}
Symbol 768 MovieClip [__Packages.com.games.skateTokyoGame.GlobalSpeed] Frame 0
class com.games.skateTokyoGame.GlobalSpeed
{
var globalSpeed, isSkaterFalling, myKeyboardManager, level, __get__gameLevel, __get__setIsSkaterFalling;
function GlobalSpeed () {
com.events.EventDispatcher.initialize(this);
}
function addEventListener() {
}
function removeEventListener() {
}
function dispatchEvent() {
}
function init() {
globalSpeed = 0;
isSkaterFalling = false;
var _local2 = new com.managers.KeyboardManager();
myKeyboardManager = _local2;
}
function exampleEvent() {
var _local2 = new com.events.Event(this, "onExampleEvent");
_local2.data = new Object();
_local2.data.butts = true;
dispatchEvent(_local2);
}
function changeSpeed(aChange) {
var _local3 = globalSpeed;
globalSpeed = globalSpeed + aChange;
if (globalSpeed < 10) {
globalSpeed = 10;
}
if (globalSpeed > 200) {
globalSpeed = 200;
}
var _local2 = new com.events.Event(this, "onSpeedChange");
_local2.data = new Object();
_local2.data.globalSpeed = globalSpeed;
if ((_local3 == 0) && (aChange > 0)) {
_local2.data.pedaling = true;
}
dispatchEvent(_local2);
}
function onMainGameStateTick(aEvent) {
if (!isSkaterFalling) {
if (myKeyboardManager.getKeyDown(38) || (myKeyboardManager.getKeyDown(87))) {
if (globalSpeed < 95) {
changeSpeed(5);
}
}
if (myKeyboardManager.getKeyDown(40) || (myKeyboardManager.getKeyDown(83))) {
changeSpeed(-5);
}
}
if (globalSpeed > 100) {
globalSpeed--;
var _local2 = new com.events.Event(this, "onSpeedChange");
_local2.data = new Object();
_local2.data.globalSpeed = globalSpeed;
dispatchEvent(_local2);
}
}
function onSomeEvent(aEvent) {
}
function get getGlobalSpeed() {
return(globalSpeed);
}
function get getGameLevel() {
return(level);
}
function set gameLevel(level_inc) {
level = level_inc;
//return(__get__gameLevel());
}
function set setIsSkaterFalling(aFalling) {
isSkaterFalling = aFalling;
//return(__get__setIsSkaterFalling());
}
}
Symbol 769 MovieClip [__Packages.com.games.skateTokyoGame.RoadManager] Frame 0
class com.games.skateTokyoGame.RoadManager
{
var rootMC, myDepth, roadArray, myMC, level, __get__gameLevel;
function RoadManager (aRootMC, aDepth) {
rootMC = aRootMC;
myDepth = aDepth;
roadArray = new com.data.types.Array2();
roadArray[1] = 1;
randomizeRoad();
setupRoad();
com.events.EventDispatcher.initialize(this);
}
function addEventListener() {
}
function removeEventListener() {
}
function dispatchEvent() {
}
function init() {
}
function randomizeRoad() {
roadArray[0] = com.utilities.MyRandom.roll(1, MAX_ROADS);
}
function progressRoad() {
roadArray[1] = roadArray[0];
roadArray[0] = com.utilities.MyRandom.roll(1, MAX_ROADS);
}
function setupRoad() {
rootMC.createEmptyMovieClip("RoadSymbol_mc", myDepth);
myMC = rootMC.RoadSymbol_mc;
myMC.attachMovie("RoadSymbol", "RoadSymbol_one", 1);
myMC.attachMovie("RoadSymbol", "RoadSymbol_zero", 2, {_y:3 - myMC.RoadSymbol_one._height});
myMC.RoadSymbol_one.cacheAsBitmap = true;
myMC.RoadSymbol_zero.cacheAsBitmap = true;
myMC.RoadSymbol_one.gotoAndStop(roadArray[1]);
myMC.RoadSymbol_zero.gotoAndStop(roadArray[0]);
}
function exampleEvent() {
var _local2 = new com.events.Event(this, "onExampleEvent");
_local2.data = new Object();
_local2.data.butts = true;
dispatchEvent(_local2);
}
function removeMe() {
myMC.removeMovieClip();
}
function onSomeEvent(aEvent) {
}
function onMainGameStateTick(aEvent) {
myMC._y = myMC._y + (mySpeed / 10);
var _local2 = myMC._height / 2;
if (myMC._y > _local2) {
progressRoad();
setupRoad();
}
}
function onSpeedChange(aEvent) {
mySpeed = aEvent.data.globalSpeed;
}
function get getGameLevel() {
return(level);
}
function set gameLevel(level_inc) {
level = level_inc;
//return(__get__gameLevel());
}
var mySpeed = 0;
var MAX_ROADS = 5;
}
Symbol 770 MovieClip [__Packages.com.data.types.Array2] Frame 0
class com.data.types.Array2 extends Array
{
var splice, length;
function Array2 () {
super();
splice.apply(this, [0, 0].concat(arguments));
}
function append(value) {
this[length] = value;
}
function getOne(aValue_obj) {
var _local4 = length;
var _local2;
_local2 = 0;
while (_local2 < length) {
if (this[_local2] == aValue_obj) {
return(_local2);
}
_local2++;
}
return(-1);
}
function deleteOne(aValue_obj) {
var _local2 = getOne(aValue_obj);
if (_local2 != -1) {
splice(_local2, 1);
}
return(_local2);
}
}
Symbol 771 MovieClip [__Packages.com.utilities.MyRandom] Frame 0
class com.utilities.MyRandom
{
function MyRandom () {
}
static function roll(minVal, maxVal) {
return(minVal + Math.floor(Math.random() * ((maxVal + 1) - minVal)));
}
}
Symbol 772 MovieClip [__Packages.com.games.skateTokyoGame.UIClass] Frame 0
class com.games.skateTokyoGame.UIClass
{
var rootMC, myDepth, myMC, level, __get__gameLevel;
function UIClass (aRootMC, aDepth) {
rootMC = aRootMC;
myDepth = aDepth;
rootMC.attachMovie("UISymbol", "UISymbol_mc", myDepth);
myMC = rootMC.UISymbol_mc;
myMC.progress_mc.cacheAsBitmap = true;
myMC.timer_clock_thing_mc.cacheAsBitmap = true;
com.events.EventDispatcher.initialize(this);
}
function addEventListener() {
}
function removeEventListener() {
}
function dispatchEvent() {
}
function init() {
}
function exampleEvent() {
var _local2 = new com.events.Event(this, "onExampleEvent");
_local2.data = new Object();
_local2.data.butts = true;
dispatchEvent(_local2);
}
function updateGameLevel(aGameLevel) {
myMC.level_text.text = aGameLevel;
}
function updateTimeLeft(aTimeLeft) {
myMC.seconds_text.text = aTimeLeft;
var _local2 = 1 - aTimeLeft;
var _local3 = Math.floor(79 * _local2);
myMC.timer_clock_thing_mc.gotoAndStop(_local3);
}
function updateGlobalSpeed(aGlobalSpeed) {
myMC.global_speed_text.text = aGlobalSpeed;
}
function removeMe() {
myMC.removeMovieClip();
}
function onSomeEvent(aEvent) {
}
function get getGameLevel() {
return(level);
}
function get getUIClip() {
return(myMC);
}
function set gameLevel(level_inc) {
level = level_inc;
//return(__get__gameLevel());
}
}
Symbol 773 MovieClip [__Packages.com.games.skateTokyoGame.TimerClass] Frame 0
class com.games.skateTokyoGame.TimerClass
{
var __startTime, __TimeLeft, givenWarning, level, __get__gameLevel;
function TimerClass () {
com.events.EventDispatcher.initialize(this);
}
function addEventListener() {
}
function removeEventListener() {
}
function dispatchEvent() {
}
function init() {
__startTime = getTimer();
__TimeLeft = LEVEL_TIME;
givenWarning = false;
}
function exampleEvent() {
var _local2 = new com.events.Event(this, "onExampleEvent");
_local2.data = new Object();
_local2.data.butts = true;
dispatchEvent(_local2);
}
function onMainGameStateTick(aEvent) {
var _local4 = getTimer();
var _local2 = _local4 - __startTime;
var _local5 = _local2;
__TimeLeft = 1 - (_local2 / LEVEL_TIME);
if (__TimeLeft <= 0) {
var _local3 = new com.events.Event(this, "onOutOfTime");
_local3.data = new Object();
dispatchEvent(_local3);
}
}
function onSomeEvent(aEvent) {
}
function get getGameLevel() {
return(level);
}
function get getTimeLeft() {
return(__TimeLeft);
}
function set gameLevel(level_inc) {
level = level_inc;
//return(__get__gameLevel());
}
var LEVEL_TIME = 60000;
}
Symbol 774 MovieClip [__Packages.com.games.skateTokyoGame.DistanceManager] Frame 0
class com.games.skateTokyoGame.DistanceManager
{
var myMC, __myTravelDistance, __startTimer, __progressHeight, distanceReached, level, __get__gameLevel;
function DistanceManager (aUIClip) {
myMC = aUIClip;
com.events.EventDispatcher.initialize(this);
}
function addEventListener() {
}
function removeEventListener() {
}
function dispatchEvent() {
}
function init() {
__myTravelDistance = 0;
__startTimer = getTimer();
__progressHeight = 86;
distanceReached = false;
}
function exampleEvent() {
var _local2 = new com.events.Event(this, "onExampleEvent");
_local2.data = new Object();
_local2.data.butts = true;
dispatchEvent(_local2);
}
function pushCurrentSpeed(aMoreDistance) {
var _local3 = getTimer();
var _local4 = _local3 - __startTimer;
var _local2 = new com.events.Event(this, "onMovedDistance");
_local2.data = new Object();
_local2.data.travelledDistance = aMoreDistance;
dispatchEvent(_local2);
if (_local4 > 250) {
__myTravelDistance = __myTravelDistance + aMoreDistance;
__startTimer = getTimer();
updatePositionOfMeter();
}
}
function updatePositionOfMeter() {
var _local2 = __myTravelDistance / MAX_DISTANCE_VALUE;
var _local4 = Math.floor(__progressHeight * _local2);
myMC.progress_mc.skater_progress_mc._y = _local4;
myMC.progress_mc.gotoAndStop(_local4);
if (_local2 >= 1) {
if (!distanceReached) {
var _local3 = new com.events.Event(this, "onDistanceReached");
_local3.data = new Object();
dispatchEvent(_local3);
distanceReached = true;
}
}
}
function onSomeEvent(aEvent) {
}
function get getGameLevel() {
return(level);
}
function set gameLevel(level_inc) {
level = level_inc;
//return(__get__gameLevel());
}
var MAX_DISTANCE_VALUE = 20000;
}
Symbol 775 MovieClip [__Packages.com.games.skateTokyoGame.RandomEventManager] Frame 0
class com.games.skateTokyoGame.RandomEventManager
{
var __totalDistance, myLevel, __bonusPickupTimer, __bonusPickupTimeAmount_HIGH, __bonusPickupTimeAmount_LOW, __bonusPickupTimeAmount, __obstacleTimer, __obstacleTimeAmount, __obstacleTimer2, __obstacleTimeAmount2, __obstacleTimer3, __obstacleTimeAmount3, __obstacleTimer4, __obstacleTimeAmount4, __obstacleTimer5, __obstacleTimeAmount5, __obstacleTimer6, __obstacleTimeAmount6, __sceneryTimer, __sceneryTimeAmount_HIGH, __sceneryTimeAmount_LOW, __sceneryTimeAmount, __enemyTimer, __enemyTimeAmount_HIGH, __enemyTimeAmount_LOW, __enemyTimeAmount, level, __get__gameLevel;
function RandomEventManager () {
trace("RandomEventManager");
com.events.EventDispatcher.initialize(this);
}
function addEventListener() {
}
function removeEventListener() {
}
function dispatchEvent() {
}
function init(aLevel) {
__totalDistance = 0;
myLevel = aLevel;
switch (aLevel) {
case 1 :
__bonusPickupTimer = __totalDistance;
__bonusPickupTimeAmount_HIGH = 30000;
__bonusPickupTimeAmount_LOW = 30000;
__bonusPickupTimeAmount = com.utilities.MyRandom.roll(__bonusPickupTimeAmount_LOW, __bonusPickupTimeAmount_HIGH);
__obstacleTimer = __totalDistance;
__obstacleTimeAmount_HIGH = 1500;
__obstacleTimeAmount_LOW = 2000;
__obstacleTimeAmount = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW, __obstacleTimeAmount_HIGH);
__obstacleTimer2 = __totalDistance;
__obstacleTimeAmount_HIGH2 = 2000;
__obstacleTimeAmount_LOW2 = 3000;
__obstacleTimeAmount2 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW2, __obstacleTimeAmount_HIGH2);
__obstacleTimer3 = __totalDistance;
__obstacleTimeAmount_HIGH3 = 3000;
__obstacleTimeAmount_LOW3 = 4000;
__obstacleTimeAmount3 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW3, __obstacleTimeAmount_HIGH3);
__obstacleTimer4 = __totalDistance;
__obstacleTimeAmount_HIGH4 = 2000;
__obstacleTimeAmount_LOW4 = 3000;
__obstacleTimeAmount4 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW4, __obstacleTimeAmount_HIGH4);
__obstacleTimer5 = __totalDistance;
__obstacleTimeAmount_HIGH5 = 1000;
__obstacleTimeAmount_LOW5 = 2000;
__obstacleTimeAmount5 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW5, __obstacleTimeAmount_HIGH5);
__obstacleTimer6 = __totalDistance;
__obstacleTimeAmount_HIGH6 = 1000;
__obstacleTimeAmount_LOW6 = 2000;
__obstacleTimeAmount6 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW6, __obstacleTimeAmount_HIGH6);
__sceneryTimer = __totalDistance;
__sceneryTimeAmount_HIGH = 3000;
__sceneryTimeAmount_LOW = 5000;
__sceneryTimeAmount = com.utilities.MyRandom.roll(__sceneryTimeAmount_LOW, __sceneryTimeAmount_HIGH);
__enemyTimer = __totalDistance;
__enemyTimeAmount_HIGH = 7500;
__enemyTimeAmount_LOW = 10000;
__enemyTimeAmount = com.utilities.MyRandom.roll(__enemyTimeAmount_LOW, __enemyTimeAmount_HIGH);
checkForObstacle = levelOneChecks;
break;
case 2 :
__bonusPickupTimer = __totalDistance;
__bonusPickupTimeAmount_HIGH = 30000;
__bonusPickupTimeAmount_LOW = 30000;
__bonusPickupTimeAmount = com.utilities.MyRandom.roll(__bonusPickupTimeAmount_LOW, __bonusPickupTimeAmount_HIGH);
__obstacleTimer = __totalDistance;
__obstacleTimeAmount_HIGH = 1500;
__obstacleTimeAmount_LOW = 2000;
__obstacleTimeAmount = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW, __obstacleTimeAmount_HIGH);
__obstacleTimer2 = __totalDistance;
__obstacleTimeAmount_HIGH2 = 2000;
__obstacleTimeAmount_LOW2 = 3000;
__obstacleTimeAmount2 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW2, __obstacleTimeAmount_HIGH2);
__obstacleTimer3 = __totalDistance;
__obstacleTimeAmount_HIGH3 = 3000;
__obstacleTimeAmount_LOW3 = 4000;
__obstacleTimeAmount3 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW3, __obstacleTimeAmount_HIGH3);
__obstacleTimer4 = __totalDistance;
__obstacleTimeAmount_HIGH4 = 2000;
__obstacleTimeAmount_LOW4 = 3000;
__obstacleTimeAmount4 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW4, __obstacleTimeAmount_HIGH4);
__obstacleTimer5 = __totalDistance;
__obstacleTimeAmount_HIGH5 = 1000;
__obstacleTimeAmount_LOW5 = 2000;
__obstacleTimeAmount5 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW5, __obstacleTimeAmount_HIGH5);
__obstacleTimer6 = __totalDistance;
__obstacleTimeAmount_HIGH6 = 1000;
__obstacleTimeAmount_LOW6 = 2000;
__obstacleTimeAmount6 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW6, __obstacleTimeAmount_HIGH6);
__sceneryTimer = __totalDistance;
__sceneryTimeAmount_HIGH = 3000;
__sceneryTimeAmount_LOW = 5000;
__sceneryTimeAmount = com.utilities.MyRandom.roll(__sceneryTimeAmount_LOW, __sceneryTimeAmount_HIGH);
__enemyTimer = __totalDistance;
__enemyTimeAmount_HIGH = 7500;
__enemyTimeAmount_LOW = 10000;
__enemyTimeAmount = com.utilities.MyRandom.roll(__enemyTimeAmount_LOW, __enemyTimeAmount_HIGH);
checkForObstacle = levelTwoChecks;
break;
case 3 :
__bonusPickupTimer = __totalDistance;
__bonusPickupTimeAmount_HIGH = 30000;
__bonusPickupTimeAmount_LOW = 30000;
__bonusPickupTimeAmount = com.utilities.MyRandom.roll(__bonusPickupTimeAmount_LOW, __bonusPickupTimeAmount_HIGH);
__obstacleTimer = __totalDistance;
__obstacleTimeAmount_HIGH = 1500;
__obstacleTimeAmount_LOW = 2000;
__obstacleTimeAmount = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW, __obstacleTimeAmount_HIGH);
__obstacleTimer2 = __totalDistance;
__obstacleTimeAmount_HIGH2 = 2000;
__obstacleTimeAmount_LOW2 = 3000;
__obstacleTimeAmount2 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW2, __obstacleTimeAmount_HIGH2);
__obstacleTimer3 = __totalDistance;
__obstacleTimeAmount_HIGH3 = 3000;
__obstacleTimeAmount_LOW3 = 4000;
__obstacleTimeAmount3 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW3, __obstacleTimeAmount_HIGH3);
__obstacleTimer4 = __totalDistance;
__obstacleTimeAmount_HIGH4 = 2000;
__obstacleTimeAmount_LOW4 = 3000;
__obstacleTimeAmount4 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW4, __obstacleTimeAmount_HIGH4);
__obstacleTimer5 = __totalDistance;
__obstacleTimeAmount_HIGH5 = 1000;
__obstacleTimeAmount_LOW5 = 2000;
__obstacleTimeAmount5 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW5, __obstacleTimeAmount_HIGH5);
__obstacleTimer6 = __totalDistance;
__obstacleTimeAmount_HIGH6 = 1000;
__obstacleTimeAmount_LOW6 = 2000;
__obstacleTimeAmount6 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW6, __obstacleTimeAmount_HIGH6);
__sceneryTimer = __totalDistance;
__sceneryTimeAmount_HIGH = 3000;
__sceneryTimeAmount_LOW = 5000;
__sceneryTimeAmount = com.utilities.MyRandom.roll(__sceneryTimeAmount_LOW, __sceneryTimeAmount_HIGH);
__enemyTimer = __totalDistance;
__enemyTimeAmount_HIGH = 7500;
__enemyTimeAmount_LOW = 10000;
__enemyTimeAmount = com.utilities.MyRandom.roll(__enemyTimeAmount_LOW, __enemyTimeAmount_HIGH);
checkForObstacle = levelThreeChecks;
}
}
function exampleEvent() {
var _local2 = new com.events.Event(this, "onExampleEvent");
_local2.data = new Object();
_local2.data.butts = true;
dispatchEvent(_local2);
}
function tick() {
checkForBonusItem();
checkForObstacle();
checkForScenery();
checkForEnemy();
}
function checkForObstacle() {
trace("checkForObstacle");
}
function checkForBonusItem() {
var _local3 = __totalDistance - __bonusPickupTimer;
if (_local3 > __bonusPickupTimeAmount) {
var _local2 = new com.events.Event(this, "onCreatePowerup");
_local2.data = new Object();
dispatchEvent(_local2);
__bonusPickupTimer = __totalDistance;
__bonusPickupTimeAmount = com.utilities.MyRandom.roll(__bonusPickupTimeAmount_LOW, __bonusPickupTimeAmount_HIGH);
}
}
function checkForScenery() {
var _local3 = __totalDistance - __sceneryTimer;
if (_local3 > __sceneryTimeAmount) {
var _local2 = new com.events.Event(this, "onCreateTree");
_local2.data = new Object();
dispatchEvent(_local2);
__sceneryTimer = __totalDistance;
__sceneryTimeAmount = com.utilities.MyRandom.roll(__sceneryTimeAmount_LOW, __sceneryTimeAmount_HIGH);
}
}
function checkForEnemy() {
var _local3 = __totalDistance - __enemyTimer;
if (_local3 > __enemyTimeAmount) {
var _local2 = new com.events.Event(this, "onCreateEnemy");
_local2.data = new Object();
dispatchEvent(_local2);
__enemyTimer = __totalDistance;
__enemyTimeAmount = com.utilities.MyRandom.roll(__enemyTimeAmount_LOW, __enemyTimeAmount_HIGH);
}
}
function levelOneChecks() {
var _local5 = __totalDistance - __obstacleTimer;
if (_local5 > __obstacleTimeAmount) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = true;
dispatchEvent(_local2);
__obstacleTimer = __totalDistance;
__obstacleTimeAmount = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW, __obstacleTimeAmount_HIGH);
}
var _local3 = __totalDistance - __obstacleTimer2;
if (_local3 > __obstacleTimeAmount2) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = true;
dispatchEvent(_local2);
__obstacleTimer2 = __totalDistance;
__obstacleTimeAmount2 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW2, __obstacleTimeAmount_HIGH2);
}
var _local4 = __totalDistance - __obstacleTimer3;
if (_local4 > __obstacleTimeAmount3) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = true;
dispatchEvent(_local2);
__obstacleTimer3 = __totalDistance;
__obstacleTimeAmount3 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW3, __obstacleTimeAmount_HIGH3);
}
var _local7 = __totalDistance - __obstacleTimer4;
if (_local7 > __obstacleTimeAmount4) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = false;
dispatchEvent(_local2);
__obstacleTimer4 = __totalDistance;
__obstacleTimeAmount4 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW4, __obstacleTimeAmount_HIGH4);
}
var _local8 = __totalDistance - __obstacleTimer5;
if (_local8 > __obstacleTimeAmount5) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = false;
dispatchEvent(_local2);
__obstacleTimer5 = __totalDistance;
__obstacleTimeAmount5 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW5, __obstacleTimeAmount_HIGH5);
}
var _local6 = __totalDistance - __obstacleTimer6;
if (_local6 > __obstacleTimeAmount6) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = false;
dispatchEvent(_local2);
__obstacleTimer6 = __totalDistance;
__obstacleTimeAmount6 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW6, __obstacleTimeAmount_HIGH6);
}
}
function levelTwoChecks() {
var _local5 = __totalDistance - __obstacleTimer;
if (_local5 > __obstacleTimeAmount) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = true;
dispatchEvent(_local2);
__obstacleTimer = __totalDistance;
__obstacleTimeAmount = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW, __obstacleTimeAmount_HIGH);
}
var _local3 = __totalDistance - __obstacleTimer2;
if (_local3 > __obstacleTimeAmount2) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = true;
dispatchEvent(_local2);
__obstacleTimer2 = __totalDistance;
__obstacleTimeAmount2 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW2, __obstacleTimeAmount_HIGH2);
}
var _local4 = __totalDistance - __obstacleTimer3;
if (_local4 > __obstacleTimeAmount3) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = true;
dispatchEvent(_local2);
__obstacleTimer3 = __totalDistance;
__obstacleTimeAmount3 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW3, __obstacleTimeAmount_HIGH3);
}
var _local7 = __totalDistance - __obstacleTimer4;
if (_local7 > __obstacleTimeAmount4) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = false;
dispatchEvent(_local2);
__obstacleTimer4 = __totalDistance;
__obstacleTimeAmount4 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW4, __obstacleTimeAmount_HIGH4);
}
var _local8 = __totalDistance - __obstacleTimer5;
if (_local8 > __obstacleTimeAmount5) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = false;
dispatchEvent(_local2);
__obstacleTimer5 = __totalDistance;
__obstacleTimeAmount5 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW5, __obstacleTimeAmount_HIGH5);
}
var _local6 = __totalDistance - __obstacleTimer6;
if (_local6 > __obstacleTimeAmount6) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = false;
dispatchEvent(_local2);
__obstacleTimer6 = __totalDistance;
__obstacleTimeAmount6 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW6, __obstacleTimeAmount_HIGH6);
}
}
function levelThreeChecks() {
var _local5 = __totalDistance - __obstacleTimer;
if (_local5 > __obstacleTimeAmount) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = true;
dispatchEvent(_local2);
__obstacleTimer = __totalDistance;
__obstacleTimeAmount = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW, __obstacleTimeAmount_HIGH);
}
var _local3 = __totalDistance - __obstacleTimer2;
if (_local3 > __obstacleTimeAmount2) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = true;
dispatchEvent(_local2);
__obstacleTimer2 = __totalDistance;
__obstacleTimeAmount2 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW2, __obstacleTimeAmount_HIGH2);
}
var _local4 = __totalDistance - __obstacleTimer3;
if (_local4 > __obstacleTimeAmount3) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = true;
dispatchEvent(_local2);
__obstacleTimer3 = __totalDistance;
__obstacleTimeAmount3 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW3, __obstacleTimeAmount_HIGH3);
}
var _local7 = __totalDistance - __obstacleTimer4;
if (_local7 > __obstacleTimeAmount4) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = false;
dispatchEvent(_local2);
__obstacleTimer4 = __totalDistance;
__obstacleTimeAmount4 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW4, __obstacleTimeAmount_HIGH4);
}
var _local8 = __totalDistance - __obstacleTimer5;
if (_local8 > __obstacleTimeAmount5) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = false;
dispatchEvent(_local2);
__obstacleTimer5 = __totalDistance;
__obstacleTimeAmount5 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW5, __obstacleTimeAmount_HIGH5);
}
var _local6 = __totalDistance - __obstacleTimer6;
if (_local6 > __obstacleTimeAmount6) {
var _local2 = new com.events.Event(this, "onCreateObstacle");
_local2.data = new Object();
_local2.data.jumpability = false;
dispatchEvent(_local2);
__obstacleTimer6 = __totalDistance;
__obstacleTimeAmount6 = com.utilities.MyRandom.roll(__obstacleTimeAmount_LOW6, __obstacleTimeAmount_HIGH6);
}
}
function onSomeEvent(aEvent) {
}
function onMovedDistance(aEvent) {
__totalDistance = __totalDistance + aEvent.data.travelledDistance;
}
function get getGameLevel() {
return(level);
}
function set gameLevel(level_inc) {
level = level_inc;
//return(__get__gameLevel());
}
var __obstacleTimeAmount_HIGH = 1500;
var __obstacleTimeAmount_LOW = 2000;
var __obstacleTimeAmount_HIGH2 = 2000;
var __obstacleTimeAmount_LOW2 = 3000;
var __obstacleTimeAmount_HIGH3 = 3000;
var __obstacleTimeAmount_LOW3 = 4000;
var __obstacleTimeAmount_HIGH4 = 2000;
var __obstacleTimeAmount_LOW4 = 3000;
var __obstacleTimeAmount_HIGH5 = 1000;
var __obstacleTimeAmount_LOW5 = 2000;
var __obstacleTimeAmount_HIGH6 = 1000;
var __obstacleTimeAmount_LOW6 = 2000;
}
Symbol 776 MovieClip [__Packages.com.games.skateTokyoGame.PowerupClass] Frame 0
class com.games.skateTokyoGame.PowerupClass
{
var rootMC, myDepth, mySpeed, isFinishLine, myType, myClip, level, __get__gameLevel;
function PowerupClass (aRootMC, aDepth, aCurrentSpeed) {
rootMC = aRootMC;
myDepth = aDepth;
mySpeed = aCurrentSpeed;
isFinishLine = false;
com.events.EventDispatcher.initialize(this);
}
function addEventListener() {
}
function removeEventListener() {
}
function dispatchEvent() {
}
function init(aType) {
var _local2;
var _local4;
var _local3;
var _local6;
myType = aType;
switch (aType) {
case "finishline" :
myDepth = 11;
_local2 = "finishline_mc" + myDepth;
_local4 = "finishLineSymbol";
isFinishLine = true;
break;
case "powerup" :
_local2 = "powerup_mc" + myDepth;
_local4 = "PowerupSymbol";
}
rootMC.attachMovie(_local4, _local2, myDepth);
myClip = rootMC[_local2];
myClip.cacheAsBitmap = true;
switch (aType) {
case "finishline" :
_local3 = 107;
break;
case "powerup" :
_local3 = com.utilities.MyRandom.roll(100 + (myClip._width / 2), 450 - (myClip._width / 2));
}
myClip._x = _local3;
myClip._y = -myClip._height;
}
function exampleEvent() {
var _local2 = new com.events.Event(this, "onExampleEvent");
_local2.data = new Object();
_local2.data.butts = true;
dispatchEvent(_local2);
}
function removeMe() {
myClip.removeMovieClip();
}
function onSpeedChange(aEvent) {
mySpeed = aEvent.data.globalSpeed;
}
function onMainGameStateTick(aEvent) {
myClip._y = myClip._y + (mySpeed / 10);
var _local2 = new com.events.Event(this, "onPowerupMove");
_local2.data = new Object();
_local2.data.whichClass = this;
dispatchEvent(_local2);
if (myClip._y > 400) {
_local2 = new com.events.Event(this, "onOffBottomOfStage");
_local2.data = new Object();
_local2.data.whichClass = this;
dispatchEvent(_local2);
}
}
function onSomeEvent(aEvent) {
}
function get getGameLevel() {
return(level);
}
function get getIsFinishLine() {
return(isFinishLine);
}
function get getMC() {
return(myClip);
}
function set gameLevel(level_inc) {
level = level_inc;
//return(__get__gameLevel());
}
}
Symbol 777 MovieClip [__Packages.com.games.skateTokyoGame.ObstacleClass] Frame 0
class com.games.skateTokyoGame.ObstacleClass
{
var __shouldBeJumpable, rootMC, myDepth, mySpeed, myLevel, myClip, __isJumpable, __get__gameLevel;
function ObstacleClass (aRootMC, aDepth, aSpeed, aEvent) {
__shouldBeJumpable = aEvent.data.jumpability;
rootMC = aRootMC;
myDepth = aDepth;
mySpeed = aSpeed;
if (!__shouldBeJumpable) {
myDepth = myDepth + 10;
}
com.events.EventDispatcher.initialize(this);
}
function addEventListener() {
}
function removeEventListener() {
}
function dispatchEvent() {
}
function init(aLevel) {
myLevel = aLevel;
var _local4 = "obstacle_mc" + myDepth;
rootMC.attachMovie("ObstacleSymbol", _local4, myDepth);
myClip = rootMC[_local4];
myClip.cacheAsBitmap = true;
var _local2;
var _local3 = 300;
__isJumpable = false;
switch (myLevel) {
case 1 :
_local3 = com.utilities.MyRandom.roll(100, 450 - myClip._width);
switch (__shouldBeJumpable) {
case true :
var _local5 = com.utilities.MyRandom.roll(1, 8);
__isJumpable = true;
switch (_local5) {
case 1 :
_local2 = "Pothole1Frame";
break;
case 2 :
_local2 = "Pothole2Frame";
break;
case 3 :
_local2 = "Pothole3Frame";
break;
case 4 :
_local2 = "Pothole4Frame";
break;
case 5 :
_local2 = "ConesFrame";
break;
case 6 :
_local2 = "Crack1Frame";
_local3 = 315;
break;
case 7 :
_local2 = "Crack2Frame";
_local3 = com.utilities.MyRandom.roll(150, 400 - myClip._width);
break;
case 8 :
_local2 = "Crack3Frame";
_local3 = 105;
}
break;
case false :
_local5 = com.utilities.MyRandom.roll(1, 4);
__isJumpable = false;
switch (_local5) {
case 1 :
_local2 = "CautionTapeFrame";
break;
case 2 :
_local2 = "Blockade1Frame";
break;
case 3 :
_local2 = "Blockade2Frame";
break;
case 4 :
var _local6 = com.utilities.MyRandom.roll(1, 3);
switch (_local6) {
case 1 :
_local2 = "BlueCarFrame";
break;
case 2 :
_local2 = "GreeenCarFrame";
break;
case 3 :
_local2 = "YellowCarFrame";
}
var _local7 = com.utilities.MyRandom.roll(1, 2);
switch (_local7) {
case 1 :
_local3 = 455 - myClip._width;
break;
case 2 :
_local3 = 105;
}
break;
case 5 :
_local2 = "BusStopFrame";
_local3 = 450;
}
}
break;
case 2 :
_local3 = com.utilities.MyRandom.roll(100, 450 - myClip._width);
switch (__shouldBeJumpable) {
case true :
_local5 = com.utilities.MyRandom.roll(1, 8);
__isJumpable = true;
switch (_local5) {
case 1 :
_local2 = "Pothole1Frame";
break;
case 2 :
_local2 = "Pothole2Frame";
break;
case 3 :
_local2 = "Pothole3Frame";
break;
case 4 :
_local2 = "Pothole4Frame";
break;
case 5 :
_local2 = "ConesFrame";
break;
case 6 :
_local2 = "Crack1Frame";
_local3 = 315;
break;
case 7 :
_local2 = "Crack2Frame";
_local3 = com.utilities.MyRandom.roll(150, 400 - myClip._width);
break;
case 8 :
_local2 = "Crack3Frame";
_local3 = 105;
}
break;
case false :
_local5 = com.utilities.MyRandom.roll(1, 4);
__isJumpable = false;
switch (_local5) {
case 1 :
_local2 = "CautionTapeFrame";
break;
case 2 :
_local2 = "Blockade1Frame";
break;
case 3 :
_local2 = "Blockade2Frame";
break;
case 4 :
_local6 = com.utilities.MyRandom.roll(1, 3);
switch (_local6) {
case 1 :
_local2 = "BlueCarFrame";
break;
case 2 :
_local2 = "GreeenCarFrame";
break;
case 3 :
_local2 = "YellowCarFrame";
}
_local7 = com.utilities.MyRandom.roll(1, 2);
switch (_local7) {
case 1 :
_local3 = 455 - myClip._width;
break;
case 2 :
_local3 = 105;
}
break;
case 5 :
_local2 = "BusStopFrame";
_local3 = 450;
}
}
break;
case 3 :
_local3 = com.utilities.MyRandom.roll(100, 450 - myClip._width);
switch (__shouldBeJumpable) {
case true :
_local5 = com.utilities.MyRandom.roll(1, 8);
__isJumpable = true;
switch (_local5) {
case 1 :
_local2 = "Pothole1Frame";
break;
case 2 :
_local2 = "Pothole2Frame";
break;
case 3 :
_local2 = "Pothole3Frame";
break;
case 4 :
_local2 = "Pothole4Frame";
break;
case 5 :
_local2 = "ConesFrame";
break;
case 6 :
_local2 = "Crack1Frame";
_local3 = 315;
break;
case 7 :
_local2 = "Crack2Frame";
_local3 = com.utilities.MyRandom.roll(150, 400 - myClip._width);
break;
case 8 :
_local2 = "Crack3Frame";
_local3 = 105;
}
break;
case false :
_local5 = com.utilities.MyRandom.roll(1, 4);
__isJumpable = false;
switch (_local5) {
case 1 :
_local2 = "CautionTapeFrame";
break;
case 2 :
_local2 = "Blockade1Frame";
break;
case 3 :
_local2 = "Blockade2Frame";
break;
case 4 :
_local6 = com.utilities.MyRandom.roll(1, 3);
switch (_local6) {
case 1 :
_local2 = "BlueCarFrame";
break;
case 2 :
_local2 = "GreeenCarFrame";
break;
case 3 :
_local2 = "YellowCarFrame";
}
_local7 = com.utilities.MyRandom.roll(1, 2);
switch (_local7) {
case 1 :
_local3 = 455 - myClip._width;
break;
case 2 :
_local3 = 105;
}
break;
case 5 :
_local2 = "BusStopFrame";
_local3 = 450;
}
}
}
myClip.gotoAndStop(_local2);
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/" + _local2);
myClip._x = _local3;
myClip._y = -myClip._height;
}
function exampleEvent() {
var _local2 = new com.events.Event(this, "onExampleEvent");
_local2.data = new Object();
_local2.data.butts = true;
dispatchEvent(_local2);
}
function removeMe() {
myClip.removeMovieClip();
}
function onSomeEvent(aEvent) {
}
function onSpeedChange(aEvent) {
mySpeed = aEvent.data.globalSpeed;
}
function onMainGameStateTick(aEvent) {
myClip._y = myClip._y + (mySpeed / 10);
var _local2 = new com.events.Event(this, "onObstacleMove");
_local2.data = new Object();
_local2.data.whichClass = this;
dispatchEvent(_local2);
if (myClip._y > 400) {
_local2 = new com.events.Event(this, "onObstacleOffBottomOfStage");
_local2.data = new Object();
_local2.data.whichClass = this;
dispatchEvent(_local2);
}
}
function get getGameLevel() {
return(myLevel);
}
function get getIsJumpable() {
return(__isJumpable);
}
function get getMC() {
return(myClip);
}
function set gameLevel(level_inc) {
myLevel = level_inc;
//return(__get__gameLevel());
}
}
Symbol 778 MovieClip [__Packages.com.utilities.StatTracker] Frame 0
class com.utilities.StatTracker
{
function StatTracker () {
trace("StatTracker");
}
function init() {
}
static function submitStat(aString) {
var _local1 = ("javascript:urchinTracker('/flashtracking" + aString) + "');";
trace("tUrchinString = " + _local1);
getURL (_local1);
}
}
Symbol 779 MovieClip [__Packages.com.games.skateTokyoGame.SceneryClass] Frame 0
class com.games.skateTokyoGame.SceneryClass
{
var __rootMC, __myDepth, __mySpeed, __myClip, __myLevel, __get__gameLevel;
function SceneryClass (aRootMC, aSceneryCurrentDepth, aGlobalSpeed) {
__rootMC = aRootMC;
__myDepth = aSceneryCurrentDepth;
__mySpeed = aGlobalSpeed;
com.events.EventDispatcher.initialize(this);
}
function addEventListener() {
}
function removeEventListener() {
}
function dispatchEvent() {
}
function init() {
var _local2 = "scenery_mc" + __myDepth;
__rootMC.attachMovie("ScenerySymbol", _local2, __myDepth);
__myClip = __rootMC[_local2];
__myClip.cacheAsBitmap = true;
var _local4 = com.utilities.MyRandom.roll(1, 2);
var _local3;
switch (_local4) {
case 1 :
_local3 = 100;
break;
case 2 :
_local3 = 450;
}
__myClip._x = _local3;
__myClip._y = -__myClip._height;
}
function exampleEvent() {
var _local2 = new com.events.Event(this, "onExampleEvent");
_local2.data = new Object();
_local2.data.butts = true;
dispatchEvent(_local2);
}
function removeMe() {
__myClip.removeMovieClip();
}
function onSomeEvent(aEvent) {
}
function onSpeedChange(aEvent) {
__mySpeed = aEvent.data.globalSpeed;
}
function onMainGameStateTick(aEvent) {
__myClip._y = __myClip._y + (__mySpeed / 10);
var _local4 = __myClip._y / 400;
var _local3 = Math.ceil(_local4 * 21);
__myClip.scenery_mc.gotoAndStop(_local3);
if (__myClip._y > (400 + (__myClip._height * 2))) {
var _local2 = new com.events.Event(this, "onSceneryOffBottomOfStage");
_local2.data = new Object();
_local2.data.whichClass = this;
dispatchEvent(_local2);
}
}
function get getGameLevel() {
return(__myLevel);
}
function set gameLevel(aLevel) {
__myLevel = aLevel;
//return(__get__gameLevel());
}
}
Symbol 780 MovieClip [__Packages.com.games.skateTokyoGame.EnemyClass] Frame 0
class com.games.skateTokyoGame.EnemyClass
{
var __rootMC, __myDepth, __mySpeed, myFacing, __beenHit, __dogRunning, __dogMovingMiddle, __dogDoneRunning, __myLevel, __myClip, __dogOnScreen, __businessManWalking, __get__gameLevel;
function EnemyClass (aRootMC, aSceneryCurrentDepth, aGlobalSpeed) {
__rootMC = aRootMC;
__myDepth = aSceneryCurrentDepth;
__mySpeed = aGlobalSpeed;
myFacing = 1;
__beenHit = false;
__dogRunning = false;
__dogMovingMiddle = false;
__dogDoneRunning = false;
com.events.EventDispatcher.initialize(this);
}
function addEventListener() {
}
function removeEventListener() {
}
function dispatchEvent() {
}
function init(aLevel) {
__myLevel = aLevel;
var _local5 = "enemy_mc" + __myDepth;
__rootMC.attachMovie("EnemySymbol", _local5, __myDepth);
__myClip = __rootMC[_local5];
__myClip.cacheAsBitmap = true;
var _local3;
var _local4;
var _local2;
switch (__myLevel) {
case 1 :
_local3 = "BusinessManFrame";
_local4 = "standingFrame";
myBrain = myBusinessManBrain;
playerHitMe = playerHitBusinessMan;
__beenHit = false;
var _local6 = com.utilities.MyRandom.roll(1, 2);
switch (_local6) {
case 1 :
_local2 = 100;
break;
case 2 :
_local2 = 450;
myFacing = -1;
}
break;
case 2 :
_local3 = "DogFrame";
_local4 = "dogRunningFrame";
myBrain = myDogBrain;
playerHitMe = playerHitDog;
__dogRunning = true;
__dogMovingMiddle = false;
__dogOnScreen = false;
__dogDoneRunning = false;
_local6 = com.utilities.MyRandom.roll(1, 2);
switch (_local6) {
case 1 :
_local2 = 150;
myFacing = -1;
break;
case 2 :
_local2 = 400;
}
break;
case 3 :
trace("putting a godzilla!");
_local3 = "GodzillaFrame";
_local4 = "runFrame";
myBrain = myGodzillaBrain;
playerHitMe = playerHitGodzilla;
_local6 = com.utilities.MyRandom.roll(1, 2);
switch (_local6) {
case 1 :
_local2 = 200;
break;
case 2 :
_local2 = 350;
}
}
__myClip.gotoAndStop(_local3);
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/" + _local3);
__myClip.specific_enemy_mc.gotoAndStop(_local4);
__myClip._y = -(__myClip._height * 2);
__myClip._x = _local2;
__myClip._xscale = __myClip._xscale * myFacing;
}
function removeMe() {
__myClip.removeMovieClip();
}
function exampleEvent() {
var _local2 = new com.events.Event(this, "onExampleEvent");
_local2.data = new Object();
_local2.data.butts = true;
dispatchEvent(_local2);
}
function myBrain() {
}
function myGodzillaBrain() {
var _local3 = (__mySpeed / 10) - 4.5;
__myClip._y = __myClip._y + _local3;
if (__myClip._y > (400 + (__myClip._height * 2))) {
var _local2 = new com.events.Event(this, "onEnemyOffBottomOfStage");
_local2.data = new Object();
_local2.data.whichClass = this;
dispatchEvent(_local2);
}
}
function myDogBrain() {
if (!__dogDoneRunning) {
if (__myClip._y > 300) {
__dogMovingMiddle = true;
}
}
if (__dogMovingMiddle) {
var _local4 = (__mySpeed / 10) - 11;
var _local5 = 2;
__myClip._y = __myClip._y + _local4;
__myClip._x = __myClip._x + (_local5 * (myFacing * -1));
switch (myFacing) {
case 1 :
if (__myClip._x < 150) {
__dogDoneRunning = true;
__dogMovingMiddle = false;
__myClip.specific_enemy_mc.gotoAndStop("dogSittingFrame");
__myClip._xscale = __myClip._xscale * -1;
}
break;
case -1 :
if (__myClip._x <= 400) {
break;
}
__dogDoneRunning = true;
__dogMovingMiddle = false;
__myClip.specific_enemy_mc.gotoAndStop("dogSittingFrame");
__myClip._xscale = __myClip._xscale * -1;
}
} else if (__dogDoneRunning) {
var _local3 = __mySpeed / 10;
__myClip._y = __myClip._y + _local3;
} else {
var _local3 = (__mySpeed / 10) - 4.5;
__myClip._y = __myClip._y + _local3;
}
if (__dogOnScreen) {
if (__myClip._y < 10) {
__myClip._y = 10;
}
} else if (__myClip._y > 10) {
__dogOnScreen = true;
}
if (__myClip._y > (400 + (__myClip._height * 2))) {
var _local2 = new com.events.Event(this, "onEnemyOffBottomOfStage");
_local2.data = new Object();
_local2.data.whichClass = this;
dispatchEvent(_local2);
}
}
function myBusinessManBrain() {
__myClip._y = __myClip._y + (__mySpeed / 10);
if (__myClip._y > 0) {
if (!__businessManWalking) {
__businessManWalking = true;
__myClip.specific_enemy_mc.gotoAndStop("walkingFrame");
} else if (!__beenHit) {
__myClip._x = __myClip._x + (__myDog_X_speed * myFacing);
}
}
if (__myClip._y > (400 + (__myClip._height * 2))) {
var _local2 = new com.events.Event(this, "onEnemyOffBottomOfStage");
_local2.data = new Object();
_local2.data.whichClass = this;
dispatchEvent(_local2);
}
}
function playerHitMe() {
}
function playerHitDog() {
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/hitADog");
}
function playerHitBusinessMan() {
__beenHit = true;
__myClip.specific_enemy_mc.gotoAndStop("cowerFrame");
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/hitABusinessMan");
}
function playerHitGodzilla() {
com.utilities.StatTracker.submitStat("/flashgames/skateTokyo/hitAGodzilla");
}
function onSomeEvent(aEvent) {
}
function onMainGameStateTick(aEvent) {
myBrain();
var _local2 = new com.events.Event(this, "onEnemyMove");
_local2.data = new Object();
_local2.data.whichClass = this;
dispatchEvent(_local2);
}
function onSpeedChange(aEvent) {
__mySpeed = aEvent.data.globalSpeed;
}
function get getGameLevel() {
return(__myLevel);
}
function get getMC() {
return(__myClip);
}
function set gameLevel(aLevel) {
__myLevel = aLevel;
//return(__get__gameLevel());
}
var __myDog_X_speed = 3;
var __myBusinessMan_X_speed = 2;
}
Symbol 781 MovieClip [__Packages.com.managers.SoundManager] Frame 0
class com.managers.SoundManager extends MovieClip
{
var thisMC, sounds_array, globalSound_snd, theSoundClipMC, getNextHighestDepth, createEmptyMovieClip;
function SoundManager (aSoundRef) {
super();
thisMC = aSoundRef;
sounds_array = new Array();
}
function init() {
}
function addSound(aSoundLinkage_str) {
trace(("*****addSound(" + aSoundLinkage_str) + ")");
globalSound_snd = new Sound(this);
var _local7 = ("sndHolder_" + String(sounds_array.length)) + "_mc";
var _local5 = thisMC.getNextHighestDepth();
var _local6 = thisMC.createEmptyMovieClip(_local7, _local5);
theSoundClipMC = _local6;
var _local3 = MovieClip(theSoundClipMC);
var _local2 = new Sound(_local3);
_local2.attachSound(aSoundLinkage_str);
sounds_array.push(_local3);
var _local8 = new com.managers.SoundDataObject(aSoundLinkage_str, _local2);
sounds_array.push(_local8);
}
function getSound(aSoundLinkage_str) {
var _local2;
var _local6 = sounds_array.length;
_local2 = 0;
while (_local2 < _local6) {
var _local3 = sounds_array[_local2];
var _local5 = _local3.__get__name();
if (aSoundLinkage_str == _local5) {
var _local4 = _local3.__get__sound();
return(_local4);
}
_local2++;
}
}
function playSound(aSoundLinkage_str, aOffset_num, aLoopCount_num) {
trace((((("playSound = " + aSoundLinkage_str) + " ") + aOffset_num) + " ") + aLoopCount_num);
stopSound(aSoundLinkage_str);
var _local3 = getSound(aSoundLinkage_str);
_local3.start(aOffset_num, aLoopCount_num);
}
function stopSound(aSoundLinkage_str) {
trace("stopSound = " + aSoundLinkage_str);
var _local3 = getSound(aSoundLinkage_str);
_local3.stop(aSoundLinkage_str);
}
function setSoundVolume(aSoundLinkage_str, aVolume_num) {
var _local2 = getSound(aSoundLinkage_str);
_local2.setVolume(aVolume_num);
}
function getSoundVolume(aSoundLinkage_str) {
var _local2 = getSound(aSoundLinkage_str);
return(_local2.getVolume());
}
function tweenSoundVolume(aSoundLinkage_str, aTargetVolume_num, aNumberOfFrames) {
trace(((((("*****tweenSoundVolume(" + aSoundLinkage_str) + ",") + aTargetVolume_num) + ",") + aNumberOfFrames) + ")");
var _local3 = getSoundVolume(aSoundLinkage_str);
if (_local3 == undefined) {
} else {
var _local4 = aTargetVolume_num;
var _local6 = Math.abs(_local3 - _local4);
if (_local6 < aNumberOfFrames) {
_local6 = aNumberOfFrames;
}
var _local5 = 1;
if (_local3 < _local4) {
_local5 = 1;
} else if (_local3 > _local4) {
_local5 = -1;
} else {
trace("tCurrentVolume == tTargetVolume");
}
var _local8 = _local6 / aNumberOfFrames;
if (_local8 < 1) {
_local8 = 1;
}
var _local14 = _local8 * _local5;
var _local13 = ("tweenHolder_" + aSoundLinkage_str) + "_mc";
trace("this = " + this);
var _local10 = getNextHighestDepth();
trace("tNextDepth = " + _local10);
var _local11 = createEmptyMovieClip(_local13, _local10);
trace("soundMCTweenThing = " + _local11);
var _local2 = MovieClip(_local11);
_local2.ref = this;
_local2.targetVolume = _local4;
_local2.modNumber = _local5;
_local2.soundLinkage = aSoundLinkage_str;
_local2.changePerFrame = _local14;
_local2.onEnterFrame = function () {
var _local2 = this.ref.getSoundVolume(this.soundLinkage);
if (this.modNumber > 0) {
if (_local2 > this.targetVolume) {
this.onEnterFrame = null;
}
} else if (this.modNumber < 0) {
if (_local2 < this.targetVolume) {
this.onEnterFrame = null;
}
} else {
trace("this.modNumber == 0 in Sound Manager, something is broken");
}
var _local3 = _local2 + this.changePerFrame;
this.ref.setSoundVolume(aSoundLinkage_str, _local3);
};
}
}
function setGlobalVolume(aVolume_num) {
globalSound_snd.setVolume(aVolume_num);
}
}
Symbol 782 MovieClip [__Packages.com.managers.SoundDataObject] Frame 0
class com.managers.SoundDataObject extends Object
{
var name_str, sound_snd;
function SoundDataObject (aSoundName_str, aSound_snd) {
super();
name_str = aSoundName_str;
sound_snd = aSound_snd;
}
function get sound() {
return(sound_snd);
}
function get name() {
return(name_str);
}
}
Symbol 163 MovieClip Frame 16
stop();
Symbol 167 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 1
stop();
Symbol 243 MovieClip [EnemySymbol] Frame 1
stop();
Symbol 247 MovieClip [hurrySymbol] Frame 120
this.removeMovieClip();
Symbol 287 MovieClip [ObstacleSymbol] Frame 1
stop();
Symbol 296 MovieClip [ReadySetGoSymbol] Frame 35
this.removeMovieClip();
Symbol 308 MovieClip [RoadSymbol] Frame 1
stop();
Symbol 323 MovieClip Frame 13
stop();
Symbol 324 MovieClip Frame 13
stop();
Symbol 336 MovieClip Frame 12
_root.myGameClass.STAGE_ANIMATION_COMPLETE_Land();
Symbol 336 MovieClip Frame 19
_root.myGameClass.STAGE_ANIMATION_COMPLETE_Jump();
Symbol 350 MovieClip Frame 7
_root.myGameClass.STAGE_ANIMATION_PushOff();
Symbol 350 MovieClip Frame 22
_root.myGameClass.STAGE_ANIMATION_COMPLETE_Pushoff();
Symbol 384 MovieClip Frame 10
_root.myGameClass.STAGE_ANIMATION_CrashLand();
Symbol 384 MovieClip Frame 25
_root.myGameClass.STAGE_ANIMATION_COMPLETE_Fall();
Symbol 395 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 2
stop();
Symbol 395 MovieClip Frame 3
stop();
Symbol 395 MovieClip Frame 4
stop();
Symbol 395 MovieClip Frame 5
stop();
Symbol 395 MovieClip Frame 6
stop();
Symbol 395 MovieClip Frame 7
stop();
Symbol 395 MovieClip Frame 8
stop();
Symbol 404 MovieClip Frame 13
stop();
Symbol 405 MovieClip Frame 13
stop();
Symbol 413 MovieClip Frame 12
_root.myGameClass.STAGE_ANIMATION_COMPLETE_Land();
Symbol 413 MovieClip Frame 19
_root.myGameClass.STAGE_ANIMATION_COMPLETE_Jump();
Symbol 421 MovieClip Frame 7
_root.myGameClass.STAGE_ANIMATION_PushOff();
Symbol 421 MovieClip Frame 22
_root.myGameClass.STAGE_ANIMATION_COMPLETE_Pushoff();
Symbol 450 MovieClip Frame 10
_root.myGameClass.STAGE_ANIMATION_CrashLand();
Symbol 450 MovieClip Frame 23
_root.myGameClass.STAGE_ANIMATION_COMPLETE_Fall();
Symbol 458 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 2
stop();
Symbol 458 MovieClip Frame 3
stop();
Symbol 458 MovieClip Frame 4
stop();
Symbol 458 MovieClip Frame 5
stop();
Symbol 458 MovieClip Frame 6
stop();
Symbol 458 MovieClip Frame 7
stop();
Symbol 458 MovieClip Frame 8
stop();
Symbol 464 MovieClip Frame 13
stop();
Symbol 465 MovieClip Frame 13
stop();
Symbol 473 MovieClip Frame 12
_root.myGameClass.STAGE_ANIMATION_COMPLETE_Land();
Symbol 473 MovieClip Frame 19
_root.myGameClass.STAGE_ANIMATION_COMPLETE_Jump();
Symbol 482 MovieClip Frame 7
_root.myGameClass.STAGE_ANIMATION_PushOff();
Symbol 482 MovieClip Frame 22
_root.myGameClass.STAGE_ANIMATION_COMPLETE_Pushoff();
Symbol 512 MovieClip Frame 10
_root.myGameClass.STAGE_ANIMATION_CrashLand();
Symbol 512 MovieClip Frame 23
_root.myGameClass.STAGE_ANIMATION_COMPLETE_Fall();
Symbol 520 MovieClip Frame 1
stop();
Symbol 520 MovieClip Frame 2
stop();
Symbol 520 MovieClip Frame 3
stop();
Symbol 520 MovieClip Frame 4
stop();
Symbol 520 MovieClip Frame 5
stop();
Symbol 520 MovieClip Frame 6
stop();
Symbol 520 MovieClip Frame 7
stop();
Symbol 520 MovieClip Frame 8
stop();
Symbol 521 MovieClip [SkaterSymbol] Frame 1
stop();
Symbol 521 MovieClip [SkaterSymbol] Frame 2
stop();
Symbol 521 MovieClip [SkaterSymbol] Frame 3
stop();
Symbol 555 Button
on (release) {
_root.myGameClass.STAGE_BUTTON_LogoButton();
}
Symbol 560 Button
on (release) {
gotoAndPlay ("progress");
}
Symbol 568 MovieClip [transition1Symbol] Frame 104
stop();
Symbol 568 MovieClip [transition1Symbol] Frame 200
_root.myGameClass.STAGE_ANIMATION_COMPLETE_Transition();
this.removeMovieClip();
Symbol 592 Button
on (release) {
gotoAndPlay ("progress");
}
Symbol 600 MovieClip [transition2Symbol] Frame 103
stop();
Symbol 600 MovieClip [transition2Symbol] Frame 200
_root.myGameClass.STAGE_ANIMATION_COMPLETE_Transition();
this.removeMovieClip();
Symbol 619 Button
on (release) {
gotoAndPlay ("progress");
}
Symbol 625 MovieClip [transition3Symbol] Frame 103
stop();
Symbol 625 MovieClip [transition3Symbol] Frame 200
_root.myGameClass.STAGE_ANIMATION_COMPLETE_Transition();
this.removeMovieClip();
Symbol 639 MovieClip Frame 1
stop();
Symbol 668 MovieClip Frame 1
stop();
Symbol 668 MovieClip Frame 65
_root.myGameClass.STAGE_ANIMATION_ATTACH_HURRY();
Symbol 672 Button
on (release) {
_root.myGameClass.STAGE_BUTTON_LogoButton();
}
Symbol 677 MovieClip Frame 1
stop();
Symbol 680 MovieClip Frame 1
stop();
Symbol 691 MovieClip [ScenerySymbol] Frame 1
stop();
Symbol 708 MovieClip Frame 1
stop();
Symbol 720 Button
on (press) {
gotoAndPlay ("inst");
}
Symbol 721 Button
on (press) {
gotoAndPlay ("gogogo");
}
Symbol 728 Button
on (press) {
gotoAndPlay ("gogogo");
}
Symbol 731 MovieClip Frame 38
stop();
Symbol 731 MovieClip Frame 83
stop();
Symbol 731 MovieClip Frame 115
_root.myGameClass.STAGE_BUTTON_Play();
Symbol 735 Button
on (press) {
myGameClass.STAGE_BUTTON_Lose();
}
Symbol 737 Button
on (press) {
myGameClass.STAGE_BUTTON_WinRound();
}
Symbol 741 Button
on (press) {
myGameClass.STAGE_BUTTON_NextRound();
}
Symbol 753 Button
on (press) {
myGameClass.STAGE_BUTTON_PlayAgain("lost");
}
Symbol 758 Button
on (press) {
myGameClass.STAGE_BUTTON_PlayAgain("win");
}