Frame 1
kv_v = {c:342, a:0, da:["distralytics.com", "distralytics.co.uk"]};
kv_v.i = 0;
while (kv_v.i < kv_v.da.length) {
System.security.allowDomain(kv_v.da[kv_v.i], (kv_v.c + ".c.") + kv_v.da[kv_v.i], "*." + kv_v.da[kv_v.i]);
kv_v.i++;
}
kv_v.lc = function () {
var _local1 = ((("http://" + kv_v.c) + ".c.") + kv_v.da[kv_v.a % kv_v.da.length]) + kv_v.lurl;
System.security.allowDomain(_local1);
kv_v.l_mcl.loadClip(_local1, kv_v.t_mc);
};
kv_v.d = (_root.ori_dom ? (_root.ori_dom) : (((_root._url.split("/")[0].indexOf("http") == -1) ? "Local" : (_root._url.split("/")[2].split("?")[0]))));
kv_v.fpv = getVersion().split(" ")[1].split(",")[0];
kv_v.lurl = "/control/tracking/tracker.swf?r=" + Math.floor(Math.random() * 10000);
kv_v.t_mc = createEmptyMovieClip("kv_tracker", -16734);
kv_v.l_mcl = new MovieClipLoader();
kv_v.mcl_l = {onLoadError:function () {
kv_v.a++;
kv_v.lc();
}, onLoadStart:function (m) {
System.security.allowDomain(m._url);
}};
kv_v.l_mcl.addListener(kv_v.mcl_l);
kv_v.lc();
stop();
Instance of Symbol 10 MovieClip in Frame 1
onClipEvent (load) {
var numPercentage = 0;
var numMaxWidth = this.mcStripe._width;
}
onClipEvent (enterFrame) {
if ((_parent.getBytesLoaded() > 1) && (_parent.getBytesTotal() > 1)) {
numPercentage = Math.floor((100 * _parent.getBytesLoaded()) / _parent.getBytesTotal());
this.mcStripe._width = (numPercentage * numMaxWidth) / 100;
this.txtPercentage = String(numPercentage) + "%";
if (numPercentage >= 100) {
_parent.gotoAndStop("lbStart");
}
}
}
Frame 45
_root.kvCountry();
Symbol 2 MovieClip [dmSoundService] Frame 1
#initclip 33
Object.registerClass("dmSoundService", CSoundService);
#endinitclip
Symbol 750 MovieClip [__Packages.CSoundService] Frame 0
class CSoundService extends MovieClip
{
var m_sounds, m_soundsState, m_soundsNames, createEmptyMovieClip, onEnterFrame;
function CSoundService () {
super();
}
function realPlaySound(id, repeatCount) {
if (m_soundOff) {
return(undefined);
}
Sound(m_sounds[id]).start(0, repeatCount);
}
function processSounds() {
var _local2 = 0;
while (_local2 < m_sounds.length) {
if (m_soundsState[_local2] > 0) {
realPlaySound(_local2, m_soundsState[_local2]);
m_soundsState[_local2] = ST_PLAY;
break;
}
_local2++;
}
}
function init(soundNames) {
m_soundsNames = soundNames;
m_sounds = new Array(soundNames.length);
m_soundsState = new Array(soundNames.length);
var _local2 = 0;
while (_local2 < soundNames.length) {
var _local4 = createEmptyMovieClip("_contMovie" + _local2, 1000 + _local2);
var _local3 = new Sound(_local4);
_local3.attachSound(soundNames[_local2]);
m_soundsState[_local2] = ST_STOP;
_local3.sounID = _local2;
_local3.parent = m_instance;
_local3.onSoundComplete = function () {
this.parent.m_soundsState[this.sounID] = CSoundService.ST_STOP;
};
m_sounds[_local2] = _local3;
_local2++;
}
onEnterFrame = processSounds;
}
static function createSoundService(soundNames, soundsPlace, depthInSoundsPlace) {
m_instance = CSoundService(soundsPlace.attachMovie("dmSoundService", "__SoundServiceObject", depthInSoundsPlace));
m_instance.init(soundNames);
return(m_instance);
}
static function playLoopSound(soundID) {
if ((m_instance.m_loopSoundID >= 0) && (m_instance.m_loopSoundID != soundID)) {
stopSound(m_instance.m_loopSoundID);
}
m_instance.m_loopSoundID = soundID;
if (!soundIsPlay(m_instance.m_loopSoundID)) {
playCurLoopSound();
}
}
static function playCurLoopSound() {
playSound(m_instance.m_loopSoundID, true, 9999);
}
static function stopCurLoopSound() {
stopSound(m_instance.m_loopSoundID);
m_instance.m_loopSoundID = -1;
}
static function soundOff() {
var _local1 = 0;
while (_local1 < m_instance.m_sounds.length) {
stopSound(_local1);
_local1++;
}
m_instance.m_soundOff = true;
}
static function soundOn() {
m_instance.m_soundOff = false;
if (m_instance.m_loopSoundID >= 0) {
playCurLoopSound();
}
}
static function soundIsPlay(id) {
return(m_instance.m_soundsState[id] != ST_STOP);
}
static function playSound(id, ifSoundStop, repeatCount) {
if (repeatCount == undefined) {
repeatCount = 1;
}
if (ifSoundStop == undefined) {
ifSoundStop = false;
}
if (m_instance.m_soundOff) {
return(undefined);
}
if (ifSoundStop && (soundIsPlay(id))) {
return(undefined);
}
m_instance.m_soundsState[id] = repeatCount;
}
static function stopSound(id) {
Sound(m_instance.m_sounds[id]).stop(m_instance.m_soundsNames[id]);
m_instance.m_soundsState[id] = ST_STOP;
}
static function getSoundAt(soundNum) {
return(m_instance.m_sounds[soundNum]);
}
static function soundIsOn() {
return(!m_instance.m_soundOff);
}
static function stopAllSound() {
var _local1 = 0;
while (_local1 < m_instance.m_sounds.length) {
stopSound(_local1);
_local1++;
}
}
var m_loopSoundID = -1;
static var m_instance = null;
var m_soundOff = false;
static var ST_PLAY = -1;
static var ST_STOP = 0;
static var PLAY_OPT_ALWAYS = 0;
static var PLAY_OPT_IFSTOP = 1;
static var PLAY_OPT_STOPANDPLAY = 2;
}
Symbol 751 MovieClip [__Packages.CGame] Frame 0
class CGame extends MovieClip
{
var m_curLevel, m_curRider, m_raceEngine, onEnterFrame, screen, m_statPoints, m_flyTime, m_trickCount, m_levelScore;
function CGame () {
super();
m_curLevel = 0;
m_curRider = 0;
m_instance = this;
Key.addListener(this);
new CGameService(_root, CConstants.SOUNDS_NAMES);
CGameService.__set__DEBUG_MODE(false);
}
function initGame() {
m_raceEngine.initRaceEngine(curLevel);
onEnterFrame = processGame;
}
static function buttonStartGame() {
buttonStartRace();
CSoundService.playSound(CConstants.SND_BUTTON);
}
static function buttonChoiceScreen() {
CSoundService.playSound(CConstants.SND_BUTTON);
m_instance.gotoAndStop("lbChoice");
m_instance.defaltFunction = buttonStartGame;
m_instance.screen.txtLevel = curLevel + 1;
m_instance.choiceKey = function () {
if (Key.isDown(49)) {
CGame.__set__curRider(0);
} else if (Key.isDown(50)) {
CGame.__set__curRider(1);
} else if (Key.isDown(51)) {
CGame.__set__curRider(2);
} else if (Key.isDown(52)) {
CGame.__set__curRider(3);
}
};
}
static function buttonHowToPlay(hideStart) {
CSoundService.playSound(CConstants.SND_BUTTON);
curHelpTrick = (0);
if (m_instance.m_easyMode) {
m_instance.gotoAndStop("lbEasyHelp");
} else {
m_instance.gotoAndStop("lbHowToPlay");
}
if (hideStart) {
m_instance.screen.gotoAndStop(2);
} else {
m_instance.screen.stop();
}
}
static function buttonAbout() {
CSoundService.playSound(CConstants.SND_BUTTON);
curHelpTrick = (0);
m_instance.gotoAndStop("lbAbout");
}
static function goStartGame(easyMode) {
CSoundService.playSound(CConstants.SND_BUTTON);
CGameService.__set__score(0);
curLevel = (0);
curRider = (0);
m_instance.m_easyMode = easyMode;
buttonHowToPlay(false);
}
function updateScoreAndLevel() {
screen.txtLevel = String(curLevel + 1);
screen.txtScore = String(CGameService.__get__score());
}
static function buttonNextLevel() {
CSoundService.playSound(CConstants.SND_BUTTON);
curLevel = ((curLevel+1));
buttonChoiceScreen();
}
static function buttonTryAgain() {
CSoundService.playSound(CConstants.SND_BUTTON);
CGameService.score = CGameService.score - levelScore;
buttonChoiceScreen();
}
static function buttonStartRace() {
CSoundService.playSound(CConstants.SND_BUTTON);
m_instance.gotoAndStop("lbGame");
m_instance.defaltFunction = function () {
};
m_instance.m_raceEngine.m_panel.txtLevel = curLevel + 1;
m_instance.m_raceEngine.m_panel.txtScore = 0;
m_instance.resetLevelStatistic();
m_instance.onEnterFrame = m_instance.initGame;
m_instance.choiceKey = function () {
};
}
static function buttonBack() {
CSoundService.playSound(CConstants.SND_BUTTON);
m_instance.gotoAndStop("lbSplash");
m_instance.defaltFunction = buttonStartGame;
m_instance.choiceKey = function () {
};
}
static function enableQuestion() {
m_instance.attachMovie("idExitQuestion", "mcExitQuestion", 29000);
m_instance.attachMovie("idEQuestion", "mcEQuestion", 29001);
m_instance.mcEQuestion._x = 400;
m_instance.mcEQuestion._y = 300;
m_instance.mcExitQuestion.onPress = function () {
};
m_instance.mcExitQuestion.useHandCursor = false;
}
static function disableQuestion() {
m_instance.mcExitQuestion.removeMovieClip();
m_instance.mcEQuestion.removeMovieClip();
}
static function buttonExitGame() {
enableQuestion();
}
static function levelComplete() {
m_instance.m_point = 0;
m_instance.calcStatistic();
m_instance.gotoAndStop("lbEndLevel");
m_instance.screen.txtLevel = curLevel + 1;
m_instance.screen.txtLevelScore = levelScore;
CGameService.score = CGameService.score + levelScore;
m_instance.screen.txtScore = CGameService.score;
m_instance.defaltFunction = function () {
};
updateQualification();
}
static function updateQualification() {
m_instance.screen.txtGScore = String(m_instance.m_point);
m_instance.screen.txtQScore = String(CConstants.levelStatistics[m_instance.m_curLevel][P_QUALIF]);
if (m_instance.m_point == ((m_instance.m_statPoints[P_TRICK] + m_instance.m_statPoints[P_FTIME]) + m_instance.m_statPoints[P_LSCORE])) {
disableEndLevelButton(false);
trace((("curLevel " + curLevel) + " LEEEVEL ") + (CConstants.levelNames.length - 1));
trace((("m_instance.m_point " + m_instance.m_point) + "CConstants.levelStatistics[m_instance.m_curLevel][P_QUALIF] ") + CConstants.levelStatistics[m_instance.m_curLevel][P_QUALIF]);
if (m_instance.m_point < CConstants.levelStatistics[m_instance.m_curLevel][P_QUALIF]) {
var _local1 = new Array();
_local1.push(CConstants.FILTER_GREY);
m_instance.screen.butNextLevel.filters = _local1;
m_instance.screen.butNextLevel.enabled = false;
} else if (curLevel >= (CConstants.levelNames.length - 1)) {
m_instance.screen.butNextLevel.enabled = false;
m_instance.screen.butContinue.enabled = true;
m_instance.screen.butNextLevel._visible = false;
m_instance.screen.butContinue._visible = true;
}
} else {
disableEndLevelButton(true);
}
}
static function disableEndLevelButton(disable) {
m_instance.screen.butNextLevel.enabled = !disable;
m_instance.screen.butTryAgain.enabled = !disable;
m_instance.screen.butExit.enabled = !disable;
m_instance.screen.butContinue.enabled = false;
m_instance.screen.butNextLevel._visible = !disable;
m_instance.screen.butTryAgain._visible = !disable;
m_instance.screen.butExit._visible = !disable;
m_instance.screen.butContinue._visible = false;
}
static function appreciate(num) {
m_instance.m_point = m_instance.m_point + m_instance.m_statPoints[num];
updateQualification();
}
function processGame() {
CGameService.clearAll();
m_raceEngine.process();
}
function onKeyDown() {
m_raceEngine.onKeyDown();
if (Key.getCode() == 32) {
defaltFunction();
}
choiceKey();
}
function choiceKey() {
}
function defaltFunction() {
}
static function set curLevel(curLevel) {
m_instance.m_curLevel = curLevel;
//return(CGame.curLevel);
}
static function get curLevel() {
return(m_instance.m_curLevel);
}
static function get curRider() {
return(m_instance.m_curRider);
}
static function set curRider(riderNum) {
switch (riderNum) {
case 0 :
CBike.m_acelerate = 80;
CBike.m_turnPower = 4;
CBike.m_jumpPower = 220;
CBike.m_specialTrick1 = CRider.AIR_BACK;
CBike.m_specialTrick2 = CRider.SIT_ROT_360;
break;
case 1 :
if (curLevel < 7) {
return;
}
CBike.m_acelerate = 105;
CBike.m_turnPower = 3.8;
CBike.m_jumpPower = 235;
CBike.m_specialTrick1 = CRider.SIT_ROT_720;
CBike.m_specialTrick2 = CRider.TRICK_ROT360_BLIP;
break;
case 2 :
CBike.m_acelerate = 90;
CBike.m_turnPower = 4.8;
CBike.m_jumpPower = 260;
CBike.m_specialTrick1 = CRider.HELICOPTER;
CBike.m_specialTrick2 = CRider.TRICK_AIRPLANE;
break;
case 3 :
if (curLevel < 4) {
return;
}
CBike.m_acelerate = 100;
CBike.m_turnPower = 4.4;
CBike.m_jumpPower = 240;
CBike.m_specialTrick1 = CRider.AIR_FRONT;
CBike.m_specialTrick2 = CRider.HELICOPTER_SIT;
}
m_instance.m_curRider = riderNum;
//return(curRider);
}
static function getCurRace() {
return(m_instance.m_raceEngine);
}
static function initPeople(num, pointer) {
var _local1 = CGameService.roundRandom(3);
var _local2 = CGameService.roundRandom(15) + 5;
pointer.gotoAndPlay(_local2 * (_local1 - num));
pointer.mcTablet.gotoAndStop(m_instance.m_statPoints[num]);
}
function resetLevelStatistic() {
m_statPoints = new Array(3);
m_flyTime = 0;
m_trickCount = 0;
m_levelScore = 0;
}
function calcStatistic() {
m_statPoints[P_TRICK] = Math.min(Math.max(1, Math.floor((m_trickCount / CConstants.levelStatistics[m_curLevel][P_TRICK]) * 10)), 10);
m_statPoints[P_FTIME] = Math.min(Math.max(1, Math.floor((m_flyTime / CConstants.levelStatistics[m_curLevel][P_FTIME]) * 10)), 10);
if (easyMode) {
m_statPoints[P_LSCORE] = Math.min(Math.max(1, Math.floor((m_levelScore / (CConstants.levelStatistics[m_curLevel][P_LSCORE] / 2)) * 10)), 10);
} else {
m_statPoints[P_LSCORE] = Math.min(Math.max(1, Math.floor((m_levelScore / CConstants.levelStatistics[m_curLevel][P_LSCORE]) * 10)), 10);
}
}
static function set flyTime(time) {
m_instance.m_flyTime = time;
//return(flyTime);
}
static function get flyTime() {
return(m_instance.m_flyTime);
}
static function set trickCount(count) {
m_instance.m_trickCount = count;
//return(trickCount);
}
static function get trickCount() {
return(m_instance.m_trickCount);
}
static function set levelScore(score) {
m_instance.m_levelScore = Math.round(score);
m_instance.m_raceEngine.m_panel.txtScore = score;
//return(levelScore);
}
static function get levelScore() {
return(m_instance.m_levelScore);
}
static function get curHelpTrick() {
return(m_instance.m_curHelpTrick);
}
static function set curHelpTrick(numHelpTrick) {
m_instance.m_curHelpTrick = numHelpTrick;
//return(curHelpTrick);
}
static function get easyMode() {
return(m_instance.m_easyMode);
}
static function autoJump() {
if (easyMode) {
m_instance.m_raceEngine.m_bike.jump();
m_instance.m_raceEngine.m_bike.m_man.state = CRider.ST_STANDUP;
}
}
static var m_instance = null;
static var P_TRICK = 0;
static var P_FTIME = 1;
static var P_LSCORE = 2;
static var P_QUALIF = 3;
}
Symbol 752 MovieClip [__Packages.IPauseListener] Frame 0
interface IPauseListener
{
}
Symbol 753 MovieClip [__Packages.CRaceEngine] Frame 0
class CRaceEngine extends MovieClip implements IPauseListener
{
var keyManager, processBuckUp, mcPause, m_bike, mcPrompting, attachMovie, m_level, m_keyState, finishCounter, deathTimeCounter, m_curLevel, m_levelPlace, mcLevelCaption;
function CRaceEngine () {
super();
keyManager = new CKeyManager().init(CConstants.REAL_KEYS, CConstants.LOGIC_KEYS);
keyManager.m_allKeySequence = CConstants.SEQUENCE_FOR_TRICK;
disablePromting();
CGameService.addPauseListener(this);
}
function enablePause() {
processBuckUp = process;
process = function () {
};
disableKeyFunction();
mcPause._visible = true;
m_bike.getBodyMovieClip()._visible = false;
}
function disablePause() {
process = processBuckUp;
enableBikeControll();
mcPause._visible = false;
m_bike.getBodyMovieClip()._visible = true;
}
function processKeys() {
}
function initPromting(promtNum) {
mcPrompting._visible = true;
mcPrompting.gotoAndStop(promtNum);
if (CGame.__get__easyMode()) {
mcPrompting.mcKeyboardNormal._visible = false;
} else {
mcPrompting.mcKeyboardEasy._visible = false;
}
if (promtNum >= CConstants.TRICK_SPEC_LEFT) {
mcPrompting.mcSpecTrick.gotoAndStop(CGame.__get__curRider() + 1);
}
mcPrompting.delay = 60;
mcPrompting.onEnterFrame = function () {
this.delay--;
if (this.delay < 0) {
this.onEnterFrame = function () {
};
this._visible = false;
}
};
}
function disablePromting() {
mcPrompting._visible = false;
}
function makeTrick(trickId, trickScore) {
CGame.levelScore = CGame.levelScore + trickScore;
CGame.__set__trickCount((CGame.__get__trickCount()+1));
var _local2 = attachMovie("idTrickMessage", "trick", 1000);
_local2._x = 400;
_local2._y = 200;
if (CGame.__get__easyMode()) {
trickScore = Math.round(trickScore / 2);
}
_local2.mcMessage.gotoAndStop(trickId);
_local2.mcMessage1.gotoAndStop(trickId);
_local2.mcMessage.txtScore = String(trickScore);
_local2.mcMessage1.txtScore = String(trickScore);
_local2.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
this.removeMovieClip();
}
};
var _local4 = m_level.trickCheck(m_bike.getBodyMovieClip());
if ((_local4 != null) && (CConstants.TRICK_NUM_VS_PROMT[trickId] == _local4.trickForCheck)) {
disablePromting();
_local4.trickForCheck = 0;
var _local3 = attachMovie("idBonus", "Bonus", 2000);
_local3._x = 400;
_local3._y = 300;
_local3.msg.txtScore = 500;
CGame.levelScore = CGame.levelScore + 500;
_local3.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
this.removeMovieClip();
}
};
CSoundService.playSound(CConstants.SND_BONUS);
} else {
CSoundService.playSound(CConstants.SND_TRICK);
}
}
function process() {
}
function processRace() {
m_level.process();
var _local2 = m_level.checkLevelPromt(m_bike.getBodyMovieClip());
if (_local2 > 0) {
initPromting(_local2);
}
processKeys();
m_bike.processKeys(m_keyState);
m_bike.process();
if (m_bike.checkDeath()) {
initDie();
}
if (m_bike.hitTestObstacles(m_level.getObstaclesPlace())) {
initDie();
}
processFinish();
}
function processFinish() {
if (m_level.checkFinish(m_bike.getBodyMovieClip())) {
finishCounter = 0;
process = function () {
this.finishCounter = this.finishCounter + 1;
this.m_level.m_engine.process();
this.m_bike.process();
if (this.m_bike.checkDeath()) {
this.initDie();
}
if (this.finishCounter > 30) {
CGame.levelComplete();
}
};
}
}
function onUnload() {
CGameService.removePauseListener(this);
}
function initDie() {
if (CGame.__get__curRider() < 2) {
CSoundService.playSound(CConstants.SND_DIE_MALE);
} else {
CSoundService.playSound(CConstants.SND_DIE_FEMALE);
}
m_bike.initDeath();
deathTimeCounter = 100;
process = function () {
this.m_level.process();
this.m_bike.process();
if ((--this.deathTimeCounter) < 0) {
CGame.buttonChoiceScreen();
}
};
}
function initRaceEngine(levelNum) {
m_curLevel = levelNum;
m_bike = new CBike();
m_level = CLevel(m_levelPlace.attachMovie("idCurLevel", "__idLevel", DEPTH_CURLEVEL));
m_level.initLevel(levelNum);
m_keyState = new CMultiState();
resetBike();
enableBikeControll();
spaceFunction = function () {
};
mcLevelCaption.mcCaption.gotoAndStop(CGame.__get__curLevel() + 1);
mcPause._visible = false;
process = processRace;
}
function resetBike() {
m_level.getEngine().clear();
m_bike.initWehicle(m_level, CConstants.SCREEN_WIDTH / 6, CConstants.LEVEL_HORIZONT - 50);
m_level.initCamera(m_bike.getBodyMovieClip(), CConstants.SCREEN_WIDTH, CConstants.SCREEN_HEIGHT, CConstants.SCREEN_WIDTH / 4, CConstants.SCREEN_HEIGHT / 2);
}
function enableBikeControll() {
processKeys = function () {
this.keyManager.process();
if (this.m_keyState.curMask != this.keyManager.m_pressedKeyState.curMask) {
this.m_keyState.curMask = this.keyManager.m_pressedKeyState.curMask;
}
if (CGame.__get__easyMode()) {
if (Key.isDown(49)) {
this.m_keyState.addMask(CBike.KM_TRICK1);
} else if (Key.isDown(50)) {
this.m_keyState.addMask(CBike.KM_TRICK2);
} else if (Key.isDown(51)) {
this.m_keyState.addMask(CBike.KM_TRICK3);
} else if (Key.isDown(52)) {
this.m_keyState.addMask(CBike.KM_SPEC_TRICK1);
} else if (Key.isDown(53)) {
this.m_keyState.addMask(CBike.KM_SPEC_TRICK2);
}
} else {
var _local2 = this.keyManager.checkAllSequence();
if (_local2 >= 0) {
this.m_keyState.addMask(CConstants.SEQUENCE_TRICK_NUM_VS_BIKE_KEY[_local2]);
}
}
};
}
function disableKeyFunction() {
processKeys = function () {
};
}
function onKeyDown() {
if (Key.getCode() == 32) {
spaceFunction();
}
}
function spaceFunction() {
}
static var DEPTH_CURLEVEL = 10;
}
Symbol 754 MovieClip [__Packages.CBike] Frame 0
class CBike
{
static var breakIsDown, m_specialTrick1, m_specialTrick2;
var m_bikeDir, m_bikeNormal, engine, vehiclePlace, wheelCount, m_wh1, m_wh2, m_wh3, prBody, m_man, flyCounter, groundCounter, m_trickKey, wheelyCounter, m_bikeMovie, m_spaceIsPress, m_prevBikeAgle, m_bikeAgle, m_point90, m_point270;
function CBike () {
m_bikeDir = new CVector2D(0, 0);
m_bikeNormal = new CVector2D(0, 0);
breakIsDown = false;
}
function initWehicle(level, posX, posY) {
engine = level.getEngine();
vehiclePlace = level.getVehiclePlace();
var _local5;
wheelCount = 0;
m_wh1 = makeBoardWheel(posX - 40, posY);
m_wh2 = makeBoardWheel(posX + 40, posY);
m_wh3 = makeBoardWheel(posX, posY);
engine.addConstraint(new CSpringConstraint().init(1, 1, m_wh2, m_wh1));
engine.addConstraint(new CSpringConstraint().init(1, 1, m_wh2, m_wh3));
engine.addConstraint(new CSpringConstraint().init(1, 1, m_wh1, m_wh3));
prBody = new CParticle().initParticle(posX, posY - 55, 3);
engine.addParticle(prBody);
engine.addConstraint(new CSpringConstraint().init(1, 1, prBody, m_wh1));
engine.addConstraint(new CSpringConstraint().init(1, 1, prBody, m_wh2));
engine.addConstraint(new CSpringConstraint().init(1, 1, prBody, m_wh3));
m_man = CRider(vehiclePlace.attachMovie("idSnowBorder", "_Boarder", 180));
m_man._xscale = CConstants.BorderScaleX[CGame.__get__curRider()];
m_man._yscale = CConstants.BorderScaleY[CGame.__get__curRider()];
flyCounter = 0;
groundCounter = 0;
m_trickKey = 0;
wheelyCounter = 0;
}
function initDeath() {
m_man.gotoAndStop(CRider.FRAME_DEAD);
var _local6 = m_wh1.__get__pos().x;
var _local3 = m_wh1.__get__pos().y;
var _local5 = m_wh1.__get__prevPos().x;
var _local4 = m_wh1.__get__prevPos().y;
engine.clear();
wheelCount = 0;
var _local2 = vehiclePlace.attachMovie("idDeadWheel", "_wh" + wheelCount, 150 + wheelCount);
_local2._visible = false;
m_wh1 = new CWheel();
m_wh1.initWhile(_local6, _local3, 8, 20, 140, _local2, m_man);
m_wh1.__get__prevPos().x = _local5;
m_wh1.__get__prevPos().y = _local4;
engine.addParticle(m_wh1);
process = function () {
this.m_man._x = this.m_wh1.getMovie()._x;
this.m_man._y = this.m_wh1.getMovie()._y;
};
}
function makeBoardWheel(px, py) {
wheelCount++;
var _local3 = vehiclePlace.attachMovie("idSnowWheel", "_wh" + wheelCount, 150 + wheelCount);
_local3._visible = false;
var _local2 = new CWheel();
_local2.initWhile(px, py, 4, 15, 140, _local3);
engine.addParticle(_local2);
return(_local2);
}
function playAccelerateSound() {
}
function stopAccelerateSound() {
}
function accelerate() {
m_wh2.setAccelerate(m_acelerate);
}
function brake() {
m_wh1.setAccelerate(0);
}
function stopAccelerate() {
m_wh1.setAccelerate(0);
m_wh2.setAccelerate(0);
m_wh3.setAccelerate(0);
}
function processKeys(keyState) {
breakIsDown = false;
if (keyState.checkMask(KM_ACCELERATE)) {
if (!keyState.checkPrevStateMask(KM_ACCELERATE)) {
playAccelerateSound();
keyState.addMask(KM_ACCELERATE);
}
} else if (keyState.checkMask(KM_BRAKE)) {
processAccelerate = brake;
breakIsDown = true;
} else {
processAccelerate = accelerate;
stopAccelerateSound();
}
m_bikeMovie.mc.mc_man.processKeys(keyState);
if (keyState.checkMask(KM_BIKE_JUMP)) {
m_spaceIsPress = true;
} else {
m_spaceIsPress = false;
}
if ((!m_spaceIsPress) && (keyState.checkMask(KM_MOVE_BODY_FORWARD))) {
turnTo(DIR_RIGHT);
} else if ((!m_spaceIsPress) && (keyState.checkMask(KM_MOVE_BODY_BACK))) {
turnTo(DIR_LEFT);
}
if (m_man.__get__state() == CRider.ST_STAND) {
if (keyState.checkMask(KM_SPEC_TRICK1)) {
m_trickKey = m_specialTrick1;
} else if (keyState.checkMask(KM_SPEC_TRICK2)) {
m_trickKey = m_specialTrick2;
} else if (keyState.checkMask(KM_TRICK3)) {
m_trickKey = CRider.STAND_ROT_360;
} else if (keyState.checkMask(KM_TRICK2)) {
m_trickKey = CRider.TRICK_GRAB_TAIL;
} else if (keyState.checkMask(KM_TRICK1)) {
m_trickKey = CRider.TRICK_GRAB_NOSE;
}
}
}
function processAccelerate() {
}
function process() {
processAccelerate();
var _local3;
var _local2;
m_bikeDir.init(m_wh2.__get__pos().x - m_wh1.__get__pos().x, m_wh2.__get__pos().y - m_wh1.__get__pos().y);
m_prevBikeAgle = m_bikeAgle;
m_bikeAgle = (Math.atan2(m_bikeDir.y, m_bikeDir.x) * 180) / Math.PI;
proccesRider(m_bikeAgle);
if (m_wh3.hasIntersection()) {
m_man._x = m_wh3.__get__pos().x;
m_man._y = m_wh3.__get__pos().y;
} else {
m_man._x = (m_wh1.__get__pos().x + m_wh2.__get__pos().x) / 2;
m_man._y = (m_wh1.__get__pos().y + m_wh2.__get__pos().y) / 2;
}
}
function resetFlipPoint() {
m_point90 = (m_point270 = 0);
}
function processFlipPoint() {
if ((m_bikeAgle * m_prevBikeAgle) < 0) {
return(undefined);
}
if ((m_bikeAgle > TRICK_ANGLE) && (m_prevBikeAgle < TRICK_ANGLE)) {
m_point90++;
} else if ((m_bikeAgle < TRICK_ANGLE) && (m_prevBikeAgle > TRICK_ANGLE)) {
m_point90--;
} else if ((m_bikeAgle > (-TRICK_ANGLE)) && (m_prevBikeAgle < (-TRICK_ANGLE))) {
m_point270++;
} else if ((m_bikeAgle < (-TRICK_ANGLE)) && (m_prevBikeAgle > (-TRICK_ANGLE))) {
m_point270--;
}
if (m_point270 > 0) {
CGame.getCurRace().makeTrick(CRider.TRICK_FRONT_FLIP, CConstants.SCORE_FORTRICK[CRider.TRICK_FRONT_FLIP]);
resetFlipPoint();
} else if (m_point90 < 0) {
CGame.getCurRace().makeTrick(CRider.TRICK_BACK_FLIP, CConstants.SCORE_FORTRICK[CRider.TRICK_BACK_FLIP]);
resetFlipPoint();
}
}
function endWheelyTrick() {
m_man.__set__state(CRider.ST_STAND);
if (wheelyCounter > 13) {
CGame.getCurRace().makeTrick(CRider.TRICK_WHEELY, Math.round(CConstants.SCORE_FORTRICK[CRider.TRICK_WHEELY] * wheelyCounter));
}
wheelyCounter = 0;
}
function proccesRider(angle) {
var _local2 = 0;
var _local3 = 0;
if (boardOnGround()) {
if (flyCounter > _local2) {
m_man.__set__state(CRider.ST_HALFSIT);
CGame.flyTime = CGame.flyTime + flyCounter;
}
flyCounter = 0;
groundCounter++;
resetFlipPoint();
if (breakIsDown) {
if (m_man.__get__state() == CRider.ST_WHEELY) {
wheelyCounter++;
} else {
m_man.__set__state(CRider.ST_WHEELY);
}
} else if (m_man.__get__state() == CRider.ST_WHEELY) {
endWheelyTrick();
}
switch (m_man.__get__state()) {
case CRider.ST_STAND :
if (m_spaceIsPress && (groundCounter > _local3)) {
m_man.__set__state(CRider.ST_SITDOWN);
}
break;
case CRider.ST_SIT :
if (!m_spaceIsPress) {
jump();
m_man.__set__state(CRider.ST_STANDUP);
}
break;
case CRider.ST_SITDOWN :
if (m_spaceIsPress) {
break;
}
if (CGame.__get__easyMode()) {
} else {
if (groundCounter <= _local3) {
break;
}
jump();
m_man.__set__state(CRider.ST_STANDUP);
}
}
} else {
switch (m_man.__get__state()) {
case CRider.ST_WHEELY :
if (flyCounter > 0) {
endWheelyTrick();
}
break;
case CRider.ST_SIT :
if (flyCounter > 2) {
m_man.__set__state(CRider.ST_STANDUP);
}
break;
case CRider.ST_STAND :
if (!((flyCounter > _local2) && (m_trickKey > 0))) {
break;
}
m_man.__set__state((CRider.ST_360_DEGREES + m_trickKey) - 1);
m_trickKey = 0;
}
flyCounter++;
if (flyCounter > _local2) {
processFlipPoint();
}
groundCounter = 0;
}
m_man.process();
if (m_man.__get__state() == CRider.ST_STAND) {
if (flyCounter > _local2) {
m_man.rotate(m_man.__get__angle() / 2);
} else {
m_man.rotate((angle + m_man.__get__angle()) / 2);
}
}
m_man._rotation = angle;
}
function moveMovieToMovieGlobal(movie, moviePos) {
var _local1 = {x:movie._x, y:movie._y};
movie._parent.localToGlobal(_local1);
moviePos._parent.globalToLocal(_local1);
moviePos._x = _local1.x;
moviePos._y = _local1.y;
}
function rotateMovieToMovieLocal(movie, moviePos) {
movie._rotation = (Math.atan2(moviePos._y - movie._y, moviePos._x - movie._x) * 180) / Math.PI;
}
function turnTo(dir) {
m_bikeNormal.init(m_bikeDir.x, m_bikeDir.y);
m_bikeNormal.normalize();
var _local4;
_local4 = m_bikeNormal.x;
m_bikeNormal.x = -m_bikeNormal.y;
m_bikeNormal.y = _local4;
var _local3 = (m_bikeNormal.x * 7) * m_turnPower;
var _local2 = (m_bikeNormal.y * 7) * m_turnPower;
if (dir == DIR_RIGHT) {
m_wh2.__get__accelerate().plusXY(_local3 * 1.3, _local2 * 1.3);
m_wh1.__get__accelerate().plusXY((-_local3) * 0.7, (-_local2) * 0.7);
} else {
m_wh2.__get__accelerate().plusXY((-_local3) * 0.7, (-_local2) * 0.7);
m_wh1.__get__accelerate().plusXY(_local3 * 1.3, _local2 * 1.3);
}
}
function jump() {
if (flyCounter > 5) {
return(undefined);
}
var _local2 = 170 + (m_jumpPower * m_man.getCurAnimationKoeffComplete());
m_wh1.__get__accelerate().plusXY(0, -_local2);
m_wh2.__get__accelerate().plusXY(0, -_local2);
m_wh3.__get__accelerate().plusXY(0, -_local2);
prBody.__get__accelerate().plusXY(0, -_local2);
}
function checkPointVsMovie(point, movie) {
var _local1 = {x:point._x, y:point._y};
point._parent.localToGlobal(_local1);
return(movie.hitTest(_local1.x, _local1.y, true));
}
function checkDeath() {
return(checkPointVsMovie(m_man.mcDeathHit, engine.getHitMovie()));
}
function hitTestObstacles(movieWithObstacles) {
for (var _local3 in movieWithObstacles) {
if ((movieWithObstacles[_local3].hitTest(m_wh1.getMovie()) || (movieWithObstacles[_local3].hitTest(m_wh3.getMovie()))) || (movieWithObstacles[_local3].hitTest(m_wh2.getMovie()))) {
return(true);
}
}
return(false);
}
function boardOnGround() {
return(checkPointVsMovie(m_man.mcJumpHit1, engine.getHitMovie()) || (checkPointVsMovie(m_man.mcJumpHit2, engine.getHitMovie())));
}
function getBodyMovieClip() {
return(m_man);
}
static var KM_NONE = 0;
static var KM_ACCELERATE = 1;
static var KM_BRAKE = 2;
static var KM_MOVE_BODY_FORWARD = 4;
static var KM_MOVE_BODY_BACK = 8;
static var KM_BIKE_JUMP = 16;
static var KM_TRICK1 = 32;
static var KM_TRICK2 = 64;
static var KM_TRICK3 = 128;
static var KM_SPEC_TRICK1 = 256;
static var KM_SPEC_TRICK2 = 512;
static var DIR_RIGHT = 0;
static var DIR_LEFT = 1;
static var m_acelerate = 60;
static var m_turnPower = 3.3;
static var m_jumpPower = 250;
static var TRICK_ANGLE = 170;
}
Symbol 755 MovieClip [__Packages.CParticle] Frame 0
class CParticle
{
var m_curPosition, m_prevPosition, m_accelerate, m_buckup, m_mass, m_mc;
function CParticle () {
m_curPosition = new CVector2D();
m_prevPosition = new CVector2D();
m_accelerate = new CVector2D();
m_buckup = new CVector2D();
}
function initParticle(x, y, mass, mc) {
if (x == undefined) {
x = 0;
}
if (y == undefined) {
y = 0;
}
if (mass == undefined) {
mass = 1;
}
moveTo(x, y);
m_mass = mass;
m_accelerate.x = 0;
m_accelerate.y = 0;
setMovie(mc);
return(this);
}
function moveTo(nx, ny) {
m_curPosition.x = (m_prevPosition.x = nx);
m_curPosition.y = (m_prevPosition.y = ny);
}
function verlet(dTime, koeffDamp) {
m_buckup.copyFrom(m_curPosition);
m_curPosition.x = m_curPosition.x + (((m_curPosition.x - m_prevPosition.x) * koeffDamp) + (m_accelerate.x * dTime));
m_curPosition.y = m_curPosition.y + (((m_curPosition.y - m_prevPosition.y) * koeffDamp) + (m_accelerate.y * dTime));
m_buckup.copyTo(m_prevPosition);
synchronizeMovie();
}
function checkCollision(hitMovie) {
}
function synchronizeMovie() {
}
function moveMovieToCurentPosition() {
m_mc._x = m_curPosition.x;
m_mc._y = m_curPosition.y;
}
function get mass() {
return(m_mass);
}
function set mass(nMass) {
m_mass = nMass;
//return(mass);
}
function get accelerate() {
return(m_accelerate);
}
function set accelerate(acc) {
m_accelerate = acc;
//return(accelerate);
}
function get prevPos() {
return(m_prevPosition);
}
function set prevPos(pos) {
m_prevPosition = pos;
//return(prevPos);
}
function get pos() {
return(m_curPosition);
}
function set pos(pos) {
m_curPosition = pos;
//return(this.pos);
}
function setMovie(mc) {
if ((mc == null) || (mc == undefined)) {
synchronizeMovie = function () {
};
m_mc = null;
} else {
m_mc = mc;
synchronizeMovie = moveMovieToCurentPosition;
}
}
function getMovie() {
return(m_mc);
}
}
Symbol 756 MovieClip [__Packages.CVector2D] Frame 0
class CVector2D
{
var x, y;
function CVector2D (nx, ny) {
init(nx, ny);
}
function init(nx, ny) {
x = nx;
y = ny;
}
function copyFrom(v) {
x = v.x;
y = v.y;
}
function copyTo(v) {
v.x = x;
v.y = y;
}
function plusXY(nx, ny) {
x = x + nx;
y = y + ny;
}
static function getDistanceBetween(p1, p2) {
var _local2 = p1.x - p2.x;
var _local1 = p1.y - p2.y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
function getUgol() {
return(Math.atan2(y, x));
}
function duplicate() {
return(new CVector2D(x, 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) + ", ") + y) + " )");
}
}
Symbol 757 MovieClip [__Packages.CWheel] Frame 0
class CWheel extends CParticle
{
var m_rim, m_acceleration, initParticle, m_koeffSpring, m_koeffSlip, m_radius, m_maxAccSpeed, m_speed, m_accSpeed, rot, intersectionFlag, lastIntersPoint, lastN, hitPointArray, normalArray, hitArray, intersArray, m_prevPosition, synchronizeMovie, m_mc, m_curPosition;
function CWheel () {
super();
}
function setRotationMovie(rotationMovie) {
if ((rotationMovie == undefined) || (rotationMovie == null)) {
rotateMovie = function () {
};
m_rim = null;
} else {
rotateMovie = function () {
this.rot.rotate(this.m_speed / this.m_radius);
this.m_rim._rotation = Math.atan2(this.rot.y, this.rot.x) * CWheel.ANGLE_180_DIV_PI;
};
m_rim = rotationMovie;
}
}
function setAccelerate(nAccelerate) {
m_acceleration = nAccelerate;
}
function getAccelerate() {
return(m_acceleration);
}
function initWhile(x, y, mass, rad, maxAccSpeed, mc, rotationMovie, koeffSpring, koeffSlip) {
initParticle(x, y, mass, mc);
if (koeffSpring == undefined) {
koeffSpring = 0.1;
}
if (koeffSlip == undefined) {
koeffSlip = 0.1;
}
m_koeffSpring = koeffSpring;
m_koeffSlip = koeffSlip;
setRotationMovie(rotationMovie);
m_radius = rad;
m_maxAccSpeed = maxAccSpeed;
m_speed = 0;
m_accSpeed = 0;
rot = new CVector2D(1, 0);
intersectionFlag = false;
lastIntersPoint = new CVector2D(0, 0);
lastN = new CVector2D(0, 0);
var _local2;
var _local3 = (Math.PI*2) / m_hitCount;
hitPointArray = new Array(m_hitCount);
normalArray = new Array(m_hitCount);
hitArray = new Array(m_hitCount);
intersArray = new Array();
_local2 = 0;
while (_local2 < m_hitCount) {
hitPointArray[_local2] = new CVector2D(Math.sin(_local3 * _local2) * m_radius, (-Math.cos(_local3 * _local2)) * m_radius);
normalArray[_local2] = hitPointArray[_local2].multNew(-1);
normalArray[_local2].normalize();
_local2++;
}
m_acceleration = 0;
return(this);
}
function verlet(dTime, koeffDamp) {
super.verlet(dTime, koeffDamp);
m_accSpeed = Math.max(-m_maxAccSpeed, Math.min(m_maxAccSpeed, m_accSpeed + (m_acceleration * dTime)));
m_speed = Math.max((-m_maxSpeed) * dTime, Math.min((m_speed * koeffDamp) + m_accSpeed, m_maxSpeed * dTime));
rotateMovie();
}
function rotateMovie() {
}
function checkCollision(hit_mc) {
var _local2;
var _local8;
var _local9 = new CVector2D(0, 0);
var _local13 = false;
var _local5;
var _local7;
var _local15;
var _local16 = new CVector2D(m_prevPosition.x, m_prevPosition.y);
var _local4 = new CVector2D(0, 0);
var _local3 = new CVector2D(0, 0);
var _local14;
synchronizeMovie();
_local14 = 0;
_local2 = 0;
while (_local2 < m_hitCount) {
hitPointArray[_local2].copyTo(_local9);
m_mc.localToGlobal(_local9);
if ((hitArray[_local2] = hit_mc.hitTest(_local9.x, _local9.y, true))) {
_local13 = true;
_local5 = _local2;
_local14++;
}
_local2++;
}
if (_local14 == m_hitCount) {
m_curPosition.x = m_prevPosition.x + ((m_curPosition.x - m_prevPosition.x) * 0.3);
m_curPosition.y = m_prevPosition.y + ((m_curPosition.y - m_prevPosition.y) * 0.3);
synchronizeMovie();
return(undefined);
}
_local2 = 0;
if (_local13) {
while (true) {
_local2++;
if (_local2 == m_hitCount) {
_local2 = 0;
}
if (!hitArray[_local2]) {
_local5 = -1;
_local8 = 0;
while (_local8 < m_hitCount) {
_local2++;
if (_local2 == m_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 = m_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]);
}
_local8++;
}
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);
m_curPosition.minusNew(m_prevPosition).copyTo(_local6);
if (_local4.scalar(_local6) < 0) {
_local11 = Math.atan2(_local4.y, _local4.x);
_local6.rotate(-_local11);
_local6.x = (-_local6.x) * m_koeffSpring;
_local6.rotate(_local11);
pushOut(_local5, _local7, _local3, hit_mc);
m_prevPosition.x = m_curPosition.x - _local6.x;
m_prevPosition.y = m_curPosition.y - _local6.y;
} else {
pushOut(_local5, _local7, _local3, hit_mc);
}
_local2++;
}
validateRotation(_local4, _local16);
intersectionFlag = true;
m_curPosition.copyTo(lastIntersPoint);
_local4.copyTo(lastN);
}
} else if (intersectionFlag) {
validateRotation(lastN, _local16);
intersectionFlag = false;
}
synchronizeMovie();
}
function pushOut(k1, k2, n, hit_mc) {
n.normalize();
if (k1 != k2) {
var _local7 = new CVector2D(0, 0).getDistanceTo(hitPointArray[k1], hitPointArray[k2]);
_local7 = m_radius - Math.abs(_local7);
m_curPosition.plus(n.multNew(_local7));
m_prevPosition.plus(n.multNew(_local7));
} else {
var _local6 = n.multNew(-m_radius);
var _local4 = new CVector2D(0, 0);
var _local5 = 0;
var _local3 = 0.03;
while (true) {
_local6.copyTo(_local4);
m_mc.localToGlobal(_local4);
if (hit_mc.hitTest(_local4.x, _local4.y, true)) {
_local5++;
m_curPosition.x = m_curPosition.x + (n.x * _local3);
m_curPosition.y = m_curPosition.y + (n.y * _local3);
synchronizeMovie();
} else {
_local5--;
m_curPosition.x = m_curPosition.x - (n.x * _local3);
m_curPosition.y = m_curPosition.y - (n.y * _local3);
m_prevPosition.plus(n.multNew(_local3 * _local5));
break;
}
}
}
}
function validateRotation(n, oldPos) {
if ((!intersectionFlag) && (Math.abs(m_accSpeed) > 0.01)) {
if (Math.abs(m_accSpeed) < ((m_maxAccSpeed * 0.02) / 2)) {
m_accSpeed = 0;
} else if (m_accSpeed > 0) {
m_accSpeed = m_maxAccSpeed * 0.02;
} else {
m_accSpeed = (-m_maxAccSpeed) * 0.02;
}
}
var _local3 = new CVector2D(-n.y, n.x);
var _local6 = m_curPosition.minusNew(oldPos);
var _local5 = Math.atan2(_local3.y, _local3.x);
var _local2 = _local6.rotateNew(-_local5);
m_speed = _local2.x + m_accSpeed;
_local2.y = 0;
_local2.rotate(_local5);
var _local4 = 1 - m_koeffSlip;
m_curPosition.x = (m_curPosition.x + ((_local3.x * m_accSpeed) * _local4)) - (m_koeffFriction * _local2.x);
m_curPosition.y = (m_curPosition.y + ((_local3.y * m_accSpeed) * _local4)) - (m_koeffFriction * _local2.y);
m_accSpeed = m_accSpeed * m_koeffSlip;
}
function hasIntersection() {
return(intersectionFlag);
}
static var m_maxSpeed = 180;
static var m_hitCount = 16;
static var m_koeffFriction = 0.03;
static var ANGLE_180_DIV_PI = 57.2957795130823;
}
Symbol 758 MovieClip [__Packages.CRider] Frame 0
class CRider extends MovieClip
{
var mcMan, m_angle, m_state, gotoAndStop;
function CRider () {
super();
mcMan.gotoAndStop(ANGLE_0_FRAME);
m_angle = 0;
m_state = ST_STAND;
}
function rotate(nAngle) {
m_angle = nAngle;
if (m_angle <= ANGLE_MIN_VAL) {
mcMan.gotoAndStop(ANGLE_FRAME_COUT);
} else if (m_angle >= ANGLE_MAX_VAL) {
mcMan.gotoAndStop(1);
} else {
var _local3 = ANGLE_0_FRAME / ANGLE_MIN_VAL;
var _local2 = m_angle * _local3;
mcMan.gotoAndStop(ANGLE_0_FRAME + Math.round(_local2));
}
}
function process() {
switch (m_state) {
case ST_SITDOWN :
if (mcMan._currentframe == mcMan._totalframes) {
state = (ST_SIT);
}
break;
case ST_HALFSIT :
if (mcMan._currentframe >= 4) {
state = (ST_STANDUP);
}
break;
case ST_STANDUP :
if (mcMan._currentframe != mcMan._totalframes) {
break;
}
state = (ST_STAND);
}
if (m_state >= ST_360_DEGREES) {
if (mcMan._currentframe == mcMan._totalframes) {
state = (ST_STAND);
}
}
}
static function tickComplete(trickNum) {
CGame.getCurRace().makeTrick(trickNum, CConstants.SCORE_FORTRICK[trickNum]);
}
function set state(nState) {
var _local2 = 1;
switch (nState) {
case ST_STAND :
gotoAndStop(1);
break;
case ST_SIT :
gotoAndStop(2);
mcMan.gotoAndStop(mcMan._totalframes);
break;
case ST_HALFSIT :
case ST_SITDOWN :
_local2 = mcMan._currentframe;
gotoAndStop(2);
if (m_state == ST_STANDUP) {
mcMan.gotoAndPlay(Math.min((mcMan._totalframes - _local2) + 1, mcMan._totalframes - 1));
}
break;
case ST_STANDUP :
_local2 = mcMan._currentframe;
gotoAndStop(3);
if ((m_state == ST_SITDOWN) || (m_state == ST_HALFSIT)) {
mcMan.gotoAndPlay(Math.min((mcMan._totalframes - _local2) + 1, mcMan._totalframes - 1));
}
break;
case ST_360_DEGREES :
gotoAndStop(4);
break;
case ST_720_DEGREES :
gotoAndStop(5);
break;
case ST_GRAB_NOSE :
gotoAndStop(6);
break;
case ST_GRAB_TAIL :
gotoAndStop(7);
break;
case ST_WHEELY :
gotoAndStop(FRAME_WHEELY);
break;
default :
gotoAndStop((4 + nState) - ST_360_DEGREES);
}
m_state = nState;
//return(state);
}
function getCurAnimationKoeffComplete() {
return(mcMan._currentframe / mcMan._totalframes);
}
function get state() {
return(m_state);
}
function set angle(nAngle) {
m_angle = nAngle;
//return(angle);
}
function get angle() {
return(m_angle);
}
static var ST_STAND = 0;
static var ST_SIT = 1;
static var ST_STANDUP = 2;
static var ST_SITDOWN = 3;
static var ST_HALFSIT = 4;
static var ST_WHEELY = 5;
static var ST_360_DEGREES = 6;
static var ST_720_DEGREES = 7;
static var ST_GRAB_NOSE = 8;
static var ST_GRAB_TAIL = 9;
static var ANGLE_FRAME_COUT = 60;
static var ANGLE_0_FRAME = ANGLE_FRAME_COUT / 2;
static var ANGLE_MIN_VAL = -50;
static var ANGLE_MAX_VAL = 50;
static var TRICK_ROT360_BLIP = 1;
static var SIT_ROT_720 = 2;
static var TRICK_GRAB_NOSE = 3;
static var TRICK_GRAB_TAIL = 4;
static var TRICK_WHEELY = 5;
static var STAND_ROT_360 = 6;
static var AIR_BACK = 7;
static var AIR_FRONT = 8;
static var HELICOPTER_SIT = 9;
static var HELICOPTER = 10;
static var SIT_ROT_360 = 11;
static var TRICK_AIRPLANE = 12;
static var TRICK_BACK_FLIP = 13;
static var TRICK_FRONT_FLIP = 14;
static var TRICK_SIT_ROT360 = 1;
static var TRICK_FAKI_720 = 2;
static var FRAME_DEAD = 16;
static var FRAME_WHEELY = 8;
}
Symbol 759 MovieClip [__Packages.CBoxConstrainSkeleton] Frame 0
class CBoxConstrainSkeleton
{
var m_A, m_B, m_C, m_D, m_AB, m_AC, m_AD, m_BC, m_BD, m_CD, m_ABC, m_DCB;
function CBoxConstrainSkeleton () {
}
function init(a, b, c, d, ab, ac, ad, bc, bd, cd) {
m_A = a;
m_B = b;
m_C = c;
m_D = d;
m_AB = ab;
m_AB.__set__p1(a);
m_AB.__set__p2(b);
m_AC = ac;
m_AC.__set__p1(a);
m_AC.__set__p2(c);
m_AD = ad;
m_AD.__set__p1(a);
m_AD.__set__p2(d);
m_BC = bc;
m_BC.__set__p1(b);
m_BC.__set__p2(c);
m_BD = bd;
m_BD.__set__p1(b);
m_BD.__set__p2(d);
m_CD = cd;
m_CD.__set__p1(c);
m_CD.__set__p2(d);
m_ABC = new CPenetrationConstraint(m_D, m_C, m_B);
m_DCB = new CPenetrationConstraint(m_A, m_B, m_C);
return(this);
}
function changeGeometry(pA, pB, pC, pD) {
m_A.moveTo(pA.x, pA.y);
m_B.moveTo(pB.x, pB.y);
m_C.moveTo(pC.x, pC.y);
m_D.moveTo(pD.x, pD.y);
m_AB.fixDistance();
m_AC.fixDistance();
m_AD.fixDistance();
m_BC.fixDistance();
m_BD.fixDistance();
m_CD.fixDistance();
m_ABC.fixDistance();
m_DCB.fixDistance();
}
function addToEngine(engine) {
engine.addParticle(m_A);
engine.addParticle(m_B);
engine.addParticle(m_C);
engine.addParticle(m_D);
engine.addConstraint(m_AB);
engine.addConstraint(m_AC);
engine.addConstraint(m_AD);
engine.addConstraint(m_BC);
engine.addConstraint(m_BD);
engine.addConstraint(m_CD);
engine.addConstraint(m_ABC);
engine.addConstraint(m_DCB);
}
function get A() {
return(m_A);
}
function get B() {
return(m_B);
}
function get C() {
return(m_C);
}
function get D() {
return(m_D);
}
function get AB() {
return(m_AB);
}
function get AC() {
return(m_AC);
}
function get AD() {
return(m_AD);
}
function get BC() {
return(m_BC);
}
function get BD() {
return(m_BD);
}
function get CD() {
return(m_CD);
}
}
Symbol 760 MovieClip [__Packages.IConstraint] Frame 0
interface IConstraint
{
}
Symbol 761 MovieClip [__Packages.CSpringConstraint] Frame 0
class CSpringConstraint implements IConstraint
{
var m_p1, m_p2, m_koeffStiffPress, m_koeffStiffStretch, m_relaxLen;
function CSpringConstraint () {
}
function init(koeffStiffPress, koeffStiffStretch, p1, p2) {
m_p1 = p1;
m_p2 = p2;
m_koeffStiffPress = koeffStiffPress;
m_koeffStiffStretch = koeffStiffStretch;
fixDistance();
return(this);
}
function fixDistance() {
m_relaxLen = CVector2D.getDistanceBetween(m_p1.__get__pos(), m_p2.__get__pos());
}
function resolve() {
var _local3 = m_p1.__get__pos().x - m_p2.__get__pos().x;
var _local2 = m_p1.__get__pos().y - m_p2.__get__pos().y;
var _local5 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
var _local9 = (_local5 - m_relaxLen) / _local5;
var _local8;
if (_local5 > m_relaxLen) {
_local8 = m_koeffStiffStretch;
} else {
_local8 = m_koeffStiffPress;
}
var _local7 = m_p1.__get__mass();
var _local6 = m_p2.__get__mass();
var _local4 = (_local9 * _local8) / (_local7 + _local6);
m_p1.__get__pos().x = m_p1.__get__pos().x - ((_local3 * _local7) * _local4);
m_p1.__get__pos().y = m_p1.__get__pos().y - ((_local2 * _local7) * _local4);
m_p2.__get__pos().x = m_p2.__get__pos().x + ((_local3 * _local6) * _local4);
m_p2.__get__pos().y = m_p2.__get__pos().y + ((_local2 * _local6) * _local4);
}
function set p1(nP1) {
m_p1 = nP1;
//return(p1);
}
function get p1() {
return(m_p1);
}
function set p2(nP2) {
m_p2 = nP2;
//return(p2);
}
function get p2() {
return(m_p2);
}
}
Symbol 762 MovieClip [__Packages.CPenetrationConstraint] Frame 0
class CPenetrationConstraint implements IConstraint
{
var p0, p1, p2, sign, n;
function CPenetrationConstraint (np0, np1, np2) {
p0 = np0;
p1 = np1;
p2 = np2;
fixDistance();
}
function fixDistance() {
sign = p0.__get__pos().getDistanceTo(p1.__get__pos(), p2.__get__pos());
if (sign < 0) {
sign = -1;
} else {
sign = 1;
}
n = new CVector2D();
}
function resolve() {
var _local2 = p0.__get__pos().getDistanceTo(p1.__get__pos(), p2.__get__pos());
if ((sign * _local2) <= 2) {
n.init(p2.__get__pos().x, p2.__get__pos().y);
n.minus(p1.__get__pos());
n.normalize();
n.rotate(PI2 * sign);
n.mult(Math.abs(_local2) + 1);
p1.__get__pos().minus(n);
}
}
static var PI2 = (Math.PI/2);
}
Symbol 763 MovieClip [__Packages.CParticleEngine] Frame 0
class CParticleEngine
{
var m_particles, m_constraints, m_hitMovie, m_gravity, m_koeffDamp;
function CParticleEngine (hitMovie, nGravity, koeffDamp) {
m_particles = new Array();
m_constraints = new Array();
setHitMovie(hitMovie);
init(nGravity, koeffDamp);
}
function setHitMovie(hitMovie) {
if (hitMovie == undefined) {
hitMovie = null;
}
m_hitMovie = hitMovie;
}
function getHitMovie() {
return(m_hitMovie);
}
function set gravity(nGravity) {
m_gravity = nGravity;
//return(gravity);
}
function get gravity() {
return(m_gravity);
}
function init(nGravity, koeffDamp) {
if (nGravity == undefined) {
nGravity = 9.8;
}
if (koeffDamp == undefined) {
koeffDamp = 0.995;
}
gravity = (nGravity);
m_koeffDamp = koeffDamp;
}
function addParticle(p) {
m_particles.push(p);
}
function process() {
drawSpringConstraints();
var _local2 = 0;
while (_local2 < m_particles.length) {
m_particles[_local2].accelerate.plusXY(0, m_gravity * m_particles[_local2].mass);
m_particles[_local2].accelerate.mult(1 / REPEAT_COUNT);
_local2++;
}
var _local3 = 0;
while (_local3 < REPEAT_COUNT) {
_local2 = 0;
while (_local2 < m_particles.length) {
m_particles[_local2].verlet(D_TIME, m_koeffDamp);
_local2++;
}
_local2 = 0;
while (_local2 < m_constraints.length) {
m_constraints[_local2].resolve();
_local2++;
}
_local2 = 0;
while (_local2 < m_particles.length) {
m_particles[_local2].checkCollision(m_hitMovie);
_local2++;
}
_local3++;
}
_local2 = 0;
while (_local2 < m_particles.length) {
m_particles[_local2].accelerate.init(0, 0);
_local2++;
}
}
function addConstraint(c) {
m_constraints.push(c);
}
function clear() {
while (m_particles.pop() != undefined) {
}
clearConstraints();
}
function clearConstraints() {
while (m_constraints.pop() != undefined) {
}
}
function drawSpringConstraints() {
if (CGameService.__get__DEBUG_MODE()) {
var _local4 = new Object();
var _local3 = new Object();
var _local2 = 0;
while (_local2 < m_constraints.length) {
_local4.x = m_constraints[_local2].m_p1.pos.x;
_local4.y = m_constraints[_local2].m_p1.pos.y;
_local3.x = m_constraints[_local2].m_p2.pos.x;
_local3.y = m_constraints[_local2].m_p2.pos.y;
m_hitMovie.localToGlobal(_local4);
m_hitMovie.localToGlobal(_local3);
CGameService.drawLine(_local4.x, _local4.y, _local3.x, _local3.y, 0.5, 0, 100);
_local2++;
}
}
}
static var SEC_PER_FRAME = 0.0416666666666667;
static var REPEAT_COUNT = 3;
static var D_TIME = SEC_PER_FRAME / REPEAT_COUNT;
}
Symbol 764 MovieClip [__Packages.CGameService] Frame 0
class CGameService
{
static var m_instance;
var m_root, m_debugMode, m_pauseListeners, m_score;
function CGameService (rootPointer, soundsNames) {
m_instance = this;
m_root = rootPointer;
m_debugMode = false;
m_pauseListeners = new CGroup();
m_score = 0;
CSoundService.createSoundService(soundsNames, m_root, 9999);
}
static function get instance() {
return(m_instance);
}
static function get _root() {
return(m_instance.m_root);
}
static function get score() {
return(m_instance.m_score);
}
static function set score(score) {
m_instance.m_score = score;
//return(CGameService.score);
}
static function set pauseOn(pauseState) {
m_instance.m_pauseOn = pauseState;
if (pauseState) {
m_instance.m_pauseListeners.callFunction("enablePause");
} else {
m_instance.m_pauseListeners.callFunction("disablePause");
}
//return(pauseOn);
}
static function get pauseOn() {
return(m_instance.m_pauseOn);
}
static function addPauseListener(obj) {
m_instance.m_pauseListeners.addElement(obj);
}
static function removePauseListener(obj) {
m_instance.m_pauseListeners.removeElement(obj);
}
static function getGlobalXY(pX, pY, movie) {
var _local1 = {x:pX, y:pY};
movie.localToGlobal(_local1);
return(_local1);
}
static function get DEBUG_MODE() {
return(m_instance.m_debugMode);
}
static function set DEBUG_MODE(debugMode) {
m_instance.m_debugMode = debugMode;
if (debugMode) {
m_instance.m_drawArea = m_instance.m_root.createEmptyMovieClip("__drawArea", DEPTH_DRAW_AREA);
} else {
m_instance.m_drawArea.removeMovieClip();
}
//return(DEBUG_MODE);
}
static function drawLine(x1, y1, x2, y2, thickness, rgb, alpha) {
if (m_instance.m_debugMode) {
m_instance.m_drawArea.lineStyle(thickness, rgb, alpha);
m_instance.m_drawArea.moveTo(x1, y1);
m_instance.m_drawArea.lineTo(x2, y2);
}
}
static function clearAll() {
if (m_instance.m_debugMode) {
m_instance.m_drawArea.clear();
}
}
static function numberToStringWith0(val) {
if (val < 10) {
return(String("0" + val.toString()));
}
return(val.toString());
}
static function roundRandom(maxValue) {
return(Math.floor(Math.random() * maxValue) + 1);
}
static var DEPTH_DRAW_AREA = 32001;
}
Symbol 765 MovieClip [__Packages.CGroup] Frame 0
class CGroup
{
var m_elements;
function CGroup () {
m_elements = new Array();
}
function addElement(element) {
var _local2 = 0;
while (_local2 < m_elements.length) {
if (m_elements[_local2] == null) {
m_elements[_local2] = element;
return(undefined);
}
_local2++;
}
m_elements.push(element);
}
function removeElement(element) {
var _local2 = m_elements.length - 1;
while (_local2 >= 0) {
if (m_elements[_local2] == element) {
m_elements[_local2] = null;
}
_local2--;
}
}
function getElementAt(elementNum) {
return(m_elements[elementNum]);
}
function removeAllElements() {
var _local2 = m_elements.length - 1;
while (_local2 >= 0) {
m_elements[_local2] = null;
_local2--;
}
}
function callFunction(funcName) {
var _local2 = m_elements.length - 1;
while (_local2 >= 0) {
if (m_elements[_local2] != null) {
m_elements[_local2][funcName]();
}
_local2--;
}
}
function callFunctionParam1(funcName, param1) {
var _local2 = m_elements.length - 1;
while (_local2 >= 0) {
if (m_elements[_local2] != null) {
m_elements[_local2][funcName](param1);
}
_local2--;
}
}
function callFunctionParam2(funcName, param1, param2) {
var _local2 = m_elements.length - 1;
while (_local2 >= 0) {
if (m_elements[_local2] != null) {
m_elements[_local2][funcName](param1, param2);
}
_local2--;
}
}
}
Symbol 766 MovieClip [__Packages.CConstants] Frame 0
class CConstants
{
function CConstants () {
}
static var SOUNDS_NAMES = new Array("sndIntro", "sndInGame", "sndDieMale", "sndDieFemale", "sndTrick", "sndBonus", "sndButton", "sndEnd");
static var SND_INTRO = 0;
static var SND_INGAME = 1;
static var SND_DIE_MALE = 2;
static var SND_DIE_FEMALE = 3;
static var SND_TRICK = 4;
static var SND_BONUS = 5;
static var SND_BUTTON = 6;
static var SND_END = 7;
static var SCREEN_WIDTH = 800;
static var SCREEN_HEIGHT = 600;
static var LEVEL_HORIZONT = 180;
static var FILTER_GREY = new flash.filters.ColorMatrixFilter(new Array(0.3, 0.59, 0.11, 0, 0, 0.3, 0.59, 0.11, 0, 0, 0.3, 0.59, 0.11, 0, 0, 0, 0, 0, 1, 0));
static var REAL_KEYS = new Array(38, 40, 37, 39, 32, 87, 83, 65, 68);
static var LOGIC_KEYS = new Array(CBike.KM_ACCELERATE, CBike.KM_BRAKE, CBike.KM_MOVE_BODY_BACK, CBike.KM_MOVE_BODY_FORWARD, CBike.KM_BIKE_JUMP, CBike.KM_ACCELERATE, CBike.KM_BRAKE, CBike.KM_MOVE_BODY_BACK, CBike.KM_MOVE_BODY_FORWARD);
static var SEQUENCE_FOR_TRICK = new Array(new Array(CBike.KM_BIKE_JUMP | CBike.KM_BRAKE, CBike.KM_BIKE_JUMP | CBike.KM_MOVE_BODY_FORWARD), new Array(CBike.KM_BIKE_JUMP | CBike.KM_BRAKE, (CBike.KM_BIKE_JUMP | CBike.KM_BRAKE) | CBike.KM_MOVE_BODY_FORWARD), new Array(CBike.KM_BIKE_JUMP | CBike.KM_BRAKE, CBike.KM_BIKE_JUMP | CBike.KM_MOVE_BODY_BACK), new Array(CBike.KM_BIKE_JUMP | CBike.KM_BRAKE, (CBike.KM_BIKE_JUMP | CBike.KM_BRAKE) | CBike.KM_MOVE_BODY_BACK), [CBike.KM_BIKE_JUMP | CBike.KM_MOVE_BODY_FORWARD], [CBike.KM_BIKE_JUMP | CBike.KM_MOVE_BODY_BACK], [CBike.KM_BIKE_JUMP | CBike.KM_ACCELERATE]);
static var SEQUENCE_TRICK_NUM_VS_BIKE_KEY = new Array(CBike.KM_SPEC_TRICK1, CBike.KM_SPEC_TRICK1, CBike.KM_SPEC_TRICK2, CBike.KM_SPEC_TRICK2, CBike.KM_TRICK1, CBike.KM_TRICK2, CBike.KM_TRICK3);
static var SCORE_FORTRICK = new Array(0, 900, 900, 250, 250, 5, 300, 500, 500, 1000, 900, 300, 700, 400, 400);
static var TRICK_GRAB_NOSE = 1;
static var TRICK_GRAB_TAIL = 2;
static var TRICK_FAKIE = 3;
static var TRICK_SPEC_LEFT = 4;
static var TRICK_SPEC_RIGHT = 5;
static var TRICK_NUM_VS_PROMT = new Array(0, TRICK_SPEC_LEFT, TRICK_SPEC_RIGHT, TRICK_GRAB_NOSE, TRICK_GRAB_NOSE, 0, TRICK_FAKIE, TRICK_SPEC_RIGHT, TRICK_SPEC_RIGHT, TRICK_SPEC_LEFT, TRICK_SPEC_RIGHT, TRICK_SPEC_LEFT, TRICK_SPEC_LEFT, 0, 0);
static var levelNames = new Array("idLevel3", "idLevel8", "idLevel4", "idLevel7", "idLevel2", "idLevel5", "idLevel6", "idLevel9", "idLevel1");
static var levelStatistics = new Array(new Array(3, 150, 800, 21), new Array(6, 230, 1500, 22), new Array(5, 160, 1200, 23), new Array(7, 190, 1200, 24), new Array(9, 270, 2400, 25), new Array(10, 340, 2800, 26), new Array(9, 270, 3500, 27), new Array(5, 300, 2000, 28), new Array(17, 570, 6700, 29));
static var bikeBaseParam = new CBoxConstrainSkeleton().init(new CWheel().initWhile(0, 0, 4, 18, 260), new CParticle().initParticle(0, 0, 3), new CParticle().initParticle(0, 0, 3), new CWheel().initWhile(0, 0, 4, 20, 260), new CSpringConstraint().init(0.5, 0.8), new CSpringConstraint().init(1, 1), new CSpringConstraint().init(0.8, 0.8), new CSpringConstraint().init(1, 1), new CSpringConstraint().init(1, 1), new CSpringConstraint().init(0.5, 0.8));
static var BorderScaleX = new Array(95, 100, 95, 100);
static var BorderScaleY = new Array(100, 95, 95, 100);
}
Symbol 767 MovieClip [__Packages.CLevel] Frame 0
class CLevel extends MovieClip
{
var m_levelPlace, attachMovie, m_hitPlace, m_engine, m_camera, mcLevelTrickCheck, mcLevelPromt;
function CLevel () {
super();
}
function initLevel(levelNum) {
m_levelPlace = attachMovie(CConstants.levelNames[levelNum], "_levelName", DEPTH_LEVEL);
m_hitPlace = m_levelPlace.mcHit;
m_engine = new CParticleEngine(m_hitPlace, 7);
m_camera = new CCamera();
}
function initCamera(movieCenteredAtScreen, windowWidth, windowHeight, lookAtX, lookAtY) {
m_camera.init(movieCenteredAtScreen, this, windowWidth, windowHeight);
m_camera.setLookPoint(lookAtX, lookAtY);
m_camera.setLevelSize(300000, m_hitPlace._height);
m_camera.process();
}
function process() {
m_engine.process();
m_camera.process();
}
function checkFinish(targetObject) {
return(m_levelPlace.mcFinishLine.hitTest(targetObject));
}
function trickCheck(targetObject) {
mcLevelTrickCheck = m_levelPlace.mcLevelTrickCheck;
for (var _local3 in mcLevelTrickCheck) {
if (mcLevelTrickCheck[_local3].hitTest(targetObject)) {
return(mcLevelTrickCheck[_local3]);
}
}
return(null);
}
function checkLevelPromt(targetObject) {
mcLevelPromt = m_levelPlace.mcLevelPromt;
var _local2 = new Object();
_local2.x = 0;
_local2.y = 0;
targetObject.localToGlobal(_local2);
for (var _local3 in mcLevelPromt) {
if (mcLevelPromt[_local3].hitTest(_local2.x, _local2.y, true)) {
return(mcLevelPromt[_local3].trickForCheck);
}
}
return(0);
}
function getEngine() {
return(m_engine);
}
function getVehiclePlace() {
return(m_levelPlace.m_vehiclePlace);
}
function getHitPlace() {
return(m_hitPlace);
}
function getObstaclesPlace() {
return(m_levelPlace.mcObstaclesPlace);
}
static var DEPTH_VECHICLE_PLACE = 150;
static var DEPTH_LEVEL = 110;
static var DEPTH_MIDDLE = 105;
static var DEPTH_HIT_LEVEL = 100;
}
Symbol 768 MovieClip [__Packages.CCamera] Frame 0
class CCamera
{
var m_targetMoviePos, m_targetMovie, m_levelMovie, m_screenWidth, m_screenHeight, m_levelWidth, m_levelHeight, m_targetXAtScreen, m_targetYAtScreen, m_positionState;
function CCamera () {
m_targetMoviePos = new Object();
}
function init(targetMovie, levelMovie, screenWidth, screenHeight) {
m_targetMovie = targetMovie;
m_levelMovie = levelMovie;
m_screenWidth = screenWidth;
m_screenHeight = screenHeight;
setLevelSize(m_levelMovie._width, m_levelMovie._height);
setLookPoint(m_screenWidth / 2, m_screenHeight / 2);
}
function setLevelSize(levelWidth, levelHeight) {
m_levelWidth = levelWidth;
m_levelHeight = levelHeight;
}
function setLookPoint(px, py) {
m_targetXAtScreen = px;
m_targetYAtScreen = py;
process();
}
function pointOutsideLeft(pX) {
return(Math.abs(pX) < Math.abs(m_levelMovie._x));
}
function process() {
m_targetMoviePos.x = m_targetMovie._x;
m_targetMoviePos.y = m_targetMovie._y;
m_targetMovie._parent.localToGlobal(m_targetMoviePos);
m_levelMovie._parent.globalToLocal(m_targetMoviePos);
m_levelMovie._x = m_levelMovie._x + Math.round(m_targetXAtScreen - m_targetMoviePos.x);
m_levelMovie._y = m_levelMovie._y + Math.round(m_targetYAtScreen - m_targetMoviePos.y);
m_positionState = BORDER_NONE;
if (m_levelMovie._x > 0) {
m_levelMovie._x = 0;
m_positionState = BORDER_LEFT;
} else if (m_levelMovie._x < (m_screenWidth - m_levelWidth)) {
m_levelMovie._x = m_screenWidth - m_levelWidth;
m_positionState = BORDER_RIGHT;
}
}
function getTargetMovie() {
return(m_targetMovie);
}
static var BORDER_NONE = 0;
static var BORDER_LEFT = 1;
static var BORDER_RIGHT = 2;
}
Symbol 769 MovieClip [__Packages.CMultiState] Frame 0
class CMultiState
{
var m_state, m_prevState;
function CMultiState () {
m_state = (m_prevState = 0);
}
function set curMask(nState) {
m_prevState = m_state;
m_state = nState;
//return(curMask);
}
function get curMask() {
return(m_state);
}
function checkMask(nState) {
return((m_state & nState) != 0);
}
function checkPrevStateMask(nState) {
return((m_prevState & nState) != 0);
}
function addMask(nState) {
curMask = curMask | nState;
}
function delMask(nState) {
curMask = curMask & (~nState);
}
function getDiferent(nState) {
return(m_state & (~nState));
}
function getLastChange() {
return(m_prevState & (~m_state));
}
}
Symbol 770 MovieClip [__Packages.CKeyManager] Frame 0
class CKeyManager
{
var m_pressedKeyState, m_firstPressedKeyState, m_releasedKeyState, m_prevPressedKeyState, m_curSequence, m_delayBetweenPressure, m_allKeySequence, m_aRealKeys, m_aLogicKeys;
function CKeyManager () {
m_pressedKeyState = new CMultiState();
m_firstPressedKeyState = new CMultiState();
m_releasedKeyState = new CMultiState();
m_prevPressedKeyState = new CMultiState();
m_curSequence = new Array();
m_delayBetweenPressure = 0;
}
function resetSequence() {
m_delayBetweenPressure = 0;
while (m_curSequence.pop() != undefined) {
}
}
function checkSequenceByNum(sequenceNum) {
var _local3 = 0;
var _local2 = m_curSequence.length - 1;
while (_local2 >= 0) {
if (m_allKeySequence[sequenceNum][_local2] != m_curSequence[_local2]) {
break;
}
_local3++;
_local2--;
}
return(_local3);
}
function checkAllSequence() {
var _local3 = 0;
var _local4 = 0;
var _local2 = 0;
while (_local2 < m_allKeySequence.length) {
_local3 = checkSequenceByNum(_local2);
if (_local3 == m_allKeySequence[_local2].length) {
return(_local2);
}
_local4 = _local4 + _local3;
_local2++;
}
if (_local4 == 0) {
resetSequence();
}
return(-1);
}
function init(aRealKeys, aLogicKeys) {
m_aRealKeys = aRealKeys;
m_aLogicKeys = aLogicKeys;
return(this);
}
function process() {
m_prevPressedKeyState.__set__curMask(m_pressedKeyState.curMask);
m_firstPressedKeyState.__set__curMask(0);
m_pressedKeyState.__set__curMask(0);
m_releasedKeyState.__set__curMask(0);
var _local2 = 0;
while (_local2 < m_aRealKeys.length) {
if (Key.isDown(m_aRealKeys[_local2])) {
m_pressedKeyState.addMask(m_aLogicKeys[_local2]);
if (!m_prevPressedKeyState.checkMask(m_aLogicKeys[_local2])) {
m_firstPressedKeyState.addMask(m_aLogicKeys[_local2]);
}
} else if (m_prevPressedKeyState.checkMask(m_aLogicKeys[_local2])) {
m_releasedKeyState.addMask(m_aLogicKeys[_local2]);
}
_local2++;
}
if (m_firstPressedKeyState.__get__curMask() != 0) {
m_delayBetweenPressure = 0;
m_curSequence.push(m_pressedKeyState.__get__curMask());
} else {
m_delayBetweenPressure++;
if (m_delayBetweenPressure > MAX_DELAY_BETWEEN_PRESSURE) {
resetSequence();
}
}
}
function isKeyFirstPressed(keyMask) {
return(m_firstPressedKeyState.checkMask(keyMask));
}
function isKeyPressed(keyMask) {
return(m_pressedKeyState.checkMask(keyMask));
}
function isKeyReleased(keyMask) {
return(m_releasedKeyState.checkMask(keyMask));
}
static var MAX_DELAY_BETWEEN_PRESSURE = 8;
}
Symbol 771 MovieClip [__Packages.CInvisibleMovie] Frame 0
class CInvisibleMovie extends MovieClip
{
var _visible;
function CInvisibleMovie () {
super();
_visible = false;
}
}
Symbol 772 MovieClip [__Packages.CRiderColor] Frame 0
class CRiderColor extends MovieClip
{
var gotoAndStop;
function CRiderColor () {
super();
}
function onLoad() {
gotoAndStop(CGame.__get__curRider() + 1);
}
}
Symbol 773 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 774 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 775 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 776 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 777 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 778 MovieClip [__Packages.CHelpTrickIcons] Frame 0
class CHelpTrickIcons extends MovieClip
{
var m_num, _currentframe, gotoAndStop;
function CHelpTrickIcons () {
super();
}
function onPress() {
CGame.__set__curHelpTrick(m_num);
}
function onEnterFrame() {
if ((CGame.__get__curHelpTrick() == m_num) && (!isSelect())) {
select();
} else if ((CGame.__get__curHelpTrick() != m_num) && (isSelect())) {
unSelect();
}
}
function isSelect() {
return(_currentframe == 2);
}
function select() {
gotoAndStop(2);
}
function unSelect() {
gotoAndStop(1);
}
}
Symbol 779 MovieClip [__Packages.CGameControl] Frame 0
class CGameControl extends MovieClip
{
var _currentframe, gotoAndStop;
function CGameControl () {
super();
}
function onEnterFrame() {
if ((!CGameService.__get__pauseOn()) && (_currentframe != 2)) {
gotoAndStop(2);
}
if (CGameService.__get__pauseOn() && (_currentframe != 1)) {
gotoAndStop(1);
}
}
function onPress() {
if (CGameService.__get__pauseOn()) {
CGameService.__set__pauseOn(false);
} else {
CGameService.__set__pauseOn(true);
}
}
}
Symbol 780 MovieClip [__Packages.CRiderIcons] Frame 0
class CRiderIcons extends MovieClip
{
var m_num, _parent, _currentframe, m_LockNum, filters, gotoAndStop;
function CRiderIcons () {
super();
}
function onPress() {
var _local2 = CGame.__get__curRider();
CGame.__set__curRider(m_num);
if ((_local2 != m_num) && (_local2 == CGame.__get__curRider())) {
_parent.task.play();
}
}
function onEnterFrame() {
if ((CGame.__get__curRider() == m_num) && ((!isSelect()) || (_currentframe != 2))) {
select();
} else if ((CGame.__get__curRider() != m_num) && (isSelect())) {
unSelect();
}
if (_parent.mcLocked._visible && (CGame.__get__curLevel() > m_LockNum)) {
_parent.mcLocked._visible = false;
}
}
function isSelect() {
return(filters.length == 0);
}
function select() {
gotoAndStop(2);
filters = null;
}
function unSelect() {
gotoAndStop(1);
var _local2 = new Array();
_local2.push(CConstants.FILTER_GREY);
filters = _local2;
}
}
Symbol 781 MovieClip [__Packages.CSoundControl] Frame 0
class CSoundControl extends MovieClip
{
var _currentframe, gotoAndStop;
function CSoundControl () {
super();
}
function onEnterFrame() {
if ((!CSoundService.soundIsOn()) && (_currentframe != 2)) {
gotoAndStop(2);
}
if (CSoundService.soundIsOn() && (_currentframe != 1)) {
gotoAndStop(1);
}
}
function onPress() {
if (CSoundService.soundIsOn()) {
CSoundService.soundOff();
} else {
CSoundService.soundOn();
}
}
}
Symbol 11 MovieClip [idCurLevel] Frame 1
#initclip 84
Object.registerClass("idCurLevel", CLevel);
#endinitclip
Symbol 18 MovieClip [manHit] Frame 1
#initclip 34
Object.registerClass("manHit", CInvisibleMovie);
#endinitclip
Symbol 24 MovieClip [borderPelvis] Frame 1
#initclip 35
Object.registerClass("borderPelvis", CRiderColor);
#endinitclip
stop();
Symbol 24 MovieClip [borderPelvis] Frame 2
stop();
Symbol 24 MovieClip [borderPelvis] Frame 3
stop();
Symbol 24 MovieClip [borderPelvis] Frame 4
stop();
Symbol 29 MovieClip [borderThighL] Frame 1
#initclip 36
Object.registerClass("borderThighL", CRiderColor);
#endinitclip
stop();
Symbol 29 MovieClip [borderThighL] Frame 2
stop();
Symbol 29 MovieClip [borderThighL] Frame 3
stop();
Symbol 29 MovieClip [borderThighL] Frame 4
stop();
Symbol 34 MovieClip [borderShankL] Frame 1
#initclip 37
Object.registerClass("borderShankL", CRiderColor);
#endinitclip
stop();
Symbol 34 MovieClip [borderShankL] Frame 2
stop();
Symbol 34 MovieClip [borderShankL] Frame 3
stop();
Symbol 34 MovieClip [borderShankL] Frame 4
stop();
Symbol 39 MovieClip [borderKnee] Frame 1
#initclip 38
Object.registerClass("borderKnee", CRiderColor);
#endinitclip
stop();
Symbol 39 MovieClip [borderKnee] Frame 2
stop();
Symbol 39 MovieClip [borderKnee] Frame 3
stop();
Symbol 39 MovieClip [borderKnee] Frame 4
stop();
Symbol 44 MovieClip [borderFootL] Frame 1
#initclip 39
Object.registerClass("borderFootL", CRiderColor);
#endinitclip
stop();
Symbol 44 MovieClip [borderFootL] Frame 2
stop();
Symbol 44 MovieClip [borderFootL] Frame 3
stop();
Symbol 44 MovieClip [borderFootL] Frame 4
stop();
Symbol 49 MovieClip [borderThighR] Frame 1
#initclip 40
Object.registerClass("borderThighR", CRiderColor);
#endinitclip
stop();
Symbol 49 MovieClip [borderThighR] Frame 2
stop();
Symbol 49 MovieClip [borderThighR] Frame 3
stop();
Symbol 49 MovieClip [borderThighR] Frame 4
stop();
Symbol 54 MovieClip [borderShankR] Frame 1
#initclip 41
Object.registerClass("borderShankR", CRiderColor);
#endinitclip
stop();
Symbol 54 MovieClip [borderShankR] Frame 2
stop();
Symbol 54 MovieClip [borderShankR] Frame 3
stop();
Symbol 54 MovieClip [borderShankR] Frame 4
stop();
Symbol 56 MovieClip [borderFoot] Frame 1
#initclip 42
Object.registerClass("borderFoot", CRiderColor);
#endinitclip
stop();
Symbol 56 MovieClip [borderFoot] Frame 2
stop();
Symbol 56 MovieClip [borderFoot] Frame 3
stop();
Symbol 56 MovieClip [borderFoot] Frame 4
stop();
Symbol 61 MovieClip [borderShoulderL] Frame 1
#initclip 43
Object.registerClass("borderShoulderL", CRiderColor);
#endinitclip
stop();
Symbol 61 MovieClip [borderShoulderL] Frame 2
stop();
Symbol 61 MovieClip [borderShoulderL] Frame 3
stop();
Symbol 61 MovieClip [borderShoulderL] Frame 4
stop();
Symbol 66 MovieClip [borderArmL] Frame 1
#initclip 44
Object.registerClass("borderArmL", CRiderColor);
#endinitclip
stop();
Symbol 66 MovieClip [borderArmL] Frame 2
stop();
Symbol 66 MovieClip [borderArmL] Frame 3
stop();
Symbol 66 MovieClip [borderArmL] Frame 4
stop();
Symbol 71 MovieClip [borderHand] Frame 1
#initclip 45
Object.registerClass("borderHand", CRiderColor);
#endinitclip
stop();
Symbol 71 MovieClip [borderHand] Frame 2
stop();
Symbol 71 MovieClip [borderHand] Frame 3
stop();
Symbol 71 MovieClip [borderHand] Frame 4
stop();
Symbol 76 MovieClip [borderBody1] Frame 1
#initclip 46
Object.registerClass("borderBody1", CRiderColor);
#endinitclip
stop();
Symbol 76 MovieClip [borderBody1] Frame 2
stop();
Symbol 76 MovieClip [borderBody1] Frame 3
stop();
Symbol 76 MovieClip [borderBody1] Frame 4
stop();
Symbol 81 MovieClip [borderShoulderR] Frame 1
#initclip 47
Object.registerClass("borderShoulderR", CRiderColor);
#endinitclip
stop();
Symbol 81 MovieClip [borderShoulderR] Frame 2
stop();
Symbol 81 MovieClip [borderShoulderR] Frame 3
stop();
Symbol 81 MovieClip [borderShoulderR] Frame 4
stop();
Symbol 86 MovieClip [borderArmR] Frame 1
#initclip 48
Object.registerClass("borderArmR", CRiderColor);
#endinitclip
stop();
Symbol 86 MovieClip [borderArmR] Frame 2
stop();
Symbol 86 MovieClip [borderArmR] Frame 3
stop();
Symbol 86 MovieClip [borderArmR] Frame 4
stop();
Symbol 91 MovieClip [borderHead1] Frame 1
#initclip 49
Object.registerClass("borderHead1", CRiderColor);
#endinitclip
stop();
Symbol 91 MovieClip [borderHead1] Frame 2
stop();
Symbol 91 MovieClip [borderHead1] Frame 3
stop();
Symbol 91 MovieClip [borderHead1] Frame 4
stop();
Symbol 93 MovieClip Frame 6
CGame.autoJump();
stop();
Symbol 94 MovieClip Frame 6
stop();
Symbol 99 MovieClip [borderHead2] Frame 1
#initclip 50
Object.registerClass("borderHead2", CRiderColor);
#endinitclip
stop();
Symbol 99 MovieClip [borderHead2] Frame 2
stop();
Symbol 99 MovieClip [borderHead2] Frame 3
stop();
Symbol 99 MovieClip [borderHead2] Frame 4
stop();
Symbol 104 MovieClip [borderHead3] Frame 1
#initclip 51
Object.registerClass("borderHead3", CRiderColor);
#endinitclip
stop();
Symbol 104 MovieClip [borderHead3] Frame 2
stop();
Symbol 104 MovieClip [borderHead3] Frame 3
stop();
Symbol 104 MovieClip [borderHead3] Frame 4
stop();
Symbol 109 MovieClip [borderBody2] Frame 1
#initclip 52
Object.registerClass("borderBody2", CRiderColor);
#endinitclip
stop();
Symbol 109 MovieClip [borderBody2] Frame 2
stop();
Symbol 109 MovieClip [borderBody2] Frame 3
stop();
Symbol 109 MovieClip [borderBody2] Frame 4
stop();
Symbol 114 MovieClip [borderHead4] Frame 1
#initclip 53
Object.registerClass("borderHead4", CRiderColor);
#endinitclip
stop();
Symbol 114 MovieClip [borderHead4] Frame 2
stop();
Symbol 114 MovieClip [borderHead4] Frame 3
stop();
Symbol 114 MovieClip [borderHead4] Frame 4
stop();
Symbol 119 MovieClip [borderHead5] Frame 1
#initclip 54
Object.registerClass("borderHead5", CRiderColor);
#endinitclip
stop();
Symbol 119 MovieClip [borderHead5] Frame 2
stop();
Symbol 119 MovieClip [borderHead5] Frame 3
stop();
Symbol 119 MovieClip [borderHead5] Frame 4
stop();
Symbol 120 MovieClip Frame 18
Symbol 120 MovieClip Frame 20
stop();
Symbol 121 MovieClip Frame 20
CRider.tickComplete(CRider.TRICK_ROT360_BLIP);
stop();
Symbol 122 MovieClip Frame 24
CRider.tickComplete(CRider.SIT_ROT_720);
Symbol 122 MovieClip Frame 28
stop();
Symbol 123 MovieClip Frame 16
CRider.tickComplete(CRider.TRICK_GRAB_NOSE);
Symbol 124 MovieClip Frame 13
CRider.tickComplete(CRider.TRICK_GRAB_TAIL);
Symbol 131 MovieClip Frame 12
stop();
Symbol 132 MovieClip Frame 18
CRider.tickComplete(CRider.STAND_ROT_360);
Symbol 132 MovieClip Frame 20
stop();
Symbol 134 MovieClip Frame 21
CRider.tickComplete(CRider.AIR_BACK);
Symbol 134 MovieClip Frame 25
stop();
Symbol 135 MovieClip Frame 21
CRider.tickComplete(CRider.AIR_FRONT);
Symbol 135 MovieClip Frame 26
stop();
Symbol 136 MovieClip Frame 28
stop();
Symbol 137 MovieClip Frame 25
CRider.tickComplete(CRider.HELICOPTER_SIT);
Symbol 137 MovieClip Frame 28
stop();
Symbol 139 MovieClip Frame 24
CRider.tickComplete(CRider.HELICOPTER);
Symbol 139 MovieClip Frame 26
stop();
Symbol 140 MovieClip Frame 16
CRider.tickComplete(CRider.SIT_ROT_360);
Symbol 140 MovieClip Frame 20
stop();
Symbol 141 MovieClip Frame 25
CRider.tickComplete(CRider.TRICK_AIRPLANE);
Symbol 141 MovieClip Frame 27
stop();
Symbol 154 MovieClip Frame 29
stop();
Symbol 155 MovieClip [idSnowBorder] Frame 1
#initclip 55
Object.registerClass("idSnowBorder", CRider);
#endinitclip
stop();
Symbol 191 MovieClip [checkTrickAreaLevel4] Frame 1
#initclip 56
Object.registerClass("checkTrickAreaLevel4", CInvisibleMovie);
#endinitclip
Instance of Symbol 190 MovieClip in Symbol 191 MovieClip [checkTrickAreaLevel4] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_FAKIE;
}
Instance of Symbol 190 MovieClip in Symbol 191 MovieClip [checkTrickAreaLevel4] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_GRAB_TAIL;
}
Symbol 194 MovieClip [initPromtLevel4] Frame 1
#initclip 57
Object.registerClass("initPromtLevel4", CInvisibleMovie);
#endinitclip
Instance of Symbol 193 MovieClip in Symbol 194 MovieClip [initPromtLevel4] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_FAKIE;
}
Instance of Symbol 193 MovieClip in Symbol 194 MovieClip [initPromtLevel4] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_GRAB_TAIL;
}
Symbol 196 MovieClip [idHitLevel4] Frame 1
#initclip 58
Object.registerClass("idHitLevel4", CInvisibleMovie);
#endinitclip
Symbol 208 MovieClip [finishWall] Frame 1
#initclip 59
Object.registerClass("finishWall", CInvisibleMovie);
#endinitclip
Symbol 213 MovieClip [checkTrickAreaLevel3] Frame 1
#initclip 60
Object.registerClass("checkTrickAreaLevel3", CInvisibleMovie);
#endinitclip
Instance of Symbol 212 MovieClip in Symbol 213 MovieClip [checkTrickAreaLevel3] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_FAKIE;
}
Symbol 214 MovieClip [initPromtLevel3] Frame 1
#initclip 61
Object.registerClass("initPromtLevel3", CInvisibleMovie);
#endinitclip
Instance of Symbol 193 MovieClip in Symbol 214 MovieClip [initPromtLevel3] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_FAKIE;
}
Symbol 216 MovieClip [idHitLevel3] Frame 1
#initclip 62
Object.registerClass("idHitLevel3", CInvisibleMovie);
#endinitclip
Symbol 221 MovieClip [checkTrickAreaLevel1] Frame 1
#initclip 63
Object.registerClass("checkTrickAreaLevel1", CInvisibleMovie);
#endinitclip
Instance of Symbol 212 MovieClip in Symbol 221 MovieClip [checkTrickAreaLevel1] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_RIGHT;
}
Instance of Symbol 212 MovieClip in Symbol 221 MovieClip [checkTrickAreaLevel1] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_FAKIE;
}
Instance of Symbol 212 MovieClip in Symbol 221 MovieClip [checkTrickAreaLevel1] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_LEFT;
}
Symbol 222 MovieClip [initPromtLevel1] Frame 1
#initclip 64
Object.registerClass("initPromtLevel1", CInvisibleMovie);
#endinitclip
Instance of Symbol 193 MovieClip in Symbol 222 MovieClip [initPromtLevel1] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_RIGHT;
}
Instance of Symbol 193 MovieClip in Symbol 222 MovieClip [initPromtLevel1] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_FAKIE;
}
Instance of Symbol 193 MovieClip in Symbol 222 MovieClip [initPromtLevel1] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_LEFT;
}
Symbol 224 MovieClip [idHitLevel1] Frame 1
#initclip 65
Object.registerClass("idHitLevel1", CInvisibleMovie);
#endinitclip
Symbol 229 MovieClip [checkTrickAreaLevel2] Frame 1
#initclip 66
Object.registerClass("checkTrickAreaLevel2", CInvisibleMovie);
#endinitclip
Instance of Symbol 212 MovieClip in Symbol 229 MovieClip [checkTrickAreaLevel2] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_LEFT;
}
Instance of Symbol 212 MovieClip in Symbol 229 MovieClip [checkTrickAreaLevel2] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_RIGHT;
}
Symbol 230 MovieClip [initPromtLevel2] Frame 1
#initclip 67
Object.registerClass("initPromtLevel2", CInvisibleMovie);
#endinitclip
Instance of Symbol 193 MovieClip in Symbol 230 MovieClip [initPromtLevel2] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_LEFT;
}
Instance of Symbol 193 MovieClip in Symbol 230 MovieClip [initPromtLevel2] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_RIGHT;
}
Symbol 232 MovieClip [idHitLevel2] Frame 1
#initclip 68
Object.registerClass("idHitLevel2", CInvisibleMovie);
#endinitclip
Symbol 237 MovieClip [checkTrickAreaLevel5] Frame 1
#initclip 69
Object.registerClass("checkTrickAreaLevel5", CInvisibleMovie);
#endinitclip
Instance of Symbol 212 MovieClip in Symbol 237 MovieClip [checkTrickAreaLevel5] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_RIGHT;
}
Instance of Symbol 212 MovieClip in Symbol 237 MovieClip [checkTrickAreaLevel5] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_LEFT;
}
Symbol 238 MovieClip [initPromtLevel5] Frame 1
#initclip 70
Object.registerClass("initPromtLevel5", CInvisibleMovie);
#endinitclip
Instance of Symbol 193 MovieClip in Symbol 238 MovieClip [initPromtLevel5] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_RIGHT;
}
Instance of Symbol 193 MovieClip in Symbol 238 MovieClip [initPromtLevel5] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_LEFT;
}
Symbol 241 MovieClip [levelHit5] Frame 1
#initclip 71
Object.registerClass("levelHit5", CInvisibleMovie);
#endinitclip
Symbol 245 MovieClip [checkTrickAreaLevel7] Frame 1
#initclip 72
Object.registerClass("checkTrickAreaLevel7", CInvisibleMovie);
#endinitclip
Instance of Symbol 212 MovieClip in Symbol 245 MovieClip [checkTrickAreaLevel7] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_FAKIE;
}
Instance of Symbol 212 MovieClip in Symbol 245 MovieClip [checkTrickAreaLevel7] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_RIGHT;
}
Symbol 246 MovieClip [initPromtLevel7] Frame 1
#initclip 73
Object.registerClass("initPromtLevel7", CInvisibleMovie);
#endinitclip
Instance of Symbol 193 MovieClip in Symbol 246 MovieClip [initPromtLevel7] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_FAKIE;
}
Instance of Symbol 193 MovieClip in Symbol 246 MovieClip [initPromtLevel7] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_RIGHT;
}
Symbol 249 MovieClip [levelHit7] Frame 1
#initclip 74
Object.registerClass("levelHit7", CInvisibleMovie);
#endinitclip
Symbol 255 MovieClip [checkTrickAreaLevel8] Frame 1
#initclip 75
Object.registerClass("checkTrickAreaLevel8", CInvisibleMovie);
#endinitclip
Instance of Symbol 212 MovieClip in Symbol 255 MovieClip [checkTrickAreaLevel8] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_GRAB_TAIL;
}
Instance of Symbol 212 MovieClip in Symbol 255 MovieClip [checkTrickAreaLevel8] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_GRAB_NOSE;
}
Symbol 256 MovieClip [initPromtLevel8] Frame 1
#initclip 76
Object.registerClass("initPromtLevel8", CInvisibleMovie);
#endinitclip
Instance of Symbol 193 MovieClip in Symbol 256 MovieClip [initPromtLevel8] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_GRAB_TAIL;
}
Instance of Symbol 193 MovieClip in Symbol 256 MovieClip [initPromtLevel8] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_GRAB_NOSE;
}
Symbol 258 MovieClip [levelHit8] Frame 1
#initclip 77
Object.registerClass("levelHit8", CInvisibleMovie);
#endinitclip
Symbol 263 MovieClip [checkTrickAreaLevel9] Frame 1
#initclip 78
Object.registerClass("checkTrickAreaLevel9", CInvisibleMovie);
#endinitclip
Instance of Symbol 212 MovieClip in Symbol 263 MovieClip [checkTrickAreaLevel9] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_LEFT;
}
Instance of Symbol 212 MovieClip in Symbol 263 MovieClip [checkTrickAreaLevel9] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_GRAB_NOSE;
}
Instance of Symbol 212 MovieClip in Symbol 263 MovieClip [checkTrickAreaLevel9] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_RIGHT;
}
Symbol 264 MovieClip [initPromtLevel9] Frame 1
#initclip 79
Object.registerClass("initPromtLevel9", CInvisibleMovie);
#endinitclip
Instance of Symbol 193 MovieClip in Symbol 264 MovieClip [initPromtLevel9] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_LEFT;
}
Instance of Symbol 193 MovieClip in Symbol 264 MovieClip [initPromtLevel9] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_GRAB_NOSE;
}
Instance of Symbol 193 MovieClip in Symbol 264 MovieClip [initPromtLevel9] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_RIGHT;
}
Symbol 266 MovieClip [levelHit9] Frame 1
#initclip 80
Object.registerClass("levelHit9", CInvisibleMovie);
#endinitclip
Symbol 282 MovieClip Frame 1
stop();
Symbol 283 MovieClip [checkTrickAreaLevel6] Frame 1
#initclip 81
Object.registerClass("checkTrickAreaLevel6", CInvisibleMovie);
#endinitclip
Instance of Symbol 212 MovieClip in Symbol 283 MovieClip [checkTrickAreaLevel6] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_FAKIE;
}
Instance of Symbol 212 MovieClip in Symbol 283 MovieClip [checkTrickAreaLevel6] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_RIGHT;
}
Instance of Symbol 212 MovieClip in Symbol 283 MovieClip [checkTrickAreaLevel6] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_LEFT;
}
Symbol 284 MovieClip [initPromtLevel6] Frame 1
#initclip 82
Object.registerClass("initPromtLevel6", CInvisibleMovie);
#endinitclip
Instance of Symbol 193 MovieClip in Symbol 284 MovieClip [initPromtLevel6] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_FAKIE;
}
Instance of Symbol 193 MovieClip in Symbol 284 MovieClip [initPromtLevel6] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_RIGHT;
}
Instance of Symbol 193 MovieClip in Symbol 284 MovieClip [initPromtLevel6] Frame 1
onClipEvent (load) {
this.trickForCheck = CConstants.TRICK_SPEC_LEFT;
}
Symbol 286 MovieClip [levelHit6] Frame 1
#initclip 83
Object.registerClass("levelHit6", CInvisibleMovie);
#endinitclip
Symbol 304 Button
on (press) {
CGame.buttonBack();
CGame.disableQuestion();
}
Symbol 307 Button
on (press) {
CGame.disableQuestion();
}
Symbol 325 MovieClip Frame 1
function LOGO_IN() {
var _local1 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Strong.easeIn, -75, 85, 12, false);
_local1.onMotionFinished = function () {
LOGO_SMASH();
var _local3 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Bounce.easeOut, 60, 85, 6, false);
var _local4 = new mx.transitions.Tween(AGlogo_mc, "_x", mx.transitions.easing.Bounce.easeOut, 30, 50, 6, false);
var _local2 = new mx.transitions.Tween(AGpresented_mc, "_y", mx.transitions.easing.Bounce.easeOut, 15, 25, 6, false);
var _local1 = new mx.transitions.Tween(AGpresented_mc, "_x", mx.transitions.easing.Bounce.easeOut, 110, 100, 6, false);
};
}
function LOGO_SMASH() {
AG_SMASH.start();
AGclick_btn._visible = true;
}
function AG_HOLD_COUNTER() {
if (AG_COUNT == AG_TIME) {
clearInterval(AG_HOLD_ID);
_level0.START_ping.broadcastMessage("presented");
_parent.gotoAndStop("lbStart1");
this.unloadMovie();
} else {
AG_COUNT++;
}
}
_parent.stop();
var AG_SMASH = new Sound();
AG_SMASH.attachSound("Smash");
var AG_COUNT = 0;
var AG_TIME = 4;
var AG_HOLD_ID;
AG_HOLD_ID = setInterval(this, "AG_HOLD_COUNTER", 1000);
AGpresented_mc._alpha = 0;
AGclick_btn._visible = false;
AGlogo_mc._y = -70;
var AGpresented_IN = (new mx.transitions.Tween(AGpresented_mc, "_alpha", mx.transitions.easing.Strong.easeIn, 0, 100, 12, false));
AGpresented_IN.onMotionFinished = function () {
LOGO_IN();
};
AGskip_btn.onRelease = function () {
AG_COUNT = AG_TIME;
AG_HOLD_COUNTER();
};
AGclick_btn.onRelease = function () {
getURL ("http://www.addictinggames.com", "_blank");
};
Symbol 352 Button
on (press) {
CGame.goStartGame(flase);
}
Symbol 360 Button
on (press) {
CGame.buttonAbout();
}
Symbol 365 Button
on (press) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 371 Button
on (press) {
CGame.goStartGame(true);
}
Symbol 376 MovieClip [SoundIcon] Frame 1
#initclip 101
Object.registerClass("SoundIcon", CSoundControl);
#endinitclip
Symbol 390 MovieClip [Trick4] Frame 1
#initclip 85
Object.registerClass("Trick4", CHelpTrickIcons);
#endinitclip
Symbol 393 MovieClip [Trick5] Frame 1
#initclip 86
Object.registerClass("Trick5", CHelpTrickIcons);
#endinitclip
Symbol 396 MovieClip [Trick6] Frame 1
#initclip 87
Object.registerClass("Trick6", CHelpTrickIcons);
#endinitclip
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 3
stop();
Symbol 410 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 5
mcSpace.play();
Symbol 417 MovieClip Frame 15
mcUp.play();
Symbol 417 MovieClip Frame 23
mcSpace.play();
Symbol 418 MovieClip Frame 35
mcMan.play();
Symbol 420 MovieClip Frame 5
mcSpace.play();
Symbol 420 MovieClip Frame 15
mcRight.play();
Symbol 420 MovieClip Frame 23
mcSpace.play();
Symbol 421 MovieClip Frame 20
mcMan.stop();
Symbol 421 MovieClip Frame 35
mcMan.play();
Symbol 423 MovieClip Frame 5
mcSpace.play();
Symbol 423 MovieClip Frame 15
mcLeft.play();
Symbol 423 MovieClip Frame 23
mcSpace.play();
Symbol 424 MovieClip Frame 17
mcMan.stop();
Symbol 424 MovieClip Frame 32
mcMan.play();
Symbol 427 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 3
stop();
Symbol 428 MovieClip Frame 5
mcDown.play();
stop();
Symbol 428 MovieClip Frame 25
mcDown.play();
Symbol 429 MovieClip Frame 1
mcMan.stop();
Symbol 429 MovieClip Frame 15
mcMan.play();
Symbol 429 MovieClip Frame 45
mcMan.play();
Symbol 431 MovieClip Frame 5
mcSpace.play();
Symbol 431 MovieClip Frame 15
mcDown.play();
Symbol 431 MovieClip Frame 22
mcRight.play();
Symbol 431 MovieClip Frame 30
mcSpace.play();
Symbol 432 MovieClip Frame 26
mcMan.stop();
mcMan.mcMan.stop();
Symbol 432 MovieClip Frame 40
mcMan.gotoAndPlay(1);
mcMan.mcMan.play();
Symbol 434 MovieClip Frame 5
mcSpace.play();
Symbol 434 MovieClip Frame 15
mcDown.play();
Symbol 434 MovieClip Frame 22
mcLeft.play();
Symbol 434 MovieClip Frame 30
mcSpace.play();
Symbol 435 MovieClip Frame 25
mcMan.stop();
Symbol 435 MovieClip Frame 40
mcMan.play();
Symbol 437 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 3
stop();
Symbol 438 MovieClip Frame 5
mcRight.play();
stop();
Symbol 438 MovieClip Frame 25
mcRight.play();
Symbol 440 MovieClip Frame 25
stop();
Symbol 441 MovieClip Frame 25
mcMan.stop();
Symbol 441 MovieClip Frame 40
mcMan.play();
Symbol 443 MovieClip Frame 1
stop();
Symbol 443 MovieClip Frame 3
stop();
Symbol 444 MovieClip Frame 5
mcLeft.play();
stop();
Symbol 444 MovieClip Frame 25
mcLeft.play();
Symbol 445 MovieClip Frame 25
stop();
Symbol 446 MovieClip Frame 25
mcMan.stop();
Symbol 446 MovieClip Frame 40
mcMan.play();
Symbol 448 MovieClip Frame 2
mcSpace.play();
Symbol 448 MovieClip Frame 16
mcSpace.play();
Symbol 449 MovieClip Frame 25
stop();
Symbol 450 MovieClip Frame 1
mcMan.stop();
Symbol 450 MovieClip Frame 3
mcMan.play();
Symbol 450 MovieClip Frame 6
mcMan.stop();
Symbol 450 MovieClip Frame 17
mcMan.play();
Symbol 450 MovieClip Frame 38
mcMan.stop();
Symbol 450 MovieClip Frame 45
mcMan.play();
Symbol 455 MovieClip [Trick1] Frame 1
#initclip 88
Object.registerClass("Trick1", CHelpTrickIcons);
#endinitclip
Symbol 458 MovieClip [Trick2] Frame 1
#initclip 89
Object.registerClass("Trick2", CHelpTrickIcons);
#endinitclip
Symbol 461 MovieClip [Trick3] Frame 1
#initclip 90
Object.registerClass("Trick3", CHelpTrickIcons);
#endinitclip
Symbol 464 MovieClip [right] Frame 1
#initclip 91
Object.registerClass("right", CHelpTrickIcons);
#endinitclip
Symbol 467 MovieClip [left] Frame 1
#initclip 92
Object.registerClass("left", CHelpTrickIcons);
#endinitclip
Symbol 470 MovieClip [jump] Frame 1
#initclip 93
Object.registerClass("jump", CHelpTrickIcons);
#endinitclip
Symbol 480 Button
on (press) {
CGame.buttonBack();
}
Symbol 483 Button
on (press) {
CGame.buttonChoiceScreen();
}
Symbol 484 Button
on (press) {
CGame.buttonChoiceScreen();
}
Instance of Symbol 390 MovieClip [Trick4] in Symbol 485 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 3;
}
Instance of Symbol 393 MovieClip [Trick5] in Symbol 485 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 4;
}
Instance of Symbol 396 MovieClip [Trick6] in Symbol 485 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 5;
}
Instance of Symbol 452 MovieClip in Symbol 485 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._currentframe != (CGame.__get__curHelpTrick() + 1)) {
this.gotoAndStop(CGame.__get__curHelpTrick() + 1);
}
}
Instance of Symbol 455 MovieClip [Trick1] in Symbol 485 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 0;
}
Instance of Symbol 458 MovieClip [Trick2] in Symbol 485 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 1;
}
Instance of Symbol 461 MovieClip [Trick3] in Symbol 485 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 2;
}
Instance of Symbol 464 MovieClip [right] in Symbol 485 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 6;
}
Instance of Symbol 467 MovieClip [left] in Symbol 485 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 7;
}
Instance of Symbol 470 MovieClip [jump] in Symbol 485 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 8;
}
Symbol 489 MovieClip Frame 1
stop();
Symbol 492 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 1
stop();
Symbol 498 MovieClip Frame 1
stop();
Symbol 501 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 5
mc3.play();
Symbol 502 MovieClip Frame 30
mc3.play();
Symbol 503 MovieClip Frame 5
mc1.play();
Symbol 503 MovieClip Frame 30
mc1.play();
Symbol 504 MovieClip Frame 5
mc2.play();
Symbol 504 MovieClip Frame 30
mc2.play();
Symbol 505 MovieClip Frame 5
mc4.play();
Symbol 505 MovieClip Frame 30
mc4.play();
Symbol 506 MovieClip Frame 5
mc5.play();
Symbol 506 MovieClip Frame 30
mc5.play();
Symbol 508 MovieClip Frame 1
stop();
Symbol 509 MovieClip Frame 2
mcSpace.play();
Symbol 510 MovieClip Frame 1
mcMan.stop();
Symbol 510 MovieClip Frame 3
mcMan.play();
Symbol 510 MovieClip Frame 27
mcMan.stop();
Symbol 510 MovieClip Frame 40
mcMan.play();
Instance of Symbol 390 MovieClip [Trick4] in Symbol 515 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 3;
}
Instance of Symbol 393 MovieClip [Trick5] in Symbol 515 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 4;
}
Instance of Symbol 396 MovieClip [Trick6] in Symbol 515 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 5;
}
Instance of Symbol 511 MovieClip in Symbol 515 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._currentframe != (CGame.__get__curHelpTrick() + 1)) {
this.gotoAndStop(CGame.__get__curHelpTrick() + 1);
}
}
Instance of Symbol 455 MovieClip [Trick1] in Symbol 515 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 0;
}
Instance of Symbol 458 MovieClip [Trick2] in Symbol 515 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 1;
}
Instance of Symbol 461 MovieClip [Trick3] in Symbol 515 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 2;
}
Instance of Symbol 464 MovieClip [right] in Symbol 515 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 6;
}
Instance of Symbol 467 MovieClip [left] in Symbol 515 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 7;
}
Instance of Symbol 470 MovieClip [jump] in Symbol 515 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 8;
}
Symbol 545 MovieClip [PlayIcon] Frame 1
#initclip 94
Object.registerClass("PlayIcon", CGameControl);
#endinitclip
Symbol 556 MovieClip Frame 51
stop();
Symbol 575 MovieClip [gameRace] Frame 1
#initclip 95
Object.registerClass("gameRace", CRaceEngine);
#endinitclip
Symbol 581 MovieClip [riderIcon1] Frame 1
#initclip 96
Object.registerClass("riderIcon1", CRiderIcons);
#endinitclip
Symbol 585 MovieClip [riderIcon3] Frame 1
#initclip 97
Object.registerClass("riderIcon3", CRiderIcons);
#endinitclip
Symbol 610 MovieClip [riderIcon2] Frame 1
#initclip 98
Object.registerClass("riderIcon2", CRiderIcons);
#endinitclip
Symbol 621 MovieClip Frame 1
stop();
Instance of Symbol 610 MovieClip [riderIcon2] in Symbol 622 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 1;
this.m_LockNum = 6;
}
Symbol 626 MovieClip [riderIcon4] Frame 1
#initclip 99
Object.registerClass("riderIcon4", CRiderIcons);
#endinitclip
Symbol 628 MovieClip Frame 1
stop();
Instance of Symbol 626 MovieClip [riderIcon4] in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 3;
this.m_LockNum = 3;
}
Instance of Symbol 581 MovieClip [riderIcon1] in Symbol 631 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 0;
this.m_LockNum = 0;
}
Instance of Symbol 585 MovieClip [riderIcon3] in Symbol 631 MovieClip Frame 1
onClipEvent (load) {
this.m_num = 2;
this.m_LockNum = 0;
}
Instance of Symbol 606 MovieClip in Symbol 631 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._currentframe != (CGame.__get__curRider() + 1)) {
this.gotoAndStop(CGame.__get__curRider() + 1);
}
}
Symbol 634 Button
on (press) {
CGame.buttonStartGame();
}
Symbol 643 Button
on (press) {
CGame.buttonHowToPlay(true);
}
Symbol 649 Button
on (press) {
CGame.buttonExitGame();
}
Symbol 670 MovieClip Frame 63
CGame.appreciate(2);
Symbol 670 MovieClip Frame 86
stop();
Symbol 688 MovieClip Frame 62
CGame.appreciate(0);
Symbol 688 MovieClip Frame 71
stop();
Symbol 710 MovieClip Frame 64
CGame.appreciate(1);
Symbol 710 MovieClip Frame 76
stop();
Instance of Symbol 670 MovieClip in Symbol 712 MovieClip Frame 1
onClipEvent (load) {
CGame.initPeople(2, this);
}
Instance of Symbol 688 MovieClip in Symbol 712 MovieClip Frame 1
onClipEvent (load) {
CGame.initPeople(0, this);
}
Instance of Symbol 710 MovieClip in Symbol 712 MovieClip Frame 1
onClipEvent (load) {
CGame.initPeople(1, this);
}
Symbol 727 Button
on (press) {
CGame.buttonExitGame();
}
Symbol 733 Button
on (press) {
CGame.buttonNextLevel();
}
Symbol 738 Button
on (press) {
CGame.buttonTryAgain();
}
Symbol 749 MovieClip [game] Frame 1
#initclip 100
Object.registerClass("game", CGame);
#endinitclip
CSoundService.playLoopSound(CConstants.SND_INTRO);
stop();
Symbol 749 MovieClip [game] Frame 61
CSoundService.playLoopSound(CConstants.SND_INGAME);
stop();
Symbol 749 MovieClip [game] Frame 76
CSoundService.playLoopSound(CConstants.SND_INTRO);
Symbol 749 MovieClip [game] Frame 91
CSoundService.playLoopSound(CConstants.SND_END);
Instance of Symbol 748 MovieClip in Symbol 749 MovieClip [game] Frame 91
onClipEvent (load) {
_parent.debug = (((((((((("Trick Count " + CGame.__get__trickCount()) + " / ") + CConstants.levelStatistics[CGame.__get__curLevel()][CGame.P_TRICK]) + " levelScore ") + CGame.__get__levelScore()) + " / ") + CConstants.levelStatistics[CGame.__get__curLevel()][CGame.P_LSCORE]) + " flyTime ") + CGame.__get__flyTime()) + " / ") + CConstants.levelStatistics[CGame.__get__curLevel()][CGame.P_FTIME];
}