Frame 1
_accProps = new Object();
_accProps.name = "Rapid Fire";
_accProps.description = "Unfortunately, you will probably find the Rapid Fire game difficult to play if you are using assistive technologies. However, you can find out more about the Fire Kills campaign at http://campaigns.direct.gov.uk/firekills/";
_accProps.noAutoLabeling = true;
help_txt._accProps = new Object();
help_txt._accProps.description = "Accessibility Help Text";
help_txt.tabIndex = 1;
Frame 2
function preload(clip, goFrame) {
clip.currentPos = 0;
clip.goFrame = goFrame;
clip.tl = this;
clip.ready = false;
clip.onEnterFrame = function () {
var _local2 = this.tl.getBytesLoaded();
var _local5 = this.tl.getBytesTotal();
var _local3 = Math.round((100 / _local5) * _local2);
var _local4 = Math.round((_local3 - this.currentPos) / 4);
if (_local4 < 1) {
_local4 = 1;
}
this.currentPos = this.currentPos + _local4;
if (this.currentPos >= _local3) {
this.currentPos = _local3;
}
if (_local2 > 16) {
this.gotoAndStop(this.currentPos);
this.p_txt.text = this.currentPos + "%";
if ((this.currentPos >= 100) && (_local2 >= _local5)) {
delete this.onEnterFrame;
this.tl.gotoAndPlay(goFrame);
}
}
};
}
_global.root = this;
stop();
preload(this.preloader_mc, "init");
Frame 10
function exitLink(fullURL, trackString) {
if ((trackString != undefined) && (trackString != null)) {
trace("TRACKING!! " + trackString);
com.teamrubber.SeqTrackerAdaptor.campaignExit(trackString, fullURL);
} else {
getURL (fullURL, "_blank");
}
}
function toSplash() {
com.teamrubber.SeqTrackerAdaptor.doLoad();
_global.root.gotoAndPlay("fadePreloader");
}
_global.exitURL = "http://campaigns.direct.gov.uk/firekills/";
_global.embedURL = "http://www.teamrubber.com";
var generic_copy = new Object({bad:"", good:""});
var tips = new Array({header:"", body:"Fire Kills... \n...but you can prevent it."});
var embed = "<object width=\"350\" height=\"350\"><param name=\"movie\" value=\"http://viral.s3.amazonaws.com/firekills/rapid_fire.swf\" /><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://viral.s3.amazonaws.com/firekills/rapid_fire.swf\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" width=\"350\" height=\"350\"></embed></object>";
var tooltip = new Object({plan_a_tip:"Use the keyboard, letters only", plan_b_tip:"Use the keyboard, numbers only"});
var doors = new Object({ref:"doors", tracking:"doors", inputType:"mouse", label:"Shut Doors", body:"Use \u2018Space\u2019 to shut doors", game_tip:"Shut all doors using \u2018Space\u2019. Don\u2019t open doors already closed.", fb_good:"Close doors to stop a fire from spreading.", fb_bad:"Keep all internal doors shut to help prevent fire spreading."});
var objects = new Object({ref:"objects", tracking:"clear_routes", inputType:"mouse", label:"Clear Route", body:"Remove obstacles by clicking on them", game_tip:"Remove all obstacles by clicking on them.", fb_good:"Make sure all exits are kept clear.", fb_bad:"A blocked exit can slow down your escape."});
var keys = new Object({ref:"keys", tracking:"find_keys", inputType:"mouse", label:"Find Keys", body:"Match pairs & avoid the flames", game_tip:"Match key cards and avoid flame cards.", fb_good:"Make sure you know where your real keys are.", fb_bad:"Keep your door & window keys where everyone can find them, so you can get out quickly."});
var plan_a = new Object({ref:"plan_a", tracking:"plan_exit", inputType:"keyboard", label:"Plan Exit", body:"Type keys in the right order.", game_tip:"Type keys in the right order to get to the exit.", fb_good:"The best escape route is the exit that you use all the time.", fb_bad:"Plan and practise an escape route; make sure everyone knows it."});
var plan_b = new Object({ref:"plan_b", tracking:"plan_b", inputType:"keyboard", label:"Plan B", body:"Avoid the blocked exit!", game_tip:"Type keys in the right order. Avoid the blocked exit.", fb_good:"Well done. Always have a Plan B.", fb_bad:"Always have a Plan B."});
var games = new Array(doors, objects, keys, plan_a, plan_b);
com.teamrubber.SeqTrackerAdaptor.setComponentReference(this.tracker_comp);
com.teamrubber.SeqTrackerAdaptor.initTracker(toSplash);
_global.snd = new com.teamrubber.SoundManager(this, ["animation_cover_1", "animation_cover_2", "button_rollover", "button_click", "card_turn", "door_close", "fire", "footsteps", "game_end_right", "game_end_wrong", "in_game_right", "in_game_wrong", "game_over", "game_selector_dance", "game_selector_dance_choose", "house_scroll", "house_scroll_2", "score_tickover", "in_game_action", "object_remove", "object_rollover", "objects_doors_open", "door_close_double", "timer_beep_3", "timer_beep_4"]);
_global.snd.setNewVolume(40);
Frame 19
stop();
_global.$createTweenController = function () {
var _local3 = _root.createEmptyMovieClip("__tweenController__", 123432);
_local3.$_tweenPropList = new Array();
_local3.$_tTime = getTimer();
_local3.onEnterFrame = _global.$updateTweens;
};
ASSetPropFlags(_global, "$createTweenController", 1, 0);
_global.$removeTweenController = function () {
delete _root.__tweenController__.$_tweenPropList;
delete _root.__tweenController__.$_tTime;
delete _root.__tweenController__.onEnterFrame;
_root.__tweenController__.removeMovieClip();
};
ASSetPropFlags(_global, "$removeTweenController", 1, 0);
_global.$addTween = function (mtarget, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, extras) {
if (timeSeconds == undefined) {
timeSeconds = 0;
}
if ((animType == undefined) || (animType == "")) {
animType = "easeOutExpo";
}
if (delay == undefined) {
delay = 0;
}
if (typeof(prop) == "string") {
var _local7 = [prop];
var _local11 = [mtarget[prop]];
var _local9 = [propDest];
} else {
var _local7 = [];
var _local11 = [];
var _local9 = [];
for (var _local32 in prop) {
_local11.push(mtarget[prop[_local32]]);
}
for (var _local32 in prop) {
_local7.push(prop[_local32]);
}
for (var _local32 in propDest) {
_local9.push(propDest[_local32]);
}
}
var _local12 = false;
if (_root.__tweenController__ == undefined) {
_global.$createTweenController();
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local8 = _root.__tweenController__.$_tTime;
for (var _local32 in _local11) {
if ((_local9[_local32] != undefined) && (!mtarget.$_isTweenLocked)) {
if (mtarget.$_tweenCount > 0) {
var _local3 = 0;
while (_local3 < _local4.length) {
if ((_local4[_local3]._targ == mtarget) && (_local4[_local3]._prop == _local7[_local32])) {
if ((_local8 + (delay * 1000)) < _local4[_local3]._timeDest) {
_local4.splice(_local3, 1);
_local3--;
mtarget.$_tweenCount--;
}
}
_local3++;
}
}
_local4.push({_prop:_local7[_local32], _targ:mtarget, _propStart:undefined, _propDest:_local9[_local32], _timeStart:_local8, _timeDest:_local8 + (timeSeconds * 1000), _animType:animType, _extra1:extra1, _extra2:extra2, _extras:extras, _delay:delay, _isPaused:false, _timePaused:0, _callback:(_local12 ? undefined : (callback))});
mtarget.$_tweenCount = ((mtarget.$_tweenCount > 0) ? (mtarget.$_tweenCount + 1) : 1);
_local12 = true;
}
}
ASSetPropFlags(mtarget, "$_tweenCount", 1, 0);
};
ASSetPropFlags(_global, "$addTween", 1, 0);
_global.$updateTweens = function () {
var _local8 = (this.$_tTime = getTimer());
var _local6 = 0;
while (_local6 < this.$_tweenPropList.length) {
var _local3 = this.$_tweenPropList[_local6];
if (_local3._targ.toString() == undefined) {
this.$_tweenPropList.splice(_local6, 1);
_local6--;
} else if (((_local3._timeStart + (_local3._delay * 1000)) <= _local8) && (!_local3._isPaused)) {
if (_local3._propStart == undefined) {
if (_local3._prop.substr(0, 10) == "__special_") {
if (_local3._prop == "__special_mc_frame__") {
_local3._propStart = _local3._targ._currentframe;
} else if (_local3._prop == "__special_mc_ra__") {
_local3._propStart = new Color(_local3._targ).getTransform().ra;
} else if (_local3._prop == "__special_mc_rb__") {
_local3._propStart = new Color(_local3._targ).getTransform().rb;
} else if (_local3._prop == "__special_mc_ga__") {
_local3._propStart = new Color(_local3._targ).getTransform().ga;
} else if (_local3._prop == "__special_mc_gb__") {
_local3._propStart = new Color(_local3._targ).getTransform().gb;
} else if (_local3._prop == "__special_mc_ba__") {
_local3._propStart = new Color(_local3._targ).getTransform().ba;
} else if (_local3._prop == "__special_mc_bb__") {
_local3._propStart = new Color(_local3._targ).getTransform().bb;
} else if (_local3._prop == "__special_mc_aa__") {
_local3._propStart = new Color(_local3._targ).getTransform().aa;
} else if (_local3._prop == "__special_mc_ab__") {
_local3._propStart = new Color(_local3._targ).getTransform().ab;
} else if (_local3._prop == "__special_text_r__") {
_local3._propStart = _local3._targ.textColor >> 16;
} else if (_local3._prop == "__special_text_g__") {
_local3._propStart = (_local3._targ.textColor & 65280) >> 8;
} else if (_local3._prop == "__special_text_b__") {
_local3._propStart = _local3._targ.textColor & 255;
} else if (_local3._prop == "__special_sound_volume__") {
_local3._propStart = _local3._targ.getVolume();
} else if (_local3._prop == "__special_sound_pan__") {
_local3._propStart = _local3._targ.getPan();
} else if (_local3._prop == "__special_bst_t__") {
_local3._propStart = 0;
_local3._extras.__special_bst_ix__ = _local3._targ._x;
_local3._extras.__special_bst_iy__ = _local3._targ._y;
} else if (_local3._prop == "__special_blur_x__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_blur_y__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_color__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].color;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_glow_alpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].alpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_glow_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_distance__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].distance;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_angle__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].angle;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 45;
}
} else if (_local3._prop == "__special_bevel_highlightColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_bevel_highlightAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_shadowColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_shadowAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
}
var _local10 = _local3._timeDest + (_local3._delay * 1000);
if (_local10 <= _local8) {
var _local4 = _local3._propDest;
} else {
var _local4 = _global.findTweenValue(_local3._propStart, _local3._propDest, _local3._timeStart, _local8 - (_local3._delay * 1000), _local3._timeDest, _local3._animType, _local3._extra1, _local3._extra2);
}
_local3._targ[_local3._prop] = (_local3._extras.mustRound ? (Math.round(_local4)) : (_local4));
if (_local3._prop == "__special_mc_frame__") {
_local3._targ.gotoAndStop(Math.round(_local4));
} else if (_local3._prop == "__special_mc_ra__") {
new Color(_local3._targ).setTransform({ra:_local4});
} else if (_local3._prop == "__special_mc_rb__") {
new Color(_local3._targ).setTransform({rb:_local4});
} else if (_local3._prop == "__special_mc_ga__") {
new Color(_local3._targ).setTransform({ga:_local4});
} else if (_local3._prop == "__special_mc_gb__") {
new Color(_local3._targ).setTransform({gb:_local4});
} else if (_local3._prop == "__special_mc_ba__") {
new Color(_local3._targ).setTransform({ba:_local4});
} else if (_local3._prop == "__special_mc_bb__") {
new Color(_local3._targ).setTransform({bb:_local4});
} else if (_local3._prop == "__special_mc_aa__") {
new Color(_local3._targ).setTransform({aa:_local4});
} else if (_local3._prop == "__special_mc_ab__") {
new Color(_local3._targ).setTransform({ab:_local4});
}
if (_local3._prop == "__special_bst_t__") {
var _local7 = _local3._extras;
var _local9 = _global.findPointOnCurve(_local7.__special_bst_ix__, _local7.__special_bst_iy__, _local7.__special_bst_cx__, _local7.__special_bst_cy__, _local7.__special_bst_dx__, _local7.__special_bst_dy__, _local4);
if (_local3._extras.mustRound) {
_local3._targ._x = Math.round(_local9.x);
_local3._targ._y = Math.round(_local9.y);
} else {
_local3._targ._x = _local9.x;
_local3._targ._y = _local9.y;
}
}
if ((typeof(_local3._targ) != "movieclip") && (_local3._prop == "__special_text_b__")) {
_local3._targ.textColor = ((_local3._targ.__special_text_r__ << 16) + (_local3._targ.__special_text_g__ << 8)) + _local3._targ.__special_text_b__;
}
if (_local3._prop == "__special_sound_volume__") {
_local3._targ.setVolume(_local4);
}
if (_local3._prop == "__special_sound_pan__") {
_local3._targ.setPan(_local4);
}
if (_local3._prop == "__special_blur_x__") {
_global.$setFilterProperty(_local3._targ, "blur_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_blur_y__") {
_global.$setFilterProperty(_local3._targ, "blur_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_color__") {
_global.$setFilterProperty(_local3._targ, "glow_color", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_glow_alpha__") {
_global.$setFilterProperty(_local3._targ, "glow_alpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurX__") {
_global.$setFilterProperty(_local3._targ, "glow_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurY__") {
_global.$setFilterProperty(_local3._targ, "glow_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_strength__") {
_global.$setFilterProperty(_local3._targ, "glow_strength", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_distance__") {
_global.$setFilterProperty(_local3._targ, "bevel_distance", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_angle__") {
_global.$setFilterProperty(_local3._targ, "bevel_angle", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurX__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurY__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_strength__") {
_global.$setFilterProperty(_local3._targ, "bevel_strength", _local4, _local3._extras);
}
if (_local3._targ.onTweenUpdate != undefined) {
_local3._targ.onTweenUpdate(_local3._prop);
}
if (_local10 <= _local8) {
if (_local3._targ.onTweenComplete != undefined) {
_local3._targ.onTweenComplete(_local3._prop);
}
_global.$stopTween(_local3._targ, [_local3._prop], false);
_local6--;
if (_local3._callback != undefined) {
if (_global.backwardCallbackTweening) {
var _local11 = _local3._targ.createEmptyMovieClip("__child__", 122344);
_local3._callback.apply(_local11, null);
_local11.removeMovieClip();
} else {
_local3._callback.apply(_local3._targ, null);
}
}
}
}
_local6++;
}
if (this.$_tweenPropList.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$updateTween", 1, 0);
_global.$stopTween = function (mtarget, props, wipeFuture) {
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local7;
for (var _local9 in _local4) {
_local7 = _local4[_local9]._prop;
var _local5 = 0;
while ((_local5 < props.length) || ((_local5 < 1) && (props == undefined))) {
if (((_local4[_local9]._targ == mtarget) && ((_local7 == props[_local5]) || (props == undefined))) && (wipeFuture || ((_local4[_local9]._timeDest + (_local4[_local9]._delay * 1000)) <= getTimer()))) {
switch (_local7) {
case "__special_mc_frame__" :
case "__special_mc_ra__" :
case "__special_mc_rb__" :
case "__special_mc_ga__" :
case "__special_mc_gb__" :
case "__special_mc_ba__" :
case "__special_mc_bb__" :
case "__special_mc_aa__" :
case "__special_mc_ab__" :
case "__special_sound_volume__" :
case "__special_bst_t__" :
delete mtarget[_local7];
break;
case "__special_text_b__" :
delete mtarget.__special_text_r__;
delete mtarget.__special_text_g__;
delete mtarget.__special_text_b__;
}
_local4.splice(_local9, 1);
}
_local5++;
}
}
if (props == undefined) {
delete mtarget.$_tweenCount;
} else {
mtarget.$_tweenCount = 0;
for (var _local9 in _local4) {
if (_local4[_local9]._targ == mtarget) {
mtarget.$_tweenCount++;
}
}
if (mtarget.$_tweenCount == 0) {
delete mtarget.$_tweenCount;
}
}
if (_local4.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$stopTween", 1, 0);
_global.$setFilterProperty = function (mtarget, propName, propValue, extras) {
var _local1;
var _local7 = false;
var _local3 = [];
_local1 = 0;
while (_local1 < mtarget.filters.length) {
_local3.push(mtarget.filters[_local1]);
_local1++;
}
if (propName.substr(0, 5) == "blur_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BlurFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_blur_quality__ != undefined) {
_local3[_local1].quality = extras.__special_blur_quality__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local9;
var _local8 = ((extras.__special_blur_quality__ == undefined) ? 2 : (extras.__special_blur_quality__));
if (propName == "blur_blurX") {
_local9 = new flash.filters.BlurFilter(propValue, 0, _local8);
}
if (propName == "blur_blurY") {
_local9 = new flash.filters.BlurFilter(0, propValue, _local8);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 5) == "glow_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.GlowFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_glow_quality__ != undefined) {
_local3[_local1].quality = extras.__special_glow_quality__;
}
if (extras.__special_glow_inner__ != undefined) {
_local3[_local1].inner = extras.__special_glow_inner__;
}
if (extras.__special_glow_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_glow_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_glow_quality__ == undefined) ? 2 : (extras.__special_glow_quality__));
var _local12 = ((extras.__special_glow_inner__ == undefined) ? false : (extras.__special_glow_inner__));
var _local10 = ((extras.__special_glow_knockout__ == undefined) ? false : (extras.__special_glow_knockout__));
if (propName == "glow_color") {
var _local9 = new flash.filters.GlowFilter(propValue, 1, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_alpha") {
var _local9 = new flash.filters.GlowFilter(16777215, propValue, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurX") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, propValue, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurY") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, propValue, 1, _local8, _local12, _local10);
}
if (propName == "glow_strength") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, 0, propValue, _local8, _local12, _local10);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 6) == "bevel_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BevelFilter) {
_local3[_local1][propName.substr(6)] = propValue;
if (extras.__special_bevel_quality__ != undefined) {
_local3[_local1].quality = extras.__special_bevel_quality__;
}
if (extras.__special_bevel_type__ != undefined) {
_local3[_local1].inner = extras.__special_bevel_type__;
}
if (extras.__special_bevel_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_bevel_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_bevel_quality__ == undefined) ? 2 : (extras.__special_bevel_quality__));
var _local11 = ((extras.__special_bevel_type__ == undefined) ? "inner" : (extras.__special_bevel_type__));
var _local10 = ((extras.__special_bevel_knockout__ == undefined) ? false : (extras.__special_bevel_knockout__));
if (propName == "bevel_distance") {
var _local9 = new flash.filters.BevelFilter(propValue, 45, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_angle") {
var _local9 = new flash.filters.BevelFilter(0, propValue, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, propValue, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, propValue, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, propValue, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, propValue, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurX") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, propValue, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurY") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, propValue, 1, _local8, _local11, _local10);
}
if (propName == "bevel_strength") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, 0, propValue, _local8, _local11, _local10);
}
_local3.push(_local9);
}
} else {
return(undefined);
}
mtarget.filters = _local3;
};
MovieClip.prototype.tween = (TextField.prototype.tween = (Sound.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2);
}));
ASSetPropFlags(MovieClip.prototype, "tween", 1, 0);
ASSetPropFlags(TextField.prototype, "tween", 1, 0);
ASSetPropFlags(Sound.prototype, "tween", 1, 0);
MovieClip.prototype.roundedTween = (TextField.prototype.roundedTween = (Sound.prototype.roundedTween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
}));
ASSetPropFlags(MovieClip.prototype, "roundedTween", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedTween", 1, 0);
ASSetPropFlags(Sound.prototype, "roundedTween", 1, 0);
MovieClip.prototype.stopTween = (TextField.prototype.stopTween = (Sound.prototype.stopTween = function (props) {
if (typeof(props) == "string") {
props = [props];
}
if (props != undefined) {
var _local4 = 1;
while (_local4 < arguments.length) {
props.push(arguments[_local4]);
_local4++;
}
}
_global.$stopTween(this, props, true);
}));
ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0);
ASSetPropFlags(TextField.prototype, "stopTween", 1, 0);
ASSetPropFlags(Sound.prototype, "stopTween", 1, 0);
MovieClip.prototype.pauseTween = (TextField.prototype.pauseTween = (Sound.prototype.pauseTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local6 = 1;
while (_local6 < Arguments.length) {
props.push(Arguments[_local6]);
_local6++;
}
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local5;
for (var _local7 in _local4) {
if ((_local4[_local7]._targ == this) && (!_local4[_local7]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local6 in props) {
if (props[_local6] == _local4[_local7]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local4[_local7]._isPaused = true;
_local4[_local7]._timePaused = _root.__tweenController__.$_tTime;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "pauseTween", 1, 0);
ASSetPropFlags(TextField.prototype, "pauseTween", 1, 0);
ASSetPropFlags(Sound.prototype, "pauseTween", 1, 0);
MovieClip.prototype.resumeTween = (TextField.prototype.resumeTween = (Sound.prototype.resumeTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local7 = 1;
while (_local7 < Arguments.length) {
props.push(Arguments[_local7]);
_local7++;
}
}
var _local3 = _root.__tweenController__.$_tweenPropList;
var _local5;
var _local6;
for (var _local8 in _local3) {
if ((_local3[_local8]._targ == this) && (_local3[_local8]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local7 in props) {
if (props[_local7] == _local3[_local8]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local3[_local8]._isPaused = false;
_local6 = _root.__tweenController__.$_tTime - _local3[_local8]._timePaused;
_local3[_local8]._timeStart = _local3[_local8]._timeStart + _local6;
_local3[_local8]._timeDest = _local3[_local8]._timeDest + _local6;
_local3[_local8]._timePaused = 0;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "resumeTween", 1, 0);
ASSetPropFlags(TextField.prototype, "resumeTween", 1, 0);
ASSetPropFlags(Sound.prototype, "resumeTween", 1, 0);
MovieClip.prototype.lockTween = (TextField.prototype.lockTween = (Sound.prototype.lockTween = function () {
this.$_isTweenLocked = true;
ASSetPropFlags(this, "this.$_isTweenLocked", 1, 0);
}));
ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "lockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "lockTween", 1, 0);
MovieClip.prototype.unlockTween = (TextField.prototype.unlockTween = (Sound.prototype.unlockTween = function () {
delete this.$_isTweenLocked;
}));
ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "unlockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "unlockTween", 1, 0);
MovieClip.prototype.getTweens = (TextField.prototype.getTweens = (Sound.prototype.getTweens = function () {
return(this.$_tweenCount);
}));
ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0);
ASSetPropFlags(TextField.prototype, "getTweens", 1, 0);
ASSetPropFlags(Sound.prototype, "getTweens", 1, 0);
MovieClip.prototype.isTweening = (TextField.prototype.isTweening = (Sound.prototype.isTweening = function () {
return(((this.$_tweenCount > 0) ? true : false));
}));
ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0);
ASSetPropFlags(TextField.prototype, "isTweening", 1, 0);
ASSetPropFlags(Sound.prototype, "isTweening", 1, 0);
MovieClip.prototype.alphaTo = (TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_alpha", propDest_a, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0);
ASSetPropFlags(TextField.prototype, "alphaTo", 1, 0);
MovieClip.prototype.frameTo = function (propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_mc_frame__", propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "frameTo", 1, 0);
MovieClip.prototype.resizeTo = (TextField.prototype.resizeTo = function (propDest_width, propDest_height, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_width", "_height"], [propDest_width, propDest_height], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "resizeTo", 1, 0);
ASSetPropFlags(TextField.prototype, "resizeTo", 1, 0);
MovieClip.prototype.rotateTo = (TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_rotation", propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "rotateTo", 1, 0);
ASSetPropFlags(TextField.prototype, "rotateTo", 1, 0);
MovieClip.prototype.scaleTo = (TextField.prototype.scaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_xscale", "_yscale"], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "scaleTo", 1, 0);
MovieClip.prototype.xScaleTo = (TextField.prototype.xScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_xscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xScaleTo", 1, 0);
MovieClip.prototype.yScaleTo = (TextField.prototype.yScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_yscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "yScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yScaleTo", 1, 0);
TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "scroll", propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "scrollTo", 1, 0);
MovieClip.prototype.slideTo = (TextField.prototype.slideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "slideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "slideTo", 1, 0);
MovieClip.prototype.roundedSlideTo = (TextField.prototype.roundedSlideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedSlideTo", 1, 0);
MovieClip.prototype.xSlideTo = (TextField.prototype.xSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xSlideTo", 1, 0);
MovieClip.prototype.roundedXSlideTo = (TextField.prototype.roundedXSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedXSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedXSlideTo", 1, 0);
MovieClip.prototype.ySlideTo = (TextField.prototype.ySlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "ySlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "ySlideTo", 1, 0);
MovieClip.prototype.roundedYSlideTo = (TextField.prototype.roundedYSlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedYSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedYSlideTo", 1, 0);
MovieClip.prototype.bezierSlideTo = (TextField.prototype.bezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "bezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bezierSlideTo", 1, 0);
MovieClip.prototype.roundedBezierSlideTo = (TextField.prototype.roundedBezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_local3.mustRound = true;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "roundedBezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedBezierSlideTo", 1, 0);
Sound.prototype.volumeTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_volume__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "volumeTo", 1, 0);
Sound.prototype.panTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_pan__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "panTo", 1, 0);
MovieClip.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
if (propDest_color == null) {
this.colorTransformTo(100, 0, 100, 0, 100, 0, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
} else {
var _local3 = propDest_color >> 16;
var _local5 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
this.colorTransformTo(0, _local3, 0, _local5, 0, _local4, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0);
TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = propDest_color >> 16;
var _local6 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
_global.$addTween(this, ["__special_text_r__", "__special_text_g__", "__special_text_b__"], [_local3, _local6, _local4], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "colorTo", 1, 0);
MovieClip.prototype.colorTransformTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0].ra, arguments[0].rb, arguments[0].ga, arguments[0].gb, arguments[0].ba, arguments[0].bb, arguments[0].aa, arguments[0].ab], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]);
} else {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], arguments[13]);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0);
MovieClip.prototype.blurTo = (TextField.prototype.blurTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0].blurX, arguments[0].blurY], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_blur_quality__:arguments[0].quality});
} else {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0], arguments[0]], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7], {__special_blur_quality__:arguments[1]});
}
});
ASSetPropFlags(MovieClip.prototype, "blurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "blurTo", 1, 0);
MovieClip.prototype.xyBlurTo = (TextField.prototype.xyBlurTo = function (propDest_blurX, propDest_blurY, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [propDest_blurX, propDest_blurY], timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xyBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBlurTo", 1, 0);
MovieClip.prototype.xBlurTo = (TextField.prototype.xBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_x__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xBlurTo", 1, 0);
MovieClip.prototype.yBlurTo = (TextField.prototype.yBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_y__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "yBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yBlurTo", 1, 0);
MovieClip.prototype.glowTo = (TextField.prototype.glowTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0].color, arguments[0].alpha, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_glow_quality__:arguments[0].quality, __special_glow_inner__:arguments[0].inner, __special_glow_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0], arguments[1], arguments[2], arguments[2], arguments[3]], arguments[7], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], {__special_glow_quality__:arguments[4], __special_glow_inner__:arguments[5], __special_glow_knockout__:arguments[6]});
}
});
ASSetPropFlags(MovieClip.prototype, "glowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "glowTo", 1, 0);
MovieClip.prototype.xyGlowTo = (TextField.prototype.xyGlowTo = function (propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyGlowTo", 1, 0);
MovieClip.prototype.xGlowTo = (TextField.prototype.xGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xGlowTo", 1, 0);
MovieClip.prototype.yGlowTo = (TextField.prototype.yGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "yGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yGlowTo", 1, 0);
MovieClip.prototype.bevelTo = (TextField.prototype.bevelTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0].distance, arguments[0].angle, arguments[0].highlightColor, arguments[0].highlightAlpha * 100, arguments[0].shadowColor, arguments[0].shadowAlpha * 100, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_bevel_quality__:arguments[0].quality, __special_bevel_type__:arguments[0].type, __special_bevel_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[6], arguments[7]], arguments[11], arguments[12], arguments[13], arguments[14], arguments[15], arguments[16], {__special_bevel_quality__:arguments[8], __special_bevel_type__:arguments[9], __special_bevel_knockout__:arguments[10]});
}
});
ASSetPropFlags(MovieClip.prototype, "bevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bevelTo", 1, 0);
MovieClip.prototype.xyBevelTo = (TextField.prototype.xyBevelTo = function (propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blurX, propDest_blurY, propDest_strength, quality, type, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_blurY__", "__special_bevel_strength__"], [propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blur, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_bevel_quality__:quality, __special_bevel_type__:type, __special_bevel_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyBevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBevelTo", 1, 0);
_global.findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t) {
return({x:p1x + (t * (((2 * (1 - t)) * (cx - p1x)) + (t * (p2x - p1x)))), y:p1y + (t * (((2 * (1 - t)) * (cy - p1y)) + (t * (p2y - p1y))))});
};
ASSetPropFlags(_global, "findPointOnCurve", 1, 0);
_global.findTweenColor = function (objProp, tTime) {
var _local8 = objProp._propStart >> 16;
var _local4 = objProp._propDest >> 16;
var _local5 = (objProp._propStart >> 8) & 255;
var _local6 = (objProp._propDest >> 8) & 255;
var _local9 = objProp._propStart & 255;
var _local7 = objProp._propDest & 255;
var _local12 = Math.round(_global.findTweenValue(_local8, _local4, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local10 = Math.round(_global.findTweenValue(_local5, _local6, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local3 = Math.round(_global.findTweenValue(_local9, _local7, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
return(((_local12 << 16) + (_local10 << 8)) + _local3);
};
_global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2) {
var _local1 = _timeNow - _timeStart;
var _local4 = _propStart;
var _local2 = _propDest - _propStart;
var _local3 = _timeDest - _timeStart;
var _local6 = _extra1;
var _local7 = _extra2;
var _local5 = _extra1;
switch (_animType.toLowerCase()) {
case "linear" :
return(((_local2 * _local1) / _local3) + _local4);
case "easeinquad" :
_local1 = _local1 / _local3;
return(((_local2 * _local1) * _local1) + _local4);
case "easeoutquad" :
_local1 = _local1 / _local3;
return((((-_local2) * _local1) * (_local1 - 2)) + _local4);
case "easeinoutquad" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((_local2 / 2) * _local1) * _local1) + _local4);
}
_local1--;
return((((-_local2) / 2) * ((_local1 * (_local1 - 2)) - 1)) + _local4);
case "easeoutinquad" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuad") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuad") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeincubic" :
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * _local1) + _local4);
case "easeoutcubic" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * _local1) + 1)) + _local4);
case "easeinoutcubic" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((_local2 / 2) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((_local1 * _local1) * _local1) + 2)) + _local4);
case "easeoutincubic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCubic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCubic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquart" :
_local1 = _local1 / _local3;
return(((((_local2 * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquart" :
_local1 = (_local1 / _local3) - 1;
return(((-_local2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + _local4);
case "easeinoutquart" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return((((-_local2) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + _local4);
case "easeoutinquart" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuart") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuart") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquint" :
_local1 = _local1 / _local3;
return((((((_local2 * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquint" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + _local4);
case "easeinoutquint" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + _local4);
case "easeoutinquint" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuint") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuint") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinsine" :
return((((-_local2) * Math.cos((_local1 / _local3) * (Math.PI/2))) + _local2) + _local4);
case "easeoutsine" :
return((_local2 * Math.sin((_local1 / _local3) * (Math.PI/2))) + _local4);
case "easeinoutsine" :
return((((-_local2) / 2) * (Math.cos((Math.PI * _local1) / _local3) - 1)) + _local4);
case "easeoutinsine" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutSine") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInSine") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinexpo" :
return(((_local1 == 0) ? (_local4) : ((_local2 * Math.pow(2, 10 * ((_local1 / _local3) - 1))) + _local4)));
case "easeoutexpo" :
return(((_local1 == _local3) ? (_local4 + _local2) : ((_local2 * ((-Math.pow(2, (-10 * _local1) / _local3)) + 1)) + _local4)));
case "easeinoutexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local4);
}
_local1--;
return(((_local2 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local4);
case "easeoutinexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * ((-Math.pow(2, (-10 * _local1) / 1)) + 1)) + _local4);
}
return(((_local2 / 2) * (Math.pow(2, (10 * (_local1 - 2)) / 1) + 1)) + _local4);
case "easeincirc" :
_local1 = _local1 / _local3;
return(((-_local2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
case "easeoutcirc" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * Math.sqrt(1 - (_local1 * _local1))) + _local4);
case "easeinoutcirc" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((-_local2) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + _local4);
case "easeoutincirc" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCirc") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCirc") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
_local1 = _local1 - 1;
return((-((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
case "easeoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
return((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) + _local2) + _local4);
case "easeinoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 == 2) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.45;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
}
_local1 = _local1 - 1;
return(((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) * 0.5) + _local2) + _local4);
case "easeoutinelastic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutElastic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInElastic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * (((_local5 + 1) * _local1) - _local5)) + _local4);
case "easeoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 1)) + _local4);
case "easeinoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
_local5 = _local5 * 1.525;
return(((_local2 / 2) * ((_local1 * _local1) * (((_local5 + 1) * _local1) - _local5))) + _local4);
}
_local1 = _local1 - 2;
_local5 = _local5 * 1.525;
return(((_local2 / 2) * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 2)) + _local4);
case "easeoutinback" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBack") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBack") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinbounce" :
return((_local2 - findTweenValue(0, _local2, 0, _local3 - _local1, _local3, "easeOutBounce")) + _local4);
case "easeoutbounce" :
_local1 = _local1 / _local3;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local4);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local4);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local4);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local4);
case "easeinoutbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeInBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeOutBounce") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeoutinbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBounce") * 0.5) + (_local2 * 0.5)) + _local4);
}
trace(("MC TWEEN ### Error on transition: there's no \"" + _animType) + "\" animation type.");
return(0);
};
ASSetPropFlags(_global, "findTweenValue", 1, 0);
if (_global.game == undefined) {
_global.game = new com.bentempleton.Game(this);
_global.game.setup();
}
_global.screens.setupInterface(this.wrapper_mc.inner_mc);
_global.screens.setupSplash(this.splash_mc.inner_mc);
Frame 30
stop();
Frame 31
_global.game.start();
Frame 36
this.wrapper_mc.gotoAndPlay("open");
Frame 37
stop();
Frame 46
this.wrapper_mc.gotoAndPlay("close");
this.gameOver_mc.gotoAndPlay("open");
Frame 52
stop();
_global.game.screenManager.setupGameOver(this.gameOver_mc.inner_mc);
Frame 62
_global.root.gotoAndPlay("minigames");
Symbol 18 MovieClip Frame 1
stop();
Symbol 37 MovieClip [door_2] Frame 1
stop();
Symbol 38 MovieClip [door_1] Frame 1
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 528 MovieClip [__Packages.com.teamrubber.SeqTrackerAdaptor] Frame 0
class com.teamrubber.SeqTrackerAdaptor
{
static var instance;
function SeqTrackerAdaptor () {
init();
setup();
}
function init() {
}
function setup() {
}
static function initTracker(func) {
if (active) {
getInstance().comp.setVerbose(true);
getInstance().comp.setBaseURL(BASE_URL);
getInstance().comp.setCampaignID(CAMPAIGN_ID);
getInstance().comp.setProjectID(PROJECT_ID);
getInstance().comp.initialise(func);
getInstance().comp._visible = false;
} else {
func();
}
}
static function doLoad() {
getInstance().comp.load();
}
static function setComponentReference(comp) {
if (active) {
getInstance().comp = comp;
}
}
static function viewScreen(view) {
if (active && (view != undefined)) {
getInstance().comp.view(view);
}
}
static function campaignExit(from, link) {
trace("Seq Exit");
var _local1;
var _local2;
if ((from == undefined) || (from == "")) {
_local1 = CAMPAIGN_LINK_EXIT_LABEL;
} else {
_local1 = from;
}
if ((link == undefined) || (link == "")) {
_local2 = CAMPAIGN_LINK;
} else {
_local2 = link;
}
if (active) {
getInstance().comp.exit(_local2, _local1, "_blank");
}
}
static function sendToFriendConversion() {
if (active) {
getInstance().comp.conversion("n/a", "sendToFriend");
}
}
static function customConversion() {
if (active) {
getInstance().comp.conversion("n/a", "custom");
}
}
static function trackActionByLabel(label) {
trace("trackActionByLabel " + label);
if (active) {
if ((label == undefined) || (label == "")) {
label = ACTION_LABEL;
}
getInstance().comp.view(label);
}
}
static function getInstance() {
if (!instance) {
instance = new com.teamrubber.SeqTrackerAdaptor();
}
return(instance);
}
static var BASE_URL = "http://tracking.viralmanager.com/tracking/";
static var CAMPAIGN_ID = "113";
static var PROJECT_ID = "firekills";
static var CAMPAIGN_LINK = "http://www.nhs.org.uk/";
static var CAMPAIGN_LINK_EXIT_LABEL = "exitCampaign";
static var ACTION_LABEL = "firekills";
static var active = true;
static var projectViewed = false;
}
Symbol 529 MovieClip [__Packages.com.teamrubber.SoundManager] Frame 0
class com.teamrubber.SoundManager
{
var linkList, tl, soundHolder, fadeList, panList, volume, sounds, soundVolumes, playFlag, playList, currentPlayListSound, EOFlistener, soundState;
function SoundManager (tl, linkList) {
this.linkList = linkList;
this.tl = tl;
soundHolder = null;
fadeList = [];
panList = [];
volume = 100;
sounds = {};
soundVolumes = {};
playFlag = true;
playList = [];
currentPlayListSound = null;
EOFlistener = null;
soundState = true;
setupSounds();
setNewVolume(volume);
}
function setupSounds() {
tl.createEmptyMovieClip("SOUNDS_MC", 99998);
soundHolder = tl.SOUNDS_MC;
soundHolder.cb = this;
soundHolder.onEnterFrame = function () {
this.cb.doLoop();
};
var _local3 = 0;
while (_local3 < linkList.length) {
var _local2 = linkList[_local3];
soundHolder.createEmptyMovieClip(_local2, 999 + _local3);
sounds[_local2] = new Sound(soundHolder[_local2]);
sounds[_local2].attachSound(_local2);
_local3++;
}
}
function endOfPlayListSubscribe(obj) {
EOFlistener = obj;
}
function addToPlayList(linkName) {
playList.push(linkName);
}
function addArrayToPlayList(links) {
var _local2 = 0;
while (_local2 < links.length) {
playList.push(links[_local2]);
_local2++;
}
}
function playListKickIfEmpty() {
if (playList.length == 0) {
playListKick();
}
}
function playListKick() {
if (playList.length > 0) {
var _local2 = playList.shift();
sounds[_local2].cb = this;
sounds[_local2].onSoundComplete = function () {
this.playing = false;
this.cb.endOfSound();
};
currentPlayListSound = sounds[_local2];
currentPlayListSound.link = _local2;
playSound(_local2, 0, false);
} else {
EOFlistener.endOfPlayList();
EOFlistener = null;
}
}
function stopAndEmptyPlayList() {
if (playList.length > 0) {
for (var _local2 in playList) {
playList[_local2].stop();
playList[_local2].playing = false;
}
playList = [];
}
currentPlayListSound.stop();
currentPlayListSound.playing = false;
currentPlayListSound = null;
}
function endOfSound() {
currentPlayListSound.onSoundComplete = null;
currentPlayListSound.playing = false;
playListKick();
}
function doLoop() {
for (var _local2 in fadeList) {
if (fadeSound(fadeList[_local2])) {
if (fadeList[_local2].fadeTo <= 0) {
}
delete fadeList[_local2];
}
}
for (var _local2 in panList) {
if (panSound(panList[_local2])) {
delete panList[_local2];
}
}
}
function playSound(linkname, loop, setOnComplete) {
if (playFlag && (!sounds[linkname].playing)) {
if (loop == undefined) {
loop = 0;
}
if (setOnComplete == undefined) {
setOnComplete = true;
}
if (setOnComplete) {
sounds[linkname].onSoundComplete = function () {
this.playing = false;
delete this.onSoundComplete;
};
}
sounds[linkname].start(0, loop);
sounds[linkname].playing = true;
}
}
function stopSound(linkname) {
sounds[linkname].stop(linkname);
sounds[linkname].playing = false;
sounds[linkname].onSoundComplete = null;
}
function setNewVolume(theVol_num, linkname) {
if (linkname == undefined) {
for (var _local3 in sounds) {
sounds[_local3].setVolume(theVol_num);
}
} else {
sounds[linkname].setVolume(theVol_num);
soundVolumes[linkname].vol = theVol_num;
if (theVol_num <= 0) {
}
}
}
function fadeSound(obj) {
obj.curVol = obj.curVol + obj.volInc;
if (obj.volInc < 0) {
if (obj.curVol <= obj.fadeTo) {
setNewVolume(obj.fadeTo, obj.linkName);
trace("sound target reached. KILL ? " + obj.kill);
if (obj.kill) {
stopSound(obj.linkName);
obj.kill = false;
}
obj = null;
return(true);
}
setNewVolume(obj.curVol, obj.linkName);
return(false);
}
if (obj.volInc > 0) {
if (obj.curVol >= obj.fadeTo) {
setNewVolume(obj.fadeTo, obj.linkName);
obj = null;
return(true);
}
setNewVolume(obj.curVol, obj.linkName);
return(false);
}
obj = null;
return(true);
}
function setSoundState(flag, override) {
playFlag = flag;
if (playFlag) {
soundState = true;
if (override) {
setNewVolume(100);
}
} else {
soundState = false;
if (override) {
setNewVolume(0);
}
}
}
function setupAfade(linkName, fadeTo, inc, kill) {
if (kill == undefined) {
kill = false;
}
fadeList[linkName] = {linkName:linkName, curVol:sounds[linkName].getVolume(), volInc:inc, fadeTo:fadeTo, kill:kill};
}
function cancelFade(linkName) {
delete fadeList[linkName];
}
function fadeOutAllSounds() {
for (var _local2 in sounds) {
setupAfade(_local2, 0, -10);
}
}
function fadeUpAllSounds() {
for (var _local2 in sounds) {
setupAfade(_local2, 100, 10);
}
}
function setNewPan(thePan_num, linkname) {
if (linkname == undefined) {
for (var _local3 in sounds) {
trace("set pan " + thePan_num);
sounds[_local3].setPan(thePan_num);
}
} else {
sounds[linkname].setPan(thePan_num);
}
}
function panSound(obj) {
obj.curPan = obj.curPan + obj.panInc;
if (obj.panInc < 0) {
if (obj.curPan <= obj.fadeTo) {
setNewPan(obj.fadeTo, obj.linkName);
obj = null;
return(true);
}
setNewPan(obj.curVol, obj.linkName);
return(false);
}
if (obj.panInc > 0) {
if (obj.curPan >= obj.fadeTo) {
setNewPan(obj.fadeTo, obj.linkName);
obj = null;
return(true);
}
setNewPan(obj.curPan, obj.linkName);
return(false);
}
obj = null;
return(true);
}
function setupAPan(linkName, fadeTo, inc) {
panList[linkName] = {linkName:linkName, curPan:sounds[linkName].getPan(), panInc:inc, fadeTo:fadeTo};
}
function cancelPan(linkName) {
delete panList[linkName];
}
}
Symbol 530 MovieClip [__Packages.com.bentempleton.DoorsGameControl] Frame 0
class com.bentempleton.DoorsGameControl extends MovieClip
{
var root, msgBox, doorHolder, char, charFb, gameLength, startSpeed, speedInc, increaseInt, lives, activeOffset, xMin, xDist, doorDepth, maxDoors, bounds, doors, timer, doorCount, missedDoors, xPos, stopPlay, startTime, speedTimer, level, doorInt, score, dispatchEvent, currDoor, speed;
function DoorsGameControl () {
super();
root = this;
mx.events.EventDispatcher.initialize(this);
init();
}
function init() {
msgBox = root.message_mc;
doorHolder = root.doors_mc;
char = root.char_mc;
charFb = root.charFb_mc;
charFb.origY = charFb._y;
gameLength = 30000;
startSpeed = 10;
speedInc = 0.2;
increaseInt = 1000;
lives = 1;
activeOffset = -50;
xMin = 300;
xDist = 200;
doorDepth = 0;
maxDoors = 10;
bounds = root.line_mc.getBounds(this);
doors = new Array("door4", "door5", "door6");
timer = new com.bentempleton.Timer(root, "countdown");
timer.addEventListener("endGame", this);
timer.min = 0;
timer.max = 15000;
timer.timerClip = root.interface_mc.timer_mc;
timer.timerText = root.interface_mc.time_txt;
root.interface_mc.doors_mc._visible = true;
}
function setup() {
}
function hardReset() {
speedInc = 0.2;
}
function reset(level) {
if ((level == undefined) || (level == 0)) {
level = 1;
} else if (level > 10) {
level = 10;
}
setLevel(level);
doScore(0);
timer.reset();
root.interface_mc.time_txt.text = "00";
for (var _local3 in doorHolder) {
doorHolder[_local3].removeMovieClip();
}
doorDepth = 0;
doorCount = 0;
missedDoors = 0;
xPos = 400;
doorHolder._x = 0;
attachDoor();
attachDoor();
root.test_mc._visible = false;
root.interface_mc.lives_mc.gotoAndStop(1);
char.play();
root.interface_mc.doors_mc.d_txt.text = "Doors remaining: " + (maxDoors - doorCount);
root.interface_mc.alphaTo(100, 0.5, "easeoutcubic");
}
function start() {
_global.snd.playSound("footsteps", 9999);
root.line_mc._alpha = 0;
stopPlay = false;
startTime = getTimer();
speedTimer = setInterval(this, "doSpeedInc", increaseInt);
if (level == 1) {
root.line_mc._width = 75;
} else if (level == 2) {
root.line_mc._width = 55;
} else {
root.line_mc._width = 50;
}
var ref = this;
doorHolder.onEnterFrame = function () {
this._x = this._x - ref.speed;
if (ref.stopPlay == false) {
ref.currDoor = this["door" + ref.doorCount];
var _local2 = ref.currDoor._x + ref.currDoor.targets[ref.currDoor.targets.length - 1]._x;
if ((Math.abs(this._x) > ((_local2 - ref.bounds.xMin) + 30)) && (!ref.currDoor.dead)) {
if (ref.currDoor.doorState == "open") {
ref.missedDoor(ref.currDoor);
} else {
ref.doorHighlight(ref.currDoor, true);
}
ref.root.interface_mc.doors_mc.d_txt.text = "Doors remaining: " + ((ref.maxDoors - ref.doorCount) - 1);
if (ref.currDoor.lastDoor) {
ref.stopPlay = true;
ref.timer.max = 2000;
ref.timer.startTimer();
}
}
if (Math.abs(this._x) > ((ref.currDoor._x + ref.bounds.xMax) + ref.activeOffset)) {
ref.doorCount++;
ref.currDoor = this["door" + ref.doorCount];
var _local3 = this["door" + (ref.doorCount - 2)];
ref.removeDoor.removeMovieClip();
}
}
};
Key.addListener(this);
timer.setup();
doorInt = setInterval(this, "attachDoor", 1000);
displayMessage("start", 5);
root.replay_btn._visible = false;
}
function endGame() {
killGame(true);
}
function killGame(success) {
var ref = this;
Key.removeListener(this);
timer.killTimer();
clearInterval(doorInt);
clearInterval(speedTimer);
cleanUp();
var _local4 = Math.round(score / 500);
_local4 = _local4 + (lives - missedDoors);
if (((_local4 < 0) || (success == false)) || (lives <= 0)) {
_local4 = 0;
success = false;
}
root.replay_btn._visible = true;
root.replay_btn.onRelease = function () {
ref.reset();
ref.start();
};
trace("Doors : game success " + success);
if (success) {
_global.snd.playSound("game_end_right", 1);
} else {
_global.snd.playSound("game_end_wrong", 1);
}
root.interface_mc.alphaTo(0, 0.5, "easeoutcubic");
dispatchEvent({type:"game_complete", score:score, saved:_local4, success:success});
}
function onKeyDown() {
if (Key.isDown(32)) {
manageKeyPress();
}
}
function manageKeyPress() {
_global.snd.playSound("object_remove", 1);
var _local4 = (currDoor.targets[currDoor.hitNum]._x + currDoor._x) - bounds.xMin;
var _local3 = (currDoor.targets[currDoor.hitNum]._x + currDoor._x) - bounds.xMax;
var _local6 = _local4 - _local3;
var _local5 = Math.abs(doorHolder._x);
var _local7 = Math.abs((_local6 / 2) - (_local5 - _local3));
if (((_local5 < _local4) && (Math.abs(doorHolder._x) > _local3)) && (!currDoor.targets[currDoor.hitNum].hit)) {
currDoor.targets[currDoor.hitNum].hit = true;
currDoor.hitNum++;
var _local8 = ((currDoor["c" + currDoor.hitNum]._currentframe == 1) ? 2 : 1);
currDoor["c" + currDoor.hitNum].gotoAndStop(_local8);
currDoor.score = currDoor.score + (Math.round((_local6 / 2) - _local7) * 4);
trace("DOOR SCORE : " + currDoor.score);
if (currDoor.hitNum == currDoor.targets.length) {
if (currDoor.doorState == "open") {
currDoor.doorState = "closed";
currDoor.gotoAndStop("closed");
_global.snd.playSound(currDoor.snd, 1);
doScore(currDoor.score);
displayMessage("success");
} else {
currDoor.gotoAndStop("open");
currDoor.doorState = "open";
displayMessage("fail");
}
}
} else {
displayMessage("oops");
doScore(-100);
charHighlight("error");
trace("FLOOR HIT");
}
}
function attachDoor() {
var _local5 = Math.floor(Math.random() * doors.length);
var _local4 = doors[_local5];
if (doorDepth < 2) {
_local4 = doors[0];
}
var _local3 = doorHolder.attachMovie(_local4, "door" + doorDepth, doorDepth, {_x:xPos});
_local3.doorState = ((Math.random() > 0.15) ? "open" : "closed");
if ((doorHolder["door" + (doorDepth - 1)].origState == "closed") || (doorDepth < 2)) {
_local3.doorState = "open";
}
_local3.origState = _local3.doorState;
_local3.gotoAndStop(_local3.doorState);
_local3.depth = doorDepth;
_local3.hitNum = 0;
_local3.score = 0;
_local3.snd = ((_local5 > 0) ? "door_close_double" : "door_close");
doorDepth++;
xPos = xPos + (Math.round(Math.random() * xDist) + xMin);
var _local2 = 1;
while (_local2 <= 3) {
_local3["t" + _local2]._alpha = 0;
_local3["c" + _local2].gotoAndStop(_local3.doorState);
_local2++;
}
if (doorDepth == maxDoors) {
clearInterval(doorInt);
_local3.lastDoor = true;
}
}
function doorHighlight(clip, boo) {
if (!clip.highlighted) {
clip.highlighted = true;
if (boo == undefined) {
boo = true;
}
var _local4 = (boo ? "success" : "error");
if (boo) {
_global.snd.playSound("in_game_right", 1);
} else {
_global.snd.playSound("in_game_wrong", 1);
}
charHighlight(_local4);
}
}
function charHighlight(fr) {
charFb.stopTween();
charFb._alpha = 100;
charFb.gotoAndStop(fr);
charFb._visible = true;
charFb.alphaTo(0, 0.3, "easeoutcubic", 0.5, function () {
this.gotoAndStop(1);
});
charFb._y = charFb.origY;
charFb.ySlideTo(charFb.origY - 40, 1, "easeoutcubic");
}
function missedDoor(clip) {
clip.dead = true;
doorHighlight(clip, false);
missedDoors++;
doScore(-250);
root.interface_mc.lives_mc.gotoAndStop(missedDoors + 1);
displayMessage("oops");
if (missedDoors == lives) {
killGame(false);
}
}
function displayMessage(msg, delay) {
function resetMsg() {
ref.displayMessage("start");
}
if (msg != "start") {
return(undefined);
}
if (delay == undefined) {
delay = 0.5;
}
msgBox._visible = true;
msgBox.gotoAndStop(msg);
if (msg == "success") {
msgBox.t_txt.text = "KEEP IT SHUT!";
} else if (msg == "fail") {
msgBox.t_txt.text = "DONT OPEN THEM!";
} else if (msg == "oops") {
msgBox.gotoAndStop("fail");
msgBox.t_txt.text = "OOOPS! YOU MISSED";
} else if (msg == "gameover") {
msgBox.gotoAndStop("success");
msgBox.t_txt.text = "WELL DONE, YOURE DONE";
} else {
msgBox.t_txt.text = "";
}
var ref = this;
msgBox.stopTween();
msgBox.val = 0;
if (msg != "start") {
msgBox.tween(["val"], [100], 0.3, "easeoutcubic", 2, resetMsg);
}
}
function doSpeedInc() {
speed = speed + speedInc;
}
function doScore(val) {
if (val == 0) {
score = 0;
} else {
score = score + val;
if (score < 0) {
score = 0;
}
}
root.interface_mc.score_txt.text = score;
}
function cleanUp() {
delete doorHolder.onEnterFrame;
char.stop();
_global.snd.stopSound("footsteps");
}
function setLevel(val) {
var _local2 = 0;
if (_local2 < 0) {
_local2 = 0;
}
if (val > 5) {
val = 5;
_local2 = 3;
speedInc = speedInc + 0.05;
}
level = val;
var _local4 = (val * 2) - 1;
speed = Math.floor(9 + (_local4 / 2)) + _local2;
trace("Doors :: game level " + _local4);
}
}
Symbol 531 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 532 MovieClip [__Packages.com.bentempleton.Timer] Frame 0
class com.bentempleton.Timer
{
var root, timerType, updateFreq, alarms, interval, pauseTotal, pauseFrom, startTime, elapsed, max, isRunning, currTime, dispatchEvent, min, addEventListener, timerText, timerClip;
function Timer (root, timerType) {
this.root = root;
this.timerType = ((timerType != undefined) ? (timerType) : "countup");
mx.events.EventDispatcher.initialize(this);
init();
}
function init() {
updateFreq = 100;
alarms = new Array();
}
function setup() {
reset();
updateTimer();
}
function reset() {
clearInterval(interval);
pauseTotal = 0;
pauseFrom = 0;
startTime = getTimer();
if (timerType == "countup") {
elapsed = 0;
} else {
elapsed = max;
}
updateInterface();
}
function startTimer() {
reset();
startTime = getTimer();
isRunning = true;
interval = setInterval(this, "updateTimer", updateFreq);
updateTimer();
}
function killTimer() {
isRunning = false;
updateTimer();
clearInterval(interval);
return(elapsed);
}
function pauseTimer(boo) {
if (boo) {
pauseFrom = getTimer();
clearInterval(interval);
} else if (isRunning) {
var _local2 = getTimer() - pauseFrom;
pauseTotal = pauseTotal + _local2;
startTime = startTime + _local2;
clearInterval(interval);
interval = setInterval(this, "updateTimer", updateFreq);
}
}
function updateTimer() {
currTime = getTimer();
if (isRunning) {
checkAlarms();
if (timerType == "countup") {
elapsed = currTime - startTime;
if ((elapsed >= max) && (max != undefined)) {
dispatchEvent({type:"endGame", finalTime:elapsed});
elapsed = max;
}
} else if (timerType == "countdown") {
var _local2 = currTime - startTime;
elapsed = max - _local2;
if ((elapsed <= (min + 100)) && (min != undefined)) {
dispatchEvent({type:"endGame", finalTime:elapsed});
elapsed = min;
killTimer();
}
}
}
updateInterface();
}
function checkAlarms() {
if (alarms.length > 0) {
var _local2 = 0;
while (_local2 < alarms.length) {
if (alarms[_local2].pending && (alarms[_local2].val < elapsed)) {
alarms[_local2].pending = false;
dispatchEvent({type:alarms[_local2].type, elapsed:elapsed});
}
_local2++;
}
}
}
function setLoopAlarm(interval, num, type, listener) {
addEventListener(type, listener);
var _local2 = 1;
while (_local2 <= num) {
alarms.push({val:interval * _local2, type:type, pending:true, loopNum:_local2 + 1});
_local2++;
}
}
function updateInterface() {
timerText.text = com.bentempleton.Utils.formatTime(elapsed, "s");
var _local2 = max - elapsed;
if (_local2 == 0) {
_local2 = 1;
}
var _local3 = Math.ceil(100 * (_local2 / max));
timerClip.gotoAndStop(_local3);
}
}
Symbol 533 MovieClip [__Packages.com.bentempleton.Utils] Frame 0
class com.bentempleton.Utils
{
function Utils () {
init();
setup();
}
function init() {
}
function setup() {
}
static function boxStretch(clip, val, plane) {
if (plane == undefined) {
plane == "_y";
}
var _local2 = (((plane == "_y") || (plane == undefined)) ? "_height" : "_width");
var _local3 = clip.cap_mc;
var _local4 = clip.mid_mc;
var _local5 = clip.base_mc;
_local3[plane] = val - _local3[_local2];
_local4[_local2] = (_local3[plane] + 1) - (_local5[_local2] - 1);
_local4[plane] = _local5[_local2] - 1;
}
static function writeToTF(tf, t, stylesheet) {
tf.wordWrap = true;
tf.multiline = true;
if (stylesheet != undefined) {
tf.styleSheet = stylesheet;
tf.html = true;
if ((t != undefined) && (t != null)) {
tf.htmlText = t;
}
} else if ((t != undefined) && (t != null)) {
tf.text = t;
}
}
static function applyTint(clip, hex) {
var _local1 = hexToRgb(hex);
var _local2 = new flash.filters.ColorMatrixFilter([_local1.rb / 255, 0, 0, 0, 0, 0, _local1.gb / 255, 0, 0, 0, 0, 0, _local1.bb / 255, 0, 0, 0, 0, 0, 1, 0]);
clip.filters = [_local2];
}
static function setColour(clip, colour) {
var _local1 = new Color(clip);
_local1.setTransform(colour);
}
static function hexToRgb(hex) {
var _local2 = hex >> 16;
var _local1 = hex ^ (_local2 << 16);
var _local3 = _local1 >> 8;
var _local4 = _local1 ^ (_local3 << 8);
return({rb:_local2, gb:_local3, bb:_local4});
}
static function shortenSentence(str, limit) {
var _local3 = str.split(" ");
var _local2 = "";
var _local1 = 0;
while ((_local2.length < limit) && (_local1 < _local3.length)) {
_local2 = _local2 + (_local3[_local1] + " ");
_local1++;
}
_local2 = _local2 + "...";
return(_local2);
}
static function TextField_resizeToFit(field, dir, maxHeight) {
if (dir == undefined) {
dir = "down";
}
var _local3 = false;
var _local4 = 20;
var _local5 = ((maxHeight == undefined) ? (field._height) : (maxHeight));
while ((!_local3) && (_local4 > 0)) {
_local4--;
var _local1 = field.getTextFormat();
if (dir == "down") {
_local1.size--;
} else {
_local1.size++;
}
field.setTextFormat(_local1);
if (dir == "down") {
if (field.textHeight < _local5) {
_local3 = true;
}
} else if (field.textHeight > _local5) {
_local1.size--;
field.setTextFormat(_local1);
_local3 = true;
}
}
}
static function capFirstLetters(str) {
function capFirstLetter(str) {
str = str.toUpperCase();
var _local2 = str.slice(1);
_local2 = _local2.toLowerCase();
str = str.slice(0, 1) + _local2;
return(str);
}
str = capFirstLetter(str);
var _local4 = str.split("-");
if (_local4.length > 1) {
var _local2 = 0;
while (_local2 < _local4.length) {
_local4[_local2] = capFirstLetter(_local4[_local2]);
_local2++;
}
str = _local4.join("-");
}
var _local3 = str.split(" ");
if (_local3.length > 1) {
var _local1 = 0;
while (_local1 < _local3.length) {
_local3[_local1] = capFirstLetter(_local3[_local1]);
_local1++;
}
str = _local3.join(" ");
}
return(str);
}
static function createRect(root, bounds, colour, opacity) {
if (bounds.x == undefined) {
bounds.x = 0;
}
if (bounds.y == undefined) {
bounds.y = 0;
}
if (bounds.w == undefined) {
bounds.w = 500;
}
if (bounds.h == undefined) {
bounds.h = 500;
}
if (colour == undefined) {
colour = 13421772 /* 0xCCCCCC */;
}
if (opacity == undefined) {
opacity = 100;
}
root.beginFill(colour, opacity);
root.moveTo(bounds.x, bounds.y);
root.lineTo(bounds.x + bounds.w, bounds.y);
root.lineTo(bounds.x + bounds.w, bounds.y + bounds.h);
root.lineTo(bounds.x, bounds.y + bounds.h);
root.lineTo(bounds.x, bounds.y);
root.endFill();
return(root);
}
static function createLine(root, points, lineStyle, depth) {
if (depth == undefined) {
depth = root.getNextHighestDepth();
}
if (lineStyle == undefined) {
lineStyle = new Object({});
}
if (lineStyle.weight == undefined) {
lineStyle.weight = 1;
}
if (lineStyle.colour == undefined) {
lineStyle.colour = 16711680 /* 0xFF0000 */;
}
if (lineStyle.alpha == undefined) {
lineStyle.alpha = 100;
}
var _local3 = root.createEmptyMovieClip("newLine" + depth, depth);
_local3.lineStyle(lineStyle.weight, lineStyle.colour, lineStyle.alpha);
_local3.moveTo(points[0].x, points[0].y);
var _local1 = 1;
while (_local1 < points.length) {
_local3.lineTo(points[_local1].x, points[_local1].y);
_local1++;
}
return(_local3);
}
static function createCircle(root, props, depth, TL) {
if (props.x == undefined) {
props.x = 0;
}
if (props.y == undefined) {
props.y = 0;
}
if (props.r == undefined) {
props.r = 50;
}
depth = ((depth == undefined) ? (root.getNextHighestDepth()) : (depth));
var _local2 = root.createEmptyMovieClip("circle", depth);
_local2.lineStyle(0, 16777215);
_local2.moveTo(props.x + props.r, props.y);
_local2.curveTo(props.r + props.x, (0.414213562373095 * props.r) + props.y, (0.707106781186547 * props.r) + props.x, (0.707106781186547 * props.r) + props.y);
_local2.curveTo((0.414213562373095 * props.r) + props.x, props.r + props.y, props.x, props.r + props.y);
_local2.curveTo((-0.414213562373095 * props.r) + props.x, props.r + props.y, (-0.707106781186547 * props.r) + props.x, (0.707106781186547 * props.r) + props.y);
_local2.curveTo((-props.r) + props.x, (0.414213562373095 * props.r) + props.y, (-props.r) + props.x, props.y);
_local2.curveTo((-props.r) + props.x, (-0.414213562373095 * props.r) + props.y, (-0.707106781186547 * props.r) + props.x, (-0.707106781186547 * props.r) + props.y);
_local2.curveTo((-0.414213562373095 * props.r) + props.x, (-props.r) + props.y, props.x, (-props.r) + props.y);
_local2.curveTo((0.414213562373095 * props.r) + props.x, (-props.r) + props.y, (0.707106781186547 * props.r) + props.x, (-0.707106781186547 * props.r) + props.y);
_local2.curveTo(props.r + props.x, (-0.414213562373095 * props.r) + props.y, props.r + props.x, props.y);
if (TL) {
_local2._x = _local2._x + props.r;
_local2._y = _local2._y + props.r;
}
}
static function addDropShadow(clip) {
var _local6 = 0;
var _local2 = 90;
var _local5 = 0;
var _local13 = 0.38;
var _local9 = 5;
var _local8 = 5;
var _local11 = 1;
var _local3 = 3;
var _local7 = false;
var _local12 = false;
var _local10 = false;
var _local4 = new flash.filters.DropShadowFilter(_local6, _local2, _local5, _local13, _local9, _local8, _local11, _local3, _local7, _local12, _local10);
var _local1 = new Array();
_local1.push(_local4);
clip.filters = _local1;
}
static function layoutMedia(clip, maxW, maxH) {
var _local7;
var _local4;
var _local5;
var _local3;
var _local2;
var _local8;
var _local6;
if (clip._width > clip._height) {
_local7 = "_xscale";
_local4 = "_yscale";
_local5 = "_width";
_local3 = "_height";
_local2 = "_y";
_local8 = maxH;
_local6 = maxW;
} else {
_local7 = "_yscale";
_local4 = "_xscale";
_local5 = "_height";
_local3 = "_width";
_local2 = "_x";
_local8 = maxW;
_local6 = maxH;
}
clip[_local5] = _local6;
clip[_local4] = clip[_local7];
clip[_local2] = (_local8 / 2) - (clip[_local3] / 2);
}
static function restrictSizeMaintainRatio(clip, maxW, maxH, align, minScalePercent) {
var _local12 = maxW - clip._width;
var _local11 = maxH - clip._height;
var _local7;
var _local4;
var _local5;
var _local9;
var _local8;
var _local10;
var _local6;
if (_local12 < _local11) {
_local7 = "_xscale";
_local4 = "_yscale";
_local5 = "_width";
_local9 = "_height";
_local8 = "_y";
_local10 = maxH;
_local6 = maxW;
} else {
_local7 = "_yscale";
_local4 = "_xscale";
_local5 = "_height";
_local9 = "_width";
_local8 = "_x";
_local10 = maxW;
_local6 = maxH;
}
clip[_local5] = _local6;
clip[_local4] = clip[_local7];
if (clip.contentPath != undefined) {
clip.setSize(maxW, maxH);
if (align == "c") {
clip._x = -(clip.width / 2);
clip._y = -(clip.height / 2);
} else {
clip._x = (maxW / 2) - (clip.width / 2);
clip._y = (maxH / 2) - (clip.height / 2);
}
} else {
clip[_local5] = _local6;
clip[_local4] = clip[_local7];
if ((minScalePercent != undefined) && (clip._xscale <= minScalePercent)) {
}
if (align == "c") {
clip._x = -(clip._width / 2);
clip._y = -(clip._height / 2);
} else if (align == "tl") {
clip._x = Stage.width;
clip._y = 0;
} else {
clip[_local8] = (_local10 / 2) - (clip[_local9] / 2);
}
}
}
static function centreMaxDimension(clip) {
var _local6 = Stage.width - clip._width;
var _local5 = Stage.height - clip._height;
var _local4;
var _local3;
var _local2;
if (_local6 > _local5) {
_local4 = "_xscale";
_local3 = "_yscale";
_local2 = "width";
} else {
_local4 = "_yscale";
_local3 = "_xscale";
_local2 = "height";
}
clip["_" + _local2] = Stage[_local2];
clip[_local3] = clip[_local4];
clip._x = Stage.width;
clip._y = Stage.height;
}
static function splitArrayTypes(arr, sortBy, type) {
arr.sortOn(sortBy);
var _local5;
var _local4;
var _local1 = 0;
while (_local1 < arr.length) {
_local4[arr[_local1][sortBy]] = new Array();
if ((_local1 == 0) || (arr[_local1][sortBy] != arr[_local1 - 1][sortBy])) {
_local5 = arr[_local1][sortBy];
_local4[_local5] = new Array();
}
_local4[_local5].push(arr[_local1]);
_local1++;
}
if (type == undefined) {
return(_local4);
}
return(_local4[type]);
}
static function splitArrayTypes2(arr, sortBy, type) {
arr.sortOn(sortBy);
var _local3;
var _local5 = new Object();
var _local1 = 0;
while (_local1 < arr.length) {
if ((_local1 == 0) || (arr[_local1][sortBy] != arr[_local1 - 1][sortBy])) {
_local3 = arr[_local1][sortBy];
_local5[_local3] = new Array();
}
trace((((_local3 + " ") + arr[_local1][sortBy]) + " ") + _local5[_local3].length);
_local5[_local3].push(arr[_local1]);
_local1++;
}
if (type == undefined) {
return(_local5);
}
return(_local5[type]);
}
static function traceLV(obj, t) {
if (t == undefined) {
t = "";
}
trace(t + " ---------------------");
for (var _local2 in obj) {
trace((("| " + _local2) + " : ") + obj[_local2]);
}
trace(newline);
}
static function traceOBJ(obj, t) {
if (t == undefined) {
t = "*";
}
trace(t + " ---------------------");
for (var _local2 in obj) {
if (typeof(obj[_local2]) == "object") {
traceOBJ(obj[_local2], "---- " + _local2);
trace(("--- (" + _local2) + ") ---------------------");
} else {
trace((("| " + _local2) + " ") + obj[_local2]);
}
}
}
static function copyObj(obj) {
var _local2 = new Object();
for (var _local3 in obj) {
if (obj[_local3][0] != undefined) {
_local2[_local3] = obj[_local3].concat();
} else if (typeof(obj[_local3]) == "object") {
_local2[_local3] = copyObj(obj[_local3]);
} else {
_local2[_local3] = obj[_local3];
}
}
return(_local2);
}
static function stripZeros(s) {
var _local2 = s.split("-");
var _local1 = 0;
while (_local1 < _local2.length) {
if ((_local2[_local1].charAt(0) == "0") || (_local2[_local1].charAt(0) == 0)) {
_local2[_local1] = _local2[_local1].slice(1);
}
_local1++;
}
return(_local2.join("-"));
}
static function placeZeros(s) {
var _local2 = s.split("-");
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].length == 1) {
_local2[_local1] = "0" + _local2[_local1];
}
_local1++;
}
return(_local2.join("-"));
}
static function traceToBox(obj, t) {
if (t == undefined) {
t = "";
}
_global.t.text = _global.t.text + (t + " ---------------------");
for (var _local3 in obj) {
_global.t.text = _global.t.text + ((("\n| " + _local3) + " ") + obj[_local3]);
}
_global.t.text = _global.t.text + newline;
}
static function cb() {
return(getTimer());
}
static function isDefined(t) {
if (((((t == undefined) || (t == "")) || (t == null)) || (t == NaN)) || (t == "NAN")) {
return(false);
}
return(true);
}
static function randBetween(a, b) {
return(Math.round((Math.random() * (b - a)) + a));
}
static function randAround(a, b) {
var _local1 = Math.random() * b;
_local1 = (-(b / 2)) + _local1;
return(Math.round(a + _local1));
}
static function fullURL(t) {
var _local2 = t.slice(0, 3);
trace((("fullURL() - " + t) + " ") + _local2);
if (_local2 == "www") {
t = "http://" + t;
}
return(t);
}
static function formatTime(milliseconds, toReturn) {
if (toReturn == undefined) {
toReturn = "s";
}
var _local2 = Math.floor(milliseconds / 10);
var _local1 = Math.floor(_local2 / 100);
var _local3 = Math.floor(_local1 / 60);
_local2 = _local2 % 100;
_local1 = _local1 % 60;
_local3 = _local3 % 60;
if (isNaN(_local2)) {
_local2 = 0;
}
if (isNaN(_local1)) {
_local1 = 0;
}
if (isNaN(_local3)) {
_local3 = 0;
}
if (_local2 < 10) {
_local2 = "0" + _local2;
}
if (_local1 < 10) {
_local1 = "0" + _local1;
}
if (_local3 < 10) {
_local3 = "0" + _local3;
}
switch (toReturn) {
case "m-s-c" :
return((((_local3 + ":") + _local1) + ":") + _local2);
case "m-s" :
return((_local3 + ":") + _local1);
case "s" :
return(_local1);
}
}
static function addCommas(t) {
var _local3 = new Array();
var _local2 = 0;
var _local1 = t.length;
while (_local1 >= 0) {
_local3.push(t.charAt(_local1));
if ((((_local2 % 3) == 0) && (_local2 != 0)) && (_local1 != 0)) {
_local2 = 0;
_local3.push(",");
}
_local2++;
_local1--;
}
_local3.reverse();
var _local5 = _local3.join("");
return(_local5);
}
static function tabIndexing(clips) {
var _local1 = 0;
while (_local1 < clips.length) {
clips[_local1].tabIndex = _local1;
_local1++;
}
}
static function definedText(t) {
if ((((t == undefined) || (t == "undefined")) || (t == null)) || (t == "null")) {
return("");
}
return(t);
}
static function attachRollOffButt(ref, root, depth, h) {
if (h == undefined) {
h = Stage.height;
}
if (depth == undefined) {
depth = 0;
}
var _local1 = new Object({x:0, y:0});
root.globalToLocal(_local1);
underButtons[ref] = root.attachMovie("underBtn", "underBtn", depth, {_x:_local1.x, _y:_local1.y, _width:Stage.width, _height:h});
return(underButtons[ref]);
}
static function killRollOffButt(ref) {
if (ref != undefined) {
underButtons[ref].removeMovieClip();
} else {
for (var _local1 in underButtons) {
underButtons[_local1].removeMovieClip();
}
}
}
static var underButtons = new Object();
}
Symbol 534 MovieClip [__Packages.com.bentempleton.ObjectsGame] Frame 0
class com.bentempleton.ObjectsGame extends MovieClip
{
var routeClear, ROOT, level, score, firstDoor_shown, firstDoor, blocker, dispatchEvent, removeMovieClip;
function ObjectsGame () {
super();
mx.events.EventDispatcher.initialize(this);
routeClear.startX = routeClear._x;
routeClear.startY = routeClear._y;
}
function reset(level) {
trace("Objects:: reset()");
ROOT = this;
door_num = 0;
door_z = 10000;
if ((level == undefined) || (level == null)) {
level = 0;
}
if (level > 5) {
level = 5;
}
this.level = level;
score = 0;
score_update(0);
game_routeClear_hide();
var _local2 = 1;
while (_local2 < 10) {
ROOT["door_" + _local2].removeMovieClip();
_local2++;
}
firstDoor_shown = false;
firstDoor = game_newDoor();
firstDoor._visible = true;
firstDoor._alpha = 100;
blocker.swapDepths(ROOT.getNextHighestDepth());
blocker.useHandCursor = false;
blocker._visible = true;
blocker.onPress = function () {
};
}
function game_end(isWin) {
kill();
if (isWin == false) {
score = 0;
}
trace(("Objects:: Dispatch -> game_complete(" + score) + ")");
dispatchEvent({type:"game_complete", target:this, score:score, success:isWin});
}
function kill() {
var _local2 = 0;
while (_local2 < 10) {
this["door_" + _local2].removeMovieClip();
_local2++;
}
for (var _local3 in ROOT) {
gs.TweenLite.killTweensOf(ROOT[_local3]);
}
gs.TweenLite.killDelayedCallsTo(game_startANewDoor);
gs.TweenLite.killDelayedCallsTo(killdoor);
game_routeClear_hide();
}
function start() {
trace("Objects:: start()");
blocker._visible = false;
delete blocker.onPress;
start_gameEngine();
}
function game_startANewDoor() {
if (routeClear._alpha > 0) {
return(undefined);
}
var _local2 = null;
if (firstDoor_shown == false) {
_local2 = firstDoor;
firstDoor_shown = true;
} else {
_local2 = game_newDoor();
}
game_doorStart(_local2);
}
function start_gameEngine() {
var _local3 = getLevel_timing();
var _local2 = 0;
while (_local2 < 6) {
gs.TweenLite.delayedCall(_local3 * _local2, game_startANewDoor, new Array(), this);
_local2++;
}
}
function self_random(high, low) {
return(Math.floor(Math.random() * (high - low)) + low);
}
function game_newDoor() {
door_num++;
door_z--;
var _local2 = ROOT.attachMovie("door_1", "door_" + door_num, door_z, {_xscale:100, _yscale:100, _alpha:0, _visible:false});
_local2.level = door_num;
door_init(_local2);
return(_local2);
}
function game_openDoor(door) {
door.door.gotoAndStop(2);
return(door);
}
function game_doorMax(door) {
door.onEnterFrame = function () {
this._alpha = this._alpha - 30;
if (this._alpha <= 0) {
delete this.onEnterFrame;
}
};
removeMovieClip();
}
function door_init(door) {
door._xscale = game_scaleStart;
door._yscale = game_scaleStart;
door._x = 180;
door._y = 70;
var _local30 = self_random(0, 100);
if (_local30 > -40) {
door.gotoAndStop("door_2");
}
door_tick_hide(door);
door_cross_hide(door);
var _local12 = new Object();
var _local14 = new Array("kite", "shoes", "bag", "cat");
var _local15 = new Array("ball", "guitar", "snowboard", "cone");
_local14 = array_shuffle(_local14);
_local15 = array_shuffle(_local15);
var _local11 = new Array();
var _local27 = getLevel_objects(door.level);
var _local21 = _local27.easy;
var _local19 = _local27.hard;
var _local10 = _local21;
while (_local10 > 0) {
_local11.push(_local15.pop());
_local10--;
}
_local10 = _local19;
while (_local10 > 0) {
_local11.push(_local14.pop());
_local10--;
}
var _local32 = self_random(100, 1);
if (_local32 > 95) {
_local11 = new Array("cat");
}
_local12 = _local11;
var _local9 = new Object();
var _local8 = new Object();
_local8.point_top_1 = false;
_local8.point_top_2 = false;
_local8.point_top_3 = false;
_local8.point_floor_1 = false;
_local8.point_floor_2 = false;
_local8.point_floor_3 = false;
_local8.point_floor_4 = false;
_local8.point_floor_5 = false;
_local8.point_floor_6 = false;
for (var _local24 in _local12) {
var _local6 = _local12[_local24];
var _local4 = "floor";
if (((_local6 == "shoes") || (_local6 == "kite")) || (_local6 == "bag")) {
_local4 = "top";
}
var _local7 = false;
while (!_local7) {
var _local3 = self_random(7, 1);
if (_local8[(("point_" + _local4) + "_") + _local3] == false) {
var _local5 = door[(("point_" + _local4) + "_") + _local3].attachMovie("objects_" + _local6, _local6, 1, {});
_local9[_local5] = _local5;
if ((_local4 == "floor") && (_local3 >= 4)) {
_local5.isFlip = true;
_local5.onEnterFrame = function () {
this._xscale = this._xscale * -1;
delete this.onEnterFrame;
};
}
_local8[(("point_" + _local4) + "_") + _local3] = true;
_local7 = true;
}
}
}
door.game_objCount = _local12.length;
var ref = this;
var loseObj = function () {
door.game_objCount--;
if ((door.level == 6) && (door.game_objCount == 0)) {
ref.game_openDoor(door);
var _local7 = function () {
ref.game_end(true);
};
gs.TweenLite.delayedCall(2, _local7);
ref.game_routeClear_show();
for (var _local4 in door) {
for (var _local1 in door[_local4]) {
delete door[_local4][_local1].onPress;
}
}
delete door.back_1.onPress;
delete door.door.onPress;
return(undefined);
}
if (door.game_objCount > 0) {
return(undefined);
}
ref.game_openDoor(door);
ref.door_tick_show(door);
var _local3 = 150;
if (ref.level == 1) {
_local3 = 230;
}
if (ref.level == 2) {
_local3 = 240;
}
if (ref.level == 3) {
_local3 = 250;
}
if (ref.level == 4) {
_local3 = 260;
}
if (ref.level == 5) {
_local3 = 280;
}
var _local6 = 265;
var _local5 = (100 / _local6) * door._xscale;
_local5 = 100 - _local5;
var _local2 = _local3 * (_local5 / 100);
if (ref.level == 3) {
_local2 = _local2 * 1.2;
}
if (ref.level == 4) {
_local2 = _local2 * 1.2;
}
if (ref.level == 5) {
_local2 = _local2 * 1.3;
}
ref.score_update(_local2);
};
var _local20 = function () {
var _local3 = this.pointRemove;
var _local4 = 250;
if (_local3 < 0) {
_local4 = -250;
}
this.moveTween = gs.TweenLite.to(this, 0.8, {ease:gs.easing.Quad.easeOut, _x:_local3, _rotation:_local4, _y:"-180"});
_global.snd.playSound("in_game_action", 1);
_global.snd.playSound("object_remove", 1);
var _local5 = this._name;
_global.snd.playSound("object_sounds_remove_" + _local5);
this.gotoAndStop("move");
loseObj();
delete this.onPress;
};
var _local18 = function () {
gs.TweenLite.removeTween(this.myColour);
this.myColour = gs.TweenLite.to(this, 0.1, {tint:3772982, overwrite:0});
_global.snd.playSound("button_rollover", 1);
};
var _local22 = function () {
gs.TweenLite.removeTween(this.myColour);
this.myColour = gs.TweenLite.to(this, 0.1, {tint:null, overwrite:0});
};
for (var _local24 in _local9) {
var _local5 = _local9[_local24];
_local5.pointRemove = 600;
if (_local5.isFlip == true) {
_local5.pointRemove = -600;
}
_local5.onPress = _local20;
_local5.onRollOver = _local18;
_local5.onRollOut = (_local5.onReleaseOutside = _local22);
}
return(door);
}
function door_tick_show(door) {
door.tick._xscale = (door.tick._yscale = 50);
door.tick._alpha = 100;
door.tick.myShow = gs.TweenLite.to(door.tick, 1, {delay:0.7, ease:gs.easing.Strong.easeOut, _alpha:0});
_global.snd.playSound("objects_doors_open", 1);
}
function door_tick_hide(door) {
gs.TweenLite.removeTween(door.tick.myShow);
door.tick._alpha = 0;
}
function door_cross_show(door) {
door.cross.myShow = gs.TweenLite.to(door.cross, 0.5, {_y:"-10", _alpha:100});
door.cross._xscale = (door.cross._yscale = 100);
door.cross.myShow = gs.TweenLite.to(door.cross, 0.9, {ease:gs.easing.Bounce.easeOut, _yscale:50, _xscale:50, _alpha:100});
_global.snd.playSound("game_end_wrong", 1);
}
function door_cross_hide(door) {
gs.TweenLite.removeTween(door.cross.myShow);
door.cross._alpha = 0;
door.cross._y = 0;
}
function game_routeClear_show() {
var _local3 = routeClear;
var _local5 = this;
_global.snd.playSound("game_end_right", 1);
routeClear.myShow = gs.TweenLite.to(routeClear, 1, {_alpha:100});
}
function game_routeClear_hide() {
routeClear._x = routeClear.startX;
routeClear._y = routeClear.startY;
routeClear._alpha = 0;
delete routeClear.onEnterFrame;
routeClear._xscale = (routeClear._yscale = 40);
}
function score_update(scoreSent) {
score = score + scoreSent;
dispatchEvent({type:"score_update", target:this, score:score});
trace(("Objects:: score_update(" + score) + ")");
}
function getLevel_timing() {
var _local1 = 3;
return(_local1);
}
function getLevel_objects(door_level) {
var _local2 = new Object();
var _local3 = new Object();
_local3.level_1 = new Array({e:1, h:0}, {e:2, h:0}, {e:2, h:0}, {e:3, h:0}, {e:3, h:0}, {e:2, h:1});
_local3.level_2 = new Array({e:2, h:0}, {e:2, h:0}, {e:2, h:1}, {e:2, h:1}, {e:2, h:1}, {e:2, h:1});
_local3.level_3 = new Array({e:1, h:1}, {e:1, h:1}, {e:1, h:2}, {e:2, h:2}, {e:2, h:2}, {e:2, h:2});
_local3.level_4 = new Array({e:2, h:1}, {e:1, h:2}, {e:2, h:2}, {e:2, h:3}, {e:3, h:3}, {e:3, h:3});
_local3.level_5 = new Array({e:2, h:2}, {e:2, h:3}, {e:2, h:3}, {e:3, h:3}, {e:3, h:4}, {e:3, h:4});
_local2.easy = _local3["level_" + level][door_level - 1].e;
_local2.hard = _local3["level_" + level][door_level - 1].h;
if (_local2.easy == undefined) {
_local2.easy = 2;
}
if (_local2.hard == undefined) {
_local2.hard = 1;
}
return(_local2);
}
function getLevel_speed() {
var _local2 = 10;
if (level == 1) {
_local2 = 11;
} else if (level == 2) {
_local2 = 10.5;
} else if (level == 3) {
_local2 = 9.8;
} else if (level == 4) {
_local2 = 8.6;
} else if (level == 5) {
_local2 = 8;
}
return(_local2);
}
function door_ani(door, init) {
var _local7 = this;
var _local3 = getLevel_speed();
door.myTween = gs.TweenLite.to(door, _local3, {ease:gs.easing.Quad.easeIn, _xscale:1500, _yscale:1500});
door.onEnterFrame = function () {
this._alpha = this._alpha + 5;
if (this._alpha >= 100) {
delete this.onEnterFrame;
}
};
_local7 = this;
gs.TweenLite.delayedCall(4.1, killdoor, new Array(door), this);
return(door);
}
function killdoor(door) {
var ref = this;
if (door.game_objCount > 0) {
var _local5 = function () {
ref.game_end(false);
};
gs.TweenLite.delayedCall(1, _local5);
ref.door_stopMoving(door);
for (var _local4 in door) {
for (var _local3 in door[_local4]) {
delete door[_local4][_local3].onPress;
}
}
delete door.back_1.onPress;
delete door.door.onPress;
gs.TweenLite.removeTween(door.myTween);
ref.door_cross_show(door);
return(undefined);
}
var _local6 = function (door) {
ref.game_doorMax(door);
};
gs.TweenLite.delayedCall(0.5, _local6, new Array(door));
delete door.back_1.onPress;
delete door.door.onPress;
}
function door_stopMoving(door) {
delete door.onEnterFrame;
}
function game_doorStart(door, init) {
door._visible = true;
door_ani(door, init);
}
function array_shuffle(toShuf) {
var _local2 = 0;
while (_local2 < toShuf.length) {
var _local4 = toShuf[_local2];
var _local3 = random(toShuf.length);
toShuf[_local2] = toShuf[_local3];
toShuf[_local3] = _local4;
_local2++;
}
return(toShuf);
}
var door_num = 0;
var door_z = 10000;
var game_maxDoors = 5;
var game_gapBetweenDoors = 20;
var game_scaleStart = 18;
var game_scaleEnd = 1300;
var game_doorMoveSecs = 10.5;
}
Symbol 535 MovieClip [__Packages.gs.TweenLite] Frame 0
class gs.TweenLite
{
static var timerClip, _tlInitted, currentTime, _gcInterval, overwriteManager;
var vars, duration, delay, combinedTimeScale, active, target, ease, tweens, initted, initTime, startTime, endTargetID, _hasPlugins, _hasUpdate, started, gc;
function TweenLite ($target, $duration, $vars) {
if ((timerClip._visible != false) || (!_tlInitted)) {
gs.plugins.TweenPlugin.activate([gs.plugins.TintPlugin, gs.plugins.RemoveTintPlugin, gs.plugins.FramePlugin, gs.plugins.AutoAlphaPlugin, gs.plugins.VisiblePlugin, gs.plugins.VolumePlugin, gs.plugins.EndArrayPlugin]);
currentTime = getTimer();
var _local3 = 999;
while (_root.getInstanceAtDepth(_local3) != undefined) {
_local3++;
}
timerClip = _root.createEmptyMovieClip("__tweenLite_mc", _local3);
timerClip._visible = false;
clearInterval(_gcInterval);
_gcInterval = setInterval(killGarbage, 2000);
timerClip.onEnterFrame = updateAll;
if (overwriteManager == undefined) {
overwriteManager = {mode:1, enabled:false};
}
_tlInitted = true;
}
vars = $vars;
duration = $duration || 0.001;
delay = $vars.delay || 0;
combinedTimeScale = $vars.timeScale || 1;
active = Boolean(($duration == 0) && (delay == 0));
target = $target;
if (typeof(vars.ease) != "function") {
vars.ease = defaultEase;
}
if (vars.easeParams != undefined) {
vars.proxiedEase = vars.ease;
vars.ease = easeProxy;
}
ease = vars.ease;
tweens = [];
initted = false;
initTime = currentTime;
startTime = initTime + (delay * 1000);
endTargetID = getID($target, true);
var _local6 = ((($vars.overwrite == undefined) || ((!overwriteManager.enabled) && ($vars.overwrite > 1))) ? (overwriteManager.mode) : (Number($vars.overwrite)));
if ((_local6 == 1) && ($target != undefined)) {
delete masterList[endTargetID];
masterList[endTargetID] = {target:$target, tweens:[this]};
} else {
masterList[endTargetID].tweens.push(this);
}
if (active || ((vars.runBackwards == true) && (vars.renderOnStart != true))) {
initTweenVals();
if (active) {
render(startTime + 1);
} else {
render(startTime);
}
if ((vars._visible != undefined) && (vars.runBackwards == true)) {
target._visible = vars._visible;
}
}
}
function initTweenVals() {
var _local2;
var _local5;
var _local4;
if ((vars.timeScale != undefined) && (target.timeScale != undefined)) {
tweens[tweens.length] = new gs.utils.tween.TweenInfo(target, "timeScale", target.timeScale, vars.timeScale - target.timeScale, "timeScale", false);
}
for (_local2 in vars) {
if (_reservedProps[_local2] != undefined) {
} else if (plugins[_local2] != undefined) {
_local4 = new plugins[_local2]();
if (_local4.onInitTween(target, vars[_local2], this) == false) {
tweens[tweens.length] = new gs.utils.tween.TweenInfo(target, _local2, target[_local2], ((typeof(vars[_local2]) == "number") ? (vars[_local2] - target[_local2]) : (Number(vars[_local2]))), _local2, false);
} else {
tweens[tweens.length] = new gs.utils.tween.TweenInfo(_local4, "changeFactor", 0, 1, ((_local4.overwriteProps.length == 1) ? (_local4.overwriteProps[0]) : "_MULTIPLE_"), true);
_hasPlugins = true;
}
} else {
tweens[tweens.length] = new gs.utils.tween.TweenInfo(target, _local2, target[_local2], ((typeof(vars[_local2]) == "number") ? (vars[_local2] - target[_local2]) : (Number(vars[_local2]))), _local2, false);
}
}
if (vars.runBackwards == true) {
var _local3;
_local5 = tweens.length - 1;
while (_local5 > -1) {
_local3 = tweens[_local5];
_local3.start = _local3.start + _local3.change;
_local3.change = -_local3.change;
_local5--;
}
}
if (vars.onUpdate != null) {
_hasUpdate = true;
}
if (overwriteManager.enabled && (masterList[endTargetID] != undefined)) {
overwriteManager.manageOverwrites(this, masterList[endTargetID].tweens);
}
initted = true;
}
function activate() {
started = (active = true);
if (!initted) {
initTweenVals();
}
if (vars.onStart != undefined) {
vars.onStart.apply(vars.onStartScope, vars.onStartParams);
}
if (duration == 0.001) {
startTime = startTime - 1;
}
}
function render($t) {
var _local5 = ($t - startTime) * 0.001;
var _local4;
var _local2;
var _local3;
if (_local5 >= duration) {
_local5 = duration;
_local4 = (((ease == vars.ease) || (duration == 0.001)) ? 1 : 0);
} else {
_local4 = ease(_local5, 0, 1, duration);
}
_local3 = tweens.length - 1;
while (_local3 > -1) {
_local2 = tweens[_local3];
_local2.target[_local2.property] = _local2.start + (_local4 * _local2.change);
_local3--;
}
if (_hasUpdate) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local5 == duration) {
complete(true);
}
}
function complete($skipRender) {
if ($skipRender != true) {
if (!initted) {
initTweenVals();
}
startTime = currentTime - ((duration * 1000) / combinedTimeScale);
render(currentTime);
return(undefined);
}
if (_hasPlugins) {
var _local2 = tweens.length - 1;
while (_local2 > -1) {
if ((tweens[_local2].isPlugin == true) && (tweens[_local2].target.onComplete != undefined)) {
tweens[_local2].target.onComplete();
}
_local2--;
}
}
if (vars.persist != true) {
enabled = (false);
}
if (vars.onComplete) {
vars.onComplete.apply(vars.onCompleteScope, vars.onCompleteParams);
}
}
function clear() {
tweens = [];
vars = {ease:vars.ease};
_hasUpdate = false;
}
function killVars($vars) {
if (overwriteManager.enabled) {
overwriteManager.killVars($vars, vars, tweens);
}
}
static function to($target, $duration, $vars) {
return(new gs.TweenLite($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenLite($target, $duration, $vars));
}
static function delayedCall($delay, $onComplete, $onCompleteParams, $onCompleteScope) {
return(new gs.TweenLite($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, onCompleteScope:$onCompleteScope, overwrite:0}));
}
static function updateAll() {
var _local4 = (currentTime = getTimer());
var _local5 = masterList;
var _local6;
var _local3;
var _local2;
var _local1;
for (_local6 in _local5) {
_local3 = _local5[_local6].tweens;
_local2 = _local3.length - 1;
while (_local2 > -1) {
_local1 = _local3[_local2];
if (_local1.active) {
_local1.render(_local4);
} else if (_local1.gc) {
_local3.splice(_local2, 1);
} else if (_local4 >= _local1.startTime) {
_local1.activate();
_local1.render(_local4);
}
_local2--;
}
}
}
static function getID($target, $lookup) {
var _local3;
if ($lookup) {
var _local1 = masterList;
if (typeof($target) == "movieclip") {
if (_local1[String($target)] != undefined) {
return(String($target));
}
_local3 = String($target);
masterList[_local3] = {target:$target, tweens:[]};
return(_local3);
}
for (var _local4 in _local1) {
if (_local1[_local4].target == $target) {
return(_local4);
}
}
}
_cnt++;
_local3 = "t" + _cnt;
masterList[_local3] = {target:$target, tweens:[]};
return(_local3);
}
static function removeTween($t, $clear) {
if ($clear != false) {
$t.clear();
}
$t.__set__enabled(false);
}
static function killTweensOf($target, $complete) {
var _local5 = getID($target, true);
var _local3 = masterList[_local5];
var _local2;
var _local1;
if (_local3 != undefined) {
_local2 = _local3.length - 1;
while (_local2 > -1) {
_local1 = _local3[_local2];
if ($complete && (!_local1.gc)) {
_local1.complete(false);
}
_local1.clear();
_local2--;
}
delete masterList[_local5];
}
}
static function killGarbage() {
var _local1 = masterList;
var _local2;
var _local3;
for (_local2 in _local1) {
if (_local1[_local2].tweens.length == 0) {
delete _local1[_local2];
}
}
}
static function defaultEase($t, $b, $c, $d) {
$t = $t / $d;
return((((-$c) * $t) * ($t - 2)) + $b);
}
function easeProxy($t, $b, $c, $d) {
return(vars.proxiedEase.apply(null, arguments.concat(vars.easeParams)));
}
function get enabled() {
return((gc ? false : true));
}
function set enabled($b) {
if ($b) {
if (masterList[endTargetID] == undefined) {
masterList[endTargetID] = {target:target, tweens:[this]};
} else {
var _local3 = masterList[endTargetID].tweens;
var _local4;
var _local2;
_local2 = _local3.length - 1;
while (_local2 > -1) {
if (_local3[_local2] == this) {
_local4 = true;
break;
}
_local2--;
}
if (!_local4) {
_local3[_local3.length] = this;
}
}
}
gc = ($b ? false : true);
if (gc) {
active = false;
} else {
active = started;
}
//return(enabled);
}
static var version = 10.091;
static var killDelayedCallsTo = killTweensOf;
static var masterList = {};
static var plugins = {};
static var _cnt = -16000;
static var _reservedProps = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, persist:1, renderOnStart:1, proxiedEase:1, easeParams:1, yoyo:1, loop:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1};
}
Symbol 536 MovieClip [__Packages.gs.plugins.TweenPlugin] Frame 0
class gs.plugins.TweenPlugin
{
var _tweens, _changeFactor, propName, round, overwriteProps;
function TweenPlugin () {
_tweens = [];
_changeFactor = 0;
}
function onInitTween($target, $value, $tween) {
addTween($target, propName, $target[propName], $value, propName);
return(true);
}
function addTween($object, $propName, $start, $end, $overwriteProp) {
if ($end != undefined) {
var _local3 = ((typeof($end) == "number") ? ($end - $start) : (Number($end)));
if (_local3 != 0) {
_tweens[_tweens.length] = new gs.utils.tween.TweenInfo($object, $propName, $start, _local3, $overwriteProp || ($propName));
}
}
}
function updateTweens($changeFactor) {
var _local3;
var _local2;
if (round) {
_local3 = _tweens.length - 1;
while (_local3 > -1) {
_local2 = _tweens[_local3];
_local2.target[_local2.property] = Math.round(_local2.start + (_local2.change * $changeFactor));
_local3--;
}
} else {
_local3 = _tweens.length - 1;
while (_local3 > -1) {
_local2 = _tweens[_local3];
_local2.target[_local2.property] = _local2.start + (_local2.change * $changeFactor);
_local3--;
}
}
}
function set changeFactor($n) {
updateTweens($n);
_changeFactor = $n;
//return(changeFactor);
}
function get changeFactor() {
return(_changeFactor);
}
function killProps($lookup) {
var _local2;
_local2 = overwriteProps.length - 1;
while (_local2 > -1) {
if ($lookup[overwriteProps[_local2]] != undefined) {
overwriteProps.splice(_local2, 1);
}
_local2--;
}
_local2 = _tweens.length - 1;
while (_local2 > -1) {
if ($lookup[_tweens[_local2].name] != undefined) {
_tweens.splice(_local2, 1);
}
_local2--;
}
}
static function activate($plugins) {
var _local1;
var _local3;
_local1 = $plugins.length - 1;
while (_local1 > -1) {
_local3 = new $plugins[_local1]();
gs.TweenLite.plugins[_local3.propName] = $plugins[_local1];
_local1--;
}
return(true);
}
static var VERSION = 1.04;
static var API = 1;
}
Symbol 537 MovieClip [__Packages.gs.utils.tween.TweenInfo] Frame 0
class gs.utils.tween.TweenInfo
{
var target, property, start, change, name, isPlugin;
function TweenInfo ($target, $property, $start, $change, $name, $isPlugin) {
target = $target;
property = $property;
start = $start;
change = $change;
name = $name;
isPlugin = $isPlugin;
}
}
Symbol 538 MovieClip [__Packages.gs.plugins.TintPlugin] Frame 0
class gs.plugins.TintPlugin extends gs.plugins.TweenPlugin
{
var propName, overwriteProps, _ignoreAlpha, _color, _ct, _tweens, __get__changeFactor;
function TintPlugin () {
super();
propName = "tint";
overwriteProps = ["tint"];
}
function onInitTween($target, $value, $tween) {
if ((typeof($target) != "movieclip") && (!($target instanceof TextField))) {
return(false);
}
var _local2 = (($tween.vars._alpha != undefined) ? ($tween.vars._alpha) : ((($tween.vars.autoAlpha != undefined) ? ($tween.vars.autoAlpha) : ($target._alpha))));
var _local6 = ((($value == null) || ($tween.vars.removeTint == true)) ? ({rb:0, gb:0, bb:0, ab:0, ra:_local2, ga:_local2, ba:_local2, aa:_local2}) : ({rb:$value >> 16, gb:($value >> 8) & 255, bb:$value & 255, ra:0, ga:0, ba:0, aa:_local2}));
_ignoreAlpha = true;
init($target, _local6);
return(true);
}
function init($target, $end) {
_color = new Color($target);
_ct = _color.getTransform();
var _local5;
var _local2;
for (_local2 in $end) {
if (_ct[_local2] != $end[_local2]) {
_tweens[_tweens.length] = new gs.utils.tween.TweenInfo(_ct, _local2, _ct[_local2], $end[_local2] - _ct[_local2], "tint", false);
}
}
}
function set changeFactor($n) {
var _local3;
var _local2;
_local3 = _tweens.length - 1;
while (_local3 > -1) {
_local2 = _tweens[_local3];
_local2.target[_local2.property] = _local2.start + (_local2.change * $n);
_local3--;
}
if (_ignoreAlpha) {
var _local5 = _color.getTransform();
_ct.aa = _local5.aa;
_ct.ab = _local5.ab;
}
_color.setTransform(_ct);
//return(__get__changeFactor());
}
static var VERSION = 1.1;
static var API = 1;
}
Symbol 539 MovieClip [__Packages.gs.plugins.RemoveTintPlugin] Frame 0
class gs.plugins.RemoveTintPlugin extends gs.plugins.TintPlugin
{
var propName;
function RemoveTintPlugin () {
super();
propName = "removeTint";
}
static var VERSION = 1;
static var API = 1;
}
Symbol 540 MovieClip [__Packages.gs.plugins.FramePlugin] Frame 0
class gs.plugins.FramePlugin extends gs.plugins.TweenPlugin
{
var propName, overwriteProps, round, _target, frame, addTween, updateTweens, __get__changeFactor;
function FramePlugin () {
super();
propName = "frame";
overwriteProps = ["frame"];
round = true;
}
function onInitTween($target, $value, $tween) {
if ((typeof($target) != "movieclip") || (isNaN($value))) {
return(false);
}
_target = MovieClip($target);
frame = _target._currentframe;
addTween(this, "frame", frame, $value, "frame");
return(true);
}
function set changeFactor($n) {
updateTweens($n);
_target.gotoAndStop(frame);
//return(__get__changeFactor());
}
static var VERSION = 1.01;
static var API = 1;
}
Symbol 541 MovieClip [__Packages.gs.plugins.AutoAlphaPlugin] Frame 0
class gs.plugins.AutoAlphaPlugin extends gs.plugins.TweenPlugin
{
var propName, overwriteProps, onComplete, _target, _tween, _visible, _tweenVisible, _alphaStart, _alphaChange, _tweenAlpha, __get__changeFactor;
function AutoAlphaPlugin () {
super();
propName = "autoAlpha";
overwriteProps = ["_alpha", "_visible"];
onComplete = onCompleteTween;
}
function onInitTween($target, $value, $tween) {
_target = $target;
_tween = $tween;
_visible = Boolean($value != 0);
_tweenVisible = true;
_alphaStart = _target._alpha;
_alphaChange = ((typeof($value) == "number") ? ($value - _alphaStart) : (Number($value)));
_tweenAlpha = Boolean(_alphaChange != 0);
return(true);
}
function killProps($lookup) {
super.killProps($lookup);
_tweenVisible = Boolean($lookup._visible == undefined);
_tweenAlpha = Boolean($lookup._alpha == undefined);
}
function onCompleteTween() {
if ((_tweenVisible && (_tween.vars.runBackwards != true)) && (_tween.ease == _tween.vars.ease)) {
_target._visible = _visible;
}
}
function set changeFactor($n) {
if (_tweenAlpha) {
_target._alpha = _alphaStart + (_alphaChange * $n);
}
if ((_target._visible != true) && (_tweenVisible)) {
_target._visible = true;
}
//return(__get__changeFactor());
}
static var VERSION = 1;
static var API = 1;
}
Symbol 542 MovieClip [__Packages.gs.plugins.VisiblePlugin] Frame 0
class gs.plugins.VisiblePlugin extends gs.plugins.TweenPlugin
{
var propName, overwriteProps, onComplete, _target, _tween, _visible, __get__changeFactor;
function VisiblePlugin () {
super();
propName = "_visible";
overwriteProps = ["_visible"];
onComplete = onCompleteTween;
}
function onInitTween($target, $value, $tween) {
_target = $target;
_tween = $tween;
_visible = Boolean($value);
return(true);
}
function onCompleteTween() {
if ((_tween.vars.runBackwards != true) && (_tween.ease == _tween.vars.ease)) {
_target._visible = _visible;
}
}
function set changeFactor($n) {
if (_target._visible != true) {
_target._visible = true;
}
//return(__get__changeFactor());
}
static var VERSION = 1;
static var API = 1;
}
Symbol 543 MovieClip [__Packages.gs.plugins.VolumePlugin] Frame 0
class gs.plugins.VolumePlugin extends gs.plugins.TweenPlugin
{
var propName, overwriteProps, _sound, volume, addTween, updateTweens, __get__changeFactor;
function VolumePlugin () {
super();
propName = "volume";
overwriteProps = ["volume"];
}
function onInitTween($target, $value, $tween) {
if (isNaN($value) || ((typeof($target) != "movieclip") && (!($target instanceof Sound)))) {
return(false);
}
_sound = ((typeof($target) == "movieclip") ? (new Sound($target)) : (Sound($target)));
volume = _sound.getVolume();
addTween(this, "volume", volume, $value, "volume");
return(true);
}
function set changeFactor($n) {
updateTweens($n);
_sound.setVolume(volume);
//return(__get__changeFactor());
}
static var VERSION = 1.01;
static var API = 1;
}
Symbol 544 MovieClip [__Packages.gs.plugins.EndArrayPlugin] Frame 0
class gs.plugins.EndArrayPlugin extends gs.plugins.TweenPlugin
{
var propName, overwriteProps, _info, _a, round, __get__changeFactor;
function EndArrayPlugin () {
super();
propName = "endArray";
overwriteProps = ["endArray"];
_info = [];
}
function onInitTween($target, $value, $tween) {
if ((!($target instanceof Array)) || (!($value instanceof Array))) {
return(false);
}
var _local3 = $target;
var _local2 = $value;
init(_local3, _local2);
return(true);
}
function init($start, $end) {
_a = $start;
var _local2 = $end.length - 1;
while (_local2 > -1) {
if (($start[_local2] != $end[_local2]) && ($start[_local2] != undefined)) {
_info[_info.length] = new gs.utils.tween.ArrayTweenInfo(_local2, _a[_local2], $end[_local2] - _a[_local2]);
}
_local2--;
}
}
function set changeFactor($n) {
var _local3;
var _local2;
if (round) {
_local3 = _info.length - 1;
while (_local3 > -1) {
_local2 = _info[_local3];
_a[_local2.index] = Math.round(_local2.start + (_local2.change * $n));
_local3--;
}
} else {
_local3 = _info.length - 1;
while (_local3 > -1) {
_local2 = _info[_local3];
_a[_local2.index] = _local2.start + (_local2.change * $n);
_local3--;
}
}
//return(__get__changeFactor());
}
static var VERSION = 1.02;
static var API = 1;
}
Symbol 545 MovieClip [__Packages.gs.utils.tween.ArrayTweenInfo] Frame 0
class gs.utils.tween.ArrayTweenInfo
{
var index, start, change;
function ArrayTweenInfo ($index, $start, $change) {
index = $index;
start = $start;
change = $change;
}
}
Symbol 546 MovieClip [__Packages.gs.easing.Quad] Frame 0
class gs.easing.Quad
{
function Quad () {
}
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);
}
}
Symbol 547 MovieClip [__Packages.gs.easing.Strong] Frame 0
class gs.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);
}
}
Symbol 548 MovieClip [__Packages.gs.easing.Bounce] Frame 0
class gs.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);
}
}
Symbol 549 MovieClip [__Packages.com.bentempleton.RememberKeysGame] Frame 0
class com.bentempleton.RememberKeysGame extends MovieClip
{
var hand_1, hand_2, game_handQueue, game_fireTurns, game_pairsFound, timer, level, ROOT, score, interface_mc, dispatchEvent;
function RememberKeysGame () {
super();
mx.events.EventDispatcher.initialize(this);
hand_1.startX = hand_1._x;
hand_1.startY = hand_1._y;
hand_2.startX = hand_2._x;
hand_2.startY = hand_2._y;
}
function hand_reset() {
hand_1._x = hand_1.startX;
hand_1._y = hand_1.startY;
hand_2._x = hand_2.startX;
hand_2._y = hand_2.startY;
}
function hand_addToQueue(card1, card2) {
game_handQueue.push({card1:card1, card2:card2});
}
function hand_collectCards(card_1, card_2) {
if (hand_1.isOut == true) {
hand_addToQueue(card_1, card_2);
return(undefined);
}
hand_1.gotoAndStop(1);
hand_2.gotoAndStop(1);
var _local6 = card_1;
var _local5 = card_2;
if (card_2._parent._x > card_1._parent._x) {
_local6 = card_2;
_local5 = card_1;
}
hand_1.isOut = true;
hand_1.collect = gs.TweenLite.to(hand_1, 0.3, {_x:_local6._parent._x, _y:_local6._parent._y});
hand_2.collectAni = gs.TweenLite.to(hand_2, 0.5, {_x:_local5._parent._x, _y:_local5._parent._y});
_global.snd.playSound("in_game_right", 1);
var ref = this;
var _local9 = function () {
ref.hand_2.gotoAndPlay("close");
ref.hand_1.gotoAndPlay("close");
_global.snd.playSound("in_game_right", 1);
};
gs.TweenLite.delayedCall(0.6, _local9);
var _local8 = function (card_1, card_2) {
card_1._visible = false;
card_2._visible = false;
ref.hand_1.isOut = false;
if (ref.game_handQueue.length > 0) {
var _local2 = ref.game_handQueue.pop();
ref.hand_collectCards(_local2.card1, _local2.card2);
} else {
ref.hand_2.collectAni = gs.TweenLite.to(ref.hand_2, 0.5, {_x:ref.hand_2.startX});
ref.hand_1.collectAni = gs.TweenLite.to(ref.hand_1, 0.5, {_x:ref.hand_1.startX});
}
_global.snd.playSound("in_game_right", 1);
};
gs.TweenLite.delayedCall(1, _local8, new Array(card_1, card_2));
}
function card_makeNotActive(card) {
delete card.onPress;
}
function card_makeActive(card) {
var ref = this;
card.onPress = function () {
_global.snd.playSound("card_turn", 1);
ref.card_pick(this);
};
card.startScale = card._xscale;
card.onRollOver = function () {
this.back.gotoAndStop(2);
};
card.onRollOut = (card.onReleaseOutside = function () {
this._xscale = (this._yscale = this.startScale);
this.back.gotoAndStop(1);
});
}
function card_init(card, face) {
card.myFace = face + 1;
card.isFound = false;
card.isShowing = false;
card.tick._visible = false;
card.cross._visible = false;
card._alpha = 100;
card_faceDown(card);
card.isFire = false;
if (face == game_killCard) {
card.isFire = true;
}
return(card);
}
function card_faceDown(card) {
if (card.isFound == true) {
return(undefined);
}
card.isShowing = false;
card.tile.gotoAndStop(1);
card.back._visible = true;
}
function card_faceUp(card) {
_global.snd.playSound("in_game_action", 1);
card.isShowing = true;
card.tile.gotoAndStop(card.myFace);
card.back._visible = false;
}
function game_isEnd() {
var _local6 = false;
var _local4 = 0;
var _local3 = 0;
for (var _local5 in allCards) {
var _local2 = allCards[_local5];
_local4++;
if (_local2.card.isFound == true) {
_local3++;
}
}
if (8 == _local3) {
_local6 = true;
}
return(_local6);
}
function scores_died() {
game_isPlaying = false;
_global.snd.playSound("game_end_wrong", 1);
gs.TweenLite.delayedCall(1, game_end, new Array(false), this);
}
function card_tick_show(card) {
card.tick._visible = true;
}
function card_cross_show(card) {
card.cross._visible = true;
}
function card_checkAllDown() {
for (var _local3 in allCards) {
var _local2 = allCards[_local3];
card_faceDown(_local2);
}
}
function card_pick(card) {
if (card.isShowing) {
return(undefined);
}
if (game_isPlaying != true) {
return(undefined);
}
if (game_isFlippingPair == true) {
gs.TweenLite.killDelayedCallsTo(cards_hideAgain);
cards_hideAgain(pickCycle[0], pickCycle[1]);
game_isFlippingPair = false;
pickCycle = new Array();
}
card_checkAllDown();
pickCycle.push(card);
card_faceUp(card);
if (card.isFire) {
game_fireTurns++;
}
if (pickCycle.length == 2) {
var _local9 = Number(pickCycle[0].myFace);
var _local8 = Number(pickCycle[1].myFace);
var _local5 = Number(pickCycle[0].isFire);
var _local4 = Number(pickCycle[1].isFire);
if (_local5 && (_local4)) {
card_cross_show(pickCycle[0]);
card_cross_show(pickCycle[1]);
scores_died();
}
if (((_local9 == _local8) && (!_local5)) && (!_local4)) {
game_pairsFound++;
card_tick_show(pickCycle[0]);
card_tick_show(pickCycle[1]);
hand_collectCards(pickCycle[0], pickCycle[1]);
score_update(score_forPair);
pickCycle[0].isFound = (pickCycle[1].isFound = true);
delete pickCycle[0].onPress;
delete pickCycle[1].onPress;
delete pickCycle[0].onRollOver;
delete pickCycle[1].onRollOver;
delete pickCycle[0].onRollOut;
delete pickCycle[1].onRollOut;
pickCycle = new Array();
var _local7 = game_isEnd();
if (_local7) {
_global.snd.playSound("game_end_right", 1);
gs.TweenLite.delayedCall(1, game_end, new Array(true), this);
}
} else {
var ref = this;
var _local6 = function () {
if (ref.game_isFlippingPair == false) {
return(undefined);
}
ref.cards_hideAgain(this.pickCycle[0], this.pickCycle[1]);
ref.pickCycle = new Array();
ref.game_isFlippingPair = false;
};
gs.TweenLite.delayedCall(1, _local6, new Array(pickCycle[0], pickCycle[1]), this);
game_isFlippingPair = true;
}
}
}
function cards_hideAgain(card1, card2) {
card_faceDown(card1);
card_faceDown(card2);
}
function game_init() {
pickCycle = new Array();
var _local10 = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
_local10 = array_shuffle(_local10);
var _local7 = new Array(1, 2, 3, 4, 1, 2, 3, 4);
var _local11 = getLevel_badFires();
var _local3 = 0;
while (_local3 < _local11) {
_local7.push(game_killCard);
_local3++;
}
_local7 = array_shuffle(_local7);
_local11 = _local7.length;
allCards_active = new Object();
_local3 = 0;
while (_local3 < _local11) {
var _local4 = MovieClip(this["point_cardAttach_" + Number(_local10.shift())]);
var _local2 = _local4.attachMovie("keys_CardsHolder", "card", 1, {_xscale:350, _yscale:350});
var _local6 = Number(_local7.pop());
card_init(_local2, _local6);
allCards_active[_local2] = _local2;
_local3++;
}
for (var _local12 in allCards_active) {
var _local5 = allCards_active[_local12];
card_faceUp(_local5);
}
}
function game_introCards() {
var ref = this;
var _local7 = function () {
var _local3 = 0;
var _local4 = 0.1;
for (var _local5 in ref.allCards_active) {
var _local2 = ref.allCards_active[_local5];
_local3++;
var _local1 = _local3 * _local4;
gs.TweenLite.delayedCall(_local1, ref.card_faceDown, new Array(_local2));
}
gs.TweenLite.delayedCall(_local1 + 0.5, ref.game_start, null, ref);
};
_local7();
}
function game_start() {
game_isPlaying = true;
for (var _local3 in allCards_active) {
var _local2 = allCards_active[_local3];
card_makeActive(_local2);
}
timer.startTimer();
}
function getLevel_badFires() {
var _local2 = 2;
if (level == 1) {
_local2 = 2;
} else if (level == 2) {
_local2 = 2;
} else if (level == 3) {
_local2 = 3;
} else if (level == 4) {
_local2 = 4;
} else if (level == 5) {
_local2 = 5;
}
return(_local2);
}
function getLevel_timing() {
var _local2 = 20;
if (level == 1) {
_local2 = 20;
} else if (level == 2) {
_local2 = 19;
} else if (level == 3) {
_local2 = 16;
} else if (level == 4) {
_local2 = 14;
} else if (level == 5) {
_local2 = 12;
}
_local2 = _local2 * 1000;
return(_local2);
}
function reset(level) {
trace("Keys:: reset()");
ROOT = this;
if ((level == undefined) || (level == null)) {
level = 0;
}
if (level > 5) {
level = 5;
}
this.level = level;
kill();
score = 0;
score_update(0);
game_fireTurns = 0;
game_pairsFound = 0;
game_handQueue = new Array();
allCards = new Object();
var _local2 = 1;
while (_local2 <= 16) {
if (this["point_cardAttach_" + _local2] != undefined) {
allCards["point_cardAttach_" + _local2] = MovieClip(this["point_cardAttach_" + _local2]);
}
_local2++;
}
game_showAll();
timer = new com.bentempleton.Timer(this, "countdown");
timer.addEventListener("endGame", this);
timer.min = 0;
timer.max = getLevel_timing();
timer.timerClip = interface_mc.timer_mc;
timer.timerText = interface_mc.time_txt;
timer.reset();
game_init();
}
function endGame() {
_global.snd.playSound("game_end_wrong", 1);
game_end(false);
}
function kill() {
var _local3 = 0;
while (_local3 < 20) {
var _local2 = MovieClip(this["point_cardAttach_" + _local3]);
for (var _local4 in _local2) {
_local2[_local4].removeMovieClip();
}
_local3++;
}
timer.killTimer();
}
function game_end(isWin) {
if ((isWin == undefined) || (isWin == null)) {
isWin = false;
}
kill();
game_isPlaying = false;
var _local7 = 400;
if (isWin) {
var _local4 = Math.round((100 / getLevel_timing()) * timer.elapsed);
_local7 = _local7 + (10 * _local4);
_local7 = _local7 - (game_fireTurns * 30);
if (level == 1) {
_local7 = _local7 * 1.1;
}
if (level == 2) {
_local7 = _local7 * 1.15;
}
if (level == 3) {
_local7 = _local7 * 1.4;
}
if (level == 4) {
_local7 = _local7 * 1.8;
}
if (level == 5) {
_local7 = _local7 * 2;
}
} else {
_local7 = 0;
}
game_hideAll();
_global.snd.playSound("game_end_right", 1);
trace(("Keys:: Dispatch -> game_complete(" + _local7) + ")");
dispatchEvent({type:"game_complete", target:this, score:_local7, success:isWin});
}
function game_hideAll() {
var _local3 = new Array("hand_1", "hand_2", "interface_mc");
var _local2 = 12;
while (_local2 > 0) {
_local3.push("point_cardAttach_" + _local2);
_local2--;
}
for (var _local5 in _local3) {
gs.TweenLite.to(this[_local3[_local5]], 0.5, {_alpha:0});
}
}
function game_showAll() {
var _local3 = new Array("hand_1", "hand_2", "interface_mc");
var _local2 = 12;
while (_local2 > 0) {
_local3.push("point_cardAttach_" + _local2);
_local2--;
}
for (var _local5 in _local3) {
gs.TweenLite.to(this[_local3[_local5]], 0.5, {_alpha:100});
}
}
function start() {
trace("Keys:: start()");
ROOT = this;
game_introCards();
}
function array_shuffle(toShuf) {
var _local2 = 0;
while (_local2 < toShuf.length) {
var _local4 = toShuf[_local2];
var _local3 = random(toShuf.length);
toShuf[_local2] = toShuf[_local3];
toShuf[_local3] = _local4;
_local2++;
}
return(toShuf);
}
function self_random(high, low) {
return(Math.floor(Math.random() * (high - low)) + low);
}
function score_update(score) {
this.score = this.score + score;
dispatchEvent({type:"score_update", target:this, score:this.score});
}
var score_forPair = 100;
var game_isFlippingPair = null;
var game_isPlaying = null;
var allCards = new Object();
var allCards_active = new Object();
var facesTotal = 5;
var game_killCard = 5;
var pickCycle = null;
}
Symbol 550 MovieClip [__Packages.com.bentempleton.PlanGameControl] Frame 0
class com.bentempleton.PlanGameControl extends MovieClip
{
var root, msgBox, feedback, planObj, noOfKeys, maxRoutes, housePlans, playable, timer, gameType, score, success, saved, currPlan, keysPressed, timerStarted, startPress, zoneFadeDelay, timerInt, pressAllowance, zoneScaleSpeed, routeCounter, planCounter;
function PlanGameControl () {
super();
root = this;
mx.events.EventDispatcher.initialize(this);
init();
}
function init() {
msgBox = root.message_mc;
feedback = root.feedback_mc;
planObj = new Object();
noOfKeys = 4;
maxRoutes = 3;
housePlans = new Array("plan4", "plan5", "plan6", "plan7");
playable = false;
togglePlans();
var ref = this;
root.replay_btn.onRelease = function () {
ref.reset(ref.gameType);
ref.start();
};
timer = new com.bentempleton.Timer(root, "countdown");
timer.addEventListener("endGame", this);
timer.min = 0;
timer.timerClip = root.interface_mc.timer_mc;
timer.timerText = root.interface_mc.time_txt;
root.interface_mc.doors_mc._visible = false;
root.tooltipTrigger_mc.useHandCursor = false;
var ref = this;
root.tooltipTrigger_mc.onPress = function () {
_global.screens.toggleTooltip(_global.root.tooltip[("plan_" + ref.gameType.toLowerCase()) + "_tip"]);
};
}
function hardReset() {
root.plan_a_mc.routeCounter = (root.plan_b_mc.routeCounter = undefined);
root.plan_a_mc.planCounter = (root.plan_b_mc.planCounter = undefined);
}
function reset(gameType, level) {
if ((level == undefined) || (level == 0)) {
level = 1;
} else if (level > 10) {
level = 10;
}
setLevel(level);
this.gameType = gameType;
if (gameType.toUpperCase() == "A") {
root.gameType_mc.t_txt.text = "A";
} else {
root.gameType_mc.t_txt.text = "B";
}
root.feedback.createEmptyMovieClip("keys", 0);
score = 0;
success = false;
saved = 0;
timer.reset();
var _local3 = {plan:Math.floor(Math.random() * housePlans.length), route:Math.ceil(Math.random() * maxRoutes)};
var _local4 = housePlans[_local3.plan];
currPlan = root[_local4];
togglePlans(_local4);
root.interface_mc.alphaTo(100, 0.5, "easeoutcubic");
planObj = currPlan["route" + _local3.route];
planObj.routesClip = currPlan["r" + _local3.route];
keyHighlight(planObj.routesClip);
setupZones(currPlan);
}
function start() {
keysPressed = new Array();
timerStarted = false;
startPress = undefined;
Key.addListener(this);
timer.startTimer();
playable = true;
displayMessage("start", 50);
fadeNumbers(planObj.routesClip, 100);
fadeNumbers(planObj.routesClip, 0, zoneFadeDelay);
}
function endGame() {
killGame(false);
}
function killGame(success) {
function doFeedback() {
ref.dispatchEvent({type:"game_complete", score:ref.score, saved:ref.saved, success:ref.success});
}
timer.killTimer();
var _local4 = getTimer() - startPress;
var _local3 = 5000 - _local4;
if (_local3 < 0) {
_local3 = 0;
}
score = ((_local3 + (timer.elapsed / 3)) / 5) - 300;
var _local6 = Math.round(score / 1500);
trace((((((("Plan Route :: game_complete() - pressDur : " + _local4) + " pressBonus : ") + _local3) + " elapsed : ") + timer.elapsed) + " TOTAL : ") + score);
if (((timer.elapsed < 0) || (_local6 < 0)) || (!success)) {
timer.elapsed = 0;
success = false;
_local6 = 0;
}
saved = _local6;
this.success = success;
Key.removeListener(this);
clearInterval(timerInt);
playable = false;
if (success) {
_global.snd.playSound("game_end_right", 1);
} else {
_global.snd.playSound("game_end_wrong", 1);
}
var ref = this;
root.interface_mc.alphaTo(0, 0.5, "easeoutcubic", 1, doFeedback);
}
function setupZones(clip) {
var _local5 = planObj.routesClip;
var _local4 = returnCodes();
_local5.exit_1.gotoAndStop("exit");
_local5.exit_2.gotoAndStop("exit");
var _local3 = 0;
while (_local3 < 10) {
clip["r" + _local3]._visible = false;
var _local2 = _local5["z" + _local3];
_local2.t_txt.stopTween();
_local2.gotoAndStop("home");
var _local7 = Math.floor(Math.random() * _local4.length);
_local2.cc = _local4.splice(_local7, 1)[0];
_local2.dispChar = String.fromCharCode(_local2.cc);
_local2.t_txt.text = _local2.dispChar;
_local3++;
}
_local5.blocked.removeMovieClip();
if (gameType == "B") {
var _local7 = Math.ceil(Math.random() * 2);
planObj.fire = _local7;
_local5["exit_" + _local7].gotoAndStop("fire");
}
_local5._visible = true;
}
function onKeyDown() {
if (playable) {
if (isValidPress(Key.getCode())) {
if (startPress == undefined) {
startPress = getTimer();
}
clearInterval(timerInt);
timerInt = setInterval(this, "timerInterval", pressAllowance);
keysPressed.push(Key.getCode());
var _local4 = checkPress(Key.getCode());
keyHighlight(planObj.routesClip, Key.getCode(), _local4);
_global.snd.playSound("in_game_action", 1);
if (_local4) {
var _local3 = keysPressed.length;
var _local5 = feedback.keys.attachMovie("zonelabel", "label_" + _local3, _local3, {_y:_local3 * 45, _xscale:200, _yscale:200});
_local5.t_txt.text = String.fromCharCode(Key.getCode());
_global.snd.playSound("in_game_right", 1);
} else {
_global.snd.playSound("in_game_wrong", 1);
}
} else {
_global.screens.toggleTooltip(_global.root.tooltip[("plan_" + gameType.toLowerCase()) + "_tip"]);
}
}
}
function checkPress(cc) {
var _local4 = 1;
while (_local4 < 5) {
if ((gameType == "A") || ((gameType != "A") && (_local4 != planObj.fire))) {
var _local3 = planObj["sequence" + _local4];
var _local5 = false;
var _local2 = 0;
while (_local2 < keysPressed.length) {
if ((keysPressed[_local2] != _local3[_local2].cc) && (keysPressed[_local2] != (_local3[_local2].cc + 48))) {
_local5 = true;
}
_local2++;
}
if (_local5 == false) {
if (keysPressed.length == _local3.length) {
killGame(true);
displayMessage("success", 2);
}
return(true);
}
}
_local4++;
}
killGame(false);
displayMessage("fail", 3);
return(false);
}
function fadeNumbers(clip, a, delay) {
for (var _local5 in clip) {
if (a != 100) {
clip[_local5].t_txt.alphaTo(0, zoneScaleSpeed, "easeoutcubic", delay);
clip[_local5].base_mc.scaleTo(50, zoneScaleSpeed + 1, "easeoutcubic", delay - 1);
} else {
clip[_local5].t_txt._alpha = 100;
clip[_local5].base_mc._xscale = (clip[_local5].base_mc._yscale = 100);
}
}
}
function timerInterval() {
clearInterval(timerInt);
displayMessage("too_slow", 3);
killGame(false);
}
function displayMessage(msg, delay) {
function resetMsg() {
ref.displayMessage("start");
}
if (delay == undefined) {
delay = 0.5;
}
msgBox._visible = true;
msgBox.gotoAndStop(msg);
if (msg == "start") {
} else if (msg == "success") {
msgBox.t_txt.text = "You planned a great route";
} else if (msg == "fail") {
msgBox.t_txt.text = "That wasnt a good plan!";
} else if (msg == "too_slow") {
msgBox.gotoAndStop("fail");
msgBox.t_txt.text = "TOO SLOW...";
} else if (msg == "gameover") {
msgBox.gotoAndStop("success");
msgBox.t_txt.text = "WELL DONE, YOURE DONE";
} else {
msgBox.t_txt.text = "";
}
var ref = this;
msgBox.stopTween();
msgBox.val = 0;
if (msg != "start") {
msgBox.tween(["val"], [100], 0.3, "easeoutcubic", 2, resetMsg);
}
}
function togglePlans(linkage) {
var _local2 = 0;
while (_local2 < 10) {
var _local3 = root["plan" + _local2];
_local3._visible = false;
_local2++;
}
var _local4 = root[linkage];
_local4._visible = true;
}
function keyHighlight(base, cc, success) {
for (var _local7 in base) {
base[_local7].base_mc.stopTween();
if (cc == undefined) {
base[_local7].base_mc.scaleTo(100);
base[_local7].base_mc.colorTo(null);
base[_local7].icon_mc.icon.removeMovieClip();
base[_local7].t_txt._alpha = 100;
base[_local7].base_mc._alpha = 100;
} else if ((cc == base[_local7].cc) || (cc == (base[_local7].cc + 48))) {
base[_local7].base_mc.scaleTo(130);
base[_local7].base_mc.colorTo(230048);
var _local2 = (success ? "tick" : "cross");
base[_local7].icon_mc.attachMovie(_local2, "icon", 0, {_xscale:40, _yscale:40});
base[_local7].base_mc._alpha = 0;
base[_local7].t_txt.stopTween();
base[_local7].t_txt._alpha = 100;
}
}
}
function returnCodes(gameType) {
var _local3 = new Array();
if (gameType == undefined) {
gameType = this.gameType;
}
if (gameType == "A") {
var _local2 = 65;
while (_local2 <= 90) {
if (((((_local2 != 79) && (_local2 != 73)) && (_local2 != 76)) && (_local2 != 48)) && (_local2 != 96)) {
_local3.push(_local2);
}
_local2++;
}
} else if (gameType == "B") {
var _local2 = 49;
while (_local2 <= 57) {
trace((_local2 + " ") + String.fromCharCode(_local2));
if ((_local2 != 48) && (_local2 != 96)) {
_local3.push(_local2);
}
_local2++;
}
}
return(_local3);
}
function isValidPress(cc) {
var _local3 = returnCodes(gameType);
var _local2 = 0;
while (_local2 < _local3.length) {
if ((cc == _local3[_local2]) || (cc == (_local3[_local2] + 48))) {
return(true);
}
_local2++;
}
return(false);
}
function setLevel(val) {
if (val > 5) {
val = 5;
}
var _local2 = (val * 2) - 1;
trace("Plan Route :: game level " + _local2);
var _local4 = Math.floor(_local2 / 2) * 1000;
timer.max = 10000 - _local4;
zoneScaleSpeed = 6 - Math.round(_local2 / 3);
zoneFadeDelay = 4 - Math.ceil(_local2 / 5);
pressAllowance = 20000;
}
function checkAllPlans() {
if ((routeCounter == undefined) || (planCounter == undefined)) {
routeCounter = 1;
planCounter = 0;
} else if (routeCounter >= 3) {
routeCounter = 1;
planCounter++;
if (planCounter >= housePlans.length) {
planCounter = 0;
}
} else {
routeCounter++;
}
return({route:routeCounter, plan:planCounter});
}
}
Symbol 551 MovieClip [__Packages.com.bentempleton.Game] Frame 0
class com.bentempleton.Game
{
var root, screenManager, fb, street, houseSpacer, feedbackDelay, forceGame, games, score, prevScore, lives, totalSaved, playedPlanA, gamesPlayed, streetInitialised, houseDepth, houses, currHouse, gameObj, prevGame, currGame, forceFunction, forceInt;
function Game (root) {
this.root = root;
screenManager = new com.bentempleton.Screens(root, {exit_panel:root.exits_mc, instruct_panel:root.wrapper_mc.inner_mc.top_mc.instruct_mc, gs_panel:root.wrapper_mc.inner_mc.top_mc.gameSelector_mc, fb_panel:root.wrapper_mc.inner_mc.fb_mc, score_panel:root.score_mc, countdown_panel:root.wrapper_mc.inner_mc.top_mc.countdown_mc, embed_panel:root.embed_mc, tooltip:this.root.tooltip_mc});
fb = this.root.feedback_mc;
street = this.root.street_mc;
init();
}
function init() {
houseSpacer = 150;
feedbackDelay = 7000;
}
function setup(force) {
forceGame = force;
var ref = this;
games = _global.root.games;
var _local3 = 0;
while (_local3 < games.length) {
games[_local3].plays = 0;
games[_local3].id = _local3;
games[_local3].clip = root[games[_local3].ref + "_mc"];
games[_local3].clip.addEventListener("game_complete", this);
games[_local3].clip._visible = false;
_local3++;
}
fb._visible = false;
fb.continue_btn.onRelease = function () {
ref[ref.forceFunction]();
};
screenManager.addEventListener("loadGame", this);
}
function start() {
var _local2 = 0;
while (_local2 < games.length) {
games[_local2].plays = 0;
_local2++;
}
street.gotoAndStop(1);
score = 0;
prevScore = 0;
lives = 3;
screenManager.updateScore();
screenManager.updateLives();
totalSaved = 0;
playedPlanA = false;
gamesPlayed = new Array();
root.doors_mc.hardReset();
root.doors_mc.hardReset();
screenManager.setup();
streetInitialised = false;
houseDepth = 0;
for (_local2 in houses) {
houses[_local2].removeMovieClip();
}
houses = street.street_mc.createEmptyMovieClip("houses", 0);
houses._x = street.street_mc.houseHolder_mc._x;
houses._y = street.street_mc.houseHolder_mc._y;
houses.origX = houses._x;
currHouse = attachHouse();
attachHouse();
requestGame();
}
function requestGame() {
initialiseGame();
screenManager.startGameSelector(gameObj.id);
var _local2;
if (!streetInitialised) {
streetInitialised = true;
_local2 = 125;
} else {
_local2 = houses._x - houseSpacer;
}
houses.xSlideTo(_local2, 0.75, "easeinoutcubic", 0.7);
screenManager.countdown_panel.gotoAndStop("ready");
attachHouse();
}
function initialiseGame() {
prevGame = currGame;
gameObj = chooseGame();
com.teamrubber.SeqTrackerAdaptor.trackActionByLabel(gameObj.tracking);
currGame = gameObj.clip;
prevGame._visible = false;
currGame._visible = true;
currGame._alpha = 0;
var _local2 = ((gameObj.plays > 1) ? (gameObj.plays) : 1);
if (currGame._name == "plan_a_mc") {
currGame.reset("A", _local2);
} else if (currGame._name == "plan_b_mc") {
currGame.reset("B", _local2);
} else {
currGame.reset(_local2);
}
}
function loadGame(evObj) {
street.gotoAndPlay("zoom_in");
screenManager.toggle_clip("score", false);
}
function startGame() {
currGame.start();
}
function game_complete(evObj) {
trace("GAME COMPLETE : " + evObj.success);
evObj.score = Math.round(evObj.score);
if (evObj.success == false) {
lives--;
screenManager.updateLives();
_global.snd.playSound("error", 1);
screenManager.fb_panel.t_txt.text = gameObj.fb_bad;
screenManager.fb_panel.gotoAndStop("cross");
} else {
_global.snd.playSound("success", 1);
prevScore = score;
score = score + evObj.score;
}
gameObj.success = evObj.success;
screenManager.doFeedback(gameObj, true);
clearForce();
if (lives > 0) {
forceFunction = "backToStreet";
} else {
forceFunction = "doGameOver";
}
trace("+ + + + + ADDING LISTENER");
Key.addListener(this);
Mouse.addListener(this);
var _local4 = (evObj.success ? "_win" : "_lose");
_local4 = (gameObj.tracking + "_") + _local4;
com.teamrubber.SeqTrackerAdaptor.trackActionByLabel(_local4);
}
function backToStreet() {
function cleanUp() {
}
trace("back to street");
clearForce();
screenManager.doFeedback(undefined, false);
var _local3 = currGame;
currGame.alphaTo(0, 0.5, "easeoutcubic", 0.5, cleanUp);
street.gotoAndPlay("zoom_out");
_global.snd.playSound("animation_cover_2", 1);
currHouse.gotoAndStop("fire");
}
function doGameOver() {
clearForce();
_global.root.gotoAndPlay("close");
}
function nextGame(evObj) {
function gameOver() {
_global.root.gotoAndPlay("close");
}
if (lives > 0) {
var _local3 = Number(currHouse._name.split("_")[1]) + 1;
currHouse = houses["house_" + _local3];
if (gameObj.success) {
screenManager.doScoreAnimation();
} else {
requestGame();
}
} else {
gs.TweenLite.delayedCall(0.4, gameOver);
}
}
function onKeyDown() {
if (Key.isDown(32) || (Key.isDown(13))) {
trace("KEY down " + forceFunction);
this[forceFunction]();
}
}
function onMouseDown() {
trace("MOUSE down " + forceFunction);
this[forceFunction]();
}
function attachHouse() {
var _local2 = houses.attachMovie("house", "house_" + houseDepth, houseDepth, {_x:houseDepth * houseSpacer});
_local2.gotoAndStop("no_fire");
houseDepth++;
return(_local2);
}
function toggleNeighbours(boo) {
var _local3 = Number(currHouse._name.split("_")[1]);
var _local5 = houses["house_" + (_local3 - 1)];
var _local4 = houses["house_" + (_local3 + 1)];
var _local2 = (boo ? ({a:100, dur:0.5, del:0.5}) : ({a:0, dur:0.5, del:null}));
_local5.alphaTo(_local2.a, _local2.dur, "easeoutcubic", _local2.del);
_local4.alphaTo(_local2.a, _local2.dur, "easeoutcubic", _local2.del);
}
function chooseGame() {
var _local6;
var _local4;
var _local3 = false;
while (!_local3) {
_local3 = true;
_local6 = Math.floor(Math.random() * games.length);
_local4 = games[_local6];
if (gamesPlayed.length < games.length) {
var _local2 = 0;
while (_local2 < gamesPlayed.length) {
if (_local4.ref == gamesPlayed[_local2].ref) {
_local3 = false;
}
_local2++;
}
} else {
var _local5 = 3;
var _local2 = 0;
while (_local2 < _local5) {
if (_local4.ref == gamesPlayed[_local2].ref) {
_local3 = false;
}
_local2++;
}
}
if ((_local4.ref == "plan_b") && (playedPlanA == false)) {
_local3 = false;
}
}
gamesPlayed.unshift(_local4);
if (_local4.ref == "plan_a") {
playedPlanA = true;
}
if (forceGame != undefined) {
_local4 = getForcedGame(forceGame);
}
_local4.plays++;
return(_local4);
}
function registerPlay(obj) {
obj.plays++;
}
function clearForce() {
trace("- - - - - - clearForce ()");
forceFunction = undefined;
clearInterval(forceInt);
Key.removeListener(this);
Mouse.removeListener(this);
}
function getForcedGame(force) {
var _local2 = 0;
while (_local2 < games.length) {
if (games[_local2].ref == force) {
return(games[_local2]);
}
_local2++;
}
}
}
Symbol 552 MovieClip [__Packages.com.bentempleton.Screens] Frame 0
class com.bentempleton.Screens
{
var root, fb_panel, ready_panel, gs_panel, score_panel, instruct_panel, countdown_panel, exit_panel, bknd, embed_panel, tooltip, fb_props, ready_props, score_props, instruct_props, gs_props, gs_prevGame, gs_currGame, gs_attempts, gs_int;
function Screens (root, otherScreens) {
_global.screens = this;
this.root = root;
fb_panel = otherScreens.fb_panel;
ready_panel = otherScreens.ready_panel;
gs_panel = otherScreens.gs_panel;
score_panel = otherScreens.score_panel;
instruct_panel = otherScreens.instruct_panel;
countdown_panel = otherScreens.countdown_panel;
exit_panel = otherScreens.exit_panel;
bknd = gs_panel.bknd_mc;
embed_panel = otherScreens.embed_panel;
tooltip = otherScreens.tooltip;
mx.events.EventDispatcher.initialize(this);
init();
}
function init() {
fb_props = new Object({IN:{y:44, dur:0.5}, OUT:{y:fb_panel._y, dur:0.3}});
ready_props = new Object({IN:{y:ready_panel._y, dur:0.5}, OUT:{y:ready_panel._y + 100, dur:0.3}});
score_props = new Object({IN:{y:score_panel._y, dur:0.75}, OUT:{y:score_panel._y + 100, dur:0.5}});
instruct_props = new Object({IN:{y:44, dur:0.5}, OUT:{y:instruct_panel._y, dur:0.3}});
gs_props = new Object({y:13, x:175, w:350, h:26, dur:0.5, col:14417958});
for (var _local7 in gs_panel) {
gs_panel[_local7].OUT = new Object({col:null, x:gs_panel[_local7]._x, y:gs_panel[_local7]._y, w:gs_panel[_local7].bknd_mc._width, h:gs_panel[_local7].bknd_mc._height});
}
instruct_panel._visible = false;
fb_panel._visible = false;
gs_panel._visible = true;
}
function setup() {
instruct_panel._visible = false;
fb_panel._visible = false;
gs_panel._visible = true;
toggle_clip("score", false, true);
var _local3 = 0;
while (_local3 < _global.root.games.length) {
var _local4 = _global.root.games[_local3];
var _local5 = gs_panel["g" + _local4.id];
_local5.t_mc.t_txt.autoSize = true;
_local5.t_mc.t_txt.text = _local4.label;
_local3++;
}
}
function setupInterface(clip) {
clip.exit_btn.onRelease = function () {
_global.root.exitLink(_global.exitURL, "fire_exit");
_global.screens.genericBtnSnd("release");
};
clip.exit_btn.onRollOver = function () {
_global.screens.genericBtnSnd("over");
};
clip.embed_btn.onRelease = function () {
com.teamrubber.SeqTrackerAdaptor.trackActionByLabel("embed");
_global.screens.toggleEmbedScreen(true);
_global.screens.genericBtnSnd("release");
};
clip.embed_btn.onRollOver = function () {
_global.screens.genericBtnSnd("over");
};
clip.soundToggle_mc.volState = true;
clip.soundToggle_mc.onRollOver = function () {
_global.screens.genericBtnSnd("over");
};
clip.soundToggle_mc.onRelease = function () {
_global.screens.genericBtnSnd("release");
this.volState = !this.volState;
if (this.volState) {
_global.snd.fadeUpAllSounds();
_global.snd.setSoundState(true);
this.gotoAndStop("on");
} else {
_global.snd.fadeOutAllSounds();
_global.snd.setSoundState(false);
this.gotoAndStop("off");
}
};
}
function setupSplash(clip) {
clip.play_btn.onRelease = function () {
_global.screens.genericBtnSnd("release");
_global.root.splash_mc.gotoAndPlay("close");
_global.root.gotoAndPlay("animation");
_global.root.intro_mc.gotoAndPlay(2);
};
clip.play_btn.onRollOver = function () {
_global.screens.genericBtnSnd("over");
this._parent.house_mc.gotoAndPlay("open");
};
clip.play_btn.onRollOut = function () {
this._parent.house_mc.gotoAndPlay("close");
};
clip.skip_btn.onRelease = function () {
_global.screens.genericBtnSnd("release");
_global.root.splash_mc.gotoAndPlay("close");
_global.root.gotoAndPlay("animation");
_global.root.intro_mc.gotoAndPlay(65);
};
var _local5 = new Array("plan_a", "plan_b", "objects", "keys", "doors");
var _local3 = 0;
while (_local3 < _local5.length) {
var _local4 = clip.skip_mc[_local5[_local3] + "_btn"];
_local4.ref = _local5[_local3];
_local4.onRelease = function () {
_global.game.forceGame = this.ref;
_global.root.splash_mc.gotoAndPlay("close");
_global.root.gotoAndPlay("animation");
_global.root.intro_mc.gotoAndPlay(65);
};
_local3++;
}
}
function setupGameOver(clip) {
com.teamrubber.SeqTrackerAdaptor.viewScreen("end_screen_view");
clip.play_btn.onRelease = function () {
_global.root.gotoAndPlay("fade_gameOver");
_global.root.gameOver_mc.gotoAndPlay("close");
_global.screens.genericBtnSnd("release");
};
clip.play_btn.onRollOver = function () {
_global.screens.genericBtnSnd("over");
};
clip.embed_btn.onRelease = function () {
com.teamrubber.SeqTrackerAdaptor.trackActionByLabel("embed");
_global.screens.genericBtnSnd("release");
_global.screens.toggleEmbedScreen(true);
};
clip.embed_btn.onRollOver = function () {
_global.screens.genericBtnSnd("over");
};
clip.exit_btn.onRelease = function () {
_global.screens.genericBtnSnd("release");
_global.root.exitLink(_global.exitURL, "fire_exit");
};
clip.exit_btn.onRollOver = function () {
_global.screens.genericBtnSnd("over");
};
clip.s_txt.text = "YOUR SCORE: " + com.bentempleton.Utils.addCommas(String(_global.game.score));
var _local3 = _global.root.tips[0];
clip.h_txt.text = _local3.header;
clip.b_txt.text = _local3.body;
}
function toggleEmbedScreen(boo) {
embed_panel._visible = boo;
embed_panel.t_txt.text = "";
embed_panel.t_txt.text = _global.root.embed;
embed_panel.disable_btn.useHandCursor = false;
embed_panel.under_btn.useHandCursor = false;
embed_panel.disable_btn.onRelease = function () {
_global.screens.toggleEmbedScreen(false);
};
embed_panel.close_btn.onRelease = function () {
_global.screens.genericBtnSnd("release");
_global.screens.toggleEmbedScreen(false);
};
embed_panel.close_btn.onRollOver = function () {
_global.screens.genericBtnSnd("over");
};
}
function toggleTooltip(msg) {
tooltip.t_txt.autoSize = true;
tooltip.t_txt.text = msg;
tooltip.bknd_mc._height = (tooltip.t_txt._y + tooltip.t_txt.textHeight) + 12;
tooltip._visible = true;
tooltip.stopTween();
tooltip.alphaTo(100, 0.5, "easeoutcubic");
tooltip.alphaTo(0, 0.5, "easeoutcubic", 1.2);
}
function startGameSelector(id) {
gs_prevGame = gs_currGame;
gs_currGame = gs_panel["g" + id];
gs_attempts = 0;
gs_int = setInterval(this, "gs_gameSelect", 300);
countdown_panel.gotoAndStop(1);
countdown_panel._alpha = 100;
countdown_panel._visible = true;
instruct_panel._visible = false;
gs_panel._visible = true;
gs_panel._alpha = 100;
}
function gs_gameSelect() {
function startCountdown() {
ref.doCountdown(_global.game.gameObj.inputType);
}
var ref = this;
for (var _local5 in gs_panel) {
gs_toggleSelection(gs_panel[_local5], false);
}
var _local3;
var _local4;
while ((_local3 == undefined) || (_local3 == gs_prevGame)) {
_local4 = Math.floor(Math.random() * 6);
_local3 = gs_panel["g" + _local4];
}
if (gs_attempts > 5) {
clearInterval(gs_int);
gs_showSelection(gs_currGame, true);
gs.TweenLite.delayedCall(0.4, startCountdown);
} else if (gs_attempts == 5) {
gs_toggleSelection(gs_currGame, true);
} else {
gs_toggleSelection(gs_prevGame, false);
gs_toggleSelection(_local3, true);
}
gs_prevGame = _local3;
gs_attempts++;
}
function gs_showSelection() {
instruct_panel.t_txt.text = _global.game.gameObj.label;
instruct_panel.b_txt.text = _global.game.gameObj.body;
_global.snd.playSound("game_selector_dance_choose", 1);
instruct_panel._visible = true;
gs_panel._visible = false;
}
function gs_toggleSelection(clip, boo) {
var _local3 = (boo ? "on" : "off");
if (boo) {
clip.bknd_mc.gotoAndStop("on");
_global.snd.playSound("game_selector_dance", 1);
clip.t_mc.colorTo(0, 0.2, "easeoutcubic");
} else {
clip.bknd_mc.gotoAndStop("off");
clip.t_mc.colorTo(null, 0.2, "easeoutcubic");
}
}
function doFeedback(gameObj, boo) {
fb_panel.useHandCursor = true;
if (gameObj.success) {
fb_panel.gotoAndStop("tick");
fb_panel.b_txt.text = gameObj.fb_good;
} else {
fb_panel.gotoAndStop("cross");
fb_panel.h_txt.text = gameObj.game_tip;
fb_panel.b_txt.text = gameObj.fb_bad;
}
if (boo) {
fb_panel._visible = true;
instruct_panel._visible = false;
gs_panel._visible = false;
} else {
fb_panel._visible = false;
instruct_panel._visible = false;
gs_panel._visible = true;
}
}
function toggle_clip(ref, boo, force, delay) {
if (delay == undefined) {
delay = null;
}
var _local2 = (boo ? (this[ref + "_props"].IN) : (this[ref + "_props"].OUT));
_local2.a = (boo ? 100 : 0);
var _local3 = this[ref + "_panel"];
if (boo) {
_local3._visible = true;
}
var _local4 = "_alpha";
if (!force) {
_local3.tween([_local4], [_local2.a], _local2.dur, "easeoutcubic", delay);
} else {
_local3.tween([_local4], [_local2.a]);
}
}
function doScoreAnimation() {
trace("doing score animation");
exit_panel.gotoAndPlay("start");
updateScore();
}
function doCountdown(input) {
countdown_panel.gotoAndPlay("start");
_global.game.loadGame();
countdown_panel._visible = true;
}
function setupPanel(ref) {
if (ref == "instruct") {
instruct_panel._visible = true;
fb_panel._visible = false;
bknd._y = 0;
} else if (ref == "fb") {
instruct_panel._visible = false;
fb_panel._visible = true;
bknd._y = 55;
} else if (ref == "gs") {
instruct_panel._visible = false;
fb_panel._visible = false;
bknd._y = -43;
}
}
function updateScore() {
var _local3 = _global.game.prevScore;
var _local4 = _global.game.score;
score_panel.s_txt.slide = _local3;
score_panel.s_txt.tween(["slide"], [_local4], 2, "linear", 0.5);
score_panel.s_txt.onTweenUpdate = function () {
this.text = "Score: " + com.bentempleton.Utils.addCommas(String(Math.round(this.slide)));
};
}
function updateLives(lives) {
if (lives == undefined) {
lives = _global.game.lives;
}
score_panel.lives_mc.gotoAndStop(4 - lives);
}
function genericBtnSnd(t) {
switch (t) {
case "over" :
_global.snd.playSound("button_rollover", 1);
break;
case "release" :
_global.snd.playSound("button_click", 1);
}
}
}
Symbol 132 MovieClip [__Packages.com.rubberductions.Tracker] Frame 0
class com.rubberductions.Tracker extends MovieClip
{
var lvID, lvs, sessionID, referrer, flashMinorVersion, flashMajorVersion, debug, CID, baseURL, userID, projectID, getIDFunc, userLV, getURL;
function Tracker () {
super();
initVars();
}
function initVars() {
lvID = 0;
lvs = [];
sessionID = "-1";
referrer = ((_root.referrer == undefined) ? "" : (_root.referrer));
var _local3 = com.rubberductions.Utils.getFlashVersion();
flashMinorVersion = (_local3.result ? (_local3.minor) : -1);
flashMajorVersion = (_local3.result ? (_local3.major) : -1);
}
function getNextLvID() {
return(++lvID);
}
function getALoadVars(label) {
var _local2 = new LoadVars();
_local2.__arrID = getNextLvID();
_local2.__label = label;
_local2.__cb = this;
_local2.onLoad = function (success) {
if (success) {
this.__cb.checkRequest(this);
} else {
this.__cb.badRequest(this);
}
};
lvs[_local2.__arrID] = _local2;
return(_local2);
}
function badRequest(lv) {
output(("request " + lv.__label) + " failed");
delete lvs[lv.__arrID];
}
function checkRequest(lv) {
if (lv.ok == "1") {
output(("request " + lv.__label) + " returned ok");
} else {
output(("request " + lv.__label) + " failed on the server");
}
if (lv.sessionID != undefined) {
sessionID = lv.sessionID;
}
delete lvs[lv.__arrID];
}
function output(str) {
if (debug) {
trace("TRACKER: " + str);
}
}
function checkReady() {
if ((((CID != undefined) && (baseURL != undefined)) && (userID != undefined)) && (projectID != undefined)) {
return(true);
}
output("prerequisits haven't been defined, check you have made calls to setBaseURL() ,setCampaignID(), setProjectID() and initialise() and that they returned correctly");
return(false);
}
function initialise(cbFunction) {
if (typeof(cbFunction) == "function") {
getIDFunc = cbFunction;
var _local2 = com.rubberductions.Utils.readLSO(projectID, "id");
if (_local2 != "") {
userID = _local2;
output("cookie found... letting you know");
getIDFunc(true);
} else {
output("cookie not found...");
requestUserID();
}
} else {
output("check the passed function");
}
}
function requestUserID() {
if (CID != undefined) {
output(("asking the server for a new user id from: " + baseURL) + GETID);
userLV = new LoadVars();
userLV.CID = CID;
userLV.onLoad = mx.utils.Delegate.create(this, userIDRequestResponse);
userLV.sendAndLoad(baseURL + GETID, userLV, "POST");
} else {
output("define the campaign id first before calling requestUserID");
}
}
function userIDRequestResponse(success) {
if (success) {
if (userLV.id != undefined) {
output("server provided a user id: " + userLV.id);
userID = userLV.id;
com.rubberductions.Utils.writeLSO(projectID, "id", userID);
output("wrote the coookie");
getIDFunc(true);
} else {
output("server didn't provide a user id");
getIDFunc(false);
}
} else {
output("request for the user id failed");
getIDFunc(false);
}
delete userLV;
}
function setBaseURL(u) {
if (typeof(u) == "string") {
baseURL = u;
return(true);
}
output("check the URL you passed to setBaseURL()");
return(false);
}
function setProjectID(id) {
if (typeof(id) == "string") {
projectID = id;
output("project id set: " + projectID);
return(true);
}
output("project id was not a string");
return(false);
}
function setCampaignID(id) {
if (typeof(id) == "string") {
CID = id;
output("campaign id set: " + CID);
return(true);
}
output("campaign id was not a number");
return(false);
}
function load() {
if (checkReady()) {
var _local2 = getALoadVars("load");
_local2.CID = CID;
_local2.flversionmajor = flashMajorVersion;
_local2.flversionminor = flashMinorVersion;
_local2.referrer = referrer;
_local2.UID = userID;
_local2.sendAndLoad(baseURL + LOAD, _local2, "POST");
return(true);
}
return(false);
}
function startSession() {
sessionID = "0";
if (checkReady()) {
var _local2 = getALoadVars("start session");
_local2.CID = CID;
_local2.UID = userID;
_local2.currentTime = new Date().getTime();
_local2.sendAndLoad(baseURL + START_SESSION, _local2, "POST");
return(true);
}
return(false);
}
function endSession() {
if (checkReady()) {
var _local2 = getALoadVars("end session");
_local2.CID = CID;
_local2.UID = userID;
_local2.currentTime = new Date().getTime();
_local2.sessionID = sessionID;
_local2.sendAndLoad(baseURL + END_SESSION, _local2, "POST");
return(true);
}
return(false);
}
function exit(link, exitLabel, window) {
if (typeof(link) == "string") {
if (typeof(exitLabel) == "string") {
if (typeof(window) == "string") {
if (checkReady()) {
var _local2 = getALoadVars("exit");
_local2.UID = userID;
_local2.CID = CID;
_local2.label = exitLabel;
_local2.link = link;
_local2.sendAndLoad(baseURL + EXIT, _local2, "POST");
}
(getURL(link, window));// not popped
return(true);
}
output("check the window you passed");
} else {
output("check the exitLabel you passed");
}
} else {
output("check the link you passed");
}
return(false);
}
function conversion(label, type) {
if (typeof(label) == "string") {
if (typeof(type) == "string") {
if (checkReady()) {
var _local2 = getALoadVars("conversion");
_local2.UID = userID;
_local2.CID = CID;
_local2.label = label;
_local2.type = type;
_local2.sendAndLoad(baseURL + CONVERSION, _local2, "POST");
return(true);
}
return(false);
}
output("check the type you passed");
} else {
output("check the label you passed");
}
return(false);
}
function exitPass(toSplit) {
if (checkReady()) {
if (typeof(toSplit) == "string") {
var _local2 = toSplit.split("|");
exit(unescape(_local2[1]), _local2[0]);
return(true);
}
return(false);
}
}
function view(label) {
if (typeof(label) == "string") {
if (checkReady()) {
var _local2 = getALoadVars("view");
_local2.UID = userID;
_local2.CID = CID;
_local2.label = label;
_local2.sendAndLoad(baseURL + VIEW, _local2, "POST");
return(true);
}
} else {
output("check the label you passed");
return(false);
}
}
function custom(path, obj, id) {
if (typeof(path) == "string") {
if (typeof(obj) == "object") {
if (typeof(id) == "string") {
if (checkReady()) {
var _local3 = getALoadVars(id);
_local3.UID = userID;
_local3.CID = CID;
for (var _local4 in obj) {
_local3[_local4] = obj[_local4];
}
_local3.sendAndLoad(baseURL + path, _local3, "POST");
return(true);
}
return(false);
}
// unexpected jump
}
output("check the supplied data obj - doesn't seem to be a Object");
return(false);
}
output("check the supplied path - doesn't seem to be a string");
return(false);
}
function setVerbose(val) {
if (typeof(val) == "boolean") {
debug = val;
output("setVerbose: " + val);
return(true);
}
trace("TRACKER: setVerbose: param is not a boolean");
return(false);
}
static var GETID = "getUID";
static var LOAD = "load";
static var START_SESSION = "startSession";
static var END_SESSION = "endSession";
static var EXIT = "exit";
static var VIEW = "view";
static var CONVERSION = "conversion";
}
Symbol 136 MovieClip [__Packages.com.rubberductions.Utils] Frame 0
class com.rubberductions.Utils
{
function Utils () {
}
static function readLSO(lsoName, prop) {
if (lsoName != undefined) {
var _local1 = SharedObject.getLocal(lsoName);
if (_local1.data[prop] == undefined) {
return("");
}
return(_local1.data[prop]);
}
}
static function writeLSO(lsoName, prop, stuff) {
var _local1 = SharedObject.getLocal(lsoName);
_local1.data[prop] = stuff;
_local1.data.flush();
}
static function getFlashVersion() {
var _local1 = System.capabilities.version;
var _local2 = _local1.indexOf(" ");
if (_local2 != -1) {
_local1 = _local1.substr(_local2 + 1, _local1.length);
_local1 = _local1.split(",");
var _local5 = _local1[0];
var _local4 = _local1[1];
return({major:_local5, minor:_local4, result:true});
}
return({major:-1, minor:-1, result:false});
}
}
Symbol 137 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 70 MovieClip [house] Frame 1
stop();
this.house_mc.gotoAndStop("no_fire");
Symbol 89 MovieClip [exit_mum] Frame 28
_global.snd.playSound("score_tickover", 1);
Symbol 89 MovieClip [exit_mum] Frame 33
stop();
Symbol 101 MovieClip Frame 28
_global.snd.playSound("score_tickover", 1);
Symbol 101 MovieClip Frame 33
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 135 MovieClip [tracker_] Frame 1
#initclip 29
Object.registerClass("tracker_", com.rubberductions.Tracker);
#endinitclip
Symbol 152 MovieClip Frame 1
stop();
Symbol 157 MovieClip [zonelabel] Frame 1
stop();
Symbol 163 MovieClip Frame 1
var route1 = new Object();
route1.sequence1 = [r1.z1, r1.z2, r1.z3, r1.z4];
route1.sequence2 = [r1.z1, r1.z2, r1.z5, r1.z6];
var route2 = new Object();
route2.sequence1 = [r2.z1, r2.z2, r2.z3, r2.z4];
route2.sequence2 = [r2.z1, r2.z2, r2.z5, r2.z6];
var route3 = new Object();
route3.sequence1 = [r3.z1, r3.z2, r3.z3, r3.z4];
route3.sequence2 = [r3.z1, r3.z2, r3.z5, r3.z6];
var routes = new Array(r1, r2, r3);
var i = 0;
while (i < routes.length) {
routes[i]._visible = false;
i++;
}
Symbol 171 MovieClip Frame 1
var route1 = new Object();
route1.sequence1 = [r1.z1, r1.z2, r1.z3, r1.z4];
route1.sequence2 = [r1.z1, r1.z2, r1.z5, r1.z6];
var route2 = new Object();
route2.sequence1 = [r2.z1, r2.z2, r2.z3, r2.z4];
route2.sequence2 = [r2.z1, r2.z2, r2.z5, r2.z6];
var route3 = new Object();
route3.sequence1 = [r3.z1, r3.z2, r3.z3, r3.z4];
route3.sequence2 = [r3.z1, r3.z2, r3.z5, r3.z6];
var routes = new Array(r1, r2, r3);
var i = 0;
while (i < routes.length) {
routes[i]._visible = false;
i++;
}
Symbol 179 MovieClip Frame 1
var route1 = new Object();
route1.sequence1 = [r1.z1, r1.z2, r1.z3, r1.z4];
route1.sequence2 = [r1.z1, r1.z2, r1.z5, r1.z6];
var route2 = new Object();
route2.sequence1 = [r2.z1, r2.z2, r2.z3, r2.z4];
route2.sequence2 = [r2.z1, r2.z2, r2.z5, r2.z6];
var route3 = new Object();
route3.sequence1 = [r3.z1, r3.z2, r3.z3, r3.z4];
route3.sequence2 = [r3.z1, r3.z2, r3.z5, r3.z6];
var routes = new Array(r1, r2, r3);
var i = 0;
while (i < routes.length) {
routes[i]._visible = false;
i++;
}
Symbol 193 MovieClip Frame 1
var route1 = new Object();
route1.sequence1 = [r1.z1, r1.z2, r1.z3, r1.z4];
route1.sequence2 = [r1.z1, r1.z2, r1.z3, r1.z5];
var route2 = new Object();
route2.sequence1 = [r2.z1, r2.z2, r2.z3, r2.z4];
route2.sequence2 = [r2.z1, r2.z2, r2.z5, r2.z5];
var route3 = new Object();
route3.sequence1 = [r3.z1, r3.z2, r3.z3, r3.z4];
route3.sequence2 = [r3.z1, r3.z2, r3.z3, r3.z5];
var routes = new Array(r1, r2, r3);
var i = 0;
while (i < routes.length) {
routes[i]._visible = false;
i++;
}
Symbol 198 MovieClip Frame 1
stop();
Symbol 200 MovieClip [Plan A GAME] Frame 1
#initclip 33
Object.registerClass("Plan A GAME", com.bentempleton.PlanGameControl);
#endinitclip
Symbol 216 MovieClip [strike] Frame 8
stop();
Symbol 217 MovieClip Frame 8
stop();
Symbol 218 MovieClip Frame 1
stop();
this._visible = false;
Symbol 228 MovieClip Frame 1
stop();
Symbol 234 MovieClip [door4] Frame 1
stop();
var targets = new Array(t1);
Symbol 245 MovieClip [door5] Frame 1
stop();
var targets = new Array(t1, t2);
Symbol 247 MovieClip [door6] Frame 1
stop();
var targets = new Array(t1, t2);
Symbol 248 MovieClip [doors GAME] Frame 1
#initclip 30
Object.registerClass("doors GAME", com.bentempleton.DoorsGameControl);
#endinitclip
Symbol 257 MovieClip [objects_buggy] Frame 1
stop();
Symbol 263 MovieClip Frame 5
stop();
Symbol 264 MovieClip [objects_cat] Frame 1
stop();
Symbol 267 MovieClip [objects_tennis] Frame 1
stop();
Symbol 270 MovieClip [objects_bag] Frame 1
stop();
Symbol 273 MovieClip [objects_cone] Frame 1
stop();
Symbol 276 MovieClip [objects_snowboard] Frame 1
stop();
Symbol 281 MovieClip [objects_shoes] Frame 1
stop();
Symbol 286 MovieClip [objects_kite] Frame 1
stop();
Symbol 289 MovieClip [objects_guitar] Frame 1
stop();
Symbol 295 MovieClip [Game] Frame 1
#initclip 31
Object.registerClass("Game", com.bentempleton.ObjectsGame);
#endinitclip
Symbol 298 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 1
stop();
Symbol 312 MovieClip [keys_CardsHolder] Frame 1
this.onEnterFrame = function () {
this._parent.registerCard(this);
delete this.onEnterFrame;
};
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 11
this.hand_aniClosed(this);
Symbol 323 MovieClip Frame 19
stop();
Symbol 324 MovieClip [keys_Game] Frame 1
#initclip 32
Object.registerClass("keys_Game", com.bentempleton.RememberKeysGame);
#endinitclip
Symbol 328 MovieClip Frame 1
stop();
this.house_mc.gotoAndStop("no_fire");
Symbol 328 MovieClip Frame 14
_global.snd.playSound("animation_cover_1", 1);
Symbol 328 MovieClip Frame 25
_global.game.currGame.alphaTo(100, 0.5, "easeoutcubic");
Symbol 328 MovieClip Frame 35
stop();
this.house_mc.gotoAndStop("fire");
Symbol 328 MovieClip Frame 49
_global.game.screenManager.toggle_clip("score", true);
Symbol 328 MovieClip Frame 59
_global.game.nextGame();
stop();
Symbol 334 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 1
stop();
this._visible = false;
Symbol 343 MovieClip Frame 20
stop();
Symbol 343 MovieClip Frame 43
stop();
Symbol 352 MovieClip Frame 28
_global.snd.playSound("score_tickover", 1);
Symbol 352 MovieClip Frame 33
stop();
Symbol 354 MovieClip Frame 28
_global.snd.playSound("score_tickover", 1);
Symbol 354 MovieClip Frame 33
stop();
Symbol 355 MovieClip Frame 1
stop();
Symbol 355 MovieClip Frame 2
this.exit_mc.gotoAndPlay("open");
this.exit_mc._visible = true;
Symbol 355 MovieClip Frame 56
stop();
_global.game.requestGame();
this.exit_mc.gotoAndPlay("close");
Symbol 356 MovieClip Frame 1
btn.useHandCursor = false;
Symbol 410 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 64
stop();
Symbol 414 MovieClip Frame 8
stop();
Symbol 414 MovieClip Frame 18
stop();
Symbol 436 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 69
_global.root.gotoAndPlay("minigames");
Symbol 436 MovieClip Frame 85
stop();
Symbol 470 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 12
stop();
Symbol 470 MovieClip Frame 20
stop();
Symbol 474 MovieClip Frame 1
this._visible = false;
Symbol 481 MovieClip Frame 1
stop();
this._visible = false;
Symbol 481 MovieClip Frame 6
stop();
this._visible = true;
this._alpha = 100;
Symbol 481 MovieClip Frame 14
_global.snd.playSound("timer_beep_3", 1);
Symbol 481 MovieClip Frame 31
_global.snd.playSound("timer_beep_3", 1);
Symbol 481 MovieClip Frame 49
_global.snd.playSound("timer_beep_3", 1);
Symbol 481 MovieClip Frame 67
_global.snd.playSound("timer_beep_4", 1);
Symbol 481 MovieClip Frame 71
_global.game.startGame();
this.alphaTo(0, 0.3, "easeoutcubic");
stop();
Symbol 490 MovieClip Frame 1
stop();
Symbol 491 MovieClip Frame 1
stop();
Symbol 492 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 10
stop();
_global.screens.toggle_clip("score", true);
Symbol 518 MovieClip Frame 18
stop();
Symbol 527 MovieClip Frame 1
this._visible = false;