Frame 1
MochiAd.showPreGameAd({id:"bbbf2e88e0c59dde", res:"500x500"});
Frame 3
playBtn.onPress = function () {
gotoAndStop (4);
};
stop();
Frame 4
var my_fmt = new TextFormat();
my_fmt.bold = true;
moreFunTxt._visible = false;
endScoreSys._visible = false;
var initTotTime = 35;
var bonusPts = 5;
var myT = new MyTimer(this, initTotTime);
myT.setTimerTF(myTimerTF);
myT.setCountType(true);
myT.startTimer();
var currLevel = 1;
trace(currLevelTxt);
var pointsPerLet = 5;
replayBtn._visible = false;
currPtsTxt.text = "Point:0";
currLevelTxt.text = "Level: " + currLevel;
lastLetTxt._visible = false;
var currLevelSys = this.attachMovie("abcLevel", "abcLevel_" + currLevel, this.getNextHighestDepth());
var currTot = 3;
tUp._visible = false;
congratsTxt._visible = false;
var menuTime = false;
this.onEnterFrame = function () {
myTimerTF.setTextFormat(my_fmt);
currPtsTxt.setTextFormat(my_fmt);
currLevelTxt.setTextFormat(my_fmt);
if (myT.timeIsUp()) {
moreFunTxt._visible = true;
replayBtn._visible = true;
currLevelSys.removeMovieClip();
tUp._visible = true;
lastLetTxt._visible = false;
} else if ((currLevelSys.currClickCh == currLevelSys.lAry.length) && (!menuTime)) {
currLevelSys.removeMovieClip();
myTimerTF._visible = false;
var _local1 = currPtsTxt.text.split(":");
endScoreSys.bPtTxt.text = "Bonus Points:" + myT.getCurrSec();
endScoreSys.bPtTxt.setTextFormat(my_fmt);
currPtsTxt.text = "Points:" + (Number(_local1[1]) + myT.getCurrSec());
currLevelSys.currClickCh++;
myT.stopTimer();
lastLetTxt._visible = false;
if (currLevel == 20) {
moreFunTxt._visible = true;
congratsTxt._visible = true;
menuTime = true;
replayBtn._visible = true;
} else {
endScoreSys._visible = true;
menuTime = true;
}
}
};
endScoreSys.nextLevelBtn.onPress = function () {
endScoreSys._visible = false;
if (currTot < 20) {
currTot++;
} else {
replayBtn._visible = true;
currLevelSys.removeMovieClip();
tUp._visible = true;
lastLetTxt._visible = false;
}
menuTime = false;
currLevel++;
currLevelTxt.text = "Level: " + currLevel;
var _local2 = initTotTime;
myT.setCountNum(_local2);
myT.startTimer();
currLevelSys = _root.attachMovie("abcLevel", "abcLevel_" + currLevel, _root.getNextHighestDepth(), {totLet:currTot});
};
replayBtn.onPress = function () {
moreFunTxt._visible = false;
menuTime = false;
congratsTxt._visible = false;
this._visible = false;
if (currTot < 26) {
currTot++;
}
currTot = 3;
currLevel = 1;
tUp._visible = false;
currLevelTxt.text = "Level: " + currLevel;
var _local3 = initTotTime;
myT.setCountNum(_local3);
myT.startTimer();
myTimerTF._visible = true;
currPtsTxt.text = "Point:0";
currLevelSys = _root.attachMovie("abcLevel", "abcLevel_" + currLevel, _root.getNextHighestDepth(), {totLet:currTot});
};
stop();
Symbol 56 MovieClip [abcLevel] Frame 1
function randNum(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function letterIsAlrdyChosen() {
var _local1 = 0;
while (_local1 < lAry.length) {
if (currRL == lAry[_local1]) {
return(true);
}
_local1++;
}
return(false);
}
var lAry = new Array();
if (totLet == undefined) {
var totLet = 3;
}
var currRL = randNum(0, 25);
var ithLet = 0;
while (ithLet < totLet) {
while (letterIsAlrdyChosen()) {
currRL = randNum(0, 25);
}
lAry.push(currRL);
ithLet++;
}
trace(lAry);
Symbol 56 MovieClip [abcLevel] Frame 2
function swapNum(ind1, ind2) {
var _local1 = lAry[ind1];
lAry[ind1] = lAry[ind2];
lAry[ind2] = _local1;
}
var ithOne = 0;
while (ithOne < lAry.length) {
var nextOne = (ithOne + 1);
while (nextOne < lAry.length) {
if (lAry[ithOne] > lAry[nextOne]) {
swapNum(ithOne, nextOne);
}
nextOne++;
}
ithOne++;
}
trace(lAry);
Symbol 56 MovieClip [abcLevel] Frame 3
function touchOtherLet(ithInd) {
var _local1 = 0;
while (_local1 < lAry.length) {
if (ithInd != _local1) {
if (orderedMCLetAry[_local1].hitTest(orderedMCLetAry[ithInd])) {
return(true);
}
}
_local1++;
}
return(false);
}
function resilientTwn(obj) {
var _local3 = new mx.transitions.Tween(obj.mc, obj.strProp, obj.eT, obj.begVal, obj.endVal, obj.finTime, true);
_local3.onMotionFinished = function () {
this.yoyo();
delete this.onMotionFinished;
};
}
_root.myTimerTF._visible = true;
var orderedMCLetAry = new Array();
var ithOne = 0;
while (ithOne < lAry.length) {
orderedMCLetAry.push(this.attachMovie("let_" + lAry[ithOne], "let_" + ithOne, this.getNextHighestDepth()));
ithOne++;
}
var ithOne = 0;
while (ithOne < lAry.length) {
var currL = orderedMCLetAry[ithOne];
currL._x = randNum(currL._width * 2, 500 - (currL._width * 2));
currL._y = randNum(currL._height * 2, 500 - (currL._height * 2));
currL.onRelease = function () {
this.stopDrag();
};
ithOne++;
}
var currClickCh = 0;
var oldLetMC;
var ithOne = 0;
while (ithOne < lAry.length) {
var currL = orderedMCLetAry[ithOne];
currL.ithChoice = 0;
currL.onPress = function () {
var _local6 = this._name.split("_");
var _local4 = Number(_local6[1]);
if (_local4 == currClickCh) {
_root.lastLetTxt._visible = true;
resilientTwn({mc:this, strProp:"_xscale", eT:None.easeOut, begVal:65, endVal:80, finTime:0.2});
resilientTwn({mc:this, strProp:"_yscale", eT:None.easeOut, begVal:65, endVal:80, finTime:0.2});
var _local5 = _root.currPtsTxt.text.split(":");
var _local3 = Number(_local5[1]);
_root.currPtsTxt.text = "Point:" + (_root.pointsPerLet + _local3);
currClickCh++;
if (oldLetMC == undefined) {
this._x = _root.lastLetTxt._x + 153;
this._y = _root.lastLetTxt._y + 20;
} else {
oldLetMC._visible = false;
this._x = _root.lastLetTxt._x + 153;
this._y = _root.lastLetTxt._y;
oldLetMC = this;
}
delete this.onPress;
if (currClickCh == lAry.length) {
this._parent.removeMovieClip();
}
} else {
this.startDrag();
}
};
currL.onRollOver = function () {
};
ithOne++;
}
stop();
Symbol 119 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 120 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 121 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 122 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.3");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] 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) {
}};
options = _parseOptions(options, _local27);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local23 = 11000;
var _local26 = 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 _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 _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_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 = _local7.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 _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
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;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
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 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("[MochAd] 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) {
}};
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;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
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 showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(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 _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
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);
}
}
Symbol 123 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 124 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 125 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 126 MovieClip [__Packages.MyTimer] Frame 0
class MyTimer
{
var timerMC, countdown, totalSec, currSec, timerTF, timesUp, offsetSec;
function MyTimer (tP, c) {
timerMC = tP.createEmptyMovieClip("timerMC" + tP.getNextHighestDepth(), tP.getNextHighestDepth());
countdown = false;
totalSec = c;
currSec = 0;
}
function getCurrSec() {
return(currSec);
}
function setCountNum(c) {
totalSec = c;
}
function getCountNum() {
return(totalSec);
}
function setTimerTF(t) {
timerTF = t;
timerTF.autoSize = true;
}
function stopTimer() {
delete timerMC.onEnterFrame;
timerTF.text = "0:00(stopped)";
}
function getTimerTF() {
return(timerTF);
}
function setCountType(c) {
countdown = c;
}
function getCountType() {
return(countdown);
}
function timeIsUp() {
return(timesUp);
}
function setTimesUpFalse() {
timesUp = false;
}
function startTimer() {
offsetSec = Math.round(getTimer() / 1000);
timerMC.thisClass = this;
timesUp = false;
currSec = 0;
timerMC.onEnterFrame = function () {
var thisTimeClass = this.thisClass;
with (thisTimeClass) {
if (timerTF != undefined) {
timesUp = updateSecToMin();
} else {
timesUp = countTime();
}
if (timesUp) {
delete timerMC.onEnterFrame;
}
}
};
}
function updateSecToMin() {
var _local4 = Math.round(getTimer() / 1000) - offsetSec;
var _local3;
var _local2;
if (countdown == true) {
var _local5 = totalSec;
currSec = _local5 - _local4;
_local3 = Math.floor(currSec / 60);
_local2 = currSec % 60;
if (_local2 < 10) {
timerTF.text = (_local3 + ":0") + _local2;
} else {
timerTF.text = (_local3 + ":") + _local2;
}
if (currSec <= 0) {
return(true);
}
return(false);
}
currSec = _local4;
_local3 = Math.floor(currSec / 60);
_local2 = currSec % 60;
if (_local2 < 10) {
timerTF.text = (_local3 + ":0") + _local2;
} else {
timerTF.text = (_local3 + ":") + _local2;
}
if (currSec >= totalSec) {
return(true);
}
return(false);
}
function countTime() {
var _local2 = Math.round(getTimer() / 1000) - offsetSec;
if (_local2 >= totalSec) {
return(true);
}
return(false);
}
}
Symbol 94 MovieClip Frame 1
function tweenPropFrom(mc, finTime, objProp, ithInd) {
if (objProp.startFromVal == undefined) {
trace(" startFromVal is undefined for " + mc);
} else if (objProp.delayTime == undefined) {
trace(" delayTime is undefined for " + mc);
} else if (objProp.eT == undefined) {
trace(" eT is undefined for " + mc);
} else if (objProp.propStr == undefined) {
trace(" propStr is undefined for " + mc);
}
var _local3 = mc.createEmptyMovieClip("timer_" + objProp.propStr, mc.getNextHighestDepth());
_local3.objProp = objProp;
_local3.finTime = finTime;
_local3.endVal = mc[objProp.propStr];
mc[objProp.propStr] = objProp.startFromVal;
_local3.offSet = getTimer() / 1000;
_local3.onEnterFrame = function () {
this.currSec = (getTimer() / 1000) - this.offSet;
var _local3 = this.objProp.delayTime - this.currSec;
if (_local3 <= 0) {
delete this.onEnterFrame;
var _local2 = new Object();
_local2 = new mx.transitions.Tween(this._parent, this.objProp.propStr, this.objProp.eT, this.objProp.startFromVal, this.endVal, this.finTime, true);
if (this.objProp.onOneComplete != undefined) {
if (this.objProp.onOneCompleteParams.chosenInd == ithInd) {
_local2.onOneCompleteParams = this.objProp.onOneCompleteParams;
_local2.onMotionFinished = this.objProp.onOneComplete;
}
}
}
};
}
function groupTweenFromSV(mcAry, finishTime, finishTimePad, affectObjProp, linTimeDelay, initDelay) {
if (linTimeDelay == undefined) {
trace("warning linTimeDelay is undefined");
}
var _local3 = new Array();
var _local4 = new Array();
var _local10 = affectObjProp.propStr;
if (_local10 == undefined) {
trace("warning prop is undefined for groupTweenFromSV");
}
if (initDelay == undefined) {
initDelay = 0;
}
var _local1 = 0;
while (_local1 < mcAry.length) {
_local3.push((_local1 * linTimeDelay) + initDelay);
_local4.push((finishTimePad * _local1) + finishTime);
_local1++;
}
_local1 = 0;
while (_local1 < mcAry.length) {
affectObjProp.delayTime = _local3[_local1];
tweenPropFrom(mcAry[_local1], _local4[_local1], affectObjProp.clone(), _local1);
_local1++;
}
}
function groupTweenFrom(mcAry, finishTime, finishTimePad, affectObjProp, linTimeDelay, initDelay, startPadSlope, endPadSlope) {
if (startPadSlope == undefined) {
startPadSlope = 0;
}
if (linTimeDelay == undefined) {
trace("warning linTimeDelay is undefined");
}
var _local6 = new Array();
var _local7 = affectObjProp.propStr;
if (endPadSlope != undefined) {
createLinPaddedForm(mcAry, _local7, endPadSlope, mcAry[0][_local7]);
}
var _local4 = new Array();
var _local5 = new Array();
if (initDelay == undefined) {
initDelay = 0;
}
var _local1 = 0;
while (_local1 < mcAry.length) {
_local4.push((_local1 * linTimeDelay) + initDelay);
_local5.push((finishTimePad * _local1) + finishTime);
_local6.push(startPadSlope * _local1);
affectObjProp.delayTime = _local4[_local1];
affectObjProp.startFromVal = _local6[_local1] + mcAry[0][_local7];
tweenPropFrom(mcAry[_local1], _local5[_local1], affectObjProp.clone(), _local1);
_local1++;
}
}
function createLinPaddedForm(mcAry, prop, padSlope, startVal) {
if (mcAry[0][prop] == undefined) {
trace("warning prop may not exist: " + prop);
}
var _local1 = 0;
while (_local1 < mcAry.length) {
mcAry[_local1][prop] = startVal + (padSlope * _local1);
_local1++;
}
}
function whenOneDone() {
logoMC._visible = true;
new mx.transitions.Tween(logoMC, "_xscale", mx.transitions.easing.Bounce.easeOut, 170, 100, 0.7, true);
new mx.transitions.Tween(logoMC, "_yscale", mx.transitions.easing.Bounce.easeOut, 170, 100, 0.7, true);
var _local3 = new mx.transitions.Tween(logoMC, "_alpha", mx.transitions.easing.Bounce.easeOut, 170, 100, 1.5, true);
_local3.thisRoot = this;
_local3.onMotionFinished = function () {
var _local2 = new mx.transitions.Tween(thisRoot, "_alpha", mx.transitions.easing.Strong.easeOut, 100, 0, 1, true);
_local2.onMotionFinished = function () {
_root.nextFrame();
};
};
}
_root.stop();
Object.prototype.clone = function () {
if (typeof(this) == "object") {
var _local2 = ((this instanceof Array) ? ([]) : ({}));
for (var _local3 in this) {
_local2[_local3] = ((typeof(this[_local3]) == "object") ? (this[_local3].clone()) : (this[_local3]));
}
return(_local2);
}
trace("Warning! Object.clone can not be used on MovieClip or XML objects");
return(undefined);
};
logoMC._visible = false;
var gimmeLet = new Array(s_0, s_1, s_2, s_3, s_4, s_5, s_6, s_7, s_8, s_9, s_10, s_11, s_12, s_13, s_14);
var thisRoot = this;
groupTweenFromSV(gimmeLet, 1, 0, {propStr:"_y", startFromVal:s_0._y - 150, eT:mx.transitions.easing.Bounce.easeOut, onOneComplete:whenOneDone, onOneCompleteParams:{chosenInd:gimmeLet.length - 4, thisRoot:this}}, 0.1, 0);
groupTweenFromSV(gimmeLet, 1, 0, {propStr:"_alpha", startFromVal:0, eT:mx.transitions.easing.None.easeNone}, 0.1, 0);
this.onPress = function () {
delete this.onPress;
getURL ("http://www.GimmeFlashStuff.com/Games/page1/games.html", "_blank");
};
this._x = Stage.width / 2;
this._y = Stage.height / 2;