Frame 1
mochi.as2.MochiServices.connect("29ae2a66c1bc252a");
Instance of Symbol 28 MovieClip in Frame 1
onClipEvent (load) {
var loadPercent = 0;
var timer = 100;
countDown = false;
_root.stop();
loaderMask.gotoAndStop(1);
}
onClipEvent (enterFrame) {
loadPercent = ((loadPercent >= 0) ? (Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100)) : -1);
if (loaderMask._currentFrame < loadPercent) {
loaderMask.nextFrame();
}
if (loadPercent >= 100) {
countDown = true;
loaderMask.gotoAndStop(loaderMask._totalFrames);
loadPercent = -1;
}
if (countDown) {
timer--;
}
if (timer < 0) {
_root.play();
}
}
Frame 2
mochi.as2.MochiAd.showInterLevelAd({id:"29ae2a66c1bc252a", res:"550x400"});
Instance of Symbol 33 MovieClip "backgroundAnim" in Frame 2
onClipEvent (load) {
thisOn = true;
}
onClipEvent (enterFrame) {
if (!thisOn) {
stop();
} else {
play();
}
}
Frame 3
masterScore = 0;
curLevel = 1;
function logoBounce() {
_root.flashScreen.play();
var _local2 = new mx.transitions.Tween(mainLogo, "_xscale", mx.transitions.easing.Elastic.easeOut, 230, 170, 2, true);
var _local3 = new mx.transitions.Tween(mainLogo, "_yscale", mx.transitions.easing.Elastic.easeOut, 230, 170, 2, true);
}
stop();
Instance of Symbol 82 MovieClip "startShow" in Frame 3
onClipEvent (load) {
this._visible = false;
debug = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(65) && (debug == 1)) {
_root.gotoAndStop("keyselect");
debug = 0;
}
}
on (release) {
_root.gotoAndStop("keyselect");
}
Instance of Symbol 114 MovieClip "cam" in Frame 3
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root._currentframe == 8) {
xdist = Math.round(this._x - _root.player._x);
ydist = Math.round(this._y - _root.player._y);
distancefromthis = Math.round(Math.sqrt((xdist * xdist) + (ydist * ydist)));
this._xscale = 100 + (distancefromthis / 7);
this._yscale = 100 + (distancefromthis / 7);
} else {
this._xscale = 100;
this._yscale = 100;
this._x = 275;
this._y = 200;
}
}
Frame 4
control = 0;
playerface = 0;
stop();
Frame 5
stop();
Frame 6
gameOverS = new Sound(this);
gameOverS.attachSound("gameover.mp3");
gameOverS.start(29, 99);
stop();
score_txt.text = _root.masterScore;
Instance of Symbol 147 MovieClip in Frame 6
onClipEvent (load) {
var xPlayerScale2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 150, 110, 1.2, true));
var yPlayerScale2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 150, 110, 1.2, true));
}
Instance of Symbol 159 MovieClip in Frame 6
onClipEvent (load) {
}
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
on (rollOver) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
}
on (rollOut) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
}
Instance of Symbol 161 MovieClip in Frame 6
onClipEvent (load) {
}
on (release) {
var o = {n:[7, 8, 0, 8, 14, 12, 3, 14, 1, 5, 11, 3, 2, 15, 9, 9], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({onClose:function () {
stopAllSounds();
_root.gotoAndStop("menu");
}, boardID:boardID, score:_root.masterScore});
}
on (rollOver) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
}
on (rollOut) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
}
Instance of Symbol 163 MovieClip in Frame 6
onClipEvent (load) {
}
on (release) {
getURL ("http://www.2play.com", "_blank");
}
on (rollOver) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
}
on (rollOut) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
}
Frame 7
graphicHolder._xscale = 100;
graphicHolder._yscale = 100;
Instance of Symbol 168 MovieClip "graphicHolder" in Frame 7
onClipEvent (load) {
this._xscale = _root.cam._xscale;
this._yscale = _root.cam._yscale;
}
onClipEvent (enterFrame) {
this._xscale = _root.cam._xscale;
this._yscale = _root.cam._yscale;
}
Instance of Symbol 169 MovieClip "maskMC" in Frame 7
onClipEvent (load) {
this._xscale = _root.cam._xscale;
this._yscale = _root.cam._yscale;
}
onClipEvent (enterFrame) {
this._xscale = _root.cam._xscale;
this._yscale = _root.cam._yscale;
}
Frame 8
function readyLevel() {
_root.player._visible = true;
_root.levelHolder._visible = true;
_root.levelHolder._alpha = 100;
_root.levelHolder._visible = true;
var _local4 = new mx.transitions.Tween(player, "_alpha", mx.transitions.easing.Regular.easeIn, 0, 100, 0.4, true);
var _local3 = new mx.transitions.Tween(levelHolder, "_alpha", mx.transitions.easing.Regular.easeIn, 0, 100, 0.4, true);
var _local2 = new mx.transitions.Tween(player, "_xscale", mx.transitions.easing.Regular.easeIn, globalPlayerBounceHeight + 100, 100, globalTweenSpeed, true);
var _local7 = new mx.transitions.Tween(player, "_yscale", mx.transitions.easing.Regular.easeIn, globalPlayerBounceHeight + 100, 100, globalTweenSpeed, true);
var _local5 = new mx.transitions.Tween(_root.levelHolder, "_xscale", mx.transitions.easing.Regular.easeIn, 0, 100, globalTweenSpeed, true);
var _local6 = new mx.transitions.Tween(_root.levelHolder, "_yscale", mx.transitions.easing.Regular.easeIn, 0, 100, globalTweenSpeed, true);
_local2.onMotionFinished = function () {
_root.player.fall = false;
var _local2 = new mx.transitions.Tween(player, "_xscale", mx.transitions.easing.Regular.easeOut, 100, globalPlayerBounceHeight, globalTweenSpeed, true);
var _local5 = new mx.transitions.Tween(player, "_yscale", mx.transitions.easing.Regular.easeOut, 100, globalPlayerBounceHeight, globalTweenSpeed, true);
var _local3 = new mx.transitions.Tween(_root.levelHolder, "_xscale", mx.transitions.easing.Regular.easeOut, 100, globalBounceHeight, globalTweenSpeed, true);
var _local4 = new mx.transitions.Tween(_root.levelHolder, "_yscale", mx.transitions.easing.Regular.easeOut, 100, globalBounceHeight, globalTweenSpeed, true);
_local2.onMotionFinished = function () {
_root.player.safe = false;
_root.resetVars();
_root.levelBounce();
_root.playerBounce();
};
};
}
function resetVars() {
globalTileMoveSpeed = DEFAULTglobalTileMoveSpeed;
globalTweenSpeed = DEFAULTglobalTweenSpeed;
globalBounceHeight = DEFAULTglobalBounceHeight;
globalPlayerBounceHeight = DEFAULTglobalPlayerBounceHeight;
globalPlayerSpeed = DEFAULTglobalPlayerSpeed;
globalTileAlphaOut = DEFAULTglobalTileAlphaOut;
globalXscaleCheck = DEFAULTglobalXscaleCheck;
}
function levelBounce() {
var _local3 = new mx.transitions.Tween(levelHolder, "_xscale", mx.transitions.easing.Regular.easeIn, globalBounceHeight, 100, globalTweenSpeed, true);
var _local2 = new mx.transitions.Tween(levelHolder, "_yscale", mx.transitions.easing.Regular.easeIn, globalBounceHeight, 100, globalTweenSpeed, true);
_local3.onMotionFinished = function () {
if (player.safe == true) {
var _local3 = new mx.transitions.Tween(levelHolder, "_xscale", mx.transitions.easing.Regular.easeOut, 100, globalBounceHeight, globalTweenSpeed, true);
var _local2 = new mx.transitions.Tween(levelHolder, "_yscale", mx.transitions.easing.Regular.easeOut, 100, globalBounceHeight, globalTweenSpeed, true);
_local3.onMotionFinished = function () {
levelBounce();
};
} else {
_root.levelHolder.swapDepths(_root.player);
_root.maskMC.swapDepths(_root.levelHolder);
var _local4 = new mx.transitions.Tween(levelHolder, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, globalFallSpeed, true);
var _local3 = new mx.transitions.Tween(levelHolder, "_xscale", mx.transitions.easing.Regular.easeOut, 100, 160, globalFallSpeed, true);
var _local2 = new mx.transitions.Tween(levelHolder, "_yscale", mx.transitions.easing.Regular.easeOut, 100, 160, globalFallSpeed, true);
}
};
}
function playerBounce() {
var _local4 = new mx.transitions.Tween(player, "_xscale", mx.transitions.easing.Regular.easeIn, globalPlayerBounceHeight, 100, globalTweenSpeed, true);
var _local3 = new mx.transitions.Tween(player, "_yscale", mx.transitions.easing.Regular.easeIn, globalPlayerBounceHeight, 100, globalTweenSpeed, true);
_local4.onMotionFinished = function () {
if (player.safe == true) {
var _local4 = new mx.transitions.Tween(player, "_xscale", mx.transitions.easing.Regular.easeOut, 100, globalPlayerBounceHeight, globalTweenSpeed, true);
var _local3 = new mx.transitions.Tween(player, "_yscale", mx.transitions.easing.Regular.easeOut, 100, globalPlayerBounceHeight, globalTweenSpeed, true);
_local4.onMotionFinished = function () {
player.safe = false;
playerBounce();
};
} else {
_root.player.fall = true;
var _local4 = new mx.transitions.Tween(player, "_xscale", mx.transitions.easing.Regular.easeOut, 100, 0, globalFallSpeed, true);
var _local3 = new mx.transitions.Tween(player, "_yscale", mx.transitions.easing.Regular.easeOut, 100, 0, globalFallSpeed, true);
var _local2 = new mx.transitions.Tween(player, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, globalFallSpeed, true);
_local2.onMotionFinished = function () {
if (_root.toClear == 0) {
masterScore = masterScore + score;
finishLevel();
} else if (gameactive) {
_root.gotoAndPlay("reset");
}
};
}
};
}
function finishLevel() {
_root.clearText.score_add_txt.text = "+" + score;
_root.clearText._visible = true;
_root.clearText.animateOut();
}
stop();
newColor = "0x" + new Number(Math.round(Math.random() * 1000000));
oldColor = 16777215 /* 0xFFFFFF */;
toClear = 0;
gameactive = true;
globalStarTileScore = 500;
globalNumberTileScore = 100;
globalPowerupTileScore = 300;
i = 0;
score = 0;
globalTweenSpeed = 0.8;
globalBounceHeight = 70;
globalPlayerBounceHeight = 150;
globalPlayerSpeed = 0.5;
globalBallDiameter = 40;
globalFallSpeed = 1;
globalXscaleCheck = 110;
globalStartTileTimer = 10000;
globalTileAlphaOut = 7;
globalNumberTileHolder = [];
Tilecount = 1;
globalTileMoveSpeed = 3;
globalPowerupTicker = -1;
DEFAULTglobalTileMoveSpeed = globalTileMoveSpeed;
DEFAULTglobalTweenSpeed = globalTweenSpeed;
DEFAULTglobalBounceHeight = globalBounceHeight;
DEFAULTglobalPlayerBounceHeight = globalPlayerBounceHeight;
DEFAULTglobalPlayerSpeed = globalPlayerSpeed;
DEFAULTglobalTileAlphaOut = globalTileAlphaOut;
DEFAULTglobalXscaleCheck = globalXscaleCheck;
var tween_rgb = (new mx.transitions.TweenRGB(maskMC, "", mx.transitions.easing.Regular.easeOut, oldColor, newColor, 1, true));
Instance of Symbol 223 MovieClip "levelHolder" in Frame 8
onClipEvent (load) {
this.gotoAndStop(_root.curLevel);
this._visible = false;
}
Instance of Symbol 224 MovieClip "playerHit" in Frame 8
onClipEvent (load) {
this._x = _root.player._x;
this._y = _root.player._y;
}
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
}
Instance of Symbol 234 MovieClip "player" in Frame 8
onClipEvent (load) {
var myPoint = {x:_root.levelHolder.startTile._x, y:_root.levelHolder.startTile._y};
_root.levelHolder.localToGlobal(myPoint);
this._x = myPoint.x;
this._y = myPoint.y;
xspeed = 0;
yspeed = 0;
safe = false;
fall = true;
this._visible = false;
}
onClipEvent (enterFrame) {
xspeed = xspeed * 0.9;
yspeed = yspeed * 0.9;
_x = (_x + xspeed);
_y = (_y + yspeed);
if (!fall) {
if (_root.control == 2) {
if (Key.isDown(37)) {
xspeed = xspeed - _root.globalPlayerSpeed;
}
if (Key.isDown(39)) {
xspeed = xspeed + _root.globalPlayerSpeed;
}
if (Key.isDown(38)) {
yspeed = yspeed - _root.globalPlayerSpeed;
}
if (Key.isDown(40)) {
yspeed = yspeed + _root.globalPlayerSpeed;
}
}
if (_root.control == 1) {
if (Key.isDown(65)) {
xspeed = xspeed - _root.globalPlayerSpeed;
}
if (Key.isDown(68)) {
xspeed = xspeed + _root.globalPlayerSpeed;
}
if (Key.isDown(87)) {
yspeed = yspeed - _root.globalPlayerSpeed;
}
if (Key.isDown(83)) {
yspeed = yspeed + _root.globalPlayerSpeed;
}
}
}
}
Instance of Symbol 265 MovieClip "levelText" in Frame 8
onClipEvent (load) {
this.gotoAndStop(_root.curLevel);
var alphaLevelText = (new mx.transitions.Tween(_root.levelText, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 0.8, true));
var xLevelText = (new mx.transitions.Tween(_root.levelText, "_xscale", mx.transitions.easing.Strong.easeOut, 200, 100, 0.8, true));
var yLevelText = (new mx.transitions.Tween(_root.levelText, "_yscale", mx.transitions.easing.Strong.easeOut, 200, 100, 0.8, true));
xLevelText.onMotionFinished = function () {
var _local3 = new mx.transitions.Tween(_root.levelText, "_alpha", mx.transitions.easing.Strong.easeIn, 100, 0, 0.8, true);
var _local4 = new mx.transitions.Tween(_root.levelText, "_xscale", mx.transitions.easing.Strong.easeIn, 100, 0, 0.8, true);
var _local2 = new mx.transitions.Tween(_root.levelText, "_yscale", mx.transitions.easing.Strong.easeIn, 100, 0, 0.8, true);
_local2.onMotionFinished = function () {
_root.readyLevel();
};
};
}
Instance of Symbol 269 MovieClip "clearText" in Frame 8
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
function animateOut() {
var _local3 = new mx.transitions.Tween(_root.clearText, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 0.8, true);
var _local4 = new mx.transitions.Tween(_root.clearText, "_xscale", mx.transitions.easing.Strong.easeOut, 200, 100, 0.8, true);
var _local2 = new mx.transitions.Tween(_root.clearText, "_yscale", mx.transitions.easing.Strong.easeOut, 200, 100, 0.8, true);
_local4.onMotionFinished = function () {
var _local3 = new mx.transitions.Tween(_root.clearText, "_alpha", mx.transitions.easing.Strong.easeIn, 100, 0, 0.8, true);
var _local4 = new mx.transitions.Tween(_root.clearText, "_xscale", mx.transitions.easing.Strong.easeIn, 100, 0, 0.8, true);
var _local2 = new mx.transitions.Tween(_root.clearText, "_yscale", mx.transitions.easing.Strong.easeIn, 100, 0, 0.8, true);
_local2.onMotionFinished = function () {
if (_root.curLevel == 30) {
_root.gotoAndPlay("gameover");
} else {
_root.curLevel = _root.curLevel + 1;
_root.gotoAndPlay("reset");
}
};
};
}
}
Instance of Symbol 7 MovieClip in Symbol 16 MovieClip Frame 1
onClipEvent (load) {
var letInX = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 75, 52, 1.2, true));
var letInY = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 75, 52, 1.2, true));
}
Instance of Symbol 9 MovieClip in Symbol 16 MovieClip Frame 3
onClipEvent (load) {
var letInX = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 125, 100, 1.2, true));
var letInY = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 125, 100, 1.2, true));
}
Instance of Symbol 11 MovieClip in Symbol 16 MovieClip Frame 5
onClipEvent (load) {
var letInX = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 125, 100, 1.2, true));
var letInY = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 125, 100, 1.2, true));
}
Instance of Symbol 13 MovieClip in Symbol 16 MovieClip Frame 7
onClipEvent (load) {
var letInX = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 125, 100, 1.2, true));
var letInY = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 125, 100, 1.2, true));
}
Instance of Symbol 15 MovieClip in Symbol 16 MovieClip Frame 9
onClipEvent (load) {
var letInX = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 125, 100, 1.2, true));
var letInY = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 125, 100, 1.2, true));
}
Symbol 16 MovieClip Frame 34
stop();
Symbol 24 MovieClip Frame 100
stop();
Instance of Symbol 26 MovieClip in Symbol 28 MovieClip Frame 1
onClipEvent (enterFrame) {
this.useHandCursor = false;
}
on (release) {
getURL ("http://www.2Play.com", "_blank");
}
Symbol 28 MovieClip Frame 27
stop();
Symbol 270 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 271 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.8 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function updateCopy(args) {
send("coins_updateCopy", args, null, null);
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 272 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 273 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 274 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function requestLogin() {
mochi.as2.MochiServices.send("coins_requestLogin");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 275 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 276 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 277 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 278 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 279 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local23 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local22 = options.color;
delete options.color;
var _local20 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local20);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local24, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local19;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local2}, clip._mochiad._containerLCName);
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local10 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local10);
var clip = options.clip;
var _local9 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local11 = _local5[0];
var _local8 = _local5[1];
_local3._x = _local11 * 0.5;
_local3._y = _local8 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local9;
chk.started = getTimer();
chk.showing = false;
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local21 = false;
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local12 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local12);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local6 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local6._mochiad_loaded) {
return(null);
}
var _local11 = options.depth;
delete options.depth;
var mc = _local6.createEmptyMovieClip("_mochiad", _local11);
var _local10 = _getRes(options);
options.res = (_local10[0] + "x") + _local10[1];
options.server = options.server + options.id;
delete options.id;
_local6._mochiad_loaded = true;
if (_local6._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local9 = _local4.server;
delete _local4.server;
var _local13 = _allowDomains(_local9);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = mc;
_local5.name = _local8;
_local5.hostname = _local13;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
mc.lc = _local5;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
_local4.lc = _local8;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local9 + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 280 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 281 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 282 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 283 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 284 MovieClip [__Packages.mx.transitions.TweenRGB] Frame 0
class mx.transitions.TweenRGB extends mx.transitions.Tween
{
var obj, prop, func, __set__duration, useSeconds, _listeners, addListener, start, prevPos, _pos, broadcastMessage, _time, _duration, changeRed, beginRed, changeGreen, beginGreen, changeBlue, beginBlue, __begin, finishRGB;
function TweenRGB (obj, prop, func, begin, finish, duration, useSeconds) {
super();
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = (begin);
if (func) {
this.func = func;
}
this.finish = (finish);
position = (begin);
__set__duration(duration);
this.useSeconds = useSeconds;
_listeners = [];
addListener(this);
start();
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(rgb) {
prevPos = _pos;
_pos = rgb;
if (typeof(obj) == "movieclip") {
var _local2 = obj.transform.colorTransform;
_local2.rgb = rgb;
obj.transform.colorTransform = _local2;
} else {
obj[prop] = rgb;
}
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
var _local4 = this["change" + changeComponent];
var _local2 = func(t, this["begin" + changeComponent], _local4, _duration);
var _local3 = ((_local4 != 0) ? ((_local2 - this["begin" + changeComponent]) / _local4) : 0);
var _local7 = ((changeComponent == "Red") ? (_local2) : (beginRed + (changeRed * _local3)));
var _local8 = ((changeComponent == "Green") ? (_local2) : (beginGreen + (changeGreen * _local3)));
var _local6 = ((changeComponent == "Blue") ? (_local2) : (beginBlue + (changeBlue * _local3)));
return(((_local7 << 16) | (_local8 << 8)) | _local6);
}
function set begin(b) {
__begin = b;
beginRed = b >> 16;
beginGreen = (b >> 8) & 255;
beginBlue = b & 255;
changeComponent = "Red";
//return(begin);
}
function get begin() {
return(__begin);
}
function set finish(f) {
finishRGB = f;
changeRed = (f >> 16) - beginRed;
changeGreen = ((f >> 8) & 255) - beginGreen;
changeBlue = (f & 255) - beginBlue;
changeComponent = "Red";
if (Math.abs(changeGreen) > Math.abs(changeRed)) {
changeComponent = "Green";
}
if (Math.abs(changeBlue) > Math.abs(this["change" + changeComponent])) {
changeComponent = "Blue";
}
//return(finish);
}
function get finish() {
return(finishRGB);
}
function toString() {
return("[TweenRGB]");
}
var changeComponent = "Red";
}
Instance of Symbol 42 MovieClip in Symbol 44 MovieClip Frame 1
onClipEvent (load) {
}
on (rollOver) {
var xGro = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 110, 1.3, true));
var yGro = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 110, 1.3, true));
}
on (rollOut) {
var xGro = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 110, 100, 1.3, true));
var yGro = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 110, 100, 1.3, true));
}
on (release) {
getURL ("http://www.2play.com", "_blank");
}
Symbol 68 MovieClip Frame 1
stop();
Instance of Symbol 56 MovieClip in Symbol 71 MovieClip Frame 5
onClipEvent (load) {
var xShrink = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 110, 100, 0.5, true));
var yShrink = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 110, 100, 0.5, true));
}
Instance of Symbol 61 MovieClip in Symbol 71 MovieClip Frame 9
onClipEvent (load) {
var xShrink = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 110, 100, 0.5, true));
var yShrink = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 110, 100, 0.5, true));
}
Instance of Symbol 64 MovieClip in Symbol 71 MovieClip Frame 14
onClipEvent (load) {
var xShrink = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 110, 100, 0.5, true));
var yShrink = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 110, 100, 0.5, true));
}
Symbol 71 MovieClip Frame 19
stop();
_root.backgroundAnim.thisOn = true;
_root.logoBounce();
Instance of Symbol 69 MovieClip in Symbol 71 MovieClip Frame 19
onClipEvent (load) {
var xShrink = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 110, 100, 0.5, true));
var yShrink = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 110, 100, 0.5, true));
}
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 7
_root.startShow._visible = true;
var xShrink2 = (new mx.transitions.Tween(_root.startShow, "_xscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.5, true));
var yShrink2 = (new mx.transitions.Tween(_root.startShow, "_yscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.5, true));
Symbol 85 MovieClip Frame 10
stop();
Symbol 92 Button
on (release) {
gotoAndPlay (2);
}
on (release) {
_root.soundstatus = "off";
}
on (release) {
_root.d01.gotoAndStop(1);
_root.d02.gotoAndStop(1);
}
Symbol 95 Button
on (release) {
gotoAndPlay (1);
}
on (release) {
_root.soundstatus = "on";
}
on (release) {
_root.d01.gotoAndPlay(1);
_root.d02.gotoAndPlay(1);
}
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 2
stop();
Symbol 102 MovieClip Frame 17
stop();
Symbol 103 MovieClip Frame 12
stop();
Symbol 106 MovieClip Frame 13
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
stop();
Instance of Symbol 112 MovieClip in Symbol 113 MovieClip Frame 1
onClipEvent (load) {
_root.soundstatus = "on";
_root.mySound = new Sound(_level0);
_root.mySound2 = new Sound(_level1);
_root.mySound3 = new Sound(_level2);
_root.mySound4 = new Sound(_level3);
_root.mySound5 = new Sound(_level4);
maxvolume = 100;
minvolume = 0;
}
onClipEvent (enterFrame) {
if (_root.soundstatus == "on") {
step = 5;
}
if (_root.soundstatus == "off") {
step = -5;
}
maxvolume = maxvolume + step;
if (maxvolume > 100) {
maxvolume = 100;
}
if (maxvolume < 0) {
maxvolume = 0;
}
_root.mySound.setVolume(maxvolume);
_root.mySound2.setVolume(maxvolume);
_root.mySound3.setVolume(maxvolume);
_root.mySound4.setVolume(maxvolume);
_root.mySound5.setVolume(maxvolume);
}
Symbol 114 MovieClip Frame 1
var myTrans = (new flash.geom.Transform(this));
var camera = (new flash.geom.Transform(this._parent));
var w = Stage.width;
var h = Stage.height;
this.onEnterFrame = function () {
_x = _root.guy._x;
_y = _root.guy._y;
var _local2 = myTrans.matrix;
camera.colorTransform = myTrans.colorTransform;
_local2.invert();
_local2.translate(w * 0.5, h * 0.5);
camera.matrix = _local2;
};
Instance of Symbol 88 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
}
on (release) {
stopAllSounds();
_root.gameactive = false;
_root.gotoAndStop("gameover");
}
on (rollOver) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
}
on (rollOut) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
}
onClipEvent (enterFrame) {
if (_root._currentframe != 8) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 113 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 121 MovieClip Frame 5
stop();
Instance of Symbol 116 MovieClip in Symbol 121 MovieClip Frame 5
onClipEvent (load) {
}
on (release) {
_root.control = 2;
_root.gotoAndPlay("playerselect");
}
on (rollOver) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
}
on (rollOut) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
}
Instance of Symbol 118 MovieClip in Symbol 121 MovieClip Frame 5
onClipEvent (load) {
}
on (release) {
_root.control = 1;
_root.gotoAndPlay("playerselect");
}
on (rollOver) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
}
on (rollOut) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
}
Instance of Symbol 120 MovieClip "selectText" in Symbol 121 MovieClip Frame 5
onClipEvent (load) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Strong.easeOut, 120, 100, 1, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Strong.easeOut, 120, 100, 1, true));
}
Symbol 123 MovieClip Frame 10
stop();
Symbol 142 MovieClip Frame 10
stop();
Instance of Symbol 127 MovieClip in Symbol 142 MovieClip Frame 10
on (release) {
stopAllSounds();
_root.playerface = 2;
_root.gotoAndPlay("reset");
}
onClipEvent (load) {
}
on (rollOver) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
}
on (rollOut) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
}
Instance of Symbol 129 MovieClip in Symbol 142 MovieClip Frame 10
on (release) {
stopAllSounds();
_root.playerface = 1;
_root.gotoAndPlay("reset");
}
onClipEvent (load) {
}
on (rollOver) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
}
on (rollOut) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
}
Instance of Symbol 131 MovieClip in Symbol 142 MovieClip Frame 10
on (release) {
stopAllSounds();
_root.playerface = 3;
_root.gotoAndPlay("reset");
}
onClipEvent (load) {
}
on (rollOver) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
}
on (rollOut) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
}
Instance of Symbol 133 MovieClip in Symbol 142 MovieClip Frame 10
on (release) {
stopAllSounds();
_root.playerface = 4;
_root.gotoAndPlay("reset");
}
onClipEvent (load) {
}
on (rollOver) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
}
on (rollOut) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
}
Instance of Symbol 135 MovieClip in Symbol 142 MovieClip Frame 10
on (release) {
stopAllSounds();
_root.playerface = 5;
_root.gotoAndPlay("reset");
}
onClipEvent (load) {
}
on (rollOver) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
}
on (rollOut) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
}
Instance of Symbol 137 MovieClip in Symbol 142 MovieClip Frame 10
on (release) {
stopAllSounds();
_root.playerface = 6;
_root.gotoAndPlay("reset");
}
onClipEvent (load) {
}
on (rollOver) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
}
on (rollOut) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
}
Instance of Symbol 139 MovieClip in Symbol 142 MovieClip Frame 10
on (release) {
stopAllSounds();
_root.playerface = 7;
_root.gotoAndPlay("reset");
}
onClipEvent (load) {
}
on (rollOver) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 115, 0.8, true));
}
on (rollOut) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 115, 100, 0.8, true));
}
Instance of Symbol 141 MovieClip "selectText" in Symbol 142 MovieClip Frame 10
onClipEvent (load) {
var xShrink2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.5, true));
var yShrink2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.5, true));
}
Symbol 144 MovieClip Frame 10
stop();
Symbol 172 MovieClip Frame 1
timer = _root.globalStartTileTimer;
debug = 0;
stop();
onEnterFrame = function () {
timer--;
if (timer == 0) {
this.play();
}
if ((((_root.player._xscale <= _root.globalXscaleCheck) && (debug == 0)) && (this.hitTest(_root.playerHit))) && (_root.player.fall == false)) {
if (_root.globalPowerupTicker > -1) {
_root.globalPowerupTicker = _root.globalPowerupTicker - 1;
}
if (_root.globalPowerupTicker == 0) {
_root.resetVars();
}
_root.player.safe = true;
}
};
Symbol 172 MovieClip Frame 19
stop();
_parent.debug = 1;
Symbol 177 MovieClip Frame 1
numTile_txt.text = _root.Tilecount;
_root.Tilecount++;
debug = 0;
fade = false;
active = false;
_root.globalNumberTileHolder.push(_name);
_root.toClear = _root.toClear + 1;
_parent.maxTiles = _parent.maxTiles + 1;
onEnterFrame = function () {
if (_root.globalNumberTileHolder[0] == _name) {
active = true;
}
if (!active) {
this._alpha = 30;
}
if (active && (!fade)) {
this._alpha = 100;
}
if (((((_root.player._xscale <= _root.globalXscaleCheck) && (active == true)) && (debug == 0)) && (this.hitTest(_root.playerHit))) && (_root.player.fall == false)) {
_parent.tutorial.gotoAndStop((_parent.tutorial._currentframe = _parent.tutorial._currentframe + 1));
if (_root.globalPowerupTicker > -1) {
_root.globalPowerupTicker = _root.globalPowerupTicker - 1;
}
if (_root.globalPowerupTicker == 0) {
_root.resetVars();
}
_root.player.safe = true;
this.play();
fade = true;
_root.toClear--;
_root.score = _root.score + _root.globalNumberTileScore;
debug = 1;
_root.globalNumberTileHolder.splice(0, 1);
}
if (fade && (this._alpha > 0)) {
this._alpha = this._alpha - _root.globalTileAlphaOut;
}
};
stop();
Symbol 177 MovieClip Frame 15
stop();
Symbol 190 MovieClip Frame 1
stop();
Instance of Symbol 180 MovieClip in Symbol 190 MovieClip Frame 1
onClipEvent (load) {
var levelAlpha = (new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 0.8, true));
var xPlayerScale2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.8, true));
var yPlayerScale2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.8, true));
}
Instance of Symbol 183 MovieClip in Symbol 190 MovieClip Frame 2
onClipEvent (load) {
var levelAlpha = (new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 0.8, true));
var xPlayerScale2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.8, true));
var yPlayerScale2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.8, true));
}
Instance of Symbol 186 MovieClip in Symbol 190 MovieClip Frame 3
onClipEvent (load) {
var levelAlpha = (new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 0.8, true));
var xPlayerScale2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.8, true));
var yPlayerScale2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.8, true));
}
Instance of Symbol 189 MovieClip in Symbol 190 MovieClip Frame 4
onClipEvent (load) {
var levelAlpha = (new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 0.8, true));
var xPlayerScale2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.8, true));
var yPlayerScale2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.8, true));
}
Symbol 193 MovieClip Frame 1
debug = 0;
fade = false;
onEnterFrame = function () {
if ((((_root.player._xscale <= _root.globalXscaleCheck) && (debug == 0)) && (this.hitTest(_root.playerHit))) && (_root.player.fall == false)) {
_parent.tutorial.gotoAndStop((_parent.tutorial._currentframe = _parent.tutorial._currentframe + 1));
if (_root.globalPowerupTicker > -1) {
_root.globalPowerupTicker = _root.globalPowerupTicker - 1;
}
if (_root.globalPowerupTicker == 0) {
_root.resetVars();
}
_root.player.safe = true;
this.play();
fade = true;
_root.score = _root.score + _root.globalStarTileScore;
debug = 1;
}
if (fade && (this._alpha > 0)) {
this._alpha = this._alpha - _root.globalTileAlphaOut;
}
};
stop();
Symbol 193 MovieClip Frame 15
stop();
Symbol 203 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
var levelAlpha = (new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 0.8, true));
var xPlayerScale2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.8, true));
var yPlayerScale2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.8, true));
}
Instance of Symbol 199 MovieClip in Symbol 203 MovieClip Frame 2
onClipEvent (load) {
var levelAlpha = (new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 0.8, true));
var xPlayerScale2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.8, true));
var yPlayerScale2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.8, true));
}
Instance of Symbol 202 MovieClip in Symbol 203 MovieClip Frame 3
onClipEvent (load) {
var levelAlpha = (new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 0.8, true));
var xPlayerScale2 = (new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.8, true));
var yPlayerScale2 = (new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Strong.easeOut, 110, 100, 0.8, true));
}
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 15
stop();
Symbol 207 MovieClip Frame 1
_parent.pathFindingPosX.push(_x);
_parent.pathFindingPosY.push(_y);
onEnterFrame = function () {
this._visible = false;
};
Symbol 208 MovieClip Frame 1
pathFindingPosX = [];
pathFindingPosY = [];
Instance of Symbol 205 MovieClip in Symbol 208 MovieClip Frame 1
onClipEvent (load) {
debug = 0;
fade = false;
curX = this._x;
curY = this._y;
startMoving = 1;
seconds = 0;
actualseconds = 0;
}
onClipEvent (enterFrame) {
function moveTile() {
distanceX = Math.round(curX - _parent.pathFindingPosX[0]);
distanceY = Math.round(curY - _parent.pathFindingPosY[0]);
distance = Math.round(Math.sqrt((distanceX * distanceX) + (distanceY * distanceY)));
rate = distance / _root.globalTileMoveSpeed;
var _local4 = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeInOut, curX, _parent.pathFindingPosX[0], rate, false);
var _local5 = new mx.transitions.Tween(this, "_y", mx.transitions.easing.Regular.easeInOut, curY, _parent.pathFindingPosY[0], rate, false);
_local4.onMotionFinished = function () {
holdXPos = _parent.pathFindingPosX[0];
holdYPos = _parent.pathFindingPosY[0];
_parent.pathFindingPosX.shift();
_parent.pathFindingPosY.shift();
_parent.pathFindingPosX.push(holdXPos);
_parent.pathFindingPosY.push(holdYPos);
moveTile();
};
}
seconds++;
if (seconds == 45) {
actualseconds = actualseconds + 1;
seconds = 0;
}
curX = this._x;
curY = this._y;
startMoving--;
if (startMoving == 0) {
moveTile();
}
if ((((_root.player._xscale <= _root.globalXscaleCheck) && (debug == 0)) && (this.hitTest(_root.playerHit))) && (_root.player.fall == false)) {
if (_root.globalPowerupTicker > -1) {
_root.globalPowerupTicker = _root.globalPowerupTicker - 1;
}
if (_root.globalPowerupTicker == 0) {
_root.resetVars();
}
_root.player.safe = true;
this.play();
fade = true;
_root.score = _root.score + _root.globalStarTileScore;
debug = 1;
}
if (fade && (this._alpha > 0)) {
this._alpha = this._alpha - _root.globalTileAlphaOut;
}
}
Symbol 209 MovieClip Frame 1
pathFindingPosX = [];
pathFindingPosY = [];
Instance of Symbol 205 MovieClip in Symbol 209 MovieClip Frame 1
onClipEvent (load) {
debug = 0;
fade = false;
curX = this._x;
curY = this._y;
startMoving = 1;
seconds = 0;
actualseconds = 0;
}
onClipEvent (enterFrame) {
function moveTile() {
distanceX = Math.round(curX - _parent.pathFindingPosX[0]);
distanceY = Math.round(curY - _parent.pathFindingPosY[0]);
distance = Math.round(Math.sqrt((distanceX * distanceX) + (distanceY * distanceY)));
rate = distance / _root.globalTileMoveSpeed;
var _local4 = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeInOut, curX, _parent.pathFindingPosX[0], rate, false);
var _local5 = new mx.transitions.Tween(this, "_y", mx.transitions.easing.Regular.easeInOut, curY, _parent.pathFindingPosY[0], rate, false);
_local4.onMotionFinished = function () {
holdXPos = _parent.pathFindingPosX[0];
holdYPos = _parent.pathFindingPosY[0];
_parent.pathFindingPosX.shift();
_parent.pathFindingPosY.shift();
_parent.pathFindingPosX.push(holdXPos);
_parent.pathFindingPosY.push(holdYPos);
moveTile();
};
}
seconds++;
if (seconds == 45) {
actualseconds = actualseconds + 1;
seconds = 0;
}
curX = this._x;
curY = this._y;
startMoving--;
if (startMoving == 0) {
moveTile();
}
if ((((_root.player._xscale <= _root.globalXscaleCheck) && (debug == 0)) && (this.hitTest(_root.playerHit))) && (_root.player.fall == false)) {
if (_root.globalPowerupTicker > -1) {
_root.globalPowerupTicker = _root.globalPowerupTicker - 1;
}
if (_root.globalPowerupTicker == 0) {
_root.resetVars();
}
_root.player.safe = true;
this.play();
fade = true;
_root.score = _root.score + _root.globalStarTileScore;
debug = 1;
}
if (fade && (this._alpha > 0)) {
this._alpha = this._alpha - _root.globalTileAlphaOut;
}
}
Symbol 210 MovieClip Frame 1
pathFindingPosX = [];
pathFindingPosY = [];
Instance of Symbol 205 MovieClip in Symbol 210 MovieClip Frame 1
onClipEvent (load) {
debug = 0;
fade = false;
curX = this._x;
curY = this._y;
startMoving = 1;
seconds = 0;
actualseconds = 0;
}
onClipEvent (enterFrame) {
function moveTile() {
distanceX = Math.round(curX - _parent.pathFindingPosX[0]);
distanceY = Math.round(curY - _parent.pathFindingPosY[0]);
distance = Math.round(Math.sqrt((distanceX * distanceX) + (distanceY * distanceY)));
rate = distance / _root.globalTileMoveSpeed;
var _local4 = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeInOut, curX, _parent.pathFindingPosX[0], rate, false);
var _local5 = new mx.transitions.Tween(this, "_y", mx.transitions.easing.Regular.easeInOut, curY, _parent.pathFindingPosY[0], rate, false);
_local4.onMotionFinished = function () {
holdXPos = _parent.pathFindingPosX[0];
holdYPos = _parent.pathFindingPosY[0];
_parent.pathFindingPosX.shift();
_parent.pathFindingPosY.shift();
_parent.pathFindingPosX.push(holdXPos);
_parent.pathFindingPosY.push(holdYPos);
moveTile();
};
}
seconds++;
if (seconds == 45) {
actualseconds = actualseconds + 1;
seconds = 0;
}
curX = this._x;
curY = this._y;
startMoving--;
if (startMoving == 0) {
moveTile();
}
if ((((_root.player._xscale <= _root.globalXscaleCheck) && (debug == 0)) && (this.hitTest(_root.playerHit))) && (_root.player.fall == false)) {
if (_root.globalPowerupTicker > -1) {
_root.globalPowerupTicker = _root.globalPowerupTicker - 1;
}
if (_root.globalPowerupTicker == 0) {
_root.resetVars();
}
_root.player.safe = true;
this.play();
fade = true;
_root.score = _root.score + _root.globalStarTileScore;
debug = 1;
}
if (fade && (this._alpha > 0)) {
this._alpha = this._alpha - _root.globalTileAlphaOut;
}
}
Symbol 213 MovieClip Frame 1
debug = 0;
fade = false;
onEnterFrame = function () {
if ((((_root.player._xscale <= _root.globalXscaleCheck) && (debug == 0)) && (this.hitTest(_root.playerHit))) && (_root.player.fall == false)) {
if (_root.globalPowerupTicker > -1) {
_root.globalPowerupTicker = _root.globalPowerupTicker - 1;
}
if (_root.globalPowerupTicker == 0) {
_root.resetVars();
}
this.play();
fade = true;
_root.score = _root.score + _root.globalPowerupTileScore;
_root.globalTweenSpeed = 1;
_root.globalBounceHeight = 40;
_root.globalPlayerBounceHeight = 180;
_root.globalPowerupTicker = 1;
_root.player.safe = true;
debug = 1;
}
if (fade && (this._alpha > 0)) {
this._alpha = this._alpha - _root.globalTileAlphaOut;
}
};
stop();
Symbol 213 MovieClip Frame 15
stop();
Symbol 214 MovieClip Frame 1
pathFindingPosX = [];
pathFindingPosY = [];
Instance of Symbol 205 MovieClip in Symbol 214 MovieClip Frame 1
onClipEvent (load) {
debug = 0;
fade = false;
curX = this._x;
curY = this._y;
startMoving = 1;
seconds = 0;
actualseconds = 0;
}
onClipEvent (enterFrame) {
function moveTile() {
distanceX = Math.round(curX - _parent.pathFindingPosX[0]);
distanceY = Math.round(curY - _parent.pathFindingPosY[0]);
distance = Math.round(Math.sqrt((distanceX * distanceX) + (distanceY * distanceY)));
rate = distance / _root.globalTileMoveSpeed;
var _local4 = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeInOut, curX, _parent.pathFindingPosX[0], rate, false);
var _local5 = new mx.transitions.Tween(this, "_y", mx.transitions.easing.Regular.easeInOut, curY, _parent.pathFindingPosY[0], rate, false);
_local4.onMotionFinished = function () {
holdXPos = _parent.pathFindingPosX[0];
holdYPos = _parent.pathFindingPosY[0];
_parent.pathFindingPosX.shift();
_parent.pathFindingPosY.shift();
_parent.pathFindingPosX.push(holdXPos);
_parent.pathFindingPosY.push(holdYPos);
moveTile();
};
}
seconds++;
if (seconds == 45) {
actualseconds = actualseconds + 1;
seconds = 0;
}
curX = this._x;
curY = this._y;
startMoving--;
if (startMoving == 0) {
moveTile();
}
if ((((_root.player._xscale <= _root.globalXscaleCheck) && (debug == 0)) && (this.hitTest(_root.playerHit))) && (_root.player.fall == false)) {
if (_root.globalPowerupTicker > -1) {
_root.globalPowerupTicker = _root.globalPowerupTicker - 1;
}
if (_root.globalPowerupTicker == 0) {
_root.resetVars();
}
_root.player.safe = true;
this.play();
fade = true;
_root.score = _root.score + _root.globalStarTileScore;
debug = 1;
}
if (fade && (this._alpha > 0)) {
this._alpha = this._alpha - _root.globalTileAlphaOut;
}
}
Symbol 217 MovieClip Frame 1
debug = 0;
fade = false;
onEnterFrame = function () {
if ((((_root.player._xscale <= _root.globalXscaleCheck) && (debug == 0)) && (this.hitTest(_root.playerHit))) && (_root.player.fall == false)) {
if (_root.globalPowerupTicker > -1) {
_root.globalPowerupTicker = _root.globalPowerupTicker - 1;
}
if (_root.globalPowerupTicker == 0) {
_root.resetVars();
}
_root.player.safe = true;
this.play();
fade = true;
_root.score = _root.score + _root.globalPowerupTileScore;
_root.globalPlayerSpeed = 0.2;
_root.globalTweenSpeed = 2;
_root.globalPowerupTicker = 1;
debug = 1;
}
if (fade && (this._alpha > 0)) {
this._alpha = this._alpha - _root.globalTileAlphaOut;
}
};
stop();
Symbol 217 MovieClip Frame 15
stop();
Symbol 218 MovieClip Frame 1
pathFindingPosX = [];
pathFindingPosY = [];
Instance of Symbol 205 MovieClip in Symbol 218 MovieClip Frame 1
onClipEvent (load) {
debug = 0;
fade = false;
curX = this._x;
curY = this._y;
startMoving = 1;
seconds = 0;
actualseconds = 0;
}
onClipEvent (enterFrame) {
function moveTile() {
distanceX = Math.round(curX - _parent.pathFindingPosX[0]);
distanceY = Math.round(curY - _parent.pathFindingPosY[0]);
distance = Math.round(Math.sqrt((distanceX * distanceX) + (distanceY * distanceY)));
rate = distance / _root.globalTileMoveSpeed;
var _local4 = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeInOut, curX, _parent.pathFindingPosX[0], rate, false);
var _local5 = new mx.transitions.Tween(this, "_y", mx.transitions.easing.Regular.easeInOut, curY, _parent.pathFindingPosY[0], rate, false);
_local4.onMotionFinished = function () {
holdXPos = _parent.pathFindingPosX[0];
holdYPos = _parent.pathFindingPosY[0];
_parent.pathFindingPosX.shift();
_parent.pathFindingPosY.shift();
_parent.pathFindingPosX.push(holdXPos);
_parent.pathFindingPosY.push(holdYPos);
moveTile();
};
}
seconds++;
if (seconds == 45) {
actualseconds = actualseconds + 1;
seconds = 0;
}
curX = this._x;
curY = this._y;
startMoving--;
if (startMoving == 0) {
moveTile();
}
if ((((_root.player._xscale <= _root.globalXscaleCheck) && (debug == 0)) && (this.hitTest(_root.playerHit))) && (_root.player.fall == false)) {
if (_root.globalPowerupTicker > -1) {
_root.globalPowerupTicker = _root.globalPowerupTicker - 1;
}
if (_root.globalPowerupTicker == 0) {
_root.resetVars();
}
_root.player.safe = true;
this.play();
fade = true;
_root.score = _root.score + _root.globalStarTileScore;
debug = 1;
}
if (fade && (this._alpha > 0)) {
this._alpha = this._alpha - _root.globalTileAlphaOut;
}
}
Symbol 219 MovieClip Frame 1
pathFindingPosX = [];
pathFindingPosY = [];
Instance of Symbol 205 MovieClip in Symbol 219 MovieClip Frame 1
onClipEvent (load) {
debug = 0;
fade = false;
curX = this._x;
curY = this._y;
startMoving = 1;
seconds = 0;
actualseconds = 0;
}
onClipEvent (enterFrame) {
function moveTile() {
distanceX = Math.round(curX - _parent.pathFindingPosX[0]);
distanceY = Math.round(curY - _parent.pathFindingPosY[0]);
distance = Math.round(Math.sqrt((distanceX * distanceX) + (distanceY * distanceY)));
rate = distance / _root.globalTileMoveSpeed;
var _local4 = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeInOut, curX, _parent.pathFindingPosX[0], rate, false);
var _local5 = new mx.transitions.Tween(this, "_y", mx.transitions.easing.Regular.easeInOut, curY, _parent.pathFindingPosY[0], rate, false);
_local4.onMotionFinished = function () {
holdXPos = _parent.pathFindingPosX[0];
holdYPos = _parent.pathFindingPosY[0];
_parent.pathFindingPosX.shift();
_parent.pathFindingPosY.shift();
_parent.pathFindingPosX.push(holdXPos);
_parent.pathFindingPosY.push(holdYPos);
moveTile();
};
}
seconds++;
if (seconds == 45) {
actualseconds = actualseconds + 1;
seconds = 0;
}
curX = this._x;
curY = this._y;
startMoving--;
if (startMoving == 0) {
moveTile();
}
if ((((_root.player._xscale <= _root.globalXscaleCheck) && (debug == 0)) && (this.hitTest(_root.playerHit))) && (_root.player.fall == false)) {
if (_root.globalPowerupTicker > -1) {
_root.globalPowerupTicker = _root.globalPowerupTicker - 1;
}
if (_root.globalPowerupTicker == 0) {
_root.resetVars();
}
_root.player.safe = true;
this.play();
fade = true;
_root.score = _root.score + _root.globalStarTileScore;
debug = 1;
}
if (fade && (this._alpha > 0)) {
this._alpha = this._alpha - _root.globalTileAlphaOut;
}
}
Symbol 220 MovieClip Frame 1
pathFindingPosX = [];
pathFindingPosY = [];
Instance of Symbol 205 MovieClip in Symbol 220 MovieClip Frame 1
onClipEvent (load) {
debug = 0;
fade = false;
curX = this._x;
curY = this._y;
startMoving = 1;
seconds = 0;
actualseconds = 0;
}
onClipEvent (enterFrame) {
function moveTile() {
distanceX = Math.round(curX - _parent.pathFindingPosX[0]);
distanceY = Math.round(curY - _parent.pathFindingPosY[0]);
distance = Math.round(Math.sqrt((distanceX * distanceX) + (distanceY * distanceY)));
rate = distance / _root.globalTileMoveSpeed;
var _local4 = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeInOut, curX, _parent.pathFindingPosX[0], rate, false);
var _local5 = new mx.transitions.Tween(this, "_y", mx.transitions.easing.Regular.easeInOut, curY, _parent.pathFindingPosY[0], rate, false);
_local4.onMotionFinished = function () {
holdXPos = _parent.pathFindingPosX[0];
holdYPos = _parent.pathFindingPosY[0];
_parent.pathFindingPosX.shift();
_parent.pathFindingPosY.shift();
_parent.pathFindingPosX.push(holdXPos);
_parent.pathFindingPosY.push(holdYPos);
moveTile();
};
}
seconds++;
if (seconds == 45) {
actualseconds = actualseconds + 1;
seconds = 0;
}
curX = this._x;
curY = this._y;
startMoving--;
if (startMoving == 0) {
moveTile();
}
if ((((_root.player._xscale <= _root.globalXscaleCheck) && (debug == 0)) && (this.hitTest(_root.playerHit))) && (_root.player.fall == false)) {
if (_root.globalPowerupTicker > -1) {
_root.globalPowerupTicker = _root.globalPowerupTicker - 1;
}
if (_root.globalPowerupTicker == 0) {
_root.resetVars();
}
_root.player.safe = true;
this.play();
fade = true;
_root.score = _root.score + _root.globalStarTileScore;
debug = 1;
}
if (fade && (this._alpha > 0)) {
this._alpha = this._alpha - _root.globalTileAlphaOut;
}
}
Symbol 221 MovieClip Frame 1
pathFindingPosX = [];
pathFindingPosY = [];
Instance of Symbol 205 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (load) {
debug = 0;
fade = false;
curX = this._x;
curY = this._y;
startMoving = 1;
seconds = 0;
actualseconds = 0;
}
onClipEvent (enterFrame) {
function moveTile() {
distanceX = Math.round(curX - _parent.pathFindingPosX[0]);
distanceY = Math.round(curY - _parent.pathFindingPosY[0]);
distance = Math.round(Math.sqrt((distanceX * distanceX) + (distanceY * distanceY)));
rate = distance / _root.globalTileMoveSpeed;
var _local4 = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeInOut, curX, _parent.pathFindingPosX[0], rate, false);
var _local5 = new mx.transitions.Tween(this, "_y", mx.transitions.easing.Regular.easeInOut, curY, _parent.pathFindingPosY[0], rate, false);
_local4.onMotionFinished = function () {
holdXPos = _parent.pathFindingPosX[0];
holdYPos = _parent.pathFindingPosY[0];
_parent.pathFindingPosX.shift();
_parent.pathFindingPosY.shift();
_parent.pathFindingPosX.push(holdXPos);
_parent.pathFindingPosY.push(holdYPos);
moveTile();
};
}
seconds++;
if (seconds == 45) {
actualseconds = actualseconds + 1;
seconds = 0;
}
curX = this._x;
curY = this._y;
startMoving--;
if (startMoving == 0) {
moveTile();
}
if ((((_root.player._xscale <= _root.globalXscaleCheck) && (debug == 0)) && (this.hitTest(_root.playerHit))) && (_root.player.fall == false)) {
if (_root.globalPowerupTicker > -1) {
_root.globalPowerupTicker = _root.globalPowerupTicker - 1;
}
if (_root.globalPowerupTicker == 0) {
_root.resetVars();
}
_root.player.safe = true;
this.play();
fade = true;
_root.score = _root.score + _root.globalStarTileScore;
debug = 1;
}
if (fade && (this._alpha > 0)) {
this._alpha = this._alpha - _root.globalTileAlphaOut;
}
}
Symbol 222 MovieClip Frame 1
pathFindingPosX = [];
pathFindingPosY = [];
Instance of Symbol 205 MovieClip in Symbol 222 MovieClip Frame 1
onClipEvent (load) {
debug = 0;
fade = false;
curX = this._x;
curY = this._y;
startMoving = 1;
seconds = 0;
actualseconds = 0;
}
onClipEvent (enterFrame) {
function moveTile() {
distanceX = Math.round(curX - _parent.pathFindingPosX[0]);
distanceY = Math.round(curY - _parent.pathFindingPosY[0]);
distance = Math.round(Math.sqrt((distanceX * distanceX) + (distanceY * distanceY)));
rate = distance / _root.globalTileMoveSpeed;
var _local4 = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeInOut, curX, _parent.pathFindingPosX[0], rate, false);
var _local5 = new mx.transitions.Tween(this, "_y", mx.transitions.easing.Regular.easeInOut, curY, _parent.pathFindingPosY[0], rate, false);
_local4.onMotionFinished = function () {
holdXPos = _parent.pathFindingPosX[0];
holdYPos = _parent.pathFindingPosY[0];
_parent.pathFindingPosX.shift();
_parent.pathFindingPosY.shift();
_parent.pathFindingPosX.push(holdXPos);
_parent.pathFindingPosY.push(holdYPos);
moveTile();
};
}
seconds++;
if (seconds == 45) {
actualseconds = actualseconds + 1;
seconds = 0;
}
curX = this._x;
curY = this._y;
startMoving--;
if (startMoving == 0) {
moveTile();
}
if ((((_root.player._xscale <= _root.globalXscaleCheck) && (debug == 0)) && (this.hitTest(_root.playerHit))) && (_root.player.fall == false)) {
if (_root.globalPowerupTicker > -1) {
_root.globalPowerupTicker = _root.globalPowerupTicker - 1;
}
if (_root.globalPowerupTicker == 0) {
_root.resetVars();
}
_root.player.safe = true;
this.play();
fade = true;
_root.score = _root.score + _root.globalStarTileScore;
debug = 1;
}
if (fade && (this._alpha > 0)) {
this._alpha = this._alpha - _root.globalTileAlphaOut;
}
}
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 2
stop();
Symbol 223 MovieClip Frame 3
stop();
Symbol 223 MovieClip Frame 4
stop();
Symbol 223 MovieClip Frame 5
stop();
Symbol 223 MovieClip Frame 6
stop();
Symbol 223 MovieClip Frame 7
stop();
Symbol 223 MovieClip Frame 8
stop();
Symbol 223 MovieClip Frame 9
stop();
Symbol 223 MovieClip Frame 10
stop();
Symbol 223 MovieClip Frame 11
stop();
Symbol 223 MovieClip Frame 12
stop();
Symbol 223 MovieClip Frame 13
stop();
Symbol 223 MovieClip Frame 14
stop();
Symbol 223 MovieClip Frame 15
stop();
Symbol 223 MovieClip Frame 16
stop();
Symbol 223 MovieClip Frame 17
stop();
Symbol 223 MovieClip Frame 18
stop();
Symbol 223 MovieClip Frame 19
stop();
Symbol 223 MovieClip Frame 20
stop();
Symbol 223 MovieClip Frame 21
stop();
Symbol 223 MovieClip Frame 22
stop();
Symbol 223 MovieClip Frame 23
stop();
Symbol 223 MovieClip Frame 24
stop();
Symbol 223 MovieClip Frame 25
stop();
Symbol 223 MovieClip Frame 26
stop();
Symbol 223 MovieClip Frame 27
stop();
Symbol 223 MovieClip Frame 28
stop();
Symbol 223 MovieClip Frame 29
stop();
Symbol 223 MovieClip Frame 30
stop();
Symbol 233 MovieClip Frame 1
stop();
Instance of Symbol 233 MovieClip "face" in Symbol 234 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.playerface);
}
onClipEvent (enterFrame) {
_x = (_x + _parent.xspeed);
_y = (_y + _parent.yspeed);
if (_y > _root.globalBallDiameter) {
_y = (-_root.globalBallDiameter);
}
if (_y < (-_root.globalBallDiameter)) {
_y = _root.globalBallDiameter;
}
if (_x > _root.globalBallDiameter) {
_x = (-_root.globalBallDiameter);
}
if (_x < (-_root.globalBallDiameter)) {
_x = _root.globalBallDiameter;
}
}
Symbol 265 MovieClip Frame 1
stop();