Frame 1
function setVariables() {
gameVar = _root.gameVar;
s = _root.s;
checkNumber();
}
function checkNumber() {
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load((((s + "gameCheck.asp?gameVar=") + gameVar) + "&random=") + Math.random());
}
function checkMe() {
return(1);
}
function loadXML(success) {
if (success) {
xmlResponse = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
nNumberSecurity = xmlResponse;
dispatchSecurityEvent();
} else {
nNumberSecurity = 0;
dispatchSecurityEvent();
}
}
function dispatchSecurityEvent() {
if (nNumberSecurity == 1) {
security_ok();
} else {
security_fail();
}
}
function security_fail() {
stop();
}
function security_ok() {
play();
}
var nNumberSecurity = 0;
var xmlResponse;
var xmlData;
setVariables();
stop();
Frame 2
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
Stage.showMenu = false;
Stage.scaleMode = "exactFit";
mochi.MochiServices.connect("5fe762ab7053aa1f");
__com_mochibot__("b267b488", this, 10301, true);
Frame 3
stop();
Frame 4
stop();
Frame 5
global = new Sound();
sound_on = true;
hitWall = new Sound();
hitWall.attachSound("hit wall.mp3");
play();
Frame 6
stop();
Mouse.show();
sound_btn.onPress = function () {
if (sound_on == true) {
sound_btn.gotoAndStop(2);
global.setVolume(0);
}
if (sound_on == false) {
sound_btn.gotoAndStop(1);
global.setVolume(100);
}
};
_root.difficulty = "";
_root._menu.menu_bg.stop();
easy.onRelease = function () {
_root.difficulty = "easy";
_root.gotoAndStop("easy");
};
medium.onRelease = function () {
_root.gotoAndStop("medium");
_root.difficulty = "medium";
};
hard.onRelease = function () {
_root.gotoAndStop("hard");
_root.difficulty = "hard";
};
Frame 7
function draw(o) {
board.draw(o, o.transform.matrix, o.transform.colorTransform, "normal");
}
stop();
Mouse.hide();
var feet = 0;
var another_wall = false;
var feet_plus = true;
var wall_speed = 7;
var fadeFactor = 0.59;
var maxWind = 0;
var verticalWind = 0;
var easy = true;
var medium = false;
var hard = false;
var width = 500;
var height = 300;
var man;
var displayMC = this.createEmptyMovieClip("displayMC", 1);
var board = (new flash.display.BitmapData(width, height, true, 16777215));
displayMC.attachBitmap(board, 1);
var reduceColor = (new flash.geom.ColorTransform(1, 1, 1, fadeFactor, 10, 5, 5, 0));
var blur = (new flash.filters.BlurFilter(2, 2, 1));
var f = 0;
var wind = -100;
var newWind = (((Math.random() - 0.5) * 2) * maxWind);
_root.attachMovie("walls", "walls", 10, {_y:0, _x:750});
vx_yu = 0;
vx_yd = 0;
a_yu = 0.7;
a_yd = 0.7;
dc_yu = 0.95;
dc_yd = 0.9;
vx_xl = 0;
vx_xr = 0;
a_xl = 0.7;
a_xr = 0.7;
dc_xl = 0.9;
dc_xr = 0.9;
onEnterFrame = function () {
if (feet_plus == true) {
feet = feet + 1;
}
};
man.onEnterFrame = function () {
var _local3 = new flash.geom.Matrix();
wind = wind + ((newWind - wind) / 10);
if (Math.random() < 0.04) {
newWind = ((Math.random() - 0.5) * 2) * maxWind;
}
_local3.translate(wind, -verticalWind);
var _local4 = board;
board = new flash.display.BitmapData(width, height, true, 16777215);
board.draw(_local4, _local3, reduceColor, "normal", _local4.rectangle, true);
displayMC.attachBitmap(board, 1);
board.applyFilter(board, board.rectangle, new flash.geom.Point(0, 0), blur);
draw(man);
if (Key.isDown(38) || (Key.isDown(87))) {
vx_yu = vx_yu - a_yu;
}
if (Key.isDown(40) || (Key.isDown(83))) {
vx_yd = vx_yd + a_yd;
}
if (Key.isDown(39) || (Key.isDown(68))) {
vx_xr = vx_xr + a_xr;
}
if (Key.isDown(37) || (Key.isDown(65))) {
vx_xl = vx_xl - a_xl;
}
man._x = man._x + vx_xl;
man._x = man._x + vx_xr;
vx_xl = vx_xl * dc_xl;
vx_xr = vx_xr * dc_xr;
man._y = man._y + vx_yu;
man._y = man._y + vx_yd;
vx_yu = vx_yu * dc_yu;
vx_yd = vx_yd * dc_yd;
if (this.hitTest(_root.top_block)) {
hitWall.start();
_root.vx_yu = 5;
}
if (this.hitTest(_root.bottom_block)) {
hitWall.start();
vx_yd = -5;
}
if (this.hitTest(_root.front_block)) {
hitWall.start();
vx_xr = -5;
}
if (this.hitTest(_root.dead_dead)) {
_root.feet_plus = false;
_root.displayMC.removeMovieClip();
_root.power.removeMovieClip();
_root.walls.removeMovieClip();
_root.walls_2.removeMovieClip();
_root.walls_3.removeMovieClip();
_root.walls_4.removeMovieClip();
_root.walls_5.removeMovieClip();
_root.walls_6.removeMovieClip();
_root.walls_7.removeMovieClip();
_root.gotoAndStop("game_over");
}
};
Frame 8
function draw(o) {
board.draw(o, o.transform.matrix, o.transform.colorTransform, "normal");
}
stop();
Mouse.hide();
var feet = 0;
var another_wall = false;
var feet_plus = true;
var wall_speed = 10;
var fadeFactor = 0.59;
var maxWind = 0;
var verticalWind = 0;
var easy = false;
var medium = true;
var hard = false;
var width = 500;
var height = 300;
var man;
var displayMC = this.createEmptyMovieClip("displayMC", 1);
var board = (new flash.display.BitmapData(width, height, true, 16777215));
displayMC.attachBitmap(board, 1);
var reduceColor = (new flash.geom.ColorTransform(1, 1, 1, fadeFactor, 10, 5, 5, 0));
var blur = (new flash.filters.BlurFilter(2, 2, 1));
var f = 0;
var wind = -100;
var newWind = (((Math.random() - 0.5) * 2) * maxWind);
_root.attachMovie("walls", "walls", 10, {_y:0, _x:750});
vx_yu = 0;
vx_yd = 0;
a_yu = 0.7;
a_yd = 0.7;
dc_yu = 0.95;
dc_yd = 0.9;
vx_xl = 0;
vx_xr = 0;
a_xl = 0.7;
a_xr = 0.7;
dc_xl = 0.9;
dc_xr = 0.9;
onEnterFrame = function () {
if (feet_plus == true) {
feet = feet + 1;
}
};
man.onEnterFrame = function () {
var _local3 = new flash.geom.Matrix();
wind = wind + ((newWind - wind) / 10);
if (Math.random() < 0.04) {
newWind = ((Math.random() - 0.5) * 2) * maxWind;
}
_local3.translate(wind, -verticalWind);
var _local4 = board;
board = new flash.display.BitmapData(width, height, true, 16777215);
board.draw(_local4, _local3, reduceColor, "normal", _local4.rectangle, true);
displayMC.attachBitmap(board, 1);
board.applyFilter(board, board.rectangle, new flash.geom.Point(0, 0), blur);
draw(man);
if (Key.isDown(38) || (Key.isDown(87))) {
vx_yu = vx_yu - a_yu;
}
if (Key.isDown(40) || (Key.isDown(83))) {
vx_yd = vx_yd + a_yd;
}
if (Key.isDown(39) || (Key.isDown(68))) {
vx_xr = vx_xr + a_xr;
}
if (Key.isDown(37) || (Key.isDown(65))) {
vx_xl = vx_xl - a_xl;
}
man._x = man._x + vx_xl;
man._x = man._x + vx_xr;
vx_xl = vx_xl * dc_xl;
vx_xr = vx_xr * dc_xr;
man._y = man._y + vx_yu;
man._y = man._y + vx_yd;
vx_yu = vx_yu * dc_yu;
vx_yd = vx_yd * dc_yd;
if (this.hitTest(_root.top_block)) {
hitWall.start();
_root.vx_yu = 5;
}
if (this.hitTest(_root.bottom_block)) {
hitWall.start();
vx_yd = -5;
}
if (this.hitTest(_root.front_block)) {
hitWall.start();
vx_xr = -5;
}
if (this.hitTest(_root.dead_dead)) {
_root.feet_plus = false;
_root.displayMC.removeMovieClip();
_root.power.removeMovieClip();
_root.walls.removeMovieClip();
_root.walls_2.removeMovieClip();
_root.walls_3.removeMovieClip();
_root.walls_4.removeMovieClip();
_root.walls_5.removeMovieClip();
_root.walls_6.removeMovieClip();
_root.walls_7.removeMovieClip();
_root.gotoAndStop("game_over");
}
};
Frame 9
function draw(o) {
board.draw(o, o.transform.matrix, o.transform.colorTransform, "normal");
}
stop();
Mouse.hide();
var feet = 0;
var another_wall = false;
var feet_plus = true;
var wall_speed = 13;
var fadeFactor = 0.59;
var maxWind = 0;
var verticalWind = 0;
var easy = false;
var medium = false;
var hard = true;
var width = 500;
var height = 300;
var man;
var displayMC = this.createEmptyMovieClip("displayMC", 1);
var board = (new flash.display.BitmapData(width, height, true, 16777215));
displayMC.attachBitmap(board, 1);
var reduceColor = (new flash.geom.ColorTransform(1, 1, 1, fadeFactor, 10, 5, 5, 0));
var blur = (new flash.filters.BlurFilter(2, 2, 1));
var f = 0;
var wind = -100;
var newWind = (((Math.random() - 0.5) * 2) * maxWind);
_root.attachMovie("walls", "walls", 10, {_y:0, _x:750});
vx_yu = 0;
vx_yd = 0;
a_yu = 0.7;
a_yd = 0.7;
dc_yu = 0.95;
dc_yd = 0.9;
vx_xl = 0;
vx_xr = 0;
a_xl = 0.7;
a_xr = 0.7;
dc_xl = 0.9;
dc_xr = 0.9;
onEnterFrame = function () {
if (feet_plus == true) {
feet = feet + 1;
}
};
man.onEnterFrame = function () {
var _local3 = new flash.geom.Matrix();
wind = wind + ((newWind - wind) / 10);
if (Math.random() < 0.04) {
newWind = ((Math.random() - 0.5) * 2) * maxWind;
}
_local3.translate(wind, -verticalWind);
var _local4 = board;
board = new flash.display.BitmapData(width, height, true, 16777215);
board.draw(_local4, _local3, reduceColor, "normal", _local4.rectangle, true);
displayMC.attachBitmap(board, 1);
board.applyFilter(board, board.rectangle, new flash.geom.Point(0, 0), blur);
draw(man);
if (Key.isDown(38) || (Key.isDown(87))) {
vx_yu = vx_yu - a_yu;
}
if (Key.isDown(40) || (Key.isDown(83))) {
vx_yd = vx_yd + a_yd;
}
if (Key.isDown(39) || (Key.isDown(68))) {
vx_xr = vx_xr + a_xr;
}
if (Key.isDown(37) || (Key.isDown(65))) {
vx_xl = vx_xl - a_xl;
}
man._x = man._x + vx_xl;
man._x = man._x + vx_xr;
vx_xl = vx_xl * dc_xl;
vx_xr = vx_xr * dc_xr;
man._y = man._y + vx_yu;
man._y = man._y + vx_yd;
vx_yu = vx_yu * dc_yu;
vx_yd = vx_yd * dc_yd;
if (this.hitTest(_root.top_block)) {
hitWall.start();
_root.vx_yu = 5;
}
if (this.hitTest(_root.bottom_block)) {
hitWall.start();
vx_yd = -5;
}
if (this.hitTest(_root.front_block)) {
hitWall.start();
vx_xr = -5;
}
if (this.hitTest(_root.dead_dead)) {
_root.feet_plus = false;
_root.displayMC.removeMovieClip();
_root.power.removeMovieClip();
_root.walls.removeMovieClip();
_root.walls_2.removeMovieClip();
_root.walls_3.removeMovieClip();
_root.walls_4.removeMovieClip();
_root.walls_5.removeMovieClip();
_root.walls_6.removeMovieClip();
_root.walls_7.removeMovieClip();
_root.gotoAndStop("game_over");
}
};
Frame 10
stop();
if (easy) {
mochi.MochiScores.showLeaderboard({boardID:"9bdee9d7d97e5c5c", score:_root.feet});
}
if (medium) {
mochi.MochiScores.showLeaderboard({boardID:"5a54b6eb0e71f92e", score:_root.feet});
}
if (hard) {
mochi.MochiScores.showLeaderboard({boardID:"72c3f324a12ebcea", score:_root.feet});
}
Mouse.show();
_root.feet_plus = false;
_root.displayMC.removeMovieClip();
_root.power.removeMovieClip();
_root.walls.removeMovieClip();
_root.walls_2.removeMovieClip();
_root.walls_3.removeMovieClip();
_root.walls_4.removeMovieClip();
_root.walls_5.removeMovieClip();
_root.walls_6.removeMovieClip();
_root.walls_7.removeMovieClip();
_root.play_again.onRelease = function () {
_root.gotoAndPlay("menu");
_root.easy._visible = false;
_root.medium._visible = false;
_root.hard._visible = false;
};
Frame 11
stop();
back.onRelease = function () {
_root.gotoAndStop("menu");
};
next_page.onRelease = function () {
_root.gotoAndStop("help2");
};
stop();
Frame 12
stop();
back_to.onPress = function () {
_root.gotoAndStop("help1");
};
stop();
Symbol 5 MovieClip [walls_7] Frame 1
onEnterFrame = function () {
this._x = this._x - _root.wall_speed;
if (this._x <= -70) {
this.removeMovieClip();
}
if (_root.walls_7.hitTest(_root.man)) {
_root.vx_xr = _root.vx_xr + -4;
}
};
gotoAndStop(random(15));
Symbol 6 MovieClip [walls_6] Frame 1
onEnterFrame = function () {
this._x = this._x - _root.wall_speed;
if (this._x <= -70) {
this.removeMovieClip();
}
if (_root.walls_6.hitTest(_root.man)) {
_root.vx_xr = _root.vx_xr + -4;
}
};
gotoAndStop(random(15));
Symbol 7 MovieClip [walls_5] Frame 1
onEnterFrame = function () {
this._x = this._x - _root.wall_speed;
if (this._x <= -70) {
this.removeMovieClip();
}
if (_root.walls_5.hitTest(_root.man)) {
_root.vx_xr = _root.vx_xr + -4;
}
};
gotoAndStop(random(15));
Symbol 8 MovieClip [walls_4] Frame 1
onEnterFrame = function () {
this._x = this._x - _root.wall_speed;
if (this._x <= -70) {
this.removeMovieClip();
}
if (_root.walls_4.hitTest(_root.man)) {
_root.vx_xr = _root.vx_xr + -4;
}
};
gotoAndStop(random(15));
Symbol 9 MovieClip [walls_3] Frame 1
onEnterFrame = function () {
this._x = this._x - _root.wall_speed;
if (this._x <= -70) {
this.removeMovieClip();
}
if (_root.walls_3.hitTest(_root.man)) {
_root.vx_xr = _root.vx_xr + -4;
}
};
gotoAndStop(random(15));
Symbol 10 MovieClip [walls_2] Frame 1
onEnterFrame = function () {
this._x = this._x - _root.wall_speed;
if (this._x <= -70) {
this.removeMovieClip();
}
if (_root.walls_2.hitTest(_root.man)) {
_root.vx_xr = _root.vx_xr + -4;
}
};
gotoAndStop(random(15));
Symbol 12 MovieClip [walls] Frame 1
onEnterFrame = function () {
this._x = this._x - _root.wall_speed;
if (this._x <= -70) {
this.removeMovieClip();
}
if (_root.walls.hitTest(_root.man)) {
_root.vx_xr = _root.vx_xr + -4;
}
};
gotoAndStop(random(15));
Symbol 19 MovieClip [game] Frame 1
onEnterFrame = function () {
_root.feet_1 = _root.feet;
};
Symbol 24 MovieClip [power] Frame 1
gotoAndStop(random(3));
this._alpha = 0;
onEnterFrame = function () {
this._alpha = this._alpha + 5;
if (_root.power.clock.hitTest(_root.man)) {
_root.attachMovie("clock_power_up", "clock_power_up", 10, {_y:545, _x:700});
this.removeMovieClip();
}
};
Symbol 24 MovieClip [power] Frame 2
stop();
this._alpha = 0;
onEnterFrame = function () {
this._alpha = this._alpha + 5;
if (_root.power.bolt.hitTest(_root.man)) {
_root.attachMovie("bolt_power_up", "bolt_power_up", 11, {_y:545, _x:700});
this.removeMovieClip();
}
};
Symbol 26 MovieClip [bolt_power_up] Frame 1
onEnterFrame = function () {
_root.a_yu = 1.2;
_root.a_yd = 1;
_root.a_xl = 1.2;
_root.a_xr = 1.2;
};
Symbol 26 MovieClip [bolt_power_up] Frame 120
stop();
onEnterFrame = function () {
_root.a_yu = 0.7;
_root.a_yd = 0.7;
_root.a_xl = 0.7;
_root.a_xr = 0.7;
this.unloadMovie();
};
Symbol 27 MovieClip [clock_power_up] Frame 1
onEnterFrame = function () {
_root.wall_speed = 4;
};
Symbol 27 MovieClip [clock_power_up] Frame 120
onEnterFrame = function () {
if (_root.easy == true) {
_root.wall_speed = 7;
}
if (_root.medium == true) {
_root.wall_speed = 10;
}
if (_root.hard == true) {
_root.wall_speed = 13;
}
this.unloadMovie();
};
Symbol 210 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _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("1.35");
}
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";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.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 _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
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.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.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];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._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:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static function addLinkEvent(url, burl, btn, onClick) {
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]);
}
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 () {
var _local3;
var _local2 = new LoadVars();
var timeout = 1500;
var t0 = getTimer();
var ping = this.createEmptyMovieClip("ping", 777);
this.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
delete this.ping;
getURL (url + s, "_blank");
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
delete this.ping;
getURL (burl, "_blank");
}
};
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
if (onClick != undefined) {
onClick();
}
};
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 211 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.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 (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.send("scores_closeLeaderboard");
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.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 36 MovieClip [Loader] Frame 1
#initclip 3
function LoaderClass() {
this.slideColor = new Color(this.slide);
this.bordColor = new Color(this.bord);
this.update();
}
LoaderClass.prototype = new MovieClip();
LoaderClass.prototype.update = function () {
this.slideColor.setRGB(39423);
this.bordColor.setRGB(3355443);
this.bord._width = this.SlideWidth + 4;
this.slide._width = this.SlideWidth;
this.bord._height = this.SlideHeight + 4;
this.slide._height = this.SlideHeight;
};
LoaderClass.prototype.setSlideWidth = function (b) {
this.SlideWidth = b;
this.update();
};
LoaderClass.prototype.getSlideWidth = function () {
return(this.SlideWidth);
};
LoaderClass.prototype.setSlideHeight = function (h) {
this.SlideHeight = h;
this.update();
};
LoaderClass.prototype.getSlideHeight = function () {
return(this.SlideHeight);
};
LoaderClass.prototype.setTintColor = function (c) {
this.tcolor = c;
this.update();
};
LoaderClass.prototype.turnOnTint = function () {
this.applyTint = true;
this.update();
};
Object.registerClass("Loader", LoaderClass);
#endinitclip
Instance of Symbol 33 MovieClip "slide" in Symbol 36 MovieClip [Loader] Frame 1
onClipEvent (load) {
_root.stop();
this.topScale = this._width;
this._xscale = 0;
ft = int(_root.getBytesTotal() / 1024);
}
onClipEvent (enterFrame) {
fl = int(_root.getBytesLoaded() / 1024);
this._xscale = (fl / ft) * this.topScale;
_parent.mytext.text = ((("LOADING " + fl) + " KB OF ") + ft) + " KB";
_parent.mytext.setTextFormat(_parent.mtextFormat);
if (fl == ft) {
_root.gotoAndPlay(_currentframe + 1);
play();
}
}
Instance of Symbol 36 MovieClip [Loader] in Symbol 38 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
SlideWidth = 100;
SlideHeight = 10;
scolor = 10066329 /* 0x999999 */;
bcolor = 3355443 /* 0x333333 */;
fname = "Courier";
fsize = 10;
}
Symbol 41 Button
on (release) {
getURL ("http://www.minijuegos.com", "_blank");
}
Symbol 121 MovieClip Frame 100
_root.play();
Symbol 128 MovieClip Frame 73
_root.nextFrame();
Symbol 134 Button
on (release) {
_root._menu.menu_bg.play();
}
Symbol 136 Button
on (release) {
_root.gotoAndStop("help1");
}
Symbol 147 Button
on (release) {
_root.difficulty = "easy";
_root.gotoAndStop("easy");
}
Instance of Symbol 152 MovieClip "howto_btn" in Symbol 153 MovieClip Frame 18
on (release) {
_root.gotoAndStop("help1");
}
Instance of Symbol 145 MovieClip in Symbol 153 MovieClip Frame 19
on (release) {
_root.difficulty = "medium";
_root.gotoAndStop("medium");
}
Instance of Symbol 149 MovieClip in Symbol 153 MovieClip Frame 25
on (release) {
_root.difficulty = "hard";
_root.gotoAndStop("hard");
}
Symbol 153 MovieClip Frame 30
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 1
this.stop();
_root.sound_on = true;
Symbol 158 MovieClip Frame 2
this.stop();
_root.sound_on = false;
Symbol 163 Button
on (release) {
getURL ("http://www.minijuegos.com", "_blank");
}
Symbol 173 MovieClip Frame 77
_root.attachMovie("walls", "walls", _root.getNextHighestDepth(), {_y:0, _x:750});
Symbol 174 MovieClip Frame 125
_root.attachMovie("walls_2", "walls_2", _root.getNextHighestDepth(), {_y:0, _x:750});
Symbol 176 MovieClip Frame 89
_root.attachMovie("walls_3", "walls_3", _root.getNextHighestDepth(), {_y:0, _x:750});
Symbol 177 MovieClip Frame 120
_root.attachMovie("walls_4", "walls_4", _root.getNextHighestDepth(), {_y:0, _x:750});
Symbol 178 MovieClip Frame 146
_root.attachMovie("walls_5", "walls_5", _root.getNextHighestDepth(), {_y:0, _x:750});
Symbol 179 MovieClip Frame 120
_root.power.unloadMovie();
Symbol 179 MovieClip Frame 240
_root.attachMovie("power", "power", 40, {_y:random(285), _x:random(485)});
Symbol 181 MovieClip Frame 140
_root.attachMovie("walls_6", "walls_6", _root.getNextHighestDepth(), {_y:0, _x:750});
Symbol 182 MovieClip Frame 150
_root.attachMovie("walls_7", "walls_7", _root.getNextHighestDepth(), {_y:0, _x:750});