Frame 1
var fenceID;
var jumping;
var canClearJump;
var levelFenceNum;
var levelOver;
var score = 0;
var levelNum = 0;
var jumpOver = 15;
var missFence = 12;
var hitSide = 9;
var hitBars = 3;
var level1 = new Object();
level1.levelID = 1;
level1.speed = 6;
level1.fenceTimeInterval = 1300;
level1.fenceRandomTimeInterval = 800;
level1.horseJumpSpeed = "slow";
level1.numOfFences = 15;
level1.score = 0;
level1.scoreRequired = (level1.numOfFences * jumpOver) - 48;
level1.clearRound = level1.numOfFences * jumpOver;
level1.endMessage = "oh dear - looks like you need lots more practice!";
var level2 = new Object();
level2.levelID = 2;
level2.speed = 7;
level2.fenceTimeInterval = 1200;
level2.fenceRandomTimeInterval = 800;
level2.horseJumpSpeed = "slow";
level2.numOfFences = 17;
level2.score = 0;
level2.scoreRequired = (level2.numOfFences * jumpOver) - 48;
level2.clearRound = level2.numOfFences * jumpOver;
level2.endMessage = "You'll have to be more careful if you want to be a pro!";
var level3 = new Object();
level3.levelID = 3;
level3.speed = 8;
level3.fenceTimeInterval = 1000;
level3.fenceRandomTimeInterval = 700;
level3.horseJumpSpeed = "slow";
level3.numOfFences = 19;
level3.score = 0;
level3.scoreRequired = (level3.numOfFences * jumpOver) - 48;
level3.clearRound = level3.numOfFences * jumpOver;
level3.endMessage = "Watch those poles - carelessness costs points!";
var level4 = new Object();
level4.levelID = 4;
level4.speed = 9;
level4.fenceTimeInterval = 700;
level4.fenceRandomTimeInterval = 800;
level4.horseJumpSpeed = "medium";
level4.numOfFences = 21;
level4.score = 0;
level4.scoreRequired = (level4.numOfFences * jumpOver) - 48;
level4.clearRound = level4.numOfFences * jumpOver;
level4.endMessage = "It takes skill and timing to get a clear round at this level!";
var level5 = new Object();
level5.levelID = 5;
level5.speed = 10;
level5.fenceTimeInterval = 700;
level5.fenceRandomTimeInterval = 650;
level5.horseJumpSpeed = "medium";
level5.numOfFences = 23;
level5.score = 0;
level5.scoreRequired = (level5.numOfFences * jumpOver) - 48;
level5.clearRound = level5.numOfFences * jumpOver;
level5.endMessage = "Not bad - put in some more practice and you could be a winner!";
var level6 = new Object();
level6.levelID = 6;
level6.speed = 11;
level6.fenceTimeInterval = 700;
level6.fenceRandomTimeInterval = 600;
level6.horseJumpSpeed = "medium";
level6.numOfFences = 25;
level6.score = 0;
level6.scoreRequired = (level6.numOfFences * jumpOver) - 48;
level6.clearRound = level6.numOfFences * jumpOver;
level6.endMessage = "Well done - you're well on your way to jumping like Ellen Whitaker!";
var level7 = new Object();
level7.levelID = 7;
level7.speed = 12;
level7.fenceTimeInterval = 600;
level7.fenceRandomTimeInterval = 550;
level7.horseJumpSpeed = "fast";
level7.numOfFences = 27;
level7.score = 0;
level7.scoreRequired = (level7.numOfFences * jumpOver) - 48;
level7.clearRound = level7.numOfFences * jumpOver;
level7.endMessage = "Good work - just focus on keeping those poles up!";
var level8 = new Object();
level8.levelID = 8;
level8.speed = 14;
level8.fenceTimeInterval = 500;
level8.fenceRandomTimeInterval = 550;
level8.horseJumpSpeed = "fast";
level8.numOfFences = 29;
level8.score = 0;
level8.scoreRequired = (level8.numOfFences * jumpOver) - 48;
level8.clearRound = level8.numOfFences * jumpOver;
level8.endMessage = "Congratulations - you're almost at Grand Prix level!";
var level9 = new Object();
level9.levelID = 9;
level9.speed = 15;
level9.fenceTimeInterval = 400;
level9.fenceRandomTimeInterval = 500;
level9.horseJumpSpeed = "fast";
level9.numOfFences = 31;
level9.score = 0;
level9.scoreRequired = (level9.numOfFences * jumpOver) - 48;
level9.clearRound = level9.numOfFences * jumpOver;
level9.endMessage = "Keep jumping like that and you'll make the National team!";
var levels = new Array(level1, level2, level3, level4, level5, level6, level7, level8, level9);
Frame 2
function initialise() {
_root.attachMovie("introScreen", "introScreen", 3);
_root.introScreen._x = 250;
_root.introScreen._y = 200;
_root.attachMovie("levelIntro", "levelIntro", 4);
_root.attachMovie("levelResults", "levelResults", 5);
_root.attachMovie("instructions", "instructions", 6);
_root.instructions._x = 24;
_root.instructions._y = -400;
_root.levelResults.nextBtn.onRelease = function () {
_root.startLevel();
};
_root.levelResults.nextBtn.onRollOver = function () {
this.gotoAndStop(2);
};
_root.levelResults.nextBtn.onRollOut = function () {
this.gotoAndStop(1);
};
_root.levelResults.seeBtn.onRelease = function () {
_root.finishGame();
};
_root.levelResults.seeBtn.onRollOver = function () {
this.gotoAndStop(2);
};
_root.levelResults.seeBtn.onRollOut = function () {
this.gotoAndStop(1);
};
_root.levelResults.nextBtn.enabled = false;
_root.levelResults.seeBtn.enabled = false;
_root.levelResults.nextBtn._visible = false;
_root.levelResults.seeBtn._visible = false;
_root.levelIntro._visible = false;
_root.levelResults._visible = false;
}
function reset() {
_root.levelResults.nextBtn.enabled = false;
_root.levelResults.seeBtn.enabled = false;
_root.levelResults.nextBtn._visible = false;
_root.levelResults.seeBtn._visible = false;
_root.levelIntro._visible = false;
_root.levelResults._visible = false;
_root.levelNum = 0;
_root.score = 0;
_root.startLevel();
}
function startLevel() {
trace("starting level " + levels[levelNum].levelID);
fenceID = 1;
jumping = false;
canClearJump = false;
levelFenceNum = 0;
levelOver = false;
createGraphics();
levels[levelNum].score = 0;
updateDisplay(levels[levelNum].score);
}
function levelEnd() {
trace("Level Score " + levels[levelNum].score);
_root.levelResults._visible = true;
_root.levelResults.nextBtn.enabled = false;
_root.levelResults.seeBtn.enabled = false;
_root.passed = false;
if (levels[levelNum].score >= levels[levelNum].scoreRequired) {
trace("level passed");
trace((("Clear Round Score = " + levels[levelNum].clearRound) + ", Score = ") + levels[levelNum].score);
trace("level " + levelNum);
if (levelNum == 8) {
_root.levelResults.gotoAndPlay("doneAllLevels");
_root.passed = false;
if (levels[levelNum].score == levels[levelNum].clearRound) {
_root.score = _root.score + 50;
}
_root.score = _root.score + levels[levelNum].score;
_root.levelResults.seeBtn._visible = true;
_root.levelResults.nextBtn._visible = false;
} else {
if (levels[levelNum].score == levels[levelNum].clearRound) {
trace("Got a Clear Round");
_root.score = _root.score + 50;
_root.levelResults.gotoAndPlay("superSuccess");
} else {
_root.levelResults.gotoAndPlay("success");
}
_root.levelResults.nextBtn._visible = true;
_root.levelResults.seeBtn._visible = false;
_root.passed = true;
_root.score = _root.score + levels[levelNum].score;
levelNum++;
}
} else {
trace("level failed");
_root.levelResults.gotoAndPlay("failure");
_root.levelResults.seeBtn._visible = true;
_root.levelResults.nextBtn._visible = false;
_root.score = _root.score + levels[levelNum].score;
}
resultsFade = new mx.transitions.Tween(_root.levelResults, "_alpha", mx.transitions.easing.None.easeIn, 0, 100, 20, false);
resultsFade.onMotionFinished = function () {
removeMovieClip(_root.gameScreen);
if (_root.passed == true) {
_root.pauseBtn = setInterval(enableBtn, 200);
} else {
_root.levelResults.seeBtn.enabled = true;
}
};
}
function enableBtn() {
trace("enable button");
clearInterval(_root.pauseBtn);
_root.levelResults.nextBtn.enabled = true;
}
function finishGame() {
_root.introScreen.gotoAndPlay("finalScore");
_root.introScreen._visible = true;
_root.introScreen.finalScoreOutline = _root.score;
_root.introScreen.finalScoreFill = _root.score;
resultsFade = new mx.transitions.Tween(_root.levelResults, "_alpha", mx.transitions.easing.None.easeIn, 100, 10, 20, false);
resultsFade.onMotionFinished = function () {
_root.levelResults._visible = false;
};
}
function createGraphics() {
_root.levelIntro.levelFill = levelNum + 1;
_root.levelIntro.levelOutline = levelNum + 1;
_root.createEmptyMovieClip("gameScreen", 1);
_root.gameScreen.attachMovie("track", "course", 1);
_root.gameScreen.attachMovie("pony", "pony", 10);
_root.gameScreen.attachMovie("scorer", "scorer", 11);
_root.gameScreen.pony._x = 225;
_root.gameScreen.pony._y = 240;
_root.gameScreen.course._x = 0;
_root.gameScreen.course._y = -1600;
_root.gameScreen.scorer._x = 14;
_root.gameScreen.scorer._y = 16;
_root.gameScreen.pony.onEnterFrame = function () {
if (Key.isDown(39)) {
if (this._x < 350) {
this._x = this._x + 7;
}
}
if (Key.isDown(37)) {
if (this._x > 100) {
this._x = this._x - 7;
}
}
if (Key.isDown(32)) {
if (_root.jumping == false) {
this.gotoAndPlay(levels[levelNum].horseJumpSpeed);
_root.jumping = true;
}
}
};
_root.levelIntro._visible = true;
coverMove = new mx.transitions.Tween(levelIntro, "_alpha", mx.transitions.easing.None.easeIn, 0, 100, 10, false);
coverMove.onMotionFinished = function () {
if (levelNum == 0) {
_root.introScreen._visible = false;
} else {
_root.levelResults._visible = false;
}
_root.pauseInt = setInterval(go, 1000);
};
}
function go() {
clearInterval(_root.pauseInt);
coverFade = new mx.transitions.Tween(levelIntro, "_alpha", mx.transitions.easing.None.easeIn, 100, 0, 10, false);
coverFade.onMotionFinished = function () {
_root.levelIntro._visible = false;
};
_root.moveCourse();
_root.fenceManager();
}
function moveCourse() {
var _local2 = levels[levelNum].speed;
_root.courseMove = new mx.transitions.Tween(gameScreen.course, "_y", mx.transitions.easing.None.easeIn, -1600, -5, 1600 / _local2, false);
_root.courseMove.onMotionFinished = function () {
trace("check2");
delete _root.courseMove;
if (_root.levelOver == false) {
moveCourse();
}
};
}
function fenceManager() {
clearInterval(addFenceInt);
var _local1 = random(levels[levelNum].fenceRandomTimeInterval) + levels[levelNum].fenceTimeInterval;
if (levelFenceNum == 0) {
addFenceInt = setInterval(addStartFinish, _local1, "start");
} else if ((levelFenceNum > 0) && (levelFenceNum < (levels[levelNum].numOfFences + 1))) {
addFenceInt = setInterval(addFence, _local1);
} else if (levelFenceNum == (levels[levelNum].numOfFences + 1)) {
addFenceInt = setInterval(addStartFinish, _local1, "finish");
}
levelFenceNum++;
}
function addStartFinish(type) {
thisFence = _root.gameScreen.attachMovie("startFinish", "fence" + fenceID, fenceID + 1);
thisFence._x = 97;
thisFence._y = -5;
moveFence(thisFence, fenceID, false, type);
fenceID++;
if (fenceID > 3) {
fenceID = 1;
}
fenceManager();
}
function addFence() {
var _local2 = random(5) + 1;
thisFence = _root.gameScreen.attachMovie("fence" + _local2, "fence" + fenceID, fenceID + 1);
thisFence.id = levelFenceNum - 1;
fencex = random(148);
thisFence._x = 85 + fencex;
thisFence._y = -5;
moveFence(thisFence, fenceID, true);
fenceID++;
if (fenceID > 3) {
fenceID = 1;
}
fenceManager();
}
function moveFence(thisFence, fenceID, isThisFence, startOrFinish) {
var speed = levels[levelNum].speed;
_root["fenceMove" + fenceID] = new mx.transitions.Tween(thisFence, "_y", mx.transitions.easing.None.easeIn, -6, 490, 490 / speed, false);
thisFence.onMotionFinished = function () {
if (startOrFinish != "finish") {
removeMovieClip(this);
}
};
thisFence.speeder = speed;
thisFence.onMotionChanged = function () {
if ((this._y > 247) && (this._y < 254)) {
if (isThisFence == true) {
_root.fenceClearCheck(this._x, 21, 120, this);
} else if (startOrFinish == "finish") {
_root.levelOver = true;
_root.courseMove.stop();
_root["fenceMove" + fenceID].stop();
delete _root.courseMove;
delete _root["fenceMove" + fenceID];
ponyMove = new mx.transitions.Tween(_root.gameScreen.pony, "_y", mx.transitions.easing.None.easeOut, _root.gameScreen.pony._y, _root.gameScreen.pony._y - 360, 360 / speed, false);
ponyMove.onMotionFinished = function () {
trace("check");
levelEnd();
};
}
}
};
_root["fenceMove" + fenceID].addListener(thisFence);
}
function fenceClearCheck(fenceXpos, postsWidth, polesWidth, fence) {
ponyXpos = _root.gameScreen.pony._x;
ponyWidth = 37;
var _local5 = false;
if ((ponyXpos > (fenceXpos + postsWidth)) && ((ponyXpos + ponyWidth) < ((fenceXpos + postsWidth) + polesWidth))) {
_local5 = true;
}
if (_local5 == true) {
if (_root.canClearJump == true) {
levels[levelNum].score = levels[levelNum].score + _root.jumpOver;
updateDisplay(levels[levelNum].score);
trace(("Fence " + fence.id) + " Jumped");
trace(levels[levelNum].score);
} else {
levels[levelNum].score = levels[levelNum].score - _root.hitBars;
updateDisplay(levels[levelNum].score);
fence.gotoAndPlay("knock");
trace(("Fence " + fence.id) + " Poles knocked off");
trace(levels[levelNum].score);
}
} else if ((ponyXpos > (fenceXpos - 30)) && ((ponyXpos + ponyWidth) < ((fenceXpos + postsWidth) + polesWidth))) {
levels[levelNum].score = levels[levelNum].score - _root.hitSide;
updateDisplay(levels[levelNum].score);
fence.gotoAndPlay("left");
trace(("Fence " + fence.id) + " Knocked left side");
trace(levels[levelNum].score);
} else if ((ponyXpos > (fenceXpos + postsWidth)) && ((ponyXpos + ponyWidth) < (((fenceXpos + postsWidth) + polesWidth) + 40))) {
levels[levelNum].score = levels[levelNum].score - _root.hitSide;
updateDisplay(levels[levelNum].score);
fence.gotoAndPlay("right");
trace(("Fence " + fence.id) + " Knocked right side");
trace(levels[levelNum].score);
} else {
levels[levelNum].score = levels[levelNum].score - _root.missFence;
updateDisplay(levels[levelNum].score);
trace(("Fence " + fence.id) + " Not on line");
trace(levels[levelNum].score);
}
}
function updateDisplay(scored) {
_root.gameScreen.scorer.scoreTxt.scoreOutlineTxt = scored;
_root.gameScreen.scorer.scoreTxt.scoreFillTxt = scored;
}
initialise();
stop();
Frame 10
jjText._alpha = 100;
jjText._xscale = 200;
jjText._yscale = 200;
var jjTextTween1 = (new mx.transitions.Tween(jjText, "_xscale", mx.transitions.easing.Bounce.easeOut, jjText._xscale, 100, 20, false));
var jjTextTween2 = (new mx.transitions.Tween(jjText, "_yscale", mx.transitions.easing.Bounce.easeOut, jjText._yscale, 100, 20, false));
var jjTextTween3 = (new mx.transitions.Tween(jjText, "_alpha", mx.transitions.easing.None.easeOut, jjText._alpha, 100, 20, false));
Frame 29
jumpText._alpha = 100;
jumpText._xscale = 200;
jumpText._yscale = 200;
var jumpTextTween1 = (new mx.transitions.Tween(jumpText, "_xscale", mx.transitions.easing.Bounce.easeOut, jumpText._xscale, 100, 20, false));
var jumpTextTween2 = (new mx.transitions.Tween(jumpText, "_yscale", mx.transitions.easing.Bounce.easeOut, jumpText._yscale, 100, 20, false));
var jumpTextTween3 = (new mx.transitions.Tween(jumpText, "_alpha", mx.transitions.easing.None.easeOut, jumpText._alpha, 100, 20, false));
Frame 47
offText._alpha = 100;
offText._xscale = 200;
offText._yscale = 200;
var offTextTween1 = (new mx.transitions.Tween(offText, "_xscale", mx.transitions.easing.Bounce.easeOut, offText._xscale, 100, 20, false));
var offTextTween2 = (new mx.transitions.Tween(offText, "_yscale", mx.transitions.easing.Bounce.easeOut, offText._yscale, 100, 20, false));
var offTextTween3 = (new mx.transitions.Tween(offText, "_alpha", mx.transitions.easing.None.easeOut, offText._alpha, 100, 20, false));
Frame 53
stop();
Frame 54
stop();
Symbol 84 MovieClip [fence5] Frame 1
stop();
Symbol 84 MovieClip [fence5] Frame 7
play();
shadow.gotoAndStop(2);
Symbol 84 MovieClip [fence5] Frame 29
stop();
Symbol 84 MovieClip [fence5] Frame 32
play();
Symbol 84 MovieClip [fence5] Frame 38
shadow.gotoAndStop(2);
Symbol 84 MovieClip [fence5] Frame 59
stop();
Symbol 84 MovieClip [fence5] Frame 62
play();
Symbol 84 MovieClip [fence5] Frame 68
shadow.gotoAndStop(2);
Symbol 84 MovieClip [fence5] Frame 89
stop();
Symbol 96 MovieClip [fence4] Frame 1
stop();
Symbol 96 MovieClip [fence4] Frame 7
play();
shadow.gotoAndStop(2);
Symbol 96 MovieClip [fence4] Frame 29
stop();
Symbol 96 MovieClip [fence4] Frame 32
play();
Symbol 96 MovieClip [fence4] Frame 38
shadow.gotoAndStop(2);
Symbol 96 MovieClip [fence4] Frame 59
stop();
Symbol 96 MovieClip [fence4] Frame 62
play();
Symbol 96 MovieClip [fence4] Frame 68
shadow.gotoAndStop(2);
Symbol 96 MovieClip [fence4] Frame 89
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 2
stop();
Symbol 108 MovieClip [fence3] Frame 1
stop();
Symbol 108 MovieClip [fence3] Frame 7
play();
shadow.gotoAndStop(2);
Symbol 108 MovieClip [fence3] Frame 29
stop();
Symbol 108 MovieClip [fence3] Frame 32
play();
Symbol 108 MovieClip [fence3] Frame 38
shadow.gotoAndStop(2);
Symbol 108 MovieClip [fence3] Frame 59
stop();
Symbol 108 MovieClip [fence3] Frame 62
play();
Symbol 108 MovieClip [fence3] Frame 68
shadow.gotoAndStop(2);
Symbol 108 MovieClip [fence3] Frame 89
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 2
stop();
Symbol 119 MovieClip [fence2] Frame 1
stop();
Symbol 119 MovieClip [fence2] Frame 7
play();
shadow.gotoAndStop(2);
Symbol 119 MovieClip [fence2] Frame 29
stop();
Symbol 119 MovieClip [fence2] Frame 32
play();
Symbol 119 MovieClip [fence2] Frame 38
shadow.gotoAndStop(2);
Symbol 119 MovieClip [fence2] Frame 59
stop();
Symbol 119 MovieClip [fence2] Frame 62
play();
Symbol 119 MovieClip [fence2] Frame 68
shadow.gotoAndStop(2);
Symbol 119 MovieClip [fence2] Frame 89
stop();
Symbol 145 MovieClip [pony] Frame 1
stop();
Symbol 145 MovieClip [pony] Frame 2
ponyer.stop();
play();
Symbol 145 MovieClip [pony] Frame 7
_root.canClearJump = true;
Symbol 145 MovieClip [pony] Frame 18
_root.canClearJump = false;
Symbol 145 MovieClip [pony] Frame 25
ponyer.play();
_root.jumping = false;
stop();
Symbol 145 MovieClip [pony] Frame 26
ponyer.stop();
play();
Symbol 145 MovieClip [pony] Frame 30
_root.canClearJump = true;
Symbol 145 MovieClip [pony] Frame 37
_root.canClearJump = false;
Symbol 145 MovieClip [pony] Frame 42
ponyer.play();
_root.jumping = false;
stop();
Symbol 145 MovieClip [pony] Frame 43
ponyer.stop();
play();
Symbol 145 MovieClip [pony] Frame 46
_root.canClearJump = true;
Symbol 145 MovieClip [pony] Frame 51
_root.canClearJump = false;
Symbol 145 MovieClip [pony] Frame 55
ponyer.play();
_root.jumping = false;
stop();
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 2
stop();
Symbol 160 MovieClip [fence1] Frame 1
stop();
Symbol 160 MovieClip [fence1] Frame 7
play();
shadow.gotoAndStop(2);
Symbol 160 MovieClip [fence1] Frame 29
stop();
Symbol 160 MovieClip [fence1] Frame 32
play();
Symbol 160 MovieClip [fence1] Frame 38
shadow.gotoAndStop(2);
Symbol 160 MovieClip [fence1] Frame 59
stop();
Symbol 160 MovieClip [fence1] Frame 62
play();
Symbol 160 MovieClip [fence1] Frame 68
shadow.gotoAndStop(2);
Symbol 160 MovieClip [fence1] Frame 89
stop();
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 2
stop();
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 2
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 2
stop();
Symbol 217 MovieClip Frame 3
stop();
Symbol 217 MovieClip Frame 4
stop();
Symbol 217 MovieClip Frame 5
stop();
Symbol 217 MovieClip Frame 6
stop();
Symbol 217 MovieClip Frame 7
stop();
Symbol 217 MovieClip Frame 8
stop();
Symbol 217 MovieClip Frame 9
stop();
Symbol 280 MovieClip [levelResults] Frame 1
trace(_root.levelNum);
rossette.gotoAndStop(_root.levelNum);
Symbol 280 MovieClip [levelResults] Frame 7
stop();
Symbol 280 MovieClip [levelResults] Frame 9
trace(_root.levelNum);
rossette.gotoAndStop(_root.levelNum);
Symbol 280 MovieClip [levelResults] Frame 17
stop();
Symbol 280 MovieClip [levelResults] Frame 21
play();
Symbol 280 MovieClip [levelResults] Frame 24
stop();
Symbol 280 MovieClip [levelResults] Frame 30
trace(_root.levelNum);
rossette.gotoAndStop(_root.levelNum + 1);
play();
Symbol 280 MovieClip [levelResults] Frame 34
stop();
Symbol 324 Button
on (release) {
gotoAndPlay ("startScreen");
}
Symbol 345 Button
on (release) {
gotoAndPlay ("end");
}
Symbol 393 Button
on (release) {
gotoAndPlay ("endIntro");
}
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 2
stop();
Symbol 412 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 2
stop();
Symbol 412 MovieClip Frame 3
stop();
Symbol 412 MovieClip Frame 4
stop();
Symbol 419 MovieClip Frame 1
stop();
Symbol 419 MovieClip Frame 2
stop();
Symbol 419 MovieClip Frame 3
stop();
Symbol 419 MovieClip Frame 4
stop();
Symbol 419 MovieClip Frame 5
stop();
Symbol 419 MovieClip Frame 6
stop();
Symbol 419 MovieClip Frame 7
stop();
Symbol 419 MovieClip Frame 8
stop();
Symbol 419 MovieClip Frame 9
stop();
Symbol 419 MovieClip Frame 10
stop();
Symbol 420 MovieClip [introScreen] Frame 1
play();
Symbol 420 MovieClip [introScreen] Frame 595
jjText._alpha = 100;
jjText._xscale = 200;
jjText._yscale = 200;
var jjTextTween1 = (new mx.transitions.Tween(jjText, "_xscale", mx.transitions.easing.Bounce.easeOut, jjText._xscale, 100, 20, false));
var jjTextTween2 = (new mx.transitions.Tween(jjText, "_yscale", mx.transitions.easing.Bounce.easeOut, jjText._yscale, 100, 20, false));
var jjTextTween3 = (new mx.transitions.Tween(jjText, "_alpha", mx.transitions.easing.None.easeOut, jjText._alpha, 100, 20, false));
Symbol 420 MovieClip [introScreen] Frame 614
jumpText._alpha = 100;
jumpText._xscale = 200;
jumpText._yscale = 200;
var jumpTextTween1 = (new mx.transitions.Tween(jumpText, "_xscale", mx.transitions.easing.Bounce.easeOut, jumpText._xscale, 100, 20, false));
var jumpTextTween2 = (new mx.transitions.Tween(jumpText, "_yscale", mx.transitions.easing.Bounce.easeOut, jumpText._yscale, 100, 20, false));
var jumpTextTween3 = (new mx.transitions.Tween(jumpText, "_alpha", mx.transitions.easing.None.easeOut, jumpText._alpha, 100, 20, false));
Symbol 420 MovieClip [introScreen] Frame 632
offText._alpha = 100;
offText._xscale = 200;
offText._yscale = 200;
var offTextTween1 = (new mx.transitions.Tween(offText, "_xscale", mx.transitions.easing.Bounce.easeOut, offText._xscale, 100, 20, false));
var offTextTween2 = (new mx.transitions.Tween(offText, "_yscale", mx.transitions.easing.Bounce.easeOut, offText._yscale, 100, 20, false));
var offTextTween3 = (new mx.transitions.Tween(offText, "_alpha", mx.transitions.easing.None.easeOut, offText._alpha, 100, 20, false));
Symbol 420 MovieClip [introScreen] Frame 638
playBtn.onRelease = function () {
_root.levelNum = 0;
_root.startLevel();
};
playBtn.onRollOver = function () {
this.gotoAndStop(2);
};
playBtn.onRollOut = function () {
this.gotoAndStop(1);
};
instrucBtn.onRelease = function () {
_root.introScreen.instrucBtn.gotoAndStop(1);
var _local2 = new mx.transitions.Tween(_root.instructions, "_y", mx.transitions.easing.Bounce.easeOut, _root.instructions._y, -8, 20, false);
_root.introScreen.instrucBtn.enabled = false;
_root.introScreen.playBtn.enabled = false;
};
instrucBtn.onRollOver = function () {
this.gotoAndStop(2);
};
instrucBtn.onRollOut = function () {
this.gotoAndStop(1);
};
Symbol 420 MovieClip [introScreen] Frame 642
stop();
Symbol 420 MovieClip [introScreen] Frame 644
play();
playBtn.gotoAndStop(3);
messageVar = _root.levels[_root.levelNum].endMessage;
finalRossettes.gotoAndPlay(_root.levelNum + 1);
if (_root.levelNum == 8) {
finalRossettes.gotoAndPlay(_root.levelNum + 2);
messageVar = "Top marks! You\u2019re a winner!";
}
instrucBtn.onRelease = function () {
_root.introScreen.instrucBtn.gotoAndStop(1);
var _local2 = new mx.transitions.Tween(_root.instructions, "_y", mx.transitions.easing.Bounce.easeOut, _root.instructions._y, -8, 20, false);
_root.introScreen.instrucBtn.enabled = false;
_root.introScreen.playBtn.enabled = false;
};
instrucBtn.onRollOver = function () {
this.gotoAndStop(2);
};
instrucBtn.onRollOut = function () {
this.gotoAndStop(1);
};
playBtn.onRelease = function () {
_root.reset();
};
playBtn.onRollOver = function () {
this.gotoAndStop(4);
};
playBtn.onRollOut = function () {
this.gotoAndStop(3);
};
Symbol 420 MovieClip [introScreen] Frame 651
stop();
Symbol 430 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 2
stop();
Symbol 431 MovieClip [instructions] Frame 1
backBtn.onRelease = function () {
var _local2 = new mx.transitions.Tween(_root.instructions, "_y", mx.transitions.easing.Strong.easeOut, _root.instructions._y, -400, 10, false);
_root.introScreen.instrucBtn.enabled = true;
_root.introScreen.playBtn.enabled = true;
};
backBtn.onRollOver = function () {
backBtn.gotoAndStop(2);
};
backBtn.onRollOut = function () {
backBtn.gotoAndStop(1);
};
Symbol 433 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 434 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 435 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 436 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 437 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 438 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";
}