Frame 1
function MainMenu() {
var _local1 = _root;
_local1.varHighScore = _local1.HighScore;
_local1.varTime = _local1.CurrentTimer;
_local1.varCurrentScore = _local1.CurrentScore;
m_VarTime._visible = true;
_local1.MarioLife1._visible = true;
_local1.MarioLife2._visible = true;
_local1.MarioLife3._visible = true;
}
function GetXPosition(level, x) {
var _local1 = x;
var _local2 = level;
if (_local2 != 1) {
if (_local2 != 2) {
if (_local2 != 3) {
if (_local2 != 4) {
if (_local2 != 5) {
if (_local2 == 6) {
if (160 >= _local1) {
return(160);
}
if (401 < _local1) {
return(401);
}
}
} else {
if (47 >= _local1) {
return(47);
}
if (433 < _local1) {
return(433);
}
}
} else {
if (14 >= _local1) {
return(14);
}
if (401 < _local1) {
return(401);
}
}
} else {
if (47 >= _local1) {
return(47);
}
if (433 < _local1) {
return(433);
}
}
} else {
if (14 >= _local1) {
return(14);
}
if (401 < _local1) {
return(401);
}
}
} else {
if (73 >= _local1) {
return(73);
}
if (433 < _local1) {
return(433);
}
}
return(_local1);
}
function GetYPosition(level, x) {
var _local1 = x;
var _local2 = level;
if (_local2 != 1) {
if (_local2 != 2) {
if (_local2 != 3) {
if (_local2 != 4) {
if (_local2 != 5) {
if (_local2 != 6) {
if (_local2 == 7) {
return(199);
}
} else {
if (288 >= _local1) {
return(199);
}
if ((288 < _local1) && (319 >= _local1)) {
return(202);
}
if ((319 < _local1) && (351 >= _local1)) {
return(204);
}
if ((351 < _local1) && (383 >= _local1)) {
return(206);
}
if (383 < _local1) {
return(208);
}
}
} else {
if (65 >= _local1) {
return(285);
}
if ((65 < _local1) && (97 >= _local1)) {
return(283);
}
if ((97 < _local1) && (129 >= _local1)) {
return(281);
}
if ((129 < _local1) && (160 >= _local1)) {
return(278);
}
if ((160 < _local1) && (192 >= _local1)) {
return(276);
}
if ((192 < _local1) && (224 >= _local1)) {
return(274);
}
if ((224 < _local1) && (255 >= _local1)) {
return(271);
}
if ((255 < _local1) && (288 >= _local1)) {
return(269);
}
if ((288 < _local1) && (319 >= _local1)) {
return(267);
}
if ((319 < _local1) && (351 >= _local1)) {
return(264);
}
if ((351 < _local1) && (383 >= _local1)) {
return(262);
}
if ((383 < _local1) && (415 >= _local1)) {
return(260);
}
if (415 < _local1) {
return(257);
}
}
} else {
if (33 >= _local1) {
return(334);
}
if ((33 < _local1) && (65 >= _local1)) {
return(336);
}
if ((65 < _local1) && (97 >= _local1)) {
return(339);
}
if ((97 < _local1) && (129 >= _local1)) {
return(341);
}
if ((129 < _local1) && (160 >= _local1)) {
return(343);
}
if ((160 < _local1) && (192 >= _local1)) {
return(346);
}
if ((192 < _local1) && (224 >= _local1)) {
return(348);
}
if ((224 < _local1) && (255 >= _local1)) {
return(350);
}
if ((255 < _local1) && (288 >= _local1)) {
return(353);
}
if ((288 < _local1) && (319 >= _local1)) {
return(355);
}
if ((319 < _local1) && (351 >= _local1)) {
return(357);
}
if ((351 < _local1) && (383 >= _local1)) {
return(360);
}
if (383 < _local1) {
return(362);
}
}
} else {
if (65 >= _local1) {
return(439);
}
if ((65 < _local1) && (97 >= _local1)) {
return(436);
}
if ((97 < _local1) && (129 >= _local1)) {
return(434);
}
if ((129 < _local1) && (160 >= _local1)) {
return(432);
}
if ((160 < _local1) && (192 >= _local1)) {
return(429);
}
if ((192 < _local1) && (224 >= _local1)) {
return(427);
}
if ((224 < _local1) && (255 >= _local1)) {
return(425);
}
if ((255 < _local1) && (288 >= _local1)) {
return(422);
}
if ((288 < _local1) && (319 >= _local1)) {
return(420);
}
if ((319 < _local1) && (351 >= _local1)) {
return(418);
}
if ((351 < _local1) && (383 >= _local1)) {
return(415);
}
if ((383 < _local1) && (415 >= _local1)) {
return(412);
}
if (415 < _local1) {
return(411);
}
}
} else {
if (33 >= _local1) {
return(488);
}
if ((33 < _local1) && (65 >= _local1)) {
return(490);
}
if ((65 < _local1) && (97 >= _local1)) {
return(492);
}
if ((97 < _local1) && (129 >= _local1)) {
return(495);
}
if ((129 < _local1) && (160 >= _local1)) {
return(498);
}
if ((160 < _local1) && (192 >= _local1)) {
return(499);
}
if ((192 < _local1) && (224 >= _local1)) {
return(502);
}
if ((224 < _local1) && (255 >= _local1)) {
return(504);
}
if ((255 < _local1) && (288 >= _local1)) {
return(506);
}
if ((288 < _local1) && (319 >= _local1)) {
return(508);
}
if ((319 < _local1) && (351 >= _local1)) {
return(511);
}
if ((351 < _local1) && (383 >= _local1)) {
return(513);
}
if (383 < _local1) {
return(515);
}
}
} else {
if (224 >= _local1) {
return(581);
}
if ((224 < _local1) && (255 >= _local1)) {
return(578);
}
if ((255 < _local1) && (288 >= _local1)) {
return(576);
}
if ((288 < _local1) && (319 >= _local1)) {
return(573);
}
if ((319 < _local1) && (351 >= _local1)) {
return(571);
}
if ((351 < _local1) && (383 >= _local1)) {
return(569);
}
if ((383 < _local1) && (415 >= _local1)) {
return(567);
}
if (415 < _local1) {
return(564);
}
}
}
function Princess() {
var _local1 = this;
_local1.CurrentDelay = 0;
_local1.Action = 0;
_local1._x = 195;
_local1._y = 110;
}
function Help() {
this._x = 241;
this._y = 95;
}
function IntroKong() {
var _local1 = this;
_local1.CurrentFrame = 1;
_local1.DelayRate = 1;
_local1._x = 256;
_local1._y = 528;
_local1.gotoandstop(_local1.CurrentFrame);
}
function Kong() {
var _local1 = this;
_local1.Action = 0;
_local1.CurrentFrame = 1;
_local1.DelayRate = 8;
_local1.CurrentDelay = 0;
_local1.AddBarrel = true;
_local1._x = 86;
_local1._y = 165;
_local1.BarrelNumber = 100;
_local1.DestroyBarrelStart = 100;
_local1.DestroyBarrelEnd = 100;
_local1.gotoandstop(CurrentFrame);
}
function JumpPoints() {
this._x = Level1Mario._x;
this._y = Level1Mario._y;
}
function Mario() {
var _local1 = this;
var _local2 = _root;
_local1.CurrentFrame = 1;
_local1.Action = 0;
_local1.Direction = 0;
_local1.AcceptInput = true;
_local1.DelayRate = 0;
_local1.CurrentDelay = 0;
_local1.Height = 18;
_local1.Climbing = false;
_local1.XPosition = 1;
_local1.Level = 1;
_local1._x = 102;
_local1._y = 564;
_local1.xSpeed = 8;
_local1.ySpeed = 4;
_local1.Dead = false;
_local1.DeathSpinCount = 0;
_local1.Jumping = false;
_local1.JumpRaise = 0;
_local1.JumpMaxHeight = 30;
_local1.JumpDirection = 1;
_local1.JumpSpeedx = 0;
if (_local2.MarioLives != 3) {
if (_local2.MarioLives != 2) {
if (_local2.MarioLives == 1) {
_local2.MarioLife1._visible = false;
}
} else {
_local2.MarioLife2._visible = false;
}
} else {
_local2.MarioLife3._visible = false;
}
}
function Barrel() {
var _local1 = this;
_local1.gotoandstop(3);
_local1._x = 140;
_local1._y = 188;
_local1.Level = 6;
_local1.Speedx = 8;
_local1.Speedy = 4;
_local1.Action = 0;
_local1.OverLadder = false;
_local1.CurrentDelay = 0;
_local1.DelayRate = 1;
_local1.CurrentFrame = 3;
_local1.CheckedLadder = false;
_local1.XDirection = 1;
_local1.Height = 12;
_local1.JumpedMe = false;
_local1.PointNumber = 50;
}
function Level1() {
var _local1 = this;
var _local2 = _root;
_local1.Setup = true;
_local1.stop();
_local1._x = 0;
_local1._y = 40.9;
_local2.attachMovie("Kong", "Level1Kong", 10);
_local2.attachMovie("Mario", "Level1Mario", 20);
_local2.attachMovie("Princess", "Level1Princess", 30);
_local2.GameBGSound.start();
_local2.GameBGSoundPlaying = true;
_local1.TimerDecreaseDelay = 0;
_local1.TimerBlink = 0;
}
function StartScreen() {
var _local1 = _root;
this.DelayCount = 0;
_local1.StartSound.start();
_local1.CurrentTimer = 4500;
_local1.varTime = _local1.CurrentTimer;
_local1.varCurrentScore = _local1.CurrentScore;
m_VarTime._visible = true;
}
function IntroScreen() {
var _local1 = _root;
this.Done = false;
_local1.attachMovie("IntroKong", "IntroKong0", 10);
_local1.IntroSound.start();
_local1.CurrentScore = 0;
_local1.varCurrentScore = _local1.CurrentScore;
_local1.varTime = _local1.CurrentTimer;
_local1.MarioLives = 3;
}
HighScore = 7500;
CurrentScore = 0;
CurrentTimer = 4500;
MarioLives = 3;
IntroSound = new Sound();
IntroSound.attachSound("IntroSound_WAV");
IntroSoundPlaying = false;
StartSound = new Sound();
StartSound.attachSound("StartSound_WAV");
StartSoundPlaying = false;
GameBGSound = new Sound();
GameBGSound.attachSound("GameBGSound_WAV");
GameBGSoundPlaying = false;
_root.GameBGSound.onSoundComplete = function () {
_root.GameBGSound.start();
};
JumpSound = new Sound();
JumpSound.attachSound("JumpSound_WAV");
JumpSoundPlaying = false;
DeathSound = new Sound();
DeathSound.attachSound("DeathSound_WAV");
_root.DeathSound.onSoundComplete = function () {
_root.DeathSoundPlaying = false;
};
MainMenu.prototype = new MovieClip();
Object.registerClass("MainMenu", MainMenu);
attachMovie("MainMenu", "MainMenu0", 0);
Princess.prototype = new MovieClip();
Object.registerClass("Princess", Princess);
Princess.prototype.Destroy = function () {
this.removemovieclip();
};
Princess.prototype.onEnterFrame = function () {
var _local1 = this;
if (_local1.Action == 0) {
_local1.CurrentDelay = _local1.CurrentDelay + 1;
if (50 < _local1.CurrentDelay) {
_local1.CurrentDelay = 0;
_root.attachMovie("Help", "Help", 40);
}
}
};
Help.prototype = new MovieClip();
Object.registerClass("Help", Help);
Help.prototype.Destroy = function () {
this.removemovieclip();
};
Help.prototype.onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha - 10;
if (_local1._alpha < 1) {
_local1.Destroy();
}
};
IntroKong.prototype = new MovieClip();
Object.registerClass("IntroKong", IntroKong);
IntroKong.prototype.Destroy = function () {
this.removemovieclip();
};
IntroKong.prototype.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y - 5;
_local1.CurrentDelay = _local1.CurrentDelay + 1;
if (_local1.DelayRate < _local1.CurrentDelay) {
_local1.CurrentDelay = 0;
_local1.CurrentFrame = _local1.CurrentFrame + 1;
}
if (2 < _local1.CurrentFrame) {
_local1.CurrentFrame = 1;
}
_local1.gotoandstop(_local1.CurrentFrame);
};
Kong.prototype = new MovieClip();
Object.registerClass("Kong", Kong);
Kong.prototype.Destroy = function () {
var _local1 = _root;
if (_local1.DeathSoundPlaying == true) {
_local1.DeathSound.stop();
_local1.DeathSoundPlaying = false;
}
this.removemovieclip();
};
Kong.prototype.DestroyBarrels = function () {
var _local3 = this;
var _local2;
var _local1;
_local1 = _local3.DestroyBarrelStart;
while (_local1 < _local3.DestroyBarrelEnd) {
_local2 = "_root.NewBarrel" + _local1;
setProperty(_local2, _visible , false);
_local1 = _local1 + 1;
}
};
Kong.prototype.onEnterFrame = function () {
var _local1 = this;
var _local2;
if (_local1.Action != 0) {
if (_local1.Action != 1) {
_local1.gotoandstop(5);
} else {
_local1._y = _local1._y + 20;
_local1.gotoandstop(1);
_local1._rotation = _local1._rotation + 50;
if (565 < _local1._y) {
Level10.Destroy();
}
}
} else {
_local1.UpdateFrame();
_local1.gotoandstop(_local1.CurrentFrame);
if (!((_local1.CurrentFrame == 4) && (_local1.AddBarrel))) {
if (_local1.CurrentFrame != 4) {
_local1.AddBarrel = true;
}
} else {
_local1.AddBarrel = false;
_local2 = "NewBarrel" + _local1.BarrelNumber;
_local1.DestroyBarrelEnd = _local1.DestroyBarrelEnd + _local1.BarrelNumber;
_root.attachMovie("Barrel", _local2, _local1.BarrelNumber);
_local1.BarrelNumber = _local1.BarrelNumber + 1;
}
}
};
Kong.prototype.UpdateFrame = function () {
var _local1 = this;
var _local2;
if (_local1.CurrentFrame != 6) {
if (_local1.CurrentFrame != 1) {
_local1.CurrentDelay = _local1.CurrentDelay + 1;
if (_local1.DelayRate < _local1.CurrentDelay) {
_local1.CurrentDelay = 0;
_local1.CurrentFrame = _local1.CurrentFrame + 1;
}
if (4 < _local1.CurrentFrame) {
_local2 = Math.random();
if (0.5 >= _local2) {
_local1.CurrentFrame = 1;
} else {
_local1.CurrentFrame = 6;
}
}
} else {
_local1.CurrentDelay = _local1.CurrentDelay + 1;
if (10 < _local1.CurrentDelay) {
_local1.CurrentDelay = 0;
_local1.CurrentFrame = _local1.CurrentFrame + 1;
}
}
} else {
_local1.CurrentDelay = _local1.CurrentDelay + 1;
if (_local1.DelayRate < _local1.CurrentDelay) {
_local1.CurrentDelay = 0;
_local1.CurrentFrame = 1;
}
}
};
JumpPoints.prototype = new MovieClip();
Object.registerClass("JumpPoints", JumpPoints);
JumpPoints.prototype.Destroy = function () {
this.removemovieclip();
};
JumpPoints.prototype.onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha - 10;
if (_local1._alpha < 1) {
_local1.Destroy();
}
};
Mario.prototype = new MovieClip();
Object.registerClass("Mario", Mario);
Mario.prototype.Destroy = function () {
this.removemovieclip();
};
Mario.prototype.onEnterFrame = function () {
var _local1 = this;
var _local3 = 0;
var _local2 = 0;
if (_local1.Action != -11) {
if (_local1.Action != -10) {
if (_local1.AcceptInput) {
if (!Key.isDown(32)) {
if (!Key.isDown(40)) {
if (!Key.isDown(38)) {
if (!Key.isDown(37)) {
if (!Key.isDown(39)) {
if (_local1.Direction != 0) {
_local1.Action = -2;
} else {
_local1.Action = -1;
}
} else {
_local3 = _local3 + _local1.xSpeed;
_local1.Action = 0;
_local1.Direction = 0;
}
} else {
_local3 = _local3 - _local1.xSpeed;
_local1.Action = 1;
_local1.Direction = 1;
}
} else {
_local2 = _local2 - _local1.ySpeed;
_local1.Action = 4;
}
} else {
_local2 = _local2 + _local1.ySpeed;
_local1.Action = 4;
}
} else if (_local1.Climbing == false) {
_root.JumpSound.start();
_local1.Jumping = true;
_local1.AcceptInput = false;
_local1.JumpDirection = 1;
if (!Key.isDown(37)) {
if (!Key.isDown(39)) {
_local1.JumpSpeedx = 0;
} else {
_local1.JumpSpeedx = 4;
}
} else {
_local1.JumpSpeedx = -4;
}
if (_local1.Direction != 0) {
_local1.Action = 3;
} else {
_local1.Action = 2;
}
}
}
_local1.CheckPosition(_local3, _local2);
_local1.UpdateFrame();
} else {
_local1.CurrentFrame = 3;
}
} else if (_local1.DeathSpinCount >= 3) {
_local1.CurrentFrame = 19;
_local1.CurrentDelay = _local1.CurrentDelay + 1;
if (20 < _local1.CurrentDelay) {
Level1Kong.DestroyBarrels();
MarioLives = MarioLives - 1;
Level10.Destroy();
}
} else {
_local1.UpdateFrame();
}
_local1.gotoandstop(_local1.CurrentFrame);
};
Mario.prototype.CheckPosition = function (x, y) {
var _local1 = this;
_local1.IncreaseX = x;
_local1.IncreaseY = y;
_local1.NewX = 0;
_local1.NewY = 0;
if (_local1.Climbing != true) {
if (_local1.Action != 4) {
if (!((_local1.Action == 2) || (_local1.Action == 3))) {
_local1.DoWalkingTest();
} else {
_local1.NewX = _local1._x + _local1.JumpSpeedx;
_local1.NewX = GetXPosition(_local1.Level, _local1.NewX);
if (_local1.JumpDirection != 1) {
_local1.JumpRaise = _local1.JumpRaise + 6;
} else {
_local1.JumpRaise = _local1.JumpRaise - 6;
if (_local1.JumpRaise < (_local1.JumpMaxHeight * -1)) {
_local1.JumpDirection = 0;
}
}
_local1.IncreaseY = GetYPosition(_local1.Level, _local1.NewX);
_local1.NewY = _local1.IncreaseY;
_local1.IncreaseY = _local1.IncreaseY - (_local1.Height - _local1.JumpRaise);
if (_local1.IncreaseY >= (_local1.NewY - _local1.Height)) {
_local1.NewY = _local1.NewY - _local1.Height;
_local1.Jumping = false;
_local1.AcceptInput = true;
} else {
_local1.NewY = _local1.NewY - (_local1.Height - _local1.JumpRaise);
}
}
} else {
_local1.CheckIfLaderExists();
}
} else {
_local1.DoClimbingTest();
}
_local1._x = _local1.NewX;
_local1._y = _local1.NewY;
};
Mario.prototype.DoClimbingTest = function () {
var _local1 = this;
if (_local1.IncreaseY != 0) {
_local1.CurrentDelay = _local1.CurrentDelay + 1;
if (_local1.DelayRate < _local1.CurrentDelay) {
_local1.CurrentDelay = 0;
_local1.CurrentFrame = _local1.CurrentFrame + 1;
}
if (14 < _local1.CurrentFrame) {
_local1.CurrentFrame = 13;
}
}
if ((_local1.Action != 4) || (_local1.Action != 5)) {
_local1.Action = 4;
}
if (_local1.Level != 1) {
if (_local1.Level != 2) {
if (_local1.Level != 3) {
if (_local1.Level != 4) {
if (_local1.Level != 5) {
if (_local1.Level == 6) {
_local1.Level6Laders();
}
} else {
_local1.Level5Laders();
}
} else {
_local1.Level4Laders();
}
} else {
_local1.Level3Laders();
}
} else {
_local1.Level2Laders();
}
} else {
_local1.Level1Laders();
}
};
Mario.prototype.Level1Laders = function () {
var _local1 = this;
if (_local1._x != 375) {
if (_local1._x == 169) {
_local1.NewX = 169;
if (_local1._y >= 552) {
if (565 >= _local1._y) {
_local1.NewY = _local1._y + _local1.IncreaseY;
} else {
_local1.Level = 1;
_local1.Climbing = false;
_local1.NewY = 564;
}
} else {
_local1.NewY = 552;
}
}
} else {
_local1.NewX = 375;
if (_local1._y >= 496) {
if (553 >= _local1._y) {
_local1.NewY = _local1._y + _local1.IncreaseY;
} else {
_local1.Level = 1;
_local1.Climbing = false;
_local1.NewY = 552;
}
} else {
_local1.Level = 2;
_local1.Climbing = false;
_local1.NewY = 496;
}
}
};
Mario.prototype.Level2Laders = function () {
var _local1 = this;
if (_local1._x != 200) {
if (_local1._x == 73) {
_local1.NewX = 73;
if (_local1._y >= 421) {
if (476 >= _local1._y) {
_local1.NewY = _local1._y + _local1.IncreaseY;
} else {
_local1.Level = 2;
_local1.Climbing = false;
_local1.NewY = 475;
}
} else {
_local1.Level = 3;
_local1.Climbing = false;
_local1.NewY = 420;
}
}
} else {
_local1.NewX = 200;
if (_local1._y >= 411) {
if (486 >= _local1._y) {
_local1.NewY = _local1._y + _local1.IncreaseY;
} else {
_local1.Level = 2;
_local1.Climbing = false;
_local1.NewY = 485;
}
} else {
_local1.Level = 3;
_local1.Climbing = false;
_local1.NewY = 410;
}
}
};
Mario.prototype.Level3Laders = function () {
var _local1 = this;
if (_local1._x != 137) {
if (_local1._x != 234) {
if (_local1._x == 376) {
_local1.NewX = 376;
if (_local1._y >= 344) {
if (399 >= _local1._y) {
_local1.NewY = _local1._y + _local1.IncreaseY;
} else {
_local1.Level = 3;
_local1.Climbing = false;
_local1.NewY = 398;
}
} else {
_local1.Level = 4;
_local1.Climbing = false;
_local1.NewY = 343;
}
}
} else {
_local1.NewX = 234;
if (_local1._y >= 333) {
if (409 >= _local1._y) {
_local1.NewY = _local1._y + _local1.IncreaseY;
} else {
_local1.Level = 3;
_local1.Climbing = false;
_local1.NewY = 408;
}
} else {
_local1.Level = 4;
_local1.Climbing = false;
_local1.NewY = 332;
}
}
} else {
_local1.NewX = 137;
if (_local1._y >= 399) {
if (416 >= _local1._y) {
_local1.NewY = _local1._y + _local1.IncreaseY;
} else {
_local1.Level = 3;
_local1.Climbing = false;
_local1.NewY = 415;
}
} else {
_local1.NewY = 400;
}
}
};
Mario.prototype.Level4Laders = function () {
var _local1 = this;
if (_local1._x != 344) {
if (_local1._x != 153) {
if (_local1._x == 75) {
_local1.NewX = 75;
if (_local1._y >= 267) {
if (323 >= _local1._y) {
_local1.NewY = _local1._y + _local1.IncreaseY;
} else {
_local1.Level = 4;
_local1.Climbing = false;
_local1.NewY = 322;
}
} else {
_local1.Level = 5;
_local1.Climbing = false;
_local1.NewY = 266;
}
}
} else {
_local1.NewX = 153;
if (_local1._y >= 261) {
if (327 >= _local1._y) {
_local1.NewY = _local1._y + _local1.IncreaseY;
} else {
_local1.Level = 4;
_local1.Climbing = false;
_local1.NewY = 326;
}
} else {
_local1.Level = 5;
_local1.Climbing = false;
_local1.NewY = 260;
}
}
} else {
_local1.NewX = 344;
if (_local1._y >= 324) {
if (341 >= Level1Mario._y) {
_local1.NewY = _local1._y + _local1.IncreaseY;
} else {
_local1.Level = 4;
_local1.Climbing = false;
_local1.NewY = 340;
}
} else {
_local1.NewY = 325;
}
}
};
Mario.prototype.Level5Laders = function () {
var _local1 = this;
if (_local1._x != 186) {
if (_local1._x == 376) {
_local1.NewX = 376;
if (_local1._y >= 190) {
if (246 >= _local1._y) {
_local1.NewY = _local1._y + _local1.IncreaseY;
} else {
_local1.Level = 5;
_local1.Climbing = false;
_local1.NewY = 245;
}
} else {
_local1.Level = 6;
_local1.Climbing = false;
_local1.NewY = 189;
}
}
} else {
_local1.NewX = 186;
if (_local1._y >= 245) {
if (260 >= _local1._y) {
_local1.NewY = _local1._y + _local1.IncreaseY;
} else {
_local1.Level = 5;
_local1.Climbing = false;
_local1.NewY = 259;
}
} else {
_local1.NewY = 246;
}
}
};
Mario.prototype.Level6Laders = function () {
var _local1 = this;
var _local2 = _root;
if (_local1._x == 265) {
_local1.NewX = 265;
if (_local1._y >= 118) {
if (183 >= _local1._y) {
_local1.NewY = _local1._y + _local1.IncreaseY;
} else {
_local1.Level = 6;
_local1.Climbing = false;
_local1.NewY = 182;
}
} else {
_local1.Level = 7;
_local1.Climbing = false;
_local1.NewY = 117;
_local1.Action = -10;
_local1.AcceptInput = false;
Level1Kong.Action = 1;
Level1Kong.DestroyBarrels();
Level1Princess.Action = 1;
_local2.CurrentScore = _local2.CurrentScore + _local2.CurrentTimer;
_local2.GameBGSound.stop();
_local2.GameBGSoundPlaying = false;
_local2.DeathSound.start();
_local2.DeathSoundPlaying = true;
}
}
};
Mario.prototype.DoWalkingTest = function () {
var _local1 = this;
_local1.NewX = _local1._x + _local1.IncreaseX;
_local1.NewX = GetXPosition(_local1.Level, _local1.NewX);
_local1.NewY = GetYPosition(_local1.Level, _local1.NewX);
_local1.NewY = _local1.NewY - _local1.Height;
};
Mario.prototype.CheckIfLaderExists = function () {
var _local1 = this;
if (_local1.Level != 1) {
if (_local1.Level != 2) {
if (_local1.Level != 3) {
if (_local1.Level != 4) {
if (_local1.Level != 5) {
if (_local1.Level == 6) {
_local1.Level6LaderExists();
}
} else {
_local1.Level5LaderExists();
}
} else {
_local1.Level4LaderExists();
}
} else {
_local1.Level3LaderExists();
}
} else {
_local1.Level2LaderExists();
}
} else {
_local1.Level1LaderExists();
}
};
Mario.prototype.Level1LaderExists = function () {
var _local1 = this;
if (!((369 < _local1._x) && (_local1._x < 381))) {
if (!((163 < _local1._x) && (_local1._x < 172))) {
_local1.NewX = _local1._x;
_local1.NewY = _local1._y;
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 169;
_local1.NewY = _local1._y + _local1.IncreaseY;
}
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 375;
_local1.NewY = _local1._y + _local1.IncreaseY;
}
};
Mario.prototype.Level2LaderExists = function () {
var _local1 = this;
if (!((196 < _local1._x) && (_local1._x < 205))) {
if (!((69 < _local1._x) && (_local1._x < 79))) {
if (!(((369 < _local1._x) && (_local1._x < 381)) && (0 < _local1.IncreaseY))) {
_local1.NewX = _local1._x;
_local1.NewY = _local1._y;
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 375;
_local1.NewY = _local1._y + _local1.IncreaseY;
_local1.Level = 1;
}
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 73;
_local1.NewY = _local1._y + _local1.IncreaseY;
}
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 200;
_local1.NewY = _local1._y + _local1.IncreaseY;
}
};
Mario.prototype.Level3LaderExists = function () {
var _local1 = this;
if (!((132 < _local1._x) && (_local1._x < 142))) {
if (!((228 < _local1._x) && (_local1._x < 238))) {
if (!((371 < _local1._x) && (_local1._x < 381))) {
if (!(((196 < _local1._x) && (_local1._x < 205)) && (0 < _local1.IncreaseY))) {
if (!(((69 < _local1._x) && (_local1._x < 79)) && (0 < _local1.IncreaseY))) {
_local1.NewX = _local1._x;
_local1.NewY = _local1._y;
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 73;
_local1.NewY = _local1._y + _local1.IncreaseY;
_local1.Level = 2;
}
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 200;
_local1.NewY = _local1._y + _local1.IncreaseY;
_local1.Level = 2;
}
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 376;
_local1.NewY = _local1._y + _local1.IncreaseY;
}
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 234;
_local1.NewY = _local1._y + Ithis.ncreaseY;
}
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 137;
_local1.NewY = _local1._y + Ithis.ncreaseY;
}
};
Mario.prototype.Level4LaderExists = function () {
var _local1 = this;
if (!((338 < _local1._x) && (_local1._x < 348))) {
if (!((148 < _local1._x) && (_local1._x < 158))) {
if (!((68 < _local1._x) && (_local1._x < 78))) {
if (!(((228 < _local1._x) && (_local1._x < 237)) && (0 < _local1.IncreaseY))) {
if (!(((371 < _local1._x) && (_local1._x < 380)) && (0 < _local1.IncreaseY))) {
_local1.NewX = _local1._x;
_local1.NewY = _local1._y;
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 376;
_local1.NewY = _local1._y + _local1.IncreaseY;
_local1.Level = 3;
}
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 234;
_local1.NewY = _local1._y + _local1.IncreaseY;
_local1.Level = 3;
}
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 75;
_local1.NewY = _local1._y + _local1.IncreaseY;
}
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 153;
_local1.NewY = Level1Mario._y + _local1.IncreaseY;
}
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 344;
_local1.NewY = _local1._y + _local1.IncreaseY;
}
};
Mario.prototype.Level5LaderExists = function () {
var _local1 = this;
if (!((179 < _local1._x) && (_local1._x < 189))) {
if (!((370 < _local1._x) && (_local1._x < 380))) {
if (!(((148 < _local1._x) && (_local1._x < 158)) && (0 < _local1.IncreaseY))) {
if (!(((68 < _local1._x) && (_local1._x < 78)) && (0 < _local1.IncreaseY))) {
_local1.NewX = _local1._x;
_local1.NewY = _local1._y;
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 75;
_local1.NewY = _local1._y + _local1.IncreaseY;
_local1.Level = 4;
}
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 153;
_local1.NewY = _local1._y + _local1.IncreaseY;
_local1.Level = 4;
}
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 376;
_local1.NewY = Level1Mario._y + _local1.IncreaseY;
}
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 186;
_local1.NewY = _local1._y + _local1.IncreaseY;
}
};
Mario.prototype.Level6LaderExists = function () {
var _local1 = this;
if (!((259 < _local1._x) && (_local1._x < 269))) {
if (!(((370 < _local1._x) && (_local1._x < 380)) && (0 < _local1.IncreaseY))) {
_local1.NewX = _local1._x;
_local1.NewY = _local1._y;
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 376;
_local1.NewY = _local1._y + _local1.IncreaseY;
_local1.Level = 5;
}
} else {
_local1.CurrentFrame = 13;
_local1.Climbing = true;
_local1.NewX = 265;
_local1.NewY = _local1._y + _local1.IncreaseY;
}
};
Mario.prototype.UpdateFrame = function () {
var _local1 = this;
switch (_local1.Action) {
case -11 :
if (!((_local1.CurrentFrame < 15) || (19 < _local1.CurrentFrame))) {
_local1.CurrentDelay = _local1.CurrentDelay + 1;
if (_local1.DelayRate < _local1.CurrentDelay) {
_local1.CurrentDelay = 0;
_local1.CurrentFrame = _local1.CurrentFrame + 1;
}
if (18 < _local1.CurrentFrame) {
_local1.DeathSpinCount = _local1.DeathSpinCount + 1;
_local1.CurrentFrame = 15;
}
} else {
_local1.CurrentFrame = 15;
_local1.DelayRate = 1;
}
return(undefined);
case -2 :
_local1.CurrentFrame = 3;
return(undefined);
case -1 :
_local1.CurrentFrame = 1;
return(undefined);
case 0 :
if (!((_local1.CurrentFrame < 1) || (2 < _local1.CurrentFrame))) {
_local1.CurrentDelay = _local1.CurrentDelay + 1;
if (_local1.DelayRate < _local1.CurrentDelay) {
_local1.CurrentDelay = 0;
_local1.CurrentFrame = _local1.CurrentFrame + 1;
}
if (2 < _local1.CurrentFrame) {
_local1.CurrentFrame = 1;
}
} else {
_local1.CurrentFrame = 1;
_local1.DelayRate = 1;
}
return(undefined);
case 1 :
if (!((4 < _local1.CurrentFrame) || (_local1.CurrentFrame < 3))) {
_local1.CurrentDelay = _local1.CurrentDelay + 1;
if (_local1.DelayRate < _local1.CurrentDelay) {
_local1.CurrentDelay = 0;
_local1.CurrentFrame = _local1.CurrentFrame + 1;
}
if (4 < _local1.CurrentFrame) {
_local1.CurrentFrame = 3;
}
} else {
_local1.CurrentFrame = 3;
_local1.DelayRate = 1;
}
return(undefined);
case 2 :
_local1.CurrentFrame = 5;
return(undefined);
case 3 :
_local1.CurrentFrame = 6;
return(undefined);
}
};
Barrel.prototype = new MovieClip();
Object.registerClass("Barrel", Barrel);
Barrel.prototype.Destroy = function () {
Level1Kong.DestroyBarrelStart = Level1Kong.DestroyBarrelStart + 1;
this.removemovieclip();
};
Barrel.prototype.onEnterFrame = function () {
var _local1 = this;
if (_local1._visible == false) {
_local1.Destroy();
}
if (Level1Mario.Dead == false) {
if (_local1.Action != 0) {
if (_local1.Action == 1) {
_local1.GoDownLadder();
_local1.UpdateFrame();
}
} else {
_local1.CheckOverLadder();
if (_local1.Action != 1) {
_local1.OverLadder = false;
_local1.CheckDestroyBarrel();
_local1.UpdateFrame();
_local1._x = _local1._x + (_local1.Speedx * _local1.XDirection);
_local1._y = GetYPosition(_local1.Level, _local1._x);
_local1._y = _local1._y - _local1.Height;
} else {
_local1.OverLadder = false;
}
}
_local1.CheckForMarioCollision();
_local1.CheckForMarioJumpingOverBarrel();
}
_local1.gotoandstop(_local1.CurrentFrame);
};
Barrel.prototype.CheckForMarioCollision = function () {
var _local1;
var _local3;
var _local2;
_local3 = this._x - Level1Mario._x;
_local2 = this._y - Level1Mario._y;
_local1 = (_local3 * _local3) + (_local2 * _local2);
_local1 = Math.sqrt(_local1);
if (_local1 < 25) {
_root.GameBGSound.stop();
_root.GameBGSoundPlaying = false;
_root.DeathSound.start();
Level1Mario.Dead = true;
Level1Mario.Action = -11;
Level1Kong.Action = 2;
}
};
Barrel.prototype.CheckForMarioJumpingOverBarrel = function () {
var _local1 = this;
var dis;
var _local2;
var y;
var _local3;
if (((_local1.Level == Level1Mario.Level) && (_local1.JumpedMe == false)) && (Level1Mario.Jumping == true)) {
_local2 = _local1._x - Level1Mario._x;
_local2 = Math.abs(_local2);
if ((_local2 < 10) && (Level1Mario._y < _local1._y)) {
_local1.JumpedMe = true;
_local3 = "NewPoints" + _local1.PointNumber;
_root.attachMovie("JumpPoints", _local3, _local1.PointNumber);
_local1.PointNumber = _local1.PointNumber + 1;
_root.CurrentScore = _root.CurrentScore + 100;
if (59 < _local1.PointNumber) {
_local1.PointNumber = 50;
}
}
}
};
Barrel.prototype.CheckOverLadder = function () {
var _local1 = this;
var _local3;
var _local2;
if (_local1.Level != 6) {
if (_local1.Level != 5) {
if (_local1.Level != 4) {
if (_local1.Level != 3) {
if (_local1.Level == 2) {
if (!((163 < _local1._x) && (_local1._x < 172))) {
if ((369 < _local1._x) && (_local1._x < 381)) {
_local2 = 0;
_local1.OverLadder = true;
_local1.NewX = 375;
}
} else {
_local2 = 0.8;
_local1.OverLadder = true;
_local1.NewX = 169;
}
}
} else if (!((196 < _local1._x) && (_local1._x < 205))) {
if ((69 < _local1._x) && (_local1._x < 79)) {
_local2 = 0;
_local1.OverLadder = true;
_local1.NewX = 73;
}
} else {
_local2 = 0.6;
_local1.OverLadder = true;
_local1.NewX = 200;
}
} else if (!((132 < _local1._x) && (_local1._x < 142))) {
if (!((228 < _local1._x) && (_local1._x < 237))) {
if ((371 < _local1._x) && (_local1._x < 380)) {
_local2 = 0;
_local1.OverLadder = true;
_local1.NewX = 376;
}
} else {
_local2 = 0.6;
_local1.OverLadder = true;
_local1.NewX = 234;
}
} else {
_local2 = 0.9;
_local1.OverLadder = true;
_local1.NewX = 137;
}
} else if (!((338 < _local1._x) && (_local1._x < 348))) {
if (!((148 < _local1._x) && (_local1._x < 158))) {
if ((68 < _local1._x) && (_local1._x < 78)) {
_local2 = 0;
_local1.OverLadder = true;
_local1.NewX = 75;
}
} else {
_local2 = 0.5;
_local1.OverLadder = true;
_local1.NewX = 153;
}
} else {
_local2 = 0.9;
_local1.OverLadder = true;
_local1.NewX = 344;
}
} else if (!((179 < _local1._x) && (_local1._x < 189))) {
if ((370 < _local1._x) && (_local1._x < 380)) {
_local2 = 0;
_local1.OverLadder = true;
_local1.NewX = 376;
}
} else {
_local2 = 0.8;
_local1.OverLadder = true;
_local1.NewX = 186;
}
if (!_local1.OverLadder) {
_local1.CheckedLadder = false;
} else {
_local3 = Math.random();
if (!((_local1.CheckedLadder == false) && (_local2 < _local3))) {
_local1.CheckedLadder = true;
} else {
_local1.gotoandstop(1);
_local1.Action = 1;
_local1._x = _local1.NewX;
}
}
};
Barrel.prototype.GoDownLadder = function () {
var _local1 = this;
var _local2 = false;
switch (_local1.Level) {
case 6 :
switch (_local1._x) {
case 186 :
_local1._y = _local1._y + _local1.Speedy;
if (276 < (_local1._y + _local1.Height)) {
_local2 = true;
_local1.NewY = 276;
}
break;
case 376 :
_local1._y = _local1._y + _local1.Speedy;
if (262 >= (_local1._y + _local1.Height)) {
break;
}
_local2 = true;
_local1.NewY = 262;
}
break;
case 5 :
switch (_local1._x) {
case 344 :
_local1._y = _local1._y + _local1.Speedy;
if (357 < (_local1._y + _local1.Height)) {
_local2 = true;
_local1.NewY = 357;
}
break;
case 153 :
_local1._y = _local1._y + _local1.Speedy;
if (343 < (_local1._y + _local1.Height)) {
_local2 = true;
_local1.NewY = 343;
}
break;
case 75 :
_local1._y = _local1._y + _local1.Speedy;
if (339 >= (_local1._y + _local1.Height)) {
break;
}
_local2 = true;
_local1.NewY = 339;
}
break;
case 4 :
switch (_local1._x) {
case 137 :
_local1._y = _local1._y + _local1.Speedy;
if (432 < (_local1._y + _local1.Height)) {
_local2 = true;
_local1.NewY = 432;
}
break;
case 234 :
_local1._y = _local1._y + _local1.Speedy;
if (425 < (_local1._y + _local1.Height)) {
_local2 = true;
_local1.NewY = 425;
}
break;
case 376 :
_local1._y = _local1._y + _local1.Speedy;
if (415 >= (_local1._y + _local1.Height)) {
break;
}
_local2 = true;
_local1.NewY = 415;
}
break;
case 3 :
switch (_local1._x) {
case 200 :
_local1._y = _local1._y + _local1.Speedy;
if (502 < (_local1._y + _local1.Height)) {
_local2 = true;
_local1.NewY = 502;
}
break;
case 73 :
_local1._y = _local1._y + _local1.Speedy;
if (492 >= (_local1._y + _local1.Height)) {
break;
}
_local2 = true;
_local1.NewY = 492;
}
break;
case 2 :
switch (_local1._x) {
case 375 :
_local1._y = _local1._y + _local1.Speedy;
if (569 < (_local1._y + _local1.Height)) {
_local2 = true;
_local1.NewY = 569;
}
break;
case 169 :
_local1._y = _local1._y + _local1.Speedy;
if (581 >= (_local1._y + _local1.Height)) {
break;
}
_local2 = true;
_local1.NewY = 581;
}
}
_local1.NewY = _local1.NewY - _local1.Height;
if (_local2 == true) {
_local1.Action = 0;
_local1.gotoandstop(3);
_local1._y = _local1.NewY;
_local1.Level = _local1.Level - 1;
_local1.XDirection = _local1.XDirection * -1;
}
};
Barrel.prototype.CheckDestroyBarrel = function () {
var _local1 = this;
if (_local1.Level == 1) {
if (_local1._x < 12) {
_local1.Destroy();
}
}
};
Barrel.prototype.UpdateFrame = function () {
var _local1 = this;
switch (_local1.Action) {
case 0 :
_local1.CurrentDelay = _local1.CurrentDelay + 1;
if (_local1.DelayRate < _local1.CurrentDelay) {
_local1.CurrentDelay = 0;
_local1.CurrentFrame = _local1.CurrentFrame + 1;
}
if (6 < _local1.CurrentFrame) {
_local1.CurrentFrame = 3;
}
return(undefined);
case 1 :
_local1.CurrentDelay = _local1.CurrentDelay + 1;
if (_local1.DelayRate < _local1.CurrentDelay) {
_local1.CurrentDelay = 0;
_local1.CurrentFrame = _local1.CurrentFrame + 1;
}
if (2 < _local1.CurrentFrame) {
_local1.CurrentFrame = 1;
}
return(undefined);
}
};
Level1.prototype = new MovieClip();
Object.registerClass("Level1", Level1);
Level1.prototype.Destroy = function () {
var _local1 = _root;
Level1Kong.Destroy();
Level1Mario.Destroy();
Level1Princess.Destroy();
if (MarioLives != 0) {
_local1.attachMovie("StartScreen", "StartScreen0", 1);
} else {
gname = "luig";
gscore = _local1.CurrentScore;
getURL ("index.php?act=Arcade&do=newscore", "_self", "POST");
if (_local1.HighScore < _local1.CurrentScore) {
_local1.HighScore = _local1.CurrentScore;
}
_local1.attachMovie("MainMenu", "MainMenu0", 0);
}
if (_local1.GameBGSoundPlaying == true) {
_local1.GameBGSound.stop();
}
this.removemovieclip();
};
Level1.prototype.onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
_local1.varCurrentScore = _local1.CurrentScore;
if (Level1Mario.Dead == false) {
_local2.TimerDecreaseDelay = _local2.TimerDecreaseDelay + 1;
if (20 < _local2.TimerDecreaseDelay) {
_local1.CurrentTimer = _local1.CurrentTimer - 100;
_local1.varTime = _local1.CurrentTimer;
_local2.TimerDecreaseDelay = 0;
}
if (1000 >= _local1.CurrentTimer) {
_local2.TimerBlink = _local2.TimerBlink + 1;
if (5 < _local2.TimerBlink) {
_local2.TimerBlink = 0;
if (m_VarTime._visible != true) {
m_VarTime._visible = true;
} else {
m_VarTime._visible = false;
}
}
}
if (0 >= _local1.CurrentTimer) {
_local1.GameBGSound.stop();
_local1.GameBGSoundPlaying = false;
_local1.DeathSound.start();
Level1Mario.Dead = true;
Level1Mario.Action = -11;
Level1Kong.Action = 2;
}
}
};
StartScreen.prototype = new MovieClip();
Object.registerClass("StartScreen", StartScreen);
StartScreen.prototype.Destroy = function () {
this.removemovieclip();
};
StartScreen.prototype.onEnterFrame = function () {
var _local1 = this;
_local1.DelayCount = _local1.DelayCount + 1;
if (35 < _local1.DelayCount) {
_root.attachMovie("Level1", "Level10", 1);
_local1.Destroy();
}
};
IntroScreen.prototype = new MovieClip();
Object.registerClass("IntroScreen", IntroScreen);
IntroScreen.prototype.Destroy = function () {
this.removemovieclip();
};
IntroScreen.prototype.onEnterFrame = function () {
if (IntroKong0._y < 168) {
IntroKong0.removemovieclip();
_root.attachMovie("StartScreen", "StartScreen0", 1);
this.Destroy();
}
};
MainMenu.prototype.Destroy = function () {
_root.attachMovie("IntroScreen", "IntroScreen0", 1);
this.removemovieclip();
};
MainMenu.prototype.onEnterFrame = function () {
if (Key.isDown(32)) {
this.Destroy();
}
};
Symbol 7 MovieClip [Mario] Frame 1
function SetFrame() {
switch (MarioAction) {
case -2 :
MarioCurrentFrame = 3;
return;
case -1 :
MarioCurrentFrame = 1;
return;
case 0 :
if ((MarioCurrentFrame < 1) || (MarioCurrentFrame > 2)) {
MarioCurrentFrame = 1;
DelayRate = 1;
} else {
CurrentDelay = CurrentDelay + 1;
if (CurrentDelay > DelayRate) {
CurrentDelay = 0;
MarioCurrentFrame = MarioCurrentFrame + 1;
}
if (MarioCurrentFrame > 2) {
MarioCurrentFrame = 1;
}
}
return;
case 1 :
if ((MarioCurrentFrame > 4) || (MarioCurrentFrame < 3)) {
MarioCurrentFrame = 3;
DelayRate = 1;
} else {
CurrentDelay = CurrentDelay + 1;
if (CurrentDelay > DelayRate) {
CurrentDelay = 0;
MarioCurrentFrame = MarioCurrentFrame + 1;
}
if (MarioCurrentFrame > 4) {
MarioCurrentFrame = 3;
}
}
return;
case 2 :
MarioCurrentFrame = 5;
return;
case 3 :
MarioCurrentFrame = 6;
}
}
stop();
Symbol 33 MovieClip [Princess] Frame 1
stop();
Symbol 45 Button
on (release) {
_root.MainMenu0.Destroy();
}
Symbol 87 MovieClip Frame 1
nCharacterCount = 1;
nFrameCount = 3;
nInterval = 5;
bDirection = 1;
function fun() {
i = 1;
while (nCharacterCount >= i) {
if (nIsRun[i - 1] < 0) {
this["c" + i]._yscale = Math.sin(nStateArray[i - 1]) * 100;
nStateArray[i - 1] = nStateArray[i - 1] + (nDirection ? (nSpeedArray[i - 1]) : (nSpeedArray[i - 1] * -1));
if (!bSignArray[i - 1]) {
nSpeedArray[i - 1] = nSpeedArray[i - 1] - 0.01;
if (nSpeedArray[i - 1] < 0) {
bSignArray[i - 1] = true;
}
} else {
nSpeedArray[i - 1] = nSpeedArray[i - 1] + 0.02;
if (1 < nSpeedArray[i - 1]) {
bSignArray[i - 1] = false;
}
}
}
nIsRun[i - 1]--;
i++;
}
i = 1;
while (nCharacterCount >= i) {
if (this["c" + i]._alpha >= 0) {
return(undefined);
}
i++;
}
i = 1;
while (nCharacterCount >= i) {
this["c" + i]._x = nCentreXArray[i - 1];
this["c" + i]._y = nCentreYArray[i - 1];
gotoAndPlay (1);
i++;
}
}
function again() {
gotoAndPlay (2);
}
nIsRun = new Array(nCharacterCount);
nRotateArray = new Array(nCharacterCount);
nRadiusArray = new Array(nCharacterCount);
nStateArray = new Array(nCharacterCount);
nSpeedArray = new Array(nCharacterCount);
bSignArray = new Array(nCharacterCount);
i = 1;
while (nCharacterCount >= i) {
this["c" + i]._alpha = 100;
this["c" + i]._rotation = 0;
this["c" + i]._xscale = 100;
this["c" + i]._yscale = 100;
nStateArray[i - 1] = 90;
nSpeedArray[i - 1] = 0.1;
bSignArray[i - 1] = true;
i++;
}
i = 1;
while ((nCharacterCount + 1) >= i) {
if (!bDirection) {
if (i != 1) {
nIsRun[nCharacterCount - i] = nIsRun[nCharacterCount - (i - 1)];
nIsRun[nCharacterCount - i] = nIsRun[nCharacterCount - i] + nInterval;
} else {
nIsRun[nCharacterCount - 1] = 0;
}
} else if (i != 1) {
nIsRun[i - 1] = nIsRun[i - 2];
nIsRun[i - 1] = nIsRun[i - 1] + nInterval;
} else {
nIsRun[0] = 0;
}
i++;
}
fun();
Symbol 87 MovieClip Frame 2
fun();
Symbol 87 MovieClip Frame 3
again();