Frame 1
function gameInit() {
level++;
level = ((level > levelMax) ? 1 : (level));
gameEndTrig = false;
ui = new games.UI(this, this.UIM, fps, level, score, secMax, mapCountMax);
game = new games.Game(this, this.gameM, stageWidth, stageHeight, level, mapCountMax);
game.onReady = mx.utils.Delegate.create(ui, ui.openWhiteEffect);
game.onSpeed = mx.utils.Delegate.create(ui, ui.showSpeed);
game.onCollision = mx.utils.Delegate.create(ui, ui.setLife);
game.onMapCount = mx.utils.Delegate.create(ui, ui.setMap);
game.onScoreGain = mx.utils.Delegate.create(ui, ui.setScore);
this.popupM.onCloseEnd = mx.utils.Delegate.create(this, popupCloseEnd);
}
function gameReset() {
level = 0;
score = 0;
}
function gameEnd(bool, dataObj) {
if (!gameEndTrig) {
gameEndTrig = true;
gameClearTrig = bool;
game.startEnd();
scoreDataObj = dataObj;
if (bool) {
this.popupM.open("clear");
} else {
this.popupM.open("fail");
}
}
}
function popupCloseEnd(type) {
if (type == "ready") {
game.start();
ui.start();
} else {
game.remove();
ui.remove();
delete game;
delete ui;
this.gotoAndStop("resultL");
}
}
Stage.showMenu = false;
Stage.scaleMode = "noScale";
var fps = 36;
var stageWidth = 500;
var stageHeight = 350;
var pageType;
var level = 0;
var levelMax = 3;
var score = 0;
var scoreDataObj;
var sec;
var secMax = (fps * 60);
var mapCountMax = 300;
var game;
var ui;
var gameEndTrig = false;
var gameClearTrig = false;
var eastEggTrig = false;
var soundArr = [{name:"introBGM", volume:100, loopTrig:true}, {name:"BGM1", volume:100, loopTrig:true}, {name:"BGM2", volume:100, loopTrig:true}, {name:"BGM3", volume:100, loopTrig:true}, {name:"resultBGM", volume:100, loopTrig:true}, {name:"completeBGM", volume:100, loopTrig:true}, {name:"btnPress", volume:100}, {name:"crash", volume:100}, {name:"skid", volume:30}, {name:"skidEnd", volume:100}, {name:"dropItem1", volume:40}, {name:"dropItem2", volume:60}, {name:"dropItem3", volume:40}, {name:"getItem", volume:100}, {name:"fuck", volume:300}];
var gSound = (new gameUtil.GameSound(this, soundArr, 60, 10));
stop();
Frame 2
this.gotoAndStop("gameL");
Frame 10
if (false) {
}
Frame 50
gameInit();
Symbol 26 MovieClip Frame 30
var targetMc = this._parent;
var target = 0;
var progress = 0;
var speed = 0.08;
this.barM._xscale = 0;
this.onEnterFrame = function () {
this.target = (this.targetMc.getBytesLoaded() / this.targetMc.getBytesTotal()) * 100;
this.progress = this.progress + ((this.target - this.progress) * this.speed);
this.barM._xscale = this.progress;
this.loadWin.text = ((this.targetMc.getBytesLoaded() + "/ ") + this.targetMc.getBytesTotal()) + " BYTES";
if ((this.progress >= 99) and (this.target >= 100)) {
this.gotoAndPlay("outL");
this.onEnterFrame = null;
}
};
stop();
Symbol 26 MovieClip Frame 44
this._parent.gotoAndStop("introL");
stop();
Symbol 1285 MovieClip [__Packages.gameUtil.GameSound] Frame 0
class gameUtil.GameSound
{
var rootMc, volumeMax, depth, soundMc, soundObj;
function GameSound (rootMc, dataArr, volumeMax, depth) {
this.rootMc = rootMc;
this.dataArr = dataArr;
this.volumeMax = volumeMax;
this.depth = depth;
soundMc = rootMc.createEmptyMovieClip("soundM", depth);
soundObj = new Sound(rootMc);
soundObj.setVolume(volumeMax);
Init();
}
function Init() {
var _local8 = dataArr.length;
var _local4 = new Object();
var _local2;
var nextName;
var _local6;
var _local7;
var _local5;
var _local3 = 1;
while (_local3 <= _local8) {
_local4 = dataArr[_local3 - 1];
_local2 = _local4.name;
nextName = _local4.nextName;
_local6 = _local4.volume;
_local7 = _local4.loopTrig;
_local5 = soundMc.createEmptyMovieClip(_local2 + "M", _local3);
_local5.volume = 0;
_local5.volumeMax = _local6;
_local5.name = _local2;
soundMc[_local2] = new Sound(_local5);
soundMc[_local2].attachSound(_local2);
soundMc[_local2].setVolume(_local6);
if (_local7) {
soundMc[_local2].onSoundComplete = function () {
this.start(0, 999);
};
}
if (nextName != undefined) {
soundMc[_local2].path = this;
soundMc[_local2].nextName = nextName;
soundMc[_local2].onSoundComplete = function () {
this.path.start(this.nextName);
};
}
_local3++;
}
}
function searchInfo(name) {
var _local5 = dataArr.length;
var _local3 = new Object();
var _local4 = false;
var _local2 = 1;
while (_local2 <= _local5) {
if (dataArr[_local2 - 1].name == name) {
_local3.trig = true;
_local3.name = dataArr[_local2 - 1].name;
_local3.volume = dataArr[_local2 - 1].volume;
_local3.loopTrig = dataArr[_local2 - 1].loopTrig;
_local4 = true;
break;
}
_local2++;
}
if (!_local4) {
_local3.trig = false;
}
return(_local3);
}
function start(name) {
var _local2 = searchInfo(name);
if (_local2.trig) {
if (_local2.loopTrig) {
soundMc[name].start(0, 999);
} else {
soundMc[name].start();
}
}
}
function stop(name) {
soundMc[name].stop();
}
function stopAllSounds() {
var _local5 = dataArr.length;
var _local3 = new Object();
var _local4;
var _local2 = 1;
while (_local2 <= _local5) {
_local3 = dataArr[_local2 - 1];
_local4 = _local3.name;
soundMc[_local4].stop();
_local2++;
}
}
function getVolume(value) {
var _local3 = arguments.length;
if (_local3 == 0) {
return(soundObj.getVolume());
}
if (_local3 == 1) {
return(soundMc[arguments[0]].getVolume());
}
}
function setVolume(value) {
var _local3 = arguments.length;
if (_local3 == 1) {
soundObj.setVolume(arguments[0]);
} else if (_local3 == 2) {
soundMc[arguments[0]].setVolume(arguments[1]);
}
}
function mute(bool) {
if (bool) {
setVolume(0);
} else {
setVolume(volumeMax);
}
}
function easing(name, startVolume, endVolume, duration) {
var owner = this;
setVolume(name, startVolume);
var _local2 = new mx.transitions.Tween(soundMc[name + "M"], "volume", mx.transitions.easing.Regular.easeOut, startVolume, endVolume, duration);
_local2.onMotionChanged = function () {
owner.setVolume(this.obj.name, this.obj.volume);
};
_local2.onMotionFinished = function () {
};
}
function easingStart(name, startVolume, endVolume, duration) {
var owner = this;
setVolume(name, startVolume);
start(name);
var _local2 = new mx.transitions.Tween(soundMc[name + "M"], "volume", mx.transitions.easing.Regular.easeOut, startVolume, endVolume, duration);
_local2.onMotionChanged = function () {
owner.setVolume(this.obj.name, this.obj.volume);
};
_local2.onMotionFinished = function () {
};
}
function easingEnd(name, startVolume, endVolume, duration) {
var owner = this;
soundMc[name].setVolume(startVolume);
var _local2 = new mx.transitions.Tween(soundMc[name + "M"], "volume", mx.transitions.easing.Regular.easeOut, startVolume, endVolume, duration);
_local2.onMotionChanged = function () {
owner.setVolume(this.obj.name, this.obj.volume);
};
_local2.onMotionFinished = function () {
owner.stop(this.obj.name);
};
}
var dataArr = new Array();
}
Symbol 1286 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 1287 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 1288 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 1289 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 1290 MovieClip [__Packages.games.UI] Frame 0
class games.UI
{
var rootMc, mc, fps, level, score, secMax, mapCountMax, life, sec, mapCount, speedTween, N2OTween, lifeTween;
function UI (rootMc, mc, fps, level, score, secMax, mapCountMax) {
this.rootMc = rootMc;
this.mc = mc;
this.fps = fps;
this.level = level;
this.score = score;
this.secMax = secMax;
this.mapCountMax = mapCountMax;
init();
setMc();
}
function init() {
life = 100;
sec = 0;
mapCount = 0;
endTrig = false;
}
function setMc() {
setTitle(level);
setScore(0);
setLife(0);
}
function start() {
startTimer();
}
function end(bool) {
if (!endTrig) {
stopTimer();
var _local2 = new Object();
if (bool) {
_local2.life = Math.round((life * level) * 10);
_local2.sec = (((secMax - sec) <= 0) ? 0 : (secMax - sec));
} else {
_local2.life = 0;
_local2.sec = 0;
}
rootMc.gameEnd(bool, _local2);
showSpeed(0);
endTrig = true;
}
}
function openWhiteEffect() {
var _local2 = mc.whiteEffectM;
_local2.open();
}
function setTitle(level) {
var _local2 = mc.titleM;
_local2.gotoAndStop(("s" + level) + "L");
}
function setScore(score) {
var _local2 = mc.scoreM;
this.score = this.score + score;
rootMc.score = this.score;
_local2.textM.scoreWin.text = this.score;
_local2.open();
}
function showSpeed(speed) {
if ((this.speed != speed) and (!endTrig)) {
this.speed = speed;
var _local6 = this;
var _local3 = mc.speedM.niddleM;
var _local4;
var _local5;
if (speed == 0) {
_local4 = 0;
_local5 = 10;
} else if (speed == 1) {
_local4 = 45;
_local5 = 36;
} else if (speed == 2) {
_local4 = 175;
_local5 = 10;
}
_local3.dampOFF();
speedTween.stop();
speedTween = new mx.transitions.Tween(_local3, "_rotation", mx.transitions.easing.Regular.easeOut, _local3._rotation, _local4, _local5);
if (speed == 2) {
speedTween.onMotionFinished = function () {
this.obj.dampON();
};
}
showN2O(speed);
}
}
function showN2O(speed) {
var _local6 = this;
var _local3 = mc.N2OM.niddleM;
var _local2;
var _local4;
if (speed == 0) {
_local2 = 0;
_local4 = 10;
} else if (speed == 1) {
_local2 = 45;
_local4 = 36;
} else if (speed == 2) {
_local2 = 160;
_local4 = 10;
}
_local2 = _local2 - 37;
_local3.dampOFF();
N2OTween.stop();
N2OTween = new mx.transitions.Tween(_local3, "_rotation", mx.transitions.easing.Regular.easeOut, _local3._rotation, _local2, _local4);
if (speed != 0) {
N2OTween.onMotionFinished = function () {
this.obj.dampON();
};
}
}
function setLife(addLife) {
life = life + (addLife * 3);
life = ((life <= 0) ? 0 : (life));
life = ((life >= 100) ? 100 : (life));
var _local2 = mc.lifeM.maskM;
var _local3 = 1.8;
var _local4 = life * _local3;
var _local5 = 10;
var owner = this;
lifeTween.stop();
lifeTween = new mx.transitions.Tween(_local2, "_rotation", mx.transitions.easing.Regular.easeOut, _local2._rotation, _local4, _local5);
lifeTween.onMotionFinished = function () {
owner.checkLife();
};
}
function checkLife() {
if (!endTrig) {
if (life <= 0) {
end(false);
}
}
}
function setMap() {
if (!endTrig) {
var _local2 = mc.mapM;
var _local3 = _local2.niddleM;
var _local4 = _local2.maskM;
var _local5 = 360 / mapCountMax;
mapCount++;
if (mapCount <= mapCountMax) {
_local3._rotation = (-mapCount) * _local5;
_local4._rotation = _local3._rotation;
if (mapCount <= (mapCountMax / 2)) {
_local2.gotoAndStop("s1L");
} else {
_local2.gotoAndStop("s2L");
}
}
if (mapCount >= mapCountMax) {
end(true);
}
}
}
function startTimer() {
var _local2 = mc.timeM;
_local2.path = this;
_local2.sec = sec;
_local2.secMax = secMax;
_local2.stepAngle = 360 / secMax;
_local2.onEnterFrame = function () {
this.sec++;
this.path.sec = this.sec;
this.niddleM._rotation = this.sec * this.stepAngle;
this.maskM._rotation = this.niddleM._rotation;
if (this.sec <= (this.secMax / 2)) {
this.gotoAndStop("s1L");
} else {
this.gotoAndStop("s2L");
}
if (this.sec >= this.secMax) {
this.onEnterFrame = null;
}
};
}
function stopTimer() {
var _local2 = mc.timeM;
_local2.onEnterFrame = null;
}
function remove() {
stopTimer();
speedTween.stop();
N2OTween.stop();
lifeTween.stop();
delete speedTween;
delete N2OTween;
delete lifeTween;
}
var lifeMax = 100;
var speed = 0;
var endTrig = false;
}
Symbol 1291 MovieClip [__Packages.games.Game] Frame 0
class games.Game
{
var rootMc, mc, width, height, level, mapCountMax, x, speed, player, addListener, enermy, road, item, onReady, itemInterval, onMapCount, onScoreGain, broadcastMessage, controlMc, dir, onSpeed, rotationTween, ymoveTween, onCollision, xshakeTween, yshakeTween;
function Game (rootMc, mc, width, height, level, mapCountMax) {
this.rootMc = rootMc;
this.mc = mc;
this.width = width;
this.height = height;
this.level = level;
this.mapCountMax = mapCountMax;
angleUp();
init();
}
function init() {
x = 0;
speed = 1;
AsBroadcaster.initialize(this);
player = new games.Player(mc.playerM, xMax, xStep, zoomScale);
player.onDriftEnd = mx.utils.Delegate.create(this, end);
addListener(player);
enermy = new games.Enermy(mc.enermyM, level, xMax, zoomScale);
enermy.onSetItem = mx.utils.Delegate.create(this, setItem);
enermy.onSubMove = mx.utils.Delegate.create(this, changeEnermyPos);
addListener(enermy);
road = new games.Road(mc.roadM, level, xMax, zoomScale, mapCountMax);
road.onCoverDone = mx.utils.Delegate.create(this, ready);
road.onSetItem = mx.utils.Delegate.create(this, setItem);
road.onMapCount = mx.utils.Delegate.create(this, mapCount);
addListener(road);
item = new games.Item(mc, xMax, zoomScale);
item.onScoreGain = mx.utils.Delegate.create(this, scoreGain);
item.onCollision = mx.utils.Delegate.create(this, checkCollision);
addListener(item);
setControl();
setEnabled(false);
road.setEnabled(true);
road.setSubRoad();
}
function ready() {
rootMc.popupM.open("ready");
angleUp();
onReady();
}
function start() {
rootMc.gSound.easingStart("BGM" + level, 0, 100, 30);
setEnabled(true);
road.pause(false);
setSpeed(2);
clearInterval(itemInterval);
itemInterval = setInterval(this, "setItem", itemSec, "score");
}
function startEnd() {
clearInterval(itemInterval);
rootMc.gSound.start("skidEnd");
setEnabled(false);
setSpeed(1);
rotation(0, rotationSpeed * 2);
player.startDrift();
player.zoomOut();
}
function end() {
clearInterval(itemInterval);
rootMc.gSound.easingEnd("BGM" + level, 100, 0, 45);
shake(0, 8);
enermy.outMove();
road.pause(true);
}
function pause(bool) {
setEnabled(!bool);
}
function mapCount() {
onMapCount();
}
function scoreGain() {
onScoreGain(level * 10);
}
function setItem(type, x, scale) {
var _local4 = (road.countMax / 2) - road.count;
if (_local4 >= 3) {
if (type == "score") {
var _local5 = xMax / xStep;
x = xStep * random(_local5);
if (random(2) == 1) {
x = x * -1;
}
scale = 0;
} else if (type == "obstacle") {
rootMc.gSound.start("dropItem" + level);
}
item.setSubItem(type, level, x, scale);
}
}
function changeEnermyPos(x, y, scale) {
item.changeEnermyPos(x, y, scale);
}
function setEnabled(bool) {
enableTrig = bool;
broadcastMessage("setEnabled", bool);
}
function setControl() {
controlMc = mc.createEmptyMovieClip("controlM", 1);
controlMc.path = this;
controlMc.onEnterFrame = function () {
if (this.path.enableTrig) {
if (Key.isDown(37)) {
this.path.move(1);
} else if (Key.isDown(39)) {
this.path.move(-1);
} else {
this.path.rotation(0, this.path.rotationSpeed * 2);
}
if (Key.isDown(38)) {
this.path.setSpeed(2);
} else {
this.path.setSpeed(1);
}
}
};
}
function removeControl() {
controlMc.onEnterFrame = null;
controlMc.removeMovieClip();
}
function move(dir) {
var _local2 = dir * xStep;
broadcastMessage("move", dir, _local2);
this.dir = dir;
x = x + _local2;
if (x <= (-xMax)) {
x = -xMax;
} else if (x >= xMax) {
x = xMax;
}
if ((x > (-xMax)) and (x < xMax)) {
rotation(x * 0.025, rotationSpeed);
} else {
rotation(0, rotationSpeed * 2);
}
}
function setSpeed(speed) {
if (this.speed != speed) {
this.speed = speed;
if (speed == 1) {
fastTrig = false;
} else if (speed == 2) {
fastTrig = true;
}
onSpeed(speed);
broadcastMessage("setSpeed", speed);
}
}
function rotation(angle, speed) {
if (angleSave != angle) {
angleSave = angle;
rotationTween.stop();
rotationTween = new mx.transitions.Tween(mc, "_rotation", mx.transitions.easing.Regular.easeOut, mc._rotation, angle, speed);
}
}
function angleUp() {
var _local2 = this;
ymoveTween.stop();
ymoveTween = new mx.transitions.Tween(mc, "_y", mx.transitions.easing.Regular.easeOut, mc._y, height / 2, yspeed);
}
function angleDown() {
ymoveTween.stop();
mc._y = 200;
}
function checkCollision(subItem) {
var _local4 = subItem.itemx;
var _local5 = subItem.mc.subM._y;
var _local3 = (fastTrig ? (road.mc._x / (zoomScale / 100)) : (road.mc._x));
var _local7 = player.mc._y;
var _local8 = [30, 90, 60];
var _local6 = _local8[level - 1];
var _local9 = (fastTrig ? (_local6 * (zoomScale / 100)) : (_local6));
if (subItem.type == "score") {
if (Math.abs(_local5 - _local7) <= 30) {
if (Math.abs(_local4 + _local3) <= 60) {
rootMc.gSound.start("getItem");
scoreGain();
subItem.operationCollision();
}
}
} else if (subItem.type == "obstacle") {
if (Math.abs(_local5 - _local7) <= 30) {
if (Math.abs(_local4 + _local3) <= 2) {
rootMc.gSound.start("crash");
if (rootMc.eastEggTrig) {
rootMc.gSound.stop("fuck");
rootMc.gSound.start("fuck");
}
onCollision(-speed);
shake(_local3 * -0.03, 10);
subItem.operationCollision();
} else if (Math.abs(_local4 + _local3) <= _local9) {
if (level >= 2) {
rootMc.gSound.start("crash");
if (rootMc.eastEggTrig) {
rootMc.gSound.stop("fuck");
rootMc.gSound.start("fuck");
}
onCollision(-speed);
shake(_local3 * -0.03, 10);
subItem.operationCollision();
}
}
}
}
}
function shake(tx, ty) {
xshakeTween.stop();
yshakeTween.stop();
xshakeTween = new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Elastic.easeOut, mc._x + tx, width / 2, shakeSpeed);
yshakeTween = new mx.transitions.Tween(mc, "_y", mx.transitions.easing.Elastic.easeOut, mc._y + ty, height / 2, shakeSpeed);
}
function remove() {
clearInterval(itemInterval);
setEnabled(false);
removeControl();
rotationTween.stop();
ymoveTween.stop();
player.remove();
enermy.remove();
road.remove();
item.remove();
delete player;
delete enermy;
delete road;
delete item;
}
var xMax = 300;
var xStep = 30;
var zoomScale = 80;
var rotationSpeed = 5;
var angleSave = 0;
var yspeed = 10;
var shakeSpeed = 36;
var itemSec = 1200;
var fastTrig = false;
var enableTrig = false;
}
Symbol 1292 MovieClip [__Packages.games.Player] Frame 0
class games.Player
{
var mc, xMax, xStep, zoomScale, x, dir, speed, saveDepth, standFrame, stepFrame, ymoveTween, xscaleTween, yscaleTween, targetFrame, targetDriftFrame, onDriftStart;
function Player (mc, xMax, xStep, zoomScale) {
this.mc = mc;
this.xMax = xMax;
this.xStep = xStep;
this.zoomScale = zoomScale;
init();
setMc();
}
function init() {
x = 0;
dir = 0;
speed = 1;
fastTrig = false;
saveDepth = mc.getDepth();
standFrame = centerFrame;
stepFrame = Math.round(xMax / centerMarginFrame);
}
function setMc() {
mc.path = this;
mc._y = y;
setDepth();
mc.gotoAndStop(standFrame);
mc.wheelM_front.path = this;
mc.wheelM_front.onEnterFrame = function () {
var _local2 = 1;
while (_local2 <= this.path.speed) {
this.nextFrame();
_local2++;
}
};
mc.wheelM_back.path = this;
mc.wheelM_back.onEnterFrame = function () {
var _local2 = 1;
while (_local2 <= this.path.speed) {
this.nextFrame();
_local2++;
}
};
}
function removeMc() {
mc.onEnterFrame = null;
mc.wheelM_front.onEnterFrame = null;
mc.wheelM_back.onEnterFrame = null;
mc.swapDepths(saveDepth);
}
function getDepth() {
var _local3 = mc._y * 1000000;
var _local2 = Math.floor((xMax - Math.abs(x)) * 0.1) * 10;
var _local4 = (_local3 + _local2) + arrangeDepth;
return(_local4);
}
function setDepth() {
mc.swapDepths(getDepth());
}
function move(dir, tx) {
x = x + tx;
if (x <= (-xMax)) {
x = -xMax;
} else if (x >= xMax) {
x = xMax;
}
setDepth();
setFrameData(dir);
if ((x > (-xMax)) and (x < xMax)) {
startMotion();
}
this.dir = dir;
}
function setSpeed(speed) {
if (this.speed != speed) {
this.speed = speed;
if (speed == 1) {
fastTrig = false;
zoomOut();
} else if (speed == 2) {
fastTrig = true;
zoomIn();
}
}
}
function zoomIn() {
var owner = this;
ymoveTween.stop();
xscaleTween.stop();
yscaleTween.stop();
ymoveTween = new mx.transitions.Tween(mc, "_y", mx.transitions.easing.Regular.easeOut, mc._y, zoomY, yspeed);
ymoveTween.onMotionChanged = function () {
owner.setDepth();
};
xscaleTween = new mx.transitions.Tween(mc, "_xscale", mx.transitions.easing.Regular.easeOut, mc._xscale, zoomScale, yspeed);
yscaleTween = new mx.transitions.Tween(mc, "_yscale", mx.transitions.easing.Regular.easeOut, mc._yscale, zoomScale, yspeed);
}
function zoomOut() {
var owner = this;
ymoveTween.stop();
xscaleTween.stop();
yscaleTween.stop();
ymoveTween = new mx.transitions.Tween(mc, "_y", mx.transitions.easing.Regular.easeOut, mc._y, y, yspeed * 2);
ymoveTween.onMotionChanged = function () {
owner.setDepth();
};
xscaleTween = new mx.transitions.Tween(mc, "_xscale", mx.transitions.easing.Regular.easeOut, mc._xscale, 100, yspeed * 2);
yscaleTween = new mx.transitions.Tween(mc, "_yscale", mx.transitions.easing.Regular.easeOut, mc._yscale, 100, yspeed * 2);
}
function setFrameData(dir) {
if ((x > (-xMax)) and (x < xMax)) {
var _local2 = Math.round(x / stepFrame);
standFrame = centerFrame + _local2;
if (!fastTrig) {
targetFrame = centerFrame + _local2;
} else {
if (this.dir != dir) {
mc._parent._parent.gSound.start("skid");
targetMarginFrame = 0;
}
targetMarginFrame = targetMarginFrame + (dir * 1.12365);
targetFrame = standFrame + Math.round(targetMarginFrame);
targetFrame = ((targetFrame <= leftFrame) ? (leftFrame) : (targetFrame));
targetFrame = ((targetFrame >= rightFrame) ? (rightFrame) : (targetFrame));
}
}
}
function startMotion() {
mc.wheelM_front._visible = false;
mc.wheelM_back._visible = false;
mc.step = 1;
mc.targetFrame = targetFrame;
mc.standFrame = standFrame;
mc.onEnterFrame = function () {
if (this.step == 1) {
if (this._currentframe > this.targetFrame) {
this.prevFrame();
} else if (this._currentframe < this.targetFrame) {
this.nextFrame();
} else if (this._currentframe == this.targetFrame) {
this.step = 2;
}
} else if (this.step == 2) {
if (this._currentframe > this.standFrame) {
this.prevFrame();
} else if (this._currentframe < this.standFrame) {
this.nextFrame();
} else if (this._currentframe == this.standFrame) {
this.step = 0;
this.wheelM_front._visible = true;
this.wheelM_back._visible = true;
this.path.targetMarginFrame = 0;
}
}
};
}
function startDrift() {
setDriftFrameData();
startDriftMotion();
}
function setDriftFrameData() {
if (x == 0) {
if (random(2) == 1) {
targetDriftFrame = leftFrameMax;
} else {
targetDriftFrame = rightFrameMax;
}
} else if (x > 0) {
targetDriftFrame = rightFrameMax;
} else if (x < 0) {
targetDriftFrame = leftFrameMax;
}
}
function startDriftMotion() {
onDriftStart();
mc.wheelM_front._visible = false;
mc.wheelM_back._visible = false;
mc.targetFrame = targetDriftFrame;
mc.onEnterFrame = function () {
if (this._currentframe > this.targetFrame) {
this.prevFrame();
} else if (this._currentframe < this.targetFrame) {
this.nextFrame();
} else if (this._currentframe == this.targetFrame) {
this.path.onDriftEnd();
this.onEnterFrame = null;
}
};
}
function remove() {
removeMc();
ymoveTween.stop();
xscaleTween.stop();
yscaleTween.stop();
}
var arrangeDepth = 5;
var y = 113;
var zoomY = 90;
var yspeed = 8;
var targetMarginFrame = 0;
var centerFrame = 52;
var centerMarginFrame = 11;
var leftFrame = 37;
var leftFrameMax = 20;
var rightFrame = 67;
var rightFrameMax = 84;
var fastTrig = false;
var crashTrig = false;
var pauseTrig = false;
}
Symbol 1293 MovieClip [__Packages.games.Enermy] Frame 0
class games.Enermy
{
var mc, level, xMax, zoomScale, x, saveDepth, subEnermy, dir, xmoveTween, speed;
function Enermy (mc, level, xMax, zoomScale) {
this.mc = mc;
this.level = level;
this.xMax = xMax;
this.zoomScale = zoomScale;
init();
setMc();
setEnabled(false);
}
function init() {
x = 0;
saveDepth = mc.getDepth();
}
function setMc() {
mc.path = this;
mc.gotoAndStop(("s" + level) + "L");
subEnermy = new games.SubEnermy(this, mc.subM, level, xMax);
}
function removeMc() {
mc.swapDepths(saveDepth);
}
function setEnabled(bool) {
enableTrig = bool;
subEnermy.setEnabled(bool);
}
function getDepth(x, y) {
var _local3 = y * 1000000;
var _local2 = Math.floor((xMax - Math.abs(x)) * 0.1) * 10;
var _local4 = (_local3 + _local2) + arrangeDepth;
return(_local4);
}
function setDepth(x, y) {
mc.swapDepths(getDepth(x, y));
}
function move(dir, tx) {
this.dir = dir;
x = x + tx;
if (x <= (-xMax)) {
x = -xMax;
} else if (x >= xMax) {
x = xMax;
}
if (fastTrig) {
tx = x * (zoomScale / 100);
} else {
tx = x;
}
xmoveTween.stop();
xmoveTween = new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Regular.easeOut, mc._x, tx, xspeed);
}
function returnMove() {
xmoveTween.stop();
xmoveTween = new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Regular.easeOut, mc._x, x, xspeed * 3);
}
function outMove() {
subEnermy.outMove();
}
function setSpeed(speed) {
if (this.speed != speed) {
this.speed = speed;
if (speed == 1) {
fastTrig = false;
subEnermy.returnMove();
returnMove();
} else if (speed == 2) {
fastTrig = true;
subEnermy.backMove();
move(dir, 0);
}
}
}
function remove() {
removeMc();
xmoveTween.stop();
subEnermy.remove();
delete subEnermy;
}
var arrangeDepth = 3;
var xspeed = 3;
var fastTrig = false;
var pauseTrig = false;
var enableTrig = false;
}
Symbol 1294 MovieClip [__Packages.games.SubEnermy] Frame 0
class games.SubEnermy
{
var parent, mc, xMax, level, type, interval, dropSec, x, xs, y, scale, roadScale, centerMarginFrame, standFrame, saveStandFrame, stepFrame, sound, xmoveTween, ymoveTween, xscaleTween, yscaleTween, targetFrame;
function SubEnermy (parent, mc, level, xMax) {
this.parent = parent;
this.mc = mc;
this.xMax = xMax;
this.level = level;
init();
setSound();
setMc();
startMove();
if (type == "land") {
interval = setInterval(this, "startMove", dropSec);
}
}
function init() {
x = 0;
xs = 0;
y = mc._y;
scale = scaleMin;
roadScale = scaleMin;
dropCount = 0;
fastTrig = false;
if (level == 1) {
type = "land";
centerMarginFrame = 7;
dropSec = 1800;
} else if (level == 2) {
type = "land";
centerMarginFrame = 11;
dropSec = 800;
} else if (level == 3) {
type = "air";
centerMarginFrame = 14;
}
standFrame = centerFrame;
saveStandFrame = centerFrame;
stepFrame = Math.round(xMax / centerMarginFrame);
setEnabled(false);
}
function setMc() {
mc.path = this;
mc._xscale = scaleMin;
mc._yscale = scaleMin;
mc.gotoAndStop(centerFrame);
}
function removeMc() {
mc.onEnterFrame = null;
}
function setSound() {
sound = new Sound(mc);
if (type == "land") {
sound.attachSound("diselEngine");
} else if (type == "air") {
sound.attachSound("rotorEngine");
}
sound.setVolume(0);
sound.onSoundComplete = function () {
this.start();
};
sound.start();
}
function removeSound() {
sound.stop();
sound.setVolume(0);
delete sound;
}
function setVolumeSound(volume) {
sound.setVolume(volume - scaleMin);
}
function setEnabled(bool) {
enableTrig = bool;
}
function setDepth() {
parent.setDepth(mc._x / (roadScale / 100), mc._y);
}
function startMove() {
var _local2 = parent.x;
var _local3 = ((_local2 < 0) ? -1 : 1);
move(_local2 * -1);
setFrameData(_local3);
startMotion();
}
function move(tx) {
x = tx;
var _local3 = roadScale;
tx = x * (_local3 / 100);
var owner = this;
xmoveTween.stop();
xmoveTween = new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Regular.easeOut, mc._x, tx, xspeed);
xmoveTween.onMotionChanged = function () {
owner.setDepth();
owner.positionChange();
};
}
function backMove() {
fastTrig = true;
var owner = this;
ymoveTween.stop();
xscaleTween.stop();
yscaleTween.stop();
ymoveTween = new mx.transitions.Tween(mc, "_y", mx.transitions.easing.Regular.easeOut, mc._y, yMax, yspeed * 4);
xscaleTween = new mx.transitions.Tween(mc, "_xscale", mx.transitions.easing.Regular.easeOut, mc._xscale, scaleMax, yspeed * 4);
yscaleTween = new mx.transitions.Tween(mc, "_yscale", mx.transitions.easing.Regular.easeOut, mc._yscale, scaleMax, yspeed * 4);
yscaleTween.onMotionChanged = function () {
owner.setDepth();
owner.positionChange();
owner.scaleChange(this.obj._yscale);
owner.setVolumeSound(this.obj._yscale);
};
}
function returnMove() {
var owner = this;
ymoveTween.stop();
xscaleTween.stop();
yscaleTween.stop();
ymoveTween = new mx.transitions.Tween(mc, "_y", mx.transitions.easing.Regular.easeOut, mc._y, yMin, yspeed);
ymoveTween.onMotionFinished = function () {
owner.fastTrig = false;
};
xscaleTween = new mx.transitions.Tween(mc, "_xscale", mx.transitions.easing.Regular.easeOut, mc._xscale, scaleMin, yspeed);
yscaleTween = new mx.transitions.Tween(mc, "_yscale", mx.transitions.easing.Regular.easeOut, mc._yscale, scaleMin, yspeed);
yscaleTween.onMotionChanged = function () {
owner.setDepth();
owner.positionChange();
owner.scaleChange(this.obj._yscale);
owner.setVolumeSound(this.obj._yscale);
};
}
function outMove() {
var owner = this;
ymoveTween.stop();
xscaleTween.stop();
yscaleTween.stop();
ymoveTween = new mx.transitions.Tween(mc, "_y", mx.transitions.easing.Regular.easeOut, mc._y, yMin, yspeed / 3);
xscaleTween = new mx.transitions.Tween(mc, "_xscale", mx.transitions.easing.Regular.easeOut, mc._xscale, scaleMin, yspeed / 3);
yscaleTween = new mx.transitions.Tween(mc, "_yscale", mx.transitions.easing.Regular.easeOut, mc._yscale, scaleMin, yspeed / 3);
yscaleTween.onMotionChanged = function () {
owner.setDepth();
owner.positionChange();
owner.scaleChange(this.obj._yscale);
owner.setVolumeSound(this.obj._yscale);
};
}
function positionChange() {
if (type == "land") {
var _local4 = mc._x / (roadScale / 100);
var _local3 = mc._y;
var _local2 = mc._yscale;
parent.onSubMove(_local4, _local3, _local2);
}
}
function scaleChange(scale) {
var _local2 = (roadScaleMax - roadScaleMin) / 100;
roadScale = scale * _local2;
move(x);
}
function setFrameData(dir) {
var _local2 = Math.ceil(Math.abs(x / stepFrame));
standFrame = centerFrame + (_local2 * dir);
if (saveStandFrame != standFrame) {
var _local3 = Math.round(Math.abs((x - xs) / 30));
targetFrame = standFrame + ((Math.round(_local3 * 1.65) * dir) * -1);
targetFrame = ((targetFrame <= leftFrame) ? (leftFrame) : (targetFrame));
targetFrame = ((targetFrame >= rightFrame) ? (rightFrame) : (targetFrame));
} else {
targetFrame = standFrame;
}
saveStandFrame = standFrame;
}
function startMotion() {
mc.step = 1;
mc.targetFrame = targetFrame;
mc.standFrame = standFrame;
if (type == "land") {
mc.onEnterFrame = function () {
if (this.step == 1) {
if (this._currentframe > this.targetFrame) {
this.prevFrame();
} else if (this._currentframe < this.targetFrame) {
this.nextFrame();
} else if (this._currentframe == this.targetFrame) {
this.step = 2;
}
} else if (this.step == 2) {
if (this._currentframe > this.standFrame) {
this.prevFrame();
} else if (this._currentframe < this.standFrame) {
this.nextFrame();
} else if (this._currentframe == this.standFrame) {
this.step = 0;
this.path.xs = this.path.x;
if (this.path.enableTrig) {
this.path.parent.onSetItem("obstacle", this.path.x, this.path.roadScale);
}
this.onEnterFrame = null;
}
}
};
} else if (type == "air") {
mc.onEnterFrame = function () {
if (this._currentframe > this.standFrame) {
this.path.dropCount++;
this.prevFrame();
} else if (this._currentframe < this.standFrame) {
this.path.dropCount++;
this.nextFrame();
} else if (this._currentframe == this.standFrame) {
this.path.dropCount++;
if (this.path.dropCount >= this.path.dropCountMax) {
this.path.dropCount = 0;
if (this.path.enableTrig) {
this.path.parent.onSetItem("obstacle", this.path.x, this.path.roadScale);
}
}
this.path.startMove();
}
};
}
}
function remove() {
removeSound();
removeMc();
clearInterval(interval);
xmoveTween.stop();
ymoveTween.stop();
xscaleTween.stop();
yscaleTween.stop();
}
var xspeed = 10;
var yMin = 2;
var yMax = 30;
var yspeed = 60;
var scaleMin = 30;
var scaleMax = 100;
var roadScaleMin = 1.5;
var roadScaleMax = 30;
var centerFrame = 26;
var leftFrame = 11;
var rightFrame = 41;
var dropCount = 0;
var dropCountMax = 20;
var fastTrig = false;
var enableTrig = false;
}
Symbol 1295 MovieClip [__Packages.games.Road] Frame 0
class games.Road
{
var mc, level, xMax, zoomScale, countMax, x, count, speed, firstTrig, addListener, onMapCount, removeListener, broadcastMessage, dir, xmoveTween, onCoverDone;
function Road (mc, level, xMax, zoomScale, countMax) {
this.mc = mc;
this.level = level;
this.xMax = xMax;
this.zoomScale = zoomScale;
this.countMax = countMax * 2;
init();
setMc();
}
function init() {
x = 0;
count = 0;
speed = 5;
firstTrig = false;
AsBroadcaster.initialize(this);
}
function setMc() {
mc.skyBGM.gotoAndStop(("s" + level) + "L");
mc.dummyBGM.gotoAndStop(("s" + level) + "L");
}
function setEnabled(bool) {
enableTrig = bool;
}
function setSubRoad() {
if (enableTrig) {
count++;
if (count < countMax) {
var _local4 = countMax - count;
var _local3 = ((((countMax / 2) - count) == -1) ? true : false);
var _local2 = new games.SubRoad(mc, level, count, _local4, speed, _local3);
_local2.onOtherMake = mx.utils.Delegate.create(this, setSubRoad);
_local2.onCoverEnd = mx.utils.Delegate.create(this, onCoverEnd);
_local2.onRemove = mx.utils.Delegate.create(this, removeSubRoad);
addListener(_local2);
}
}
}
function removeSubRoad(subRoad) {
onMapCount();
removeListener(subRoad);
subRoad.remove();
}
function allRemoveSubRoad() {
broadcastMessage("removeStart");
}
function pause(bool) {
broadcastMessage("pause", bool);
}
function move(dir, tx) {
this.dir = dir;
x = x + tx;
if (x <= (-xMax)) {
x = -xMax;
} else if (x >= xMax) {
x = xMax;
}
if (fastTrig) {
tx = x * (zoomScale / 100);
} else {
tx = x;
}
xmoveTween.stop();
xmoveTween = new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Regular.easeOut, mc._x, tx, xspeed);
}
function returnMove() {
xmoveTween.stop();
xmoveTween = new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Regular.easeOut, mc._x, x, xspeed * 3);
}
function setSpeed(speed) {
if (this.speed != speed) {
this.speed = speed;
broadcastMessage("setSpeed", speed);
if (speed == 1) {
fastTrig = false;
returnMove();
} else if (speed == 2) {
fastTrig = true;
move(dir, 0);
}
}
}
function onCoverEnd(subRoad) {
if (!firstTrig) {
firstTrig = true;
pause(true);
setSpeed(2);
onCoverDone();
}
}
function remove() {
allRemoveSubRoad();
xmoveTween.stop();
}
var xspeed = 3;
var fastTrig = false;
var enableTrig = false;
}
Symbol 1296 MovieClip [__Packages.games.SubRoad] Frame 0
class games.SubRoad
{
var targetMc, level, count, depth, speed, goalTrig, pauseTrig, mc, onRemove;
function SubRoad (targetMc, level, count, depth, speed, goalTrig) {
this.targetMc = targetMc;
this.level = level;
this.count = count;
this.depth = depth;
this.speed = speed;
this.goalTrig = goalTrig;
init();
setMc();
setObjMc();
}
function init() {
pauseTrig = false;
}
function setMc() {
mc = targetMc.attachMovie(linkageName, "subM" + count, depth);
mc._x = 0;
mc._y = 0;
mc.path = this;
mc.onOtherMake = function () {
this.path.onOtherMake();
};
mc.onCoverEnd = function () {
this.path.onCoverEnd(this.path);
};
mc.onRemove = function () {
this.path.onRemove(this.path);
};
mc.stop();
mc.onEnterFrame = function () {
if (!this.path.pauseTrig) {
var _local2 = 1;
while (_local2 <= this.path.speed) {
this.nextFrame();
_local2++;
}
}
};
}
function removeMc() {
mc.onEnterFrame = null;
mc.removeMovieClip();
}
function setObjMc() {
var _local2 = mc.subM;
_local2.gotoAndStop(("s" + level) + "L");
if (goalTrig) {
_local2.subM.gotoAndStop("goalL");
} else if ((count % 3) == 0) {
_local2.subM.gotoAndStop(("pole" + level) + "L");
if (((count / 3) % 2) == 1) {
_local2.subM._x = _local2.subM._x * -1;
_local2.subM._xscale = -100;
}
} else if ((count % 7) == 0) {
if (((count / 7) % 2) == 1) {
_local2.subM.flipTrig = true;
_local2.subM.gotoAndStop(("post" + level) + "L");
_local2.subM._x = _local2.subM._x * -1;
_local2.subM._xscale = -100;
} else {
_local2.subM.flipTrig = false;
_local2.subM.gotoAndStop(("post" + level) + "L");
}
} else {
_local2.subM.gotoAndStop("offL");
}
}
function pause(bool) {
pauseTrig = bool;
}
function setSpeed(speed) {
this.speed = speed;
}
function removeStart() {
onRemove(this);
}
function remove() {
removeMc();
}
var linkageName = "roadAniM";
var widthMax = 1220;
}
Symbol 1297 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 1298 MovieClip [__Packages.games.Item] Frame 0
class games.Item
{
var targetMc, xMax, zoomScale, x, realx, speed, dir, xmoveTween, broadcastMessage, onCollision, addListener, onScoreGain, removeListener;
function Item (targetMc, xMax, zoomScale) {
this.targetMc = targetMc;
this.xMax = xMax;
this.zoomScale = zoomScale;
init();
}
function init() {
x = 0;
realx = 0;
speed = 1;
AsBroadcaster.initialize(this);
}
function move(dir, tx) {
this.dir = dir;
x = x + tx;
if (x <= (-xMax)) {
x = -xMax;
} else if (x >= xMax) {
x = xMax;
}
if (fastTrig) {
tx = x * (zoomScale / 100);
} else {
tx = x;
}
var owner = this;
xmoveTween.stop();
xmoveTween = new mx.transitions.Tween(this, "realx", mx.transitions.easing.Regular.easeOut, realx, tx, xspeed);
xmoveTween.onMotionChanged = function () {
owner.broadcastMessage("move", owner.realx);
};
}
function returnMove() {
var owner = this;
xmoveTween.stop();
xmoveTween = new mx.transitions.Tween(this, "realx", mx.transitions.easing.Regular.easeOut, realx, x, xspeed * 3);
xmoveTween.onMotionChanged = function () {
owner.broadcastMessage("move", owner.realx);
};
}
function setSpeed(speed) {
if (this.speed != speed) {
this.speed = speed;
broadcastMessage("setSpeed", speed);
if (speed == 1) {
fastTrig = false;
returnMove();
} else if (speed == 2) {
fastTrig = true;
move(dir, 0);
}
}
}
function setSubItem(type, level, x, scale) {
count++;
var _local2 = new games.SubItem(targetMc, type, level, count, realx, xMax, x, scale, speed, enermyx, enermyy, enermyScale);
_local2.onCollision = mx.utils.Delegate.create(this, onCollision);
_local2.onRemove = mx.utils.Delegate.create(this, removeSubItem);
addListener(_local2);
}
function removeSubItem(subItem) {
if ((!subItem.crashTrig) and (subItem.type == "obstacle")) {
onScoreGain();
}
removeListener(subItem);
subItem.remove();
}
function allRemoveSubItem() {
broadcastMessage("removeStart");
}
function changeEnermyPos(x, y, scale) {
enermyx = x;
enermyy = y;
enermyScale = scale;
broadcastMessage("changeEnermyPos", x, y, scale);
}
function remove() {
allRemoveSubItem();
xmoveTween.stop();
}
var count = 0;
var xspeed = 3;
var enermyx = 0;
var enermyy = 0;
var enermyScale = 0;
var fastTrig = false;
}
Symbol 1299 MovieClip [__Packages.games.SubItem] Frame 0
class games.SubItem
{
var targetMc, type, level, count, x, xMax, itemx, scale, enermyx, enermyy, enermyScale, xStep, mc, ymoveTween, onRemove;
function SubItem (targetMc, type, level, count, x, xMax, itemx, scale, speed, enermyx, enermyy, enermyScale) {
this.targetMc = targetMc;
this.type = type;
this.level = level;
this.count = count;
this.x = x;
this.xMax = xMax;
this.itemx = Math.ceil(itemx);
this.scale = scale;
this.speed = speed;
this.enermyx = enermyx;
this.enermyy = enermyy;
this.enermyScale = enermyScale;
init();
setMc();
}
function init() {
xStep = (widthMax / 2) / xMax;
}
function setMc() {
mc = targetMc.attachMovie(linkageName, "itemM" + count, arrangeDepth);
mc._x = x;
mc._y = 0;
mc.subM.subM._x = itemx * xStep;
selectItemMc();
mc.path = this;
mc.onCollision = function () {
if (!this.path.crashTrig) {
this.path.onCollision(this.path);
}
};
mc.onRemove = function () {
this.path.onRemove(this.path);
};
mc.onDropEnd = function () {
this.path.moveStart();
};
startFrame(scale);
setDepth();
}
function removeMc() {
mc.onEnterFrame = null;
mc.removeMovieClip();
}
function selectItemMc() {
var _local3;
var _local2;
if (type == "score") {
_local3 = "s0";
_local2 = "L";
} else if (type == "obstacle") {
_local3 = "s" + level;
if (level == 1) {
_local2 = "L";
} else if (level == 2) {
if (Math.abs(itemx) < (xMax / 3)) {
_local2 = "_1L";
} else {
_local2 = "_2L";
}
} else if (level == 3) {
if (itemx <= (-(xMax / 2))) {
_local2 = "_1L";
} else if ((itemx > (-(xMax / 2))) and (itemx < (xMax / 2))) {
_local2 = "_2L";
} else if (itemx >= (xMax / 2)) {
_local2 = "_3L";
}
}
}
mc.subM.subM.gotoAndStop(_local3 + _local2);
}
function getDepth() {
if (mc.subM != undefined) {
var _local3 = mc.subM._y * 1000000;
var _local2 = Math.floor((xMax - Math.abs(itemx)) * 0.1) * 10;
var _local4 = (_local3 + _local2) + arrangeDepth;
return(_local4);
}
}
function setDepth() {
mc.swapDepths(getDepth());
}
function changeEnermyPos(x, y, scale) {
enermyx = x;
enermyy = y;
enermyScale = scale;
}
function checkVisible() {
if (type == "score") {
if (!crashTrig) {
var _local2 = [30, 60];
var _local3 = _local2[level - 1];
if (Math.abs(itemx - enermyx) <= _local3) {
if (Math.abs(mc.subM._y - enermyy) <= (28 * (enermyScale / 100))) {
mc._visible = false;
} else {
mc._visible = true;
}
} else {
mc._visible = true;
}
}
}
}
function moveStart() {
mc.onEnterFrame = function () {
if (!this.path.pauseTrig) {
if (!this.path.crashTrig) {
var _local2 = 1;
while (_local2 <= this.path.speed) {
this.nextFrame();
this.path.setDepth();
this.path.checkVisible();
_local2++;
}
} else {
this.nextFrame();
this.path.setDepth();
}
}
};
}
function move(x) {
mc._x = x;
}
function jump() {
var _local2 = mc.subM.subM;
ymoveTween.stop();
ymoveTween = new mx.transitions.Tween(_local2, "_y", mx.transitions.easing.Regular.easeOut, _local2._y, -100, yspeed);
}
function setSpeed(speed) {
this.speed = speed;
}
function startFrame(scale) {
var _local4 = mc._totalframes;
var _local3 = 1;
var _local2 = 1;
while (_local2 <= _local4) {
mc.nextFrame();
if (mc.subM._xscale >= scale) {
break;
}
_local3 = _local2;
_local2++;
}
mc.gotoAndStop(_local3 + 3);
}
function operationCollision() {
if (!crashTrig) {
crashTrig = true;
var _local2 = mc.subM.subM.subM;
if (type == "score") {
jump();
} else if (type == "obstacle") {
_local2.setMask(_local2.maskM);
_local2.gotoAndPlay("crashLoopL");
_local2.maskM.gotoAndPlay("crashLoopL");
jump();
}
}
}
function removeStart() {
if (!crashTrig) {
onRemove(this);
}
}
function remove() {
removeMc();
}
var linkageName = "itemAniM";
var arrangeDepth = 4;
var widthMax = 1000;
var yspeed = 10;
var speed = 1;
var crashTrig = false;
var pauseTrig = false;
}
Symbol 1300 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 1301 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 1302 MovieClip [__Packages.effect.RandomText] Frame 0
class effect.RandomText
{
var textfield, str, align, step, duration, type, len, arr, sec, countMax, randomInit, randomMargin, count, interval, onComplete;
function RandomText (textfield, str, align, step, duration, type) {
this.textfield = textfield;
this.str = str;
this.align = ((align == undefined) ? "left" : (align));
this.step = step;
this.duration = duration;
this.type = ((type == undefined) ? "All" : (type));
init();
setfield();
start();
}
function init() {
len = str.length;
arr = new Array();
arr = str.split("");
sec = Math.floor(duration / (len * step));
countMax = step * len;
if (type == "Number") {
randomInit = 48;
randomMargin = 10;
} else if (type == "Text") {
randomInit = 65;
randomMargin = 26;
} else if (type == "All") {
randomInit = 48;
randomMargin = 42;
}
}
function setfield() {
textfield.autoSize = align;
textfield.text = "";
}
function reset() {
count = 0;
setfield();
}
function start() {
clearInterval(interval);
reset();
interval = setInterval(this, "textAni", sec);
}
function end() {
clearInterval(interval);
textfield.text = str;
onComplete();
}
function textAni() {
if (count < countMax) {
count++;
var _local3 = Math.floor(count / step);
textfield.text = "";
var _local2 = 1;
while (_local2 <= len) {
if (_local2 <= _local3) {
textfield.text = textfield.text + arr[_local2 - 1];
} else {
textfield.text = textfield.text + String.fromCharCode(random(randomMargin) + randomInit);
}
_local2++;
}
if (count >= countMax) {
end();
}
} else {
end();
}
}
}
Symbol 30 MovieClip Frame 1
this._parent._parent._parent.onDropEnd();
Symbol 38 MovieClip Frame 1
this._visible = false;
Symbol 38 MovieClip Frame 21
this.gotoAndPlay("loopL");
Symbol 79 MovieClip Frame 7
this._parent._parent._parent.onDropEnd();
Symbol 79 MovieClip Frame 21
this.gotoAndPlay("loopL");
Symbol 112 MovieClip Frame 1
var path = this._parent._parent._parent;
this._visible = false;
Symbol 112 MovieClip Frame 21
if (!path.path.crashTrig) {
this.gotoAndPlay("loopL");
} else {
this.gotoAndPlay("crashLoopL");
}
Symbol 112 MovieClip Frame 35
this.gotoAndPlay("crashLoopL");
Symbol 181 MovieClip Frame 1
var path = this._parent._parent._parent;
Symbol 181 MovieClip Frame 7
path.onDropEnd();
Symbol 181 MovieClip Frame 21
if (!path.path.crashTrig) {
this.gotoAndPlay("loopL");
} else {
this.gotoAndPlay("crashLoopL");
}
Symbol 181 MovieClip Frame 35
this.gotoAndPlay("crashLoopL");
Symbol 202 MovieClip Frame 1
this._visible = false;
Symbol 202 MovieClip Frame 21
this.gotoAndPlay("loopL");
Symbol 215 MovieClip Frame 7
this._parent._parent._parent.onDropEnd();
Symbol 215 MovieClip Frame 21
this.gotoAndPlay("loopL");
Symbol 235 MovieClip Frame 1
this._visible = false;
Symbol 235 MovieClip Frame 21
this.gotoAndPlay("loopL");
Symbol 276 MovieClip Frame 7
this._parent._parent._parent.onDropEnd();
Symbol 276 MovieClip Frame 21
this.gotoAndPlay("loopL");
Symbol 295 MovieClip Frame 1
this._visible = false;
Symbol 295 MovieClip Frame 21
this.gotoAndPlay("loopL");
Symbol 336 MovieClip Frame 7
this._parent._parent._parent.onDropEnd();
Symbol 336 MovieClip Frame 21
this.gotoAndPlay("loopL");
Symbol 356 MovieClip Frame 1
this._visible = false;
Symbol 356 MovieClip Frame 21
this.gotoAndPlay("loopL");
Symbol 397 MovieClip Frame 7
this._parent._parent._parent.onDropEnd();
Symbol 397 MovieClip Frame 21
this.gotoAndPlay("loopL");
Symbol 400 MovieClip [itemAniM] Frame 70
onCollision();
Symbol 400 MovieClip [itemAniM] Frame 71
onCollision();
Symbol 400 MovieClip [itemAniM] Frame 72
onCollision();
Symbol 400 MovieClip [itemAniM] Frame 73
onCollision();
Symbol 400 MovieClip [itemAniM] Frame 74
onCollision();
Symbol 400 MovieClip [itemAniM] Frame 75
onCollision();
Symbol 400 MovieClip [itemAniM] Frame 76
onCollision();
Symbol 400 MovieClip [itemAniM] Frame 77
onCollision();
Symbol 400 MovieClip [itemAniM] Frame 78
onCollision();
Symbol 400 MovieClip [itemAniM] Frame 79
onCollision();
Symbol 400 MovieClip [itemAniM] Frame 80
onCollision();
Symbol 400 MovieClip [itemAniM] Frame 81
onCollision();
Symbol 400 MovieClip [itemAniM] Frame 82
onCollision();
Symbol 400 MovieClip [itemAniM] Frame 83
onCollision();
Symbol 400 MovieClip [itemAniM] Frame 84
onCollision();
Symbol 400 MovieClip [itemAniM] Frame 85
onCollision();
Symbol 400 MovieClip [itemAniM] Frame 90
onRemove();
stop();
Symbol 414 MovieClip Frame 1
if (this._parent.flipTrig) {
this.textM._xscale = -100;
}
Symbol 420 MovieClip Frame 1
if (this._parent.flipTrig) {
this.textM._xscale = -100;
}
Symbol 431 MovieClip Frame 1
if (this._parent.flipTrig) {
this.textM1._xscale = -100;
this.textM2._xscale = -100;
}
Symbol 435 MovieClip Frame 1
Symbol 447 MovieClip [roadAniM] Frame 10
onOtherMake();
Symbol 447 MovieClip [roadAniM] Frame 79
onCoverEnd();
Symbol 447 MovieClip [roadAniM] Frame 90
onRemove();
stop();
Symbol 610 MovieClip Frame 1
function init() {
this.onRollOver = function () {
this.open();
};
this.onRollOut = function () {
this.close();
};
this.gotoAndStop("offL");
}
function open() {
if (this._currentframe <= 20) {
this.gotoAndStop("onL");
}
this.onEnterFrame = function () {
this.nextFrame();
if (this._currentframe >= this._totalframes) {
this.onEnterFrame = null;
}
};
}
function close() {
this.onEnterFrame = function () {
this.prevFrame();
if (this._currentframe <= 20) {
this.gotoAndStop("offL");
this.onEnterFrame = null;
}
};
}
function enable(bool) {
this.enabled = bool;
}
var path = this._parent;
init();
Symbol 618 MovieClip Frame 1
function init() {
this.onRollOver = function () {
this.open();
};
this.onRollOut = function () {
this.close();
};
this.gotoAndStop("offL");
}
function open() {
if (this._currentframe <= 20) {
this.gotoAndStop("onL");
}
this.onEnterFrame = function () {
this.nextFrame();
if (this._currentframe >= this._totalframes) {
this.onEnterFrame = null;
}
};
}
function close() {
this.onEnterFrame = function () {
this.prevFrame();
if (this._currentframe <= 20) {
this.gotoAndStop("offL");
this.onEnterFrame = null;
}
};
}
function enable(bool) {
this.enabled = bool;
}
var path = this._parent;
init();
Symbol 619 MovieClip Frame 1
function selectType(type) {
this.type = type;
this._parent.pageType = type;
this.btnM_gameHelp.enabled = false;
this.btnM_gameStart.enabled = false;
this.gotoAndPlay("outL");
}
var type;
this._parent.gSound.easingStart("introBGM", 0, 100, 30);
Symbol 619 MovieClip Frame 126
stop();
this.btnM_gameHelp.onPress = function () {
this._parent._parent.gSound.start("btnPress");
this._parent.selectType("help");
};
this.btnM_gameStart.onPress = function () {
this._parent._parent.gSound.start("btnPress");
this._parent.selectType("ready");
};
Symbol 619 MovieClip Frame 154
stop();
this._parent.gotoAndStop(type + "L");
Symbol 660 MovieClip Frame 1
function init() {
this.onPress = function () {
this.path.eastEggTrig = !this.path.eastEggTrig;
};
}
var path = this._parent._parent;
init();
Symbol 661 MovieClip Frame 43
stop();
this.btnM_gameStart.onPress = function () {
this._parent._parent.gSound.start("btnPress");
this._parent.gotoAndPlay("outL");
this.enabled = false;
};
Symbol 661 MovieClip Frame 69
stop();
this._parent.gotoAndStop("readyL");
Symbol 794 MovieClip Frame 1
if (this._parent.pageType == "help") {
this.gotoAndPlay("jumpL");
}
Symbol 794 MovieClip Frame 39
this._parent.gSound.easingEnd("introBGM", 100, 0, 45);
Symbol 794 MovieClip Frame 94
stop();
this._parent.gotoAndStop("gameL");
Symbol 1053 MovieClip Frame 30
this.gotoAndPlay(1);
Symbol 1160 MovieClip Frame 1
this.gotoAndStop(("s" + this._parent.level) + "L");
Symbol 1176 MovieClip Frame 1
var path = this._parent.path;
var level = path.level;
Symbol 1176 MovieClip Frame 162
this._parent.close();
Symbol 1181 MovieClip Frame 1
function wait() {
clearInterval(interval);
interval = setInterval(this, "close", sec);
}
function close() {
this.onEnterFrame = function () {
this.prevFrame();
if (this._currentframe <= 1) {
this._parent.close();
this.onEnterFrame = null;
}
};
}
var interval;
var sec = 3000;
Symbol 1181 MovieClip Frame 20
stop();
wait();
Symbol 1184 MovieClip Frame 1
function wait() {
clearInterval(interval);
interval = setInterval(this, "close", sec);
}
function close() {
this.onEnterFrame = function () {
this.prevFrame();
if (this._currentframe <= 1) {
this._parent.close();
this.onEnterFrame = null;
}
};
}
var interval;
var sec = 3000;
Symbol 1184 MovieClip Frame 20
stop();
wait();
Symbol 1185 MovieClip Frame 1
function init() {
this.gotoAndStop("offL");
}
function open(type) {
this.type = type;
this.gotoAndStop(type + "L");
}
function close() {
onCloseEnd(type);
this.gotoAndStop("offL");
}
var path = this._parent;
var type;
var onOpenEnd;
var onCloseEnd;
init();
Symbol 1207 MovieClip Frame 1
this.gotoAndStop("s1L");
Symbol 1213 MovieClip Frame 1
this.gotoAndStop("s1L");
Symbol 1226 MovieClip Frame 1
function dampON() {
var owner = this;
dampTween.stop();
dampTween = new mx.transitions.Tween(this, "_rotation", mx.transitions.easing.Bounce.easeOut, this._rotation + 30, this._rotation, dampSpeed);
dampTween.onMotionFinished = function () {
owner.dampON();
};
}
function dampOFF() {
dampTween.stop();
}
var dampTween;
var dampSpeed = 3;
Symbol 1230 MovieClip Frame 1
function dampON() {
var owner = this;
dampTween.stop();
dampTween = new mx.transitions.Tween(this, "_rotation", mx.transitions.easing.Bounce.easeOut, this._rotation + 5, this._rotation, dampSpeed);
dampTween.onMotionFinished = function () {
owner.dampON();
};
}
function dampOFF() {
dampTween.stop();
}
var dampTween;
var dampSpeed = 3;
Symbol 1239 MovieClip Frame 1
function init() {
this.gotoAndStop("offL");
}
function open() {
this.gotoAndStop("onL");
this.onEnterFrame = function () {
this.nextFrame();
if (this._currentframe >= this._totalframes) {
this.gotoAndStop("offL");
this.onEnterFrame = null;
}
};
}
init();
Symbol 1249 MovieClip Frame 1
function init() {
this.gotoAndStop("onL");
}
function open() {
if (this._currentframe <= 20) {
this.gotoAndStop("onL");
}
this.onEnterFrame = function () {
this.nextFrame();
if (this._currentframe >= this._totalframes) {
this.onEnd();
this.gotoAndStop("offL");
this.onEnterFrame = null;
}
};
}
var onEnd;
init();
Symbol 1253 MovieClip Frame 1
function init() {
open();
}
function open() {
if (this._currentframe <= 20) {
this.gotoAndStop("onL");
}
this.onEnterFrame = function () {
this.nextFrame();
if (this._currentframe >= this._totalframes) {
this.onOpenEnd();
this.gotoAndStop("offL");
this.onEnterFrame = null;
}
};
}
function close() {
this.gotoAndStop(this._totalframes);
this.onEnterFrame = function () {
this.prevFrame();
this.prevFrame();
if (this._currentframe <= 20) {
this.onCloseEnd();
this.gotoAndStop("offL");
this.onEnterFrame = null;
}
};
}
var onOpenEnd;
var onCloseEnd;
init();
Symbol 1260 MovieClip Frame 1
function init() {
this.onRollOver = function () {
this.open();
};
this.onRollOut = function () {
this.close();
};
this.gotoAndStop("offL");
}
function open() {
if (this._currentframe <= 20) {
this.gotoAndStop("onL");
}
this.onEnterFrame = function () {
this.nextFrame();
if (this._currentframe >= this._totalframes) {
this.onEnterFrame = null;
}
};
}
function close() {
this.onEnterFrame = function () {
this.prevFrame();
if (this._currentframe <= 20) {
this.gotoAndStop("offL");
this.onEnterFrame = null;
}
};
}
function enable(bool) {
this.enabled = bool;
}
var path = this._parent;
init();
Symbol 1284 MovieClip Frame 1
function init() {
this.whiteEffectM.onOpenEnd = mx.utils.Delegate.create(this, btnEnable);
path.gSound.easingStart("resultBGM", 0, 60, 30);
if (clearTrig) {
this.gotoAndStop("clearL");
} else {
this.gotoAndStop("failL");
}
this.whiteEffectM.open();
}
function btnEnable() {
this.btnM_submit.enabled = true;
}
function gameNext() {
path.score = totalScore;
path.gotoAndStop("gameL");
}
function gameReplay() {
path.gameReset();
path.gotoAndStop("introL");
}
var path = this._parent;
var level = path.level;
var levelMax = path.levelMax;
var score = path.score;
var dataObj = path.scoreDataObj;
var lifeScore = dataObj.life;
var secScore = dataObj.sec;
var totalScore = ((score + lifeScore) + secScore);
var clearTrig = path.gameClearTrig;
init();
Symbol 1284 MovieClip Frame 10
function checkEnd() {
count++;
if (count >= countMax) {
this.btnM_submit._visible = true;
}
}
var count = 0;
var countMax = 3;
var lifeRT = (new effect.RandomText(lifeWin, String(lifeScore), "left", 5, 300, "Number"));
var secRT = (new effect.RandomText(secWin, String(secScore), "left", 5, 300, "Number"));
var totalRT = (new effect.RandomText(totalWin, String(totalScore), "left", 5, 300, "Number"));
lifeRT.onComplete = mx.utils.Delegate.create(this, checkEnd);
secRT.onComplete = mx.utils.Delegate.create(this, checkEnd);
totalRT.onComplete = mx.utils.Delegate.create(this, checkEnd);
this.whiteEffectM.onCloseEnd = mx.utils.Delegate.create(this, gameNext);
this.btnM_submit._visible = false;
this.btnM_submit.enabled = false;
this.btnM_submit.onPress = function () {
this._parent._parent.gSound.start("btnPress");
if (this._parent.level < this._parent.levelMax) {
this._parent.path.gSound.easingEnd("resultBGM", 60, 0, 30);
this._parent.whiteEffectM.close();
} else {
this._parent.path.gSound.stop("resultBGM");
this._parent.path.gSound.easingStart("completeBGM", 0, 100, 30);
this._parent.whiteEffectM.open();
this._parent.gotoAndStop("completeL");
}
this.enabled = false;
};
Symbol 1284 MovieClip Frame 20
this.lifeWin.text = lifeScore;
this.secWin.text = secScore;
this.totalWin.text = totalScore;
this.btnM_submit.enabled = false;
this.btnM_submit.onPress = function () {
this._parent._parent.gSound.start("btnPress");
this._parent.path.gSound.easingEnd("resultBGM", 60, 0, 30);
this._parent.gameReplay();
this.enabled = false;
};
Symbol 1284 MovieClip Frame 30
function checkEnd() {
count++;
if (count >= countMax) {
this.btnM_submit._visible = true;
}
}
var count = 0;
var countMax = 1;
var totalRT = (new effect.RandomText(totalWin, String(totalScore), "left", 5, 300, "Number"));
totalRT.onComplete = mx.utils.Delegate.create(this, checkEnd);
this.btnM_submit._visible = false;
this.btnM_submit.enabled = false;
this.btnM_submit.onPress = function () {
this._parent.path.gSound.start("btnPress");
this._parent.path.gSound.easingEnd("completeBGM", 100, 0, 30);
this._parent.gameReplay();
this.enabled = false;
};
this.btnM_submit.init();