Frame 1
GamestateField2.selectable = false;
function ProcessPreload() {
Preloader.PercentLoaded = Math.round((getBytesLoaded() / getBytesTotal()) * 100);
LowBG._alpha = Preloader.PercentTween;
if (Preloader.PercentTween >= 100) {
Preloader.PreloadDelay++;
if (Preloader.PreloadDelay > 7) {
SCRoot.Track("custom2");
delete _root.onEnterFrame;
delete Preloader.onEnterFrame;
var _local2 = new mx.transitions.Tween(Preloader.Fill, "_alpha", mx.transitions.easing.Back.easeIn, Preloader.Fill._xscale, 0, 0.2, true);
var PercentageAlpha = (new mx.transitions.Tween(Preloader, "_alpha", mx.transitions.easing.Regular.easeIn, 100, 0, 0.2, true));
PercentageAlpha.stop();
PercentageAlpha.onMotionFinished = function () {
_root.gotoAndPlay(2);
};
_local2.onMotionFinished = function () {
PercentageAlpha.resume();
};
}
}
}
function Unblur() {
r_cEnvironmentIntroBlur.blurX = r_cEnvironmentIntroBlur.blurX - 0.5;
r_cEnvironmentIntroBlur.blurY = r_cEnvironmentIntroBlur.blurY - 0.5;
SCSounds.SetVolumeDelta(SCSounds.Music, -10);
if (r_cEnvironmentIntroBlur.blurX <= 0) {
delete onEnterFrame;
SCRoot.InitGame();
_root.MainMenu.gotoAndStop("Blank");
_root.MainMenu._visible = false;
}
}
function Blur() {
r_cEnvironmentIntroBlur.blurX = r_cEnvironmentIntroBlur.blurX + 0.5;
r_cEnvironmentIntroBlur.blurY = r_cEnvironmentIntroBlur.blurY + 0.5;
SCSounds.SetVolumeDelta(SCSounds.Music, 10);
if (r_cEnvironmentIntroBlur.blurX >= 5) {
SCRoot.IntroduceMenu();
delete onEnterFrame;
}
}
SCRoot.Initialise();
var g_cFont = new TextFormat();
g_cFont.font = "Aachen";
GamestateField.selectable = false;
Key.addListener((KeyListener = new Object()));
Mouse.addListener((MouseListener = new Object()));
KeyListener.onKeyDown = SCRoot.OnKeyDown;
KeyListener.onKeyUp = SCRoot.OnKeyUp;
MouseListener.onMouseDown = SCRoot.OnMouseDown;
MouseListener.onMouseUp = SCRoot.OnMouseUp;
Stage.showMenu = false;
Stage.scaleMode = "noscale";
stop();
var r_cEnvironmentIntroBlur = (new flash.filters.BlurFilter(5, 5, 2));
var r_pcEnvironmentFilters = new Array(r_cEnvironmentIntroBlur);
var r_cMenuGrow;
onEnterFrame = ProcessPreload;
SCRoot.m_szGameVersion = "public";
SCRoot.m_szTrackingCode = "2816";
_root.gvTrackCode = "2816";
System.security.allowDomain("www.manmountains.com");
var cCompetitionStateLoadVars = new LoadVars();
cCompetitionStateLoadVars.load("http://www.manmountains.com/manmountains07/data/competitionstate.txt");
cCompetitionStateLoadVars.onLoad = function (bSuccess) {
if (bSuccess) {
SCRoot.m_bDisableCompetition = cCompetitionStateLoadVars.disablecompetition;
}
};
AudienceTF.selectable = false;
AudienceTF.text = "type=" + SCRoot.m_szGameVersion;
Frame 2
function SetupParticleEmitter() {
var _local1 = new Array();
SCRoot.SpecifyEmittersArray(_local1);
}
Environment._alpha = 0;
stop();
attachMovie("MainMenuContainer", "MainMenu", 1000);
MainMenu._x = SCRoot.m_nStageWidth * 0.5;
MainMenu._y = SCRoot.m_nStageHeight * 0.5;
MainMenu._yStart = MainMenu._y;
SCRoot.IntroduceMenu = function () {
SCRoot.m_bContactMade = false;
SCRoot.m_pcGameplayGuage._visible = false;
var m_cEnvironmentTween = (new mx.transitions.Tween(_root.Environment, "_x", mx.transitions.easing.Strong.easeOut, _root.Environment._x, 1200, 0.7, true));
m_cEnvironmentTween.stop();
var cCover = Environment.attachMovie("Cover", "Cover", 99154);
var CoverTween = (new mx.transitions.Tween(cCover, "_alpha", mx.transitions.easing.None.easeOut, 0, 60, 0.5, true));
CoverTween.onMotionFinished = function () {
CoverTween = new mx.transitions.Tween(cCover, "_alpha", mx.transitions.easing.None.easeOut, 60, 61, 0.1, true);
CoverTween.onMotionFinished = function () {
if (SCRoot.m_szGamestate == "Past Line") {
if (SCRoot.m_nCurrentRound > 3) {
MainMenu.gotoAndStop("ScoreDisplay");
MainMenu.NextPage = "Stats";
} else {
MainMenu.gotoAndStop("ScoreDisplay");
MainMenu.NextPage = "Stats";
}
}
if (SCRoot.m_szGamestate == "Failed") {
MainMenu.gotoAndStop("ScoreDisplay");
if (SCRoot.m_bDisableCompetition) {
MainMenu.NextPage = "Home";
} else {
MainMenu.NextPage = "StageFailed";
}
}
SCRoot.m_szGamestate = "Opening Menu";
MainMenu._visible = true;
MainMenu._alpha = 100;
m_cEnvironmentTween.resume();
SCPlayer.m_pcShadow._visible = false;
SCOpponent.m_pcShadow._visible = false;
MainMenu.WidthTween.resume();
MainMenu.HeightTween.resume();
};
};
};
QuitGameButton.onRollOver = function () {
SCSounds.Play(SCSounds.RollOver);
QuitGameButton.gotoAndPlay("WhiteToRed");
};
QuitGameButton.onRollOut = function () {
QuitGameButton.gotoAndPlay("RedToWhite");
};
QuitGameButton.onPress = function () {
SCRoot.InterruptGame();
QuitGameButton.gotoAndStop(1);
_root.MainMenu.gotoAndStop("Home");
};
InitialiseRoot = function () {
SCRoot.m_szGamestate = "Initialising Game";
_root.GamestateField.text = "Initialising Game";
r_cEnvironmentIntroBlur.blurX = 5;
r_cEnvironmentIntroBlur.blurY = 5;
SetupParticleEmitter();
SCRoot.m_nCurrentRound = SCRoot.m_nDefaultStartingRound;
SCRoot.m_pcEnvironment = _root.Environment;
SCPlayer.Initialise();
SCOpponent.Initialise();
SCPlayer.m_pcSprite = SCRoot.m_pcEnvironment.attachMovie("Player", "Player.m_pcSprite", 2002);
SCOpponent.m_pcSprite = SCRoot.m_pcEnvironment.attachMovie("Opponent", "Opponent.m_pcSprite", 2001);
SCRoot.m_pcGameplayGuage = SCRoot.m_pcEnvironment.attachMovie("AngleGuage", "GameplayGuage", 2003);
SCPlayer.m_pcShadow = SCRoot.m_pcEnvironment.attachMovie("Shadow", "PlayerShadow", 1998);
SCOpponent.m_pcShadow = SCRoot.m_pcEnvironment.attachMovie("Shadow", "PlayerShadow", 1997);
SCOpponent.m_pcSprite._y = SCPhysics.m_fGroundLevel;
SCPlayer.m_pcSprite.Animation.stop();
SCPlayer.m_pcShadow.onEnterFrame = function () {
(SCPlayer.m_pcSprite._visible ? ((this._visible = true)) : ((this._visible = false)));
SCPlayer.UpdateShadow();
};
SCOpponent.m_pcShadow.onEnterFrame = function () {
(SCOpponent.m_pcSprite._visible ? ((this._visible = true)) : ((this._visible = false)));
SCOpponent.UpdateShadow();
};
SCPlayer.m_pcSprite._visible = false;
SCOpponent.m_pcSprite._visible = false;
SCRoot.m_pcGameplayGuage._width = SCRoot.m_pcGameplayGuage._width * 0.7;
SCRoot.m_pcGameplayGuage._height = SCRoot.m_pcGameplayGuage._height * 0.7;
SCRoot.m_pcGameplayGuage._visible = false;
SCRoot.m_vnOpponentStartingPositions = new Array(_root.Environment.TackleLine._x - 100, _root.Environment.TackleLine._x - 160, _root.Environment.TackleLine._x - 280);
SCPlayer.m_bAnimate = false;
SCOpponent.m_bAnimate = false;
};
InitialiseRoot();
CloseMenu = function () {
Environment.Cover.removeMovieClip();
SCRoot.m_szGamestate = "Resuming Game";
_root.Environment.Player.removeMovieClip();
SCOpponent.EnterStage();
_root.GamestateField.text = "Resuming Game";
MainMenu._visible = true;
var _local3 = new mx.transitions.Tween(_root.Environment, "_alpha", mx.transitions.easing.None.easeOut, 0, 100, 0.25, true);
var _local2 = new mx.transitions.Tween(MainMenu, "_alpha", mx.transitions.easing.None.easeOut, 100, 0, 0.25, true);
Environment._x = 26;
_local2.onMotionFinished = function () {
onEnterFrame = Unblur;
};
};
var MyTransform = (new flash.geom.Transform(_root));
var MyColourTransform = (new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0));
MyTransform.colorTransform = MyColourTransform;
_root.transform = MyTransform;
PlusButton1.Black._width = (PlusButton2.Black._width = (PlusButton3.Black._width = (PlusButton4.Black._width = 0)));
var m_fBarTweenDuration = 0.25;
var m_fPlusTweenDuration = 0.75;
var m_fDefaultBarWidth = PlusButton2.BG._width;
var m_fDefaultWidth = PlusButton2.Plus._width;
var m_fDefaultHeight = PlusButton2.Plus._height;
PlusButton2.onPress = function () {
if (_root.MainMenu._currentframe == 12) {
return(undefined);
}
SCRoot.InterruptGame();
_root.MainMenu.gotoAndStop("InstantHighScores");
SCSounds.Stop(SCSounds.RollOver, "rollover");
SCSounds.Play(SCSounds.RollOver);
this.Plus.WidthTween = new mx.transitions.Tween(this.Plus, "_width", mx.transitions.easing.Elastic.easeOut, this.Plus._width, m_fDefaultWidth, m_fPlusTweenDuration, true);
this.Plus.HeightTween = new mx.transitions.Tween(this.Plus, "_height", mx.transitions.easing.Elastic.easeOut, this.Plus._height, m_fDefaultHeight, m_fPlusTweenDuration, true);
this.Black.WidthTween = new mx.transitions.Tween(this.Black, "_width", mx.transitions.easing.Regular.easeOut, this.Black._width, 0, m_fBarTweenDuration, true);
SCSounds.Play(SCSounds.MouseDown);
};
PlusButton1.onPress = function () {
if (_root.MainMenu._currentframe == 3) {
return(undefined);
}
SCRoot.InterruptGame();
_root.MainMenu.gotoAndStop("ChallengeAFriend");
SCSounds.Stop(SCSounds.RollOver, "rollover");
SCSounds.Play(SCSounds.RollOver);
this.Plus.WidthTween = new mx.transitions.Tween(this.Plus, "_width", mx.transitions.easing.Elastic.easeOut, this.Plus._width, m_fDefaultWidth, m_fPlusTweenDuration, true);
this.Plus.HeightTween = new mx.transitions.Tween(this.Plus, "_height", mx.transitions.easing.Elastic.easeOut, this.Plus._height, m_fDefaultHeight, m_fPlusTweenDuration, true);
this.Black.WidthTween = new mx.transitions.Tween(this.Black, "_width", mx.transitions.easing.Regular.easeOut, this.Black._width, 0, m_fBarTweenDuration, true);
SCSounds.Play(SCSounds.MouseDown);
};
PlusButton3.onPress = function () {
SCSounds.Play(SCSounds.MouseDown);
var _local2 = Math.floor(Math.random() * 10000000);
var _local1 = ("http://ad.uk.doubleclick.net/activity;src=1150700;type=wruru691;cat=wruga341;ord=1;num=" + _local2) + "?";
loadMovieNum (_local1, 2);
getURL ("http://www.rugby.invescoperpetual.co.uk", "_blank");
SCRoot.Track("custom1");
};
PlusButton4.onPress = function () {
SCRoot.Track("clickthru");
var _local2 = Math.floor(Math.random() * 10000000);
var _local1 = ("http://ad.uk.doubleclick.net/activity;src=1150700;type=wruru691;cat=wruga892;ord=1;num=" + _local2) + "?";
loadMovieNum (_local1, 2);
getURL ("http://www.invescoperpetual.co.uk", "_blank");
SCSounds.Play(SCSounds.MouseDown);
};
PlusButton1.onRollOver = (PlusButton1.onDragOver = function () {
if (_root.MainMenu._currentframe == 3) {
return(undefined);
}
SCSounds.Stop(SCSounds.RollOver, "rollover");
SCSounds.Play(SCSounds.RollOver);
this.Plus.WidthTween = new mx.transitions.Tween(this.Plus, "_width", mx.transitions.easing.Elastic.easeOut, this.Plus._width, m_fDefaultWidth + 3, m_fPlusTweenDuration, true);
this.Plus.HeightTween = new mx.transitions.Tween(this.Plus, "_height", mx.transitions.easing.Elastic.easeOut, this.Plus._height, m_fDefaultHeight + 3, m_fPlusTweenDuration, true);
this.Black.WidthTween = new mx.transitions.Tween(this.Black, "_width", mx.transitions.easing.Regular.easeOut, this.Black._width, m_fDefaultBarWidth, m_fBarTweenDuration, true);
});
PlusButton1.onRollOut = (PlusButton1.onDragOut = function () {
if (_root.MainMenu._currentframe == 3) {
return(undefined);
}
SCSounds.Stop(SCSounds.RollOver, "rollover");
SCSounds.Play(SCSounds.RollOver);
this.Plus.WidthTween = new mx.transitions.Tween(this.Plus, "_width", mx.transitions.easing.Elastic.easeOut, this.Plus._width, m_fDefaultWidth, m_fPlusTweenDuration, true);
this.Plus.HeightTween = new mx.transitions.Tween(this.Plus, "_height", mx.transitions.easing.Elastic.easeOut, this.Plus._height, m_fDefaultHeight, m_fPlusTweenDuration, true);
this.Black.WidthTween = new mx.transitions.Tween(this.Black, "_width", mx.transitions.easing.Regular.easeOut, this.Black._width, 0, m_fBarTweenDuration, true);
});
PlusButton2.onRollOver = (PlusButton2.onDragOver = (PlusButton3.onRollOver = (PlusButton3.onDragOver = (PlusButton4.onRollOver = (PlusButton4.onDragOver = function () {
SCSounds.Stop(SCSounds.RollOver, "rollover");
SCSounds.Play(SCSounds.RollOver);
this.Plus.WidthTween = new mx.transitions.Tween(this.Plus, "_width", mx.transitions.easing.Elastic.easeOut, this.Plus._width, m_fDefaultWidth + 3, m_fPlusTweenDuration, true);
this.Plus.HeightTween = new mx.transitions.Tween(this.Plus, "_height", mx.transitions.easing.Elastic.easeOut, this.Plus._height, m_fDefaultHeight + 3, m_fPlusTweenDuration, true);
this.Black.WidthTween = new mx.transitions.Tween(this.Black, "_width", mx.transitions.easing.Regular.easeOut, this.Black._width, m_fDefaultBarWidth, m_fBarTweenDuration, true);
})))));
PlusButton2.onRollOut = (PlusButton2.onDragOut = (PlusButton3.onRollOut = (PlusButton3.onDragOut = (PlusButton4.onRollOut = (PlusButton4.onDragOut = function () {
SCSounds.Stop(SCSounds.RollOver, "rollover");
SCSounds.Play(SCSounds.RollOver);
this.Plus.WidthTween = new mx.transitions.Tween(this.Plus, "_width", mx.transitions.easing.Elastic.easeOut, this.Plus._width, m_fDefaultWidth, m_fPlusTweenDuration, true);
this.Plus.HeightTween = new mx.transitions.Tween(this.Plus, "_height", mx.transitions.easing.Elastic.easeOut, this.Plus._height, m_fDefaultHeight, m_fPlusTweenDuration, true);
this.Black.WidthTween = new mx.transitions.Tween(this.Black, "_width", mx.transitions.easing.Regular.easeOut, this.Black._width, 0, m_fBarTweenDuration, true);
})))));
PlusButton1.tabEnabled = (PlusButton2.tabEnabled = (PlusButton3.tabEnabled = false));
Symbol 3 MovieClip [WhiteFlash] Frame 22
SCRoot.ExecuteTackle();
this.removeMovieClip();
Symbol 6 MovieClip Frame 1
TF.selectable = false;
Symbol 7 MovieClip [Excellent] Frame 1
var m_cThis = this;
var m_fTransitionTime = 0.2;
m_cWidthTween = new mx.transitions.Tween(TF, "_xscale", mx.transitions.easing.Bounce.easeOut, 90, 100, m_fTransitionTime, true);
m_cHeightTween = new mx.transitions.Tween(TF, "_yscale", mx.transitions.easing.Bounce.easeOut, 90, 100, m_fTransitionTime, true);
m_cAlphaTween = new mx.transitions.Tween(TF, "_alpha", mx.transitions.easing.None.easeOut, 0, 100, m_fTransitionTime, true);
m_cWidthTween2 = new mx.transitions.Tween(TF2, "_xscale", mx.transitions.easing.Bounce.easeOut, 90, 100, m_fTransitionTime, true);
m_cHeightTween2 = new mx.transitions.Tween(TF2, "_yscale", mx.transitions.easing.Bounce.easeOut, 90, 100, m_fTransitionTime, true);
m_cAlphaTween2 = new mx.transitions.Tween(TF2, "_alpha", mx.transitions.easing.None.easeOut, 0, 100, m_fTransitionTime, true);
m_cAlphaTween.onMotionFinished = function () {
var _local2 = new mx.transitions.Tween(m_cThis.TF, "_alpha", mx.transitions.easing.None.easeOut, 100, 105, 0.3, true);
_local2.onMotionFinished = function () {
var _local3 = new mx.transitions.Tween(m_cThis.TF, "_xscale", mx.transitions.easing.Bounce.easeOut, 100, 90, m_fTransitionTime, true);
var _local2 = new mx.transitions.Tween(m_cThis.TF, "_yscale", mx.transitions.easing.Bounce.easeOut, 100, 90, m_fTransitionTime, true);
var _local1 = new mx.transitions.Tween(m_cThis.TF, "_alpha", mx.transitions.easing.None.easeOut, 100, 0, m_fTransitionTime, true);
var _local6 = new mx.transitions.Tween(m_cThis.TF2, "_xscale", mx.transitions.easing.Bounce.easeOut, 100, 90, m_fTransitionTime, true);
var _local4 = new mx.transitions.Tween(m_cThis.TF2, "_yscale", mx.transitions.easing.Bounce.easeOut, 100, 90, m_fTransitionTime, true);
var _local5 = new mx.transitions.Tween(m_cThis.TF2, "_alpha", mx.transitions.easing.None.easeOut, 100, 0, m_fTransitionTime, true);
_local1.onMotionFinished = function () {
m_cThis.removeMovieClip();
};
};
};
Symbol 18 MovieClip [GroundIndicator] Frame 1
var m_bLoaded;
if (!m_bLoaded) {
m_bLoaded = true;
Bullseye._alpha = 0;
onEnterFrame = function () {
((Bullseye._alpha < 40) ? ((Bullseye._alpha = Bullseye._alpha + 10)) : (delete onEnterFrame));
};
}
Symbol 18 MovieClip [GroundIndicator] Frame 21
gotoAndPlay (1);
Symbol 18 MovieClip [GroundIndicator] Frame 22
stop();
onEnterFrame = function () {
if (this.FadeOut == true) {
this._alpha = this._alpha - 4;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
};
Symbol 24 MovieClip Frame 1
function onEnterFrame() {
Fill._yscale = PercentTween;
if (PercentTween < PercentLoaded) {
PercentTween++;
}
PercentageText.text = PercentTween;
}
var PercentLoaded = 0;
var PreloadDelay = 0;
var PercentTween = 0;
PercentageText.selectable = false;
Symbol 1119 MovieClip [__Packages.SCPhysics] Frame 0
class SCPhysics
{
function SCPhysics () {
}
static function COMCtoCOMC(cA, cB, cASize, cBSize) {
var _local4 = cASize._width * 0.5;
var _local2 = cASize._height * 0.5;
var _local3 = cBSize._width * 0.5;
var _local1 = cBSize._height * 0.5;
if ((((cA._x > ((cB._x + _local4) + _local3)) || (cA._x < ((cB._x - _local4) - _local3))) || (cA._y > ((cB._y + _local2) + _local1))) || (cA._y < ((cB._y - _local2) - _local1))) {
return(false);
}
return(true);
}
static var m_fGravity = 0.1;
static var m_fGroundLevel = 200;
static var m_bDisplayParticles = true;
static var m_nStartingRound = 1;
}
Symbol 1120 MovieClip [__Packages.SCRoot] Frame 0
class SCRoot
{
static var m_cTrackingContainer, m_vcDirtParticles, m_nStageWidth, m_nStageHeight, m_szGamestate, m_vszRoundNames, m_vszRoundInstructions, m_pvpcEmitters, m_pcGameplayGuage, m_pcEnvironment, m_nCurrentRound, m_szEndOfRoundMessage, m_szGameVersion, m_vnOpponentStartingPositions, m_cDebugPanel;
function SCRoot () {
}
static function Initialise() {
System.security.allowDomain("www.chunk.co.uk");
System.security.allowDomain("server01.chunkdispenser.com");
m_cTrackingContainer = _root.createEmptyMovieClip("flashTrack", 999);
loadMovie ("http://www.chunk.co.uk/reporting/chunkTrack.swf", m_cTrackingContainer);
m_bFirstVisit = true;
m_vcDirtParticles = new Array();
m_nStageWidth = 760;
m_nStageHeight = 390;
m_szGamestate = "Frontend";
m_vszRoundNames = new Array("KEEP IT SIMPLE", "GET A GRIP", "WEIGHT FOR IT");
m_vszRoundInstructions = new Array();
m_vszRoundInstructions.push("Press your spacebar at\nthe right moment and\nhold it for just the right\namount of time to\nscore the maximum\npoints for taking out\nyour opponent.");
m_vszRoundInstructions.push("Once again use the\nspacebar to launch\nyourself at your\nopponent, then tap\nthe cursor keys\nalternately to push\nyour opponent\nover the line.");
m_vszRoundInstructions.push("This is the big one\u2026\nliterally! To take down\nthis beast you'll have\nto tackle, push,\nlift and balance him\nover the line using\nthe spacebar and\ncursor keys.");
}
static function Track(szString) {
_root.flashTrack.trackEvent(szString);
}
static function IntroduceMenu() {
}
static function PlayingAgain() {
if (m_nTimesPlayed > 0) {
Track("playagain");
}
m_nTimesPlayed++;
SCPlayer.m_pcScoring.Reset();
}
static function SpecifyEmittersArray(vpArray) {
m_pvpcEmitters = vpArray;
}
static function InterruptGame() {
SCPlayer.m_bAnimate = false;
_root.MainMenu._visible = true;
SCOpponent.m_bAnimate = false;
SCPlayer.m_bAllowUserInput = false;
SCPlayer.m_cVelocity.__set__x(SCPlayer.m_cVelocity.__set__y(0));
SCOpponent.m_cVelocity.__set__x(SCOpponent.m_cVelocity.__set__y(0));
m_szGamestate = "Game Interrupted";
SCPlayer.m_pcIndicator.removeMovieClip();
clearInterval(_root.m_nIntervalID);
clearInterval(m_nRoundIntroInterval);
delete _root.onEnterFrame;
var _local3 = SCSounds.Music.position;
stopAllSounds();
SCSounds.Music.start(_local3 / 1000, 0);
SCSounds.Music.onSoundComplete = function () {
SCSounds.Music.start(0, 9999);
};
SCSounds.Music.setVolume(100);
m_pcGameplayGuage.removeMovieClip();
_root.MainMenu._alpha = 100;
_root.Environment._x = 1200;
}
static function NextLevel() {
_root.QuitGameButton._visible = true;
m_pcGameplayGuage.removeMovieClip();
m_pcEnvironment.GroundIndicator.removeMovieClip();
var _local2 = 0;
while (_local2 < m_pvpcEmitters.length) {
m_pvpcEmitters[_local2].Destroy();
delete m_pvpcEmitters[_local2];
m_pvpcEmitters.splice(_local2);
_local2++;
}
if (m_szGamestate != "Failed") {
switch (m_nCurrentRound) {
case 1 :
m_szEndOfRoundMessage = "TOUGH TACKLING";
break;
case 2 :
m_szEndOfRoundMessage = "NAILED HIM";
break;
case 3 :
m_szEndOfRoundMessage = "YOU\u2019VE DONE IT";
}
}
SCSounds.Stop(SCSounds.Struggle, "struggle");
SCSounds.Stop(SCSounds.Crowd, "crowd");
SCPlayer.m_bProduceDirt = false;
SCOpponent.m_bProduceDirt = false;
m_nKeyRattles = 0;
_root.MainMenu._visible = true;
SCPlayer.m_cVelocity.__set__x(0);
SCOpponent.m_cVelocity.__set__x(0);
SCPlayer.m_bApplyGravity = true;
SCPlayer.m_bAnimate = false;
SCOpponent.m_bAnimate = false;
_root.onEnterFrame = _root.Blur;
}
static function RemoveDirtParticles() {
var _local2 = m_vcDirtParticles.length;
var _local1 = 0;
while (_local1 < _local2) {
m_vcDirtParticles[_local1].removeMovieClip();
_local1++;
}
m_vcDirtParticles = new Array();
}
static function Gameloop() {
_root.GamestateField2.text = m_szGameVersion;
if ((m_szGamestate != "Dragging") && (m_szGamestate != "Balancing")) {
m_nStageTimer++;
}
UpdateEmitters();
SCOpponent.Update();
m_pcGameplayGuage._x = SCPlayer.m_pcSprite._x;
m_pcGameplayGuage._y = SCPlayer.m_pcSprite._y - 140;
if (m_pcGameplayGuage.GuageType == "Angle") {
m_pcGameplayGuage.Dial._rotation = SCPlayer.m_fTackleAngle + 90;
m_pcGameplayGuage.AngleText.text = SCPlayer.m_fTackleAngle;
} else if (m_nCurrentRound == 3) {
if (m_szGamestate == "Balancing") {
SCPlayer.m_fBalanceAngle = SCPlayer.m_fBalanceAngle + SCPlayer.m_fBalanceAngleVelocity;
SCPlayer.m_cVelocity.__set__x(SCPlayer.m_fBalanceAngle * 0.02);
SCOpponent.m_cVelocity.__set__x(SCPlayer.m_fBalanceAngle * 0.02);
m_pcGameplayGuage.Dial._rotation = SCPlayer.m_fBalanceAngle;
m_pcGameplayGuage.AngleText.text = SCPlayer.m_fBalanceAngle;
} else {
SCPlayer.m_fBalanceAngle = SCPlayer.m_fBalanceAngle + SCPlayer.m_fBalanceAngleVelocity;
m_pcGameplayGuage.Dial._rotation = SCPlayer.m_fTackleAngle + 90;
m_pcGameplayGuage.AngleText.text = SCPlayer.m_fTackleAngle;
}
}
GetAsyncKeyInput();
if ((m_szGamestate == "Executing Tackle") && (SCPlayer.m_pcSprite.Animation._rotation < SCPlayer.m_fTackleAngle)) {
}
if (((m_szGamestate == "Tackling Towards Line") || (m_szGamestate == "Executing Tackle")) || (m_szGamestate == "Missed")) {
if (Math.abs(SCPlayer.m_cVelocity.Magnitude()) < 0.2) {
NextLevel();
m_szGamestate = "Failed";
SCSounds.Stop(SCSounds.Crowd, "crowd");
SCSounds.Play(SCSounds.CrowdBoo);
if (m_bContactMade) {
m_szEndOfRoundMessage = "OUCH - TOO EARLY";
} else {
m_szEndOfRoundMessage = "YOU MISSED";
}
}
}
var _local2 = new Object();
var _local3 = new Object();
_local2._width = SCPlayer.m_pcSprite.Animation._width * 0.5;
_local2._height = SCPlayer.m_pcSprite.Animation._height * 0.9;
_local3._width = SCOpponent.m_pcSprite.Animation._width * 0.2;
_local3._height = SCOpponent.m_pcSprite.Animation._height * 0.9;
if (SCPhysics.COMCtoCOMC(SCPlayer.m_pcSprite, SCOpponent.m_pcSprite, _local2, _local3)) {
if ((!m_bTackleMade) && (m_szGamestate == "Executing Tackle")) {
if (SCPlayer.m_pcSprite._x < (SCOpponent.m_pcSprite._x - 10)) {
TackleMakesImpact();
m_bContactMade = true;
} else {
SCSounds.Stop(SCSounds.Crowd, "crowd");
SCSounds.Play(SCSounds.CrowdBoo);
m_szGamestate = "Missed";
}
}
}
if (m_szGamestate == "Past Line") {
NextLevel();
}
if (PlayerPastLine() && (!m_bContactMade)) {
NextLevel();
SCPlayer.m_bAnimate = false;
SCSounds.Stop(SCSounds.Crowd, "crowd");
SCSounds.Play(SCSounds.CrowdBoo);
m_szGamestate = "Failed";
m_szEndOfRoundMessage = "YOU MISSED";
}
switch (m_szGamestate) {
case "Charging Tackle" :
if (m_bSpaceIsDown) {
m_pcGameplayGuage.TF.text = Math.round(SCPlayer.m_fTackleAngle);
if ((SCPlayer.m_fTackleAngleVelocity = SCPlayer.m_fTackleAngleVelocity + 0.01)) {
SCPlayer.m_fTackleAngleVelocity = SCPlayer.m_fTackleAngleVelocity + 0.01;
}
if (SCPlayer.m_nTackleAngleDirection == 1) {
if (SCPlayer.m_fTackleAngle < 90) {
SCPlayer.m_fTackleAngle = SCPlayer.m_fTackleAngle + SCPlayer.m_fTackleAngleVelocity;
}
if (SCPlayer.m_fTackleAngle >= 90) {
SCPlayer.m_fTackleAngle = 90;
SCPlayer.m_nTackleAngleDirection = 2;
}
} else if (SCPlayer.m_nTackleAngleDirection == 2) {
if (SCPlayer.m_fTackleAngle > 0) {
SCPlayer.m_fTackleAngle = SCPlayer.m_fTackleAngle - SCPlayer.m_fTackleAngleVelocity;
}
if (SCPlayer.m_fTackleAngle <= 0) {
SCPlayer.m_fTackleAngle = 0;
ReleaseForTackle();
}
}
}
break;
case "Releasing For Tackle" :
break;
case "Executing Tackle" :
SCPlayer.Update();
break;
case "Tackling Towards Line" :
SCPlayer.Update();
if (PastLine()) {
CalculateEndOfStageScores();
m_szGamestate = "Past Line";
}
break;
case "Running Toward Opponent" :
case "Waiting To Begin" :
SCPlayer.Update();
m_pcEnvironment.GroundIndicator._x = SCOpponent.m_pcSprite._x - 90;
break;
case "Dragging" :
SCPlayer.Update();
m_nDragTimeLeft--;
SCOpponent.m_cVelocity.__set__y(0);
if (m_nDragTimeLeft <= 0) {
m_nDragTimeLeft = 0;
SCPlayer.m_fBalanceAngle = 0;
m_pcGameplayGuage._visible = false;
m_szEndOfRoundMessage = "FAILED";
m_szGamestate = "Failed";
SCSounds.Stop(SCSounds.Crowd, "crowd");
SCSounds.Play(SCSounds.CrowdBoo);
SCPlayer.m_pcSprite.gotoAndStop("Falling");
}
m_nDragTimer++;
if (SCPlayer.m_pcSprite._x > 300) {
SCPlayer.m_pcSprite._x = SCPlayer.m_pcSprite._x - 0.2;
SCOpponent.m_pcSprite._x = SCOpponent.m_pcSprite._x - 0.2;
}
if (m_nCurrentRound == 3) {
if (m_nKeyRattles >= 45) {
m_nKeyRattles = -1;
SCOpponent.m_pcSprite.m_fTargetHeight = SCOpponent.m_pcSprite._y - 40;
SCPlayer.m_bApplyFriction = false;
SCOpponent.m_bApplyFriction = false;
SCPlayer.m_bProduceDirt = false;
SCOpponent.m_bProduceDirt = false;
SCPlayer.m_pcSprite.gotoAndStop("Lifting");
SCSounds.Stop(SCSounds.Struggle);
SCSounds.Play(SCSounds.Lift);
SCOpponent.m_pcSprite.gotoAndStop("Lifted" + m_nCurrentRound);
m_pcGameplayGuage.removeMovieClip();
m_szGamestate = "Lifting";
}
}
if (PastLine()) {
CalculateEndOfStageScores();
NextLevel();
m_szGamestate = "Past Line";
}
break;
case "Balancing" :
m_nBalanceTimeLeft--;
SCPlayer.m_pcSprite.Animation._rotation = SCPlayer.m_fBalanceAngle * 0.1;
SCOpponent.m_pcSprite.Animation._rotation = SCPlayer.m_fBalanceAngle * 0.1;
if (SCOpponent.m_pcSprite._x >= (m_pcEnvironment.TackleLine._x + 10)) {
SCPlayer.m_bAnimate = false;
SCOpponent.m_bAnimate = false;
CalculateEndOfStageScores();
m_szGamestate = "Past Line";
NextLevel();
}
SCPlayer.m_fBalanceAngleVelocity = SCPlayer.m_fBalanceAngleVelocity + ((Math.random() - Math.random()) * 0.2);
if (m_nBalanceTimeLeft <= 0) {
m_nBalanceTimeLeft = 0;
if (SCPlayer.m_fBalanceAngle <= 0) {
FallLeft();
} else if (SCPlayer.m_fBalanceAngle > 0) {
FallRight();
}
}
if (SCPlayer.m_fBalanceAngle < -90) {
FallLeft();
}
if (SCPlayer.m_fBalanceAngle > 90) {
FallRight();
}
m_nBalanceTimer++;
SCPlayer.Update();
break;
default :
SCPlayer.Update();
}
}
static function AddBalanceGuage() {
SCSounds.Play(SCSounds.Flicker);
m_szGamestate = "Balancing";
m_pcGameplayGuage = m_pcEnvironment.attachMovie("BalanceGuage", "GameplayGuage", 2003);
SCPlayer.m_fBalanceAngle = 0;
SCPlayer.m_fBalanceAngleVelocity = 0;
m_pcGameplayGuage.Timer.gotoAndStop(1);
m_pcGameplayGuage._x = SCPlayer.m_pcSprite._x;
m_pcGameplayGuage._y = SCPlayer.m_pcSprite._y - 140;
m_nBalanceTimeLeft = 450;
}
static function InitGame() {
m_bGameRunning = true;
m_nStageTimer = 0;
m_nDragTimer = 0;
m_nBalanceTimer = 0;
SCPlayer.m_pcSprite._x = -(Player.m_pcSprite._width * 0.6);
SCPlayer.m_pcSprite._y = SCPhysics.m_fGroundLevel;
SCPlayer.m_pcSprite.Animation._rotation = 0;
SCOpponent.m_pcSprite._x = m_vnOpponentStartingPositions[m_nCurrentRound - 1];
SCOpponent.m_pcSprite._y = SCPhysics.m_fGroundLevel;
SCOpponent.m_pcSprite.Animation._rotation = 0;
SCPlayer.EnterStage(SCPlayer.m_pcSprite._x, 60);
_root.QuitGameButton._visible = true;
m_nKeyRattles = 0;
_root.onEnterFrame = Gameloop;
}
static function FallLeft() {
SCPlayer.m_fBalanceAngle = 0;
m_pcGameplayGuage._visible = false;
m_szEndOfRoundMessage = "FAILED";
m_szGamestate = "Failed";
SCSounds.Stop(SCSounds.Crowd, "crowd");
SCSounds.Play(SCSounds.CrowdBoo);
SCPlayer.m_pcSprite.gotoAndStop("Falling");
SCOpponent.m_bBeingDropped = true;
SCOpponent.m_bApplyGravity = true;
SCOpponent.m_bApplyFriction = false;
}
static function FallRight() {
SCPlayer.m_fBalanceAngle = 0;
m_pcGameplayGuage._visible = false;
m_szGamestate = "Failed";
SCSounds.Stop(SCSounds.Crowd, "crowd");
SCSounds.Play(SCSounds.CrowdBoo);
m_szEndOfRoundMessage = "FAILED";
SCPlayer.m_pcSprite.gotoAndStop("Falling");
SCOpponent.m_bBeingDropped = true;
SCOpponent.m_bApplyGravity = true;
SCOpponent.m_bApplyFriction = false;
}
static function SpecifyEnvironmentObject(pcEnvironment) {
m_pcEnvironment = pcEnvironment;
}
static function SpecifyOpponentObject(pcOpponent) {
SCOpponent = pcOpponent;
}
static function SpecifyGameplayGuage(pcGameplayGuage) {
m_pcGameplayGuage = pcGameplayGuage;
}
static function get Environment() {
return(m_pcEnvironment);
}
static function get Player() {
return(SCPlayer);
}
static function get Opponent() {
return(SCOpponent);
}
static function OnMouseDown() {
}
static function OnMouseUp() {
}
static function GetAsyncKeyInput() {
if (m_szGamestate == "Balancing") {
if (m_bLeftKeyDown) {
SCPlayer.m_fBalanceAngleVelocity = SCPlayer.m_fBalanceAngleVelocity - 0.05;
}
if (m_bRightKeyDown) {
SCPlayer.m_fBalanceAngleVelocity = SCPlayer.m_fBalanceAngleVelocity + 0.05;
}
}
if (m_szGamestate == "Dragging") {
if (m_bLeftKeyDown) {
if (m_nDragKeyTrigger != 2) {
m_bLeftKeyDown = false;
SCPlayer.m_fDirtGenerationDelay = SCPlayer.m_fDirtGenerationDelay - 2;
SCOpponent.m_fDirtGenerationDelay = SCOpponent.m_fDirtGenerationDelay - 2;
SCPlayer.m_pcSprite._x = SCPlayer.m_pcSprite._x + 3;
SCOpponent.m_pcSprite._x = SCOpponent.m_pcSprite._x + 3;
m_szLeftKeyTrigger = 2;
m_nDragKeyTrigger = 2;
m_nKeyRattles++;
m_pcGameplayGuage.gotoAndStop("RightKeyLit");
}
} else {
m_szLeftKeyTrigger--;
}
if (m_bRightKeyDown) {
if (m_nDragKeyTrigger != 1) {
m_bRightKeyDown = false;
SCPlayer.m_fDirtGenerationDelay = SCPlayer.m_fDirtGenerationDelay - 2;
SCOpponent.m_fDirtGenerationDelay = SCOpponent.m_fDirtGenerationDelay - 2;
SCPlayer.m_pcSprite._x = SCPlayer.m_pcSprite._x + 3;
SCOpponent.m_pcSprite._x = SCOpponent.m_pcSprite._x + 3;
m_szRightKeyTrigger = 2;
m_nDragKeyTrigger = 1;
m_nKeyRattles++;
m_pcGameplayGuage.gotoAndStop("LeftKeyLit");
}
} else {
m_szRightKeyTrigger--;
}
}
}
static function OnKeyDown() {
if (Key.getCode() == 32) {
m_bSpaceIsDown = true;
}
if ((Key.getCode() == 68) || (Key.getCode() == 100)) {
if (m_cDebugPanel) {
m_cDebugPanel.removeMovieClip();
m_cDebugPanel = null;
} else {
m_cDebugPanel = _root.attachMovie("DebugPanel", "DebugPanel", 10000);
}
}
if (Key.getCode() == 37) {
m_bLeftKeyDown = true;
}
if (Key.getCode() == 39) {
m_bRightKeyDown = true;
}
if (_root.MainMenu._currentframe == 1) {
_root.MainMenu.PlayButton.onPress();
} else if ((_root.MainMenu._currentframe >= 4) && (_root.MainMenu._currentframe <= 6)) {
if (_root.MainMenu.Intro.PlayButton) {
_root.MainMenu.Intro.PlayButton.onPress();
_root.MainMenu.gotoAndStop("Blank");
}
}
if (SCPlayer.m_bAllowUserInput) {
if (m_bSpaceIsDown && (m_bSpacebarDown == false)) {
m_bSpacebarDown = true;
switch (m_szGamestate) {
case "Waiting To Begin" :
m_nStageTimer = 0;
m_szGamestate = "Running Toward Opponent";
m_pcEnvironment.attachMovie("GroundIndicator", "GroundIndicator", 2);
m_pcEnvironment.GroundIndicator._x = SCOpponent.m_pcSprite._x - 90;
m_pcEnvironment.GroundIndicator._y = SCPhysics.m_fGroundLevel;
_root.GamestateField.text = m_szGamestate;
SCSounds.Stop(SCSounds.Waiting, "waiting");
SCSounds.Play(SCSounds.Whistle);
SCSounds.PlayLoop(SCSounds.Crowd);
SCSounds.PlayLoop(SCSounds.Panting);
SCPlayer.BeginWalking();
break;
case "Running Toward Opponent" :
ChargeTackle();
}
}
}
}
static function OnKeyUp() {
if (Key.getCode() == 32) {
m_bSpacebarDown = false;
m_bSpaceIsDown = false;
}
if (Key.getCode() == 37) {
m_bLeftKeyDown = false;
}
if (Key.getCode() == 39) {
m_bRightKeyDown = false;
}
if (SCPlayer.m_bAllowUserInput) {
if (m_szGamestate == "Charging Tackle") {
if (Key.getCode() == 32) {
ReleaseForTackle();
}
}
}
}
static function ReleaseForTackle() {
m_szGamestate = "Releasing For Tackle";
SCSounds.Stop(SCSounds.Rush, "rush");
var _local1 = m_pcEnvironment.attachMovie("Excellent", "Excellent", 9500);
_local1._x = m_pcGameplayGuage._x;
_local1._y = m_pcGameplayGuage._y - 40;
m_pcGameplayGuage.removeMovieClip();
var _local2 = Math.abs(SCPlayer.m_fTackleAngle - 48);
SCPlayer.m_pcScoring.m_fStageTimeTaken = Math.round(100 - (3 * _local2));
((SCPlayer.m_pcScoring.m_fStageTimeTaken < 0) ? ((SCPlayer.m_pcScoring.m_fStageTimeTaken = 0)) : null);
SCPlayer.m_pcScoring.m_fStageTimeTaken = SCPlayer.m_pcScoring.m_fStageTimeTaken * 10;
if (SCPlayer.m_pcSprite._x < (SCOpponent.m_pcSprite._x - 10)) {
if (_local2 < 1) {
_local1.TF.TF.text = "COLLOSSAL!";
SCPlayer.m_pcScoring.m_fStageTimeTaken = SCPlayer.m_pcScoring.m_fStageTimeTaken + 200;
} else if (_local2 < 3) {
_local1.TF.TF.text = "SPOT ON!";
SCPlayer.m_pcScoring.m_fStageTimeTaken = SCPlayer.m_pcScoring.m_fStageTimeTaken + 100;
} else if (_local2 < 6) {
_local1.TF.TF.text = "GREAT!";
} else if (_local2 < 15) {
_local1.TF.TF.text = "GOOD!";
} else if (_local2 < 30) {
_local1.TF.TF.text = "BOO!";
} else if (_local2 >= 30) {
_local1.TF.TF.text = "WAY OFF!";
}
_local1.TF2.TF.text = SCPlayer.m_pcScoring.m_fStageTimeTaken;
} else {
_local1.TF.TF.text = "Miss!";
_local1.TF2.TF.text = "";
}
m_pcEnvironment.attachMovie("WhiteFlash", "WhiteFlash", 8000);
SCSounds.Play(SCSounds.Flicker2);
}
static function UpdateEmitters() {
var _local1 = 0;
while (_local1 < m_pvpcEmitters.length) {
if (m_pvpcEmitters[_local1].Update() == false) {
m_pvpcEmitters[_local1].Destroy();
delete m_pvpcEmitters[_local1];
m_pvpcEmitters.splice(_local1);
}
_local1++;
}
}
static function ChargeTackle() {
SCPlayer.m_bAnimate = false;
SCPlayer.m_pcSprite.gotoAndStop("GoToDive");
var _local1 = Math.abs(m_pcEnvironment.GroundIndicator._x - (SCPlayer.m_pcSprite._x + 21));
SCPlayer.m_pcScoring.m_fStageTackleAccuracy = Math.ceil(100 - (2 * _local1));
((SCPlayer.m_pcScoring.m_fStageTackleAccuracy < 0) ? ((SCPlayer.m_pcScoring.m_fStageTackleAccuracy = 0)) : null);
SCPlayer.m_pcScoring.m_fStageTackleAccuracy = SCPlayer.m_pcScoring.m_fStageTackleAccuracy * 10;
if (_local1 > 70) {
SCPlayer.m_pcScoring.m_fStageTackleAccuracy = 0;
ExecuteTackle();
m_szGamestate = "Missed";
} else {
m_pcEnvironment.attachMovie("RisingScore", "RisingScore", 100000);
m_pcEnvironment.RisingScore._x = m_pcEnvironment.GroundIndicator._x;
m_pcEnvironment.RisingScore._y = m_pcEnvironment.GroundIndicator._y;
m_pcEnvironment.RisingScore.TF.TF.text = SCPlayer.m_pcScoring.m_fStageTackleAccuracy;
SCSounds.Play(SCSounds.Rush);
SCSounds.Play(SCSounds.Flicker);
m_pcGameplayGuage = m_pcEnvironment.attachMovie("AngleGuage", "GameplayGuage", 2003);
m_pcGameplayGuage._x = SCPlayer.m_pcSprite._x;
m_pcGameplayGuage._y = SCPlayer.m_pcSprite._y - 140;
m_szGamestate = "Charging Tackle";
SCPlayer.m_fTackleAngleVelocity = 0.2;
SCSounds.Stop(SCSounds.Panting, "panting");
m_pcGameplayGuage._visible = true;
}
m_pcEnvironment.GroundIndicator.gotoAndStop("TargetOnly");
}
static function ExecuteTackle() {
m_szGamestate = "Executing Tackle";
SCSounds.Play(SCSounds.Dive);
SCSounds.Stop(SCSounds.Panting, "panting");
SCPlayer.m_pcSprite.gotoAndStop("Dive");
m_pcGameplayGuage._visible = false;
if (m_nCurrentRound == 1) {
m_pcGameplayGuage._visible = false;
}
SCPlayer.ToggleUserInput();
SCPlayer.m_cVelocity.__set__y(-3);
SCPlayer.m_cVelocity.__set__x(3);
}
static function TackleMakesImpact() {
m_pcEnvironment.GroundIndicator.FadeOut = true;
if (m_nCurrentRound > 1) {
if (!SCPlayer.m_bHasHitGroundThisRound) {
m_szGamestate = "Dragging";
SCOpponent.m_cVelocity.__set__x(SCOpponent.m_cVelocity.__set__y(0));
((m_nCurrentRound == 2) ? ((m_nDragTimeLeft = 750)) : ((m_nDragTimeLeft = 400)));
SCSounds.PlayLoop(SCSounds.Struggle);
SCSounds.Play(SCSounds.Ooph);
SCPlayer.ToggleUserInput();
SCPlayer.m_pcSprite.gotoAndStop("Drag");
SCOpponent.m_pcSprite.gotoAndStop("Struggle" + m_nCurrentRound);
SCOpponent.m_bProduceDirt = true;
SCSounds.Play(SCSounds.Flicker);
m_pcGameplayGuage = m_pcEnvironment.attachMovie("RattleGuage", "GameplayGuage", 2003);
m_pcGameplayGuage._x = SCPlayer.m_pcSprite._x;
m_pcGameplayGuage._y = SCPlayer.m_pcSprite._y - 140;
m_pcGameplayGuage.Timer.text = 1000;
SCPlayer.m_bApplyFriction = true;
SCOpponent.m_bAnimate = true;
SCPlayer.m_bAnimate = true;
SCOpponent.m_bApplyFriction = true;
SCPlayer.m_pcSprite.Animation.stop();
SCPlayer.m_pcSprite.AnimationShadow.stop();
SCOpponent.m_pcSprite.Animation.stop();
SCPlayer.m_cVelocity.x = SCPlayer.m_cVelocity.x * 0.5;
SCPlayer.m_cVelocity.y = SCPlayer.m_cVelocity.y * 0.5;
SCOpponent.m_cVelocity.__set__x(SCPlayer.m_cVelocity.x);
SCOpponent.m_cVelocity.__set__y(SCPlayer.m_cVelocity.y);
}
} else if (!SCPlayer.m_bHasHitGroundThisRound) {
SCPlayer.m_bApplyGravity = false;
SCPlayer.m_cVelocity.__set__y(0);
SCSounds.Play(SCSounds.Ooph);
m_szGamestate = "Tackling Towards Line";
SCPlayer.m_bApplyFriction = true;
SCOpponent.m_pcSprite.gotoAndStop("Impacted" + m_nCurrentRound);
SCPlayer.m_bApplyFriction = true;
SCOpponent.m_bApplyFriction = true;
SCPlayer.m_bAnimate = false;
SCPlayer.m_pcSprite.Animation.stop();
SCPlayer.m_pcSprite.AnimationShadow.stop();
clearInterval(SCPlayer.m_nAnimationInterval);
SCOpponent.m_cVelocity.__set__x(SCPlayer.m_cVelocity.x);
}
}
static function PlayerHitsGround() {
SCPlayer.m_bHasHitGroundThisRound = true;
if (m_szGamestate == "Tackling Towards Line") {
m_bTackleMade = false;
}
if (m_szGamestate == "Missed") {
m_szGamestate = "Failed";
SCSounds.Stop(SCSounds.Crowd, "crowd");
SCSounds.Play(SCSounds.CrowdBoo);
if (SCPlayer.m_pcSprite._x < SCOpponent.m_pcSprite._x) {
m_szEndOfRoundMessage = "OUCH - TOO EARLY";
} else {
m_szEndOfRoundMessage = "TOO LATE!";
}
NextLevel();
}
if ((SCPlayer.m_pcSprite._currentframe == "Dive") || (SCPlayer.m_pcSprite._currentframe == "DivingStatic")) {
SCPlayer.m_bAnimate = false;
}
SCPlayer.m_bApplyFriction = true;
}
static function CalculateEndOfStageScores() {
SCSounds.Stop(SCSounds.Crowd, "crowd");
SCSounds.Play(SCSounds.CrowdFade);
SCSounds.Play(SCSounds.Whistle);
((m_nCurrentRound > 2) ? ((SCPlayer.m_pcScoring.m_fStageBalanceTime = m_nBalanceTimeLeft)) : ((SCPlayer.m_pcScoring.m_fStageBalanceTime = 0)));
((m_nCurrentRound > 1) ? ((SCPlayer.m_pcScoring.m_fStageDragSpeed = m_nDragTimeLeft)) : ((SCPlayer.m_pcScoring.m_fStageDragSpeed = 0)));
var _local1 = ((SCPlayer.m_pcScoring.m_fStageTackleAccuracy + SCPlayer.m_pcScoring.m_fStageDragSpeed) + SCPlayer.m_pcScoring.m_fStageBalanceTime) + SCPlayer.m_pcScoring.m_fStageTimeTaken;
SCPlayer.m_pcScoring.m_fStageScore = _local1;
SCPlayer.m_pcScoring.m_fOverallScore = SCPlayer.m_pcScoring.m_fOverallScore + _local1;
m_nStageTimer = 0;
m_nDragTimer = 0;
m_nDragTimeLeft = 0;
m_nBalanceTimer = 0;
}
static function CalculateOpponentSize() {
}
static function PlayerPastLine() {
return((SCPlayer.m_pcSprite._x - (SCPlayer.m_pcSprite._width * 0.5)) >= m_pcEnvironment.TackleLine._x);
}
static function PastLine() {
return(SCOpponent.m_pcSprite._x >= m_pcEnvironment.TackleLine._x);
}
static var m_bRandomiseBalanceAngle = false;
static var m_nDefaultStartingRound = SCPhysics.m_nStartingRound;
static var m_bFirstVisit = true;
static var m_bSpacebarDown = false;
static var m_nDepthCounter = 300;
static var m_szRoundInstructions = "";
static var m_nStageTimer = 0;
static var m_nDragTimer = 0;
static var m_nBalanceTimer = 0;
static var m_nDragTimeLeft = 0;
static var m_nBalanceTimeLeft = 0;
static var m_bTackleMade = false;
static var m_bContactMade = false;
static var m_bGameRunning = false;
static var m_bShadows = false;
static var m_szLeftKeyTrigger = 0;
static var m_szRightKeyTrigger = 0;
static var m_nDragKeyTrigger = 0;
static var m_nKeyRattles = 0;
static var m_nRoundIntroInterval = 0;
static var m_bSpaceIsDown = false;
static var m_bLeftKeyDown = false;
static var m_bRightKeyDown = false;
static var m_nTimesPlayed = 0;
static var m_bDisableCompetition = false;
static var m_szInstructionsURL1 = "http://server01.chunkdispenser.com/manmountains.com/mminstructionsone.swf";
static var m_szInstructionsURL2 = "http://server01.chunkdispenser.com/manmountains.com/mminstructionstwo.swf";
static var m_szInstructionsURL3 = "http://server01.chunkdispenser.com/manmountains.com/mminstructionsthree.swf";
}
Symbol 1121 MovieClip [__Packages.SCPlayer] Frame 0
class SCPlayer
{
static var m_cVelocity, m_pcScoring, m_cBlurFilter, m_cGlowFilter, m_vcFilters, m_pcSprite, m_pcShadow, m_cEntranceTween, m_pcIndicator;
function SCPlayer () {
}
static function Initialise() {
m_cVelocity = new SCFloat2();
m_pcScoring = new SCScoreData();
m_cBlurFilter = new flash.filters.BlurFilter(0, 0, 4);
m_cGlowFilter = new flash.filters.GlowFilter(0, 1, 7, 7, 3, 3, false, false);
m_vcFilters = new Array(m_cGlowFilter);
}
static function Animate() {
if (m_bAnimate) {
if (m_pcSprite.Animation._currentframe == m_pcSprite.Animation._totalframes) {
m_pcSprite.Animation.gotoAndStop(1);
m_pcSprite.AnimationShadow.gotoAndStop(1);
} else {
m_pcSprite.Animation.nextFrame();
m_pcSprite.AnimationShadow.nextFrame();
}
m_pcSprite.Shadow.gotoAndStop(m_pcSprite.Animation._currentframe);
}
}
static function UpdateShadow() {
m_pcShadow._x = m_pcSprite._x;
m_pcShadow._width = m_pcSprite.Animation._width * 1.3;
m_pcShadow._y = SCPhysics.m_fGroundLevel;
}
static function EnterStage(fEntryPosition, fDestinationPosition) {
SCSounds.PlayLoop(SCSounds.Crowd);
SCSounds.Crowd.setVolume(20);
m_bHasHitGroundThisRound = false;
SCRoot.m_szGamestate = "Waiting To Begin";
SCSounds.PlayLoop(SCSounds.Waiting);
m_pcSprite._visible = true;
m_fTackleAngle = 0;
m_nTackleAngleDirection = 1;
m_pcSprite.Animation.stop();
m_pcSprite.AnimationShadow.stop();
clearInterval(m_nAnimationInterval);
m_nAnimationInterval = setInterval(Animate, 21);
m_pcSprite.gotoAndStop("Jog");
m_bAnimate = true;
m_cEntranceTween = new mx.transitions.Tween(m_pcSprite, "_x", mx.transitions.easing.None.easeIn, fEntryPosition, fDestinationPosition, 60, false);
m_cEntranceTween.onMotionFinished = function () {
if (SCRoot.m_szGamestate == "Waiting To Begin") {
clearInterval(SCPlayer.m_nAnimationInterval);
SCPlayer.m_nAnimationInterval = setInterval(SCPlayer.Animate, 25);
SCPlayer.m_pcSprite.gotoAndStop("JogToCrouch");
SCPlayer.m_bAllowUserInput = true;
SCPlayer.m_pcIndicator = _root.attachMovie("SpacebarIndicator", "SpacebarIndicator", 10000);
SCPlayer.m_pcIndicator._x = SCRoot.m_nStageWidth * 0.5;
SCPlayer.m_pcIndicator._y = SCRoot.m_nStageHeight * 0.5;
SCPlayer.m_cVelocity.__set__x(SCPlayer.m_cVelocity.__set__y(0));
SCRoot.m_szGamestate = "Waiting To Begin";
_root.GamestateField.text = "Waiting To Begin";
}
};
}
static function ToggleUserInput() {
m_bAllowUserInput = !m_bAllowUserInput;
}
static function MoveLeft() {
(m_bAllowUserInput ? ((m_cVelocity.x = m_cVelocity.x - m_fAccel)) : null);
}
static function MoveRight() {
if (m_bAllowUserInput) {
m_cVelocity.x = m_cVelocity.x + m_fAccel;
}
}
static function BeginWalking() {
if (m_bAllowUserInput) {
m_pcIndicator.removeMovieClip();
m_bAnimate = true;
m_pcSprite.gotoAndStop("CrouchToRun");
}
}
static function Update() {
m_pcSprite._x = m_pcSprite._x + m_cVelocity.x;
m_pcSprite._y = m_pcSprite._y + m_cVelocity.y;
m_pcSprite.AnimationShadow._y = m_pcSprite.AnimationShadow.m_fOriginalY + Math.abs(m_pcSprite._y - SCPhysics.m_fGroundLevel);
m_pcSprite.AnimationShadow._alpha = 15 - Math.abs(m_pcSprite._y - SCPhysics.m_fGroundLevel);
UpdateShadow();
if (m_bApplyFriction) {
m_cVelocity.x = m_cVelocity.x * 0.98;
m_cVelocity.y = m_cVelocity.y * 0.98;
}
(m_bApplyGravity ? ((m_cVelocity.y = m_cVelocity.y + SCPhysics.m_fGravity)) : null);
if (m_pcSprite._y >= SCPhysics.m_fGroundLevel) {
if (m_cVelocity.__get__y() > 0.2) {
SCRoot.PlayerHitsGround();
}
m_cVelocity.__set__y(0);
m_pcSprite._y = SCPhysics.m_fGroundLevel;
m_fDirtGenerationDelay = m_fDirtGenerationDelay - m_cVelocity.x;
if ((m_bProduceDirt && (m_fDirtGenerationDelay <= 0)) && (SCPhysics.m_bDisplayParticles)) {
}
}
}
static var m_fDirtGenerationDelay = 0;
static var m_bProduceDirt = false;
static var m_fAccel = 1;
static var m_fMaxVelocity = 20;
static var m_nTackleAngleDirection = 2;
static var m_bAllowUserInput = false;
static var m_bApplyFriction = true;
static var m_fTackleAngle = 0;
static var m_fTackleAngleVelocity = 0;
static var m_fBalanceAngleVelocity = 0;
static var m_fBalanceAngle = 0;
static var m_bApplyGravity = true;
static var m_bAnimate = false;
static var m_nAnimationInterval = 0;
static var m_bHasHitGroundThisRound = false;
}
Symbol 1122 MovieClip [__Packages.SCScoreData] Frame 0
class SCScoreData
{
function SCScoreData () {
}
function Reset() {
m_fStageTackleAccuracy = (m_fStageTimeTaken = (m_fStageDragSpeed = 0));
m_fStageBalanceTime = (m_fStageScore = 0);
m_fOverallTackleAccuracy = (m_fOverallTimeTaken = (m_fOverallDragSpeed = 0));
m_fOverallBalanceTime = (m_fOverallScore = 0);
}
var m_fStageTackleAccuracy = 0;
var m_fStageTimeTaken = 0;
var m_fStageDragSpeed = 0;
var m_fStageBalanceTime = 0;
var m_fStageScore = 0;
var m_fOverallTackleAccuracy = 0;
var m_fOverallTimeTaken = 0;
var m_fOverallDragSpeed = 0;
var m_fOverallBalanceTime = 0;
var m_fOverallScore = 0;
}
Symbol 1123 MovieClip [__Packages.SCFloat2] Frame 0
class SCFloat2
{
var m_fX, m_fY;
function SCFloat2 () {
m_fX = 0;
m_fY = 0;
}
function Initialise(fX, fY) {
m_fX = fX;
m_fY = fY;
}
function Copy(cCopy) {
this=cCopy;//parameter overwritten
}
function Normalise() {
var _local2 = 1 / Math.sqrt((x * x) + (y * y));
m_fX = m_fX * _local2;
m_fY = m_fY * _local2;
}
function Magnitude() {
return(Math.abs(m_fX) + Math.abs(m_fY));
}
function ToString() {
return((("x: " + m_fX) + ", y: ") + m_fY);
}
function get x() {
return(m_fX);
}
function get y() {
return(m_fY);
}
function set x(fX) {
m_fX = fX;
//return(x);
}
function set y(fY) {
m_fY = fY;
//return(y);
}
}
Symbol 1124 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 1125 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 1126 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 1127 MovieClip [__Packages.SCSounds] Frame 0
class SCSounds
{
static var Dive, Fall, Heugh, Hoof, Lift, Ooph, PantFast, Panting, Steps, Struggle, CountUp, CountUp2, Rush, Flicker, Flicker2, Bloop, Blip, Crowd, CrowdBoo, CrowdFade, MouseDown, Music, RollOver, Thump, Waiting, Whistle, SwooshOut;
function SCSounds () {
}
static function Play(cSound) {
cSound.start();
}
static function PlayLoop(cSound) {
cSound.start(0, 9999);
}
static function Stop(cSound, szName) {
cSound.stop(szName);
}
static function SetVolumeDelta(cSound, nDelta) {
var _local1 = cSound.getVolume();
cSound.setVolume(_local1 + nDelta);
if ((_local1 + nDelta) < 0) {
cSound.setVolume(0);
} else if ((_local1 + nDelta) > 100) {
cSound.setVolume(100);
}
}
static function CreateContainer() {
m_nContainers++;
return(_root.SoundContainer.createEmptyMovieClip("Sound" + m_nContainers, 9595 + m_nContainers));
}
static function Initialise() {
_root.createEmptyMovieClip("SoundContainer", 9959595);
Dive = new Sound(CreateContainer());
Dive.attachSound("dive");
Dive.setPan(-30);
Fall = new Sound(CreateContainer());
Fall.attachSound("fall");
Fall.setPan(-30);
Heugh = new Sound(CreateContainer());
Heugh.attachSound("heugh");
Hoof = new Sound(CreateContainer());
Hoof.attachSound("hoof");
Lift = new Sound(CreateContainer());
Lift.attachSound("lift");
Ooph = new Sound(CreateContainer());
Ooph.attachSound("ooph");
Ooph.setPan(60);
PantFast = new Sound(CreateContainer());
PantFast.attachSound("pantfast");
Panting = new Sound(CreateContainer());
Panting.attachSound("panting");
Steps = new Sound(CreateContainer());
Steps.attachSound("steps");
Struggle = new Sound(CreateContainer());
Struggle.attachSound("struggle");
CountUp = new Sound(CreateContainer());
CountUp.attachSound("countup");
CountUp2 = new Sound(CreateContainer());
CountUp2.attachSound("countup2");
Rush = new Sound(CreateContainer());
Rush.attachSound("rush");
Flicker = new Sound(CreateContainer());
Flicker.attachSound("flicker");
Flicker2 = new Sound(CreateContainer());
Flicker2.attachSound("flicker2");
Bloop = new Sound(CreateContainer());
Bloop.attachSound("bloop");
Blip = new Sound(CreateContainer());
Blip.attachSound("blip");
Crowd = new Sound(CreateContainer());
Crowd.attachSound("crowd");
CrowdBoo = new Sound(CreateContainer());
CrowdBoo.attachSound("crowdboo");
CrowdFade = new Sound(CreateContainer());
CrowdFade.attachSound("crowdfade");
CrowdFade.setVolume(60);
MouseDown = new Sound(CreateContainer());
MouseDown.attachSound("mousedown");
Music = new Sound(CreateContainer());
Music.attachSound("music");
RollOver = new Sound(CreateContainer());
RollOver.attachSound("rollover");
Thump = new Sound(CreateContainer());
Thump.attachSound("thump");
Waiting = new Sound(CreateContainer());
Waiting.attachSound("waiting");
Waiting.setPan(-100);
Whistle = new Sound(CreateContainer());
Whistle.attachSound("whistle");
SwooshOut = new Sound(CreateContainer());
SwooshOut.attachSound("swooshout");
m_bInitialised = true;
PlayLoop(Music);
}
static var m_bInitialised = false;
static var m_nContainers = 0;
}
Symbol 1128 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 1129 MovieClip [__Packages.SCOpponent] Frame 0
class SCOpponent
{
static var m_cVelocity, m_cBlurFilter, m_cShadowFilter, m_vcFilters, m_pcSprite, m_pcShadow;
function SCOpponent () {
}
static function Initialise() {
m_cVelocity = new SCFloat2();
m_cBlurFilter = new flash.filters.BlurFilter(0, 0, 4);
m_cShadowFilter = new flash.filters.DropShadowFilter(32, 90, 0, 0.5, 0.5, 0.5, 7, 4, false, false, false);
m_vcFilters = new Array(m_cBlurFilter, m_cShadowFilter);
}
static function Animate() {
if (m_bAnimate) {
m_pcSprite._visible = true;
if (m_pcSprite.Animation._currentframe == m_pcSprite.Animation._totalframes) {
m_pcSprite.Animation.gotoAndStop(1);
m_pcSprite.AnimationShadow.gotoAndStop(1);
} else {
m_pcSprite.Animation.nextFrame();
m_pcSprite.AnimationShadow.nextFrame();
}
m_pcSprite.Shadow.gotoAndStop(m_pcSprite.Animation._currentframe);
}
}
static function UpdateShadow() {
m_pcShadow._x = m_pcSprite._x + m_pcSprite.ShadowTarget._x;
m_pcShadow._width = m_pcSprite.Animation._width * 1;
m_pcShadow._y = SCPhysics.m_fGroundLevel;
}
static function EnterStage() {
m_pcSprite._visible = true;
m_pcSprite.gotoAndStop("Brace" + SCRoot.m_nCurrentRound);
m_pcSprite._x = SCRoot.m_vnOpponentStartingPositions[SCRoot.m_nCurrentRound - 1];
m_pcSprite._y = SCPhysics.m_fGroundLevel;
m_bBeingDropped = false;
m_bLanded = false;
m_cVelocity.__set__x(m_cVelocity.__set__y(0));
m_fOriginalAnimationHeight = m_pcSprite.Animation._y;
clearInterval(m_nAnimationInterval);
m_nAnimationInterval = setInterval(Animate, 25);
}
static function Update() {
if (SCRoot.m_szGamestate == "Tackling Towards Line") {
}
if (!m_bLanded) {
m_pcSprite._x = m_pcSprite._x + m_cVelocity.x;
m_pcSprite._y = m_pcSprite._y + m_cVelocity.y;
}
if (m_bApplyFriction) {
m_cVelocity.x = m_cVelocity.x * 0.98;
m_cVelocity.y = m_cVelocity.y * 0.98;
}
if (m_bApplyGravity) {
m_cVelocity.y = m_cVelocity.y + SCPhysics.m_fGravity;
}
if (m_bBeingDropped && (!m_bLanded)) {
m_pcSprite._y = m_pcSprite._y + m_pcSprite.Animation._y;
m_pcSprite.AnimationShadow._y = m_pcSprite.AnimationShadow.m_fOriginalY + Math.abs(m_pcSprite._y - SCPhysics.m_fGroundLevel);
m_pcSprite.AnimationShadow._alpha = 20 - Math.abs(m_pcSprite._y - SCPhysics.m_fGroundLevel);
m_pcSprite.Animation._y = 0;
if (m_pcSprite._y >= (SCPhysics.m_fGroundLevel + 10)) {
m_bBeingDropped = (m_bApplyGravity = false);
m_pcSprite.gotoAndStop("Brace" + SCRoot.m_nCurrentRound);
m_bAnimate = false;
m_pcSprite.stop();
m_bLanded = true;
}
}
if (((m_pcSprite._y >= SCPhysics.m_fGroundLevel) && (!m_bBeingDropped)) && (!m_bLanded)) {
m_cVelocity.__set__y(0);
m_pcSprite._y = SCPhysics.m_fGroundLevel;
m_fDirtGenerationDelay = m_fDirtGenerationDelay - m_cVelocity.x;
if ((m_bProduceDirt && (m_fDirtGenerationDelay <= 0)) && (SCPhysics.m_bDisplayParticles)) {
}
}
(SCRoot.m_bShadows ? ((m_cShadowFilter.alpha = 0.5)) : ((m_cShadowFilter.alpha = 0)));
m_pcSprite.filters = null;
}
static var m_fDirtGenerationDelay = 0;
static var m_bProduceDirt = false;
static var m_bApplyGravity = true;
static var m_fAccel = 1;
static var m_fMaxVelocity = 20;
static var m_bApplyFriction = true;
static var m_bAnimate = false;
static var m_nAnimationInterval = 0;
static var m_fTargetHeight = 0;
static var m_fOriginalAnimationHeight = 0;
static var m_bBeingDropped = false;
static var m_bLanded = false;
}
Symbol 1130 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 1131 MovieClip [__Packages.mx.transitions.easing.Back] Frame 0
class mx.transitions.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 1132 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 1133 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 1134 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 2
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 40
gotoAndPlay ("Pointing");
Symbol 52 MovieClip Frame 8
stop();
Symbol 52 MovieClip Frame 16
stop();
Symbol 55 MovieClip Frame 1
function OpenMessage() {
clearInterval(_root.m_nInterval);
m_nCurrentMessage++;
if (m_nCurrentMessage >= m_vszMessages.length) {
m_nCurrentMessage = 0;
}
MarqueeTF.TF.htmlText = m_vszMessages[m_nCurrentMessage];
cWidthTween = new mx.transitions.Tween(MarqueeTF, "_xscale", mx.transitions.easing.Regular.easeOut, 98, 100, fTransitionLength, true);
cHeightTween = new mx.transitions.Tween(MarqueeTF, "_yscale", mx.transitions.easing.Regular.easeOut, 98, 100, fTransitionLength, true);
cAlphaTween = new mx.transitions.Tween(MarqueeTF, "_alpha", mx.transitions.easing.None.easeOut, 0, 100, fTransitionLength, true);
SCSounds.Play(SCSounds.RollOver);
cAlphaTween.onMotionFinished = function () {
_root.MainMenu.Warmup.gotoAndPlay(1);
};
}
function CloseMessage() {
clearInterval(_root.m_nInterval);
cWidthTween = new mx.transitions.Tween(MarqueeTF, "_xscale", mx.transitions.easing.Regular.easeOut, 100, 98, fDisappearLength, true);
cHeightTween = new mx.transitions.Tween(MarqueeTF, "_yscale", mx.transitions.easing.Regular.easeOut, 100, 98, fDisappearLength, true);
cAlphaTween = new mx.transitions.Tween(MarqueeTF, "_alpha", mx.transitions.easing.None.easeOut, 100, 0, fDisappearLength, true);
SCSounds.Play(SCSounds.SwooshOut);
cAlphaTween.onMotionFinished = function () {
if (_root.MainMenu._currentframe == 1) {
_root.m_nInterval = setInterval(OpenMessage, 100);
}
};
}
function Change() {
if (_root.MainMenu._currentframe == 1) {
_root.MainMenu.Warmup.stop();
CloseMessage();
}
}
var m_vszMessages = new Array();
var m_nCurrentMessage = -1;
MarqueeTF.TF.selectable = false;
if (SCRoot.m_bDisableCompetition) {
m_vszMessages.push("PLAY<BR>MAN MOUNTAINS");
m_vszMessages.push("TAKE THE<BR>CHALLENGE");
} else {
m_vszMessages.push("PLAY<BR>MAN MOUNTAINS");
m_vszMessages.push("AND YOU COULD<BR>WIN TICKETS");
m_vszMessages.push("TO THE INVESCO<BR>PERPETUAL SERIES");
}
var fTransitionLength = 0.2;
var fDisappearLength = 0.1;
var cWidthTween;
var cHeightTween;
clearInterval(_root.m_nInterval);
_root.m_nInterval = setInterval(OpenMessage, 600);
_root.MainMenu.Warmup.stop();
Symbol 116 MovieClip Frame 121
_root.MainMenu.Marquee.Change();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 2
SCSounds.Play(SCSounds.Blip);
Symbol 149 MovieClip Frame 1
RoundInstructionTF.selectable = false;
RoundInstruction.html = true;
Symbol 155 MovieClip Frame 1
function FadeOut() {
if ((_root.MainMenu._currentframe >= 4) && (_root.MainMenu._currentframe <= 6)) {
SCSounds.Play(SCSounds.SwooshOut);
clearInterval(SCRoot.m_nRoundIntroInterval);
RoundLogo.m_cWidthTween = new mx.transitions.Tween(RoundLogo, "_xscale", mx.transitions.easing.None.easeOut, 100, 90, fDisappearDuration, true);
RoundLogo.m_cHeightTween = new mx.transitions.Tween(RoundLogo, "_yscale", mx.transitions.easing.None.easeOut, 100, 90, fDisappearDuration, true);
RoundLogo.m_cAlphaTween = new mx.transitions.Tween(RoundLogo, "_alpha", mx.transitions.easing.None.easeOut, 100, 0, fDisappearDuration, true);
RoundLogo.m_cAlphaTween.onMotionFinished = function () {
if ((_root.MainMenu._currentframe >= 4) && (_root.MainMenu._currentframe <= 6)) {
_root.MainMenu.Intro.gotoAndPlay(5);
}
};
}
}
stop();
var m_cThis = this;
RoundLogo._alpha = 0;
RoundLogo.RoundNameTF.selectable = false;
RoundLogo.RoundNumberTF.selectable = false;
RoundLogo.RoundNumberTF.text = "ROUND " + SCRoot.m_nCurrentRound;
RoundLogo.RoundNameTF.text = SCRoot.m_vszRoundNames[SCRoot.m_nCurrentRound - 1];
RoundLogo._alpha = 100;
RoundLogo._visible = 100;
this._alpha = 100;
this._visible = true;
RoundLogo.m_fOriginalXScale = RoundLogo._xscale;
RoundLogo.m_fOriginalYScale = RoundLogo._yscale;
RoundLogo._xscale = 0;
RoundLogo._yscale = 0;
var m_cXTween;
var m_cYTween;
var fTransitionDuration = 0.2;
var fDisappearDuration = 0.1;
SCSounds.Play(SCSounds.Thump);
RoundLogo.m_cWidthTween = new mx.transitions.Tween(RoundLogo, "_xscale", mx.transitions.easing.Back.easeOut, 90, 100, fTransitionDuration, true);
RoundLogo.m_cHeightTween = new mx.transitions.Tween(RoundLogo, "_yscale", mx.transitions.easing.Back.easeOut, 90, 100, fTransitionDuration, true);
RoungLogo.m_cAlphaTween = new mx.transitions.Tween(RoundLogo, "_alpha", mx.transitions.easing.None.easeOut, 0, 100, fTransitionDuration, true);
RoundLogo.m_cWidthTween.onMotionFinished = function () {
if ((_root.MainMenu._currentframe >= 4) && (_root.MainMenu._currentframe <= 6)) {
clearInterval(SCRoot.m_nRoundIntroInterval);
SCRoot.m_nRoundIntroInterval = setInterval(m_cThis.FadeOut, 1300);
}
};
BackButton.onPress = function () {
clearInterval(SCRoot.m_nRoundIntroInterval);
_root.MainMenu.gotoAndStop("Home");
};
Symbol 155 MovieClip Frame 31
var cTween = (new mx.transitions.Tween(HelpVideo, "_x", mx.transitions.easing.Strong.easeOut, 1200, -122, 0.6, true));
SCSounds.Play(SCSounds.RollOver);
SCSounds.Play(SCSounds.Flicker);
cTween.onMotionFinished = function () {
if ((_root.MainMenu._currentframe >= 4) && (_root.MainMenu._currentframe <= 6)) {
var _local2 = "";
switch (SCRoot.m_nCurrentRound) {
case 1 :
_local2 = SCRoot.m_szInstructionsURL1;
break;
case 2 :
_local2 = SCRoot.m_szInstructionsURL2;
break;
case 3 :
_local2 = SCRoot.m_szInstructionsURL3;
}
loadMovie (_local2, HelpVideo.Animation);
}
};
Symbol 155 MovieClip Frame 40
function UpdateRoundNumberString() {
m_szRoundNumberDisplayedString = m_szRoundNumberDisplayedString + m_vszRoundNumberCharacterArray[m_nCounter];
RoundNumberBox.RoundNumberTF.text = m_szRoundNumberDisplayedString;
m_nCounter++;
if (m_nCounter >= m_vszRoundNumberCharacterArray.length) {
m_nCounter = 0;
clearInterval(SCRoot.m_nRoundIntroInterval);
RoundInfoBox._alpha = 100;
SCRoot.m_nRoundIntroInterval = setInterval(UpdateRoundInfoString, 18);
}
}
function UpdateRoundInfoString() {
m_szRoundInfoDisplayedString = m_szRoundInfoDisplayedString + m_vszRoundInfoCharacterArray[m_nCounter];
RoundInfoBox.RoundInstructionTF.text = m_szRoundInfoDisplayedString;
m_nCounter++;
if (m_nCounter >= m_vszRoundInfoCharacterArray.length) {
m_nCounter = 0;
SCSounds.Stop(SCSounds.CountUp2, "countup2");
clearInterval(SCRoot.m_nRoundIntroInterval);
}
}
RoundNumberBox.RoundNumberTF.selectable = false;
SCRoot.m_szRoundInstructions = SCRoot.m_vszRoundInstructions[SCRoot.m_nCurrentRound - 1];
RoundNumberBox.RoundNumberTF.text = "ROUND 0" + SCRoot.m_nCurrentRound;
RoundInfoBox.autoSize = "left";
var m_szRoundNumberTargetString = ("ROUND 0" + SCRoot.m_nCurrentRound);
var m_szRoundInfoTargetString = SCRoot.m_szRoundInstructions;
var m_vszRoundNumberCharacterArray = m_szRoundNumberTargetString.split("");
var m_vszRoundInfoCharacterArray = m_szRoundInfoTargetString.split("");
var m_szRoundNumberDisplayedString = "";
var m_szRoundInfoDisplayedString = "";
var m_nCounter = 0;
var m_nIntervalID;
RoundInfoBox.RoundInstructionTF.autoSize = "left";
RoundInfoBox.RoundInstructionTF.text = m_szRoundInfoTargetString;
RoundInfoBox._visible = false;
PlayButton._y = (RoundInfoBox.RoundInstructionTF._y + RoundInfoBox.RoundInstructionTF._height) + 26;
RoundNumberBox.RoundNumberTF.text = m_szRoundNumberDisplayedString;
RoundInfoBox.RoundInstructionTF.text = m_szRoundInfoDisplayedString;
RoundInfoBox._visible = true;
PlayButton._alpha = 100;
SCSounds.PlayLoop(SCSounds.CountUp2);
RoundNumberBox._alpha = 100;
SCRoot.m_nRoundIntroInterval = setInterval(UpdateRoundNumberString, 20);
stop();
PlayButton.onRollOver = (PlayButton.onDragOver = function () {
this.gotoAndStop("White");
this.Arrow.gotoAndPlay(1);
SCSounds.Play(SCSounds.RollOver);
});
PlayButton.onRollOut = (PlayButton.onDragOut = function () {
this.play();
this.Arrow.gotoAndStop(1);
});
PlayButton.onPress = function () {
SCSounds.Play(SCSounds.MouseDown);
SCSounds.Stop(SCSounds.CountUp2, "countup2");
_root.MainMenu.Intro.PlayButton._visible = false;
delete BackButton.onPress;
RoundInfoBox._visible = (RoundNumberBox._visible = false);
SCRoot.m_pcEnvironment.gotoAndStop("Fans");
SCPlayer.m_pcSprite._visible = false;
SCOpponent.m_pcSprite._visible = false;
SCRoot.RemoveDirtParticles();
var _local4 = _root.MainMenu.Intro.HelpVideo.BG._width / 486;
var _local3 = new mx.transitions.Tween(_root.MainMenu.Intro.HelpVideo.Animation, "_alpha", mx.transitions.easing.None.easeOut, _root.MainMenu.Intro.HelpVideo.Animation._alpha, 0, 0.01, true);
_local3.onMotionFinished = function () {
var _local2 = new mx.transitions.Tween(_root.MainMenu.Intro.HelpVideo.Frame, "_width", mx.transitions.easing.Regular.easeOut, _root.MainMenu.Intro.HelpVideo.Frame._width, 740, 0.4, true);
_local2.onMotionFinished = function () {
_root.CloseMenu();
};
};
};
Symbol 207 MovieClip Frame 1
ScoreTF.selectable = false;
Symbol 212 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 2
stop();
Symbol 212 MovieClip Frame 3
stop();
Symbol 212 MovieClip Frame 4
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 2
stop();
Symbol 214 MovieClip Frame 3
stop();
Symbol 214 MovieClip Frame 4
stop();
Symbol 229 MovieClip Frame 1
PublicTerms._visible = false;
StaffTerms._visible = false;
if (SCRoot.m_szGameVersion == "public") {
PublicTerms._alpha = 100;
PublicTerms._visible = true;
} else if (SCRoot.m_szGameVersion == "staff") {
StaffTerms._alpha = 100;
StaffTerms._visible = true;
}
Symbol 241 MovieClip Frame 1
ScoreTF.selectable = false;
Symbol 243 MovieClip Frame 1
ScoreTF.selectable = false;
Symbol 256 MovieClip [MainMenuContainer] Frame 1
function onEnterFrame() {
FullPalette._x = Palette._x;
FullPalette._y = Palette._y;
}
stop();
_root.QuitGameButton._visible = false;
clearInterval(SCRoot.m_nRoundIntroInterval);
clearInterval(_root.MainMenu.m_nInterval);
PlayButton.OriginalWidth = PlayButton._width;
PlayButton.OriginalHeight = PlayButton._height;
HowToPlayButton.stop();
HowToPlayButton._visible = false;
Warmup._alpha = 0;
Warmup.onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 3;
}
};
SCPlayer.m_pcShadow._visible = false;
SCOpponent.m_pcShadow._visible = false;
if (!SCSounds.m_bInitialised) {
SCSounds.Initialise();
}
SCRoot.m_nCurrentRound = SCRoot.m_nDefaultStartingRound;
HowToPlayButton.OriginalWidth = HowToPlayButton._width;
HowToPlayButton.OriginalHeight = HowToPlayButton._height;
ExitButton.onRollOver = (ExitButton.onDragOver = function () {
SCSounds.Play(SCSounds.Bloop);
var _local2 = new flash.filters.GlowFilter(16777215, 50, 2, 2, 3, 3, false, false);
var _local3 = new Array(_local2);
this.filters = _local3;
});
ExitButton.onRollOut = (ExitButton.onDragOut = function () {
this.filters = null;
});
PlayButton.onRollOver = (PlayButton.onDragOver = function () {
this.Arrow.gotoAndPlay(1);
this.gotoAndStop("White");
SCSounds.Play(SCSounds.Bloop);
});
PlayButton.onRollOut = (PlayButton.onDragOut = function () {
this.Arrow.gotoAndStop(1);
this.play();
});
HowToPlayButton.onRollOver = (HowToPlayButton.onDragOver = function () {
this.Arrow.gotoAndPlay(1);
this.gotoAndPlay("On");
SCSounds.Play(SCSounds.Bloop);
});
PlayButton.onPress = function () {
var _local3 = Math.floor(Math.random() * 10000000);
var _local2 = ("http://ad.uk.doubleclick.net/activity;src=1150700;type=wruru691;cat=wruga307;ord=1;num=" + _local3) + "?";
loadMovieNum (_local2, 2);
_root.MainMenu.gotoAndStop(SCRoot.m_nCurrentRound + 3);
SCSounds.Play(SCSounds.MouseDown);
};
HowToPlayButton.onPress = function () {
_root.MainMenu.gotoAndStop("HowToPlay");
SCSounds.Play(SCSounds.MouseDown);
};
HowToPlayButton.onRollOut = (HowToPlayButton.onDragOut = function () {
this.Arrow.gotoAndStop(1);
this.gotoAndPlay("Off");
});
if (SCRoot.m_bFirstVisit == true) {
SCRoot.m_bFirstVisit = false;
var cTween1 = (new mx.transitions.Tween(_root.ManMountainsMainLogo, "_x", mx.transitions.easing.Back.easeOut, _root.ManMountainsMainLogo._x - 40, _root.ManMountainsMainLogo._x, 0.5, true));
var cTween2 = (new mx.transitions.Tween(_root.MainMenu.PlayButton, "_x", mx.transitions.easing.Back.easeOut, _root.MainMenu.PlayButton._x - 40, _root.MainMenu.PlayButton._x, 0.6, true));
var cTween3 = (new mx.transitions.Tween(_root.MainMenu.HowToPlayButton, "_x", mx.transitions.easing.Back.easeOut, _root.MainMenu.HowToPlayButton._x - 40, _root.MainMenu.HowToPlayButton._x, 0.7, true));
var cTween1 = (new mx.transitions.Tween(_root.PlusButton1, "_x", mx.transitions.easing.Back.easeOut, _root.PlusButton1._x + 60, _root.PlusButton1._x, 0.7, true));
var cTween2 = (new mx.transitions.Tween(_root.PlusButton2, "_x", mx.transitions.easing.Back.easeOut, _root.PlusButton2._x + 60, _root.PlusButton2._x, 0.6, true));
var cTween3 = (new mx.transitions.Tween(_root.PlusButton3, "_x", mx.transitions.easing.Back.easeOut, _root.PlusButton3._x + 60, _root.PlusButton3._x, 0.5, true));
}
var m_fStartingY = this._y;
var m_fStartingX = this._x;
MaskPaletteOpaque.Fill._visible = false;
Symbol 256 MovieClip [MainMenuContainer] Frame 2
stop();
_root.QuitGameButton._visible = true;
QuitButton.onRollOver = (QuitButton.onDragOver = function () {
SCSounds.Play(SCSounds.RollOver);
QuitButton.gotoAndPlay("WhiteToRed");
});
QuitButton.onRollOut = (QuitButton.onDragOut = function () {
QuitButton.gotoAndPlay("RedToWhite");
});
QuitButton.onPress = function () {
QuitButton._visible = (QuitText._visible = false);
SCSounds.Play(SCSounds.MouseDown);
var _local2 = new mx.transitions.Tween(HowToPlayVideo, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 0.3, true);
_local2.onMotionFinished = function () {
_root.MainMenu.gotoAndStop("Home");
};
};
HowToPlayVideo._alpha = 0;
var VideoTween = (new mx.transitions.Tween(HowToPlayVideo, "_alpha", mx.transitions.easing.Regular.easeOut, 0, 100, 0.3, true));
Symbol 256 MovieClip [MainMenuContainer] Frame 3
function RemoveForm() {
TF1._visible = (TF2._visible = (TF3._visible = (TF4._visible = false)));
FormHeadings._visible = false;
BeforeText._visible = false;
}
AfterText._visible = false;
ErrorText._visible = false;
PrivacyButton.onPress = function () {
getURL ("http://www.manmountains.com/manmountains07/privacy.htm", "_blank");
};
PrivacyButton.onRollOver = (PrivacyButton.onDragOver = function () {
this._alpha = 70;
});
PrivacyButton.onRollOut = (PrivacyButton.onDragOut = function () {
this._alpha = 100;
});
SubmitButton.onRollOver = (SubmitButton.onDragOver = function () {
SCSounds.Play(SCSounds.Bloop);
this.Arrow.gotoAndPlay(1);
});
SubmitButton.onRollOut = (SubmitButton.onDragOut = function () {
this.Arrow.gotoAndStop(1);
});
TF1.onSetFocus = function () {
if (this.text == "Your Name") {
SCSounds.Play(SCSounds.Blip);
this.text = "";
}
};
TF2.onSetFocus = function () {
if (this.text == "Friend's Name") {
SCSounds.Play(SCSounds.Blip);
this.text = "";
}
};
TF3.onSetFocus = function () {
if (this.text == "Your Email") {
SCSounds.Play(SCSounds.Blip);
this.text = "";
}
};
TF4.onSetFocus = function () {
if (this.text == "Friend's Email") {
SCSounds.Play(SCSounds.Blip);
this.text = "";
}
};
SubmitButton.onPress = function () {
if (((((((TF1.length && (TF2.length)) && (TF3.length)) && (TF4.length)) && (TF1.text != "Your Name")) && (TF2.text != "Friend's Name")) && (TF3.text != "Your Email")) && (TF4.text != "Friend's Email")) {
var _local2 = new LoadVars();
var _local1 = new LoadVars();
_local1.type = SCRoot.m_szGameVersion;
_local1.name = TF1.text;
_local1.email = TF3.text;
_local1.friendname = TF2.text;
_local1.friendemail = TF4.text;
SubmitButton._visible = (PrivacyButton._visible = false);
RemoveForm();
_local2.onLoad = function (bSuccess) {
if (bSuccess) {
AfterText._visible = true;
AfterText._alpha = 100;
SCRoot.Track("sendfriend");
RemoveForm();
} else {
ErrorText._visible = true;
ErrorText._alpha = 100;
RemoveForm();
}
};
_local1.sendAndLoad("http://www.manmountains.com/manmountains07/asp/sendtofriend.asp", _local2, "post");
} else {
PleaseEnterAllDetails.gotoAndPlay(2);
}
};
QuitButton.onPress = function () {
SCSounds.Play(SCSounds.MouseDown);
_root.MainMenu.gotoAndStop("Home");
};
QuitButton.onRollOver = (QuitButton.onDragOver = function () {
SCSounds.Play(SCSounds.Bloop);
QuitButton.gotoAndPlay("WhiteToRed");
});
QuitButton.onRollOut = (QuitButton.onDragOut = function () {
QuitButton.gotoAndPlay("RedToWhite");
});
TF1.restrict = "A-Z a-z \\-";
TF2.restrict = "A-Z a-z \\- ";
TF3.restrict = "a-z A-Z . @ _ 0-9";
TF4.restrict = "a-z A-Z . @ _ 0-9";
TF1.tabEnabled = (TF2.tabEnabled = (TF3.tabEnabled = (TF4.tabEnabled = (SendButton.tabEnabled = (PolicyButton.tabEnabled = true)))));
TF1.tabIndex = 0;
TF2.tabIndex = 1;
TF3.tabIndex = 2;
TF4.tabIndex = 3;
SendButton.tabIndex = 4;
PolicyButton.tabIndex = 5;
stop();
_root.QuitGameButton._visible = true;
Symbol 256 MovieClip [MainMenuContainer] Frame 4
if (SCRoot.m_nDefaultStartingRound == 1) {
SCRoot.PlayingAgain();
}
_root.QuitGameButton._visible = true;
QuitButton.onPress = function () {
SCSounds.Play(SCSounds.MouseDown);
_root.MainMenu.gotoAndStop("Home");
};
QuitButton.onRollOver = function () {
SCSounds.Play(SCSounds.RollOver);
QuitButton.gotoAndPlay(2);
};
QuitButton.onRollOut = function () {
QuitButton.gotoAndPlay(12);
};
stop();
Symbol 256 MovieClip [MainMenuContainer] Frame 5
if (SCRoot.m_nDefaultStartingRound == 2) {
SCRoot.PlayingAgain();
}
_root.QuitGameButton._visible = true;
QuitButton.onPress = function () {
SCSounds.Play(SCSounds.MouseDown);
_root.MainMenu.gotoAndStop("Home");
};
QuitButton.onRollOver = (QuitButton.onDragOver = function () {
SCSounds.Play(SCSounds.RollOver);
QuitButton.gotoAndPlay("WhiteToRed");
});
QuitButton.onRollOut = (QuitButton.onDragOut = function () {
QuitButton.gotoAndPlay("RedToWhite");
});
stop();
Symbol 256 MovieClip [MainMenuContainer] Frame 6
if (SCRoot.m_nDefaultStartingRound == 3) {
SCRoot.PlayingAgain();
}
_root.QuitGameButton._visible = true;
QuitButton.onPress = function () {
SCSounds.Play(SCSounds.MouseDown);
_root.MainMenu.gotoAndStop("Home");
};
QuitButton.onRollOver = (QuitButton.onDragOver = function () {
SCSounds.Play(SCSounds.RollOver);
QuitButton.gotoAndPlay("WhiteToRed");
});
QuitButton.onRollOut = (QuitButton.onDragOut = function () {
QuitButton.gotoAndPlay("RedToWhite");
});
stop();
Symbol 256 MovieClip [MainMenuContainer] Frame 7
function CheckScoreOnly() {
HeaderClip.Header.text = "TOP SCORERS";
CaptionClip.Caption.text = "Getting high scores...";
cLoadVars.playerscore = SCPlayer.m_pcScoring.m_fOverallScore;
cLoadVars.submitscore = 0;
cLoadVars.type = SCRoot.m_szGameVersion;
cLoadVars.sendAndLoad("http://www.manmountains.com/manmountains07/asp/submitscore.asp", cVariablesCatch, "post");
cVariablesCatch.onLoad = function (bSuccess) {
if (cVariablesCatch.success) {
if (cVariablesCatch.hiscore == 1) {
HeaderClip.Header.text = "WELL DONE";
CaptionClip.Caption.text = "You made the hi-score table, please enter your initials.";
NameEntry._visible = true;
SubmitButton._visible = true;
Selection.setFocus(NameEntry);
} else if (cVariablesCatch.hiscore == 0) {
HeaderClip.Header.text = "NO LUCK!";
CaptionClip.Caption.text = "Sorry, you didn't make the high scores this time!";
NameEntry._visible = false;
SubmitButton._visible = false;
ShowScores();
}
} else {
HeaderClip.Header.text = "TOP SCORES";
CaptionClip.Caption.text = "Error contacting server.";
(SCRoot.m_bDisableCompetition ? ((PlayAgainButton._visible = true)) : ((CompButton._visible = true)));
NameEntry._visible = false;
SubmitButton._visible = false;
}
};
}
function SubmitNameAndScore() {
delete cLoadVars;
delete cVariablesCatch;
NameEntry._visible = false;
SubmitButton._visible = false;
cLoadVars = new LoadVars();
cVariablesCatch = new LoadVars();
cLoadVars.playername = NameEntry.text;
cLoadVars.playerscore = SCPlayer.m_pcScoring.m_fOverallScore;
cLoadVars.submitscore = 1;
cLoadVars.type = SCRoot.m_szGameVersion;
cLoadVars.sendAndLoad("http://www.manmountains.com/manmountains07/asp/submitscore.asp", cVariablesCatch, "post");
cVariablesCatch.onLoad = function (bSuccess) {
if (cVariablesCatch.success) {
HeaderClip.Header.text = "TOP SCORES";
CaptionClip.Caption.text = "Great score!";
ShowScores();
} else {
HeaderClip.Header.text = "TOP SCORES";
CaptionClip.Caption.text = "Error contacting server.";
(SCRoot.m_bDisableCompetition ? ((PlayAgainButton._visible = true)) : ((CompButton._visible = true)));
NameEntry._visible = false;
SubmitButton._visible = false;
}
};
}
function ShowScores() {
SCSounds.Play(SCSounds.Flicker);
SubmitButton._visible = false;
NameEntry._visible = false;
var t = 1;
while (t < 13) {
var cTextField = eval ("N" + t);
cTextField._visible = true;
cTextField.kerning = true;
if (t > 4) {
cTextField.text = (eval ("cVariablesCatch.score" + t) + " ") + eval ("cVariablesCatch.name" + t);
} else {
cTextField.text = (eval ("cVariablesCatch.score" + t) + newline) + eval ("cVariablesCatch.name" + t);
}
t++;
}
HighScoreNumberLabels._visible = true;
(SCRoot.m_bDisableCompetition ? ((PlayAgainButton._visible = true)) : ((CompButton._visible = true)));
}
_root.QuitGameButton._visible = true;
stop();
var t = 1;
while (t < 13) {
eval ("N" + t).selectable = false;
eval ("N" + t)._visible = false;
t++;
}
CompButton._visible = false;
PlayAgainButton._visible = false;
HomeText._visible = false;
HomeButton._visible = false;
SubmitButton._visible = false;
NameEntry._visible = false;
HighScoreNumberLabels._visible = false;
HeaderClip.Header.selectable = false;
CaptionClip.Caption.selectable = false;
CaptionClip.Caption.autoSize = "left";
CompButton._y = (CaptionClip._y + CaptionClip._height) + 26;
NameEntry.restrict = "A-Z";
cLoadVars.onLoad = OnLoad;
HeaderClip.Header.text = "";
var cVariablesCatch = new LoadVars();
var cLoadVars = new LoadVars();
HeaderClip.Header.text = "TOP SCORES";
CaptionClip.Caption.text = "Getting high scores...";
CheckScoreOnly();
QuitButton.onPress = function () {
SCSounds.Play(SCSounds.MouseDown);
_root.MainMenu.gotoAndStop("Home");
};
QuitButton.onRollOver = (QuitButton.onDragOver = function () {
SCSounds.Play(SCSounds.RollOver);
QuitButton.gotoAndPlay("WhiteToRed");
});
QuitButton.onRollOut = (QuitButton.onDragOut = function () {
QuitButton.gotoAndPlay("RedToWhite");
});
SubmitButton.onRollOver = (SubmitButton.onDragOver = function () {
SCSounds.Play(SCSounds.RollOver);
this.Arrow.gotoAndPlay(1);
});
SubmitButton.onRollOut = (SubmitButton.onDragOut = function () {
this.Arrow.gotoAndStop(1);
});
CompButton.onRollOver = (CompButton.onDragOver = function () {
SCSounds.Play(SCSounds.RollOver);
this.Arrow.gotoAndPlay(1);
this.gotoAndStop("White");
});
CompButton.onRollOut = (CompButton.onDragOut = function () {
this.Arrow.gotoAndStop(1);
this.play();
});
CompButton.onPress = function () {
SCSounds.Play(SCSounds.MouseDown);
_root.MainMenu.gotoAndStop("CompetitionEntry");
};
PlayAgainButton.onRollOver = (PlayAgainButton.onDragOver = function () {
SCSounds.Play(SCSounds.RollOver);
this.Arrow.gotoAndPlay(1);
this.gotoAndStop("White");
});
PlayAgainButton.onRollOut = (PlayAgainButton.onDragOut = function () {
this.Arrow.gotoAndStop(1);
this.play();
});
PlayAgainButton.onPress = function () {
SCSounds.Play(SCSounds.MouseDown);
_root.MainMenu.gotoAndStop("RoundOneInstruction");
};
SubmitButton.onPress = function () {
if (NameEntry.length > 0) {
SCSounds.Play(SCSounds.MouseDown);
delete SubmitButton.onRollOver;
delete SubmitButton.onRollOut;
delete SubmitButton.onDragOver;
delete SubmitButton.onDragOut;
SubmitNameAndScore();
}
};
Symbol 256 MovieClip [MainMenuContainer] Frame 8
function UpdateTackleAccuracy() {
if (_root.MainMenu._currentframe != 8) {
return(undefined);
}
if (TackleAccuracyDisplayValue < SCPlayer.m_pcScoring.m_fStageTackleAccuracy) {
TackleAccuracyDisplayValue = TackleAccuracyDisplayValue + 20;
TackleAccuracy.text = TackleAccuracyDisplayValue;
TackleAccuracyBar._width = TackleAccuracyDisplayValue * 0.8;
}
if (TackleAccuracyDisplayValue >= SCPlayer.m_pcScoring.m_fStageTackleAccuracy) {
SCPlayer.m_pcScoring.m_fStageTackleAccuracy = Math.round(SCPlayer.m_pcScoring.m_fStageTackleAccuracy);
TackleAccuracy.text = SCPlayer.m_pcScoring.m_fStageTackleAccuracy;
clearInterval(m_nIntervalID);
TF2._visible = true;
m_nIntervalID = setInterval(UpdateTimeTaken, 1);
}
}
function UpdateTimeTaken() {
if (_root.MainMenu._currentframe != 8) {
return(undefined);
}
if (TimeTakenDisplayValue < SCPlayer.m_pcScoring.m_fStageTimeTaken) {
TimeTakenDisplayValue = TimeTakenDisplayValue + 20;
TimeTaken.text = TimeTakenDisplayValue;
}
if (TimeTakenDisplayValue >= SCPlayer.m_pcScoring.m_fStageTimeTaken) {
SCPlayer.m_pcScoring.m_fStageTimeTaken = Math.round(SCPlayer.m_pcScoring.m_fStageTimeTaken);
TimeTaken.text = SCPlayer.m_pcScoring.m_fStageTimeTaken;
clearInterval(m_nIntervalID);
TF3._visible = true;
m_nIntervalID = setInterval(UpdateDragSpeed, 1);
}
}
function UpdateDragSpeed() {
if (_root.MainMenu._currentframe != 8) {
return(undefined);
}
if (DragSpeedDisplayValue < SCPlayer.m_pcScoring.m_fStageDragSpeed) {
DragSpeedDisplayValue = DragSpeedDisplayValue + 20;
DragSpeed.text = DragSpeedDisplayValue;
}
if (DragSpeedDisplayValue >= SCPlayer.m_pcScoring.m_fStageDragSpeed) {
SCPlayer.m_pcScoring.m_fStageDragSpeed = Math.round(SCPlayer.m_pcScoring.m_fStageDragSpeed);
if (SCPlayer.m_pcScoring.m_fStageDragSpeed > 0) {
TF3._visible = true;
DragSpeed.text = SCPlayer.m_pcScoring.m_fStageDragSpeed;
} else {
TF3._visible = false;
}
clearInterval(m_nIntervalID);
m_nIntervalID = setInterval(UpdateBalanceTime, 1);
}
}
function UpdateBalanceTime() {
if (_root.MainMenu._currentframe != 8) {
return(undefined);
}
if (BalanceTimeDisplayValue < SCPlayer.m_pcScoring.m_fStageBalanceTime) {
BalanceTimeDisplayValue = BalanceTimeDisplayValue + 20;
BalanceTime.text = BalanceTimeDisplayValue;
}
if (BalanceTimeDisplayValue >= SCPlayer.m_pcScoring.m_fStageBalanceTime) {
SCPlayer.m_pcScoring.m_fStageBalanceTime = Math.round(SCPlayer.m_pcScoring.m_fStageBalanceTime);
if (SCPlayer.m_pcScoring.m_fStageBalanceTime > 0) {
TF4._visible = true;
BalanceTime.text = SCPlayer.m_pcScoring.m_fStageBalanceTime;
} else {
TF4._visible = false;
}
clearInterval(m_nIntervalID);
TF5._visible = true;
new mx.transitions.Tween(Separator, "_width", mx.transitions.easing.Strong.easeOut, 0, 657.5, 0.2, true);
m_nIntervalID = setInterval(UpdateStageScore, 1);
}
}
function UpdateStageScore() {
if (_root.MainMenu._currentframe != 8) {
return(undefined);
}
if (StageScoreDisplayValue < SCPlayer.m_pcScoring.m_fStageScore) {
StageScoreDisplayValue = StageScoreDisplayValue + 20;
StageScore.text = StageScoreDisplayValue;
}
if (StageScoreDisplayValue >= SCPlayer.m_pcScoring.m_fStageScore) {
SCPlayer.m_pcScoring.m_fStageScore = Math.round(SCPlayer.m_pcScoring.m_fStageScore);
StageScore.text = SCPlayer.m_pcScoring.m_fStageScore;
clearInterval(m_nIntervalID);
if (SCRoot.m_nCurrentRound == 1) {
SCSounds.Stop(SCSounds.CountUp, "countup");
m_nIntervalID = setInterval(RemoveElements, 1800);
} else {
TF6._visible = true;
m_nIntervalID = setInterval(UpdateOverallScore, 1);
}
}
}
function UpdateOverallScore() {
if (_root.MainMenu._currentframe != 8) {
return(undefined);
}
if (OverallScoreDisplayValue < SCPlayer.m_pcScoring.m_fOverallScore) {
OverallScoreDisplayValue = OverallScoreDisplayValue + 30;
OverallScore.text = OverallScoreDisplayValue;
}
if (OverallScoreDisplayValue >= SCPlayer.m_pcScoring.m_fOverallScore) {
SCPlayer.m_pcScoring.m_fOverallScore = Math.round(SCPlayer.m_pcScoring.m_fOverallScore);
OverallScore.text = SCPlayer.m_pcScoring.m_fOverallScore;
clearInterval(m_nIntervalID);
SCSounds.Stop(SCSounds.CountUp, "countup");
m_nIntervalID = setInterval(RemoveElements, 1800);
}
}
function NextStageScreen() {
if (_root.MainMenu._currentframe != 8) {
return(undefined);
}
clearInterval(m_nIntervalID);
_root.MainMenu.gotoAndStop(SCRoot.m_nCurrentRound + 3);
}
function HighScoreScreen() {
if (_root.MainMenu._currentframe != 8) {
return(undefined);
}
clearInterval(m_nIntervalID);
_root.MainMenu.gotoAndStop("HighScoreEntry");
}
function CompetitionEntryScreen() {
if (_root.MainMenu._currentframe != 8) {
return(undefined);
}
clearInterval(m_nIntervalID);
_root.MainMenu.gotoAndStop("CompetitionEntry");
}
function RemoveElements() {
if (_root.MainMenu._currentframe != 8) {
return(undefined);
}
clearInterval(m_nIntervalID);
m_nIntervalID = setInterval(AddTween, 70);
}
function AddTween() {
if (_root.MainMenu._currentframe != 8) {
return(undefined);
}
SCSounds.Stop(SCSounds.SwooshOut, "swooshout");
SCSounds.Play(SCSounds.SwooshOut);
var _local4 = new mx.transitions.Tween(Elements[n], "_xscale", mx.transitions.easing.None.easeIn, 100, 90, fTransitionDuration, true);
var _local3 = new mx.transitions.Tween(Elements[n], "_yscale", mx.transitions.easing.None.easeIn, 100, 90, fTransitionDuration, true);
var _local2 = new mx.transitions.Tween(Elements[n], "_alpha", mx.transitions.easing.None.easeIn, 100, 0, fTransitionDuration, true);
n++;
if (n > Elements.length) {
clearInterval(m_nIntervalID);
SCRoot.m_nCurrentRound++;
_local2.onMotionFinished = function () {
if ((SCRoot.m_nCurrentRound > 3) && (_root.MainMenu._currentframe == 8)) {
m_nIntervalID = setInterval(HighScoreScreen, 200);
} else {
m_nIntervalID = setInterval(NextStageScreen, 200);
}
};
}
}
stop();
_root.QuitGameButton._visible = true;
clearInterval(m_nIntervalID);
var m_nIntervalID = 0;
var TimeTakenDisplayValue = 0;
var TackleAccuracyDisplayValue = 0;
var DragSpeedDisplayValue = 0;
var BalanceTimeDisplayValue = 0;
var StageScoreDisplayValue = 0;
var OverallScoreDisplayValue = 0;
var n = 0;
TF1._visible = false;
TF2._visible = false;
TF3._visible = false;
TF4._visible = false;
TF5._visible = false;
TF6._visible = false;
switch (SCRoot.m_nCurrentRound) {
case 1 :
SCRoot.Track("custom4");
CaptionClip.Caption.text = "Another one bites the dust. How's your score looking, superstar status or face down in the mud?";
HeaderClip.Header.text = "ROUND 1 STATS";
break;
case 2 :
SCRoot.Track("custom5");
CaptionClip.Caption.text = "We've crunched the numbers like a Man Mountain crushing a puny opponent. Does it make for pretty reading or is it a cauliflower ear of a total?";
HeaderClip.Header.text = "ROUND 2 STATS";
break;
case 3 :
SCRoot.Track("custom6");
CaptionClip.Caption.text = "They think it\u2019s all over\u2026 and it is. How does your final score look? Have you made it onto the hi-score table? Could you do better?";
HeaderClip.Header.text = "FINAL STATS";
}
TF1.selectable = (TF2.selectable = (TF3.selectable = (TF4.selectable = (TF5.selectable = (TF6.selectable = false)))));
BalanceTime.selectable = false;
StageScore.selectable = false;
DragSpeed.selectable = false;
TackleAccuracy.selectable = false;
TimeTaken.selectable = false;
OverallScore.selectable = false;
CaptionClip.Caption.selectable = false;
CaptionClip.Caption.autoSize = "left";
CompButton._y = (CaptionClip._y + CaptionClip._height) + 26;
HeaderClip.Header.selectable = false;
fTransitionDuration = 0.2;
var Elements = new Array(HeaderClip, CaptionClip, TF1, TackleAccuracy, TF2, TimeTaken, TF3, DragSpeed, TF4, BalanceTime, TF5, StageScore, TF6, OverallScore);
((SCRoot.m_nCurrentRound < 2) ? (Elements.splice(13, 2)) : null);
((SCRoot.m_nCurrentRound < 3) ? (Elements.splice(8, 2)) : null);
((SCRoot.m_nCurrentRound < 2) ? (Elements.splice(6, 2)) : null);
var CaptionTargetWidth = Caption._width;
var CaptionTargetHeight = Caption._height;
var HeaderTargetWidth = Header._width;
var HeaderTargetHeight = Header._height;
CaptionClip._xscale = (CaptionClip._yscale = 0);
HeaderClip._xscale = (HeaderClip._yscale = 0);
NextButton._visible = false;
CompButton._visible = false;
var fTransitionDuration = 0.1;
SCSounds.Play(SCSounds.RollOver);
var HeaderWidthTween = (new mx.transitions.Tween(HeaderClip, "_xscale", mx.transitions.easing.Back.easeOut, 90, 100, fTransitionDuration, true));
var HeaderHeightTween = (new mx.transitions.Tween(HeaderClip, "_yscale", mx.transitions.easing.Back.easeOut, 90, 100, fTransitionDuration, true));
var HeaderAlphaTween = (new mx.transitions.Tween(HeaderClip, "_alpha", mx.transitions.easing.None.easeOut, 0, 100, fTransitionDuration, true));
HeaderHeightTween.onMotionFinished = function () {
if (_root.MainMenu._currentframe == 8) {
var _local3 = new mx.transitions.Tween(CaptionClip, "_xscale", mx.transitions.easing.Back.easeOut, 90, 100, fTransitionDuration, true);
var _local2 = new mx.transitions.Tween(CaptionClip, "_yscale", mx.transitions.easing.Back.easeOut, 90, 100, fTransitionDuration, true);
var _local4 = new mx.transitions.Tween(CaptionClip, "_alpha", mx.transitions.easing.None.easeOut, 0, 100, fTransitionDuration, true);
_local2.onMotionFinished = function () {
if (_root.MainMenu._currentframe == 8) {
m_nIntervalID = setInterval(UpdateTackleAccuracy, 1);
SCSounds.PlayLoop(SCSounds.CountUp);
TF1._visible = true;
}
};
}
};
CompButton.onRollOver = (CompButton.onDragOver = function () {
SCSounds.Play(SCSounds.RollOver);
this.Arrow.gotoAndPlay(1);
});
CompButton.onPress = function () {
SCSounds.Play(SCSounds.MouseDown);
_root.MainMenu.gotoAndStop("CompetitionEntry");
};
CompButton.onRollOut = (CompButton.onDragOut = function () {
this.Arrow.gotoAndStop(1);
});
Symbol 256 MovieClip [MainMenuContainer] Frame 9
function ReduceSize() {
if (_root.MainMenu._currentframe != 9) {
return(undefined);
}
SCSounds.Play(SCSounds.SwooshOut);
nTweenValue = Math.round(SCPlayer.m_pcScoring.m_fStageScore);
var _local2 = new mx.transitions.Tween(Animation, "_width", mx.transitions.easing.Back.easeIn, Animation._width, 0, 0.4, true);
var _local3 = new mx.transitions.Tween(Animation, "_height", mx.transitions.easing.Back.easeIn, Animation._height, 0, 0.4, true);
_local2.onMotionFinished = function () {
if (SCRoot.m_bDisableCompetition) {
_root.MainMenu.gotoAndStop("Home");
} else {
_root.MainMenu.gotoAndStop("CompetitionEntry");
}
};
clearInterval(m_nInterval);
}
stop();
_root.MainMenu._x = 379;
_root.QuitGameButton._visible = true;
var m_nInterval;
var WidthTween = (new mx.transitions.Tween(Animation, "_width", mx.transitions.easing.Bounce.easeOut, 0, Animation._width, 0.4, true));
var HeightTween = (new mx.transitions.Tween(Animation, "_height", mx.transitions.easing.Bounce.easeOut, 0, Animation._height, 0.4, true));
var nTweenValue = 0;
Animation.ScoreTF.text = nTweenValue;
HeightTween.onMotionFinished = function () {
if (_root.MainMenu._currentframe != 9) {
return(undefined);
}
SCSounds.Play(SCSounds.Thump);
m_nInterval = setInterval(ReduceSize, 800);
};
Symbol 256 MovieClip [MainMenuContainer] Frame 10
function SubmitForm() {
if ((((TF1.length && (TF2.length)) && (TF3.length)) && (TF4.length)) && (CB1._currentframe > 2)) {
if (SCRoot.m_szGameVersion == "public") {
if ((RB1._currentframe < 3) && (RB2._currentframe < 3)) {
PleaseEnterAllDetails.gotoAndPlay(2);
return(undefined);
}
}
SCSounds.Play(SCSounds.MouseDown);
SubmitButton._visible = false;
var _local1 = new LoadVars();
var cVariablesCatch = new LoadVars();
_local1.type = SCRoot.m_szGameVersion;
_local1.firstname = TF1.text;
_local1.secondname = TF2.text;
_local1.telnumber = TF3.text;
_local1.email = TF4.text;
if (RB1._currentframe >= 3) {
_local1.role = "privateinvestor";
SCRoot.Track("custom7");
} else if (RB2._currentframe >= 3) {
_local1.role = "financialadvisor";
}
if (CB2._currentframe > 2) {
_local1.receiveupdates = true;
SCRoot.Track("custom8");
} else {
_local1.receiveupdates = false;
}
var cVariablesCatch = new LoadVars();
cVariablesCatch.onLoad = function (bSuccess) {
if (cVariablesCatch.success) {
ThankYou._visible = true;
ThankYou._alpha = 100;
var _local2 = Math.floor(Math.random() * 10000000);
var _local1 = ("http://ad.uk.doubleclick.net/activity;src=1150700;type=wruru691;cat=wroga674;ord=1;num=" + _local2) + "?";
loadMovieNum (_local1, 2);
EnterYourDetails._visible = false;
SCRoot.Track("custom3");
RemoveForm();
} else {
EnterYourDetails._visible = false;
ErrorMessage._visible = true;
ErrorMessage._alpha = 100;
RemoveForm();
}
};
_local1.sendAndLoad("http://www.manmountains.com/manmountains07/asp/submitentry.asp", cVariablesCatch, "post");
} else {
PleaseEnterAllDetails.gotoAndPlay(2);
}
}
function RemoveForm() {
SubmitButton._visible = false;
CompEntryForm._visible = false;
StaffFields._visible = false;
CB1._visible = (CB2._visible = (RB1._visible = (RB2._visible = false)));
TF1._visible = (TF2._visible = (TF3._visible = (TF4._visible = false)));
}
SCRoot.m_nCurrentRound = SCRoot.m_nDefaultStartingRound;
stop();
if (SCRoot.m_szGameVersion == "staff") {
RB1._visible = (RB2._visible = false);
StaffFields._visible = false;
}
_root.QuitGameButton._visible = true;
RB1.tabEnabled = (RB2.tabEnabled = (CB1.tabEnabled = (CB2.tabEnabled = false)));
PlayAgainButton.tabEnabled = (TF1.tabEnabled = (TF2.tabEnabled = (T3.tabEnabled = (T4.tabEnabled = true))));
SubmitButton.tabEnabled = (BackButton.tabEnabled = false);
TF1.restrict = "A-Z a-z \\-";
TF2.restrict = "A-Z a-z \\- ";
TF3.restrict = "0-9";
TF4.restrict = "a-z A-Z . @ _ 0-9";
PlayAgainButton.tabIndex = 1;
TF1._focusrect = (TF2._focusrect = (TF3._focusrect = (TF4._focusrect = false)));
RB1._focusrect = (RB2._focusrect = (CB1._focusrect = (CB2._focusrect = false)));
PlayAgainButton._focusrect = false;
TF1.tabIndex = 2;
TF2.tabIndex = 3;
TF3.tabIndex = 4;
TF4.tabIndex = 5;
RB1.tabIndex = 6;
RB2.tabIndex = 7;
CB1.tabIndex = 8;
CB2.tabIndex = 9;
GoodScoreTF.selectable = false;
SubmitButton.tabIndex = 10;
BackButton.tabIndex = 11;
SubmitButton._focusrect = (BackButton._focusrect = false);
if (SCPlayer.m_pcScoring.m_fOverallScore > 3000) {
GoodScoreTF.text = "GREAT SCORE";
} else {
GoodScoreTF.text = "GOOD EFFORT";
}
Selection.setFocus(TF1);
Terms._visible = false;
TermsButton.onPress = function () {
Terms._alpha = 100;
Terms._visible = true;
};
Terms.onRelease = function () {
Terms._alpha = 0;
Terms._visible = false;
};
TermsButton.onRollOver = (TermsButton.onDragOver = function () {
TermsButton._alpha = 70;
});
TermsButton.onRollOut = (TermsButton.onDragOut = function () {
TermsButton._alpha = 100;
});
SubmitButton.onPress = function () {
SubmitForm();
};
SubmitButton.onRollOver = (SubmitButton.onDragOver = function () {
SCSounds.Play(SCSounds.RollOver);
this.Arrow.gotoAndPlay(1);
});
SubmitButton.onRollOut = (SubmitButton.onDragOut = function () {
this.Arrow.gotoAndStop(1);
});
QuitButton.onPress = function () {
SCSounds.Play(SCSounds.MouseDown);
_root.MainMenu.gotoAndStop("Home");
};
QuitButton.onRollOver = (QuitButton.onDragOver = function () {
SCSounds.Play(SCSounds.RollOver);
QuitButton.gotoAndPlay("WhiteToRed");
});
QuitButton.onRollOut = (QuitButton.onDragOut = function () {
QuitButton.gotoAndPlay("RedToWhite");
});
PlayAgainButton.onRollOver = (PlayAgainButton.onDragOver = function () {
SCSounds.Play(SCSounds.RollOver);
this.Arrow.gotoAndPlay(1);
this.gotoAndStop("White");
});
PlayAgainButton.onRollOut = (PlayAgainButton.onDragOut = function () {
this.Arrow.gotoAndStop(1);
this.play();
});
PlayAgainButton.onPress = function () {
SCSounds.Play(SCSounds.MouseDown);
_root.MainMenu.gotoAndStop("RoundOneInstruction");
};
RB1.onRollOver = (RB1.onDragOver = (RB2.onRollOver = (RB2.onDragOver = (CB1.onRollOver = (CB1.onDragOver = (CB2.onRollOver = (CB2.onDragOver = function () {
})))))));
RB1.onRollOut = (RB1.onDragOut = (RB2.onRollOut = (RB2.onDragOut = (CB1.onRollOut = (CB1.onDragOut = (CB2.onRollOut = (CB2.onDragOut = function () {
})))))));
RB1.onDragOut = (RB2.onDragOut = (CB1.onDragOut = (CB2.onDragOut = (RB1.onPress = (RB2.onPress = (CB1.onPress = (CB2.onPress = function () {
if (this._currentframe == 1) {
this.gotoAndStop(3);
if (this._name == "RB1") {
RB2.gotoAndStop(1);
}
if (this._name == "RB2") {
RB1.gotoAndStop(1);
}
} else if ((this._currentframe == 3) && ((this._name == "CB1") || (this._name == "CB2"))) {
this.gotoAndStop(1);
}
})))))));
RB1.onDragOut = (RB2.onDragOut = (CB1.onDragOut = (CB2.onDragOut = (RB1.onRelease = (RB2.onRelease = (CB1.onRelease = (CB2.onRelease = function () {
if (this._currentframe == 2) {
this.gotoAndStop(3);
} else if (this._currentframe == 4) {
this.gotoAndStop(1);
}
})))))));
RB1.gotoAndStop(3);
Symbol 256 MovieClip [MainMenuContainer] Frame 11
function RemoveMessage() {
if (_root.MainMenu._currentframe != 11) {
return(undefined);
}
clearInterval(m_nInterval);
var _local2 = new mx.transitions.Tween(Message, "_width", mx.transitions.easing.Back.easeIn, Message._width, 0, 0.4, true);
var _local5 = new mx.transitions.Tween(Message, "_height", mx.transitions.easing.Back.easeIn, Message._height, 0, 0.4, true);
SCSounds.Play(SCSounds.SwooshOut);
_local2.onMotionFinished = function () {
if (_root.MainMenu._currentframe != 11) {
return(undefined);
}
if ((TargetPage == "StageFailed") || (TargetPage == "Home")) {
_root.MainMenu.gotoAndStop("StageFailed");
} else {
Animation._alpha = 100;
SCSounds.PlayLoop(SCSounds.CountUp);
m_nInterval = setInterval(TendScore, 1);
var _local3 = new mx.transitions.Tween(Animation, "_xscale", mx.transitions.easing.Bounce.easeOut, 50, 100, 0.2, true);
var _local2 = new mx.transitions.Tween(Animation, "_yscale", mx.transitions.easing.Bounce.easeOut, 50, 100, 0.2, true);
_local2.onMotionFinished = function () {
if (_root.MainMenu._currentframe == 11) {
SCSounds.Play(SCSounds.Thump);
}
};
}
};
}
function TendScore() {
if (_root.MainMenu._currentframe != 11) {
return(undefined);
}
if (nTweenValue < SCPlayer.m_pcScoring.m_fStageScore) {
nTweenValue = nTweenValue + 10;
}
if (nTweenValue >= SCPlayer.m_pcScoring.m_fStageScore) {
SCPlayer.m_pcScoring.m_fStageScore = Math.round(SCPlayer.m_pcScoring.m_fStageScore);
nTweenValue = SCPlayer.m_pcScoring.m_fStageScore;
clearInterval(m_nInterval);
SCSounds.Stop(SCSounds.CountUp, "countup");
m_nInterval = setInterval(ReduceSize, 1100);
}
Animation.ScoreTF.text = nTweenValue;
}
function ReduceSize() {
if (_root.MainMenu._currentframe != 11) {
return(undefined);
}
nTweenValue = Math.round(SCPlayer.m_pcScoring.m_fStageScore);
SCSounds.Play(SCSounds.SwooshOut);
var _local2 = new mx.transitions.Tween(Animation, "_xscale", mx.transitions.easing.Back.easeIn, 100, 50, 0.4, true);
var _local3 = new mx.transitions.Tween(Animation, "_yscale", mx.transitions.easing.Back.easeIn, 100, 50, 0.4, true);
_local2.onMotionFinished = function () {
if (_root.MainMenu._currentframe == 11) {
_root.MainMenu.gotoAndStop(_root.MainMenu.TargetPage);
}
};
clearInterval(m_nInterval);
}
stop();
var TargetPage = NextPage;
_root.QuitGameButton._visible = false;
_root.MainMenu._x = 379;
var m_nInterval;
Message.ScoreTF.text = SCRoot.m_szEndOfRoundMessage;
var MessageWidthTween = (new mx.transitions.Tween(Message, "_width", mx.transitions.easing.Bounce.easeOut, 0, Message._width, 0.4, true));
var MessageHeightTween = (new mx.transitions.Tween(Message, "_height", mx.transitions.easing.Bounce.easeOut, 0, Message._height, 0.4, true));
Message._alpha = 100;
MessageWidthTween.onMotionFinished = function () {
if (_root.MainMenu._currentframe != 11) {
return(undefined);
}
SCSounds.Play(SCSounds.Thump);
clearInterval(m_nInterval);
m_nInterval = setInterval(RemoveMessage, 1400);
};
var nTweenValue = 0;
Animation.ScoreTF.text = nTweenValue;
Symbol 256 MovieClip [MainMenuContainer] Frame 12
function GetScores() {
cLoadVars.playerscore = 0;
cLoadVars.submitscore = 0;
cLoadVars.type = SCRoot.m_szGameVersion;
cLoadVars.sendAndLoad("http://www.manmountains.com/manmountains07/asp/submitscore.asp", cVariablesCatch, "post");
cVariablesCatch.onLoad = function (bSuccess) {
if (cVariablesCatch.success) {
CaptionClip._visible = false;
ShowScores();
} else {
CaptionClip.Caption.text = "Error contacting server.";
}
};
}
function ShowScores() {
SCSounds.Play(SCSounds.Flicker);
var t = 1;
while (t < 13) {
var cTextField = eval ("N" + t);
cTextField._visible = true;
cTextField.kerning = true;
if (t > 4) {
cTextField.text = (eval ("cVariablesCatch.score" + t) + " ") + eval ("cVariablesCatch.name" + t);
} else {
cTextField.text = (eval ("cVariablesCatch.score" + t) + newline) + eval ("cVariablesCatch.name" + t);
}
t++;
}
HighScoreNumberLabels._visible = true;
}
stop();
var t = 1;
while (t < 13) {
eval ("N" + t).selectable = false;
eval ("N" + t)._visible = false;
t++;
}
_root.QuitGameButton._visible = true;
HeaderClip.Header.selectable = false;
CaptionClip.Caption.selectable = false;
HeaderClip.Header.text = "TOP SCORES";
CaptionClip.Caption.text = "Getting high scores...";
HighScoreNumberLabels._visible = false;
var cLoadVars = new LoadVars();
var cVariablesCatch = new LoadVars();
QuitButton.onPress = function () {
SCSounds.Play(SCSounds.MouseDown);
_root.MainMenu.gotoAndStop("Home");
};
QuitButton.onRollOver = (QuitButton.onDragOver = function () {
SCSounds.Play(SCSounds.RollOver);
QuitButton.gotoAndPlay("WhiteToRed");
});
QuitButton.onRollOut = (QuitButton.onDragOut = function () {
QuitButton.gotoAndPlay("RedToWhite");
});
GetScores();
Symbol 331 MovieClip Frame 12
SCOpponent.m_bAnimate = false;
stop();
Symbol 356 MovieClip Frame 12
SCOpponent.m_bAnimate = false;
stop();
Symbol 381 MovieClip Frame 12
SCOpponent.m_bAnimate = false;
stop();
Symbol 390 MovieClip Frame 4
stop();
SCOpponent.m_bAnimate = false;
Symbol 408 MovieClip Frame 4
stop();
SCOpponent.m_bAnimate = false;
Symbol 618 MovieClip [Opponent] Frame 1
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 618 MovieClip [Opponent] Frame 2
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 618 MovieClip [Opponent] Frame 3
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 618 MovieClip [Opponent] Frame 4
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 618 MovieClip [Opponent] Frame 5
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 618 MovieClip [Opponent] Frame 6
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 618 MovieClip [Opponent] Frame 7
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 618 MovieClip [Opponent] Frame 8
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 618 MovieClip [Opponent] Frame 9
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 620 MovieClip Frame 1
TF.selectable = false;
Symbol 625 MovieClip [AngleGuage] Frame 1
GuageType = "Angle";
TF.selectable = false;
Symbol 628 MovieClip Frame 1
stop();
Symbol 628 MovieClip Frame 56
gotoAndPlay (45);
Symbol 631 MovieClip [BalanceGuage] Frame 1
GuageType = "Balance";
this.onEnterFrame = function () {
Timer.TF.text = SCRoot.m_nBalanceTimeLeft;
if (SCRoot.m_nBalanceTimeLeft < 150) {
Timer.play();
}
Timer.TF.selectable = false;
};
Symbol 634 MovieClip [RattleGuage] Frame 1
var m_bLoaded;
if (!m_bLoaded) {
m_bLoaded = true;
TimeLeft.selectable = false;
this.onEnterFrame = function () {
Timer.TF.text = SCRoot.m_nDragTimeLeft;
if (SCRoot.m_nDragTimeLeft < 150) {
Timer.play();
}
Timer.TF.selectable = false;
};
var m_cThis = this;
var m_fTransitionTime = 0.3;
m_cWidthTween = new mx.transitions.Tween(TimeLeft, "_xscale", mx.transitions.easing.Bounce.easeOut, 90, 100, m_fTransitionTime, true);
m_cHeightTween = new mx.transitions.Tween(TimeLeft, "_yscale", mx.transitions.easing.Bounce.easeOut, 90, 100, m_fTransitionTime, true);
m_cAlphaTween = new mx.transitions.Tween(TimeLeft, "_alpha", mx.transitions.easing.None.easeOut, 0, 100, m_fTransitionTime, true);
m_cAlphaTween.onMotionFinished = function () {
var _local2 = new mx.transitions.Tween(m_cThis.TimeLeft, "_alpha", mx.transitions.easing.None.easeOut, 100, 105, 0.5, true);
_local2.onMotionFinished = function () {
var _local3 = new mx.transitions.Tween(m_cThis.TimeLeft, "_xscale", mx.transitions.easing.Bounce.easeOut, 100, 90, m_fTransitionTime, true);
var _local2 = new mx.transitions.Tween(m_cThis.TimeLeft, "_yscale", mx.transitions.easing.Bounce.easeOut, 100, 90, m_fTransitionTime, true);
var _local1 = new mx.transitions.Tween(m_cThis.TimeLeft, "_alpha", mx.transitions.easing.None.easeOut, 100, 0, m_fTransitionTime, true);
_local1.onMotionFinished = function () {
};
};
};
}
GuageType = "Keys";
stop();
Symbol 634 MovieClip [RattleGuage] Frame 2
stop();
Symbol 669 MovieClip Frame 1
stop();
Symbol 669 MovieClip Frame 11
stop();
Symbol 669 MovieClip Frame 21
stop();
Symbol 673 MovieClip Frame 1
stop();
Symbol 673 MovieClip Frame 9
stop();
Symbol 673 MovieClip Frame 17
stop();
Symbol 722 MovieClip Frame 7
SCSounds.Stop(SCSounds.Steps, "steps");
SCSounds.Play(SCSounds.Steps);
Symbol 722 MovieClip Frame 19
SCSounds.Stop(SCSounds.Steps, "steps");
SCSounds.Play(SCSounds.Steps);
Symbol 741 MovieClip Frame 8
_parent.gotoAndStop("WaitingToBegin");
Symbol 766 MovieClip Frame 25
_parent.gotoAndStop("DivingStatic");
Symbol 767 MovieClip Frame 22
switch (SCRoot.m_nCurrentRound) {
case 1 :
SCPlayer.m_cVelocity.__set__x(4.2);
break;
case 2 :
SCPlayer.m_cVelocity.__set__x(3.5);
break;
case 3 :
SCPlayer.m_cVelocity.__set__x(3);
}
SCPlayer.m_bApplyFriction = false;
_parent.gotoAndStop("Run");
Symbol 863 MovieClip Frame 23
SCSounds.Stop(SCSounds.Steps, "steps");
SCSounds.Play(SCSounds.Steps);
Symbol 863 MovieClip Frame 44
SCSounds.Stop(SCSounds.Steps, "steps");
SCSounds.Play(SCSounds.Steps);
Symbol 924 MovieClip Frame 4
SCOpponent.m_pcSprite.Animation._x = SCOpponent.m_pcSprite.Animation._x - 2;
Symbol 924 MovieClip Frame 5
SCOpponent.m_pcSprite.Animation._x = SCOpponent.m_pcSprite.Animation._x - 2;
Symbol 924 MovieClip Frame 6
SCOpponent.m_pcSprite.Animation._x = SCOpponent.m_pcSprite.Animation._x - 2;
Symbol 924 MovieClip Frame 7
SCOpponent.m_pcSprite.Animation._x = SCOpponent.m_pcSprite.Animation._x - 2;
Symbol 924 MovieClip Frame 8
SCOpponent.m_pcSprite.Animation._x = SCOpponent.m_pcSprite.Animation._x - 2;
Symbol 924 MovieClip Frame 9
SCOpponent.m_pcSprite.Animation._x = SCOpponent.m_pcSprite.Animation._x - 2;
Symbol 924 MovieClip Frame 10
SCOpponent.m_pcSprite.Animation._x = SCOpponent.m_pcSprite.Animation._x - 2;
Symbol 924 MovieClip Frame 11
SCOpponent.m_pcSprite.Animation._y = SCOpponent.m_pcSprite.Animation._y - 2;
SCOpponent.m_pcSprite.Animation._x = SCOpponent.m_pcSprite.Animation._x - 2;
Symbol 924 MovieClip Frame 12
SCOpponent.m_pcSprite.Animation._y = SCOpponent.m_pcSprite.Animation._y - 3;
SCOpponent.m_pcSprite.Animation._x = SCOpponent.m_pcSprite.Animation._x - 2;
Symbol 924 MovieClip Frame 13
SCOpponent.m_pcSprite.Animation._y = SCOpponent.m_pcSprite.Animation._y - 4;
SCOpponent.m_pcSprite.Animation._x = SCOpponent.m_pcSprite.Animation._x - 2;
Symbol 924 MovieClip Frame 14
SCOpponent.m_pcSprite.Animation._y = SCOpponent.m_pcSprite.Animation._y - 6;
SCOpponent.m_pcSprite.Animation._x = SCOpponent.m_pcSprite.Animation._x - 2;
Symbol 924 MovieClip Frame 15
SCOpponent.m_pcSprite.Animation._y = SCOpponent.m_pcSprite.Animation._y - 5;
SCOpponent.m_pcSprite.Animation._x = SCOpponent.m_pcSprite.Animation._x - 2;
Symbol 924 MovieClip Frame 16
SCOpponent.m_pcSprite.Animation._y = SCOpponent.m_pcSprite.Animation._y - 3;
SCOpponent.m_pcSprite.Animation._x = SCOpponent.m_pcSprite.Animation._x - 2;
Symbol 924 MovieClip Frame 17
SCOpponent.m_pcSprite.Animation._y = SCOpponent.m_pcSprite.Animation._y - 3;
SCOpponent.m_pcSprite.Animation._x = SCOpponent.m_pcSprite.Animation._x - 2;
Symbol 924 MovieClip Frame 18
SCOpponent.m_pcSprite.Animation._y = SCOpponent.m_pcSprite.Animation._y - 2;
SCOpponent.m_pcSprite.Animation._x = SCOpponent.m_pcSprite.Animation._x - 2;
Symbol 924 MovieClip Frame 30
SCRoot.AddBalanceGuage();
_parent.gotoAndStop("Balancing");
Symbol 1019 MovieClip Frame 2
SCSounds.Stop(SCSounds.Steps, "steps");
SCSounds.Play(SCSounds.Steps);
Symbol 1019 MovieClip Frame 22
SCSounds.Stop(SCSounds.Steps, "steps");
SCSounds.Play(SCSounds.Steps);
Symbol 1076 MovieClip Frame 1
SCPlayer.m_cVelocity.__set__y(SCPlayer.m_cVelocity.__set__x(0));
SCOpponent.m_cVelocity.__set__y(SCOpponent.m_cVelocity.__set__x(0));
SCSounds.Play(SCSounds.Fall);
Symbol 1076 MovieClip Frame 44
stop();
SCPlayer.m_bAnimate = false;
SCRoot.NextLevel();
Symbol 1087 MovieClip Frame 11
stop();
SCPlayer.m_bAnimate = false;
Symbol 1088 MovieClip [Player] Frame 1
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 1088 MovieClip [Player] Frame 2
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 1088 MovieClip [Player] Frame 3
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 1088 MovieClip [Player] Frame 4
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 1088 MovieClip [Player] Frame 5
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 1088 MovieClip [Player] Frame 6
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 1088 MovieClip [Player] Frame 7
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 1088 MovieClip [Player] Frame 8
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 1088 MovieClip [Player] Frame 9
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 1088 MovieClip [Player] Frame 10
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 1088 MovieClip [Player] Frame 11
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 1088 MovieClip [Player] Frame 12
stop();
AnimationShadow.m_fOriginalY = AnimationShadow._y;
Symbol 1089 MovieClip [RisingScore] Frame 46
this.removeMovieClip();
Symbol 1115 MovieClip Frame 1
stop();