Frame 15
stop();
Instance of Symbol 498 MovieClip "btn_Sound" in Frame 15
onClipEvent (load) {
if (_root.allControl.soundOn) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (press) {
if (_root.allControl.soundOn) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
_root.allControl.soundOn = !_root.allControl.soundOn;
}
Frame 20
stop();
Instance of Symbol 552 MovieClip "m_greeting" in Frame 20
onClipEvent (keyDown) {
if (_root.m_field.isPlaying == false) {
if (Key.getCode() == 32) {
delete _root.m_greeting.onEnterFrame;
_root.m_greeting._visible = false;
_root.m_field.isPlaying = true;
}
}
}
Instance of Symbol 558 MovieClip in Frame 20
on (press) {
if (!_root.allControl.isPauseOn()) {
_root.allControl.enablePause();
gotoAndStop (2);
} else {
_root.allControl.disablePause();
gotoAndStop (1);
}
}
Frame 25
stop();
Instance of Symbol 210 MovieClip [symScoresControl] in Frame 25
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
_root.allControl.startNextLevel();
}
}
Frame 30
stop();
Instance of Symbol 582 MovieClip "m_quest" in Frame 30
onClipEvent (load) {
this.gotoAndStop(_root.allControl.questID);
this.onEnterFrame = function () {
this.mc.m_demonstration.startAnimation();
onEnterFrame = function () {
};
};
}
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
_root.allControl.startQuest();
}
}
Frame 35
stop();
Instance of Symbol 2 MovieClip [symEmpty] in Frame 35
onClipEvent (load) {
this._parent.m_txtTotalScore.text = _root.allControl.score.toString();
}
Frame 45
stop();
Frame 55
stop();
Instance of Symbol 613 MovieClip "comHighscores" in Frame 55
//component parameters
onClipEvent (construct) {
scoreLocation = "_root.score";
gamename = "mountainbike";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Symbol 16 MovieClip [symPlatform1] Frame 1
#initclip 70
Object.registerClass("symPlatform1", CPlatform);
#endinitclip
Symbol 23 Button
on (press) {
this.gotoAndStop(this._currentframe + 1);
}
Symbol 24 Button
on (press) {
if (this._currentframe == 1) {
this.removeMovieClip();
} else {
this.gotoAndStop(this._currentframe - 1);
}
}
Symbol 48 MovieClip Frame 5
this._visible = false;
Symbol 49 MovieClip [symForwardWheel] Frame 1
#initclip 50
Object.registerClass("symForwardWheel", CWheel);
#endinitclip
stop();
Instance of Symbol 48 MovieClip "m_fallingDust" in Symbol 49 MovieClip [symForwardWheel] Frame 1
onClipEvent (load) {
this.gotoAndStop(this._totalframes);
}
Symbol 62 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 7
this._parent._parent._parent.bike.endMove();
Symbol 76 MovieClip Frame 7
this._parent._parent._parent.bike.endMove();
Symbol 77 MovieClip Frame 7
this._parent._parent._parent.bike.endMove();
Symbol 78 MovieClip Frame 7
this._parent._parent._parent.bike.endMove();
Symbol 81 MovieClip Frame 1
this.stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 90 MovieClip [symBikeBody] Frame 1
stop();
Symbol 90 MovieClip [symBikeBody] Frame 30
this._parent.respawn();
Symbol 93 MovieClip [symBackWheel] Frame 1
#initclip 51
Object.registerClass("symBackWheel", CWheel);
#endinitclip
stop();
Instance of Symbol 48 MovieClip "m_fallingDust" in Symbol 93 MovieClip [symBackWheel] Frame 1
onClipEvent (load) {
this.gotoAndStop(this._totalframes);
}
Symbol 94 MovieClip [symAllBike] Frame 1
#initclip 52
Object.registerClass("symAllBike", CAllBike);
#endinitclip
Instance of Symbol 49 MovieClip [symForwardWheel] "m_forwardWheel" in Symbol 94 MovieClip [symAllBike] Frame 1
onClipEvent (load) {
this.m_movingDust._visible = false;
}
Instance of Symbol 93 MovieClip [symBackWheel] "m_backWheel" in Symbol 94 MovieClip [symAllBike] Frame 1
onClipEvent (load) {
this.m_movingDust._visible = false;
}
Symbol 95 MovieClip [symDemonstrationAir] Frame 1
#initclip 53
Object.registerClass("symDemonstrationAir", CDemonstrationAir);
#endinitclip
Symbol 104 Button
on (press) {
this.m_demonstration.startAnimation();
}
Symbol 107 MovieClip [symDemonstrationBackflip] Frame 1
#initclip 54
Object.registerClass("symDemonstrationBackflip", CDemonstrationBackflip);
#endinitclip
Symbol 108 MovieClip [symDemonstrationFrontflip] Frame 1
#initclip 55
Object.registerClass("symDemonstrationFrontflip", CDemonstrationFrontflip);
#endinitclip
Symbol 111 MovieClip [symDemonstrationHorrotation] Frame 1
#initclip 56
Object.registerClass("symDemonstrationHorrotation", CDemonstrationHorrotation);
#endinitclip
Symbol 114 MovieClip [symDemonstrationWheelie] Frame 1
#initclip 57
Object.registerClass("symDemonstrationWheelie", CDemonstrationWheelie);
#endinitclip
Symbol 117 MovieClip [symDemonstrationNoseWheelie] Frame 1
#initclip 58
Object.registerClass("symDemonstrationNoseWheelie", CDemonstrationNoseWheelie);
#endinitclip
Symbol 120 MovieClip [symDemonstrationFakie] Frame 1
#initclip 59
Object.registerClass("symDemonstrationFakie", CDemonstrationFakie);
#endinitclip
Symbol 123 MovieClip [symDemonstrationWallride] Frame 1
#initclip 60
Object.registerClass("symDemonstrationWallride", CDemonstrationWallride);
#endinitclip
Symbol 129 MovieClip [symRailing1] Frame 1
#initclip 61
Object.registerClass("symRailing1", CRailing);
#endinitclip
Symbol 130 MovieClip [symDemonstrationDoublePegGrind] Frame 1
#initclip 62
Object.registerClass("symDemonstrationDoublePegGrind", CDemonstrationDoublePegGrind);
#endinitclip
Symbol 133 MovieClip [symDemonstrationIcepickGrind] Frame 1
#initclip 63
Object.registerClass("symDemonstrationIcepickGrind", CDemonstrationIcepickGrind);
#endinitclip
Symbol 136 MovieClip [symDemonstrationToothpickGrind] Frame 1
#initclip 64
Object.registerClass("symDemonstrationToothpickGrind", CDemonstrationToothpickGrind);
#endinitclip
Symbol 139 MovieClip [symDemonstrationAllPickGrind] Frame 1
#initclip 65
Object.registerClass("symDemonstrationAllPickGrind", CDemonstrationAllPickGrind);
#endinitclip
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 2
stop();
Symbol 140 MovieClip Frame 3
stop();
Symbol 140 MovieClip Frame 4
stop();
Symbol 140 MovieClip Frame 5
stop();
Symbol 140 MovieClip Frame 6
stop();
Symbol 140 MovieClip Frame 7
stop();
Symbol 140 MovieClip Frame 8
stop();
Symbol 140 MovieClip Frame 9
stop();
Symbol 140 MovieClip Frame 10
stop();
Symbol 140 MovieClip Frame 11
stop();
Symbol 140 MovieClip Frame 12
stop();
Symbol 159 MovieClip [symRules] Frame 1
stop();
Instance of Symbol 10 MovieClip in Symbol 159 MovieClip [symRules] Frame 1
on (press) {
}
Symbol 159 MovieClip [symRules] Frame 2
stop();
Instance of Symbol 140 MovieClip in Symbol 159 MovieClip [symRules] Frame 2
onClipEvent (load) {
this.gotoAndStop("frmAir");
}
Symbol 159 MovieClip [symRules] Frame 3
stop();
Instance of Symbol 140 MovieClip in Symbol 159 MovieClip [symRules] Frame 3
onClipEvent (load) {
this.gotoAndStop("frmBackflip");
}
Symbol 159 MovieClip [symRules] Frame 4
stop();
Instance of Symbol 140 MovieClip in Symbol 159 MovieClip [symRules] Frame 4
onClipEvent (load) {
this.gotoAndStop("frmFrontflip");
}
Symbol 159 MovieClip [symRules] Frame 5
stop();
Instance of Symbol 140 MovieClip in Symbol 159 MovieClip [symRules] Frame 5
onClipEvent (load) {
this.gotoAndStop("frmHorrotation");
}
Symbol 159 MovieClip [symRules] Frame 6
stop();
Instance of Symbol 140 MovieClip in Symbol 159 MovieClip [symRules] Frame 6
onClipEvent (load) {
this.gotoAndStop("frmWheelie");
}
Symbol 159 MovieClip [symRules] Frame 7
stop();
Instance of Symbol 140 MovieClip in Symbol 159 MovieClip [symRules] Frame 7
onClipEvent (load) {
this.gotoAndStop("frmNoseWheelie");
}
Symbol 159 MovieClip [symRules] Frame 8
stop();
Instance of Symbol 140 MovieClip in Symbol 159 MovieClip [symRules] Frame 8
onClipEvent (load) {
this.gotoAndStop("frmFakie");
}
Symbol 159 MovieClip [symRules] Frame 9
stop();
Instance of Symbol 140 MovieClip in Symbol 159 MovieClip [symRules] Frame 9
onClipEvent (load) {
this.gotoAndStop("frmWallride");
}
Symbol 159 MovieClip [symRules] Frame 10
stop();
Instance of Symbol 140 MovieClip in Symbol 159 MovieClip [symRules] Frame 10
onClipEvent (load) {
this.gotoAndStop("frmDoublePegGrind");
}
Symbol 159 MovieClip [symRules] Frame 11
stop();
Instance of Symbol 140 MovieClip in Symbol 159 MovieClip [symRules] Frame 11
onClipEvent (load) {
this.gotoAndStop("frmIcepickGrind");
}
Symbol 159 MovieClip [symRules] Frame 12
stop();
Instance of Symbol 140 MovieClip in Symbol 159 MovieClip [symRules] Frame 12
onClipEvent (load) {
this.gotoAndStop("frmToothpickGrind");
}
Symbol 205 Button
on (press) {
_root.allControl.startNextLevel();
}
Symbol 210 MovieClip [symScoresControl] Frame 1
#initclip 66
Object.registerClass("symScoresControl", CScoresControl);
#endinitclip
Symbol 211 MovieClip [symMouseCursor] Frame 1
#initclip 67
Object.registerClass("symMouseCursor", CMouseCursor);
#endinitclip
Symbol 213 MovieClip [symField] Frame 1
#initclip 68
Object.registerClass("symField", CField);
#endinitclip
Symbol 216 MovieClip [symAllControl] Frame 1
#initclip 69
Object.registerClass("symAllControl", CAllControl);
#endinitclip
Symbol 220 Button
on (release) {
getURL ("http://www.miniclip.com/", "_blank");
}
Symbol 221 MovieClip Frame 2
_parent.mcAnimation.play();
stop();
Symbol 221 MovieClip Frame 13
_parent.gotoAndPlay("preload");
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 60
Symbol 236 MovieClip Frame 121
_parent.mcBackground.play();
stop();
Symbol 238 MovieClip Frame 1
this._visible = false;
Symbol 244 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 249 MovieClip Frame 2
if (_url.indexOf("http") > -1) {
if (_parent._parent._parent.loadAdNow) {
cacheBuster = getTimer() + random(999999);
showAd = "http://www.miniclip.com/swfcontent/push/didyouknow.swf?cacheBuster" + cacheBuster;
trace("Loading ad: " + showAd);
mcAd.loadMovie(showAd);
} else {
gotoAndPlay(_currentframe - 1);
}
}
Symbol 249 MovieClip Frame 4
if ((mcAd.getBytesTotal() != 0) && (mcAd.getBytesLoaded() == mcAd.getBytesTotal())) {
gotoAndStop ("showAd");
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 249 MovieClip Frame 12
stop();
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 100
stop();
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 12
_root.play();
_root.isFinished = true;
_parent.stop();
stop();
Symbol 263 MovieClip Frame 1
loadAdNow = false;
_root.stop();
play();
Instance of Symbol 238 MovieClip "mcIntro" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 263 MovieClip Frame 2
xPos = _x;
yPos = _y;
mcBackground._x = mcBackground._x - xPos;
mcBackground._y = mcBackground._y - yPos;
mcAnimation._x = mcAnimation._x - xPos;
mcAnimation._y = mcAnimation._y - yPos;
var stageWidth = Stage.width;
var stageHeight = Stage.height;
var centerStageX = (stageWidth / 2);
var centerStageY = (stageHeight / 2);
mcBackground._width = stageWidth;
mcBackground._height = stageHeight;
mcAnimation._x = mcAnimation._x + centerStageX;
mcAnimation._y = mcAnimation._y + (centerStageY - (stageHeight / 10));
stop();
Instance of Symbol 262 MovieClip "mcLoadingAnimated" in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 263 MovieClip Frame 3
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent == 100) {
_root.play();
stop();
} else {
loadAdNow = true;
mcLoadingAnimated._visible = true;
}
Symbol 263 MovieClip Frame 5
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent < 100) {
mcLoadingAnimated.mcLoading.gotoAndStop(loadedPercent);
mcLoadingAnimated.mcLoading.txtPercentLoaded1 = ("The game is loading (" + loadedPercent) + "%)";
mcLoadingAnimated.mcLoading.txtPercentLoaded2 = ("The game is loading (" + loadedPercent) + "%)";
_root.gotoAndStop(2);
gotoAndPlay(_currentframe - 1);
} else {
mcLoadingAnimated.play();
stop();
}
Symbol 615 MovieClip [__Packages.CWheel] Frame 0
class CWheel extends MovieClip
{
var hitPointArray, normalArray, rad, particle, maxAccSpeed, speed, accSpeed, rot, addedAcc, intersectionFlag, lastIntersPoint, lastN, hitArray, intersArray, m_rim, localToGlobal, attachMovie, _x, _y;
function CWheel () {
super();
}
function fillHitPoints() {
var _local2;
var _local3 = (Math.PI*2) / hitCount;
hitPointArray = new Array(hitCount);
normalArray = new Array(hitCount);
_local2 = 0;
while (_local2 < hitCount) {
hitPointArray[_local2] = new CVector2D(Math.sin(_local3 * _local2) * rad, (-Math.cos(_local3 * _local2)) * rad);
normalArray[_local2] = hitPointArray[_local2].multNew(-1);
normalArray[_local2].normalize();
_local2++;
}
}
function init(particle_, maxAccSpeed_, rad_) {
rad_ = 12;
particle = particle_;
rad = rad_;
maxAccSpeed = maxAccSpeed_ * 4;
speed = 0;
accSpeed = 0;
rot = new CVector2D(1, 0);
addedAcc = new CVector2D(0, 0);
intersectionFlag = false;
lastIntersPoint = new CVector2D(0, 0);
lastN = new CVector2D(0, 0);
fillHitPoints();
hitArray = new Array(hitCount);
intersArray = new Array();
}
function process(dTime, acc, koeffDamp) {
accSpeed = Math.max(-maxAccSpeed, Math.min(maxAccSpeed, accSpeed + (acc * dTime)));
speed = Math.max((-maxSpeed) * dTime, Math.min((speed * koeffDamp) + accSpeed, maxSpeed * dTime));
rot.rotate(speed / rad);
m_rim._rotation = (Math.atan2(rot.y, rot.x) * 180) / Math.PI;
}
function checkRailingsCollision() {
var _local10 = CAllControl.getTimer();
var _local4 = new CVector2D(0, 0);
m_prevRailingsIntersectionFlag = m_railingsIntersectionFlag;
m_railingsIntersectionFlag = false;
var _local2 = 0;
while ((!m_railingsIntersectionFlag) && (_local2 < hitCount)) {
var _local3 = false;
hitPointArray[_local2].copyTo(_local4);
localToGlobal(_local4);
_local3 = field.__get__railings().hitTest(_local4.x, _local4.y, true);
m_railingsIntersectionFlag = m_railingsIntersectionFlag | _local3;
if (_local3 && (this["m_sparkle" + _local2] == undefined)) {
attachMovie("symSparkle", "m_sparkle" + _local2, _local2, {_x:hitPointArray[_local2].x, _y:hitPointArray[_local2].y, _rotation:(Math.random() * 360) - 180, _xscale:20, _yscale:20});
}
_local2++;
}
if (m_railingsIntersectionFlag) {
m_prevLastTimeOnRailings = m_lastTimeOnRailings;
m_lastTimeOnRailings = _local10;
} else if ((_local10 - m_lastTimeOnRailings) >= m_LAST_LONG_GROUND_INTERRUPT_TIME) {
m_lastLongRailingsInterruptTime = _local10;
}
}
function testFullCollision(hit_mc) {
var _local4 = 0;
var _local2 = new CVector2D(0, 0);
var _local6 = new CVector2D(0, 0);
var _local3 = 0;
while (_local3 < hitCount) {
hitPointArray[_local3].copyTo(_local2);
localToGlobal(_local2);
if (field.isValidRealCoords(_local2.x, _local2.y) && (!hit_mc.hitTest(_local2.x, _local2.y, true))) {
_local4++;
if (_local4 > 3) {
return(false);
}
}
_local3++;
}
return(true);
}
function checkCollision(hit_mc, isCollidedWithSpring) {
var _local16 = CAllControl.getTimer();
var _local2;
var _local9;
var _local8 = new CVector2D(0, 0);
var _local14 = false;
var _local5;
var _local7;
var _local15;
var _local17 = new CVector2D(particle.prevPos.x, particle.prevPos.y);
var _local19 = new CVector2D(particle.pos.x, particle.pos.y);
var _local4 = new CVector2D(0, 0);
var _local13;
var _local18 = particle.pos.x;
var _local3 = new CVector2D(0, 0);
_x = particle.pos.x;
_y = particle.pos.y;
_local13 = 0;
_local2 = 0;
while (_local2 < hitCount) {
hitPointArray[_local2].copyTo(_local8);
localToGlobal(_local8);
if ((hitArray[_local2] = (!field.isValidRealCoords(_local8.x, _local8.y)) || (hit_mc.hitTest(_local8.x, _local8.y, true)))) {
_local14 = true;
_local5 = _local2;
_local13++;
}
_local2++;
}
checkRailingsCollision();
hittedCount = _local13;
if (_local13 == hitCount) {
particle.pos.x = particle.prevPos.x - ((particle.pos.x - particle.prevPos.x) * koeffSpring);
particle.pos.y = particle.prevPos.y - ((particle.pos.y - particle.prevPos.y) * koeffSpring);
_x = particle.pos.x;
_y = particle.pos.y;
return(undefined);
}
_local2 = 0;
m_prevIntersectionFlag = intersectionFlag;
if (_local14) {
if (particle.getVelocityVector().y > 2) {
m_movingDust._visible = true;
} else {
m_movingDust._visible = false;
}
if ((!wasOnGround) && (particle.getVelocityVector().y > 2)) {
m_fallingDust.gotoAndPlay(1);
}
if (m_needCheckPlatform) {
m_isOnPlatform = isOnPlatformFunc();
} else {
m_isOnPlatform = false;
}
while (true) {
_local2++;
if (_local2 == hitCount) {
_local2 = 0;
}
if (!hitArray[_local2]) {
_local5 = -1;
_local9 = 0;
while (_local9 < hitCount) {
_local2++;
if (_local2 == hitCount) {
_local2 = 0;
}
if (_local5 == -1) {
if (hitArray[_local2]) {
_local5 = _local2;
_local4.plus(normalArray[_local2]);
normalArray[_local2].copyTo(_local3);
}
} else if (!hitArray[_local2]) {
_local7 = _local2 - 1;
if (_local7 < 0) {
_local7 = hitCount - 1;
}
intersArray.push({k1:_local5, k2:_local7, n:new CVector2D(_local3.x, _local3.y)});
_local5 = -1;
} else {
_local4.plus(normalArray[_local2]);
_local3.plus(normalArray[_local2]);
}
_local9++;
}
break;
}
}
var _local6 = new CVector2D(0, 0);
if (intersArray.length > 0) {
_local4.normalize();
if (intersectionFlag) {
_local4.x = _local4.x + lastN.x;
_local4.y = _local4.y + lastN.y;
_local4.x = _local4.x / 2;
_local4.y = _local4.y / 2;
}
var _local10;
var _local11;
_local15 = intersArray.length;
_local2 = 0;
while (_local2 < _local15) {
_local10 = intersArray.pop();
_local5 = _local10.k1;
_local7 = _local10.k2;
_local10.n.copyTo(_local3);
particle.pos.minusNew(particle.prevPos).copyTo(_local6);
if (_local4.scalar(_local6) < 0) {
_local11 = Math.atan2(_local4.y, _local4.x);
_local6.rotate(-_local11);
_local6.x = (-_local6.x) * koeffSpring;
_local6.rotate(_local11);
pushOut(_local5, _local7, _local3, hit_mc);
particle.prevPos.x = particle.pos.x - _local6.x;
particle.prevPos.y = particle.pos.y - _local6.y;
} else {
pushOut(_local5, _local7, _local3, hit_mc);
}
_local2++;
}
validateRotation(_local4, _local17);
intersectionFlag = true;
particle.pos.copyTo(lastIntersPoint);
_local4.copyTo(lastN);
}
m_prevLastTimeOnGround = m_lastTimeOnGround;
m_lastTimeOnGround = _local16;
} else {
m_movingDust._visible = false;
if ((_local16 - m_lastTimeOnGround) > m_LAST_LONG_GROUND_INTERRUPT_TIME) {
m_lastLongGroundInterruptTime = _local16;
}
m_prevLastTimeOnAir = m_lastTimeOnAir;
m_lastTimeOnAir = _local16;
if (intersectionFlag) {
validateRotation(lastN, _local17);
intersectionFlag = false;
}
}
if (((particle.pos.x - m_prevX) * (m_prevX - m_prevPrevX)) < 0) {
m_lastTurnTime = _local16;
}
m_prevPrevX = m_prevX;
m_prevX = _local18;
_x = particle.pos.x;
_y = particle.pos.y;
}
function pushOut(k1, k2, n, hit_mc) {
n.normalize();
if (k1 != k2) {
var _local7 = new CVector2D(0, 0).getDistanceTo(hitPointArray[k1], hitPointArray[k2]);
_local7 = rad - Math.abs(_local7);
particle.pos.plus(n.multNew(_local7));
particle.prevPos.plus(n.multNew(_local7));
} else {
var _local6 = n.multNew(-rad);
var _local2 = new CVector2D(0, 0);
var _local5 = 0;
var _local4 = 0.03;
while (true) {
_local6.copyTo(_local2);
localToGlobal(_local2);
if ((!field.isValidRealCoords(_local2.x, _local2.y)) || (hit_mc.hitTest(_local2.x, _local2.y, true))) {
_local5++;
_x = (particle.pos.x = particle.pos.x + (n.x * _local4));
_y = (particle.pos.y = particle.pos.y + (n.y * _local4));
} else {
_local5--;
particle.pos.x = particle.pos.x - (n.x * _local4);
particle.pos.y = particle.pos.y - (n.y * _local4);
particle.prevPos.plus(n.multNew(_local4 * _local5));
break;
}
}
}
}
function validateRotation(n, oldPos) {
if ((!intersectionFlag) && (Math.abs(accSpeed) > 0.01)) {
if (Math.abs(accSpeed) < ((maxAccSpeed * 0.02) / 2)) {
accSpeed = 0;
} else if (accSpeed > 0) {
accSpeed = maxAccSpeed * 0.02;
} else {
accSpeed = (-maxAccSpeed) * 0.02;
}
}
var _local3 = new CVector2D(-n.y, n.x);
var _local6 = particle.pos.minusNew(oldPos);
var _local5 = Math.atan2(_local3.y, _local3.x);
var _local2 = _local6.rotateNew(-_local5);
speed = _local2.x + accSpeed;
_local2.y = 0;
_local2.rotate(_local5);
var _local4 = 1 - koeffSlip;
particle.pos.x = (particle.pos.x + ((_local3.x * accSpeed) * _local4)) - ((1 - koeffFriction) * _local2.x);
particle.pos.y = (particle.pos.y + ((_local3.y * accSpeed) * _local4)) - ((1 - koeffFriction) * _local2.y);
accSpeed = accSpeed * koeffSlip;
}
function applyAddedAcc() {
particle.acc.x = particle.acc.x + (addedAcc.x * particle.mass);
particle.acc.y = particle.acc.y + (addedAcc.y * particle.mass);
}
function resetTimeVariables() {
m_lastTimeOnRailings = CAllControl.getTimer();
m_prevLastTimeOnRailings = CAllControl.getTimer();
m_prevLastTimeOnGround = CAllControl.getTimer();
m_lastTimeOnGround = CAllControl.getTimer();
m_prevLastTimeOnAir = CAllControl.getTimer();
m_lastTimeOnAir = CAllControl.getTimer();
m_lastTurnTime = CAllControl.getTimer();
m_lastLongGroundInterruptTime = CAllControl.getTimer();
m_lastLongRailingsInterruptTime = CAllControl.getTimer();
}
function isOnPlatformFunc() {
if ((field.__get__platform() != undefined) && (field.__get__platform() != null)) {
var _local4 = 0;
var _local3 = new CVector2D(0, 0);
var _local5 = new CVector2D(0, 0);
var _local2 = 0;
while (_local2 < hitCount) {
hitPointArray[_local2].copyTo(_local3);
localToGlobal(_local3);
if (field.__get__platform().hitTest(_local3.x, _local3.y, true)) {
return(true);
}
_local2++;
}
}
return(false);
}
function get needCheckPlatform() {
return(m_needCheckPlatform);
}
function set needCheckPlatform(newVal) {
m_needCheckPlatform = newVal;
//return(needCheckPlatform);
}
function get isOnPlatform() {
return(m_isOnPlatform);
}
function get lastLongGroundInterruptTime() {
return(m_lastLongGroundInterruptTime);
}
function get lastLongRailinsInterruptTime() {
return(m_lastLongRailingsInterruptTime);
}
function get isOnRailings() {
return(m_railingsIntersectionFlag);
}
function get wasOnRailings() {
return(m_prevRailingsIntersectionFlag);
}
function get lastTimeOnRailings() {
return(m_lastTimeOnRailings);
}
function get prevLastTimeOnRailings() {
return(m_prevLastTimeOnRailings);
}
function get wasOnGround() {
return(m_prevIntersectionFlag);
}
function get isOnGround() {
return(intersectionFlag);
}
function get prevLastTimeOnGround() {
return(m_prevLastTimeOnGround);
}
function get lastTimeOnGround() {
return(m_lastTimeOnGround);
}
function get prevLastTimeOnAir() {
return(m_prevLastTimeOnAir);
}
function get lastTimeOnAir() {
return(m_lastTimeOnAir);
}
function get lastTurnTime() {
return(m_lastTurnTime);
}
function get direction() {
return(((particle.getVelocityVector().modul() > 2) ? (m_prevX - m_prevPrevX) : 0));
}
var maxSpeed = 180;
var koeffSpring = 0.15;
var koeffSlip = 0.15;
var koeffFriction = 0.97;
var hitCount = 16;
var hittedCount = 0;
var field = null;
var m_movingDust = null;
var m_fallingDust = null;
static var m_LAST_LONG_GROUND_INTERRUPT_TIME = 300;
var m_lastLongGroundInterruptTime = 0;
var m_lastLongRailingsInterruptTime = 0;
var m_railingsIntersectionFlag = false;
var m_prevRailingsIntersectionFlag = false;
var m_lastTimeOnRailings = 0;
var m_prevLastTimeOnRailings = 0;
var m_prevIntersectionFlag = false;
var m_prevLastTimeOnGround = 0;
var m_lastTimeOnGround = 0;
var m_prevLastTimeOnAir = 0;
var m_lastTimeOnAir = 0;
var m_prevX = 0;
var m_prevPrevX = 0;
var m_lastTurnTime = 0;
var m_needCheckPlatform = false;
var m_isOnPlatform = false;
}
Symbol 616 MovieClip [__Packages.CParticle] Frame 0
class CParticle
{
var pos, prevPos, mass, acc, mc;
function CParticle (x_, y_, mass_) {
pos = new CVector2D(x_, y_);
prevPos = pos.duplicate();
mass = mass_;
acc = new CVector2D(0, 0);
mc = null;
}
function verlet(dTime, koeffDamp) {
var _local2 = pos.duplicate();
pos.x = pos.x + (((pos.x - prevPos.x) * koeffDamp) + (acc.x * dTime));
pos.y = pos.y + (((pos.y - prevPos.y) * koeffDamp) + (acc.y * dTime));
_local2.copyTo(prevPos);
if (mc != null) {
mc._x = pos.x;
mc._y = pos.y;
}
}
function getVelocityVector() {
return(new CVector2D(pos.x - prevPos.x, pos.y - prevPos.y));
}
var linkedWheel = null;
}
Symbol 617 MovieClip [__Packages.CVector2D] Frame 0
class CVector2D
{
var x, y;
function CVector2D (x_, y_) {
x = x_;
y = y_;
}
function reinit(x_, y_) {
x = x_;
y = y_;
}
function getUgol() {
return(Math.atan2(y, x));
}
function duplicate() {
return(new CVector2D(x, y));
}
function copyTo(v) {
v.x = x;
v.y = y;
}
function minus(v) {
x = x - v.x;
y = y - v.y;
}
function minusNew(v) {
return(new CVector2D(x - v.x, y - v.y));
}
function normalize() {
var _local2 = Math.sqrt((x * x) + (y * y));
x = x / _local2;
y = y / _local2;
}
function reverseNew() {
return(new CVector2D(-x, -y));
}
function scalar(v) {
return((x * v.x) + (y * v.y));
}
function modul() {
return(Math.sqrt((x * x) + (y * y)));
}
function reflectFromNormal(n) {
var _local2 = Math.atan2(n.y, n.x);
rotate(-_local2);
x = -x;
rotate(_local2);
}
function rotate(u) {
var _local4 = x;
var _local3 = y;
x = (_local4 * Math.cos(u)) - (_local3 * Math.sin(u));
y = (_local4 * Math.sin(u)) + (_local3 * Math.cos(u));
}
function rotateNew(u) {
return(new CVector2D((x * Math.cos(u)) - (y * Math.sin(u)), (x * Math.sin(u)) + (y * Math.cos(u))));
}
function mult(k) {
x = x * k;
y = y * k;
}
function multNew(k) {
return(new CVector2D(x * k, y * k));
}
function plus(v) {
x = x + v.x;
y = y + v.y;
}
function plusNew(v) {
return(new CVector2D(x + v.x, y + v.y));
}
function getDistanceTo(p1, p2) {
var _local3 = p1.y - p2.y;
var _local2 = p2.x - p1.x;
var _local6 = (p1.x * (p2.y - p1.y)) - (p1.y * (p2.x - p1.x));
var _local5 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
_local3 = _local3 / _local5;
_local2 = _local2 / _local5;
_local6 = _local6 / _local5;
return(((_local3 * x) + (_local2 * y)) + _local6);
}
function toString() {
return(((("{ " + x.toString()) + ", ") + y.toString()) + "}");
}
}
Symbol 618 MovieClip [__Packages.CField] Frame 0
class CField extends MovieClip
{
var n_dTime, _parent, globalToLocal, attachMovie, _xscale, _yscale, _x, _y, m_groundEdgeClip;
function CField () {
super();
m_particleEngine = new CParticleEngine();
m_particleEngine.field = this;
m_allBike.__set__field(this);
m_sndDeath = new CMySound(this);
m_sndDeath.attachSound("sndDeath");
m_railings = new Array();
m_sndTrick = new CMySound(this);
m_sndTrick.attachSound("sndTrick");
m_levelData = new Array();
m_instance = this;
}
function set m_timeToStop(nTimeToStop) {
_root.allControl.m_timeToStop = nTimeToStop;
//return(m_timeToStop);
}
function get m_timeToStop() {
return(_root.allControl.m_timeToStop);
}
static function getInstance() {
return(m_instance);
}
function enablePause() {
n_dTime = CAllControl.getRealTimer();
if (isHorRotating) {
m_horRotationClip.stop();
m_horRotationClip._visible = false;
} else {
m_bikeBody._visible = false;
m_backWheel._visible = false;
m_forwardWheel._visible = false;
m_horRotationClip._visible = false;
}
}
function disablePause() {
if (isHorRotating) {
m_horRotationClip.play();
m_horRotationClip._visible = true;
} else {
m_bikeBody._visible = true;
m_backWheel._visible = true;
m_forwardWheel._visible = true;
m_horRotationClip._visible = true;
}
m_prevNow = m_prevNow + (CAllControl.getRealTimer() - n_dTime);
}
static function get DIRECTION_RIGHT() {
return(m_DIRECTION_RIGHT);
}
static function get DIRECTION_LEFT() {
return(m_DIRECTION_LEFT);
}
function get questID() {
return(m_questID);
}
function get particleEngine() {
return(m_particleEngine);
}
function get ground() {
return(m_ground);
}
function get bike() {
return(m_bike);
}
function get allBike() {
return(m_allBike);
}
function get bikeBody() {
return(m_bikeBody);
}
function get backWheel() {
return(m_backWheel);
}
function get forwardWheel() {
return(m_forwardWheel);
}
function get backWheelParticle() {
return(m_backWheelParticle);
}
function get forwardWheelParticle() {
return(m_forwardWheelParticle);
}
function get demonstrationMode() {
return(this instanceof CDemonstration);
}
function get isPlaying() {
return(m_isPlaying);
}
function set isPlaying(newVal) {
_parent.m_tricksText.txt._alpha = 0;
railings._x = 0;
railings._y = 0;
m_isPlaying = newVal;
if (m_isPlaying) {
var _local4 = 0;
while (_local4 < m_railings.length) {
m_railings[_local4].hideGuides();
_local4++;
}
m_contour._visible = false;
if (!m_respawning) {
m_timeToStop = (_root.allControl.levelTime);
}
m_prevNow = CAllControl.getRealTimer();
CMouseCursor.removeListener();
m_allBike._visible = false;
if (!demonstrationMode) {
_root.m_btnStop._visible = true;
_root.m_txtTime._visible = true;
_root.m_btnPlay._visible = false;
_root.m_btnUndo._visible = false;
_root.m_btnClear._visible = false;
}
if (!m_respawning) {
m_startDirection = m_bikeDirection;
}
var _local3 = null;
if (m_respawning) {
_local3 = {x:m_backWheelStartPos.x, y:m_backWheelStartPos.y};
} else {
_local3 = {x:m_allBike.__get__backWheel()._x, y:m_allBike.__get__backWheel()._y};
m_allBike.localToGlobal(_local3);
globalToLocal(_local3);
m_backWheelStartPos = new CVector2D(_local3.x, _local3.y);
}
attachMovie("symBackWheel", "m_backWheel", m_BACKWHEEL_DEPTH, {_x:_local3.x, _y:_local3.y});
m_backWheel.field = this;
if (m_respawning) {
_local3 = {x:m_forwardWheelStartPos.x, y:m_forwardWheelStartPos.y};
} else {
_local3 = {x:m_allBike.__get__forwardWheel()._x, y:m_allBike.__get__forwardWheel()._y};
m_allBike.localToGlobal(_local3);
globalToLocal(_local3);
m_forwardWheelStartPos = new CVector2D(_local3.x, _local3.y);
}
attachMovie("symForwardWheel", "m_forwardWheel", m_FORWARDWHEEL_DEPTH, {_x:_local3.x, _y:_local3.y});
m_forwardWheel.field = this;
if (m_respawning) {
_local3 = {x:m_bikeBodyStartPos.x, y:m_bikeBodyStartPos.y};
} else {
_local3 = {x:m_allBike.__get__bikeBody()._x, y:m_allBike.__get__bikeBody()._y};
m_allBike.localToGlobal(_local3);
globalToLocal(_local3);
m_bikeBodyStartPos = new CVector2D(_local3.x, _local3.y);
}
attachMovie("symBikeBody", "m_bikeBody", m_BIKEBODY_DEPTH, {_x:_local3.x, _y:_local3.y});
if ((!demonstrationMode) && (m_questID != CAllControl.__get__WRITEQUEST_LEVEL())) {
if (m_respawning) {
_local3 = {x:m_platformStartPos.x, y:m_platformStartPos.y};
} else {
_local3 = {x:m_allBike.__get__platform()._x, y:m_allBike.__get__platform()._y};
m_allBike.localToGlobal(_local3);
globalToLocal(_local3);
m_platformStartPos = new CVector2D(_local3.x, _local3.y);
}
attachMovie("symPlatform", "m_platform", m_PLATFORM_DEPTH, {_x:_local3.x, _y:_local3.y, _xscale:m_allBike._xscale});
m_ground.attachMovie("symPlatform", "m_platform", 32000, {_x:_local3.x, _y:_local3.y, _xscale:m_allBike._xscale});
}
resetParticleEngine();
m_bikeBody._xscale = m_allBike._xscale;
if (m_allBike._xscale == 100) {
m_bikeDirection = m_DIRECTION_RIGHT;
} else if (m_allBike._xscale == -100) {
m_bikeDirection = m_DIRECTION_LEFT;
}
m_isTricksAccepted = false;
_xscale = (_yscale = 100);
} else {
m_bike.stopSounds();
if ((!demonstrationMode) && (questID == CAllControl.__get__FREERIDE_LEVEL())) {
var _local4 = 0;
while (_local4 < m_railings.length) {
m_railings[_local4].showGuides();
_local4++;
}
}
m_contour._visible = true;
_x = (_y = 0);
m_allBike._visible = true;
m_backWheel.removeMovieClip();
m_forwardWheel.removeMovieClip();
m_bikeBody.removeMovieClip();
if (!demonstrationMode) {
m_platform.removeMovieClip();
m_ground.m_platform.removeMovieClip();
_root.m_btnStop._visible = false;
_root.m_txtTime._visible = false;
_root.m_btnPlay._visible = true;
_root.m_btnUndo._visible = m_groundLineDepth > m_MIN_GROUNDLINE_DEPTH;
_root.m_btnClear._visible = m_groundLineDepth > m_MIN_GROUNDLINE_DEPTH;
CMouseCursor.createListener();
CAllControl.stopTimer();
m_isTricksAccepted = false;
_x = (_y = 0);
_xscale = (_yscale = m_DRAW_SCALE);
if (m_timeToQuestEnd != null) {
_root.allControl.onRideFinished(m_tricksController.__get__allTricksMaded());
}
}
}
//return(isPlaying);
}
function get isTricksAccepted() {
return(m_isTricksAccepted);
}
function set isTricksAccepted(newVal) {
CAllControl.startTimer();
m_isTricksAccepted = newVal;
if (m_isTricksAccepted) {
m_backWheel.resetTimeVariables();
m_forwardWheel.resetTimeVariables();
}
//return(isTricksAccepted);
}
function get isHorRotating() {
return(m_horRotationClip != null);
}
function get bikeDirection() {
return(m_bikeDirection);
}
function set bikeDirection(newVal) {
m_bikeDirection = newVal;
//return(bikeDirection);
}
function get railings() {
return(m_ground.m_railings);
}
function get platforms() {
return(m_ground.m_platforms);
}
function get platform() {
return(m_platform);
}
function get canDrawLines() {
return(m_canDrawLines);
}
function set canDrawLines(newVal) {
m_canDrawLines = newVal;
//return(canDrawLines);
}
function simulateDeath() {
m_deathSimulation = true;
m_deathSimulationStart = getTimer();
m_particleEngine.clearConstraints();
m_bikeBody.play();
m_backWheel.koeffSpring = 0.9;
m_backWheel.play();
m_forwardWheel.koeffSpring = 0.9;
m_forwardWheel.play();
}
function simulateFinish() {
m_finishSimulation = true;
m_finishSimulationStart = getTimer();
}
function respawn() {
m_timeSinceStart = 0;
m_deathSimulation = false;
m_bike.stopSounds();
if (((m_timeToStop = m_timeToStop - 10000)) > 0) {
trace("m_questID = " + m_questID);
trace("m_FIRSTQUEST_LEVEL = " + CAllControl.__get__FIRSTQUEST_LEVEL());
if ((m_questID >= CAllControl.__get__FIRSTQUEST_LEVEL()) && (m_questID <= CAllControl.__get__LASTQUEST_LEVEL())) {
trace("respawn : remove tricks");
m_tricksController.removeLastTricks(m_TIME_TO_QUEST_END);
}
m_respawning = true;
isPlaying = (true);
m_respawning = false;
if ((m_questID == CAllControl.__get__FREERIDE_LEVEL()) || (m_questID >= CAllControl.__get__FIRSTTRAINING_LEVEL())) {
_root.m_penalty.gotoAndPlay(2);
}
if ((m_questID >= CAllControl.__get__FIRSTTRAINING_LEVEL()) && (m_timeToQuestEnd != null)) {
m_tricksController.removeLastTricks(m_TIME_TO_QUEST_END);
m_timeToQuestEnd = null;
}
m_isTricksAccepted = false;
} else {
isPlaying = (false);
if (m_questID != CAllControl.__get__FREERIDE_LEVEL()) {
_root.allControl.needGameOver = true;
_root.allControl.onRideFinished(m_tricksController.__get__allTricksMaded());
}
}
}
function resetParticleEngine() {
m_particleEngine.clear();
var _local2 = {x:m_bikeBody.m_manHad._x, y:m_bikeBody.m_manHad._y};
m_bikeBody.localToGlobal(_local2);
globalToLocal(_local2);
m_bike = new CBike(this, m_bikeBody, m_backWheel, m_forwardWheel);
if (!m_respawning) {
m_tricksController = new CTricksController(m_bike, demonstrationMode);
} else {
m_tricksController.reset(m_bike);
}
if (m_questID == 1) {
m_tricksController.setAllowedTricks(CTricksController.__get__TRICK_TYPE_AIR());
} else if (m_questID == 2) {
m_tricksController.setAllowedTricks(CTricksController.__get__TRICK_TYPE_AIR(), CTricksController.__get__TRICK_TYPE_BACKFLIP());
} else if (m_questID == 3) {
m_tricksController.setAllowedTricks(CTricksController.__get__TRICK_TYPE_AIR(), CTricksController.__get__TRICK_TYPE_BACKFLIP(), CTricksController.__get__TRICK_TYPE_FRONTFLIP());
} else if (m_questID == 4) {
m_tricksController.setAllowedTricks(CTricksController.__get__TRICK_TYPE_AIR(), CTricksController.__get__TRICK_TYPE_BACKFLIP(), CTricksController.__get__TRICK_TYPE_FRONTFLIP(), CTricksController.__get__TRICK_TYPE_HORROTATION());
} else if (m_questID == 5) {
m_tricksController.setAllowedTricks(CTricksController.__get__TRICK_TYPE_AIR(), CTricksController.__get__TRICK_TYPE_BACKFLIP(), CTricksController.__get__TRICK_TYPE_FRONTFLIP(), CTricksController.__get__TRICK_TYPE_HORROTATION(), CTricksController.__get__TRICK_TYPE_WHEELIE());
} else if (m_questID == 6) {
m_tricksController.setAllowedTricks(CTricksController.__get__TRICK_TYPE_AIR(), CTricksController.__get__TRICK_TYPE_BACKFLIP(), CTricksController.__get__TRICK_TYPE_FRONTFLIP(), CTricksController.__get__TRICK_TYPE_HORROTATION(), CTricksController.__get__TRICK_TYPE_WHEELIE(), CTricksController.__get__TRICK_TYPE_NOSEWHEELIE());
} else if (m_questID == 7) {
m_tricksController.setAllowedTricks(CTricksController.__get__TRICK_TYPE_AIR(), CTricksController.__get__TRICK_TYPE_BACKFLIP(), CTricksController.__get__TRICK_TYPE_FRONTFLIP(), CTricksController.__get__TRICK_TYPE_HORROTATION(), CTricksController.__get__TRICK_TYPE_WHEELIE(), CTricksController.__get__TRICK_TYPE_NOSEWHEELIE(), CTricksController.__get__TRICK_TYPE_FAKIE());
} else if (m_questID == 8) {
m_tricksController.setAllowedTricks(CTricksController.__get__TRICK_TYPE_AIR(), CTricksController.__get__TRICK_TYPE_BACKFLIP(), CTricksController.__get__TRICK_TYPE_FRONTFLIP(), CTricksController.__get__TRICK_TYPE_HORROTATION(), CTricksController.__get__TRICK_TYPE_WHEELIE(), CTricksController.__get__TRICK_TYPE_NOSEWHEELIE(), CTricksController.__get__TRICK_TYPE_FAKIE(), CTricksController.__get__TRICK_TYPE_WALLRIDE());
} else if (m_questID == 9) {
m_tricksController.setAllowedTricks(CTricksController.__get__TRICK_TYPE_AIR(), CTricksController.__get__TRICK_TYPE_BACKFLIP(), CTricksController.__get__TRICK_TYPE_FRONTFLIP(), CTricksController.__get__TRICK_TYPE_HORROTATION(), CTricksController.__get__TRICK_TYPE_WHEELIE(), CTricksController.__get__TRICK_TYPE_NOSEWHEELIE(), CTricksController.__get__TRICK_TYPE_FAKIE(), CTricksController.__get__TRICK_TYPE_WALLRIDE(), CTricksController.__get__TRICK_TYPE_DOUBLEPEGGRIND());
} else if (m_questID == 10) {
m_tricksController.setAllowedTricks(CTricksController.__get__TRICK_TYPE_AIR(), CTricksController.__get__TRICK_TYPE_BACKFLIP(), CTricksController.__get__TRICK_TYPE_FRONTFLIP(), CTricksController.__get__TRICK_TYPE_HORROTATION(), CTricksController.__get__TRICK_TYPE_WHEELIE(), CTricksController.__get__TRICK_TYPE_NOSEWHEELIE(), CTricksController.__get__TRICK_TYPE_FAKIE(), CTricksController.__get__TRICK_TYPE_WALLRIDE(), CTricksController.__get__TRICK_TYPE_DOUBLEPEGGRIND(), CTricksController.__get__TRICK_TYPE_TOOTHPICKGRIND(), CTricksController.__get__TRICK_TYPE_ICEPICKGRIND());
}
m_headParticle = new CParticle(_local2.x, _local2.y, m_HEAD_MASS);
m_backWheelParticle = new CParticle(m_backWheel._x, m_backWheel._y, m_WHEEL_MASS);
m_forwardWheelParticle = new CParticle(m_forwardWheel._x, m_forwardWheel._y, m_WHEEL_MASS);
m_particleEngine.addParticle(m_backWheelParticle);
m_particleEngine.addWheel(m_backWheel, m_backWheelParticle, 10, 27.5);
m_particleEngine.addParticle(m_forwardWheelParticle);
m_particleEngine.addWheel(m_forwardWheel, m_forwardWheelParticle, 0, 27.5);
m_particleEngine.addSpringConstraint(m_backWheelParticle, m_forwardWheelParticle, 0.8, 0.8);
m_backWheelParticle.linkedWheel = m_backWheel;
m_forwardWheelParticle.linkedWheel = m_forwardWheel;
m_particleEngine.setHitMovie(m_ground);
}
function onLoad() {
m_allBike.swapDepths(m_ALLBIKE_DEPTH);
if (demonstrationMode || (questID != 0)) {
var _local3 = 0;
while (_local3 < m_railings.length) {
m_railings[_local3].hideGuides();
_local3++;
}
}
m_ground._visible = false;
m_ground.duplicateMovieClip("m_groundMask", m_GROUND_MASK_DEPTH);
m_texture._visible = false;
m_questID = _root.allControl.questID;
m_canDrawLines = (((((m_questID == CAllControl.__get__FREERIDE_LEVEL()) || (m_questID == 1)) || (m_questID == 2)) || (m_questID == 3)) || (m_questID == 6)) || (m_questID == 7);
if ((!demonstrationMode) && (m_questID != CAllControl.__get__WRITEQUEST_LEVEL())) {
m_allBike._x = m_allBike._x + 50;
}
if (demonstrationMode) {
m_allBike.__get__upArrow()._visible = false;
m_allBike.__get__downArrow()._visible = false;
m_allBike.__get__leftArrow()._visible = false;
m_allBike.__get__rightArrow()._visible = false;
}
m_ground.createEmptyMovieClip("m_platforms", m_PLATFORMS_GROUNDDEPTH);
if (m_questID != CAllControl.__get__FREERIDE_LEVEL()) {
_root.m_questProgress._visible = m_questID < CAllControl.__get__FIRSTQUEST_LEVEL();
_root.m_txtTime._visible = true;
_root.m_questProgress.gotoAndStop(m_questID);
if (!demonstrationMode) {
attachMovie("symQuestGround" + m_questID.toString(), "m_questGround", m_GROUND_MASK_DEPTH);
m_ground.attachMovie("symQuestGround" + m_questID.toString(), "m_questGround", m_QUESTGROUND_GROUNDDEPTH);
attachMovie("symQuestRailings" + m_questID.toString(), "m_questRailings", m_QUEST_RAILINGS_DEPTH);
attachMovie("symQuestGroundEdge" + m_questID.toString(), "m_groundEdgeClip", m_GROUND_EDGE_DEPTH);
attachMovie("symQuestExit" + m_questID.toString(), "m_exit", m_QUEST_EXIT_DEPTH);
if ((m_questID != CAllControl.__get__WRITEQUEST_LEVEL()) && (!demonstrationMode)) {
_root.m_quest._visible = true;
_root.m_quest.gotoAndStop(m_questID);
}
}
} else if (!demonstrationMode) {
_root.m_questProgress._visible = false;
_root.m_quest._visible = false;
m_ground.lineStyle(5, 12677668);
m_ground.beginFill(12677668);
m_ground.moveTo(0, 1950);
m_ground.lineTo(2750, 1950);
m_ground.lineTo(2750, 2000);
m_ground.lineTo(0, 2000);
m_ground.lineTo(0, 1950);
m_ground.endFill();
m_ground.beginFill(12677668);
m_ground.moveTo(0, 0);
m_ground.lineTo(50, 0);
m_ground.lineTo(50, 2000);
m_ground.lineTo(0, 2000);
m_ground.lineTo(0, 0);
m_ground.endFill();
m_ground.beginFill(12677668);
m_ground.moveTo(2700, 0);
m_ground.lineTo(2750, 0);
m_ground.lineTo(2750, 2000);
m_ground.lineTo(2700, 2000);
m_ground.lineTo(2700, 0);
m_ground.endFill();
m_groundMask.lineStyle(5, 12677668);
m_groundMask.beginFill(12677668);
m_groundMask.moveTo(0, 1950);
m_groundMask.lineTo(2750, 1950);
m_groundMask.lineTo(2750, 2000);
m_groundMask.lineTo(0, 2000);
m_groundMask.lineTo(0, 1950);
m_groundMask.endFill();
m_groundMask.beginFill(12677668);
m_groundMask.moveTo(0, 0);
m_groundMask.lineTo(50, 0);
m_groundMask.lineTo(50, 2000);
m_groundMask.lineTo(0, 2000);
m_groundMask.lineTo(0, 0);
m_groundMask.endFill();
m_groundMask.beginFill(12677668);
m_groundMask.moveTo(2700, 0);
m_groundMask.lineTo(2750, 0);
m_groundMask.lineTo(2750, 2000);
m_groundMask.lineTo(2700, 2000);
m_groundMask.lineTo(2700, 0);
m_groundMask.endFill();
}
if (!demonstrationMode) {
_root.m_txtTime._visible = false;
_root.m_btnStop._visible = false;
_root.m_btnUndo._visible = false;
_root.m_btnClear._visible = false;
}
if (((!demonstrationMode) && (m_questID != 0)) && (m_questID < CAllControl.__get__FIRSTQUEST_LEVEL())) {
m_width = m_groundEdgeClip._width;
m_height = m_groundEdgeClip._height;
} else if (m_groundEdgeClip != undefined) {
m_width = m_groundEdgeClip._width;
m_height = m_groundEdgeClip._height;
} else {
m_width = m_texture._width;
m_height = m_texture._height;
}
_xscale = (_yscale = m_DRAW_SCALE);
if (m_questID == CAllControl.__get__WRITEQUEST_LEVEL()) {
isPlaying = (true);
m_ground._visible = true;
}
_root.m_greeting.stop();
if (m_questID >= CAllControl.__get__FIRSTQUEST_LEVEL()) {
_root.m_greeting.gotoAndStop((m_questID - CAllControl.__get__FIRSTQUEST_LEVEL()) + 1);
_root.m_greeting.startTime = getTimer();
_root.m_greeting.onEnterFrame = function () {
if ((getTimer() - this.startTime) > 2500) {
_root.m_field.isPlaying = true;
this._visible = false;
delete this.onEnterFrame;
}
};
} else {
_root.m_greeting._visible = false;
}
if (!demonstrationMode) {
trace("demo mode");
if ((questID >= CAllControl.__get__FIRSTTRAINING_LEVEL()) && (questID < CAllControl.__get__FIRSTQUEST_LEVEL())) {
isPlaying = (true);
}
}
}
function onUnload() {
m_bike.stopSounds();
}
function formatTime(time) {
var _local1 = Math.round(time / 1000);
var _local2 = Math.floor(_local1 / 60);
_local1 = _local1 - (_local2 * 60);
return((((_local2 < 10) ? ("0" + _local2.toString()) : (_local2.toString())) + ":") + ((_local1 < 10) ? ("0" + _local1.toString()) : (_local1.toString())));
}
function updateTexts() {
if (m_questID == 1) {
_root.m_questProgress.m_trickAir.text = "0/1";
_root.m_questProgress.m_trickAir.textColor = 0;
if (m_tricksController.__get__allTricksMaded().length > 0) {
_root.m_questProgress.m_trickAir.text = "1/1";
_root.m_questProgress.m_trickAir.textColor = 65280;
_root.m_tricksText.txt.text = "Congratulations!!! You did an Air trick!!!";
if (m_timeToQuestEnd == null) {
m_timeToQuestEnd = m_TIME_TO_QUEST_END;
}
}
} else if (m_questID == 2) {
_root.m_questProgress.m_trickBackflip.text = "0/1";
if (m_tricksController.__get__allTricksMaded().length > 0) {
var _local3 = 0;
while (_local3 < m_tricksController.__get__allTricksMaded().length) {
if (m_tricksController.__get__allTricksMaded()[_local3].trickType == CTricksController.__get__TRICK_TYPE_BACKFLIP()) {
_root.m_questProgress.m_trickBackflip.text = "1/1";
_root.m_questProgress.m_trickBackflip.textColor = 65280;
_root.m_tricksText.txt.text = "Woah!! Awseome Backflip dude!!!";
if (m_timeToQuestEnd == null) {
m_timeToQuestEnd = m_TIME_TO_QUEST_END;
}
}
_local3++;
}
}
} else if (m_questID == 3) {
_root.m_questProgress.m_trickFrontflip.text = "0/1";
_root.m_questProgress.m_trickFrontflip.textColor = 0;
if (m_tricksController.__get__allTricksMaded().length > 0) {
var _local3 = 0;
while (_local3 < m_tricksController.__get__allTricksMaded().length) {
if (m_tricksController.__get__allTricksMaded()[_local3].trickType == CTricksController.__get__TRICK_TYPE_FRONTFLIP()) {
_root.m_questProgress.m_trickFrontflip.text = "1/1";
_root.m_questProgress.m_trickFrontflip.textColor = 65280;
_root.m_tricksText.txt.text = "Sweet Frontflip there man!";
if (m_timeToQuestEnd == null) {
m_timeToQuestEnd = m_TIME_TO_QUEST_END;
}
}
_local3++;
}
}
} else if (m_questID == 4) {
_root.m_questProgress.m_trickHorrotation.text = "0/3";
_root.m_questProgress.m_trickHorrotation.textColor = 0;
if (m_tricksController.__get__allTricksMaded().length > 0) {
var _local5 = 0;
var _local3 = 0;
while (_local3 < m_tricksController.__get__allTricksMaded().length) {
if (m_tricksController.__get__allTricksMaded()[_local3].trickType == CTricksController.__get__TRICK_TYPE_HORROTATION()) {
_local5++;
}
if (_local5 >= 3) {
_root.m_tricksText.txt.text = "You nailed all the tricks - wicked!!!";
if (m_timeToQuestEnd == null) {
m_timeToQuestEnd = m_TIME_TO_QUEST_END;
}
}
_local3++;
}
_root.m_questProgress.m_trickHorrotation.text = _local5.toString() + "/3";
_root.m_questProgress.m_trickHorrotation.textColor = ((_local5 >= 3) ? 65280 : 0);
}
} else if (m_questID == 5) {
_root.m_questProgress.m_trickHorrotation.text = "0/1";
_root.m_questProgress.m_trickWheelie.text = "0/3";
_root.m_questProgress.m_trickHorrotation.textColor = 0;
_root.m_questProgress.m_trickWheelie.textColor = 0;
if (m_tricksController.__get__allTricksMaded().length > 0) {
var _local8 = 0;
var _local4 = false;
var _local3 = 0;
while (_local3 < m_tricksController.__get__allTricksMaded().length) {
if (m_tricksController.__get__allTricksMaded()[_local3].trickType == CTricksController.__get__TRICK_TYPE_WHEELIE()) {
_local8 = _local8 + m_tricksController.__get__allTricksMaded()[_local3].trickQuantity;
}
_local4 = _local4 || (m_tricksController.__get__allTricksMaded()[_local3].trickType == CTricksController.__get__TRICK_TYPE_HORROTATION());
if ((_local8 >= 3) && _local4) {
_root.m_tricksText.txt.text = "Congratulations!!! You've maded all the tricks needed!!!";
if (m_timeToQuestEnd == null) {
m_timeToQuestEnd = m_TIME_TO_QUEST_END;
}
}
_local3++;
}
_root.m_questProgress.m_trickHorrotation.text = (_local4 ? "1" : "0") + "/1";
_root.m_questProgress.m_trickWheelie.text = Math.min(_local8, 3).toString() + "/3";
_root.m_questProgress.m_trickHorrotation.textColor = (_local4 ? 65280 : 0);
_root.m_questProgress.m_trickWheelie.textColor = ((_local8 >= 3) ? 65280 : 0);
}
} else if (m_questID == 6) {
_root.m_questProgress.m_trickWheelie.text = "0/2";
_root.m_questProgress.m_trickNosewheelie.text = "0/3";
_root.m_questProgress.m_trickWheelie.textColor = 0;
_root.m_questProgress.m_trickNosewheelie.textColor = 0;
if (m_tricksController.__get__allTricksMaded().length > 0) {
var _local8 = 0;
var _local9 = 0;
var _local3 = 0;
while (_local3 < m_tricksController.__get__allTricksMaded().length) {
if (m_tricksController.__get__allTricksMaded()[_local3].trickType == CTricksController.__get__TRICK_TYPE_WHEELIE()) {
_local8 = _local8 + m_tricksController.__get__allTricksMaded()[_local3].trickQuantity;
}
if (m_tricksController.__get__allTricksMaded()[_local3].trickType == CTricksController.__get__TRICK_TYPE_NOSEWHEELIE()) {
_local9 = _local9 + m_tricksController.__get__allTricksMaded()[_local3].trickQuantity;
}
if ((_local8 >= 2) && (_local9 >= 3)) {
_root.m_tricksText.txt.text = "You completed all the tricked requred dude. Congrats!!!";
if (m_timeToQuestEnd == null) {
m_timeToQuestEnd = m_TIME_TO_QUEST_END;
}
}
_local3++;
}
_root.m_questProgress.m_trickWheelie.text = Math.min(_local8, 2).toString() + "/2";
_root.m_questProgress.m_trickNosewheelie.text = Math.min(_local9, 3).toString() + "/3";
_root.m_questProgress.m_trickWheelie.textColor = ((_local8 >= 2) ? 65280 : 0);
_root.m_questProgress.m_trickNosewheelie.textColor = ((_local9 >= 3) ? 65280 : 0);
}
} else if (m_questID == 7) {
_root.m_questProgress.m_trickNosewheelie.text = "0/3";
_root.m_questProgress.m_trickFakie.text = "0/5";
_root.m_questProgress.m_trickNosewheelie.textColor = 0;
_root.m_questProgress.m_trickFakie.textColor = 0;
if (m_tricksController.__get__allTricksMaded().length > 0) {
var _local12 = 0;
var _local9 = 0;
var _local3 = 0;
while (_local3 < m_tricksController.__get__allTricksMaded().length) {
if (m_tricksController.__get__allTricksMaded()[_local3].trickType == CTricksController.__get__TRICK_TYPE_FAKIE()) {
_local12 = _local12 + m_tricksController.__get__allTricksMaded()[_local3].trickQuantity;
}
if (m_tricksController.__get__allTricksMaded()[_local3].trickType == CTricksController.__get__TRICK_TYPE_NOSEWHEELIE()) {
_local9 = _local9 + m_tricksController.__get__allTricksMaded()[_local3].trickQuantity;
}
if ((_local12 >= 5) && (_local9 >= 3)) {
_root.m_tricksText.txt.text = "Congratulations!!! You hit all the tricks head on!!";
if (m_timeToQuestEnd == null) {
m_timeToQuestEnd = m_TIME_TO_QUEST_END;
}
}
_local3++;
}
_root.m_questProgress.m_trickNosewheelie.text = Math.min(_local9, 3).toString() + "/3";
_root.m_questProgress.m_trickFakie.text = Math.min(_local12, 5).toString() + "/5";
_root.m_questProgress.m_trickNosewheelie.textColor = ((_local9 >= 3) ? 65280 : 0);
_root.m_questProgress.m_trickFakie.textColor = ((_local12 >= 5) ? 65280 : 0);
}
} else if (m_questID == 8) {
_root.m_questProgress.m_trickFakie.text = "0/5";
_root.m_questProgress.m_trickWallride.text = "0/1";
_root.m_questProgress.m_trickFakie.textColor = 0;
_root.m_questProgress.m_trickWallride.textColor = 0;
if (m_tricksController.__get__allTricksMaded().length > 0) {
var _local12 = 0;
var _local7 = 0;
var _local3 = 0;
while (_local3 < m_tricksController.__get__allTricksMaded().length) {
if (m_tricksController.__get__allTricksMaded()[_local3].trickType == CTricksController.__get__TRICK_TYPE_FAKIE()) {
_local12 = _local12 + m_tricksController.__get__allTricksMaded()[_local3].trickQuantity;
}
if (m_tricksController.__get__allTricksMaded()[_local3].trickType == CTricksController.__get__TRICK_TYPE_WALLRIDE()) {
_local7 = _local7 + m_tricksController.__get__allTricksMaded()[_local3].trickQuantity;
}
if ((_local12 >= 5) && (_local7 >= 1)) {
_root.m_tricksText.txt.text = "You got it man - you ripped open them stunts!!!";
if (m_timeToQuestEnd == null) {
m_timeToQuestEnd = m_TIME_TO_QUEST_END;
}
}
_local3++;
}
_root.m_questProgress.m_trickFakie.text = Math.min(_local12, 5).toString() + "/5";
_root.m_questProgress.m_trickWallride.text = Math.min(_local7, 1).toString() + "/1";
_root.m_questProgress.m_trickWallride.textColor = ((_local7 >= 1) ? 65280 : 0);
_root.m_questProgress.m_trickFakie.textColor = ((_local12 >= 5) ? 65280 : 0);
}
} else if (m_questID == 9) {
_root.m_questProgress.m_trickDPG.text = "0/5";
_root.m_questProgress.m_trickDPG.textColor = 0;
if (m_tricksController.__get__allTricksMaded().length > 0) {
var _local10 = 0;
var _local3 = 0;
while (_local3 < m_tricksController.__get__allTricksMaded().length) {
if (m_tricksController.__get__allTricksMaded()[_local3].trickType == CTricksController.__get__TRICK_TYPE_DOUBLEPEGGRIND()) {
_local10 = _local10 + m_tricksController.__get__allTricksMaded()[_local3].trickQuantity;
}
if (_local10 >= 5) {
_root.m_tricksText.txt.text = "Congratulations!!! You've maded all the tricks needed!!!";
if (m_timeToQuestEnd == null) {
m_timeToQuestEnd = m_TIME_TO_QUEST_END;
}
}
_local3++;
}
_root.m_questProgress.m_trickDPG.text = Math.min(_local10, 5).toString() + "/5";
_root.m_questProgress.m_trickDPG.textColor = ((_local10 >= 5) ? 65280 : 0);
}
} else if (m_questID == 10) {
_root.m_questProgress.m_trickIPG.text = "0/1";
_root.m_questProgress.m_trickTPG.text = "0/1";
_root.m_questProgress.m_trickIPG.textColor = 0;
_root.m_questProgress.m_trickTPG.textColor = 0;
if (m_tricksController.__get__allTricksMaded().length > 0) {
var _local11 = 0;
var _local6 = 0;
var _local3 = 0;
while (_local3 < m_tricksController.__get__allTricksMaded().length) {
if (m_tricksController.__get__allTricksMaded()[_local3].trickType == CTricksController.__get__TRICK_TYPE_TOOTHPICKGRIND()) {
_local11 = _local11 + m_tricksController.__get__allTricksMaded()[_local3].trickQuantity;
}
if (m_tricksController.__get__allTricksMaded()[_local3].trickType == CTricksController.__get__TRICK_TYPE_ICEPICKGRIND()) {
_local6 = _local6 + m_tricksController.__get__allTricksMaded()[_local3].trickQuantity;
}
if ((_local11 >= 1) && (_local6 >= 1)) {
_root.m_tricksText.txt.text = "Wham Bam thank you Mam - You did it!!!";
if (m_timeToQuestEnd == null) {
m_timeToQuestEnd = m_TIME_TO_QUEST_END;
}
}
_local3++;
}
_root.m_questProgress.m_trickIPG.text = Math.min(_local6, 1).toString() + "/1";
_root.m_questProgress.m_trickTPG.text = Math.min(_local11, 1).toString() + "/1";
_root.m_questProgress.m_trickIPG.textColor = ((_local6 >= 1) ? 65280 : 0);
_root.m_questProgress.m_trickTPG.textColor = ((_local11 >= 1) ? 65280 : 0);
}
}
}
function onEnterFrame() {
if (_root.allControl.isPauseOn()) {
return(undefined);
}
if (m_deathSimulation && ((getTimer() - m_deathSimulationStart) > 2000)) {
respawn();
return(undefined);
}
if (m_finishSimulation && ((getTimer() - m_finishSimulationStart) > 1000)) {
_root.allControl.onRideFinished(m_tricksController.__get__allTricksMaded());
return(undefined);
}
if (m_isPlaying) {
var _local6 = CAllControl.getTimer();
m_timeToStop = m_timeToStop - (_local6 - m_prevNow);
m_timeSinceStart = m_timeSinceStart + (_local6 - m_prevNow);
_root.m_txtTime.text = formatTime(m_timeToStop);
if (m_timeToStop < 0) {
if (m_questID == CAllControl.__get__FREERIDE_LEVEL()) {
m_bike.stopSounds();
_root.allControl.onRideFinished(m_tricksController.__get__allTricksMaded());
return(undefined);
}
_root.allControl.needGameOver = true;
_root.allControl.onRideFinished(m_tricksController.__get__allTricksMaded());
return(undefined);
}
if ((!demonstrationMode) && (m_timeToQuestEnd != null)) {
m_timeToQuestEnd = m_timeToQuestEnd - (_local6 - m_prevNow);
if (m_timeToQuestEnd < 0) {
isPlaying = (false);
return(undefined);
}
}
m_backWheel.__set__needCheckPlatform(!m_isTricksAccepted);
m_forwardWheel.__set__needCheckPlatform(!m_isTricksAccepted);
m_particleEngine.process();
m_bike.process();
if (m_isTricksAccepted) {
m_tricksController.process(_parent.m_tricksText);
} else {
isTricksAccepted = ((m_isTricksAccepted || (m_backWheel.__get__isOnGround() && (!m_backWheel.__get__isOnPlatform()))) || (m_forwardWheel.__get__isOnGround() && (!m_forwardWheel.__get__isOnPlatform())));
if (m_isTricksAccepted) {
m_bike.reset();
}
}
updateTexts();
var _local4 = new CVector2D(m_forwardWheel._x - m_backWheel._x, m_forwardWheel._y - m_backWheel._y);
var _local8 = m_backWheel._x + (_local4.x / 2);
var _local7 = m_backWheel._y + (_local4.y / 2);
if (m_bikeDirection == m_DIRECTION_LEFT) {
_local4.mult(-1);
}
_x = Math.floor((m_screenWidth / 2) - _local8);
if (_x > 0) {
_x = 0;
} else if (_x < (m_screenWidth - m_width)) {
_x = m_screenWidth - m_width;
}
_x = Math.round(_x);
_y = Math.floor((m_screenHeight / 2) - _local7);
if (_y > 0) {
_y = 0;
} else if (_y < (m_screenHeight - m_height)) {
_y = m_screenHeight - m_height;
}
_y = Math.round(_y);
if (m_horRotationClip != null) {
m_horRotationClip._x = _local8;
m_horRotationClip._y = _local7;
m_horRotationClip._rotation = (_local4.getUgol() * 180) / Math.PI;
}
var _local5 = new CVector2D(0, 0);
_local5.x = _local4.y;
_local5.y = -_local4.x;
_local5.normalize();
m_bikeBody._x = _local8 + (_local5.x * 35);
m_bikeBody._y = _local7 + (_local5.y * 35);
m_bikeBody._rotation = (_local4.getUgol() * 180) / Math.PI;
var _local9 = {x:railings._x, y:railings._y};
var _local3 = {x:m_bikeBody.m_manHad._x, y:m_bikeBody.m_manHad._y};
m_bikeBody.localToGlobal(_local3);
railings._x = -30000;
railings._y = -30000;
if ((!m_deathSimulation) && ((!isValidRealCoords(_local3.x, _local3.y)) || (m_ground.hitTest(_local3.x, _local3.y, true)))) {
simulateDeath();
m_sndDeath.start();
return(undefined);
}
railings._x = _local9.x;
railings._y = _local9.y;
if ((((m_timeSinceStart > 1000) && (!m_finishSimulation)) && (m_exit != undefined)) && (m_exit.hitTest(_local3.x, _local3.y, true))) {
simulateFinish();
}
m_prevNow = _local6;
}
if (!isPlaying) {
m_allBike._visible = false;
m_bikeBody._visible = false;
m_backWheel._visible = false;
m_forwardWheel._visible = false;
m_horRotationClip._visible = false;
}
}
function innerDrawLine(x0, y0, x1, y1) {
var _local4 = {x:0, y:0};
_local4.x = m_width - 1;
_local4.y = m_height - 1;
globalToLocal(_local4);
var _local9 = new CVector2D(x1 - x0, y1 - y0);
m_groundLineDepth++;
m_texture.attachMovie("symGroundEdge", "m_groundEdge" + m_groundLineDepth, m_groundLineDepth + 5000, {_x:x0, _xscale:(_local9.modul() / 46) * 100});
var _local8 = m_ground.createEmptyMovieClip("m_groundLine" + m_groundLineDepth, m_groundLineDepth);
var _local11 = m_groundMask.createEmptyMovieClip("m_groundLine" + m_groundLineDepth, m_groundLineDepth);
_local8._x = 0;
_local8._y = 0;
m_ground["m_groundLine" + m_groundLineDepth].lineStyle(5, 12677668);
m_ground["m_groundLine" + m_groundLineDepth].beginFill(12677668);
m_ground["m_groundLine" + m_groundLineDepth].moveTo(x0, y0);
m_ground["m_groundLine" + m_groundLineDepth].lineTo(x1, y1);
m_ground["m_groundLine" + m_groundLineDepth].lineTo(x1, _local4.y);
m_ground["m_groundLine" + m_groundLineDepth].lineTo(x0, _local4.y);
m_ground["m_groundLine" + m_groundLineDepth].lineTo(x0, y0);
m_ground["m_groundLine" + m_groundLineDepth].endFill();
m_groundMask["m_groundLine" + m_groundLineDepth].lineStyle(5, 12677668);
m_groundMask["m_groundLine" + m_groundLineDepth].beginFill(12677668);
m_groundMask["m_groundLine" + m_groundLineDepth].moveTo(x0, y0);
m_groundMask["m_groundLine" + m_groundLineDepth].lineTo(x1, y1);
m_groundMask["m_groundLine" + m_groundLineDepth].lineTo(x1, _local4.y);
m_groundMask["m_groundLine" + m_groundLineDepth].lineTo(x0, _local4.y);
m_groundMask["m_groundLine" + m_groundLineDepth].lineTo(x0, y0);
m_groundMask["m_groundLine" + m_groundLineDepth].endFill();
m_levelData.push({obj_type:"line", obj_x0:x0, obj_y0:y0, obj_x1:x1, obj_y1:y1});
_root.m_btnUndo._visible = true;
_root.m_btnClear._visible = true;
}
function isValidCoords(x, y) {
return((((x >= 0) && (y >= 0)) && (x < Stage.width)) && (y < Stage.height));
}
function isValidRealCoords(x_, y_) {
var _local2 = {x:x_, y:y_};
globalToLocal(_local2);
return(((_local2.x >= 0) && (_local2.x < m_width)) && (_local2.y < m_height));
}
function drawLine(x0, y0, x1, y1) {
if (!canDrawLines) {
return(undefined);
}
if (x1 < x0) {
var _local6 = x0;
x0 = x1;
x1 = _local6;
_local6 = y0;
y0 = y1;
y1 = _local6;
}
var _local2 = {x:x0, y:y0};
globalToLocal(_local2);
x0 = _local2.x;
y0 = _local2.y;
_local2.x = x1;
_local2.y = y1;
globalToLocal(_local2);
x1 = _local2.x;
y1 = _local2.y;
innerDrawLine(x0, y0, x1, y1);
}
function startHorRotation(isOnFly) {
if (m_horRotationClip == null) {
m_isHorRotatingOnFly = isOnFly;
var _local4 = new CVector2D(m_forwardWheel._x - m_backWheel._x, m_forwardWheel._y - m_backWheel._y);
var _local3 = m_backWheel._x + ((m_forwardWheel._x - m_backWheel._x) / 2);
var _local2 = m_backWheel._y + ((m_forwardWheel._y - m_backWheel._y) / 2);
m_bikeBody._visible = false;
m_backWheel._visible = false;
m_forwardWheel._visible = false;
m_horRotationClip = attachMovie("symHorRotation", "m_horRotationClip", m_HORROTATION_DEPTH, {_x:_local3, _y:_local2, _rotation:(_local4.getUgol() * 180) / Math.PI});
if (m_bikeDirection == m_DIRECTION_RIGHT) {
m_horRotationClip.gotoAndPlay("frmRightRotation");
} else {
m_horRotationClip.gotoAndPlay("frmLeftRotation");
}
}
}
function stopHorRotation() {
m_bikeDirection = ((m_bikeDirection == m_DIRECTION_RIGHT) ? (m_DIRECTION_LEFT) : (m_DIRECTION_RIGHT));
m_backWheel._x = m_forwardWheel.particle.pos.x;
m_backWheel._y = m_forwardWheel.particle.pos.y;
m_forwardWheel._x = m_backWheel.particle.pos.x;
m_forwardWheel._y = m_backWheel.particle.pos.y;
m_backWheel.particle.pos.x = m_backWheel._x;
m_backWheel.particle.pos.y = m_backWheel._y;
m_forwardWheel.particle.pos.x = m_forwardWheel._x;
m_forwardWheel.particle.pos.y = m_forwardWheel._y;
if (m_bikeDirection == m_DIRECTION_RIGHT) {
m_bikeBody._xscale = 100;
} else {
m_bikeBody._xscale = -100;
}
var _local2 = m_forwardWheel.particle.prevPos.duplicate();
m_backWheel.particle.prevPos.copyTo(m_forwardWheel.particle.prevPos);
_local2.copyTo(m_backWheel.particle.prevPos);
m_bikeBody._visible = true;
m_backWheel._visible = true;
m_forwardWheel._visible = true;
m_horRotationClip.removeMovieClip();
m_horRotationClip = null;
m_bike.__set__lastTimeNotWallRideAngle(CAllControl.getTimer());
}
function registerRailing(railing, isPlatform) {
m_railings.push(railing);
if (demonstrationMode || (questID != 0)) {
railing.hideGuides();
}
if ((_root.allControl.questID != 0) && (railing._name == "1")) {
railing.swapDepths(CAllControl.__get__REMOVE_DEPTH());
railing.removeMovieClip();
return(undefined);
}
var _local4 = null;
if (railing.getDepth() < 0) {
m_groundLineDepth++;
}
if (isPlatform) {
_local4 = m_ground.m_platforms.attachMovie("symPlatformMirror1", "m_platform" + m_groundLineDepth.toString(), m_groundLineDepth, {_x:railing._x, _y:railing._y, _rotation:railing._rotation, _xscale:railing._xscale, _yscale:railing._yscale});
} else {
_local4 = m_ground.m_railings.attachMovie("symRailingMirror1", "m_railing" + m_groundLineDepth.toString(), m_groundLineDepth, {_x:railing._x, _y:railing._y, _rotation:railing._rotation, _xscale:railing._xscale, _yscale:railing._yscale});
}
return(_local4);
}
function undo() {
if (m_groundLineDepth > m_MIN_GROUNDLINE_DEPTH) {
m_texture["m_groundEdge" + m_groundLineDepth].removeMovieClip();
m_ground["m_groundLine" + m_groundLineDepth].removeMovieClip();
m_groundMask["m_groundLine" + m_groundLineDepth].removeMovieClip();
m_ground.m_platforms["m_platform" + m_groundLineDepth.toString()].removeMovieClip();
m_ground.m_railings["m_railing" + m_groundLineDepth.toString()].removeMovieClip();
this["m_platform" + m_groundLineDepth.toString()].removeMovieClip();
this["m_railing" + m_groundLineDepth.toString()].removeMovieClip();
m_levelData.pop();
m_groundLineDepth--;
_root.m_btnUndo._visible = m_groundLineDepth > m_MIN_GROUNDLINE_DEPTH;
_root.m_btnClear._visible = m_groundLineDepth > m_MIN_GROUNDLINE_DEPTH;
}
}
function clearGround() {
if (!demonstrationMode) {
while (m_groundLineDepth > m_MIN_GROUNDLINE_DEPTH) {
undo();
}
_root.m_btnUndo._visible = false;
_root.m_btnClear._visible = false;
}
}
function onTrickCompleted() {
m_sndTrick.start();
}
function addRailing(x0, y0, rotation) {
if (x0 == undefined) {
x0 = (-_x) + 200;
}
if (y0 == undefined) {
y0 = (-_x) + 200;
}
if (rotation == undefined) {
rotation = 0;
}
m_groundLineDepth++;
var _local3 = CRailing(attachMovie("symRailing1", "m_railing" + m_groundLineDepth.toString(), m_groundLineDepth, {_x:x0, _y:y0, _rotation:rotation}));
_local3.__set__dataIndex(m_levelData.length);
m_levelData.push({obj_type:"railing", obj_x0:_local3._x, obj_y0:_local3._y, obj_rotation:_local3._rotation});
_root.m_btnUndo._visible = true;
_root.m_btnClear._visible = true;
}
function addPlatform(x0, y0, rotation) {
if (x0 == undefined) {
x0 = (-_x) + 200;
}
if (y0 == undefined) {
y0 = (-_x) + 200;
}
if (rotation == undefined) {
rotation = 0;
}
m_groundLineDepth++;
var _local3 = CPlatform(attachMovie("symPlatform1", "m_platform" + m_groundLineDepth.toString(), m_groundLineDepth, {_x:x0, _y:y0, _rotation:rotation}));
_local3.__set__dataIndex(m_levelData.length);
m_levelData.push({obj_type:"platform", obj_x0:_local3._x, obj_y0:_local3._y, obj_rotation:_local3._rotation});
_root.m_btnUndo._visible = true;
_root.m_btnClear._visible = true;
}
function updateRailingPlatformLevelData(railing) {
m_levelData[railing.__get__dataIndex()].obj_x0 = railing._x;
m_levelData[railing.__get__dataIndex()].obj_y0 = railing._y;
m_levelData[railing.__get__dataIndex()].obj_rotation = railing._rotation;
}
function save_level() {
trace("[");
var _local2 = 0;
while (_local2 < m_levelData.length) {
trace((((((((((((" { obj_type: \"" + m_levelData[_local2].obj_type) + "\", obj_x0: ") + m_levelData[_local2].obj_x0) + ", obj_y0: ") + m_levelData[_local2].obj_y0) + ", obj_x1: ") + m_levelData[_local2].obj_x1) + ", obj_y1: ") + m_levelData[_local2].obj_y1) + ", obj_rotation: ") + m_levelData[_local2].obj_rotation) + " },");
_local2++;
}
trace("]");
}
function load_level() {
var _local3 = [{obj_type:"railing", obj_x0:1830, obj_y0:1360, obj_x1:undefined, obj_y1:undefined, obj_rotation:154.722277764447}, {obj_type:"platform", obj_x0:1485, obj_y0:1330, obj_x1:undefined, obj_y1:undefined, obj_rotation:-144.833563964207}, {obj_type:"line", obj_x0:55, obj_y0:1080, obj_x1:200, obj_y1:1080, obj_rotation:undefined}, {obj_type:"line", obj_x0:200, obj_y0:1080, obj_x1:455, obj_y1:1085, obj_rotation:undefined}, {obj_type:"line", obj_x0:455, obj_y0:1085, obj_x1:650, obj_y1:1085, obj_rotation:undefined}, {obj_type:"line", obj_x0:650, obj_y0:1085, obj_x1:805, obj_y1:1085, obj_rotation:undefined}, {obj_type:"line", obj_x0:805, obj_y0:1085, obj_x1:975, obj_y1:1105, obj_rotation:undefined}, {obj_type:"line", obj_x0:975, obj_y0:1105, obj_x1:1090, obj_y1:1105, obj_rotation:undefined}, {obj_type:"line", obj_x0:1090, obj_y0:1105, obj_x1:1195, obj_y1:1110, obj_rotation:undefined}, {obj_type:"line", obj_x0:1195, obj_y0:1110, obj_x1:1300, obj_y1:1130, obj_rotation:undefined}, {obj_type:"line", obj_x0:1300, obj_y0:1130, obj_x1:1400, obj_y1:1135, obj_rotation:undefined}];
clearGround();
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].obj_type == "line") {
innerDrawLine(_local3[_local2].obj_x0, _local3[_local2].obj_y0, _local3[_local2].obj_x1, _local3[_local2].obj_y1);
} else if (_local3[_local2].obj_type == "railing") {
addRailing(_local3[_local2].obj_x0, _local3[_local2].obj_y0, _local3[_local2].obj_rotation);
} else if (_local3[_local2].obj_type == "platform") {
addPlatform(_local3[_local2].obj_x0, _local3[_local2].obj_y0, _local3[_local2].obj_rotation);
}
_local2++;
}
}
function isPressedAccel() {
return(((((!m_finishSimulation) && (!m_deathSimulation)) && (Key.isDown(38))) && (m_backWheel.__get__isOnGround())) && (m_bike.__get__movingOutFromRailings() || (!m_backWheel.__get__isOnRailings())));
}
function isPressedBrake() {
return(((!m_finishSimulation) && (!m_deathSimulation)) && (Key.isDown(40)));
}
function isPressedLeft() {
if (m_bikeDirection == m_DIRECTION_RIGHT) {
return(((!m_finishSimulation) && (!m_deathSimulation)) && (Key.isDown(37)));
}
return(((!m_finishSimulation) && (!m_deathSimulation)) && (Key.isDown(39)));
}
function isPressedRight() {
if (m_bikeDirection == m_DIRECTION_RIGHT) {
return(((!m_finishSimulation) && (!m_deathSimulation)) && (Key.isDown(39)));
}
return(((!m_finishSimulation) && (!m_deathSimulation)) && (Key.isDown(37)));
}
function isPressedSpace() {
return(((!m_finishSimulation) && (!m_deathSimulation)) && (Key.isDown(32)));
}
static var m_SCREEN_WIDTH = 550;
static var m_SCREEN_HEIGHT = 400;
static var m_DRAW_SCALE = 100;
static var m_WHEEL_MASS = 4;
static var m_HEAD_MASS = 2;
static var m_DIRECTION_RIGHT = 1;
static var m_DIRECTION_LEFT = 2;
static var m_GROUND_EDGE_DEPTH = 2;
static var m_CONTOUR_DEPTH = 10;
static var m_QUEST_RAILINGS_DEPTH = 20;
static var m_QUEST_PLATFORMS_DEPTH = 21;
static var m_QUEST_EXIT_DEPTH = 22;
static var m_BACKWHEEL_DEPTH = 30000;
static var m_FORWARDWHEEL_DEPTH = 30001;
static var m_BIKEBODY_DEPTH = 30002;
static var m_HORROTATION_DEPTH = 40;
static var m_GROUND_MASK_DEPTH = 2;
static var m_PLATFORM_DEPTH = 60;
static var m_ALLBIKE_DEPTH = 30003;
static var m_QUESTGROUND_GROUNDDEPTH = 10;
static var m_PLATFORMS_GROUNDDEPTH = 20;
static var m_MIN_GROUNDLINE_DEPTH = 100;
static var m_TIME_TO_QUEST_END = 2000;
var m_levelData = null;
var m_width = m_SCREEN_WIDTH;
var m_height = m_SCREEN_HEIGHT;
var m_canDrawLines = true;
var m_particleEngine = null;
var m_allBike = null;
var m_bike = null;
var m_bikeBody = null;
var m_backWheel = null;
var m_forwardWheel = null;
var m_headParticle = null;
var m_backWheelParticle = null;
var m_forwardWheelParticle = null;
var m_ground = null;
var m_groundMask = null;
var m_groundLineDepth = m_MIN_GROUNDLINE_DEPTH;
var m_platform = null;
var m_bikeDirection = m_DIRECTION_RIGHT;
var m_isPlaying = false;
var m_isTricksAccepted = false;
var m_tricksController = null;
var m_horRotationClip = null;
var m_isHorRotatingOnFly = false;
var m_startBackWheelPos = null;
var m_startForwardWheelPos = null;
var m_startBodyPos = null;
static var m_instance = null;
var m_prevNow = 0;
var m_questID = 0;
var m_timeToQuestEnd = null;
var m_screenWidth = m_SCREEN_WIDTH;
var m_screenHeight = m_SCREEN_HEIGHT;
var m_texture = null;
var m_contour = null;
var m_sndDeath = null;
var m_respawning = false;
var m_forwardWheelStartPos = null;
var m_backWheelStartPos = null;
var m_bikeBodyStartPos = null;
var m_platformStartPos = null;
var m_startDirection = 0;
var m_railings = null;
var m_sndTrick = null;
var m_exit = null;
var m_deathSimulation = false;
var m_deathSimulationStart = 0;
var m_finishSimulation = false;
var m_finishSimulationStart = 0;
var m_timeSinceStart = 0;
}
Symbol 619 MovieClip [__Packages.CParticleEngine] Frame 0
class CParticleEngine
{
var hit_mc, prevTime;
function CParticleEngine () {
}
function clear() {
while (p_array.pop() != undefined) {
}
while (w_array.pop() != undefined) {
}
while (c_array.pop() != undefined) {
}
}
function clearConstraints() {
while (c_array.pop() != undefined) {
}
}
function setHitMovie(hit_mc_) {
hit_mc = hit_mc_;
}
function getHitMovie() {
return(hit_mc);
}
function addParticle(p) {
p_array.push(p);
}
function addWheel(wheel, p, maxSpeed, radius, notReinit) {
if (!notReinit) {
wheel.init(p, maxSpeed, radius);
}
w_array.push(wheel);
}
function addSpringConstraint(p1, p2, koeffStiff1, koeffStiff2) {
var _local2 = new CSpringConstraint(p1, p2, koeffStiff1, koeffStiff2);
_local2.field = field;
c_array.push(_local2);
}
function addPenetrationConstraint(p0, p1, p2) {
var _local2 = new CPenetrationConstraint(p0, p1, p2);
c_array.push(_local2);
}
function start() {
prevTime = CAllControl.getTimer();
}
function computeForces() {
var _local2;
var _local3 = p_array.length;
_local2 = 0;
while (_local2 < _local3) {
p_array[_local2].acc.x = 0;
p_array[_local2].acc.y = gravity * p_array[_local2].mass;
_local2++;
}
}
function clearForces() {
var _local4 = w_array.length;
var _local2;
var _local3;
_local2 = 0;
while (_local2 < _local4) {
_local3 = w_array[_local2];
_local3.addedAcc.x = (_local3.addedAcc.y = 0);
_local2++;
}
}
function applyManFrictions() {
if (field.isPressedLeft()) {
field.__get__bike().toLeft();
} else if (field.isPressedRight()) {
field.__get__bike().toRight();
}
var _local3 = w_array.length;
var _local2;
_local2 = 0;
while (_local2 < _local3) {
w_array[_local2].applyAddedAcc();
_local2++;
}
}
function verlet(dTime) {
var _local9 = 0.995;
var _local2;
var _local6 = p_array.length;
_local2 = 0;
while (_local2 < _local6) {
p_array[_local2].verlet(dTime, _local9);
_local2++;
}
_local6 = w_array.length;
var _local7 = 0;
var _local10 = field.isPressedAccel();
var _local8 = field.isPressedBrake();
if (_local8) {
lastTimeBrakeWasPressed = CAllControl.getTimer();
}
if (_local10) {
_local7 = ((field.__get__bikeDirection() == CField.__get__DIRECTION_RIGHT()) ? 2 : -2);
}
if (_local8) {
_local7 = ((field.__get__bikeDirection() == CField.__get__DIRECTION_RIGHT()) ? -0.6 : 0.6);
}
_local2 = 0;
while (_local2 < _local6) {
if (!_local8) {
w_array[_local2].process(dTime, (w_array[_local2].maxAccSpeed * _local7) / 2, 0.99);
} else if (_local2 > 0) {
w_array[_local2].process(dTime, 0, 0.99);
} else {
var _local3 = w_array[_local2].particle.getVelocityVector();
var _local5 = ((_local3.x > 0) ? 1 : -1);
w_array[_local2].process(dTime, ((-_local5) * _local3.modul()) * 10, 0.99);
}
_local2++;
}
}
function checkCollisions() {
var _local2;
var _local3 = w_array.length;
_local2 = 0;
while (_local2 < _local3) {
w_array[_local2].checkCollision(hit_mc);
_local2++;
}
}
function checkConstraints(dTime) {
var _local2;
var _local3 = c_array.length;
_local2 = 0;
while (_local2 < _local3) {
c_array[_local2].resolve();
_local2++;
}
}
function process() {
computeForces();
applyManFrictions();
verlet(t);
checkConstraints(t);
checkCollisions();
clearForces();
}
var lastTimeBrakeWasPressed = 0;
var p_array = new Array();
var w_array = new Array();
var c_array = new Array();
var t = 0.04;
var maxSteps = 1;
var wasPressedAccel = false;
var wasPressedBrake = false;
var field = null;
static var gravity = 5;
}
Symbol 620 MovieClip [__Packages.CSpringConstraint] Frame 0
class CSpringConstraint
{
var p1, p2, koeffStiffPress, koeffStiffStretch, relaxLen;
function CSpringConstraint (p1_, p2_, koeffStiffPress_, koeffStiffStretch_) {
p1 = p1_;
p2 = p2_;
koeffStiffPress = koeffStiffPress_;
koeffStiffStretch = koeffStiffStretch_;
var _local2 = new CVector2D(p1.pos.x - p2.pos.x, p1.pos.y - p2.pos.y);
relaxLen = _local2.modul();
}
function resolve() {
var _local2 = new CVector2D(p1.pos.x - p2.pos.x, p1.pos.y - p2.pos.y);
var _local4 = _local2.modul();
var _local8 = (_local4 - relaxLen) / _local4;
var _local7;
if (_local4 > relaxLen) {
_local7 = koeffStiffStretch;
} else {
_local7 = koeffStiffPress;
}
var _local10 = p1.pos.duplicate();
var _local9 = p2.pos.duplicate();
var _local6 = p1.mass;
var _local5 = p2.mass;
var _local3 = (_local8 * _local7) / (_local6 + _local5);
p1.pos.x = p1.pos.x - ((_local2.x * _local6) * _local3);
p1.pos.y = p1.pos.y - ((_local2.y * _local6) * _local3);
p2.pos.x = p2.pos.x + ((_local2.x * _local5) * _local3);
p2.pos.y = p2.pos.y + ((_local2.y * _local5) * _local3);
}
var field = null;
}
Symbol 621 MovieClip [__Packages.CPenetrationConstraint] Frame 0
class CPenetrationConstraint
{
var p0, p1, p2, sign;
function CPenetrationConstraint (p0_, p1_, p2_) {
p0 = p0_;
p1 = p1_;
p2 = p2_;
sign = p0.pos.getDistanceTo(p1.pos, p2.pos);
if (sign < 0) {
sign = -1;
} else {
sign = 1;
}
}
function resolve() {
var _local3;
var _local2;
_local3 = p0.pos.getDistanceTo(p1.pos, p2.pos);
if ((sign * _local3) <= 2) {
_local2 = new CVector2D(p2.pos.x, p2.pos.y);
_local2.minus(p1.pos);
_local2.normalize();
_local2.rotate((Math.PI/2) * sign);
_local2.mult(Math.abs(_local3 + 1));
p1.pos.minus(_local2);
}
}
}
Symbol 622 MovieClip [__Packages.CAllControl] Frame 0
class CAllControl extends MovieClip
{
function CAllControl () {
super();
m_keys = new Array();
m_backSound = new CMySound(this);
m_backSound.attachSound("sndBackground");
m_backMenuSound = new CMySound(this);
m_backMenuSound.attachSound("sndMenuBackground");
m_backMenuSound.start(0, -1);
}
function isPauseOn() {
return(pauseOn);
}
function enablePause() {
trace("enable Pause " + CField.getInstance());
pauseOn = true;
CField.getInstance().enablePause();
}
function disablePause() {
trace("disable Pause " + CField.getInstance());
pauseOn = false;
CField.getInstance().disablePause();
}
static function get FREERIDE_LEVEL() {
return(m_FREERIDE_LEVEL);
}
static function get FIRSTTRAINING_LEVEL() {
return(m_FIRSTTRAINING_LEVEL);
}
static function get FIRSTQUEST_LEVEL() {
return(m_FIRSTQUEST_LEVEL);
}
static function get LASTQUEST_LEVEL() {
return(m_LASTQUEST_LEVEL);
}
static function get WRITEQUEST_LEVEL() {
return(m_WRITEQUEST_LEVEL);
}
static function get REMOVE_DEPTH() {
return(m_REMOVE_DEPTH);
}
function get soundOn() {
return(m_soundOn);
}
function set soundOn(newVal) {
m_soundOn = newVal;
if (!m_soundOn) {
var _local3 = new Sound(_root);
_local3.setVolume(0);
m_backSound.stop();
} else {
var _local3 = new Sound(_root);
_local3.setVolume(100);
m_backSound.start(0, -1);
}
//return(soundOn);
}
function get tricksMaded() {
return(m_tricksMaded);
}
function get questID() {
return(m_questID);
}
function get levelTime() {
if (m_questID == m_FREERIDE_LEVEL) {
return(m_FREERIDE_TIME);
}
if (m_questID < m_FIRSTQUEST_LEVEL) {
return(m_TRAINING_LEVEL_TIME[m_questID - m_FIRSTTRAINING_LEVEL]);
}
if (m_questID < m_LASTQUEST_LEVEL) {
return(m_ADVENTURE_LEVEL_TIME[m_questID - m_FIRSTQUEST_LEVEL]);
}
return(180000);
}
function get score() {
return(m_score);
}
function set score(newVal) {
m_score = newVal;
//return(score);
}
function get needGameOver() {
return(m_needGameOver);
}
function set needGameOver(newVal) {
m_needGameOver = newVal;
//return(needGameOver);
}
function onLoad() {
m_prevTimer = (m_timer = getTimer());
}
function onEnterFrame() {
if (m_writing) {
m_writingFrameCount++;
if (Key.isDown(37)) {
m_keys.push({frame:m_writingFrameCount, key:"left"});
}
if (Key.isDown(39)) {
m_keys.push({frame:m_writingFrameCount, key:"right"});
}
if (Key.isDown(38)) {
m_keys.push({frame:m_writingFrameCount, key:"up"});
}
if (Key.isDown(40)) {
m_keys.push({frame:m_writingFrameCount, key:"down"});
}
if (Key.isDown(32)) {
m_keys.push({frame:m_writingFrameCount, key:"space"});
}
if (Key.isDown(35)) {
trace("[");
var _local2 = 0;
while (_local2 < m_keys.length) {
trace((((("{ frame: " + m_keys[_local2].frame) + ", key: \"") + m_keys[_local2].key) + "\"") + " },");
_local2++;
}
trace(("{ frame: " + m_writingFrameCount) + ", key: \"stop\" }");
trace("]");
}
}
}
static function startTimer() {
m_timerStarted = true;
m_prevTimer = (m_timer = getTimer());
}
static function stopTimer() {
m_timerStarted = false;
}
static function getTimer() {
if (m_timerStarted) {
var _local1 = getTimer();
m_timer = m_timer + (_local1 - m_prevTimer);
m_prevTimer = _local1;
}
return(m_timer);
}
static function getRealTimer() {
var _local1 = getTimer();
m_timer = m_timer + (_local1 - m_prevTimer);
m_prevTimer = _local1;
return(m_timer);
}
function showMainMenu() {
if (!m_backMenuSound.__get__isPlaying()) {
m_backSound.stop();
m_backMenuSound.start(0, -1);
}
_root.score = 0;
_root.gotoAndStop("frmMenu");
}
function showHighScores() {
if (!m_backMenuSound.__get__isPlaying()) {
m_backSound.stop();
m_backMenuSound.start(0, -1);
}
trace("high scores");
_root.gotoAndStop("frmHighScores");
}
function startFreeRideMode() {
if (!m_backSound.__get__isPlaying()) {
m_backSound.start(0, -1);
m_backMenuSound.stop();
}
m_score = 0;
m_writing = false;
m_questID = m_FREERIDE_LEVEL;
_root.gotoAndStop("frmGame");
}
function startTrainingMode() {
if (!m_backSound.__get__isPlaying()) {
m_backSound.start(0, -1);
m_backMenuSound.stop();
}
m_score = 0;
m_writing = false;
m_questID = m_FIRSTTRAINING_LEVEL;
_root.gotoAndStop("frmQuest");
}
function startQuestMode() {
if (!m_backSound.__get__isPlaying()) {
m_backSound.start(0, -1);
m_backMenuSound.stop();
}
m_score = 0;
m_writing = false;
m_questID = m_FIRSTQUEST_LEVEL;
_root.gotoAndStop("frmGame");
}
function showRules() {
if (!m_backMenuSound.__get__isPlaying()) {
m_backSound.stop();
m_backMenuSound.start(0, -1);
}
_root.attachMovie("symRules", "m_rules", 1);
}
function onRideFinished(tricksMaded) {
if (!m_backMenuSound.__get__isPlaying()) {
m_backSound.stop();
m_backMenuSound.start(0, -1);
}
m_tricksMaded = tricksMaded;
_root.gotoAndStop("frmScores");
}
function startNextLevel() {
if (m_needGameOver) {
gameOver();
return(undefined);
}
if (m_questID == 0) {
startFreeRideMode();
} else if (m_questID < (m_FIRSTQUEST_LEVEL - 1)) {
if (!m_backMenuSound.__get__isPlaying()) {
m_backSound.stop();
m_backMenuSound.start(0, -1);
}
m_questID++;
_root.gotoAndStop("frmQuest");
} else if ((m_questID >= m_FIRSTQUEST_LEVEL) && (m_questID < (m_LASTQUEST_LEVEL - 1))) {
if (!m_backSound.__get__isPlaying()) {
m_backSound.start(0, -1);
m_backMenuSound.stop();
}
m_questID++;
_root.gotoAndStop("frmGame");
} else if (m_questID >= m_FIRSTQUEST_LEVEL) {
gameWin();
} else {
showMainMenu();
}
}
function startQuest() {
if (!m_backSound.__get__isPlaying()) {
m_backSound.start(0, -1);
m_backMenuSound.stop();
}
m_writing = false;
_root.gotoAndStop("frmGame");
}
function startWriting() {
m_questID = m_WRITEQUEST_LEVEL;
m_writing = true;
m_writingFrameCount = 0;
m_keys.length = 0;
_root.gotoAndStop("frmGame");
}
function gameOver() {
m_needGameOver = false;
if (!m_backMenuSound.__get__isPlaying()) {
m_backSound.stop();
m_backMenuSound.start(0, -1);
}
if (m_questID < m_FIRSTQUEST_LEVEL) {
_root.gotoAndStop("frmGameOverTutorial");
} else {
_root.gotoAndStop("frmGameOver");
}
}
function gameWin() {
m_needGameOver = false;
if (!m_backMenuSound.__get__isPlaying()) {
m_backSound.stop();
m_backMenuSound.start(0, -1);
}
if (m_questID < m_FIRSTQUEST_LEVEL) {
_root.gotoAndStop("frmYouWinTutorial");
} else {
_root.gotoAndStop("frmYouWin");
}
}
static var m_REMOVE_DEPTH = 32000;
static var m_FREERIDE_LEVEL = 0;
static var m_FIRSTTRAINING_LEVEL = 1;
static var m_FIRSTQUEST_LEVEL = 11;
static var m_LASTQUEST_LEVEL = 21;
static var m_WRITEQUEST_LEVEL = 99;
static var m_TRAINING_LEVEL_TIME = new Array(60000, 60000, 60000, 60000, 60000, 60000, 60000, 60000, 60000, 60000);
static var m_ADVENTURE_LEVEL_TIME = new Array(120000, 180000, 240000, 300000, 360000, 420000, 480000, 540000, 600000, 660000);
static var m_FREERIDE_TIME = 180000;
static var m_prevTimer = 0;
static var m_timer = 0;
static var m_timerStarted = false;
static var m_tricksMaded = null;
static var m_questID = 0;
var m_soundOn = true;
var m_keys = null;
var m_writing = false;
var m_writingFrameCount = 0;
var m_backSound = null;
var m_backMenuSound = null;
var m_score = 0;
var m_needGameOver = false;
var m_timeToStop = 0;
var pauseOn = false;
}
Symbol 623 MovieClip [__Packages.CMySound] Frame 0
class CMySound extends Sound
{
function CMySound (mc) {
super(mc);
}
function get isPlaying() {
return(m_isPlaying);
}
function onSoundComplete() {
m_isPlaying = false;
}
function attachSound(idName) {
m_myName = idName;
super.attachSound(idName);
}
function start(secondOffset, loops) {
if (!_root.allControl.soundOn) {
return(undefined);
}
m_isPlaying = true;
if (loops < 0) {
loops = 64000;
}
super.start(secondOffset, loops);
}
function stop(idName) {
if (m_isPlaying) {
m_isPlaying = false;
super.stop(m_myName);
}
}
var userData = null;
var m_myName = "";
var m_isPlaying = false;
}
Symbol 624 MovieClip [__Packages.CAllBike] Frame 0
class CAllBike extends MovieClip
{
var _xscale;
function CAllBike () {
super();
}
function get field() {
return(m_field);
}
function set field(newVal) {
m_field = newVal;
//return(field);
}
function get bikeBody() {
return(m_bikeBody);
}
function get backWheel() {
return(m_backWheel);
}
function get forwardWheel() {
return(m_forwardWheel);
}
function get platform() {
return(m_platform);
}
function get upArrow() {
return(m_upArrow);
}
function get downArrow() {
return(m_downArrow);
}
function get leftArrow() {
return(m_leftArrow);
}
function get rightArrow() {
return(m_rightArrow);
}
function updateFunctions() {
m_dragArea.onPress = function () {
this._parent._parent.canDrawLines = false;
this._parent.startDrag();
};
m_dragArea.onRelease = function () {
this._parent.stopDrag();
this._parent._parent.canDrawLines = true;
};
if (_xscale == 100) {
m_directionLeft.onPress = function () {
this.m_field.bikeDirection = CField.DIRECTION_LEFT;
this._parent._xscale = -100;
this._parent.updateFunctions();
};
} else {
m_directionLeft.onPress = function () {
this.m_field.bikeDirection = CField.DIRECTION_RIGHT;
this._parent._xscale = 100;
this._parent.updateFunctions();
};
}
}
function onLoad() {
updateFunctions();
}
var m_dragArea = null;
var m_directionLeft = null;
var m_directionRight = null;
var m_field = null;
var m_bikeBody = null;
var m_backWheel = null;
var m_forwardWheel = null;
var m_platform = null;
var m_upArrow = null;
var m_downArrow = null;
var m_leftArrow = null;
var m_rightArrow = null;
}
Symbol 625 MovieClip [__Packages.CBike] Frame 0
class CBike
{
function CBike (field, bikeBody, backWheel, forwardWheel) {
m_field = field;
m_bikeBody = bikeBody;
m_backWheel = backWheel;
m_forwardWheel = forwardWheel;
m_lastTimeNotWallRideAngle = CAllControl.getTimer();
m_sndRiding = new CMySound(m_bikeBody._parent);
m_sndRiding.attachSound("sndRiding");
}
function get field() {
return(m_field);
}
function get backWheel() {
return(m_backWheel);
}
function get forwardWheel() {
return(m_forwardWheel);
}
function get backWheelParticle() {
return(m_backWheel.particle);
}
function get forwardWheelParticle() {
return(m_forwardWheel.particle);
}
function get totalFlipAngle() {
return(m_totalFlipAngle);
}
function set totalFlipAngle(newVal) {
m_totalFlipAngle = newVal;
//return(totalFlipAngle);
}
function get prevTotalFlipAngle() {
return(m_prevTotalFlipAngle);
}
function set prevTotalFlipAngle(newVal) {
m_prevTotalFlipAngle = newVal;
//return(prevTotalFlipAngle);
}
function get lastTimeNotWallRideAngle() {
return(m_lastTimeNotWallRideAngle);
}
function set lastTimeNotWallRideAngle(newVal) {
m_lastTimeNotWallRideAngle = newVal;
//return(lastTimeNotWallRideAngle);
}
function get angle() {
return((m_prevFrameAngle * 180) / Math.PI);
}
function get lastTimeBrakeWasPressed() {
return(m_field.__get__particleEngine().lastTimeBrakeWasPressed);
}
function get movingOutFromRailings() {
return(m_movingOutFromRailings);
}
function calcNormalVector() {
var _local2 = m_forwardWheel.particle.pos.minusNew(m_backWheel.particle.pos);
_local2.normalize();
var _local3 = _local2.x;
_local2.x = -_local2.y;
_local2.y = _local3;
return(_local2);
}
function fromLeft() {
if (m_manState == m_MAN_STATE_MOVE_TO_LEFT) {
var _local3 = m_bikeBody.m_man.mc._currentframe;
var _local2 = m_bikeBody.m_rleg.mc._currentframe;
m_bikeBody.m_man.gotoAndStop("fromLeft");
m_bikeBody.m_rleg.gotoAndStop("fromLeft");
m_bikeBody.m_lleg.gotoAndStop("fromLeft");
m_bikeBody.m_man.mc.gotoAndPlay((m_bikeBody.m_man.mc._totalframes - _local3) + 1);
m_bikeBody.m_rleg.mc.gotoAndStop((m_bikeBody.m_man.mc._totalframes - _local2) + 1);
m_bikeBody.m_lleg.mc.gotoAndStop((m_bikeBody.m_man.mc._totalframes - _local2) + 1);
m_manState = m_MAN_STATE_MOVE_FROM_LEFT;
} else if (m_manState == m_MAN_STATE_IN_LEFT) {
m_bikeBody.m_man.gotoAndStop("fromLeft");
m_bikeBody.m_rleg.gotoAndStop("fromLeft");
m_bikeBody.m_lleg.gotoAndStop("fromLeft");
m_manState = m_MAN_STATE_MOVE_FROM_LEFT;
}
}
function fromRight() {
if (m_manState == m_MAN_STATE_MOVE_TO_RIGHT) {
var _local3 = m_bikeBody.m_man.mc._currentframe;
var _local2 = m_bikeBody.m_rleg.mc._currentframe;
m_bikeBody.m_man.gotoAndStop("fromRight");
m_bikeBody.m_rleg.gotoAndStop("fromRight");
m_bikeBody.m_lleg.gotoAndStop("fromRight");
m_bikeBody.m_man.mc.gotoAndPlay((m_bikeBody.m_man.mc._totalframes - _local3) + 1);
m_bikeBody.m_rleg.mc.gotoAndPlay((m_bikeBody.m_man.mc._totalframes - _local2) + 1);
m_bikeBody.m_lleg.mc.gotoAndPlay((m_bikeBody.m_man.mc._totalframes - _local2) + 1);
m_manState = m_MAN_STATE_MOVE_FROM_RIGHT;
} else if (m_manState == m_MAN_STATE_IN_RIGHT) {
m_bikeBody.m_man.gotoAndStop("fromRight");
m_bikeBody.m_rleg.gotoAndStop("fromRight");
m_bikeBody.m_lleg.gotoAndStop("fromRight");
m_manState = m_MAN_STATE_MOVE_FROM_RIGHT;
}
}
function reset() {
m_lastTimeNotWallRideAngle = CAllControl.getTimer();
m_totalFlipAngle = 0;
var _local2 = m_forwardWheel.particle.pos.minusNew(m_backWheel.particle.pos);
var _local3 = _local2.getUgol();
m_prevFrameAngle = _local3;
m_prevTotalFlipAngle = 0;
}
function process() {
var _local6 = m_forwardWheel.particle.pos.minusNew(m_backWheel.particle.pos);
if (m_field.__get__bikeDirection() == CField.__get__DIRECTION_LEFT()) {
_local6.mult(-1);
}
var _local3 = _local6.getUgol();
var _local5 = (_local3 * 180) / Math.PI;
if ((_local5 > -50) && (_local5 < 50)) {
m_lastTimeNotWallRideAngle = CAllControl.getTimer();
}
if ((!backWheel.__get__isOnGround()) && (!forwardWheel.__get__isOnGround())) {
if ((_local3 <= 0) && (m_prevFrameAngle >= 0)) {
if (m_prevFrameAngle > (Math.PI/2)) {
m_totalFlipAngle = m_totalFlipAngle + ((Math.PI - m_prevFrameAngle) + (Math.PI + _local3));
} else {
m_totalFlipAngle = m_totalFlipAngle + ((-m_prevFrameAngle) + _local3);
}
} else if ((_local3 >= 0) && (m_prevFrameAngle <= 0)) {
if (m_prevFrameAngle < -1.5707963267949) {
m_totalFlipAngle = m_totalFlipAngle + ((-(Math.PI + m_prevFrameAngle)) - (Math.PI - _local3));
} else {
m_totalFlipAngle = m_totalFlipAngle + ((-m_prevFrameAngle) + _local3);
}
} else {
m_totalFlipAngle = m_totalFlipAngle + (_local3 - m_prevFrameAngle);
}
} else {
m_prevTotalFlipAngle = m_totalFlipAngle;
m_totalFlipAngle = 0;
}
if (!m_movingOutFromRailings) {
var _local7 = (m_backWheel.__get__isOnRailings() && (m_forwardWheel.__get__isOnRailings())) && (((m_field.__get__bikeDirection() == CField.__get__DIRECTION_RIGHT()) && (m_forwardWheel._x <= m_backWheel._x)) || ((m_field.__get__bikeDirection() == CField.__get__DIRECTION_LEFT()) && (m_forwardWheel._x >= m_backWheel._x)));
if ((_local7 || (m_backWheel.__get__isOnRailings() && (m_backWheel.particle.getVelocityVector().modul() < 2))) || (m_forwardWheel.__get__isOnRailings() && (m_forwardWheel.particle.getVelocityVector().modul() < 2))) {
m_movingOutFromRailings = true;
m_field.__get__railings()._x = -30000;
m_field.__get__railings()._y = -30000;
}
} else {
var _local4 = false;
m_field.__get__railings()._x = 0;
m_field.__get__railings()._y = 0;
m_backWheel.checkRailingsCollision();
if (!m_backWheel.__get__isOnRailings()) {
m_forwardWheel.checkRailingsCollision();
}
if ((!m_backWheel.__get__isOnRailings()) && (!m_forwardWheel.__get__isOnRailings())) {
var _local2 = {x:m_field.__get__bikeBody().m_manHitPoint1._x, y:m_field.__get__bikeBody().m_manHitPoint1._y};
m_field.__get__bikeBody().localToGlobal(_local2);
_local4 = m_field.__get__railings().hitTest(_local2.x, _local2.y, true);
if (!_local4) {
_local2.x = m_field.__get__bikeBody().m_manHitPoint2._x;
_local2.y = m_field.__get__bikeBody().m_manHitPoint2._y;
m_field.__get__bikeBody().localToGlobal(_local2);
_local4 = m_field.__get__railings().hitTest(_local2.x, _local2.y, true);
if (!_local4) {
_local2.x = m_field.__get__bikeBody().m_manHad._x;
_local2.y = m_field.__get__bikeBody().m_manHad._y;
m_field.__get__bikeBody().localToGlobal(_local2);
_local4 = m_field.__get__railings().hitTest(_local2.x, _local2.y, true);
}
}
}
if ((_local4 || (m_backWheel.__get__isOnRailings())) || (m_forwardWheel.__get__isOnRailings())) {
m_field.__get__railings()._x = -30000;
m_field.__get__railings()._y = -30000;
} else {
m_movingOutFromRailings = false;
}
}
if ((!field.isPressedLeft()) && (!field.isPressedRight())) {
if ((m_manState == m_MAN_STATE_MOVE_TO_LEFT) || (m_manState == m_MAN_STATE_IN_LEFT)) {
fromLeft();
} else if ((m_manState == m_MAN_STATE_MOVE_TO_RIGHT) || (m_manState == m_MAN_STATE_IN_RIGHT)) {
fromRight();
}
}
if (((m_manState == m_MAN_STATE_STAY) || (m_manState == m_MAN_STATE_IN_LEFT)) || (m_manState == m_MAN_STATE_IN_RIGHT)) {
if (field.isPressedAccel()) {
startLeg();
} else {
stopLeg();
}
}
m_twistPedalsPrevFrame = m_bikeBody.m_rleg.mc._currentframe;
m_prevFrameAngle = _local3;
var _local8 = CAllControl.getTimer();
if (m_field.isPressedAccel()) {
m_lastTimeAccelPressed = _local8;
}
if (m_field.isPressedAccel()) {
if (!m_sndRiding.__get__isPlaying()) {
m_sndRiding.start(0, -1);
}
} else if ((!m_field.isPressedAccel()) && (m_sndRiding.__get__isPlaying())) {
}
}
function toLeft() {
var _local2 = calcNormalVector();
var _local3 = Math.abs(_local2.y) / 2;
var _local5 = (!m_backWheel.__get__isOnGround()) && (!m_forwardWheel.__get__isOnGround());
var _local4 = ((!_local5) ? (m_WHEEL_LEAN_GROUND) : (m_WHEEL_LEAN_AIR));
if (m_field.__get__bikeDirection() == CField.__get__DIRECTION_RIGHT()) {
if (!_local5) {
m_forwardWheel.addedAcc.x = m_forwardWheel.addedAcc.x - (((_local2.x * CParticleEngine.gravity) * _local3) + 4);
m_forwardWheel.addedAcc.y = m_forwardWheel.addedAcc.y - (((_local2.y * CParticleEngine.gravity) * (m_field.isPressedAccel() ? 1.95 : 1)) * _local3);
m_backWheel.addedAcc.x = m_backWheel.addedAcc.x + ((((_local2.x * CParticleEngine.gravity) * _local3) * _local4) + 4);
m_backWheel.addedAcc.y = m_backWheel.addedAcc.y + (((_local2.y * CParticleEngine.gravity) * _local3) * _local4);
} else {
m_forwardWheel.addedAcc.x = m_forwardWheel.addedAcc.x - (((_local2.x * CParticleEngine.gravity) / 4) * _local3);
m_forwardWheel.addedAcc.y = m_forwardWheel.addedAcc.y - (((_local2.y * CParticleEngine.gravity) / 4) * _local3);
m_backWheel.addedAcc.x = m_backWheel.addedAcc.x + ((((_local2.x * CParticleEngine.gravity) / 4) * _local3) * _local4);
m_backWheel.addedAcc.y = m_backWheel.addedAcc.y + ((((_local2.y * CParticleEngine.gravity) / 4) * _local3) * _local4);
}
} else if (!_local5) {
m_backWheel.addedAcc.x = m_backWheel.addedAcc.x - (((_local2.x * CParticleEngine.gravity) * _local3) + 4);
m_backWheel.addedAcc.y = m_backWheel.addedAcc.y - (((_local2.y * CParticleEngine.gravity) * (m_field.isPressedAccel() ? 1 : 0)) * _local3);
m_forwardWheel.addedAcc.x = m_forwardWheel.addedAcc.x + ((((_local2.x * CParticleEngine.gravity) * _local3) * _local4) + 4);
m_forwardWheel.addedAcc.y = m_forwardWheel.addedAcc.y + (((_local2.y * CParticleEngine.gravity) * (m_field.isPressedAccel() ? 1.95 : 1)) * _local3);
} else {
m_backWheel.addedAcc.x = m_backWheel.addedAcc.x - (((_local2.x * CParticleEngine.gravity) / 4) * _local3);
m_backWheel.addedAcc.y = m_backWheel.addedAcc.y - (((_local2.y * CParticleEngine.gravity) / 4) * _local3);
m_forwardWheel.addedAcc.x = m_forwardWheel.addedAcc.x + ((((_local2.x * CParticleEngine.gravity) / 4) * _local3) * _local4);
m_forwardWheel.addedAcc.y = m_forwardWheel.addedAcc.y + ((((_local2.y * CParticleEngine.gravity) / 4) * _local3) * _local4);
}
if (m_manState == m_MAN_STATE_STAY) {
m_manState = m_MAN_STATE_MOVE_TO_LEFT;
m_bikeBody.m_man.gotoAndStop("toLeft");
m_bikeBody.m_rleg.gotoAndStop("toLeft");
m_bikeBody.m_lleg.gotoAndStop("toLeft");
} else if (m_manState == m_MAN_STATE_MOVE_FROM_LEFT) {
var _local6 = m_bikeBody.m_man.mc._currentframe;
m_manState = m_MAN_STATE_MOVE_TO_LEFT;
m_bikeBody.m_man.gotoAndStop("toLeft");
m_bikeBody.m_rleg.gotoAndStop("toLeft");
m_bikeBody.m_lleg.gotoAndStop("toLeft");
m_bikeBody.m_man.mc.gotoAndPlay((m_bikeBody.m_man.mc._totalframes - _local6) + 1);
m_bikeBody.m_rleg.mc.gotoAndPlay((m_bikeBody.m_man.mc._totalframes - _local6) + 1);
m_bikeBody.m_lleg.mc.gotoAndPlay((m_bikeBody.m_man.mc._totalframes - _local6) + 1);
} else if ((m_manState == m_MAN_STATE_MOVE_TO_RIGHT) || (m_manState == m_MAN_STATE_IN_RIGHT)) {
fromRight();
m_manState = m_MAN_STATE_MOVE_FROM_RIGHT;
}
}
function toRight() {
var _local2 = calcNormalVector();
var _local3 = Math.abs(_local2.y);
var _local5 = (!m_backWheel.__get__isOnGround()) && (!m_forwardWheel.__get__isOnGround());
var _local4 = ((!_local5) ? (m_WHEEL_LEAN_GROUND) : (m_WHEEL_LEAN_AIR));
if (m_field.__get__bikeDirection() == CField.__get__DIRECTION_RIGHT()) {
if (!_local5) {
m_forwardWheel.addedAcc.x = m_forwardWheel.addedAcc.x + ((((_local2.x * CParticleEngine.gravity) * _local3) * _local4) - 4);
m_forwardWheel.addedAcc.y = m_forwardWheel.addedAcc.y + ((((_local2.y * CParticleEngine.gravity) / 2) * _local3) * _local4);
m_backWheel.addedAcc.x = m_backWheel.addedAcc.x - ((((_local2.x * CParticleEngine.gravity) * _local3) * _local4) - 4);
m_backWheel.addedAcc.y = m_backWheel.addedAcc.y - ((((_local2.y * CParticleEngine.gravity) / 2) * _local3) * _local4);
} else {
m_forwardWheel.addedAcc.x = m_forwardWheel.addedAcc.x + ((((_local2.x * CParticleEngine.gravity) / 4) * _local3) * _local4);
m_forwardWheel.addedAcc.y = m_forwardWheel.addedAcc.y + ((((_local2.y * CParticleEngine.gravity) / 4) * _local3) * _local4);
m_backWheel.addedAcc.x = m_backWheel.addedAcc.x - (((_local2.x * CParticleEngine.gravity) / 4) * _local3);
m_backWheel.addedAcc.y = m_backWheel.addedAcc.y - (((_local2.y * CParticleEngine.gravity) / 4) * _local3);
}
} else if (!_local5) {
m_backWheel.addedAcc.x = m_backWheel.addedAcc.x + ((((_local2.x * CParticleEngine.gravity) * _local3) * _local4) - 4);
m_backWheel.addedAcc.y = m_backWheel.addedAcc.y + ((((_local2.y * CParticleEngine.gravity) / 2) * _local3) * _local4);
m_forwardWheel.addedAcc.x = m_forwardWheel.addedAcc.x - ((((_local2.x * CParticleEngine.gravity) * _local3) * _local4) - 4);
m_forwardWheel.addedAcc.y = m_forwardWheel.addedAcc.y - ((((_local2.y * CParticleEngine.gravity) / 2) * _local3) * _local4);
} else {
m_backWheel.addedAcc.x = m_backWheel.addedAcc.x + ((((_local2.x * CParticleEngine.gravity) / 4) * _local3) * _local4);
m_backWheel.addedAcc.y = m_backWheel.addedAcc.y + ((((_local2.y * CParticleEngine.gravity) / 4) * _local3) * _local4);
m_forwardWheel.addedAcc.x = m_forwardWheel.addedAcc.x - (((_local2.x * CParticleEngine.gravity) / 4) * _local3);
m_forwardWheel.addedAcc.y = m_forwardWheel.addedAcc.y - (((_local2.y * CParticleEngine.gravity) / 4) * _local3);
}
if (m_manState == m_MAN_STATE_STAY) {
m_bikeBody.m_man.gotoAndStop("toRight");
m_bikeBody.m_rleg.gotoAndStop("toRight");
m_bikeBody.m_lleg.gotoAndStop("toRight");
m_manState = m_MAN_STATE_MOVE_TO_RIGHT;
} else if (m_manState == m_MAN_STATE_MOVE_FROM_RIGHT) {
var _local6 = m_bikeBody.m_man.mc._currentframe;
m_manState = m_MAN_STATE_MOVE_TO_RIGHT;
m_bikeBody.m_man.gotoAndStop("toRight");
m_bikeBody.m_rleg.gotoAndStop("toRight");
m_bikeBody.m_lleg.gotoAndStop("toRight");
m_bikeBody.m_man.mc.gotoAndPlay((m_bikeBody.m_man.mc._totalframes - _local6) + 1);
m_bikeBody.m_rleg.mc.gotoAndPlay((m_bikeBody.m_man.mc._totalframes - _local6) + 1);
m_bikeBody.m_lleg.mc.gotoAndPlay((m_bikeBody.m_man.mc._totalframes - _local6) + 1);
} else if ((m_manState == m_MAN_STATE_MOVE_TO_LEFT) || (m_manState == m_MAN_STATE_IN_LEFT)) {
fromLeft();
m_manState = m_MAN_STATE_MOVE_FROM_LEFT;
}
}
function endMove() {
if (m_manState == m_MAN_STATE_MOVE_TO_LEFT) {
m_bikeBody.m_man.gotoAndStop("left");
m_bikeBody.m_rleg.gotoAndStop("left");
m_bikeBody.m_lleg.gotoAndStop("left");
m_manState = m_MAN_STATE_IN_LEFT;
} else if (m_manState == m_MAN_STATE_MOVE_FROM_LEFT) {
m_bikeBody.m_man.gotoAndStop("stay");
m_bikeBody.m_rleg.gotoAndStop("stay");
m_bikeBody.m_lleg.gotoAndStop("stay");
m_manState = m_MAN_STATE_STAY;
} else if (m_manState == m_MAN_STATE_MOVE_TO_RIGHT) {
m_bikeBody.m_man.gotoAndStop("right");
m_bikeBody.m_rleg.gotoAndStop("right");
m_bikeBody.m_lleg.gotoAndStop("right");
m_manState = m_MAN_STATE_IN_RIGHT;
} else if (m_manState == m_MAN_STATE_MOVE_FROM_RIGHT) {
m_bikeBody.m_man.gotoAndStop("stay");
m_bikeBody.m_rleg.gotoAndStop("stay");
m_bikeBody.m_lleg.gotoAndStop("stay");
m_manState = m_MAN_STATE_STAY;
}
}
function stopSounds() {
m_sndRiding.stop();
}
function startLeg() {
if (m_bikeBody.m_rleg.mc._currentframe == m_twistPedalsPrevFrame) {
m_bikeBody.m_rleg.mc.play();
m_bikeBody.m_lleg.mc.play();
}
}
function stopLeg() {
if (m_bikeBody.m_rleg.mc._currentframe != m_twistPedalsPrevFrame) {
m_bikeBody.m_rleg.mc.stop();
m_bikeBody.m_lleg.mc.stop();
}
}
static var m_WHEEL_LEAN_AIR = 5;
static var m_WHEEL_LEAN_GROUND = 2;
static var m_MAN_STATE_STAY = 0;
static var m_MAN_STATE_MOVE_TO_LEFT = 1;
static var m_MAN_STATE_IN_LEFT = 2;
static var m_MAN_STATE_MOVE_FROM_LEFT = 3;
static var m_MAN_STATE_MOVE_TO_RIGHT = 4;
static var m_MAN_STATE_IN_RIGHT = 5;
static var m_MAN_STATE_MOVE_FROM_RIGHT = 6;
var m_twistPedalsPrevFrame = 0;
var m_manState = m_MAN_STATE_STAY;
var m_field = null;
var m_bikeBody = null;
var m_backWheel = null;
var m_forwardWheel = null;
var m_prevFrameAngle = 0;
var m_totalFlipAngle = 0;
var m_prevTotalFlipAngle = 0;
var m_lastTimeNotWallRideAngle = 0;
var m_movingOutFromRailings = false;
var m_sndRiding = null;
var m_lastTimeAccelPressed = 0;
}
Symbol 626 MovieClip [__Packages.CTrickAir] Frame 0
class CTrickAir
{
function CTrickAir () {
}
static function createCondition(bike) {
var _local3 = CAllControl.getTimer();
var _local2 = null;
if ((bike.__get__backWheel().__get__isOnGround() && (!bike.__get__forwardWheel().__get__wasOnGround())) && (bike.__get__forwardWheel().__get__isOnGround() && (!bike.__get__forwardWheel().__get__wasOnGround()))) {
if (((_local3 - bike.__get__backWheel().__get__prevLastTimeOnGround()) >= m_MINIMUM_TIME_IN_AIR) && ((_local3 - bike.__get__forwardWheel().__get__prevLastTimeOnGround()) >= m_MINIMUM_TIME_IN_AIR)) {
_local2 = new CConditionTrue();
_local2.conditionData = {trickTime:_local3 - Math.max(bike.__get__backWheel().__get__prevLastTimeOnGround(), bike.__get__forwardWheel().__get__prevLastTimeOnGround())};
}
} else if (bike.__get__backWheel().__get__isOnGround() && (!bike.__get__forwardWheel().__get__wasOnGround())) {
if ((_local3 - bike.__get__backWheel().__get__prevLastTimeOnGround()) >= m_MINIMUM_TIME_IN_AIR) {
_local2 = new CConditionWheelTouchGround(bike.__get__forwardWheel(), m_TIME_TO_OTHER_WHEEL_GROUND, m_MINIMUM_TIME_IN_AIR);
_local2.conditionData = {trickTime:_local3 - bike.__get__backWheel().__get__prevLastTimeOnGround()};
}
} else if (bike.__get__forwardWheel().__get__isOnGround() && (!bike.__get__forwardWheel().__get__wasOnGround())) {
if ((_local3 - bike.__get__forwardWheel().__get__prevLastTimeOnGround()) >= m_MINIMUM_TIME_IN_AIR) {
_local2 = new CConditionWheelTouchGround(bike.__get__backWheel(), m_TIME_TO_OTHER_WHEEL_GROUND, m_MINIMUM_TIME_IN_AIR);
_local2.conditionData = {trickTime:_local3 - bike.__get__forwardWheel().__get__prevLastTimeOnGround()};
}
}
return(_local2);
}
static function onTrickCompleted(bike, condition) {
if (condition.conditionData.trickTime > 1000) {
return(new CTrickScore(CTricksController.__get__TRICK_TYPE_AIR(), ("AIR x " + Math.floor(condition.conditionData.trickTime / 1000).toString()) + " seconds", m_SCORE_PER_SECOND, Math.floor(condition.conditionData.trickTime / 1000)));
}
return(null);
}
static var m_SCORE_PER_SECOND = 50;
static var m_MINIMUM_TIME_IN_AIR = 1000;
static var m_TIME_TO_OTHER_WHEEL_GROUND = 300;
}
Symbol 627 MovieClip [__Packages.CCondition] Frame 0
class CCondition
{
function CCondition () {
m_createTime = CAllControl.getTimer();
}
function check() {
return(false);
}
var conditionData = null;
var m_createTime = 0;
}
Symbol 628 MovieClip [__Packages.CConditionTrue] Frame 0
class CConditionTrue extends CCondition
{
function CConditionTrue () {
super();
}
function CConditionWheelTouchGround() {
}
function check() {
return(true);
}
}
Symbol 629 MovieClip [__Packages.CConditionWheelTouchGround] Frame 0
class CConditionWheelTouchGround extends CCondition
{
var m_createTime;
function CConditionWheelTouchGround (wheel, timeToTouch, timeInAir) {
super();
m_wheel = wheel;
m_timeToTouch = timeToTouch;
m_timeInAir = timeInAir;
}
function check() {
var _local2 = CAllControl.getTimer();
if ((m_timeToTouch == null) || ((_local2 - m_createTime) <= m_timeToTouch)) {
return((m_wheel.__get__isOnGround() && (!m_wheel.__get__wasOnGround())) && ((m_timeInAir == null) || ((_local2 - m_wheel.__get__prevLastTimeOnGround()) >= m_timeInAir)));
}
}
var m_wheel = null;
var m_timeToTouch = 0;
var m_timeInAir = 0;
}
Symbol 630 MovieClip [__Packages.CTrickScore] Frame 0
class CTrickScore
{
function CTrickScore (trickType, trickName, trickScore, trickQuantity) {
m_trickType = trickType;
m_trickTime = CAllControl.getTimer();
m_trickName = trickName;
m_trickScore = trickScore;
m_trickQuantity = trickQuantity;
}
function get trickType() {
return(m_trickType);
}
function get trickTime() {
return(m_trickTime);
}
function get trickName() {
return(m_trickName);
}
function get trickScore() {
return(m_trickScore);
}
function get trickQuantity() {
return(m_trickQuantity);
}
var m_trickType = 0;
var m_trickTime = 0;
var m_trickName = "";
var m_trickScore = 0;
var m_trickQuantity = 0;
}
Symbol 631 MovieClip [__Packages.CTrickBackflip] Frame 0
class CTrickBackflip
{
function CTrickBackflip () {
}
static function createCondition(bike) {
var _local2 = null;
if ((bike.__get__field().__get__bikeDirection() == CField.__get__DIRECTION_RIGHT()) && (bike.__get__totalFlipAngle() <= (-m_MINIMUM_BACKFLIP_ANGLE))) {
_local2 = new CConditionAnyWheelTouchGround(bike.__get__backWheel(), bike.__get__forwardWheel());
} else if ((bike.__get__field().__get__bikeDirection() == CField.__get__DIRECTION_LEFT()) && (bike.__get__totalFlipAngle() >= m_MINIMUM_BACKFLIP_ANGLE)) {
_local2 = new CConditionAnyWheelTouchGround(bike.__get__backWheel(), bike.__get__forwardWheel());
}
return(_local2);
}
static function onTrickCompleted(bike, condition) {
var _local1 = Math.max(Math.abs(bike.__get__prevTotalFlipAngle()), (Math.PI*2));
_local1 = (Math.floor((_local1 / Math.PI) / 2) * Math.PI) * 2;
_local1 = Math.floor((_local1 * 180) / Math.PI);
return(new CTrickScore(CTricksController.__get__TRICK_TYPE_BACKFLIP(), ("BACKFLIP x " + _local1.toString()) + " degrees", m_ONE_DEGREE_SCORE, _local1 / 360));
}
static var m_ONE_DEGREE_SCORE = 100;
static var m_MINIMUM_BACKFLIP_ANGLE = Math.PI;
}
Symbol 632 MovieClip [__Packages.CConditionAnyWheelTouchGround] Frame 0
class CConditionAnyWheelTouchGround extends CCondition
{
function CConditionAnyWheelTouchGround (wheel1, wheel2) {
super();
m_wheel1 = wheel1;
m_wheel2 = wheel2;
}
function check() {
return(m_wheel1.__get__isOnGround() || (m_wheel2.__get__isOnGround()));
}
var m_wheel1 = null;
var m_wheel2 = null;
}
Symbol 633 MovieClip [__Packages.CTrickDoublePegGrind] Frame 0
class CTrickDoublePegGrind
{
function CTrickDoublePegGrind () {
}
static function createCondition(bike) {
var _local3 = CAllControl.getTimer();
var _local2 = null;
if (((((bike.__get__backWheel().__get__isOnRailings() && (bike.__get__forwardWheel().__get__isOnRailings())) && (bike.__get__backWheel().__get__wasOnRailings())) && (bike.__get__forwardWheel().__get__wasOnRailings())) && ((_local3 - bike.__get__backWheel().__get__lastTimeOnAir()) >= m_MINIMAL_TIME_ON_RAILINGS)) && ((_local3 - bike.__get__backWheel().__get__lastTimeOnAir()) >= m_MINIMAL_TIME_ON_RAILINGS)) {
_local2 = new CConditionWheelsOnRailings(bike.__get__backWheel(), bike.__get__forwardWheel());
_local2.conditionData = {trickStart:Math.max(bike.__get__backWheel().__get__lastTimeOnAir(), bike.__get__forwardWheel().__get__lastTimeOnAir())};
}
return(_local2);
}
static function onTrickCompleted(bike, condition) {
var _local1 = ((CAllControl.getTimer() - condition.conditionData.trickStart) + 200) / 1000;
if (_local1 >= 1) {
return(new CTrickScore(CTricksController.__get__TRICK_TYPE_DOUBLEPEGGRIND(), ("DOUBLE PEG GRIND x " + Math.floor(_local1).toString()) + " seconds", m_SCORE_PER_SECOND, Math.floor(_local1)));
}
return(null);
}
static var m_SCORE_PER_SECOND = 50;
static var m_MINIMAL_TIME_ON_RAILINGS = 1000;
}
Symbol 634 MovieClip [__Packages.CConditionWheelsOnRailings] Frame 0
class CConditionWheelsOnRailings extends CCondition
{
function CConditionWheelsOnRailings (wheel1, wheel2) {
super();
m_wheel1 = wheel1;
m_wheel2 = wheel2;
}
function check() {
var _local2 = CAllControl.getTimer();
return(((!m_wheel1.__get__isOnRailings()) && ((_local2 - m_wheel1.__get__lastTimeOnRailings()) >= 300)) || ((!m_wheel2.__get__isOnRailings()) && ((_local2 - m_wheel2.__get__lastTimeOnRailings()) >= 300)));
}
var m_wheel1 = null;
var m_wheel2 = null;
}
Symbol 635 MovieClip [__Packages.CTrickFakie] Frame 0
class CTrickFakie
{
function CTrickFakie () {
}
static function createCondition(bike) {
var _local2 = CAllControl.getTimer();
var _local3 = null;
if (((((((((_local2 - bike.__get__lastTimeBrakeWasPressed()) >= m_MINIMAL_TIME_ON_GROUND) && (bike.__get__backWheel().__get__isOnGround())) && ((_local2 - bike.__get__backWheel().__get__lastLongGroundInterruptTime()) >= m_MINIMAL_TIME_ON_GROUND)) && (bike.__get__forwardWheel().__get__isOnGround())) && ((_local2 - bike.__get__forwardWheel().__get__lastLongGroundInterruptTime()) >= m_MINIMAL_TIME_ON_GROUND)) && ((_local2 - bike.__get__backWheel().__get__lastTurnTime()) >= m_MINIMAL_TIME_ON_GROUND)) && ((_local2 - bike.__get__forwardWheel().__get__lastTurnTime()) >= m_MINIMAL_TIME_ON_GROUND)) && ((((bike.__get__field().__get__bikeDirection() == CField.__get__DIRECTION_RIGHT()) && (bike.__get__backWheel().__get__direction() < 0)) && (bike.__get__forwardWheel().__get__direction() < 0)) || (((bike.__get__field().__get__bikeDirection() == CField.__get__DIRECTION_LEFT()) && (bike.__get__backWheel().__get__direction() > 0)) && (bike.__get__forwardWheel().__get__direction() > 0)))) {
_local3 = new CConditionWheelInAir(bike.__get__field(), bike.__get__backWheel(), bike.__get__forwardWheel(), bike.__get__backWheel().__get__direction());
_local3.conditionData = {trickStart:Math.max(bike.__get__backWheel().__get__lastTimeOnAir(), bike.__get__forwardWheel().__get__lastTimeOnAir())};
}
return(_local3);
}
static function onTrickCompleted(bike, condition) {
var _local1 = (CAllControl.getTimer() - condition.conditionData.trickStart) / 1000;
if (_local1 >= 1) {
return(new CTrickScore(CTricksController.__get__TRICK_TYPE_FAKIE(), ("FAKIE x " + Math.floor(_local1).toString()) + " seconds", m_SCORE_PER_SECOND, Math.floor(_local1)));
}
return(null);
}
static var m_SCORE_PER_SECOND = 25;
static var m_MINIMAL_TIME_ON_GROUND = 1000;
}
Symbol 636 MovieClip [__Packages.CConditionWheelInAir] Frame 0
class CConditionWheelInAir extends CCondition
{
function CConditionWheelInAir (field, wheel1, wheel2, direction, minAngle, maxAngle) {
super();
m_field = field;
m_wheel1 = wheel1;
m_wheel2 = wheel2;
m_wheelDirection = direction;
m_minAngle = minAngle;
m_maxAngle = maxAngle;
}
function check() {
var _local2 = CAllControl.getTimer();
if ((m_minAngle != null) && (m_maxAngle != null)) {
var _local3 = m_field.__get__bike().__get__angle();
if ((_local3 >= m_minAngle) && (_local3 <= m_maxAngle)) {
return(true);
}
}
if ((m_wheel1 != null) && (m_wheel2 != null)) {
return(((((m_wheelDirection != null) && ((m_wheel1.__get__direction() * m_wheelDirection) <= 0)) || ((!m_wheel1.__get__wasOnGround()) && ((_local2 - m_wheel1.__get__lastLongGroundInterruptTime()) <= 200))) || ((m_wheelDirection != null) && ((m_wheel2.__get__direction() * m_wheelDirection) <= 0))) || ((!m_wheel2.__get__wasOnGround()) && ((_local2 - m_wheel2.__get__lastLongGroundInterruptTime()) <= 200)));
}
if (m_wheel1 != null) {
return(((((m_wheelDirection != null) && (m_wheel1.__get__direction())) * m_wheelDirection) <= 0) || ((!m_wheel1.__get__wasOnGround()) && ((_local2 - m_wheel1.__get__lastLongGroundInterruptTime()) <= 200)));
}
if (m_wheel2 != null) {
return(((((m_wheelDirection != null) && (m_wheel2.__get__direction())) * m_wheelDirection) <= 0) || ((!m_wheel2.__get__wasOnGround()) && ((_local2 - m_wheel2.__get__lastLongGroundInterruptTime()) <= 200)));
}
}
var m_field = null;
var m_wheel1 = null;
var m_wheel2 = null;
var m_wheelDirection = 0;
var m_minAngle = null;
var m_maxAngle = null;
}
Symbol 637 MovieClip [__Packages.CTrickFrontflip] Frame 0
class CTrickFrontflip
{
function CTrickFrontflip () {
}
static function createCondition(bike) {
var _local2 = null;
if ((bike.__get__field().__get__bikeDirection() == CField.__get__DIRECTION_RIGHT()) && (bike.__get__totalFlipAngle() >= m_MINIMUM_BACKFLIP_ANGLE)) {
_local2 = new CConditionAnyWheelTouchGround(bike.__get__backWheel(), bike.__get__forwardWheel());
} else if ((bike.__get__field().__get__bikeDirection() == CField.__get__DIRECTION_LEFT()) && (bike.__get__totalFlipAngle() <= (-m_MINIMUM_BACKFLIP_ANGLE))) {
_local2 = new CConditionAnyWheelTouchGround(bike.__get__backWheel(), bike.__get__forwardWheel());
}
return(_local2);
}
static function onTrickCompleted(bike, condition) {
var _local1 = Math.max(bike.__get__prevTotalFlipAngle(), (Math.PI*2));
_local1 = (Math.floor((_local1 / Math.PI) / 2) * Math.PI) * 2;
_local1 = Math.floor((_local1 * 180) / Math.PI);
return(new CTrickScore(CTricksController.__get__TRICK_TYPE_FRONTFLIP(), ("FRONTFLIP x " + _local1.toString()) + " degrees", m_ONE_DEGREE_SCORE, Math.floor(_local1 / 360)));
}
static var m_ONE_DEGREE_SCORE = 150;
static var m_MINIMUM_BACKFLIP_ANGLE = Math.PI;
}
Symbol 638 MovieClip [__Packages.CTrickHorRotation] Frame 0
class CTrickHorRotation
{
function CTrickHorRotation () {
}
static function createCondition(bike) {
var _local2 = null;
if (((!bike.__get__field().__get__isHorRotating()) && (bike.__get__field().isPressedSpace())) && (bike.__get__backWheel().__get__isOnGround() == bike.__get__forwardWheel().__get__isOnGround())) {
bike.__get__field().startHorRotation((!bike.__get__backWheel().__get__isOnGround()) && (!bike.__get__forwardWheel().__get__isOnGround()));
if ((!bike.__get__backWheel().__get__isOnGround()) && (!bike.__get__forwardWheel().__get__isOnGround())) {
var _local3 = CAllControl.getTimer();
_local2 = new CConditionHorRotationFinished(bike.__get__field());
}
}
return(_local2);
}
static function onTrickCompleted(bike, condition) {
return(new CTrickScore(CTricksController.__get__TRICK_TYPE_HORROTATION(), "180 DEGREES", m_SCORE_PER_ROTATION, 1));
}
static var m_SCORE_PER_ROTATION = 50;
static var m_MINIMAL_FLYING_TIME = 250;
}
Symbol 639 MovieClip [__Packages.CConditionHorRotationFinished] Frame 0
class CConditionHorRotationFinished extends CCondition
{
function CConditionHorRotationFinished (field) {
super();
m_field = field;
}
function check() {
return(!m_field.__get__isHorRotating());
}
var m_field = null;
}
Symbol 640 MovieClip [__Packages.CTrickIcepickGrind] Frame 0
class CTrickIcepickGrind
{
function CTrickIcepickGrind () {
}
static function createCondition(bike) {
var _local3 = CAllControl.getTimer();
var _local2 = null;
if (((bike.__get__backWheel().__get__isOnRailings() && (!bike.__get__forwardWheel().__get__isOnRailings())) && ((_local3 - bike.__get__forwardWheel().__get__lastTimeOnRailings()) >= m_TIME_IN_AIR)) && ((_local3 - bike.__get__backWheel().__get__lastTimeOnAir()) >= m_TIME_ON_GROUND)) {
_local2 = new CConditionOneWheelTouchGround(bike.__get__backWheel(), bike.__get__forwardWheel(), true);
_local2.conditionData = {trickStart:bike.__get__backWheel().__get__lastTimeOnGround()};
}
return(_local2);
}
static function onTrickCompleted(bike, condition) {
var _local1 = ((CAllControl.getTimer() - condition.conditionData.trickStart) + 600) / 1000;
if (_local1 >= 1) {
return(new CTrickScore(CTricksController.__get__TRICK_TYPE_ICEPICKGRIND(), ("ICEPICK GRIND x " + Math.floor(_local1).toString()) + " seconds", m_SCORE_PER_SECOND, Math.floor(_local1)));
}
return(null);
}
static var m_SCORE_PER_SECOND = 150;
static var m_TIME_IN_AIR = 500;
static var m_TIME_ON_GROUND = 500;
}
Symbol 641 MovieClip [__Packages.CConditionOneWheelTouchGround] Frame 0
class CConditionOneWheelTouchGround extends CCondition
{
function CConditionOneWheelTouchGround (wheelMustBeOnGround, wheelWillBeOnGround, mustBeOnRailings) {
super();
m_wheelMustBeOnGround = wheelMustBeOnGround;
m_wheelWillBeOnGround = wheelWillBeOnGround;
m_mustBeOnRailings = mustBeOnRailings;
}
function check() {
var _local2 = CAllControl.getTimer();
if ((((!m_mustBeOnRailings) && (!m_wheelMustBeOnGround.__get__isOnGround())) && ((_local2 - m_wheelMustBeOnGround.__get__lastTimeOnGround()) > 500)) || ((m_mustBeOnRailings && (!m_wheelMustBeOnGround.__get__isOnRailings())) && ((_local2 - m_wheelMustBeOnGround.__get__lastTimeOnRailings()) > 500))) {
return(true);
}
if (((!m_mustBeOnRailings) && (m_wheelMustBeOnGround.__get__isOnGround() || ((_local2 - m_wheelMustBeOnGround.__get__lastTimeOnGround()) <= 500))) || (m_mustBeOnRailings && (m_wheelMustBeOnGround.__get__isOnRailings() || ((_local2 - m_wheelMustBeOnGround.__get__lastTimeOnRailings()) <= 500)))) {
return(m_wheelWillBeOnGround.__get__isOnGround());
}
}
var m_wheelMustBeOnGround = null;
var m_wheelWillBeOnGround = null;
var m_mustBeOnRailings = false;
}
Symbol 642 MovieClip [__Packages.CTrickNoseWheelie] Frame 0
class CTrickNoseWheelie
{
function CTrickNoseWheelie () {
}
static function createCondition(bike) {
var _local3 = CAllControl.getTimer();
var _local2 = null;
if (((bike.__get__forwardWheel().__get__isOnGround() && (!bike.__get__backWheel().__get__isOnGround())) && ((_local3 - bike.__get__backWheel().__get__lastTimeOnGround()) >= m_MINIMAL_TIME_IN_AIR)) && ((_local3 - bike.__get__forwardWheel().__get__lastLongGroundInterruptTime()) >= m_MINIMAL_TIME_ON_GROUND)) {
_local2 = new CConditionOneWheelTouchGround(bike.__get__forwardWheel(), bike.__get__backWheel());
_local2.conditionData = {trickStart:Math.max(bike.__get__forwardWheel().__get__lastTimeOnAir(), bike.__get__backWheel().__get__lastTimeOnGround())};
}
return(_local2);
}
static function onTrickCompleted(bike, condition) {
var _local1 = (CAllControl.getTimer() - condition.conditionData.trickStart) / 1000;
if (_local1 >= 1) {
return(new CTrickScore(CTricksController.__get__TRICK_TYPE_NOSEWHEELIE(), ("NOSE WHEELIE x " + Math.floor(_local1).toString()) + " seconds", m_SCORE_PER_SECOND, Math.floor(_local1)));
}
return(null);
}
static var m_SCORE_PER_SECOND = 100;
static var m_MINIMAL_TIME_IN_AIR = 1000;
static var m_MINIMAL_TIME_ON_GROUND = 1000;
}
Symbol 643 MovieClip [__Packages.CTrickToothpickGrind] Frame 0
class CTrickToothpickGrind
{
function CTrickToothpickGrind () {
}
static function createCondition(bike) {
var _local3 = CAllControl.getTimer();
var _local2 = null;
if (((bike.__get__forwardWheel().__get__isOnRailings() && (!bike.__get__backWheel().__get__isOnRailings())) && ((_local3 - bike.__get__backWheel().__get__lastTimeOnRailings()) >= m_TIME_IN_AIR)) && ((_local3 - bike.__get__forwardWheel().__get__lastTimeOnAir()) >= m_TIME_ON_GROUND)) {
_local2 = new CConditionOneWheelTouchGround(bike.__get__forwardWheel(), bike.__get__backWheel(), true);
_local2.conditionData = {trickStart:bike.__get__forwardWheel().__get__lastTimeOnGround()};
}
return(_local2);
}
static function onTrickCompleted(bike, condition) {
var _local1 = ((CAllControl.getTimer() - condition.conditionData.trickStart) + 500) / 1000;
if (_local1 >= 1) {
return(new CTrickScore(CTricksController.__get__TRICK_TYPE_TOOTHPICKGRIND(), ("TOOTHPICK GRIND x " + Math.floor(_local1).toString()) + " seconds", m_SCORE_PER_SECOND, Math.floor(_local1)));
}
return(null);
}
static var m_SCORE_PER_SECOND = 100;
static var m_TIME_IN_AIR = 500;
static var m_TIME_ON_GROUND = 500;
}
Symbol 644 MovieClip [__Packages.CTrickWallride] Frame 0
class CTrickWallride
{
function CTrickWallride () {
}
static function createCondition(bike) {
var _local3 = CAllControl.getTimer();
var _local2 = null;
if ((((((_local3 - bike.__get__lastTimeNotWallRideAngle()) > m_WALLRIDE_ANGLE_TIME) && (bike.__get__backWheel().__get__isOnGround())) && ((_local3 - bike.__get__backWheel().__get__lastLongGroundInterruptTime()) >= m_TIME_ON_GROUND)) && (bike.__get__forwardWheel().__get__isOnGround())) && ((_local3 - bike.__get__forwardWheel().__get__lastLongGroundInterruptTime()) >= m_TIME_ON_GROUND)) {
_local2 = new CConditionWheelInAir(bike.__get__field(), bike.__get__backWheel(), bike.__get__forwardWheel(), bike.__get__backWheel().__get__direction(), m_WALLRIDE_NEGATIVE_ANGLE, m_WALLRIDE_POSITIVE_ANGLE);
_local2.conditionData = {trickStart:Math.max(bike.__get__backWheel().__get__lastTimeOnAir(), bike.__get__forwardWheel().__get__lastTimeOnAir())};
}
return(_local2);
}
static function onTrickCompleted(bike, condition) {
var _local1 = (CAllControl.getTimer() - condition.conditionData.trickStart) / 1000;
if (_local1 >= 1) {
return(new CTrickScore(CTricksController.__get__TRICK_TYPE_WALLRIDE(), ("WALLRIDE x " + Math.floor(_local1).toString()) + " seconds", m_SCORE_PER_SECOND, Math.floor(_local1)));
}
return(null);
}
static var m_SCORE_PER_SECOND = 50;
static var m_TIME_ON_GROUND = 1000;
static var m_WALLRIDE_ANGLE_TIME = 1000;
static var m_WALLRIDE_POSITIVE_ANGLE = 50;
static var m_WALLRIDE_NEGATIVE_ANGLE = -50;
}
Symbol 645 MovieClip [__Packages.CTrickWheelie] Frame 0
class CTrickWheelie
{
function CTrickWheelie () {
}
static function createCondition(bike) {
var _local3 = CAllControl.getTimer();
var _local2 = null;
if (((((bike.__get__backWheel().__get__isOnGround() && (!bike.__get__forwardWheel().__get__isOnGround())) && (!bike.__get__forwardWheel().__get__isOnRailings())) && (!bike.__get__backWheel().__get__isOnRailings())) && ((_local3 - bike.__get__forwardWheel().__get__lastTimeOnGround()) >= m_MINIMAL_TIME_IN_AIR)) && ((_local3 - bike.__get__backWheel().__get__lastLongGroundInterruptTime()) >= m_MINIMAL_TIME_ON_GROUND)) {
_local2 = new CConditionOneWheelTouchGround(bike.__get__backWheel(), bike.__get__forwardWheel());
_local2.conditionData = {trickStart:Math.max(bike.__get__backWheel().__get__lastTimeOnAir(), bike.__get__forwardWheel().__get__lastTimeOnGround())};
}
return(_local2);
}
static function onTrickCompleted(bike, condition) {
var _local1 = (CAllControl.getTimer() - condition.conditionData.trickStart) / 1000;
if (_local1 >= 1) {
return(new CTrickScore(CTricksController.__get__TRICK_TYPE_WHEELIE(), ("WHEELIE x " + Math.floor(_local1).toString()) + " seconds", m_SCORE_PER_SECOND, Math.floor(_local1)));
}
return(null);
}
static var m_SCORE_PER_SECOND = 75;
static var m_MINIMAL_TIME_IN_AIR = 1000;
static var m_MINIMAL_TIME_ON_GROUND = 1000;
}
Symbol 646 MovieClip [__Packages.CTricksController] Frame 0
class CTricksController
{
function CTricksController (bike, demonstrationMode) {
m_bike = bike;
m_conditions = new Array();
var _local2 = 0;
while (_local2 < m_tricks.length) {
m_conditions[_local2] = null;
_local2++;
}
m_tricksMaded = new Array();
m_allTricksMaded = new Array();
m_allowedTricks = new Array();
}
static function get TRICK_TYPE_AIR() {
return(m_TRICK_TYPE_AIR);
}
static function get TRICK_TYPE_BACKFLIP() {
return(m_TRICK_TYPE_BACKFLIP);
}
static function get TRICK_TYPE_DOUBLEPEGGRIND() {
return(m_TRICK_TYPE_DOUBLEPEGGRIND);
}
static function get TRICK_TYPE_FAKIE() {
return(m_TRICK_TYPE_FAKIE);
}
static function get TRICK_TYPE_FRONTFLIP() {
return(m_TRICK_TYPE_FRONTFLIP);
}
static function get TRICK_TYPE_HORROTATION() {
return(m_TRICK_TYPE_HORROTATION);
}
static function get TRICK_TYPE_ICEPICKGRIND() {
return(m_TRICK_TYPE_ICEPICKGRIND);
}
static function get TRICK_TYPE_NOSEWHEELIE() {
return(m_TRICK_TYPE_NOSEWHEELIE);
}
static function get TRICK_TYPE_TOOTHPICKGRIND() {
return(m_TRICK_TYPE_TOOTHPICKGRIND);
}
static function get TRICK_TYPE_WALLRIDE() {
return(m_TRICK_TYPE_WALLRIDE);
}
static function get TRICK_TYPE_WHEELIE() {
return(m_TRICK_TYPE_WHEELIE);
}
static function get SIMULTANEOUSLY_DELTA() {
return(m_SIMULTANEOUSLY_DELTA);
}
static function get SEQUENTALLY_DELTA() {
return(m_SEQUENTALLY_DELTA);
}
function get allTricksMaded() {
return(m_allTricksMaded);
}
function makeTricksText() {
var _local3 = "";
var _local2 = 0;
while (_local2 < m_tricksMaded.length) {
if (_local2 > 0) {
if ((m_tricksMaded[_local2].trickTime - m_tricksMaded[_local2 - 1].trickTime) <= m_SIMULTANEOUSLY_DELTA) {
_local3 = _local3 + "to ";
} else if ((m_tricksMaded[_local2].trickTime - m_tricksMaded[_local2 - 1].trickTime) <= m_SEQUENTALLY_DELTA) {
_local3 = _local3 + "+ ";
} else {
_local3 = "";
m_tricksMaded.splice(0, _local2);
_local2 = 0;
}
}
_local3 = _local3 + (m_tricksMaded[_local2].trickName + " ");
_local2++;
}
return(_local3);
}
function checkTrickCondition(i) {
if (m_conditions[i] == null) {
m_conditions[i] = m_tricks[i].conditionFunction.call(null, m_bike);
}
if (m_conditions[i] != null) {
var _local4 = m_conditions[i].check();
if (_local4 == true) {
var _local5 = CAllControl.getTimer();
if ((((i != m_TRICK_TYPE_AIR) || (m_tricksMaded.length == 0)) || ((m_tricksMaded[m_tricksMaded.length - 1].trickTime < Math.max(m_bike.__get__backWheel().__get__prevLastTimeOnGround(), m_bike.__get__forwardWheel().__get__prevLastTimeOnGround())) && ((_local5 - m_tricksMaded[m_tricksMaded.length - 1].trickTime) > 1000))) && ((i != m_TRICK_TYPE_WALLRIDE) || ((_local5 - m_lastWallrideTime) >= 700))) {
var _local3 = m_tricks[i].completedFunction.call(null, m_bike, m_conditions[i]);
if (_local3 != null) {
m_bike.__get__field().onTrickCompleted();
if (i == m_TRICK_TYPE_WALLRIDE) {
m_lastWallrideTime = _local3.trickTime;
}
m_tricksMaded.push(_local3);
m_allTricksMaded.push(_local3);
}
}
m_conditions[i] = null;
return(true);
}
if (_local4 == undefined) {
m_conditions[i] = null;
}
}
return(false);
}
function reset(bike) {
m_bike = bike;
m_lastWallrideTime = CAllControl.getTimer();
var _local2 = 0;
while (_local2 < m_conditions.length) {
m_conditions[_local2] = null;
_local2++;
}
}
function process(tricksText) {
var _local5 = m_tricksMaded.length;
var _local3 = m_TRICK_TYPE_WHEELIE;
while (_local3 >= 0) {
if (m_allowedTricks.length == 0) {
checkTrickCondition(_local3);
} else {
var _local2 = 0;
while (_local2 < m_allowedTricks.length) {
if (m_allowedTricks[_local2] == _local3) {
checkTrickCondition(_local3);
break;
}
_local2++;
}
}
_local3--;
}
if ((!m_demonstrationMode) && (m_tricksMaded.length > 0)) {
if (m_tricksMaded.length > _local5) {
tricksText.txt.text = makeTricksText();
tricksText.txt._alpha = 100;
} else if (((tricksText.txt._alpha = tricksText.txt._alpha - 2)) <= 0) {
m_tricksMaded.length = 0;
tricksText.txt.text = "";
tricksText.txt._alpha = 100;
}
}
}
function setAllowedTricks() {
m_allowedTricks.length = 0;
var _local3 = 0;
while (_local3 < arguments.length) {
m_allowedTricks.push(arguments[_local3]);
_local3++;
}
}
function removeLastTricks(ms) {
var _local3 = CAllControl.getTimer();
trace("clear tricks");
var _local2 = m_allTricksMaded.length - 1;
while (_local2 >= 0) {
m_allTricksMaded.pop();
_local2--;
}
}
static var m_TRICK_TYPE_AIR = 0;
static var m_TRICK_TYPE_BACKFLIP = 1;
static var m_TRICK_TYPE_DOUBLEPEGGRIND = 2;
static var m_TRICK_TYPE_FAKIE = 3;
static var m_TRICK_TYPE_FRONTFLIP = 4;
static var m_TRICK_TYPE_HORROTATION = 5;
static var m_TRICK_TYPE_ICEPICKGRIND = 6;
static var m_TRICK_TYPE_NOSEWHEELIE = 7;
static var m_TRICK_TYPE_TOOTHPICKGRIND = 8;
static var m_TRICK_TYPE_WALLRIDE = 9;
static var m_TRICK_TYPE_WHEELIE = 10;
static var m_SIMULTANEOUSLY_DELTA = 200;
static var m_SEQUENTALLY_DELTA = 1000;
static var m_tricks = new Array({conditionFunction:CTrickAir.createCondition, completedFunction:CTrickAir.onTrickCompleted}, {conditionFunction:CTrickBackflip.createCondition, completedFunction:CTrickBackflip.onTrickCompleted}, {conditionFunction:CTrickDoublePegGrind.createCondition, completedFunction:CTrickDoublePegGrind.onTrickCompleted}, {conditionFunction:CTrickFakie.createCondition, completedFunction:CTrickFakie.onTrickCompleted}, {conditionFunction:CTrickFrontflip.createCondition, completedFunction:CTrickFrontflip.onTrickCompleted}, {conditionFunction:CTrickHorRotation.createCondition, completedFunction:CTrickHorRotation.onTrickCompleted}, {conditionFunction:CTrickIcepickGrind.createCondition, completedFunction:CTrickIcepickGrind.onTrickCompleted}, {conditionFunction:CTrickNoseWheelie.createCondition, completedFunction:CTrickNoseWheelie.onTrickCompleted}, {conditionFunction:CTrickToothpickGrind.createCondition, completedFunction:CTrickToothpickGrind.onTrickCompleted}, {conditionFunction:CTrickWallride.createCondition, completedFunction:CTrickWallride.onTrickCompleted}, {conditionFunction:CTrickWheelie.createCondition, completedFunction:CTrickWheelie.onTrickCompleted});
var m_bike = null;
var m_conditions = new Array();
var m_tricksMaded = null;
var m_allTricksMaded = null;
var m_allowedTricks = null;
var m_demonstrationMode = false;
var m_lastWallrideTime = 0;
}
Symbol 647 MovieClip [__Packages.CDemonstration] Frame 0
class CDemonstration extends CField
{
var attachMovie, __set__isPlaying, m_screenWidth, m_screenHeight, m_allBike, m_texture, m_groundMask, _parent, m_backWheel, m_bike, m_bikeDirection;
function CDemonstration () {
super();
}
function onLoad() {
super.onLoad();
attachMovie(m_groundEdgeClipName, "m_groundEdgeClip", CField.m_GROUND_EDGE_DEPTH);
__set__isPlaying(true);
m_screenWidth = 292;
m_screenHeight = 260;
m_allBike.__get__platform()._visible = false;
}
function onEnterFrame() {
m_texture.setMask(m_groundMask);
if (!m_animationStarted) {
m_allBike._visible = true;
return(undefined);
}
m_allBike._visible = false;
m_currentFrame++;
var _local3 = m_iKey;
while (_local3 < m_keys.length) {
if ((m_keys[_local3].frame == m_currentFrame) && ((_local3 > 0) && (m_keys[_local3 - 1].frame < m_currentFrame))) {
m_iKey = _local3;
} else if (m_keys[_local3].frame > m_currentFrame) {
break;
}
_local3++;
}
if ((m_keys[m_iKey].frame == m_currentFrame) && (m_keys[m_iKey].key == "stop")) {
stopAnimation();
} else {
super.onEnterFrame();
}
}
function startAnimation() {
_parent.m_btnPlay._visible = false;
m_animationStarted = true;
m_currentFrame = 0;
m_iKey = 0;
__set__isPlaying(true);
}
function stopAnimation() {
_parent.m_btnPlay._visible = true;
m_animationStarted = false;
__set__isPlaying(false);
}
function isPressedAccel() {
var _local2 = m_iKey;
while ((_local2 < m_keys.length) && (m_keys[_local2].frame == m_currentFrame)) {
if (m_keys[_local2].key == "up") {
return(m_backWheel.__get__isOnGround() && (m_bike.__get__movingOutFromRailings() || (!m_backWheel.__get__isOnRailings())));
}
_local2++;
}
return(false);
}
function isPressedBrake() {
var _local2 = m_iKey;
while ((_local2 < m_keys.length) && (m_keys[_local2].frame == m_currentFrame)) {
if (m_keys[_local2].key == "down") {
return(true);
}
_local2++;
}
return(false);
}
function isPressedLeft() {
var _local3 = ((m_bikeDirection == CField.m_DIRECTION_RIGHT) ? "left" : "right");
var _local2 = m_iKey;
while ((_local2 < m_keys.length) && (m_keys[_local2].frame == m_currentFrame)) {
if (m_keys[_local2].key == _local3) {
return(true);
}
_local2++;
}
return(false);
}
function isPressedRight() {
var _local3 = ((m_bikeDirection == CField.m_DIRECTION_RIGHT) ? "right" : "left");
var _local2 = m_iKey;
while ((_local2 < m_keys.length) && (m_keys[_local2].frame == m_currentFrame)) {
if (m_keys[_local2].key == _local3) {
return(true);
}
_local2++;
}
return(false);
}
function isPressedSpace() {
var _local2 = m_iKey;
while ((_local2 < m_keys.length) && (m_keys[_local2].frame == m_currentFrame)) {
if (m_keys[_local2].key == "space") {
return(true);
}
_local2++;
}
return(false);
}
var m_groundClipName = "";
var m_groundEdgeClipName = "";
var m_keys = null;
var m_currentFrame = 0;
var m_animationStarted = false;
var m_iKey = 0;
}
Symbol 648 MovieClip [__Packages.CMouseCursor] Frame 0
class CMouseCursor extends MovieClip
{
function CMouseCursor () {
super();
}
static function get isMouseDown() {
return(m_ml.m_isMouseDown);
}
static function get prevMouseX() {
return(m_ml.m_prevMouseX);
}
static function get prevMouseY() {
return(m_ml.m_prevMouseY);
}
static function get mouseX() {
return(_root._xmouse);
}
static function get mouseY() {
return(_root._ymouse);
}
function onLoad() {
createListener();
}
function onUnload() {
removeListener();
}
static function createListener() {
if (m_ml == null) {
_root.m_mouseCursor._visible = true;
m_ml = new Object();
m_ml.m_mouseCursor = _root.m_mouseCursor;
m_ml.m_isMouseDown = false;
m_ml.m_prevMouseDown = false;
m_ml.m_prevMouseX = _root._xmouse;
m_ml.m_prevMouseY = _root._ymouse;
m_ml.onMouseMove = function () {
if ((_root.m_field.railings.hitTest(_root._xmouse, _root._ymouse, true) || (_root.m_field.platforms.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.m_field.allBike.hitTest(_root._xmouse, _root._ymouse, true))) {
this.m_mouseCursor._visible = false;
} else if (_root.m_field.canDrawLines) {
this.m_mouseCursor._visible = true;
}
if (_root.m_field.isValidCoords(this.m_prevMouseX, this.m_prevMouseY) && (!_root.m_field.isValidCoords(_root._xmouse, _root._ymouse))) {
this.onMouseUp();
}
var _local3 = Math.sqrt(((_root._xmouse - this.m_prevMouseX) * (_root._xmouse - this.m_prevMouseX)) + ((_root._ymouse - this.m_prevMouseY) * (_root._ymouse - this.m_prevMouseY))) > CMouseCursor.m_MIN_LINE_LENGTH;
if (this.m_isMouseDown) {
if (_local3) {
_root.m_field.drawLine(this.m_prevMouseX, this.m_prevMouseY, _root._xmouse, _root._ymouse, this.m_prevMouseDown, false);
this.m_prevMouseDown = true;
}
}
this.m_mouseCursor._x = _root._xmouse;
this.m_mouseCursor._y = _root._ymouse;
if (_local3 || (!this.m_isMouseDown)) {
this.m_prevMouseX = _root._xmouse;
this.m_prevMouseY = _root._ymouse;
}
updateAfterEvent();
};
m_ml.onMouseDown = function () {
this.m_isMouseDown = true;
this.m_prevMouseDown = false;
};
m_ml.onMouseUp = function () {
this.m_isMouseDown = false;
this.m_prevMouseDown = false;
};
Mouse.addListener(m_ml);
}
}
static function removeListener() {
if (m_ml != null) {
_root.m_mouseCursor._visible = false;
Mouse.removeListener(m_ml);
m_ml = null;
}
}
static var m_MIN_LINE_LENGTH = 20;
static var m_ml = null;
}
Symbol 649 MovieClip [__Packages.CRailing] Frame 0
class CRailing extends MovieClip
{
var _name, _parent, startDrag, onEnterFrame, stopDrag, _x, _y;
function CRailing () {
super();
}
function get dataIndex() {
return(m_dataIndex);
}
function set dataIndex(newVal) {
m_dataIndex = newVal;
//return(dataIndex);
}
function onLoad() {
if ((_name != "1") && (_name != "11")) {
m_mirror = _root.m_field.registerRailing(this, this instanceof CPlatform);
} else {
m_mirror = _parent.registerRailing(this, this instanceof CPlatform);
}
m_mirror._visible = false;
}
function onPress() {
if (((_name == "1") && (_root.m_field.isPlaying)) || ((_name != "1") && (_parent.questID != 0))) {
return(undefined);
}
var _local4 = m_mirror.m_leftRotating.hitTest(_root._xmouse, _root._ymouse, true);
var _local6 = m_mirror.m_rightRotating.hitTest(_root._xmouse, _root._ymouse, true);
_parent.canDrawLines = false;
if (_local4 || (_local6)) {
m_ml = new Object();
m_ml.draggable = (_local4 ? (m_mirror.m_leftRotating) : (m_mirror.m_rightRotating));
m_ml.draggableParent1 = m_mirror;
m_ml.draggableParent2 = this;
m_ml.onMouseMove = function () {
var _local3 = {x:this.draggableParent1._x, y:this.draggableParent1._y};
this.draggableParent2._parent.localToGlobal(_local3);
var _local4 = new CVector2D((-_root._xmouse) + _local3.x, (-_root._ymouse) + _local3.y);
this.draggableParent1._rotation = (_local4.getUgol() * 180) / Math.PI;
this.draggableParent2._rotation = (_local4.getUgol() * 180) / Math.PI;
};
m_ml.onMouseUp = function () {
if (this._name == "1") {
_root.m_field.canDrawLines = false;
}
Mouse.removeListener(this);
this.draggableParent2.updateLevelData();
};
Mouse.addListener(m_ml);
} else {
startDrag();
onEnterFrame = moveMirror;
}
}
function onRelease() {
delete onEnterFrame;
stopDrag();
_parent.canDrawLines = true;
updateLevelData();
}
function onReleaseOutside() {
delete onEnterFrame;
stopDrag();
_parent.canDrawLines = true;
updateLevelData();
}
function moveMirror() {
m_mirror._x = _x;
m_mirror._y = _y;
}
function updateLevelData() {
var _local3 = null;
if (_name == "1") {
_local3 = CField(_root.m_field.isPlaying);
} else {
_local3 = CField(_parent);
}
_local3.updateRailingPlatformLevelData(this);
}
function showGuides() {
m_upArrow._visible = true;
m_downArrow._visible = true;
m_leftArrow._visible = true;
m_rightArrow._visible = true;
m_leftRotateArrow._visible = true;
m_rightRotateArrow._visible = true;
}
function hideGuides() {
m_upArrow._visible = false;
m_downArrow._visible = false;
m_leftArrow._visible = false;
m_rightArrow._visible = false;
m_leftRotateArrow._visible = false;
m_rightRotateArrow._visible = false;
}
var m_ml = null;
var m_mirror = null;
var m_upArrow = null;
var m_downArrow = null;
var m_leftArrow = null;
var m_rightArrow = null;
var m_leftRotateArrow = null;
var m_rightRotateArrow = null;
var m_dataIndex = 0;
}
Symbol 650 MovieClip [__Packages.CPlatform] Frame 0
class CPlatform extends CRailing
{
function CPlatform () {
super();
}
}
Symbol 651 MovieClip [__Packages.CDemonstrationAir] Frame 0
class CDemonstrationAir extends CDemonstration
{
var m_groundClipName, m_groundEdgeClipName, m_keys;
function CDemonstrationAir () {
super();
m_groundClipName = "symDemonstrationGroundAir";
m_groundEdgeClipName = "symDemonstrationGroundEdgeAir";
m_keys = new Array({frame:13, key:"up"}, {frame:14, key:"up"}, {frame:15, key:"up"}, {frame:16, key:"up"}, {frame:17, key:"up"}, {frame:18, key:"up"}, {frame:19, key:"up"}, {frame:20, key:"up"}, {frame:21, key:"up"}, {frame:22, key:"up"}, {frame:23, key:"up"}, {frame:24, key:"up"}, {frame:25, key:"up"}, {frame:26, key:"up"}, {frame:27, key:"up"}, {frame:28, key:"up"}, {frame:29, key:"up"}, {frame:30, key:"up"}, {frame:31, key:"up"}, {frame:32, key:"up"}, {frame:33, key:"up"}, {frame:34, key:"up"}, {frame:35, key:"up"}, {frame:36, key:"up"}, {frame:37, key:"up"}, {frame:38, key:"up"}, {frame:39, key:"left"}, {frame:39, key:"up"}, {frame:40, key:"left"}, {frame:41, key:"left"}, {frame:42, key:"left"}, {frame:43, key:"left"}, {frame:44, key:"left"}, {frame:45, key:"left"}, {frame:46, key:"left"}, {frame:47, key:"left"}, {frame:48, key:"left"}, {frame:49, key:"left"}, {frame:50, key:"left"}, {frame:51, key:"left"}, {frame:68, key:"down"}, {frame:69, key:"down"}, {frame:70, key:"down"}, {frame:76, key:"stop"});
}
}
Symbol 652 MovieClip [__Packages.CDemonstrationBackflip] Frame 0
class CDemonstrationBackflip extends CDemonstration
{
var m_groundClipName, m_groundEdgeClipName, m_keys;
function CDemonstrationBackflip () {
super();
m_groundClipName = "symDemonstrationGroundBackflip";
m_groundEdgeClipName = "symDemonstrationGroundEdgeBackflip";
m_keys = new Array({frame:19, key:"up"}, {frame:20, key:"up"}, {frame:21, key:"up"}, {frame:22, key:"up"}, {frame:23, key:"up"}, {frame:24, key:"up"}, {frame:25, key:"up"}, {frame:26, key:"up"}, {frame:27, key:"up"}, {frame:28, key:"up"}, {frame:29, key:"left"}, {frame:30, key:"left"}, {frame:31, key:"left"}, {frame:32, key:"left"}, {frame:33, key:"left"}, {frame:34, key:"left"}, {frame:35, key:"left"}, {frame:36, key:"left"}, {frame:37, key:"left"}, {frame:38, key:"left"}, {frame:39, key:"left"}, {frame:40, key:"left"}, {frame:41, key:"left"}, {frame:42, key:"left"}, {frame:43, key:"left"}, {frame:44, key:"left"}, {frame:45, key:"left"}, {frame:46, key:"left"}, {frame:47, key:"left"}, {frame:48, key:"left"}, {frame:49, key:"left"}, {frame:50, key:"left"}, {frame:51, key:"left"}, {frame:52, key:"left"}, {frame:53, key:"left"}, {frame:54, key:"left"}, {frame:55, key:"left"}, {frame:56, key:"left"}, {frame:57, key:"left"}, {frame:58, key:"left"}, {frame:59, key:"left"}, {frame:60, key:"left"}, {frame:61, key:"left"}, {frame:62, key:"left"}, {frame:63, key:"left"}, {frame:64, key:"left"}, {frame:65, key:"left"}, {frame:66, key:"left"}, {frame:67, key:"left"}, {frame:68, key:"left"}, {frame:69, key:"left"}, {frame:70, key:"left"}, {frame:71, key:"left"}, {frame:72, key:"left"}, {frame:73, key:"left"}, {frame:74, key:"left"}, {frame:75, key:"left"}, {frame:76, key:"left"}, {frame:77, key:"left"}, {frame:80, key:"right"}, {frame:81, key:"right"}, {frame:82, key:"right"}, {frame:83, key:"right"}, {frame:84, key:"right"}, {frame:97, key:"stop"});
}
}
Symbol 653 MovieClip [__Packages.CDemonstrationFrontflip] Frame 0
class CDemonstrationFrontflip extends CDemonstration
{
var m_groundClipName, m_groundEdgeClipName, m_keys;
function CDemonstrationFrontflip () {
super();
m_groundClipName = "symDemonstrationGroundFrontflip";
m_groundEdgeClipName = "symDemonstrationGroundEdgeFrontflip";
m_keys = new Array({frame:5, key:"up"}, {frame:6, key:"up"}, {frame:7, key:"up"}, {frame:8, key:"up"}, {frame:9, key:"up"}, {frame:10, key:"up"}, {frame:11, key:"up"}, {frame:12, key:"up"}, {frame:13, key:"up"}, {frame:14, key:"up"}, {frame:15, key:"up"}, {frame:16, key:"up"}, {frame:17, key:"up"}, {frame:18, key:"up"}, {frame:19, key:"up"}, {frame:20, key:"up"}, {frame:21, key:"up"}, {frame:22, key:"up"}, {frame:23, key:"up"}, {frame:24, key:"up"}, {frame:25, key:"up"}, {frame:26, key:"up"}, {frame:27, key:"up"}, {frame:28, key:"right"}, {frame:28, key:"up"}, {frame:29, key:"right"}, {frame:30, key:"right"}, {frame:31, key:"right"}, {frame:32, key:"right"}, {frame:33, key:"right"}, {frame:34, key:"right"}, {frame:35, key:"right"}, {frame:36, key:"right"}, {frame:37, key:"right"}, {frame:38, key:"right"}, {frame:39, key:"right"}, {frame:40, key:"right"}, {frame:41, key:"right"}, {frame:42, key:"right"}, {frame:43, key:"right"}, {frame:44, key:"right"}, {frame:45, key:"right"}, {frame:46, key:"right"}, {frame:47, key:"right"}, {frame:48, key:"right"}, {frame:49, key:"right"}, {frame:50, key:"right"}, {frame:51, key:"right"}, {frame:61, key:"left"}, {frame:62, key:"left"}, {frame:63, key:"left"}, {frame:64, key:"left"}, {frame:65, key:"left"}, {frame:66, key:"left"}, {frame:67, key:"left"}, {frame:68, key:"left"}, {frame:69, key:"left"}, {frame:70, key:"left"}, {frame:71, key:"left"}, {frame:72, key:"left"}, {frame:73, key:"left"}, {frame:74, key:"left"}, {frame:94, key:"stop"});
}
}
Symbol 654 MovieClip [__Packages.CDemonstrationHorrotation] Frame 0
class CDemonstrationHorrotation extends CDemonstration
{
var m_groundClipName, m_groundEdgeClipName, m_keys;
function CDemonstrationHorrotation () {
super();
m_groundClipName = "symDemonstrationGroundHorrotation";
m_groundEdgeClipName = "symDemonstrationGroundEdgeHorrotation";
m_keys = new Array({frame:14, key:"up"}, {frame:15, key:"up"}, {frame:16, key:"up"}, {frame:17, key:"up"}, {frame:18, key:"up"}, {frame:19, key:"up"}, {frame:20, key:"up"}, {frame:21, key:"up"}, {frame:22, key:"up"}, {frame:23, key:"up"}, {frame:24, key:"up"}, {frame:25, key:"up"}, {frame:26, key:"up"}, {frame:27, key:"up"}, {frame:28, key:"up"}, {frame:29, key:"up"}, {frame:30, key:"up"}, {frame:31, key:"up"}, {frame:32, key:"up"}, {frame:33, key:"up"}, {frame:34, key:"up"}, {frame:35, key:"up"}, {frame:35, key:"space"}, {frame:36, key:"up"}, {frame:36, key:"space"}, {frame:37, key:"up"}, {frame:38, key:"up"}, {frame:39, key:"up"}, {frame:40, key:"left"}, {frame:40, key:"up"}, {frame:41, key:"left"}, {frame:41, key:"up"}, {frame:42, key:"left"}, {frame:43, key:"left"}, {frame:44, key:"left"}, {frame:45, key:"left"}, {frame:46, key:"left"}, {frame:47, key:"left"}, {frame:48, key:"left"}, {frame:49, key:"left"}, {frame:50, key:"left"}, {frame:51, key:"left"}, {frame:52, key:"left"}, {frame:55, key:"down"}, {frame:56, key:"down"}, {frame:57, key:"down"}, {frame:58, key:"down"}, {frame:59, key:"down"}, {frame:60, key:"down"}, {frame:61, key:"down"}, {frame:62, key:"down"}, {frame:63, key:"down"}, {frame:71, key:"stop"});
}
}
Symbol 655 MovieClip [__Packages.CDemonstrationWheelie] Frame 0
class CDemonstrationWheelie extends CDemonstration
{
var m_groundClipName, m_groundEdgeClipName, m_keys;
function CDemonstrationWheelie () {
super();
m_groundClipName = "symDemonstrationGroundWheelie";
m_groundEdgeClipName = "symDemonstrationGroundEdgeWheelie";
m_keys = new Array({frame:11, key:"up"}, {frame:12, key:"up"}, {frame:13, key:"up"}, {frame:14, key:"left"}, {frame:14, key:"up"}, {frame:15, key:"left"}, {frame:15, key:"up"}, {frame:16, key:"left"}, {frame:16, key:"up"}, {frame:17, key:"left"}, {frame:17, key:"up"}, {frame:18, key:"left"}, {frame:18, key:"up"}, {frame:19, key:"left"}, {frame:19, key:"up"}, {frame:20, key:"left"}, {frame:20, key:"up"}, {frame:21, key:"left"}, {frame:21, key:"up"}, {frame:22, key:"left"}, {frame:22, key:"up"}, {frame:23, key:"left"}, {frame:23, key:"up"}, {frame:24, key:"left"}, {frame:24, key:"up"}, {frame:27, key:"left"}, {frame:28, key:"left"}, {frame:29, key:"left"}, {frame:30, key:"left"}, {frame:31, key:"left"}, {frame:32, key:"left"}, {frame:34, key:"left"}, {frame:35, key:"left"}, {frame:36, key:"left"}, {frame:37, key:"left"}, {frame:38, key:"left"}, {frame:39, key:"left"}, {frame:39, key:"up"}, {frame:40, key:"left"}, {frame:40, key:"up"}, {frame:41, key:"left"}, {frame:41, key:"up"}, {frame:42, key:"left"}, {frame:42, key:"up"}, {frame:43, key:"left"}, {frame:43, key:"up"}, {frame:44, key:"left"}, {frame:44, key:"up"}, {frame:45, key:"left"}, {frame:45, key:"up"}, {frame:46, key:"left"}, {frame:46, key:"up"}, {frame:59, key:"right"}, {frame:60, key:"right"}, {frame:61, key:"right"}, {frame:62, key:"right"}, {frame:63, key:"right"}, {frame:64, key:"right"}, {frame:68, key:"down"}, {frame:69, key:"down"}, {frame:70, key:"down"}, {frame:71, key:"down"}, {frame:72, key:"down"}, {frame:73, key:"down"}, {frame:74, key:"down"}, {frame:75, key:"down"}, {frame:76, key:"down"}, {frame:77, key:"down"}, {frame:78, key:"down"}, {frame:83, key:"stop"});
}
}
Symbol 656 MovieClip [__Packages.CDemonstrationNoseWheelie] Frame 0
class CDemonstrationNoseWheelie extends CDemonstration
{
var m_groundClipName, m_groundEdgeClipName, m_keys;
function CDemonstrationNoseWheelie () {
super();
m_groundClipName = "symDemonstrationGroundNoseWheelie";
m_groundEdgeClipName = "symDemonstrationGroundEdgeNoseWheelie";
m_keys = new Array({frame:14, key:"right"}, {frame:15, key:"right"}, {frame:15, key:"down"}, {frame:16, key:"right"}, {frame:16, key:"down"}, {frame:17, key:"right"}, {frame:17, key:"down"}, {frame:18, key:"right"}, {frame:18, key:"down"}, {frame:19, key:"right"}, {frame:19, key:"down"}, {frame:20, key:"right"}, {frame:20, key:"down"}, {frame:21, key:"right"}, {frame:21, key:"down"}, {frame:22, key:"right"}, {frame:22, key:"down"}, {frame:23, key:"right"}, {frame:23, key:"down"}, {frame:24, key:"right"}, {frame:24, key:"down"}, {frame:25, key:"right"}, {frame:25, key:"down"}, {frame:29, key:"right"}, {frame:30, key:"right"}, {frame:31, key:"right"}, {frame:32, key:"right"}, {frame:33, key:"right"}, {frame:34, key:"right"}, {frame:35, key:"right"}, {frame:36, key:"right"}, {frame:39, key:"left"}, {frame:40, key:"left"}, {frame:41, key:"left"}, {frame:42, key:"left"}, {frame:43, key:"left"}, {frame:44, key:"left"}, {frame:45, key:"left"}, {frame:46, key:"left"}, {frame:47, key:"left"}, {frame:48, key:"left"}, {frame:48, key:"up"}, {frame:49, key:"up"}, {frame:50, key:"up"}, {frame:51, key:"left"}, {frame:51, key:"up"}, {frame:52, key:"left"}, {frame:52, key:"up"}, {frame:53, key:"left"}, {frame:53, key:"up"}, {frame:54, key:"left"}, {frame:54, key:"up"}, {frame:55, key:"left"}, {frame:55, key:"up"}, {frame:56, key:"left"}, {frame:56, key:"up"}, {frame:57, key:"left"}, {frame:57, key:"up"}, {frame:63, key:"stop"});
}
}
Symbol 657 MovieClip [__Packages.CDemonstrationFakie] Frame 0
class CDemonstrationFakie extends CDemonstration
{
var m_groundClipName, m_groundEdgeClipName, m_keys;
function CDemonstrationFakie () {
super();
m_groundClipName = "symDemonstrationGroundFakie";
m_groundEdgeClipName = "symDemonstrationGroundEdgeFakie";
m_keys = new Array({frame:16, key:"up"}, {frame:17, key:"up"}, {frame:18, key:"up"}, {frame:19, key:"up"}, {frame:20, key:"left"}, {frame:20, key:"up"}, {frame:21, key:"left"}, {frame:21, key:"up"}, {frame:22, key:"left"}, {frame:22, key:"up"}, {frame:23, key:"left"}, {frame:23, key:"up"}, {frame:24, key:"left"}, {frame:24, key:"up"}, {frame:25, key:"left"}, {frame:26, key:"left"}, {frame:27, key:"left"}, {frame:28, key:"left"}, {frame:29, key:"left"}, {frame:30, key:"left"}, {frame:31, key:"left"}, {frame:32, key:"left"}, {frame:33, key:"up"}, {frame:34, key:"up"}, {frame:35, key:"up"}, {frame:36, key:"up"}, {frame:37, key:"up"}, {frame:38, key:"up"}, {frame:39, key:"up"}, {frame:40, key:"up"}, {frame:41, key:"up"}, {frame:42, key:"up"}, {frame:43, key:"up"}, {frame:44, key:"up"}, {frame:45, key:"up"}, {frame:46, key:"up"}, {frame:47, key:"up"}, {frame:48, key:"up"}, {frame:49, key:"up"}, {frame:50, key:"up"}, {frame:51, key:"up"}, {frame:52, key:"up"}, {frame:53, key:"up"}, {frame:54, key:"up"}, {frame:55, key:"up"}, {frame:56, key:"up"}, {frame:57, key:"up"}, {frame:58, key:"up"}, {frame:59, key:"up"}, {frame:60, key:"up"}, {frame:275, key:"stop"});
}
}
Symbol 658 MovieClip [__Packages.CDemonstrationWallride] Frame 0
class CDemonstrationWallride extends CDemonstration
{
var m_groundClipName, m_groundEdgeClipName, m_keys;
function CDemonstrationWallride () {
super();
m_groundClipName = "symDemonstrationGroundWallride";
m_groundEdgeClipName = "symDemonstrationGroundEdgeWallride";
m_keys = new Array({frame:14, key:"up"}, {frame:15, key:"up"}, {frame:16, key:"up"}, {frame:17, key:"up"}, {frame:18, key:"up"}, {frame:19, key:"up"}, {frame:20, key:"up"}, {frame:21, key:"up"}, {frame:22, key:"up"}, {frame:23, key:"up"}, {frame:24, key:"up"}, {frame:25, key:"up"}, {frame:26, key:"up"}, {frame:27, key:"up"}, {frame:28, key:"up"}, {frame:29, key:"up"}, {frame:30, key:"up"}, {frame:31, key:"up"}, {frame:32, key:"up"}, {frame:33, key:"up"}, {frame:34, key:"up"}, {frame:35, key:"up"}, {frame:36, key:"up"}, {frame:37, key:"up"}, {frame:38, key:"up"}, {frame:39, key:"up"}, {frame:40, key:"up"}, {frame:41, key:"up"}, {frame:42, key:"up"}, {frame:43, key:"up"}, {frame:44, key:"up"}, {frame:45, key:"up"}, {frame:46, key:"up"}, {frame:47, key:"up"}, {frame:48, key:"up"}, {frame:49, key:"up"}, {frame:50, key:"up"}, {frame:51, key:"up"}, {frame:57, key:"right"}, {frame:57, key:"up"}, {frame:58, key:"right"}, {frame:58, key:"up"}, {frame:59, key:"right"}, {frame:59, key:"up"}, {frame:60, key:"right"}, {frame:60, key:"up"}, {frame:61, key:"right"}, {frame:61, key:"up"}, {frame:62, key:"right"}, {frame:62, key:"up"}, {frame:63, key:"right"}, {frame:63, key:"up"}, {frame:64, key:"right"}, {frame:64, key:"up"}, {frame:65, key:"right"}, {frame:65, key:"up"}, {frame:66, key:"right"}, {frame:66, key:"up"}, {frame:67, key:"right"}, {frame:67, key:"up"}, {frame:68, key:"right"}, {frame:68, key:"up"}, {frame:69, key:"right"}, {frame:69, key:"up"}, {frame:70, key:"right"}, {frame:70, key:"up"}, {frame:71, key:"right"}, {frame:71, key:"up"}, {frame:72, key:"right"}, {frame:72, key:"up"}, {frame:73, key:"right"}, {frame:73, key:"up"}, {frame:74, key:"right"}, {frame:74, key:"up"}, {frame:75, key:"right"}, {frame:75, key:"up"}, {frame:76, key:"right"}, {frame:76, key:"up"}, {frame:77, key:"right"}, {frame:77, key:"up"}, {frame:78, key:"right"}, {frame:78, key:"up"}, {frame:81, key:"down"}, {frame:82, key:"down"}, {frame:83, key:"down"}, {frame:84, key:"down"}, {frame:85, key:"down"}, {frame:86, key:"down"}, {frame:87, key:"right"}, {frame:87, key:"down"}, {frame:88, key:"right"}, {frame:89, key:"right"}, {frame:89, key:"down"}, {frame:90, key:"right"}, {frame:90, key:"down"}, {frame:91, key:"right"}, {frame:91, key:"down"}, {frame:92, key:"right"}, {frame:92, key:"down"}, {frame:93, key:"right"}, {frame:93, key:"down"}, {frame:94, key:"right"}, {frame:94, key:"down"}, {frame:95, key:"right"}, {frame:95, key:"down"}, {frame:96, key:"right"}, {frame:96, key:"down"}, {frame:97, key:"right"}, {frame:97, key:"down"}, {frame:98, key:"right"}, {frame:98, key:"down"}, {frame:99, key:"right"}, {frame:99, key:"down"}, {frame:100, key:"right"}, {frame:100, key:"down"}, {frame:101, key:"right"}, {frame:101, key:"down"}, {frame:102, key:"right"}, {frame:102, key:"down"}, {frame:103, key:"right"}, {frame:103, key:"down"}, {frame:104, key:"right"}, {frame:104, key:"down"}, {frame:105, key:"right"}, {frame:105, key:"down"}, {frame:106, key:"right"}, {frame:106, key:"down"}, {frame:107, key:"right"}, {frame:107, key:"down"}, {frame:108, key:"right"}, {frame:108, key:"down"}, {frame:109, key:"right"}, {frame:109, key:"down"}, {frame:110, key:"right"}, {frame:110, key:"down"}, {frame:111, key:"right"}, {frame:111, key:"down"}, {frame:112, key:"right"}, {frame:112, key:"down"}, {frame:113, key:"right"}, {frame:113, key:"down"}, {frame:114, key:"right"}, {frame:114, key:"down"}, {frame:115, key:"right"}, {frame:115, key:"down"}, {frame:116, key:"right"}, {frame:116, key:"down"}, {frame:117, key:"right"}, {frame:117, key:"down"}, {frame:118, key:"right"}, {frame:118, key:"down"}, {frame:119, key:"right"}, {frame:119, key:"down"}, {frame:120, key:"right"}, {frame:120, key:"down"}, {frame:121, key:"right"}, {frame:121, key:"down"}, {frame:122, key:"right"}, {frame:122, key:"down"}, {frame:123, key:"right"}, {frame:123, key:"down"}, {frame:124, key:"right"}, {frame:124, key:"down"}, {frame:125, key:"right"}, {frame:125, key:"down"}, {frame:126, key:"right"}, {frame:126, key:"down"}, {frame:127, key:"right"}, {frame:127, key:"down"}, {frame:128, key:"right"}, {frame:128, key:"down"}, {frame:129, key:"right"}, {frame:129, key:"down"}, {frame:130, key:"right"}, {frame:130, key:"down"}, {frame:131, key:"right"}, {frame:131, key:"down"}, {frame:132, key:"right"}, {frame:132, key:"down"}, {frame:133, key:"right"}, {frame:133, key:"down"}, {frame:134, key:"right"}, {frame:134, key:"down"}, {frame:135, key:"right"}, {frame:135, key:"down"}, {frame:136, key:"right"}, {frame:136, key:"down"}, {frame:137, key:"right"}, {frame:137, key:"down"}, {frame:138, key:"right"}, {frame:138, key:"down"}, {frame:139, key:"right"}, {frame:139, key:"down"}, {frame:140, key:"right"}, {frame:140, key:"down"}, {frame:141, key:"right"}, {frame:141, key:"down"}, {frame:142, key:"right"}, {frame:142, key:"down"}, {frame:143, key:"right"}, {frame:143, key:"down"}, {frame:144, key:"right"}, {frame:144, key:"down"}, {frame:145, key:"right"}, {frame:145, key:"down"}, {frame:146, key:"right"}, {frame:146, key:"down"}, {frame:147, key:"right"}, {frame:147, key:"down"}, {frame:148, key:"right"}, {frame:148, key:"down"}, {frame:149, key:"right"}, {frame:149, key:"down"}, {frame:150, key:"right"}, {frame:150, key:"down"}, {frame:151, key:"right"}, {frame:151, key:"down"}, {frame:152, key:"right"}, {frame:152, key:"down"}, {frame:153, key:"right"}, {frame:153, key:"down"}, {frame:154, key:"right"}, {frame:154, key:"down"}, {frame:155, key:"right"}, {frame:155, key:"down"}, {frame:156, key:"right"}, {frame:156, key:"down"}, {frame:157, key:"right"}, {frame:157, key:"down"}, {frame:158, key:"right"}, {frame:158, key:"down"}, {frame:159, key:"right"}, {frame:159, key:"down"}, {frame:160, key:"right"}, {frame:160, key:"down"}, {frame:161, key:"right"}, {frame:161, key:"down"}, {frame:162, key:"right"}, {frame:162, key:"down"}, {frame:163, key:"right"}, {frame:163, key:"down"}, {frame:164, key:"right"}, {frame:164, key:"down"}, {frame:165, key:"right"}, {frame:165, key:"down"}, {frame:166, key:"right"}, {frame:166, key:"down"}, {frame:167, key:"right"}, {frame:167, key:"down"}, {frame:168, key:"right"}, {frame:168, key:"down"}, {frame:169, key:"right"}, {frame:169, key:"down"}, {frame:170, key:"right"}, {frame:170, key:"down"}, {frame:171, key:"right"}, {frame:171, key:"down"}, {frame:172, key:"right"}, {frame:172, key:"down"}, {frame:173, key:"right"}, {frame:173, key:"down"}, {frame:174, key:"right"}, {frame:174, key:"down"}, {frame:175, key:"right"}, {frame:175, key:"down"}, {frame:176, key:"right"}, {frame:176, key:"down"}, {frame:177, key:"right"}, {frame:177, key:"down"}, {frame:178, key:"right"}, {frame:178, key:"down"}, {frame:179, key:"right"}, {frame:179, key:"down"}, {frame:180, key:"right"}, {frame:180, key:"down"}, {frame:181, key:"right"}, {frame:181, key:"down"}, {frame:182, key:"right"}, {frame:182, key:"down"}, {frame:183, key:"right"}, {frame:183, key:"down"}, {frame:184, key:"right"}, {frame:184, key:"down"}, {frame:185, key:"right"}, {frame:185, key:"down"}, {frame:186, key:"right"}, {frame:186, key:"down"}, {frame:187, key:"right"}, {frame:187, key:"down"}, {frame:188, key:"right"}, {frame:188, key:"down"}, {frame:189, key:"right"}, {frame:189, key:"down"}, {frame:190, key:"right"}, {frame:190, key:"down"}, {frame:191, key:"right"}, {frame:191, key:"down"}, {frame:192, key:"right"}, {frame:192, key:"down"}, {frame:193, key:"right"}, {frame:193, key:"down"}, {frame:194, key:"right"}, {frame:194, key:"down"}, {frame:195, key:"right"}, {frame:195, key:"down"}, {frame:196, key:"right"}, {frame:196, key:"down"}, {frame:197, key:"right"}, {frame:197, key:"down"}, {frame:198, key:"right"}, {frame:198, key:"down"}, {frame:199, key:"right"}, {frame:199, key:"down"}, {frame:200, key:"stop"});
}
}
Symbol 659 MovieClip [__Packages.CDemonstrationDoublePegGrind] Frame 0
class CDemonstrationDoublePegGrind extends CDemonstration
{
var m_groundClipName, m_groundEdgeClipName, m_keys;
function CDemonstrationDoublePegGrind () {
super();
m_groundClipName = "symDemonstrationGroundDoublePegGrind";
m_groundEdgeClipName = "symDemonstrationGroundEdgeDoublePegGrind";
m_keys = new Array({frame:9, key:"up"}, {frame:10, key:"up"}, {frame:11, key:"up"}, {frame:12, key:"up"}, {frame:13, key:"up"}, {frame:14, key:"up"}, {frame:15, key:"up"}, {frame:16, key:"up"}, {frame:17, key:"up"}, {frame:18, key:"up"}, {frame:19, key:"up"}, {frame:20, key:"up"}, {frame:21, key:"up"}, {frame:22, key:"up"}, {frame:23, key:"up"}, {frame:24, key:"up"}, {frame:25, key:"up"}, {frame:26, key:"up"}, {frame:27, key:"up"}, {frame:28, key:"up"}, {frame:29, key:"up"}, {frame:30, key:"up"}, {frame:31, key:"up"}, {frame:32, key:"up"}, {frame:33, key:"up"}, {frame:34, key:"up"}, {frame:35, key:"up"}, {frame:36, key:"up"}, {frame:37, key:"up"}, {frame:38, key:"up"}, {frame:39, key:"up"}, {frame:40, key:"up"}, {frame:41, key:"up"}, {frame:42, key:"up"}, {frame:43, key:"up"}, {frame:44, key:"up"}, {frame:45, key:"up"}, {frame:46, key:"up"}, {frame:47, key:"up"}, {frame:48, key:"up"}, {frame:49, key:"up"}, {frame:50, key:"up"}, {frame:51, key:"up"}, {frame:52, key:"up"}, {frame:53, key:"up"}, {frame:54, key:"up"}, {frame:55, key:"up"}, {frame:56, key:"up"}, {frame:57, key:"up"}, {frame:58, key:"up"}, {frame:59, key:"up"}, {frame:60, key:"up"}, {frame:61, key:"up"}, {frame:62, key:"up"}, {frame:63, key:"up"}, {frame:64, key:"up"}, {frame:65, key:"up"}, {frame:66, key:"up"}, {frame:67, key:"up"}, {frame:68, key:"up"}, {frame:69, key:"up"}, {frame:70, key:"up"}, {frame:71, key:"up"}, {frame:72, key:"up"}, {frame:73, key:"up"}, {frame:74, key:"up"}, {frame:75, key:"up"}, {frame:76, key:"up"}, {frame:77, key:"up"}, {frame:78, key:"up"}, {frame:79, key:"up"}, {frame:80, key:"up"}, {frame:81, key:"up"}, {frame:82, key:"up"}, {frame:83, key:"up"}, {frame:84, key:"up"}, {frame:85, key:"up"}, {frame:86, key:"up"}, {frame:87, key:"up"}, {frame:88, key:"up"}, {frame:89, key:"up"}, {frame:90, key:"up"}, {frame:91, key:"up"}, {frame:92, key:"up"}, {frame:93, key:"up"}, {frame:94, key:"up"}, {frame:95, key:"up"}, {frame:96, key:"up"}, {frame:97, key:"up"}, {frame:98, key:"up"}, {frame:99, key:"up"}, {frame:100, key:"up"}, {frame:101, key:"up"}, {frame:102, key:"up"}, {frame:103, key:"up"}, {frame:104, key:"up"}, {frame:105, key:"up"}, {frame:106, key:"up"}, {frame:107, key:"up"}, {frame:108, key:"up"}, {frame:109, key:"up"}, {frame:127, key:"stop"});
}
}
Symbol 660 MovieClip [__Packages.CDemonstrationIcepickGrind] Frame 0
class CDemonstrationIcepickGrind extends CDemonstration
{
var m_groundClipName, m_groundEdgeClipName, m_keys;
function CDemonstrationIcepickGrind () {
super();
m_groundClipName = "symDemonstrationGroundIcepickGrind";
m_groundEdgeClipName = "symDemonstrationGroundEdgeIcepickGrind";
m_keys = new Array({frame:10, key:"up"}, {frame:11, key:"up"}, {frame:12, key:"up"}, {frame:13, key:"left"}, {frame:13, key:"up"}, {frame:14, key:"left"}, {frame:14, key:"up"}, {frame:15, key:"left"}, {frame:15, key:"up"}, {frame:16, key:"left"}, {frame:16, key:"up"}, {frame:17, key:"left"}, {frame:18, key:"left"}, {frame:19, key:"left"}, {frame:20, key:"left"}, {frame:21, key:"left"}, {frame:21, key:"up"}, {frame:22, key:"left"}, {frame:22, key:"up"}, {frame:23, key:"left"}, {frame:23, key:"up"}, {frame:24, key:"left"}, {frame:24, key:"up"}, {frame:25, key:"left"}, {frame:25, key:"up"}, {frame:26, key:"left"}, {frame:26, key:"up"}, {frame:27, key:"left"}, {frame:28, key:"left"}, {frame:29, key:"left"}, {frame:30, key:"left"}, {frame:31, key:"left"}, {frame:32, key:"left"}, {frame:33, key:"left"}, {frame:33, key:"up"}, {frame:34, key:"left"}, {frame:34, key:"up"}, {frame:35, key:"left"}, {frame:35, key:"up"}, {frame:36, key:"left"}, {frame:36, key:"up"}, {frame:37, key:"left"}, {frame:37, key:"up"}, {frame:38, key:"left"}, {frame:38, key:"up"}, {frame:39, key:"left"}, {frame:39, key:"up"}, {frame:40, key:"left"}, {frame:40, key:"up"}, {frame:41, key:"left"}, {frame:41, key:"up"}, {frame:42, key:"left"}, {frame:42, key:"up"}, {frame:43, key:"left"}, {frame:43, key:"up"}, {frame:44, key:"left"}, {frame:44, key:"up"}, {frame:45, key:"left"}, {frame:46, key:"left"}, {frame:47, key:"left"}, {frame:48, key:"left"}, {frame:49, key:"left"}, {frame:50, key:"left"}, {frame:51, key:"left"}, {frame:52, key:"left"}, {frame:53, key:"left"}, {frame:54, key:"left"}, {frame:55, key:"left"}, {frame:56, key:"left"}, {frame:62, key:"left"}, {frame:63, key:"left"}, {frame:86, key:"stop"});
}
}
Symbol 661 MovieClip [__Packages.CDemonstrationToothpickGrind] Frame 0
class CDemonstrationToothpickGrind extends CDemonstration
{
var m_groundClipName, m_groundEdgeClipName, m_keys;
function CDemonstrationToothpickGrind () {
super();
m_groundClipName = "symDemonstrationGroundToothpickGrind";
m_groundEdgeClipName = "symDemonstrationGroundEdgeToothpickGrind";
m_keys = new Array({frame:6, key:"up"}, {frame:7, key:"up"}, {frame:8, key:"up"}, {frame:9, key:"up"}, {frame:10, key:"up"}, {frame:11, key:"up"}, {frame:12, key:"up"}, {frame:13, key:"up"}, {frame:14, key:"up"}, {frame:15, key:"up"}, {frame:16, key:"up"}, {frame:27, key:"up"}, {frame:28, key:"up"}, {frame:29, key:"up"}, {frame:30, key:"right"}, {frame:30, key:"up"}, {frame:31, key:"right"}, {frame:31, key:"up"}, {frame:32, key:"right"}, {frame:32, key:"up"}, {frame:33, key:"right"}, {frame:33, key:"up"}, {frame:34, key:"right"}, {frame:34, key:"up"}, {frame:35, key:"right"}, {frame:35, key:"up"}, {frame:36, key:"right"}, {frame:36, key:"up"}, {frame:37, key:"up"}, {frame:38, key:"up"}, {frame:39, key:"up"}, {frame:40, key:"right"}, {frame:40, key:"up"}, {frame:41, key:"right"}, {frame:41, key:"up"}, {frame:42, key:"right"}, {frame:42, key:"up"}, {frame:43, key:"right"}, {frame:43, key:"up"}, {frame:44, key:"right"}, {frame:44, key:"up"}, {frame:45, key:"up"}, {frame:46, key:"up"}, {frame:47, key:"up"}, {frame:48, key:"up"}, {frame:49, key:"up"}, {frame:50, key:"right"}, {frame:50, key:"up"}, {frame:51, key:"right"}, {frame:51, key:"up"}, {frame:52, key:"right"}, {frame:52, key:"up"}, {frame:53, key:"right"}, {frame:53, key:"up"}, {frame:54, key:"right"}, {frame:54, key:"up"}, {frame:55, key:"right"}, {frame:55, key:"up"}, {frame:56, key:"right"}, {frame:56, key:"up"}, {frame:57, key:"right"}, {frame:57, key:"up"}, {frame:58, key:"right"}, {frame:58, key:"up"}, {frame:59, key:"right"}, {frame:59, key:"up"}, {frame:60, key:"right"}, {frame:60, key:"up"}, {frame:61, key:"up"}, {frame:62, key:"up"}, {frame:63, key:"up"}, {frame:64, key:"up"}, {frame:65, key:"up"}, {frame:66, key:"up"}, {frame:67, key:"up"}, {frame:68, key:"up"}, {frame:69, key:"up"}, {frame:70, key:"up"}, {frame:71, key:"up"}, {frame:72, key:"up"}, {frame:92, key:"stop"});
}
}
Symbol 662 MovieClip [__Packages.CDemonstrationAllPickGrind] Frame 0
class CDemonstrationAllPickGrind extends CDemonstration
{
var m_groundClipName, m_groundEdgeClipName, m_keys;
function CDemonstrationAllPickGrind () {
super();
m_groundClipName = "symDemonstrationAllPickGrind";
m_groundEdgeClipName = "symDemonstrationGroundEdgeAllPickGrind";
m_keys = new Array({frame:9, key:"up"}, {frame:10, key:"up"}, {frame:11, key:"up"}, {frame:12, key:"up"}, {frame:13, key:"up"}, {frame:13, key:"left"}, {frame:14, key:"left"}, {frame:15, key:"left"}, {frame:16, key:"left"}, {frame:17, key:"left"}, {frame:19, key:"left"}, {frame:20, key:"left"}, {frame:21, key:"left"}, {frame:22, key:"left"}, {frame:22, key:"up"}, {frame:23, key:"left"}, {frame:23, key:"up"}, {frame:24, key:"left"}, {frame:24, key:"up"}, {frame:25, key:"left"}, {frame:25, key:"up"}, {frame:26, key:"left"}, {frame:26, key:"up"}, {frame:27, key:"up"}, {frame:28, key:"up"}, {frame:29, key:"up"}, {frame:34, key:"up"}, {frame:35, key:"left"}, {frame:35, key:"up"}, {frame:36, key:"left"}, {frame:36, key:"up"}, {frame:37, key:"left"}, {frame:37, key:"up"}, {frame:38, key:"left"}, {frame:38, key:"up"}, {frame:39, key:"left"}, {frame:39, key:"up"}, {frame:40, key:"left"}, {frame:40, key:"up"}, {frame:41, key:"left"}, {frame:41, key:"up"}, {frame:42, key:"left"}, {frame:47, key:"left"}, {frame:48, key:"left"}, {frame:49, key:"left"}, {frame:50, key:"left"}, {frame:51, key:"left"}, {frame:52, key:"left"}, {frame:57, key:"left"}, {frame:58, key:"left"}, {frame:59, key:"left"}, {frame:60, key:"left"}, {frame:61, key:"left"}, {frame:62, key:"left"}, {frame:63, key:"left"}, {frame:64, key:"left"}, {frame:65, key:"left"}, {frame:66, key:"left"}, {frame:67, key:"left"}, {frame:68, key:"left"}, {frame:69, key:"left"}, {frame:70, key:"left"}, {frame:71, key:"left"}, {frame:72, key:"left"}, {frame:73, key:"left"}, {frame:73, key:"up"}, {frame:74, key:"up"}, {frame:75, key:"up"}, {frame:76, key:"up"}, {frame:77, key:"up"}, {frame:78, key:"up"}, {frame:79, key:"up"}, {frame:80, key:"up"}, {frame:81, key:"up"}, {frame:82, key:"up"}, {frame:83, key:"up"}, {frame:84, key:"up"}, {frame:85, key:"up"}, {frame:87, key:"up"}, {frame:88, key:"up"}, {frame:89, key:"up"}, {frame:90, key:"up"}, {frame:91, key:"up"}, {frame:92, key:"up"}, {frame:93, key:"up"}, {frame:94, key:"up"}, {frame:95, key:"up"}, {frame:96, key:"up"}, {frame:97, key:"up"}, {frame:98, key:"up"}, {frame:99, key:"up"}, {frame:100, key:"up"}, {frame:101, key:"up"}, {frame:102, key:"up"}, {frame:103, key:"up"}, {frame:104, key:"up"}, {frame:105, key:"up"}, {frame:106, key:"up"}, {frame:107, key:"up"}, {frame:108, key:"up"}, {frame:109, key:"up"}, {frame:110, key:"up"}, {frame:111, key:"up"}, {frame:112, key:"up"}, {frame:113, key:"up"}, {frame:114, key:"up"}, {frame:115, key:"up"}, {frame:116, key:"up"}, {frame:117, key:"up"}, {frame:126, key:"up"}, {frame:127, key:"up"}, {frame:128, key:"up"}, {frame:129, key:"up"}, {frame:130, key:"up"}, {frame:131, key:"up"}, {frame:132, key:"up"}, {frame:133, key:"up"}, {frame:134, key:"up"}, {frame:135, key:"up"}, {frame:136, key:"up"}, {frame:137, key:"up"}, {frame:138, key:"up"}, {frame:139, key:"up"}, {frame:140, key:"up"}, {frame:141, key:"up"}, {frame:142, key:"up"}, {frame:143, key:"up"}, {frame:144, key:"up"}, {frame:145, key:"up"}, {frame:146, key:"up"}, {frame:147, key:"up"}, {frame:148, key:"up"}, {frame:149, key:"up"}, {frame:150, key:"up"}, {frame:151, key:"up"}, {frame:160, key:"up"}, {frame:161, key:"up"}, {frame:162, key:"up"}, {frame:163, key:"right"}, {frame:163, key:"up"}, {frame:164, key:"right"}, {frame:164, key:"up"}, {frame:165, key:"up"}, {frame:166, key:"right"}, {frame:166, key:"up"}, {frame:167, key:"right"}, {frame:167, key:"up"}, {frame:168, key:"right"}, {frame:168, key:"up"}, {frame:169, key:"right"}, {frame:169, key:"up"}, {frame:170, key:"right"}, {frame:170, key:"up"}, {frame:171, key:"right"}, {frame:171, key:"up"}, {frame:172, key:"up"}, {frame:173, key:"up"}, {frame:174, key:"up"}, {frame:175, key:"up"}, {frame:176, key:"right"}, {frame:176, key:"up"}, {frame:177, key:"right"}, {frame:177, key:"up"}, {frame:178, key:"right"}, {frame:178, key:"up"}, {frame:179, key:"right"}, {frame:179, key:"up"}, {frame:180, key:"right"}, {frame:180, key:"up"}, {frame:181, key:"right"}, {frame:181, key:"up"}, {frame:182, key:"right"}, {frame:182, key:"up"}, {frame:183, key:"right"}, {frame:183, key:"up"}, {frame:184, key:"right"}, {frame:184, key:"up"}, {frame:185, key:"right"}, {frame:185, key:"up"}, {frame:186, key:"right"}, {frame:186, key:"up"}, {frame:187, key:"right"}, {frame:187, key:"up"}, {frame:188, key:"right"}, {frame:188, key:"up"}, {frame:189, key:"right"}, {frame:189, key:"up"}, {frame:190, key:"up"}, {frame:191, key:"up"}, {frame:192, key:"right"}, {frame:192, key:"up"}, {frame:193, key:"right"}, {frame:193, key:"up"}, {frame:194, key:"up"}, {frame:195, key:"up"}, {frame:196, key:"up"}, {frame:197, key:"up"}, {frame:198, key:"up"}, {frame:199, key:"up"}, {frame:200, key:"up"}, {frame:220, key:"stop"});
}
}
Symbol 663 MovieClip [__Packages.CScoresControl] Frame 0
class CScoresControl extends MovieClip
{
var m_total, m_timeTotal, m_TimeTotal;
function CScoresControl () {
super();
}
function onLoad() {
m_total.text = "0";
var _local3 = 0;
while (_local3 < m_TRICK_ABBREVIATION.length) {
this[("m_" + m_TRICK_ABBREVIATION[_local3]) + "SimpleQuantity"].text = "0";
this[("m_" + m_TRICK_ABBREVIATION[_local3]) + "ToQuantity"].text = "0";
this[("m_" + m_TRICK_ABBREVIATION[_local3]) + "PlusQuantity"].text = "0";
this[("m_" + m_TRICK_ABBREVIATION[_local3]) + "Total"].text = "0";
_local3++;
}
_local3 = 0;
while (_local3 < _root.allControl.tricksMaded.length) {
var _local4 = _root.allControl.tricksMaded[_local3].trickQuantity;
this[("m_" + m_TRICK_ABBREVIATION[_root.allControl.tricksMaded[_local3].trickType]) + "PlusQuantity"].text = (Number(this[("m_" + m_TRICK_ABBREVIATION[_root.allControl.tricksMaded[_local3].trickType]) + "PlusQuantity"].text) + _local4).toString();
this[("m_" + m_TRICK_ABBREVIATION[_root.allControl.tricksMaded[_local3].trickType]) + "Total"].text = (Number(this[("m_" + m_TRICK_ABBREVIATION[_root.allControl.tricksMaded[_local3].trickType]) + "Total"].text) + (_local4 * _root.allControl.tricksMaded[_local3].trickScore)).toString();
m_total.text = (Number(m_total.text) + (_local4 * _root.allControl.tricksMaded[_local3].trickScore)).toString();
_local3++;
}
m_timeTotal.text = _root.allControl.getRealTimer();
var _local5 = Math.round(_root.allControl.m_timeToStop / 1000);
_local5 = _local5 * 5;
m_TimeTotal.text = _local5.toString();
m_total.text = (Number(m_total.text) + _local5).toString();
_root.allControl.score = _root.allControl.score + Number(m_total.text);
_root.score = _root.allControl.score;
m_snd = new CMySound(this);
m_snd.attachSound(((Number(m_total.text) > 2000) ? "sndGoodScore" : "sndGoodScore"));
m_snd.start();
}
function onUnload() {
m_snd.stop();
}
static var m_TRICK_ABBREVIATION = new Array("air", "backflip", "dpg", "fakie", "frontflip", "horrotation", "ipg", "nosewheelie", "tpg", "wallride", "wheelie");
var m_snd = null;
}
Symbol 270 Button
on (release) {
getURL ("http://www.miniclip.com/", "_blank");
}
Symbol 278 MovieClip Frame 1
stop();
Symbol 295 Button
on (press) {
getURL ("http://www.iriysoft.ru", "_blank");
}
Symbol 298 MovieClip [symSparkle] Frame 7
this.removeMovieClip();
Symbol 466 MovieClip [symHorRotation] Frame 13
this._parent.stopHorRotation();
Symbol 466 MovieClip [symHorRotation] Frame 26
this._parent.stopHorRotation();
Symbol 479 Button
on (press) {
_root.allControl.startTrainingMode();
}
Symbol 487 Button
on (press) {
_root.allControl.startQuestMode();
}
Symbol 490 Button
on (release) {
_root.allControl.showHighScores();
}
Symbol 498 MovieClip Frame 1
stop();
Symbol 498 MovieClip Frame 2
stop();
Symbol 502 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 51
this.gotoAndStop(1);
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 2
stop();
Symbol 533 MovieClip Frame 3
stop();
Symbol 533 MovieClip Frame 4
stop();
Symbol 533 MovieClip Frame 5
stop();
Symbol 533 MovieClip Frame 6
stop();
Symbol 533 MovieClip Frame 7
stop();
Symbol 533 MovieClip Frame 8
stop();
Symbol 533 MovieClip Frame 9
stop();
Symbol 533 MovieClip Frame 10
stop();
Symbol 536 Button
on (release) {
getURL ("http://www.miniclip.com/", "_blank");
}
Symbol 541 Button
on (press) {
delete _root.m_greeting.onEnterFrame;
_root.m_greeting._visible = false;
_root.m_field.isPlaying = true;
}
Symbol 558 MovieClip Frame 1
stop();
Symbol 558 MovieClip Frame 2
stop();
Symbol 563 Button
on (press) {
_root.allControl.startQuest();
}
Symbol 566 Button
on (press) {
_root.allControl.showMainMenu();
}
Symbol 582 MovieClip Frame 1
stop();
Instance of Symbol 140 MovieClip "mc" in Symbol 582 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("frmAir");
}
Symbol 582 MovieClip Frame 2
stop();
Instance of Symbol 140 MovieClip "mc" in Symbol 582 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop("frmBackflip");
}
Symbol 582 MovieClip Frame 3
stop();
Instance of Symbol 140 MovieClip "mc" in Symbol 582 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop("frmFrontflip");
}
Symbol 582 MovieClip Frame 4
stop();
Instance of Symbol 140 MovieClip "mc" in Symbol 582 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop("frmHorrotation");
}
Symbol 582 MovieClip Frame 5
stop();
Instance of Symbol 140 MovieClip "mc" in Symbol 582 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop("frmWheelie");
}
Symbol 582 MovieClip Frame 6
stop();
Instance of Symbol 140 MovieClip "mc" in Symbol 582 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop("frmNosewheelie");
}
Symbol 582 MovieClip Frame 7
stop();
Instance of Symbol 140 MovieClip "mc" in Symbol 582 MovieClip Frame 7
onClipEvent (load) {
this.gotoAndStop("frmFakie");
}
Symbol 582 MovieClip Frame 8
stop();
Instance of Symbol 140 MovieClip "mc" in Symbol 582 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop("frmWallride");
}
Symbol 582 MovieClip Frame 9
stop();
Instance of Symbol 140 MovieClip "mc" in Symbol 582 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop("frmDoublePegGrind");
}
Symbol 582 MovieClip Frame 10
stop();
Instance of Symbol 140 MovieClip "mc" in Symbol 582 MovieClip Frame 10
onClipEvent (load) {
this.gotoAndStop("frmAllPickGrind");
}
Symbol 594 Button
on (release) {
_root.allControl.showMainMenu();
}
Symbol 596 Button
on (release) {
_root.allControl.showHighScores();
}
Symbol 602 MovieClip Frame 1
this._visible = false;
Symbol 611 Button
on (release) {
gameURL = ("http://www.miniclip.com/games/" + gamename) + "/en/";
trace("Going to game: " + gameURL);
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 613 MovieClip Frame 1
System.security.allowDomain("www.miniclip.com");
Instance of Symbol 602 MovieClip "mcHighscores" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 613 MovieClip Frame 2
if (scoreLocation == undefined) {
trace(("*** Miniclip Highscore Component: scoreLocation (" + scoreLocation) + ") is undefined.");
}
if ((((_url.indexOf("miniclip.com") == -1) && (_url.indexOf("miniclip.net") == -1)) && (_url.indexOf("miniclip.co.uk") == -1)) && (_url.indexOf("miniclips.com"))) {
gotoAndStop(_currentframe + 1);
} else {
var noCache = (getTimer() + random(100000));
mcTarget.loadMovie("http://www.miniclip.com/swfcontent/highscore.swf?noCache=" + noCache);
stop();
}
Symbol 613 MovieClip Frame 3
stop();
Symbol 614 Button
on (release) {
_root.allControl.showMainMenu();
}