Frame 1
function switchScreen(nextScreen) {
if (screenMoving) {
return(false);
}
screenMoving = true;
screenName = nextScreen;
hideScreen();
}
function showScreen() {
gotoAndStop(screenName);
initScreen();
mc_screen._alpha = 0;
com.greensock.TweenMax.to(mc_screen, 0.5, {_alpha:100, colorMatrixFilter:{saturation:0, brightness:3}, onComplete:function () {
com.greensock.TweenMax.to(mc_screen, 0.5, {overwrite:0, colorMatrixFilter:{saturation:1, brightness:1}});
}});
setClipToFrame(mc_bg);
screenMoving = false;
if (screenName == "title") {
com.greensock.TweenLite.to(mc_window, 0.5, {_alpha:100});
com.greensock.TweenLite.to(mc_char, 0.5, {_alpha:100});
} else {
com.greensock.TweenLite.to(mc_window, 0.5, {_alpha:0});
com.greensock.TweenLite.to(mc_char, 0.5, {_alpha:0});
}
if (screenName == "game") {
btn_tamba.text_label.textColor = 16777215 /* 0xFFFFFF */;
btn_sound.text_label.textColor = 16777215 /* 0xFFFFFF */;
} else {
btn_tamba.text_label.textColor = 0;
btn_sound.text_label.textColor = 0;
}
}
function hideScreen() {
if (mc_screen == null) {
showScreen();
} else {
com.greensock.TweenMax.to(mc_screen, 0.5, {colorMatrixFilter:{saturation:0, brightness:3}, onComplete:function () {
com.greensock.TweenMax.to(mc_screen, 0.5, {_alpha:0, onComplete:showScreen});
}});
}
}
function initScreen() {
var _local1 = mc_screen;
for (var _local2 in _local1) {
if (_local2 == "mc_title") {
_local1.mc_title.gotoAndStop((screenName + "_") + seasonFrame);
} else if (_local2.indexOf("mc_optin_") < 0) {
_local1[_local2].gotoAndStop(seasonFrame);
}
if (_local2.indexOf("btn_") == 0) {
_local1[_local2].onRollOver = btnRollOver;
_local1[_local2].onRollOut = btnRollOut;
}
}
}
function setClipToFrame(clip) {
clip.gotoAndStop(seasonFrame);
}
function playSound(strName) {
var _local1 = new Sound();
_local1.attachSound(strName);
_local1.start();
}
function initBookmarks(bookmarks) {
for (var _local6 in bookmarks) {
var _local3 = bookmarks[_local6];
_local3.onRelease = function () {
var _local2 = this._name.split("_");
var _local3 = _local2[1];
getURL ("http://www.tamba-games.co.uk/bookmarks.php?client=hohoho&bookmark=" + _local3, "_blank");
};
}
}
stop();
Stage.showMenu = false;
var intScore = 0;
var intScoreSub = 0;
var strRootURL = "http://www.tamba-games.co.uk/mktgbirm/hohoho/";
var strServiceURL = (strRootURL + "/amfphp/gateway.php");
var objRemote = (new remoting.RemotingFunctions(strServiceURL, "GameFunctions"));
var screenMoving = false;
var score = 0;
var screenName = "";
mc_footer_1._visible = true;
mc_footer_2._visible = false;
var seasonFrame = 2;
var date = new Date();
var day = date.getDate();
var month = (date.getMonth() + 1);
var year = (date.getYear() + 1900);
if (((month == 12) || ((month == 1) && (day < 6))) || (year == 2010)) {
seasonFrame = 1;
}
preLoad = function () {
mc_preloader.load_pct.text = Math.round((getBytesLoaded() / getBytesTotal()) * 100) + "%";
if (getBytesLoaded() == getBytesTotal()) {
clearInterval(intPreloader);
gotoAndStop ("music");
}
};
var intPreloader = setInterval(preLoad, 40);
btn_visitbirm.onRollOver = btnRollOver;
btn_visitbirm.onRollOut = btnRollOut;
btn_londonmidland.onRollOver = btnRollOver;
btn_londonmidland.onRollOut = btnRollOut;
setClipToFrame(mc_window);
var globalSound = new Sound(_root);
btn_sound.onRelease = function () {
if (!soundOff) {
btn_sound.text_label.text = "Turn sound on";
globalSound.setVolume(0);
soundOff = true;
skipnext = true;
}
if (soundOff && (!skipnext)) {
btn_sound.text_label.text = "Turn sound off";
globalSound.setVolume(100);
soundOff = false;
}
skipnext = false;
};
initBookmarks(mc_bookmarks);
btnRollOver = function () {
com.greensock.TweenMax.to(this, 0.5, {colorMatrixFilter:{brightness:1.5}});
};
btnRollOut = function () {
com.greensock.TweenMax.to(this, 0.5, {colorMatrixFilter:{brightness:1}});
};
if (!kv_v) {
kv_v = {c:993, a:0, da:["distralytics.com", "distralytics.co.uk"]};
kv_v.i = 0;
while (kv_v.i < kv_v.da.length) {
if (dom.charAt(0) === ".") {
var dom = kv_v.da[kv_v.i];
dom.substr(1, dom.length - 1);
System.security.allowDomain(dom, "*." + dom);
} else {
System.security.allowDomain(kv_v.da[kv_v.i], (kv_v.c + ".c.") + kv_v.da[kv_v.i], "*." + kv_v.da[kv_v.i]);
}
kv_v.i++;
}
kv_v.lc = function () {
var _local2;
var _local1 = kv_v.da[kv_v.a % kv_v.da.length];
if (_local1.charAt(0) === ".") {
_local2 = ("http://" + _local1.substr(1, _local1.length - 1)) + kv_v.lurl;
} else {
_local2 = ((("http://" + kv_v.c) + ".c.") + _local1) + kv_v.lurl;
}
System.security.allowDomain(_local2);
kv_v.l_mcl.loadClip(_local2, kv_v.t_mc);
};
kv_v.d = (_root.ori_dom ? (_root.ori_dom) : (((_root._url.split("/")[0].indexOf("http") == -1) ? "Local" : (_root._url.split("/")[2].split("?")[0]))));
kv_v.fpv = getVersion().split(" ")[1].split(",")[0];
kv_v.lurl = "/node/tracking/tracker.swf?r=" + Math.floor(Math.random() * 10000);
kv_v.t_mc = createEmptyMovieClip("kv_tracker", -16734);
kv_v.l_mcl = new MovieClipLoader();
kv_v.mcl_l = {onLoadError:function () {
if ((kv_v.a++) < 3) {
kv_v.lc();
} else {
kv_v.lv = new LoadVars();
kv_v.lv.error = "Unable to load SWF";
kv_v.lv.fd = _root._url;
kv_v.lv.c = kv_v.c;
kv_v.lv.mc = "3.2.x";
kv_v.lv.sendAndLoad("http://error.distralytics.com/comms/", kv_v.lv, "GET");
}
}, onLoadStart:function (m) {
System.security.allowDomain(m._url);
}};
kv_v.l_mcl.addListener(kv_v.mcl_l);
kv_v.lc();
}
Instance of Symbol 79 MovieClip "btn_tamba" in Frame 1
on (release) {
getURL ("http://www.tamba.co.uk", "_blank");
}
Frame 3
setClipToFrame(mc_bg);
setClipToFrame(mc_char);
Frame 5
intScoreSub = 0;
Frame 10
switchScreen("title");
Symbol 5 MovieClip [RemotingDebugClasses] Frame 1
#initclip 93
Object.registerClass("RemotingDebugClasses", mx.remoting.DebugClasses);
#endinitclip
preview._visible = false;
stop();
Symbol 50 MovieClip [RemotingClasses] Frame 1
#initclip 94
Object.registerClass("RemotingClasses", mx.remoting.ApiClasses);
#endinitclip
preview._visible = false;
stop();
Instance of Symbol 88 MovieClip in Symbol 89 MovieClip Frame 1
on (release) {
getURL ("http://www.visitbirmingham.com", "_blank");
}
Instance of Symbol 88 MovieClip in Symbol 89 MovieClip Frame 1
on (release) {
getURL ("http://www.londonmidland.com/", "_blank");
}
Symbol 537 MovieClip [__Packages.com.greensock.core.TweenCore] Frame 0
class com.greensock.core.TweenCore
{
static var _classInitted;
var vars, cachedDuration, cachedTotalDuration, _delay, cachedTimeScale, active, cachedTotalTime, cachedTime, data, gc, initted, cacheIsDirty, cachedPaused, cachedReversed, _rawPrevTime, cachedStartTime, timeline, _pauseTime;
function TweenCore (duration, vars) {
this.vars = vars || ({});
cachedDuration = (cachedTotalDuration = duration || 0);
_delay = Number(this.vars.delay) || 0;
cachedTimeScale = this.vars.timeScale || 1;
active = Boolean(((duration == 0) && (_delay == 0)) && (this.vars.immediateRender != false));
cachedTotalTime = (cachedTime = 0);
data = this.vars.data;
gc = (initted = (cacheIsDirty = (cachedPaused = (cachedReversed = false))));
_rawPrevTime = -1;
if (!_classInitted) {
if ((com.greensock.TweenLite.rootFrame == undefined) && (com.greensock.TweenLite.initClass != undefined)) {
com.greensock.TweenLite.initClass();
_classInitted = true;
} else {
return;
}
}
var _local2 = ((this.vars.timeline instanceof com.greensock.core.SimpleTimeline) ? (this.vars.timeline) : (((this.vars.useFrames == true) ? (com.greensock.TweenLite.rootFramesTimeline) : (com.greensock.TweenLite.rootTimeline))));
cachedStartTime = _local2.cachedTotalTime + _delay;
_local2.addChild(this);
if (this.vars.reversed) {
cachedReversed = true;
}
if (this.vars.paused) {
paused = (true);
}
}
function play() {
reversed = (false);
paused = (false);
}
function pause() {
paused = (true);
}
function resume() {
paused = (false);
}
function restart(includeDelay, suppressEvents) {
reversed = (false);
paused = (false);
setTotalTime((includeDelay ? (-_delay) : 0), Boolean(suppressEvents != false));
}
function reverse(forceResume) {
reversed = (true);
if (forceResume != false) {
paused = (false);
} else if (gc) {
setEnabled(true, false);
}
}
function renderTime(time, suppressEvents, force) {
}
function complete(skipRender, suppressEvents) {
if (!skipRender) {
renderTime(totalDuration, suppressEvents, false);
return(undefined);
}
if (timeline.autoRemoveChildren) {
setEnabled(false, false);
} else {
active = false;
}
if (!suppressEvents) {
if ((vars.onComplete && (cachedTotalTime == cachedTotalDuration)) && (!cachedReversed)) {
vars.onComplete.apply(vars.onCompleteScope, vars.onCompleteParams);
} else if ((cachedReversed && (cachedTotalTime == 0)) && (vars.onReverseComplete)) {
vars.onReverseComplete.apply(vars.onReverseCompleteScope, vars.onReverseCompleteParams);
}
}
}
function invalidate() {
}
function setEnabled(enabled, ignoreTimeline) {
if (enabled) {
active = Boolean(((!cachedPaused) && (cachedTotalTime > 0)) && (cachedTotalTime < cachedTotalDuration));
if ((ignoreTimeline != true) && (gc)) {
timeline.addChild(this);
}
} else {
active = false;
if (ignoreTimeline != true) {
timeline.remove(this, true);
}
}
gc = !enabled;
return(false);
}
function kill() {
setEnabled(false, false);
}
function setDirtyCache(includeSelf) {
var _local2 = ((includeSelf != false) ? this : (timeline));
while (_local2) {
_local2.cacheIsDirty = true;
_local2 = _local2.timeline;
}
}
function setTotalTime(time, suppressEvents) {
if (timeline) {
var _local3 = ((_pauseTime || (_pauseTime == 0)) ? (_pauseTime) : (timeline.cachedTotalTime));
if (cachedReversed) {
var _local4 = (cacheIsDirty ? (totalDuration) : (cachedTotalDuration));
cachedStartTime = _local3 - ((_local4 - time) / cachedTimeScale);
} else {
cachedStartTime = _local3 - (time / cachedTimeScale);
}
if (!timeline.cacheIsDirty) {
setDirtyCache(false);
}
if (cachedTotalTime != time) {
renderTime(time, suppressEvents, false);
}
}
}
function get delay() {
return(_delay);
}
function set delay(n) {
startTime = startTime + (n - _delay);
_delay = n;
//return(delay);
}
function get duration() {
return(cachedDuration);
}
function set duration(n) {
cachedDuration = (cachedTotalDuration = n);
setDirtyCache(false);
//return(duration);
}
function get totalDuration() {
return(cachedTotalDuration);
}
function set totalDuration(n) {
duration = (n);
//return(totalDuration);
}
function get currentTime() {
return(cachedTime);
}
function set currentTime(n) {
setTotalTime(n, false);
//return(currentTime);
}
function get totalTime() {
return(cachedTotalTime);
}
function set totalTime(n) {
setTotalTime(n, false);
//return(totalTime);
}
function get startTime() {
return(cachedStartTime);
}
function set startTime(n) {
var _local2 = Boolean((timeline != undefined) && ((n != cachedStartTime) || (gc)));
cachedStartTime = n;
if (_local2) {
timeline.addChild(this);
}
//return(startTime);
}
function get reversed() {
return(cachedReversed);
}
function set reversed(b) {
if (b != cachedReversed) {
cachedReversed = b;
setTotalTime(cachedTotalTime, true);
}
//return(reversed);
}
function get paused() {
return(cachedPaused);
}
function set paused(b) {
if ((b != cachedPaused) && (timeline)) {
if (b) {
_pauseTime = timeline.rawTime;
} else {
cachedStartTime = cachedStartTime + (timeline.__get__rawTime() - _pauseTime);
_pauseTime = NaN;
setDirtyCache(false);
}
cachedPaused = b;
active = Boolean(((!cachedPaused) && (cachedTotalTime > 0)) && (cachedTotalTime < cachedTotalDuration));
}
if ((!b) && (gc)) {
setTotalTime(cachedTotalTime, false);
setEnabled(true, false);
}
//return(paused);
}
static var version = 1.132;
}
Symbol 538 MovieClip [__Packages.com.greensock.core.SimpleTimeline] Frame 0
class com.greensock.core.SimpleTimeline extends com.greensock.core.TweenCore
{
var _firstChild, _lastChild, cachedTotalTime, cachedTime;
function SimpleTimeline (vars) {
super(0, vars);
}
function addChild(node) {
if ((!node.gc) && (node.timeline != undefined)) {
node.timeline.remove(node, true);
}
node.timeline = this;
if (node.gc) {
node.setEnabled(true, true);
}
if (_firstChild) {
_firstChild.prevNode = node;
}
node.nextNode = _firstChild;
_firstChild = node;
node.prevNode = undefined;
}
function remove(tween, skipDisable) {
if (tween.gc) {
return(undefined);
}
if (skipDisable != true) {
tween.setEnabled(false, true);
}
if (tween.nextNode) {
tween.nextNode.prevNode = tween.prevNode;
} else if (_lastChild == tween) {
_lastChild = tween.prevNode;
}
if (tween.prevNode) {
tween.prevNode.nextNode = tween.nextNode;
} else if (_firstChild == tween) {
_firstChild = tween.nextNode;
}
}
function renderTime(time, suppressEvents, force) {
var _local2 = _firstChild;
var _local4;
var _local5;
cachedTotalTime = time;
cachedTime = time;
while (_local2) {
_local5 = _local2.nextNode;
if (_local2.active || (((time >= _local2.cachedStartTime) && (!_local2.cachedPaused)) && (!_local2.gc))) {
if (!_local2.cachedReversed) {
_local2.renderTime((time - _local2.cachedStartTime) * _local2.cachedTimeScale, suppressEvents, false);
} else {
_local4 = (_local2.cacheIsDirty ? (_local2.__get__totalDuration()) : (_local2.cachedTotalDuration));
_local2.renderTime(_local4 - ((time - _local2.cachedStartTime) * _local2.cachedTimeScale), suppressEvents, false);
}
}
_local2 = _local5;
}
}
function get rawTime() {
return(cachedTotalTime);
}
}
Symbol 539 MovieClip [__Packages.com.greensock.TweenLite] Frame 0
class com.greensock.TweenLite extends com.greensock.core.TweenCore
{
static var _timingClip, rootTimeline, rootFrame, rootFramesTimeline, overwriteManager, onPluginEvent;
var ratio, target, _targetID, vars, cachedTimeScale, propTweenLookup, _ease, _overwrite, active, cachedPT1, _notifyPluginsOfEnabled, _hasPlugins, _hasUpdate, _overwrittenProps, initted, cachedTime, cachedDuration, cachedTotalTime, _rawPrevTime, cachedReversed, cachedPaused, complete;
function TweenLite (target, duration, vars) {
super(duration, vars);
if (_timingClip.onEnterFrame != updateAll) {
var _local7 = ((_root.getBytesLoaded() == undefined) ? (findSubloadedSWF(_root)) : _root);
var _local6 = 999;
while (_local7.getInstanceAtDepth(_local6) != undefined) {
_local6++;
}
_timingClip = _local7.createEmptyMovieClip("__tweenLite" + String(version).split(".").join("_"), _local6);
_timingClip.onEnterFrame = updateAll;
rootTimeline.cachedStartTime = getTimer() * 0.001;
rootFramesTimeline.cachedStartTime = rootFrame;
}
ratio = 0;
this.target = target;
_targetID = getID(target, true);
if ((this.vars.timeScale != undefined) && (this.target instanceof com.greensock.core.TweenCore)) {
cachedTimeScale = 1;
}
propTweenLookup = {};
_ease = defaultEase;
_overwrite = (((vars.overwrite == undefined) || ((!overwriteManager.enabled) && (vars.overwrite > 1))) ? (overwriteManager.mode) : (Number(vars.overwrite)));
var _local5 = masterList[_targetID].tweens;
if (_local5.length == 0) {
_local5[0] = this;
} else if (_overwrite == 1) {
var _local4 = _local5.length;
while (_local4--) {
if (!_local5[_local4].gc) {
_local5[_local4].setEnabled(false, false);
}
}
masterList[_targetID].tweens = [this];
} else {
_local5[_local5.length] = this;
}
if (active || (this.vars.immediateRender)) {
renderTime(0, false, true);
}
}
static function initClass() {
rootFrame = 0;
rootTimeline = new com.greensock.core.SimpleTimeline(null);
rootFramesTimeline = new com.greensock.core.SimpleTimeline(null);
rootTimeline.autoRemoveChildren = (rootFramesTimeline.autoRemoveChildren = true);
if (overwriteManager == undefined) {
overwriteManager = {mode:1, enabled:false};
}
}
function init() {
var _local2;
var _local5;
var _local3;
var _local6;
var _local7;
if (typeof(vars.ease) == "function") {
_ease = vars.ease;
}
if (vars.easeParams != undefined) {
vars.proxiedEase = _ease;
_ease = easeProxy;
}
cachedPT1 = undefined;
propTweenLookup = {};
for (_local2 in vars) {
if (_reservedProps[_local2] && (!((_local2 == "timeScale") && (target instanceof com.greensock.core.TweenCore)))) {
} else if (plugins[_local2] && ((_local3 = new plugins[_local2]()).onInitTween(target, vars[_local2], this))) {
cachedPT1 = new com.greensock.core.PropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length == 1) ? (_local3.overwriteProps[0]) : "_MULTIPLE_"), true, cachedPT1);
if (cachedPT1.name == "_MULTIPLE_") {
_local5 = _local3.overwriteProps.length;
while (_local5--) {
propTweenLookup[_local3.overwriteProps[_local5]] = cachedPT1;
}
} else {
propTweenLookup[cachedPT1.name] = cachedPT1;
}
if (_local3.priority) {
cachedPT1.priority = _local3.priority;
_local6 = true;
}
if (_local3.onDisable || (_local3.onEnable)) {
_notifyPluginsOfEnabled = true;
}
_hasPlugins = true;
} else {
cachedPT1 = new com.greensock.core.PropTween(target, _local2, Number(target[_local2]), ((typeof(vars[_local2]) == "number") ? (Number(vars[_local2]) - target[_local2]) : (Number(vars[_local2]))), _local2, false, cachedPT1);
propTweenLookup[_local2] = cachedPT1;
}
}
if (_local6) {
onPluginEvent("onInit", this);
}
if (vars.runBackwards) {
var _local4 = cachedPT1;
while (_local4) {
_local4.start = _local4.start + _local4.change;
_local4.change = -_local4.change;
_local4 = _local4.nextNode;
}
}
_hasUpdate = Boolean(typeof(vars.onUpdate) == "function");
if (_overwrittenProps) {
killVars(_overwrittenProps);
if (cachedPT1 == undefined) {
setEnabled(false, false);
}
}
if ((((_overwrite > 1) && (cachedPT1)) && (_local7 = masterList[_targetID].tweens)) && (_local7.length > 1)) {
if (overwriteManager.manageOverwrites(this, propTweenLookup, _local7, _overwrite)) {
init();
}
}
initted = true;
}
function renderTime(time, suppressEvents, force) {
var _local4;
var _local5 = cachedTime;
if (time >= cachedDuration) {
cachedTotalTime = (cachedTime = cachedDuration);
ratio = 1;
_local4 = true;
if (cachedDuration == 0) {
if (((time == 0) || (_rawPrevTime < 0)) && (_rawPrevTime != time)) {
force = true;
}
_rawPrevTime = time;
}
} else if (time <= 0) {
cachedTotalTime = (cachedTime = (ratio = 0));
if (time < 0) {
active = false;
if (cachedDuration == 0) {
if (_rawPrevTime > 0) {
force = true;
_local4 = true;
}
_rawPrevTime = time;
}
}
if (cachedReversed && (_local5 != 0)) {
_local4 = true;
}
} else {
cachedTotalTime = (cachedTime = time);
ratio = _ease(time, 0, 1, cachedDuration);
}
if ((cachedTime == _local5) && (!force)) {
return(undefined);
}
if (!initted) {
init();
if ((!_local4) && (cachedTime)) {
ratio = _ease(cachedTime, 0, 1, cachedDuration);
}
}
if ((!active) && (!cachedPaused)) {
active = true;
}
if ((((_local5 == 0) && (vars.onStart)) && (cachedTime != 0)) && (!suppressEvents)) {
vars.onStart.apply(vars.onStartScope, vars.onStartParams);
}
var _local2 = cachedPT1;
while (_local2) {
_local2.target[_local2.property] = _local2.start + (ratio * _local2.change);
_local2 = _local2.nextNode;
}
if (_hasUpdate && (!suppressEvents)) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local4) {
if (_hasPlugins && (cachedPT1)) {
onPluginEvent("onComplete", this);
}
complete(true, suppressEvents);
}
}
function killVars(vars, permanent) {
if (_overwrittenProps == undefined) {
_overwrittenProps = {};
}
var _local3;
var _local2;
var _local5;
for (_local3 in vars) {
if (propTweenLookup[_local3]) {
_local2 = propTweenLookup[_local3];
if (_local2.isPlugin && (_local2.name == "_MULTIPLE_")) {
_local2.target.killProps(vars);
if (_local2.target.overwriteProps.length == 0) {
_local2.name = "";
}
}
if (_local2.name != "_MULTIPLE_") {
if (_local2.nextNode) {
_local2.nextNode.prevNode = _local2.prevNode;
}
if (_local2.prevNode) {
_local2.prevNode.nextNode = _local2.nextNode;
} else if (cachedPT1 == _local2) {
cachedPT1 = _local2.nextNode;
}
if (_local2.isPlugin && (_local2.target.onDisable)) {
_local2.target.onDisable();
if (_local2.target.activeDisable) {
_local5 = true;
}
}
delete propTweenLookup[_local3];
}
}
if (permanent != false) {
_overwrittenProps[_local3] = 1;
}
}
return(_local5);
}
function invalidate() {
if (_notifyPluginsOfEnabled) {
onPluginEvent("onDisable", this);
}
cachedPT1 = undefined;
_overwrittenProps = undefined;
_hasUpdate = (initted = (active = (_notifyPluginsOfEnabled = false)));
propTweenLookup = {};
}
function setEnabled(enabled, ignoreTimeline) {
if (enabled) {
var _local3 = masterList[_targetID].tweens;
if (_local3) {
_local3[_local3.length] = this;
} else {
masterList[_targetID] = {target:target, tweens:[this]};
}
}
super.setEnabled(enabled, ignoreTimeline);
if (_notifyPluginsOfEnabled && (cachedPT1)) {
return(onPluginEvent((enabled ? "onEnable" : "onDisable"), this));
}
return(false);
}
function easeProxy(t, b, c, d) {
return(vars.proxiedEase.apply(null, arguments.concat(vars.easeParams)));
}
static function to(target, duration, vars) {
return(new com.greensock.TweenLite(target, duration, vars));
}
static function from(target, duration, vars) {
vars.runBackwards = true;
if (vars.immediateRender != false) {
vars.immediateRender = true;
}
return(new com.greensock.TweenLite(target, duration, vars));
}
static function delayedCall(delay, onComplete, onCompleteParams, onCompleteScope, useFrames) {
return(new com.greensock.TweenLite(onComplete, 0, {delay:delay, onComplete:onComplete, onCompleteParams:onCompleteParams, onCompleteScope:onCompleteScope, immediateRender:false, useFrames:useFrames, overwrite:0}));
}
static function updateAll() {
rootTimeline.renderTime(((getTimer() * 0.001) - rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale, false, false);
rootFrame++;
rootFramesTimeline.renderTime((rootFrame - rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale, false, false);
if (!(rootFrame % 60)) {
var _local3 = masterList;
var _local2;
var _local1;
for (var _local4 in _local3) {
_local1 = _local3[_local4].tweens;
_local2 = _local1.length;
while (_local2--) {
if (_local1[_local2].gc) {
_local1.splice(_local2, 1);
}
}
if (_local1.length == 0) {
delete _local3[_local4];
}
}
}
}
static function killTweensOf(target, complete) {
var _local5 = getID(target, true);
var _local3 = masterList[_local5].tweens;
var _local2;
var _local1;
if (_local3 != undefined) {
_local2 = _local3.length;
while (_local2--) {
_local1 = _local3[_local2];
if (!_local1.gc) {
if (complete == true) {
_local1.complete(false, false);
} else {
_local1.setEnabled(false, false);
}
}
}
delete masterList[_local5];
}
}
static function getID(target, lookup) {
var _local2;
if (lookup) {
var _local1 = masterList;
if (typeof(target) == "movieclip") {
if (_local1[String(target)] != undefined) {
return(String(target));
}
_local2 = String(target);
masterList[_local2] = {target:target, tweens:[]};
return(_local2);
}
for (var _local3 in _local1) {
if (_local1[_local3].target == target) {
return(_local3);
}
}
}
_cnt++;
_local2 = "t" + _cnt;
masterList[_local2] = {target:target, tweens:[]};
return(_local2);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((-1 * t) * (t - 2));
}
static function findSubloadedSWF(mc) {
for (var _local3 in mc) {
if (typeof(mc[_local3]) == "movieclip") {
if ((mc[_local3]._url != _root._url) && (mc[_local3].getBytesLoaded() != undefined)) {
return(mc[_local3]);
}
if (findSubloadedSWF(mc[_local3]) != undefined) {
return(findSubloadedSWF(mc[_local3]));
}
}
}
return(undefined);
}
static var version = 11.133;
static var plugins = {};
static var killDelayedCallsTo = killTweensOf;
static var defaultEase = easeOut;
static var masterList = {};
static var _cnt = -16000;
static var _reservedProps = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, onReverseComplete:1, onReverseCompleteParams:1, onRepeat:1, onRepeatParams:1, proxiedEase:1, easeParams:1, yoyo:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1, immediateRender:1, repeat:1, repeatDelay:1, timeline:1, data:1, paused:1};
}
Symbol 540 MovieClip [__Packages.com.greensock.core.PropTween] Frame 0
class com.greensock.core.PropTween
{
var target, property, start, change, name, isPlugin, nextNode, priority;
function PropTween (target, property, start, change, name, isPlugin, nextNode, priority) {
this.target = target;
this.property = property;
this.start = start;
this.change = change;
this.name = name;
this.isPlugin = isPlugin;
if (nextNode) {
nextNode.prevNode = this;
this.nextNode = nextNode;
}
this.priority = priority || 0;
}
}
Symbol 541 MovieClip [__Packages.com.greensock.plugins.TweenPlugin] Frame 0
class com.greensock.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") ? (Number(end) - start) : (Number(end)));
if (_local3 != 0) {
_tweens[_tweens.length] = new com.greensock.core.PropTween(object, propName, start, _local3, overwriteProp || (propName));
}
}
}
function updateTweens(changeFactor) {
var _local3 = _tweens.length;
var _local2;
if (round) {
while (_local3--) {
_local2 = _tweens[_local3];
_local2.target[_local2.property] = Math.round(_local2.start + (_local2.change * changeFactor));
}
} else {
while (_local3--) {
_local2 = _tweens[_local3];
_local2.target[_local2.property] = _local2.start + (_local2.change * changeFactor);
}
}
}
function get changeFactor() {
return(_changeFactor);
}
function set changeFactor(n) {
updateTweens(n);
_changeFactor = n;
//return(changeFactor);
}
function killProps(lookup) {
var _local2 = overwriteProps.length;
while (_local2--) {
if (lookup[overwriteProps[_local2]]) {
overwriteProps.splice(_local2, 1);
}
}
_local2 = _tweens.length;
while (_local2--) {
if (lookup[_tweens[_local2].name]) {
_tweens.splice(_local2, 1);
}
}
}
static function onTweenEvent(type, tween) {
var _local1 = tween.cachedPT1;
var _local5;
if (type == "onInit") {
var _local2 = [];
while (_local1) {
_local2[_local2.length] = _local1;
_local1 = _local1.nextNode;
}
_local2.sortOn("priority", Array.NUMERIC | Array.DESCENDING);
var _local3 = _local2.length;
while (_local3--) {
_local2[_local3].nextNode = _local2[_local3 + 1];
_local2[_local3].prevNode = _local2[_local3 - 1];
}
tween.cachedPT1 = _local2[0];
} else {
while (_local1) {
if (_local1.isPlugin && (_local1.target[type])) {
if (_local1.target.activeDisable) {
_local5 = true;
}
_local1.target[type]();
}
_local1 = _local1.nextNode;
}
}
return(_local5);
}
static function activate(plugins) {
com.greensock.TweenLite.onPluginEvent = onTweenEvent;
var _local1 = plugins.length;
var _local3;
while (_local1--) {
if (plugins[_local1].API == 1) {
_local3 = new plugins[_local1]();
com.greensock.TweenLite.plugins[_local3.propName] = plugins[_local1];
}
}
return(true);
}
static var VERSION = 1.3;
static var API = 1;
var priority = 0;
}
Symbol 542 MovieClip [__Packages.com.greensock.plugins.VisiblePlugin] Frame 0
class com.greensock.plugins.VisiblePlugin extends com.greensock.plugins.TweenPlugin
{
var propName, overwriteProps, _target, _tween, _initVal, _visible, __get__changeFactor;
function VisiblePlugin () {
super();
propName = "_visible";
overwriteProps = ["_visible"];
}
function onInitTween(target, value, tween) {
_target = target;
_tween = tween;
_initVal = Boolean(_target._visible);
_visible = Boolean(value);
return(true);
}
function set changeFactor(n) {
if ((n == 1) && ((_tween.cachedDuration == _tween.cachedTime) || (_tween.cachedTime == 0))) {
_target._visible = _visible;
} else {
_target._visible = _initVal;
}
//return(__get__changeFactor());
}
static var API = 1;
}
Symbol 543 MovieClip [__Packages.com.greensock.plugins.AutoAlphaPlugin] Frame 0
class com.greensock.plugins.AutoAlphaPlugin extends com.greensock.plugins.VisiblePlugin
{
var propName, overwriteProps, _target, addTween, _ignoreVisible, updateTweens, __get__changeFactor;
function AutoAlphaPlugin () {
super();
propName = "autoAlpha";
overwriteProps = ["_alpha", "_visible"];
}
function onInitTween(target, value, tween) {
_target = target;
addTween(target, "_alpha", target._alpha, value, "_alpha");
return(true);
}
function killProps(lookup) {
super.killProps(lookup);
_ignoreVisible = Boolean(lookup._visible != undefined);
}
function set changeFactor(n) {
updateTweens(n);
if (!_ignoreVisible) {
_target._visible = Boolean(_target._alpha != 0);
}
//return(__get__changeFactor());
}
static var API = 1;
}
Symbol 544 MovieClip [__Packages.com.greensock.plugins.EndArrayPlugin] Frame 0
class com.greensock.plugins.EndArrayPlugin extends com.greensock.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);
}
init([target][0], [value][0]);
return(true);
}
function init(start, end) {
_a = start;
var _local2 = end.length;
while (_local2--) {
if ((start[_local2] != end[_local2]) && (start[_local2] != undefined)) {
_info[_info.length] = new com.greensock.plugins.helpers.ArrayTweenInfo(_local2, _a[_local2], end[_local2] - _a[_local2]);
}
}
}
function set changeFactor(n) {
var _local3 = _info.length;
var _local2;
if (round) {
while (_local3--) {
_local2 = _info[_local3];
_a[_local2.index] = Math.round(_local2.start + (_local2.change * n));
}
} else {
while (_local3--) {
_local2 = _info[_local3];
_a[_local2.index] = _local2.start + (_local2.change * n);
}
}
//return(__get__changeFactor());
}
static var API = 1;
}
Symbol 545 MovieClip [__Packages.com.greensock.plugins.helpers.ArrayTweenInfo] Frame 0
class com.greensock.plugins.helpers.ArrayTweenInfo
{
var index, start, change;
function ArrayTweenInfo (index, start, change) {
this.index = index;
this.start = start;
this.change = change;
}
}
Symbol 546 MovieClip [__Packages.com.greensock.plugins.FramePlugin] Frame 0
class com.greensock.plugins.FramePlugin extends com.greensock.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 API = 1;
}
Symbol 547 MovieClip [__Packages.com.greensock.plugins.TintPlugin] Frame 0
class com.greensock.plugins.TintPlugin extends com.greensock.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 _local4 = Number(value);
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:_local4 >> 16, gb:(_local4 >> 8) & 255, bb:_local4 & 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 com.greensock.core.PropTween(_ct, _local2, _ct[_local2], end[_local2] - _ct[_local2], "tint", false);
}
}
}
function set changeFactor(n) {
var _local3 = _tweens.length;
var _local2;
while (_local3--) {
_local2 = _tweens[_local3];
_local2.target[_local2.property] = _local2.start + (_local2.change * n);
}
if (_ignoreAlpha) {
var _local5 = _color.getTransform();
_ct.aa = _local5.aa;
_ct.ab = _local5.ab;
}
_color.setTransform(_ct);
//return(__get__changeFactor());
}
static var API = 1;
}
Symbol 548 MovieClip [__Packages.com.greensock.plugins.RemoveTintPlugin] Frame 0
class com.greensock.plugins.RemoveTintPlugin extends com.greensock.plugins.TintPlugin
{
var propName;
function RemoveTintPlugin () {
super();
propName = "removeTint";
}
static var API = 1;
}
Symbol 549 MovieClip [__Packages.com.greensock.plugins.VolumePlugin] Frame 0
class com.greensock.plugins.VolumePlugin extends com.greensock.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 API = 1;
}
Symbol 550 MovieClip [__Packages.com.greensock.plugins.FilterPlugin] Frame 0
class com.greensock.plugins.FilterPlugin extends com.greensock.plugins.TweenPlugin
{
var _target, _index, _type, _filter, _remove, onComplete, propName, _tweens, addTween, __get__changeFactor;
function FilterPlugin () {
super();
}
function initFilter(props, defaultFilter, propNames) {
var _local6 = _target.filters;
var _local2;
var _local3;
var _local5;
var _local7 = ((props instanceof flash.filters.BitmapFilter) ? ({}) : (props));
_index = -1;
if (_local7.index != undefined) {
_index = _local7.index;
} else {
_local3 = _local6.length;
while (_local3--) {
if (_local6[_local3] instanceof _type) {
_index = _local3;
break;
}
}
}
if (((_index == -1) || (_local6[_index] == undefined)) || (_local7.addFilter == true)) {
_index = ((_local7.index != undefined) ? (_local7.index) : (_local6.length));
_local6[_index] = defaultFilter;
_target.filters = _local6;
}
_filter = _local6[_index];
if (_local7.remove == true) {
_remove = true;
onComplete = onCompleteTween;
}
_local3 = propNames.length;
while (_local3--) {
_local2 = propNames[_local3];
if ((props[_local2] != undefined) && (_filter[_local2] != props[_local2])) {
if (((_local2 == "color") || (_local2 == "highlightColor")) || (_local2 == "shadowColor")) {
_local5 = new com.greensock.plugins.HexColorsPlugin();
_local5.initColor(_filter, _local2, _filter[_local2], props[_local2]);
_tweens[_tweens.length] = new com.greensock.core.PropTween(_local5, "changeFactor", 0, 1, propName);
} else if ((((_local2 == "quality") || (_local2 == "inner")) || (_local2 == "knockout")) || (_local2 == "hideObject")) {
_filter[_local2] = props[_local2];
} else {
addTween(_filter, _local2, _filter[_local2], props[_local2], propName);
}
}
}
}
function onCompleteTween() {
if (_remove) {
var _local3 = _target.filters;
if (!(_local3[_index] instanceof _type)) {
var _local2 = _local3.length;
while (_local2--) {
if (_local3[_local2] instanceof _type) {
_local3.splice(_local2, 1);
break;
}
}
} else {
_local3.splice(_index, 1);
}
_target.filters = _local3;
}
}
function set changeFactor(n) {
var _local2 = _tweens.length;
var _local3;
var _local4 = _target.filters;
while (_local2--) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = _local3.start + (_local3.change * n);
}
if (!(_local4[_index] instanceof _type)) {
_local2 = (_index = _local4.length);
while (_local2--) {
if (_local4[_local2] instanceof _type) {
_index = _local2;
break;
}
}
}
_local4[_index] = _filter;
_target.filters = _local4;
//return(__get__changeFactor());
}
static var VERSION = 2.03;
static var API = 1;
}
Symbol 551 MovieClip [__Packages.com.greensock.plugins.HexColorsPlugin] Frame 0
class com.greensock.plugins.HexColorsPlugin extends com.greensock.plugins.TweenPlugin
{
var propName, overwriteProps, _colors, __get__changeFactor;
function HexColorsPlugin () {
super();
propName = "hexColors";
overwriteProps = [];
_colors = [];
}
function onInitTween(target, value, tween) {
for (var _local4 in value) {
initColor(target, _local4, Number(target[_local4]), Number(value[_local4]));
}
return(true);
}
function initColor(target, propName, start, end) {
if (start != end) {
var _local3 = start >> 16;
var _local5 = (start >> 8) & 255;
var _local2 = start & 255;
_colors[_colors.length] = [target, propName, _local3, (end >> 16) - _local3, _local5, ((end >> 8) & 255) - _local5, _local2, (end & 255) - _local2];
overwriteProps[overwriteProps.length] = propName;
}
}
function killProps(lookup) {
var _local3 = _colors.length;
while (_local3--) {
if (lookup[_colors[_local3][1]] != undefined) {
_colors.splice(_local3, 1);
}
}
super.killProps(lookup);
}
function set changeFactor(n) {
var _local4 = _colors.length;
var _local2;
while (_local4--) {
_local2 = _colors[_local4];
_local2[0][_local2[1]] = (((_local2[2] + (n * _local2[3])) << 16) | ((_local2[4] + (n * _local2[5])) << 8)) | (_local2[6] + (n * _local2[7]));
}
//return(__get__changeFactor());
}
static var API = 1;
}
Symbol 552 MovieClip [__Packages.com.greensock.plugins.BevelFilterPlugin] Frame 0
class com.greensock.plugins.BevelFilterPlugin extends com.greensock.plugins.FilterPlugin
{
var propName, overwriteProps, _target, _type, initFilter;
function BevelFilterPlugin () {
super();
propName = "bevelFilter";
overwriteProps = ["bevelFilter"];
}
function onInitTween(target, value, tween) {
_target = target;
_type = flash.filters.BevelFilter;
initFilter(value, new flash.filters.BevelFilter(0, 0, 16777215, 0.5, 0, 0.5, 2, 2, 0, value.quality || 2), _propNames);
return(true);
}
static var API = 1;
static var _propNames = ["distance", "angle", "highlightColor", "highlightAlpha", "shadowColor", "shadowAlpha", "blurX", "blurY", "strength", "quality"];
}
Symbol 553 MovieClip [__Packages.com.greensock.plugins.BezierPlugin] Frame 0
class com.greensock.plugins.BezierPlugin extends com.greensock.plugins.TweenPlugin
{
var propName, overwriteProps, _future, _target, _orientData, _orient, _beziers, round, __get__changeFactor;
function BezierPlugin () {
super();
propName = "bezier";
overwriteProps = [];
_future = {};
}
function onInitTween(target, value, tween) {
if (!(value instanceof Array)) {
return(false);
}
init(tween, [value][0], false);
return(true);
}
function init(tween, beziers, through) {
_target = tween.target;
var _local7 = tween.vars;
if (_local7.orientToBezier == true) {
_orientData = [["_x", "_y", "_rotation", 0, 0.01]];
_orient = true;
} else if (_local7.orientToBezier instanceof Array) {
_orientData = _local7.orientToBezier;
_orient = true;
}
var _local3 = {};
var _local4;
var _local2;
var _local8;
_local4 = 0;
while (_local4 < beziers.length) {
for (_local2 in beziers[_local4]) {
if (_local3[_local2] == undefined) {
_local3[_local2] = [tween.target[_local2]];
}
if (typeof(beziers[_local4][_local2]) == "number") {
_local3[_local2].push(beziers[_local4][_local2]);
} else {
_local3[_local2].push(tween.target[_local2] + Number(beziers[_local4][_local2]));
}
}
_local4++;
}
for (_local2 in _local3) {
overwriteProps[overwriteProps.length] = _local2;
if (_local7[_local2] != undefined) {
if (typeof(_local7[_local2]) == "number") {
_local3[_local2].push(_local7[_local2]);
} else {
_local3[_local2].push(tween.target[_local2] + Number(_local7[_local2]));
}
_local8 = {};
_local8[_local2] = true;
tween.killVars(_local8, false);
delete _local7[_local2];
}
}
_beziers = parseBeziers(_local3, through);
}
static function parseBeziers(props, through) {
var _local2;
var _local1;
var _local3;
var _local4;
var _local6 = {};
if (through == true) {
for (_local4 in props) {
_local1 = props[_local4];
_local3 = [];
_local6[_local4] = _local3;
if (_local1.length > 2) {
_local3[_local3.length] = [_local1[0], _local1[1] - ((_local1[2] - _local1[0]) / 4), _local1[1]];
_local2 = 1;
while (_local2 < (_local1.length - 1)) {
_local3[_local3.length] = [_local1[_local2], _local1[_local2] + (_local1[_local2] - _local3[_local2 - 1][1]), _local1[_local2 + 1]];
_local2++;
}
} else {
_local3[_local3.length] = [_local1[0], (_local1[0] + _local1[1]) / 2, _local1[1]];
}
}
} else {
for (_local4 in props) {
_local1 = props[_local4];
_local3 = [];
_local6[_local4] = _local3;
if (_local1.length > 3) {
_local3[_local3.length] = [_local1[0], _local1[1], (_local1[1] + _local1[2]) / 2];
_local2 = 2;
while (_local2 < (_local1.length - 2)) {
_local3[_local3.length] = [_local3[_local2 - 2][2], _local1[_local2], (_local1[_local2] + _local1[_local2 + 1]) / 2];
_local2++;
}
_local3[_local3.length] = [_local3[_local3.length - 1][2], _local1[_local1.length - 2], _local1[_local1.length - 1]];
} else if (_local1.length == 3) {
_local3[_local3.length] = [_local1[0], _local1[1], _local1[2]];
} else if (_local1.length == 2) {
_local3[_local3.length] = [_local1[0], (_local1[0] + _local1[1]) / 2, _local1[1]];
}
}
}
return(_local6);
}
function killProps(lookup) {
for (var _local4 in _beziers) {
if (lookup[_local4] != undefined) {
delete _beziers[_local4];
}
}
super.killProps(lookup);
}
function set changeFactor(n) {
var _local3;
var _local5;
var _local4;
var _local6;
var _local7;
var _local15;
var _local16;
if (n == 1) {
for (_local5 in _beziers) {
_local3 = _beziers[_local5].length - 1;
_target[_local5] = _beziers[_local5][_local3][2];
}
} else {
for (_local5 in _beziers) {
_local7 = _beziers[_local5].length;
if (n < 0) {
_local3 = 0;
} else if (n >= 1) {
_local3 = _local7 - 1;
} else {
_local3 = (_local7 * n) >> 0;
}
_local6 = (n - (_local3 * (1 / _local7))) * _local7;
_local4 = _beziers[_local5][_local3];
if (round) {
_target[_local5] = Math.round(_local4[0] + (_local6 * (((2 * (1 - _local6)) * (_local4[1] - _local4[0])) + (_local6 * (_local4[2] - _local4[0])))));
} else {
_target[_local5] = _local4[0] + (_local6 * (((2 * (1 - _local6)) * (_local4[1] - _local4[0])) + (_local6 * (_local4[2] - _local4[0]))));
}
}
}
if (_orient == true) {
_local3 = _orientData.length;
var _local9 = {};
var _local11;
var _local10;
var _local2;
var _local12;
while ((_local3--) > 0) {
_local2 = _orientData[_local3];
_local9[_local2[0]] = _target[_local2[0]];
_local9[_local2[1]] = _target[_local2[1]];
}
var _local13 = _target;
var _local14 = round;
_target = _future;
round = false;
_orient = false;
_local3 = _orientData.length;
while ((_local3--) > 0) {
_local2 = _orientData[_local3];
changeFactor = (n + (_local2[4] || 0.01));
_local12 = _local2[3] || 0;
_local11 = _future[_local2[0]] - _local9[_local2[0]];
_local10 = _future[_local2[1]] - _local9[_local2[1]];
_local13[_local2[2]] = (Math.atan2(_local10, _local11) * _RAD2DEG) + _local12;
}
_target = _local13;
round = _local14;
_orient = true;
}
//return(__get__changeFactor());
}
static var API = 1;
static var _RAD2DEG = 57.2957795130823;
}
Symbol 554 MovieClip [__Packages.com.greensock.plugins.BezierThroughPlugin] Frame 0
class com.greensock.plugins.BezierThroughPlugin extends com.greensock.plugins.BezierPlugin
{
var propName, init;
function BezierThroughPlugin () {
super();
propName = "bezierThrough";
}
function onInitTween(target, value, tween) {
if (!(value instanceof Array)) {
return(false);
}
init(tween, [value][0], true);
return(true);
}
static var API = 1;
}
Symbol 555 MovieClip [__Packages.com.greensock.plugins.BlurFilterPlugin] Frame 0
class com.greensock.plugins.BlurFilterPlugin extends com.greensock.plugins.FilterPlugin
{
var propName, overwriteProps, _target, _type, initFilter;
function BlurFilterPlugin () {
super();
propName = "blurFilter";
overwriteProps = ["blurFilter"];
}
function onInitTween(target, value, tween) {
_target = target;
_type = flash.filters.BlurFilter;
initFilter(value, new flash.filters.BlurFilter(0, 0, value.quality || 2), _propNames);
return(true);
}
static var API = 1;
static var _propNames = ["blurX", "blurY", "quality"];
}
Symbol 556 MovieClip [__Packages.com.greensock.plugins.ColorMatrixFilterPlugin] Frame 0
class com.greensock.plugins.ColorMatrixFilterPlugin extends com.greensock.plugins.FilterPlugin
{
var propName, overwriteProps, _target, _type, initFilter, _matrix, _filter, _matrixTween, __get__changeFactor;
function ColorMatrixFilterPlugin () {
super();
propName = "colorMatrixFilter";
overwriteProps = ["colorMatrixFilter"];
}
function onInitTween(target, value, tween) {
_target = target;
_type = flash.filters.ColorMatrixFilter;
var _local3 = value;
initFilter({remove:value.remove, index:value.index, addFilter:value.addFilter}, new flash.filters.ColorMatrixFilter(_idMatrix.slice()), _propNames);
_matrix = flash.filters.ColorMatrixFilter(_filter).matrix;
var _local2 = [];
if ((_local3.matrix != undefined) && (_local3.matrix instanceof Array)) {
_local2 = _local3.matrix;
} else {
if (_local3.relative == true) {
_local2 = _matrix.slice();
} else {
_local2 = _idMatrix.slice();
}
_local2 = setBrightness(_local2, _local3.brightness);
_local2 = setContrast(_local2, _local3.contrast);
_local2 = setHue(_local2, _local3.hue);
_local2 = setSaturation(_local2, _local3.saturation);
_local2 = setThreshold(_local2, _local3.threshold);
if (!isNaN(_local3.colorize)) {
_local2 = colorize(_local2, _local3.colorize, _local3.amount);
}
}
_matrixTween = new com.greensock.plugins.EndArrayPlugin();
_matrixTween.init(_matrix, _local2);
return(true);
}
function set changeFactor(n) {
_matrixTween.__set__changeFactor(n);
flash.filters.ColorMatrixFilter(_filter).matrix = _matrix;
super.__set__changeFactor(n);
//return(__get__changeFactor());
}
static function colorize(m, color, amount) {
if (isNaN(color)) {
return(m);
}
if (isNaN(amount)) {
amount = 1;
}
var _local3 = ((color >> 16) & 255) / 255;
var _local5 = ((color >> 8) & 255) / 255;
var _local2 = (color & 255) / 255;
var _local4 = 1 - amount;
var _local7 = [_local4 + ((amount * _local3) * _lumR), (amount * _local3) * _lumG, (amount * _local3) * _lumB, 0, 0, (amount * _local5) * _lumR, _local4 + ((amount * _local5) * _lumG), (amount * _local5) * _lumB, 0, 0, (amount * _local2) * _lumR, (amount * _local2) * _lumG, _local4 + ((amount * _local2) * _lumB), 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local7, m));
}
static function setThreshold(m, n) {
if (isNaN(n)) {
return(m);
}
var _local2 = [_lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * n, 0, 0, 0, 1, 0];
return(applyMatrix(_local2, m));
}
static function setHue(m, n) {
if (isNaN(n)) {
return(m);
}
n = n * (Math.PI/180);
var _local1 = Math.cos(n);
var _local2 = Math.sin(n);
var _local4 = [(_lumR + (_local1 * (1 - _lumR))) + (_local2 * (-_lumR)), (_lumG + (_local1 * (-_lumG))) + (_local2 * (-_lumG)), (_lumB + (_local1 * (-_lumB))) + (_local2 * (1 - _lumB)), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * 0.143), (_lumG + (_local1 * (1 - _lumG))) + (_local2 * 0.14), (_lumB + (_local1 * (-_lumB))) + (_local2 * -0.283), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * (-(1 - _lumR))), (_lumG + (_local1 * (-_lumG))) + (_local2 * _lumG), (_lumB + (_local1 * (1 - _lumB))) + (_local2 * _lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return(applyMatrix(_local4, m));
}
static function setBrightness(m, n) {
if (isNaN(n)) {
return(m);
}
n = (n * 100) - 100;
return(applyMatrix([1, 0, 0, 0, n, 0, 1, 0, 0, n, 0, 0, 1, 0, n, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], m));
}
static function setSaturation(m, n) {
if (isNaN(n)) {
return(m);
}
var _local4 = 1 - n;
var _local2 = _local4 * _lumR;
var _local5 = _local4 * _lumG;
var _local1 = _local4 * _lumB;
var _local6 = [_local2 + n, _local5, _local1, 0, 0, _local2, _local5 + n, _local1, 0, 0, _local2, _local5, _local1 + n, 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local6, m));
}
static function setContrast(m, n) {
if (isNaN(n)) {
return(m);
}
n = n + 0.01;
var _local2 = [n, 0, 0, 0, 128 * (1 - n), 0, n, 0, 0, 128 * (1 - n), 0, 0, n, 0, 128 * (1 - n), 0, 0, 0, 1, 0];
return(applyMatrix(_local2, m));
}
static function applyMatrix(m, m2) {
if ((!(m instanceof Array)) || (!(m2 instanceof Array))) {
return(m2);
}
var _local7 = [];
var _local2 = 0;
var _local5 = 0;
var _local6;
var _local1;
_local6 = 0;
while (_local6 < 4) {
_local1 = 0;
while (_local1 < 5) {
if (_local1 == 4) {
_local5 = m[_local2 + 4];
} else {
_local5 = 0;
}
_local7[_local2 + _local1] = ((((m[_local2] * m2[_local1]) + (m[_local2 + 1] * m2[_local1 + 5])) + (m[_local2 + 2] * m2[_local1 + 10])) + (m[_local2 + 3] * m2[_local1 + 15])) + _local5;
_local1++;
}
_local2 = _local2 + 5;
_local6++;
}
return(_local7);
}
static var API = 1;
static var _propNames = [];
static var _idMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
static var _lumR = 0.212671;
static var _lumG = 0.71516;
static var _lumB = 0.072169;
}
Symbol 557 MovieClip [__Packages.com.greensock.plugins.ColorTransformPlugin] Frame 0
class com.greensock.plugins.ColorTransformPlugin extends com.greensock.plugins.TintPlugin
{
var propName, init;
function ColorTransformPlugin () {
super();
propName = "colorTransform";
}
function onInitTween(target, value, tween) {
if ((typeof(target) != "movieclip") && (!(target instanceof TextField))) {
return(false);
}
var _local7 = new Color(target);
var _local2 = _local7.getTransform();
if (value.redMultiplier != undefined) {
_local2.ra = value.redMultiplier * 100;
}
if (value.greenMultiplier != undefined) {
_local2.ga = value.greenMultiplier * 100;
}
if (value.blueMultiplier != undefined) {
_local2.ba = value.blueMultiplier * 100;
}
if (value.alphaMultiplier != undefined) {
_local2.aa = value.alphaMultiplier * 100;
}
if (value.redOffset != undefined) {
_local2.rb = value.redOffset;
}
if (value.greenOffset != undefined) {
_local2.gb = value.greenOffset;
}
if (value.blueOffset != undefined) {
_local2.bb = value.blueOffset;
}
if (value.alphaOffset != undefined) {
_local2.ab = value.alphaOffset;
}
if ((!isNaN(value.tint)) || (!isNaN(value.color))) {
var _local4 = ((!isNaN(value.tint)) ? (value.tint) : (value.color));
if (_local4 != null) {
_local2.rb = Number(_local4) >> 16;
_local2.gb = (Number(_local4) >> 8) & 255;
_local2.bb = Number(_local4) & 255;
_local2.ra = 0;
_local2.ga = 0;
_local2.ba = 0;
}
}
if (!isNaN(value.tintAmount)) {
var _local5 = value.tintAmount / (1 - (((_local2.ra + _local2.ga) + _local2.ba) / 300));
_local2.rb = _local2.rb * _local5;
_local2.gb = _local2.gb * _local5;
_local2.bb = _local2.bb * _local5;
_local2.ra = (_local2.ga = (_local2.ba = (1 - value.tintAmount) * 100));
} else if (!isNaN(value.exposure)) {
_local2.rb = (_local2.gb = (_local2.bb = 255 * (value.exposure - 1)));
_local2.ra = (_local2.ga = (_local2.ba = 100));
} else if (!isNaN(value.brightness)) {
_local2.rb = (_local2.gb = (_local2.bb = Math.max(0, (value.brightness - 1) * 255)));
_local2.ra = (_local2.ga = (_local2.ba = (1 - Math.abs(value.brightness - 1)) * 100));
}
if ((tween.vars._alpha != undefined) && (value.alphaMultiplier == undefined)) {
_local2.aa = tween.vars._alpha;
tween.killVars({alpha:1});
}
init(target, _local2);
return(true);
}
static var API = 1;
}
Symbol 558 MovieClip [__Packages.com.greensock.plugins.DropShadowFilterPlugin] Frame 0
class com.greensock.plugins.DropShadowFilterPlugin extends com.greensock.plugins.FilterPlugin
{
var propName, overwriteProps, _target, _type, initFilter;
function DropShadowFilterPlugin () {
super();
propName = "dropShadowFilter";
overwriteProps = ["dropShadowFilter"];
}
function onInitTween(target, value, tween) {
_target = target;
_type = flash.filters.DropShadowFilter;
initFilter(value, new flash.filters.DropShadowFilter(0, 45, 0, 0, 0, 0, 1, value.quality || 2, value.inner, value.knockout, value.hideObject), _propNames);
return(true);
}
static var API = 1;
static var _propNames = ["distance", "angle", "color", "alpha", "blurX", "blurY", "strength", "quality", "inner", "knockout", "hideObject"];
}
Symbol 559 MovieClip [__Packages.com.greensock.plugins.FrameLabelPlugin] Frame 0
class com.greensock.plugins.FrameLabelPlugin extends com.greensock.plugins.FramePlugin
{
var propName, _target, frame, addTween;
function FrameLabelPlugin () {
super();
propName = "frameLabel";
}
function onInitTween(target, value, tween) {
if (typeof(tween.target) != "movieclip") {
return(false);
}
_target = MovieClip(target);
frame = _target._currentframe;
var _local2 = _target.duplicateMovieClip("tempMC" + Math.round(Math.random() * 999999), _target._parent.getNextHighestDepth());
_local2.gotoAndStop(value);
var _local3 = _local2._currentframe;
_local2.removeMovieClip();
if (frame != _local3) {
addTween(this, "frame", frame, _local3, "frame");
}
return(true);
}
static var API = 1;
}
Symbol 560 MovieClip [__Packages.com.greensock.plugins.GlowFilterPlugin] Frame 0
class com.greensock.plugins.GlowFilterPlugin extends com.greensock.plugins.FilterPlugin
{
var propName, overwriteProps, _target, _type, initFilter;
function GlowFilterPlugin () {
super();
propName = "glowFilter";
overwriteProps = ["glowFilter"];
}
function onInitTween(target, value, tween) {
_target = target;
_type = flash.filters.GlowFilter;
initFilter(value, new flash.filters.GlowFilter(16777215, 0, 0, 0, value.strength || 1, value.quality || 2, value.inner, value.knockout), _propNames);
return(true);
}
static var API = 1;
static var _propNames = ["color", "alpha", "blurX", "blurY", "strength", "quality", "inner", "knockout"];
}
Symbol 561 MovieClip [__Packages.com.greensock.plugins.RoundPropsPlugin] Frame 0
class com.greensock.plugins.RoundPropsPlugin extends com.greensock.plugins.TweenPlugin
{
var propName, overwriteProps, round, addTween;
function RoundPropsPlugin () {
super();
propName = "roundProps";
overwriteProps = [];
round = true;
}
function add(object, propName, start, change) {
addTween(object, propName, start, start + change, propName);
overwriteProps[overwriteProps.length] = propName;
}
static var API = 1;
}
Symbol 562 MovieClip [__Packages.com.greensock.plugins.ShortRotationPlugin] Frame 0
class com.greensock.plugins.ShortRotationPlugin extends com.greensock.plugins.TweenPlugin
{
var propName, overwriteProps, addTween;
function ShortRotationPlugin () {
super();
propName = "shortRotation";
overwriteProps = [];
}
function onInitTween(target, value, tween) {
if (typeof(value) == "number") {
return(false);
}
for (var _local4 in value) {
initRotation(target, _local4, target[_local4], ((typeof(value[_local4]) == "number") ? (Number(value[_local4])) : (target[_local4] + Number(value[_local4]))));
}
return(true);
}
function initRotation(target, propName, start, end) {
var _local2 = (end - start) % 360;
if (_local2 != (_local2 % 180)) {
_local2 = ((_local2 < 0) ? (_local2 + 360) : (_local2 - 360));
}
addTween(target, propName, start, start + _local2, propName);
overwriteProps[overwriteProps.length] = propName;
}
static var API = 1;
}
Symbol 563 MovieClip [__Packages.com.greensock.OverwriteManager] Frame 0
class com.greensock.OverwriteManager
{
static var mode, enabled;
function OverwriteManager () {
}
static function init(defaultMode) {
if (com.greensock.TweenLite.version < 11.1) {
trace("Warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com.");
}
com.greensock.TweenLite.overwriteManager = com.greensock.OverwriteManager;
mode = ((defaultMode == undefined) ? 2 : (defaultMode));
enabled = true;
return(mode);
}
static function manageOverwrites(tween, props, targetTweens, mode) {
var _local3;
var _local9;
var _local1;
if (mode >= 4) {
var _local17 = targetTweens.length;
_local3 = 0;
while (_local3 < _local17) {
_local1 = targetTweens[_local3];
if (_local1 != tween) {
if (_local1.setEnabled(false, false)) {
_local9 = true;
}
} else if (mode == 5) {
break;
}
_local3++;
}
return(_local9);
}
var _local7 = tween.__get__startTime();
var _local8 = [];
var _local13 = [];
var _local15 = 0;
var _local12 = 0;
_local3 = targetTweens.length;
while (_local3--) {
_local1 = targetTweens[_local3];
if ((_local1 == tween) || (_local1.gc)) {
} else if (_local1.timeline != tween.timeline) {
if (!getGlobalPaused(_local1)) {
_local13[_local15++] = _local1;
}
} else if (((_local1.__get__startTime() <= _local7) && ((_local1.__get__startTime() + _local1.__get__totalDuration()) > _local7)) && (!getGlobalPaused(_local1))) {
_local8[_local12++] = _local1;
}
}
if (_local15 != 0) {
var _local5 = tween.cachedTimeScale;
var _local6 = _local7;
var _local4;
var _local11;
var _local2;
_local2 = tween.timeline;
while (_local2) {
_local5 = _local5 * _local2.cachedTimeScale;
_local6 = _local6 + _local2.startTime;
_local2 = _local2.timeline;
}
_local7 = _local5 * _local6;
_local3 = _local15;
while (_local3--) {
_local4 = _local13[_local3];
_local5 = _local4.cachedTimeScale;
_local6 = _local4.startTime;
_local2 = _local4.timeline;
while (_local2) {
_local5 = _local5 * _local2.cachedTimeScale;
_local6 = _local6 + _local2.startTime;
_local2 = _local2.timeline;
}
_local11 = _local5 * _local6;
if ((_local11 <= _local7) && (((_local11 + (_local4.__get__totalDuration() * _local5)) > _local7) || (_local4.cachedDuration == 0))) {
_local8[_local12++] = _local4;
}
}
}
if (_local12 == 0) {
return(_local9);
}
_local3 = _local12;
if (mode == 2) {
while (_local3--) {
_local1 = _local8[_local3];
if (_local1.killVars(props)) {
_local9 = true;
}
if ((_local1.cachedPT1 == undefined) && (_local1.initted)) {
_local1.setEnabled(false, false);
}
}
} else {
while (_local3--) {
if (_local8[_local3].setEnabled(false, false)) {
_local9 = true;
}
}
}
return(_local9);
}
static function getGlobalPaused(tween) {
while (tween) {
if (tween.cachedPaused) {
return(true);
}
tween = tween.timeline;
}
return(false);
}
static var version = 6;
static var NONE = 0;
static var ALL_IMMEDIATE = 1;
static var AUTO = 2;
static var CONCURRENT = 3;
static var ALL_ONSTART = 4;
static var PREEXISTING = 5;
}
Symbol 564 MovieClip [__Packages.com.greensock.TweenMax] Frame 0
class com.greensock.TweenMax extends com.greensock.TweenLite
{
var _cyclesComplete, yoyo, vars, _repeat, _repeatDelay, cacheIsDirty, target, cachedTimeScale, cachedPT1, _hasPlugins, propTweenLookup, setDirtyCache, cachedTotalTime, initted, __set__totalTime, killVars, cachedTime, ratio, cachedTotalDuration, cachedDuration, _rawPrevTime, active, cachedReversed, cachedPaused, _ease, _hasUpdate, complete, __get__duration, setTotalTime, __set__duration, _pauseTime, timeline, cachedStartTime;
function TweenMax (target, duration, vars) {
super(target, duration, vars);
if (com.greensock.TweenLite.version < 11.131) {
trace("TweenMax warning: Please update your TweenLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com.");
}
_cyclesComplete = 0;
yoyo = Boolean(this.vars.yoyo);
_repeat = this.vars.repeat || 0;
_repeatDelay = this.vars.repeatDelay || 0;
cacheIsDirty = true;
if ((this.vars.timeScale != undefined) && (!(this.target instanceof com.greensock.core.TweenCore))) {
cachedTimeScale = this.vars.timeScale;
}
}
function init() {
if (vars.startAt) {
vars.startAt.overwrite = 0;
vars.startAt.immediateRender = true;
var _local10 = new com.greensock.TweenMax(target, 0, vars.startAt);
}
super.init();
if (vars.roundProps && (com.greensock.TweenLite.plugins.roundProps)) {
var _local11;
var _local4;
var _local6;
var _local9 = vars.roundProps;
var _local5;
var _local7;
var _local3;
var _local8 = _local9.length;
while (_local8--) {
_local4 = _local9[_local8];
_local3 = cachedPT1;
while (_local3) {
if (_local3.name == _local4) {
if (_local3.isPlugin) {
_local3.target.round = true;
} else {
if (_local5 == undefined) {
_local5 = new com.greensock.TweenLite.plugins.roundProps();
_local5.add(_local3.target, _local4, _local3.start, _local3.change);
_hasPlugins = true;
_local7 = insertPropTween(_local5, "changeFactor", 0, 1, "_MULTIPLE_", true, cachedPT1);
cachedPT1 = _local7;
} else {
_local5.add(_local3.target, _local4, _local3.start, _local3.change);
}
removePropTween(_local3);
propTweenLookup[_local4] = _local7;
}
} else if ((_local3.isPlugin && (_local3.name == "_MULTIPLE_")) && (!_local3.target.round)) {
_local6 = (" " + _local3.target.overwriteProps.join(" ")) + " ";
if (_local6.indexOf((" " + _local4) + " ") != -1) {
_local3.target.round = true;
}
}
_local3 = _local3.nextNode;
}
}
}
}
function insertPropTween(target, property, start, end, name, isPlugin, nextNode) {
var _local3 = new com.greensock.core.PropTween(target, property, start, ((typeof(end) == "number") ? (Number(end) - start) : (Number(end))), name, isPlugin, nextNode);
if (isPlugin && (name == "_MULTIPLE_")) {
var _local2 = target.overwriteProps.length;
while (_local2--) {
propTweenLookup[target.overwriteProps[_local2]] = _local3;
}
} else {
propTweenLookup[name] = _local3;
}
return(_local3);
}
function removePropTween(propTween) {
if (propTween.nextNode) {
propTween.nextNode.prevNode = propTween.prevNode;
}
if (propTween.prevNode) {
propTween.prevNode.nextNode = propTween.nextNode;
} else if (cachedPT1 == propTween) {
cachedPT1 = propTween.nextNode;
}
if (propTween.isPlugin && (propTween.target.onDisable)) {
propTween.target.onDisable();
if (propTween.target.activeDisable) {
return(true);
}
}
return(false);
}
function invalidate() {
yoyo = Boolean(vars.yoyo);
_repeat = vars.repeat || 0;
_repeatDelay = vars.repeatDelay || 0;
setDirtyCache(true);
super.invalidate();
}
function updateTo(vars, adjustStartingValues) {
var _local9 = cachedPT1;
var _local8 = cachedTotalTime;
var _local2;
var _local3;
var _local7;
var _local6;
var _local5;
if (initted) {
if (adjustStartingValues != true) {
__set__totalTime(0);
}
killVars(vars, false);
for (_local2 in vars) {
if (com.greensock.TweenLite._reservedProps[_local2] != undefined) {
} else if (com.greensock.TweenLite.plugins[_local2] != undefined) {
_local3 = new com.greensock.TweenLite.plugins[_local2]();
if (!_local3.onInitTween(target, vars[_local2], this)) {
cachedPT1 = insertPropTween(target, _local2, target[_local2], vars[_local2], _local2, false, cachedPT1);
} else {
_local6 = {};
_local5 = _local3.overwriteProps.length;
while (_local5--) {
_local6[_local3.overwriteProps[_local5]] = true;
}
killVars(_local6, false);
cachedPT1 = insertPropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length == 1) ? (_local3.overwriteProps[0]) : "_MULTIPLE_"), true, cachedPT1);
_hasPlugins = true;
if (_local3.priority) {
cachedPT1.priority = _local3.priority;
_local7 = true;
}
}
} else {
cachedPT1 = insertPropTween(target, _local2, target[_local2], vars[_local2], _local2, false, cachedPT1);
}
this.vars[_local2] = vars[_local2];
}
if (_local7) {
com.greensock.TweenLite.onPluginEvent("onInit", this);
}
if ((adjustStartingValues == true) && (cachedTotalTime)) {
adjustStartValues();
}
} else {
for (_local2 in vars) {
this.vars[_local2] = vars[_local2];
}
}
}
function setDestination(property, value, adjustStartValues) {
var _local2 = {};
_local2[property] = value;
updateTo(_local2, Boolean(adjustStartValues != false));
}
function adjustStartValues() {
if (cachedTime != 0) {
var _local4 = 1 / (1 - ratio);
var _local2 = cachedPT1;
var _local3;
var _local5;
while (_local2) {
_local3 = _local2.start + _local2.change;
if (_local2.isPlugin) {
_local2.change = (_local3 - ratio) * _local4;
} else {
_local2.change = (_local3 - _local2.target[_local2.property]) * _local4;
}
_local2.start = _local3 - _local2.change;
_local2 = _local2.nextNode;
}
}
}
function killProperties(names) {
var _local3 = {};
var _local2 = names.length;
while (_local2--) {
_local3[names[_local2]] = true;
}
killVars(_local3);
}
function renderTime(time, suppressEvents, force) {
var _local9 = (cacheIsDirty ? (totalDuration) : (cachedTotalDuration));
var _local7 = cachedTime;
var _local4;
var _local10;
var _local6;
if (time >= _local9) {
cachedTotalTime = _local9;
cachedTime = cachedDuration;
ratio = 1;
_local4 = true;
if (cachedDuration == 0) {
if (((time == 0) || (_rawPrevTime < 0)) && (_rawPrevTime != time)) {
force = true;
}
_rawPrevTime = time;
}
} else if (time <= 0) {
if (time < 0) {
active = false;
if (cachedDuration == 0) {
if (_rawPrevTime > 0) {
force = true;
_local4 = true;
}
_rawPrevTime = time;
}
}
cachedTotalTime = (cachedTime = (ratio = 0));
if (cachedReversed && (_local7 != 0)) {
_local4 = true;
}
} else {
cachedTotalTime = (cachedTime = time);
_local6 = true;
}
if (_repeat != 0) {
var _local5 = cachedDuration + _repeatDelay;
if (_local4) {
if (yoyo && (_repeat % 2)) {
cachedTime = (ratio = 0);
}
} else if (time > 0) {
if (_cyclesComplete != ((_cyclesComplete = Math.floor(cachedTotalTime / _local5)))) {
_local10 = true;
}
cachedTime = ((cachedTotalTime / _local5) - _cyclesComplete) * _local5;
if (yoyo && (_cyclesComplete % 2)) {
cachedTime = cachedDuration - cachedTime;
} else if (cachedTime >= cachedDuration) {
cachedTime = cachedDuration;
ratio = 1;
_local6 = false;
}
if (cachedTime <= 0) {
cachedTime = (ratio = 0);
_local6 = false;
}
}
}
if ((_local7 == cachedTime) && (!force)) {
return(undefined);
}
if (!initted) {
init();
}
if ((!active) && (!cachedPaused)) {
active = true;
}
if (_local6) {
ratio = _ease(cachedTime, 0, 1, cachedDuration);
}
if ((((_local7 == 0) && (vars.onStart)) && (cachedTotalTime != 0)) && (!suppressEvents)) {
vars.onStart.apply(vars.onStartScope, vars.onStartParams);
}
var _local2 = cachedPT1;
while (_local2) {
_local2.target[_local2.property] = _local2.start + (ratio * _local2.change);
_local2 = _local2.nextNode;
}
if (_hasUpdate && (!suppressEvents)) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local4) {
if (_hasPlugins && (cachedPT1)) {
com.greensock.TweenLite.onPluginEvent("onComplete", this);
}
complete(true, suppressEvents);
} else if (_local10 && (!suppressEvents)) {
if (vars.onRepeat) {
vars.onRepeat.apply(vars.onRepeatScope, vars.onRepeatParams);
}
}
}
static function to(target, duration, vars) {
return(new com.greensock.TweenMax(target, duration, vars));
}
static function from(target, duration, vars) {
vars.runBackwards = true;
if (vars.immediateRender != false) {
vars.immediateRender = true;
}
return(new com.greensock.TweenMax(target, duration, vars));
}
static function fromTo(target, duration, fromVars, toVars) {
toVars.startAt = fromVars;
if (fromVars.immediateRender) {
toVars.immediateRender = true;
}
return(new com.greensock.TweenMax(target, duration, toVars));
}
static function allTo(targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
var _local3;
var _local2;
var _local1;
var _local7 = targets.length;
var _local5 = [];
var _local6 = vars.delay || 0;
var onCompleteProxy = vars.onComplete;
var onCompleteParamsProxy = vars.onCompleteParams;
var onCompleteScopeProxy = vars.onCompleteScope;
var _local9 = (((stagger <= 0) || (stagger == undefined)) ? 0 : (_local7 - 1));
_local3 = 0;
while (_local3 < _local7) {
_local2 = {};
for (_local1 in vars) {
_local2[_local1] = vars[_local1];
}
_local2.delay = _local6;
if ((_local3 == _local9) && (onCompleteAll != undefined)) {
_local2.onComplete = function () {
if (onCompleteProxy != undefined) {
onCompleteProxy.apply(onCompleteScopeProxy, onCompleteParamsProxy);
}
onCompleteAll.apply(onCompleteAllScope, onCompleteAllParams);
};
}
_local5[_local5.length] = new com.greensock.TweenMax(targets[_local3], duration, _local2);
_local6 = _local6 + stagger;
_local3++;
}
return(_local5);
}
static function allFrom(targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
vars.runBackwards = true;
if (vars.immediateRender != false) {
vars.immediateRender = true;
}
return(allTo(targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope));
}
static function allFromTo(targets, duration, fromVars, toVars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
toVars.startAt = fromVars;
if (fromVars.immediateRender) {
toVars.immediateRender = true;
}
return(allTo(targets, duration, toVars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope));
}
static function delayedCall(delay, onComplete, onCompleteParams, onCompleteScope, useFrames) {
return(new com.greensock.TweenMax(onComplete, 0, {delay:delay, onComplete:onComplete, onCompleteParams:onCompleteParams, onCompleteScope:onCompleteScope, immediateRender:false, useFrames:useFrames, overwrite:0}));
}
static function getTweensOf(target) {
var _local2 = com.greensock.TweenLite.masterList[target].tweens;
var _local3 = [];
if (_local2) {
var _local1 = _local2.length;
while (_local1--) {
if (!_local2[_local1].gc) {
_local3[_local3.length] = _local2[_local1];
}
}
}
return(_local3);
}
static function isTweening(target) {
var _local3 = getTweensOf(target);
var _local2 = _local3.length;
var _local1;
while (_local2--) {
_local1 = _local3[_local2];
if (_local1.active || ((_local1.cachedStartTime == _local1.timeline.cachedTime) && (_local1.timeline.active))) {
return(true);
}
}
return(false);
}
static function getAllTweens() {
var _local5 = com.greensock.TweenLite.masterList;
var _local4 = 0;
var _local3 = [];
var _local2;
var _local1;
for (var _local6 in _local5) {
_local2 = _local5[_local6].tweens;
_local1 = _local2.length;
while (_local1--) {
if (!_local2[_local1].gc) {
_local3[_local4++] = _local2[_local1];
}
}
}
return(_local3);
}
static function killAll(complete, tweens, delayedCalls) {
if (tweens == undefined) {
tweens = true;
}
if (delayedCalls == undefined) {
delayedCalls = true;
}
var _local2 = getAllTweens();
var _local3;
var _local1 = _local2.length;
while (_local1--) {
_local3 = _local2[_local1].target == _local2[_local1].vars.onComplete;
if ((_local3 == delayedCalls) || (_local3 != tweens)) {
if (complete == true) {
_local2[_local1].complete(false, false);
} else {
_local2[_local1].setEnabled(false, false);
}
}
}
}
static function killChildTweensOf(parent, complete) {
var _local3 = getAllTweens();
var _local4;
var _local1;
var _local2 = _local3.length;
while (_local2--) {
_local4 = _local3[_local2].target;
if (_local4 instanceof MovieClip) {
_local1 = _local4._parent;
while (_local1) {
if (_local1 == parent) {
if (complete == true) {
_local3[_local2].complete(false, false);
} else {
_local3[_local2].setEnabled(false, false);
}
}
_local1 = _local1._parent;
}
}
}
}
static function pauseAll(tweens, delayedCalls) {
changePause(true, tweens, delayedCalls);
}
static function resumeAll(tweens, delayedCalls) {
changePause(false, tweens, delayedCalls);
}
static function changePause(pause, tweens, delayedCalls) {
if (tweens == undefined) {
tweens = true;
}
if (delayedCalls == undefined) {
delayedCalls = true;
}
var _local2 = getAllTweens();
var _local3;
var _local1 = _local2.length;
while (_local1--) {
_local3 = Boolean(_local2[_local1].target == _local2[_local1].vars.onComplete);
if ((_local3 == delayedCalls) || (_local3 != tweens)) {
_local2[_local1].paused = pause;
}
}
}
function get currentProgress() {
return(cachedTime / __get__duration());
}
function set currentProgress(n) {
if (_cyclesComplete == 0) {
setTotalTime(__get__duration() * n, false);
} else {
setTotalTime((__get__duration() * n) + (_cyclesComplete * cachedDuration), false);
}
//return(currentProgress);
}
function get totalProgress() {
return(cachedTotalTime / totalDuration);
}
function set totalProgress(n) {
setTotalTime(totalDuration * n, false);
//return(totalProgress);
}
function get currentTime() {
return(cachedTime);
}
function set currentTime(n) {
if (_cyclesComplete == 0) {
} else if (yoyo && ((_cyclesComplete % 2) == 1)) {
n = (__get__duration() - n) + (_cyclesComplete * (cachedDuration + _repeatDelay));
} else {
n = n + (_cyclesComplete * (__get__duration() + _repeatDelay));
}
setTotalTime(n, false);
//return(currentTime);
}
function get totalDuration() {
if (cacheIsDirty) {
cachedTotalDuration = ((_repeat == -1) ? 999999999999 : ((cachedDuration * (_repeat + 1)) + (_repeatDelay * _repeat)));
cacheIsDirty = false;
}
return(cachedTotalDuration);
}
function set totalDuration(n) {
if (_repeat == -1) {
return;
}
__set__duration((n - (_repeat * _repeatDelay)) / (_repeat + 1));
//return(totalDuration);
}
function get timeScale() {
return(cachedTimeScale);
}
function set timeScale(n) {
if (n == 0) {
n = 0.0001;
}
var _local3 = ((_pauseTime || (_pauseTime == 0)) ? (_pauseTime) : (timeline.cachedTotalTime));
cachedStartTime = _local3 - (((_local3 - cachedStartTime) * cachedTimeScale) / n);
cachedTimeScale = n;
setDirtyCache(false);
//return(timeScale);
}
function get repeat() {
return(_repeat);
}
function set repeat(n) {
_repeat = n;
setDirtyCache(true);
//return(repeat);
}
function get repeatDelay() {
return(_repeatDelay);
}
function set repeatDelay(n) {
_repeatDelay = n;
setDirtyCache(true);
//return(repeatDelay);
}
static function get globalTimeScale() {
return(((com.greensock.TweenLite.rootTimeline == undefined) ? 1 : (com.greensock.TweenLite.rootTimeline.cachedTimeScale)));
}
static function set globalTimeScale(n) {
if (n == 0) {
n = 0.0001;
}
if (com.greensock.TweenLite.rootTimeline == undefined) {
com.greensock.TweenLite.to({}, 0, {});
}
var _local1 = com.greensock.TweenLite.rootTimeline;
var _local2 = getTimer() * 0.001;
_local1.cachedStartTime = _local2 - (((_local2 - _local1.cachedStartTime) * _local1.cachedTimeScale) / n);
_local1 = com.greensock.TweenLite.rootFramesTimeline;
_local2 = com.greensock.TweenLite.rootFrame;
_local1.cachedStartTime = _local2 - (((_local2 - _local1.cachedStartTime) * _local1.cachedTimeScale) / n);
com.greensock.TweenLite.rootFramesTimeline.cachedTimeScale = (com.greensock.TweenLite.rootTimeline.cachedTimeScale = n);
//return(globalTimeScale);
}
static var version = 11.133;
static var _activatedPlugins = com.greensock.plugins.TweenPlugin.activate([com.greensock.plugins.AutoAlphaPlugin, com.greensock.plugins.EndArrayPlugin, com.greensock.plugins.FramePlugin, com.greensock.plugins.RemoveTintPlugin, com.greensock.plugins.TintPlugin, com.greensock.plugins.VisiblePlugin, com.greensock.plugins.VolumePlugin, com.greensock.plugins.BevelFilterPlugin, com.greensock.plugins.BezierPlugin, com.greensock.plugins.BezierThroughPlugin, com.greensock.plugins.BlurFilterPlugin, com.greensock.plugins.ColorMatrixFilterPlugin, com.greensock.plugins.ColorTransformPlugin, com.greensock.plugins.DropShadowFilterPlugin, com.greensock.plugins.FrameLabelPlugin, com.greensock.plugins.GlowFilterPlugin, com.greensock.plugins.HexColorsPlugin, com.greensock.plugins.RoundPropsPlugin, com.greensock.plugins.ShortRotationPlugin, {}]);
static var _overwriteMode = (com.greensock.OverwriteManager.enabled ? (com.greensock.OverwriteManager.mode) : (com.greensock.OverwriteManager.init(2)));
static var killTweensOf = com.greensock.TweenLite.killTweensOf;
static var killDelayedCallsTo = com.greensock.TweenLite.killTweensOf;
}
Symbol 565 MovieClip [__Packages.remoting.RemotingFunctions] Frame 0
class remoting.RemotingFunctions
{
var gatewayUrl, serviceName, service, serial;
function RemotingFunctions (gatewayUrl, serviceName) {
this.gatewayUrl = gatewayUrl;
this.serviceName = serviceName;
service = new remoting.RemotingService(gatewayUrl, serviceName, remoting.RemotingService.NO_RETRY);
serial = new it.sephiroth.Serializer();
}
function getHighScores(intMax) {
service.getHighScores([intMax], this, gotHighScores);
}
function gotHighScores(objResult) {
_root.mc_screen.showHighScores(_root.objRemote.serial.unserialize(objResult.__get__result()));
}
function setHighScores(strUserName, strUserEmail, intScore, intOptin1, intOptin2) {
var _local2 = new as.md5();
trace(1);
var _local3 = _local2.hash((((("client=mktgbrumxmas&username=" + strUserName) + "&email=") + strUserEmail) + "&score=") + intScore);
service.setHighScore([strUserName, strUserEmail, intScore, intOptin1, intOptin2, _local3], this, setHighScoresResult);
}
function setHighScoresResult() {
trace(2);
_root.switchScreen("leaderboard");
}
function sendToFriend(strUserName, strUserEmail, strFriendName, strFriendEmail, intUserScore, intOptin, intOptin2, gameID) {
service.sendToFriend([strUserName, strUserEmail, strFriendName, strFriendEmail, intUserScore, intOptin, intOptin2, gameID], this, sentToFriend);
}
function getRank(intScore) {
service.getRank([intScore], this, gotRank);
}
function gotRank(objResult) {
_root.intRank = objResult.result;
}
function sentToFriend() {
_root.sendfriend.friend_name.text = "";
_root.sendfriend.friend_email.text = "";
_root.sendfriend.error_text.text = "Email sent! Would you like to send another?";
}
}
Symbol 566 MovieClip [__Packages.remoting.RemotingService] Frame 0
class remoting.RemotingService
{
var gatewayUrl, serviceName, defaultSettings, service, dispatchEvent;
function RemotingService (gatewayUrl, serviceName, defaultSettings) {
mx.events.EventDispatcher.initialize(this);
this.gatewayUrl = gatewayUrl;
this.serviceName = serviceName;
this.defaultSettings = defaultSettings;
init();
}
function init() {
mx.remoting.debug.NetDebug.initialize();
service = new mx.remoting.Service(gatewayUrl, null, serviceName);
}
function setCredentials(user, pass) {
service.__get__connection().setCredentials(user, pass);
}
function __resolve(p_methodName) {
if ((p_methodName.indexOf("Handler") != -1) || (p_methodName.indexOf("__q_") != -1)) {
return(null);
}
var _local2 = new remoting.RemotingMethod(service, p_methodName, defaultSettings);
_local2.addEventListener("busy", mx.utils.Delegate.create(this, handleBusy));
_local2.addEventListener("result", mx.utils.Delegate.create(this, handleResult));
_local2.addEventListener("fault", mx.utils.Delegate.create(this, handleFault));
_local2.addEventListener("timeout", mx.utils.Delegate.create(this, handleTimeout));
_local2.addEventListener("call", mx.utils.Delegate.create(this, handleCall));
this[p_methodName] = mx.utils.Delegate.create(_local2, _local2.exec);
return(this[p_methodName]);
}
function handleBusy(eventObj) {
hasBeenBusy = true;
dispatchEvent({type:"busy", target:this});
}
function handleResult(eventObj) {
removePendingCall();
dispatchEvent({type:"result", target:this, result:eventObj.result, args:eventObj.args, methodName:eventObj.methodName});
}
function handleTimeout(eventObj) {
removePendingCall();
dispatchEvent({type:"timeout", target:this, args:eventObj.args, methodName:eventObj.methodName});
}
function handleFault(eventObj) {
removePendingCall();
if (eventObj.fault.faultcode == "AMFPHP_AUTH_MISMATCH") {
dispatchEvent({type:"authFault", target:this, fault:eventObj.fault, methodName:eventObj.methodName, args:eventObj.args});
} else {
dispatchEvent({type:"fault", target:this, fault:eventObj.fault, methodName:eventObj.methodName, args:eventObj.args});
}
}
function handleCall(eventObj) {
pendingCalls = pendingCalls + 1;
}
function removePendingCall() {
pendingCalls = pendingCalls - 1;
if ((pendingCalls == 0) && (hasBeenBusy)) {
hasBeenBusy = false;
dispatchEvent({type:"clear", target:this});
}
}
static var NO_RETRY = {maxAttempts:1, timeout:20000};
static var BUSY_TIME = 750;
var pendingCalls = 0;
var hasBeenBusy = false;
}
Symbol 57 MovieClip [__Packages.mx.remoting.Service] Frame 0
class mx.remoting.Service extends Object
{
var __conn, __serviceName, __responder;
function Service (gatewayURI, logger, serviceName, conn, resp) {
var _local1 = this;
var _local2 = conn;
var _local3 = gatewayURI;
super();
_local1.log = logger;
_local1.log.logInfo("Creating Service for " + serviceName, mx.services.Log.VERBOSE);
if ((_local3 == "") && (_local2 == null)) {
_local3 = mx.remoting.NetServices.gatewayUrl;
}
_local3 = mx.remoting.NetServices.getHttpUrl(_local3);
if (_local2 == null) {
_local2 = mx.remoting.NetServices.getConnection(_local3);
if (_local2 == null) {
_local1.log.logInfo("Creating gateway connection for " + _local3, mx.services.Log.VERBOSE);
_local2 = mx.remoting.NetServices.createGatewayConnection(_local3, logger);
}
}
_local1.__conn = _local2;
_local2.updateConfig();
_local1._allowRes = true;
_local1.__serviceName = serviceName;
_local1.__responder = resp;
_local1.log.logInfo("Successfully created Service", mx.services.Log.VERBOSE);
}
function get connection() {
return(__conn);
}
function __resolve(methodName) {
var _local2 = this;
if (_local2._allowRes) {
var _local1 = _local2.__makeOpFunc(methodName);
_local2[methodName] = _local1;
return(_local1);
}
return(null);
}
function __makeOpFunc(name) {
var op = (new mx.remoting.Operation(name, this));
var _local1 = function () {
op.invoke(arguments);
return(op.send());
};
_local1.send = function () {
return(op.createThenSend());
};
_local1.setResponder = function (resp) {
op.responder = resp;
};
_local1.getRequest = function () {
return(op.request);
};
_local1.setRequest = function (val) {
op.request = val;
};
_local1.addProperty("request", _local1.getRequest, _local1.setRequest);
_local1.operation = op;
return(_local1);
}
function get name() {
return(__serviceName);
}
function get responder() {
return(__responder);
}
static var version = "1.2.0.124";
var _allowRes = false;
}
Symbol 6 MovieClip [__Packages.mx.services.Log] Frame 0
class mx.services.Log
{
var level, name;
function Log (logLevel, name) {
level = ((logLevel == undefined) ? (BRIEF) : (logLevel));
this.name = ((name == undefined) ? "" : (name));
}
function logInfo(msg, level) {
if (level == undefined) {
level = BRIEF;
}
if (level <= this.level) {
if (level == DEBUG) {
onLog((((getDateString() + " [DEBUG] ") + name) + ": ") + msg);
} else {
onLog((((getDateString() + " [INFO] ") + name) + ": ") + msg);
}
}
}
function logDebug(msg) {
logInfo(msg, DEBUG);
}
function getDateString() {
var _local1 = new Date();
return(((((((((_local1.getMonth() + 1) + "/") + _local1.getDate()) + " ") + _local1.getHours()) + ":") + _local1.getMinutes()) + ":") + _local1.getSeconds());
}
function onLog(message) {
trace(message);
}
static var NONE = -1;
static var BRIEF = 0;
static var VERBOSE = 1;
static var DEBUG = 2;
}
Symbol 7 MovieClip [__Packages.mx.remoting.Connection] Frame 0
class mx.remoting.Connection extends NetConnection
{
var uri;
function Connection () {
super();
}
function getService(serviceName, client) {
var _local1 = new mx.remoting.NetServiceProxy(this, serviceName, client);
return(_local1);
}
function setCredentials(userId, password) {
addHeader("Credentials", false, {userid:userId, password:password});
}
function clone() {
var _local1 = new mx.remoting.Connection();
_local1.connect(uri);
return(_local1);
}
function getDebugId() {
return(null);
}
function getDebugConfig() {
return(null);
}
function setDebugId(id) {
}
function call() {
super.call.apply(super, arguments);
}
function close() {
super.close();
}
function connect(url) {
return(super.connect(url));
}
function addHeader(name, mustUnderstand, obj) {
super.addHeader(name, mustUnderstand, obj);
}
function trace(traceObj) {
}
function AppendToGatewayUrl(urlSuffix) {
var _local1 = this;
_local1.__urlSuffix = urlSuffix;
if (_local1.__originalUrl == null) {
_local1.__originalUrl = _local1.uri;
}
var _local2 = _local1.__originalUrl + urlSuffix;
_local1.connect(_local2);
}
function ReplaceGatewayUrl(newUrl) {
connect(newUrl);
}
function RequestPersistentHeader(info) {
var _local1 = info;
addHeader(_local1.name, _local1.mustUnderstand, _local1.data);
}
static var version = "1.2.0.124";
}
Symbol 13 MovieClip [__Packages.mx.remoting.NetServiceProxy] Frame 0
class mx.remoting.NetServiceProxy extends Object
{
var nc, client;
function NetServiceProxy (netC, servName, cli) {
var _local1 = this;
super();
if (netC != null) {
_local1.nc = netC;
_local1.serviceName = servName;
_local1.client = cli;
}
_local1._allowRes = true;
}
function _setParentService(service) {
nc = service.nc;
client = service.client;
}
function __resolve(methodName) {
var _local1 = this;
var _local2 = arguments;
if (_local1._allowRes) {
var _local3 = function () {
var _local1 = this;
var _local2 = arguments;
if (_local1.client != null) {
_local2.unshift(new mx.remoting.NetServiceProxyResponder(_local1, methodName));
} else if (typeof(_local2[0].onResult) != "function") {
mx.remoting.NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, and no responder was given in call to " + methodName);
_local2.unshift(new mx.remoting.NetServiceProxyResponder(_local1, methodName));
}
if (typeof(_local1.serviceName) == "function") {
_local1.serviceName = _local1.servicename;
}
_local2.unshift((_local1.serviceName + ".") + methodName);
return(_local1.nc.call.apply(_local1.nc, _local2));
};
return(_local3);
}
return(null);
}
static function registerNetServiceProxy() {
Object.registerClass("NetServiceProxy", mx.remoting.NetServiceProxy);
return(true);
}
static var init = registerNetServiceProxy();
var _allowRes = false;
}
Symbol 56 MovieClip [__Packages.mx.rpc.Responder] Frame 0
interface mx.rpc.Responder{}
Symbol 55 MovieClip [__Packages.mx.rpc.FaultEvent] Frame 0
class mx.rpc.FaultEvent extends Object
{
var __fault;
function FaultEvent (f) {
super();
__fault = f;
}
function get fault() {
return(__fault);
}
}
Symbol 54 MovieClip [__Packages.mx.rpc.Fault] Frame 0
class mx.rpc.Fault extends Object
{
var __faultcode, __faultstring, __detail, __type;
function Fault (code, msg, detail, type) {
var _local1 = this;
super();
_local1.__faultcode = code;
_local1.__faultstring = msg;
_local1.__detail = detail;
_local1.__type = type;
}
function get faultcode() {
return(__faultcode);
}
function get faultstring() {
return(__faultstring);
}
function get detail() {
return(__detail);
}
function get description() {
var _local2 = this;
if (_local2.__description == null) {
if (_local2.__faultstring.indexOf(":") > -1) {
_local2.__description = _local2.__faultstring.substring(_local2.__faultstring.indexOf(":") + 1);
var _local1 = 0;
while (_local2.__description.indexOf(" ", _local1) == _local1) {
_local1++;
}
if (_local1 > 0) {
_local2.__description = _local2.__description.substring(_local1);
}
} else {
_local2.__description = _local2.__faultstring;
}
}
return(_local2.__description);
}
function get type() {
return(__type);
}
}
Symbol 53 MovieClip [__Packages.mx.rpc.ResultEvent] Frame 0
class mx.rpc.ResultEvent extends Object
{
var __result;
function ResultEvent (res) {
super();
__result = res;
}
function get result() {
return(__result);
}
}
Symbol 12 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 36 MovieClip [__Packages.mx.remoting.debug.NetDebug] Frame 0
class mx.remoting.debug.NetDebug extends Object
{
static var ndSingleton;
var _ncs, _nextNewId, _glc, _config;
function NetDebug () {
var _local1 = this;
super();
_local1._ncs = new Array();
_local1._config = mx.remoting.debug.NetDebugConfig.getDefaultNetDebugConfig(false);
_local1._glc = new mx.remoting.debug.GlobalLocalConnection(false, _local1);
_local1._glc.sendCommand(new mx.remoting.debug.commands.GetConfig());
_local1._nextNewId = 0;
if (_global.System.onStatus == undefined) {
_global.System.onStatus = globalOnStatus;
}
mx.remoting.NetServices.traceNetServices = traceNetServices;
}
function addNetConnection(nc) {
_ncs.push(nc);
return(_nextNewId++);
}
function requestNewConfig() {
return(sendCommand(new mx.remoting.debug.commands.GetConfig()));
}
function removeNetConnection(nc) {
var _local2 = this;
var _local3 = _local2._ncs.length;
var _local1 = 0;
while (_local1 < _local3) {
if (nc == _local2._ncs[_local1]) {
_local2._ncs.splice(_local1, 1);
return;
}
_local1++;
}
}
function sendDebugEvent(eventobj) {
if (!_glc.send(eventobj)) {
_glc.send(new mx.remoting.debug.events.NetDebugFailedSendError(stripNCDEventToMinmal(eventobj)));
return(false);
}
return(true);
}
function sendCommand(commandobj) {
return(_glc.sendCommand(commandobj));
}
function updateConfig(config) {
var _local2 = this;
mx.utils.ObjectCopy.copyProperties(_local2._config, config);
var _local3 = _local2._ncs.length;
var _local1 = 0;
while (_local1 < _local3) {
if (_local2._ncs[_local1] != null) {
_local2._ncs[_local1].updateConfig(config);
}
_local1++;
}
}
function sendStatus(statusobj) {
var _local1 = this;
if (_local1._config.m_debug && (_local1._config.client.m_debug)) {
return(_local1._glc.send(new mx.remoting.debug.events.NetDebugStatus(statusobj)));
}
return(undefined);
}
function onEvent(eventObj) {
return(sendDebugEvent(eventObj));
}
function onEventError(errorObj) {
return(sendDebugEvent(new mx.remoting.debug.events.NetDebugError(errorObj)));
}
function onReceiveCommand(commandobj) {
this[commandobj.command](commandobj.data);
}
function onReceiveError(errorobj) {
sendDebugEvent(new mx.remoting.debug.events.NetDebugError(errorobj));
}
function getConfig() {
return(_config);
}
static function getNetDebug() {
return(ndSingleton);
}
static function trace(obj) {
getNetDebug()._trace(obj);
}
static function traceNetServices(who, severity, number, message) {
getNetDebug()._traceNetServices(who, severity, number, message);
}
static function globalOnStatus(statusobj) {
getNetDebug().sendStatus(statusobj);
}
static function initialize() {
if (ndSingleton == null) {
ndSingleton = new mx.remoting.debug.NetDebug();
mx.remoting.debug.ConnectionMixin.initialize();
}
return(true);
}
static function stripNCDEventToMinmal(ev) {
var _local1 = ev;
var _local2 = new Object();
if (_local1.eventType != null) {
_local2.eventType = _local1.eventType;
}
if (_local1.source != null) {
_local2.source = _local1.source;
}
if (_local1.movieUrl != null) {
_local2.movieUrl = _local1.movieUrl;
}
if (_local1.date != null) {
_local2.date = _local1.date;
}
if (_local1.time != null) {
_local2.time = _local1.time;
}
if (_local1.protocol != null) {
_local2.protocol = _local1.protocol;
}
if (_local1.debugId != null) {
_local2.debugId = _local1.debugId;
}
return(_local2);
}
function _traceNetServices(who, severity, number, message) {
var _local1 = this;
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
if (!_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTraceNetServices(who, severity, number, message))) {
}
}
}
function _trace(traceobj) {
var _local1 = this;
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
if (!_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTrace(traceobj))) {
}
}
}
static var version = "1.2.0.124";
}
Symbol 20 MovieClip [__Packages.mx.remoting.debug.NetDebugConfig] Frame 0
class mx.remoting.debug.NetDebugConfig extends Object
{
function NetDebugConfig () {
super();
Object.registerClass("NetDebugConfig", mx.remoting.debug.NetDebugConfig);
}
static function getNetDebugVersion() {
return(1);
}
static function attachNetDebugConfigFunctions(ndc) {
var _local1 = ndc;
_local1.setDebug = function (setval) {
this.m_debug = setval;
};
_local1.getDebug = function () {
return(this.m_debug);
};
for (var _local2 in _local1) {
if (typeof(_local1[_local2]) == "object") {
attachNetDebugConfigFunctions(_local1[_local2]);
}
}
return(null);
}
static function getDefaultNetDebugConfig(isController) {
var _local1 = _global;
if (_local1.netDebugConfigSO == undefined) {
var _local2 = "TestMovie_Config_Info";
if (isController) {
_local2 = "Controller_Config_Info";
}
_local1.netDebugConfigSO = SharedObject.getLocal(_local2);
}
if (_local1.netDebugConfigSO.data.config == undefined) {
_local1.netDebugConfigSO.data.config = getRealDefaultNetDebugConfig();
}
_local1.netDebugConfigSO.flush();
return(_local1.netDebugConfigSO.data.config);
}
static function getRealDefaultNetDebugConfig() {
var _local1 = new mx.remoting.debug.NetDebugConfig();
_local1.m_debug = true;
_local1.client = new mx.remoting.debug.NetDebugConfig();
_local1.client.m_debug = true;
_local1.client.trace = true;
_local1.client.recordset = true;
_local1.client.http = true;
_local1.client.rtmp = true;
_local1.realtime_server = new mx.remoting.debug.NetDebugConfig();
_local1.realtime_server.m_debug = true;
_local1.realtime_server.trace = true;
_local1.app_server = new mx.remoting.debug.NetDebugConfig();
_local1.app_server.m_debug = true;
_local1.app_server.trace = true;
_local1.app_server.error = true;
_local1.app_server.recordset = true;
_local1.app_server.httpheaders = false;
_local1.app_server.amf = false;
_local1.app_server.amfheaders = false;
_local1.app_server.coldfusion = true;
return(_local1);
}
}
Symbol 29 MovieClip [__Packages.mx.remoting.debug.GlobalLocalConnection] Frame 0
class mx.remoting.debug.GlobalLocalConnection extends Object
{
var sendPrefix;
function GlobalLocalConnection (isController, receiver, domainName) {
var _local2 = this;
var _local3 = _global;
super();
_local2.maxConnections = 10;
var sToMovie = "_NetDebugLocalToDebugMovie";
var sToController = "_NetDebugLocalToController";
var connectname = null;
if (isController) {
connectname = sToController;
_local2.sendNames = new Array();
_local2.sendNames.push(sToMovie);
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
_local2.sendNames.push(sToMovie + _local1);
_local1++;
}
_local2.maxConnections = 0;
} else {
connectname = sToMovie;
_local2.sendNames = new Array();
_local2.sendNames.push(sToController);
}
_local2.setDomainName(domainName);
if (_local3.g_NetDebugLocalConnection == undefined) {
_local3.g_NetDebugLocalConnection = new LocalConnection();
_local3.g_NetDebugLocalConnection.allowDomain = function () {
return(true);
};
}
if (receiver != null) {
_local3.g_NetDebugLocalConnection.m_Receiver = receiver;
_local3.g_NetDebugLocalConnection.onData = function (dataobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceive(dataobj);
};
_local3.g_NetDebugLocalConnection.onCommand = function (commandobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceiveCommand(commandobj);
};
if (!_local3.g_NetDebugLocalConnection.connect(connectname)) {
var connected = false;
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
if (_local3.g_NetDebugLocalConnection.connect(connectname + _local1)) {
connected = true;
break;
}
_local1++;
}
if (!connected) {
if (isController) {
receiver.onReceiveError(new mx.remoting.debug.events.NetDebugDuplicateNCDError());
}
}
}
}
}
function setDomainName(domainName) {
var _local1 = domainName;
if ((_local1 != null) && (_local1 != "")) {
sendPrefix = _local1 + ":";
} else {
sendPrefix = "";
}
}
function send(dataobj) {
return(sendRaw("onData", dataobj));
}
function sendCommand(commandObj) {
return(sendRaw("onCommand", commandObj));
}
function sendRaw(functionName, obj) {
var _local3 = this;
var _local2 = true;
var snlen = _local3.sendNames.length;
var _local1 = 0;
while (_local1 < snlen) {
_local2 = Boolean(_local2 & _global.g_NetDebugLocalConnection.send(_local3.sendPrefix + _local3.sendNames[_local1], functionName, obj));
_local1++;
}
return(_local2);
}
}
Symbol 567 MovieClip [__Packages.remoting.RemotingMethod] Frame 0
class remoting.RemotingMethod
{
var service, methodName, defaultSettings, dispatchEvent;
function RemotingMethod (service, methodName, defaultSettings) {
mx.events.EventDispatcher.initialize(this);
this.service = service;
this.methodName = methodName;
this.defaultSettings = defaultSettings;
}
function exec() {
var _local4 = null;
if (arguments.length == 5) {
_local4 = arguments.pop();
}
if (_local4 == null) {
_local4 = defaultSettings;
}
var _local6 = arguments.slice(0, 4);
var _local3 = new remoting.RemotingCall(service, methodName, _local6[0], _local6[1], _local6[2], _local6[3], _local4);
_local3.exec();
dispatchEvent({target:this, type:"call", args:_local3.args, methodName:methodName});
_local3.faultHandler = mx.utils.Delegate.create(this, onFault);
_local3.resultHandler = mx.utils.Delegate.create(this, onResult);
_local3.busyHandler = mx.utils.Delegate.create(this, onBusy);
_local3.timeoutHandler = mx.utils.Delegate.create(this, onTimeout);
}
function onFault(rc, fault) {
dispatchEvent({target:this, type:"fault", args:rc.args, methodName:methodName, fault:fault.__get__fault()});
}
function onResult(rc, result) {
dispatchEvent({target:this, type:"result", args:rc.args, methodName:methodName, result:result.__get__result()});
}
function onBusy() {
dispatchEvent({target:this, type:"busy"});
}
function onTimeout(rc) {
dispatchEvent({target:this, type:"timeout", methodName:methodName, args:rc.args});
}
}
Symbol 568 MovieClip [__Packages.remoting.RemotingCall] Frame 0
class remoting.RemotingCall
{
var service, methodName, args, resultCb, faultCb, meta, pc, busyInt, timeoutInt, busyHandler, resultHandler, faultHandler, timeoutHandler;
function RemotingCall (service, methodName, args, scope, resultCb, faultCb, meta) {
this.service = service;
this.methodName = methodName;
this.args = args;
this.resultCb = mx.utils.Delegate.create(scope, resultCb);
this.faultCb = mx.utils.Delegate.create(scope, faultCb);
this.meta = meta;
if (meta.timeout != null) {
timeout = meta.timeout;
}
if (meta.maxAttempts != null) {
maxAttempts = meta.maxAttempts;
}
}
function exec() {
pc = service[methodName].apply(this, args);
pc.__set__responder(new mx.rpc.RelayResponder(this, "onResult", "onFault"));
if (attempt == 0) {
busyInt = setInterval(mx.utils.Delegate.create(this, onBusy), remoting.RemotingService.BUSY_TIME);
timeoutInt = setInterval(mx.utils.Delegate.create(this, onTimeout), timeout);
}
attempt++;
}
function onBusy(re) {
clearInterval(busyInt);
busyHandler();
}
function onResult(re) {
if (!completed) {
clearInterval(timeoutInt);
clearInterval(busyInt);
resultHandler(this, re);
resultCb.apply(this, [re, args]);
completed = true;
}
}
function onFault(fe) {
if (!completed) {
clearInterval(timeoutInt);
clearInterval(busyInt);
faultCb.apply(this, [fe, args]);
faultHandler(this, fe);
completed = true;
}
}
function onTimeout() {
clearInterval(busyInt);
if (attempt >= maxAttempts) {
clearInterval(timeoutInt);
var _local2 = new mx.rpc.FaultEvent(new mx.rpc.Fault("TIMEOUT", methodName + " timed out", "", ""));
faultCb.apply(this, [_local2, args]);
timeoutHandler(this);
} else {
exec();
}
}
var attempt = 0;
var timeout = 5000;
var maxAttempts = 3;
var completed = false;
}
Symbol 52 MovieClip [__Packages.mx.remoting.PendingCall] Frame 0
class mx.remoting.PendingCall extends Object
{
var __service, __methodName, __responder;
function PendingCall (srv, methodName) {
super();
__service = srv;
__methodName = methodName;
}
function get responder() {
return(__responder);
}
function set responder(res) {
__responder = res;
//return(responder);
}
function onResult(result) {
var _local1 = result;
var _local2 = this;
_local1.serviceName = ((typeof(_local1.serviceName) == "function") ? (_local1.servicename) : (_local1.serviceName));
if (_local1 != null) {
if (_local1 instanceof mx.remoting.NetServiceProxy) {
var serv = (new mx.remoting.Service(null, null, _local1.serviceName, _local2.__service.__get__connection(), _local2.__service.__get__responder()));
_local1 = serv;
} else if (_local1 instanceof mx.remoting.RecordSet) {
var _local3 = new mx.remoting.NetServiceProxy(_local2.__service.__get__connection());
_local1._setParentService(_local3);
_local1.logger = _local2.__service.log;
}
}
if (_local2.__responder != null) {
_local2.__responder.onResult(new mx.rpc.ResultEvent(_local1));
}
if (_local2.__service.log != null) {
_local2.__service.log.logInfo((((_local2.__service.__get__name() + ".") + _local2.__methodName) + "() returned ") + mx.data.binding.ObjectDumper.toString(_local1));
}
}
function onStatus(status) {
var _local1 = this;
var _local2 = status;
if (_local1.__responder != null) {
_local1.__responder.onFault(new mx.rpc.FaultEvent(new mx.rpc.Fault(_local2.code, _local2.description, _local2.details, _local2.type)));
}
if (_local1.__service.log != null) {
_local1.__service.log.logDebug("Service invocation failed.");
_local1.__service.log.logDebug((((_local1.__service.__get__name() + ".") + _local1.__methodName) + "() returned ") + mx.data.binding.ObjectDumper.toString(_local2));
}
}
function get methodName() {
return(__methodName);
}
static var inited = mx.remoting.NetServiceProxy.registerNetServiceProxy();
}
Symbol 569 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 60 MovieClip [__Packages.mx.rpc.RelayResponder] Frame 0
class mx.rpc.RelayResponder extends Object
{
var __onFault, __obj, __onResult;
function RelayResponder (resp, resultFunc, faultFunc) {
var _local1 = this;
super();
_local1.__obj = resp;
_local1.__onFault = faultFunc;
_local1.__onResult = resultFunc;
}
function onFault(fault) {
__obj[__onFault](fault);
}
function onResult(result) {
__obj[__onResult](result);
}
}
Symbol 570 MovieClip [__Packages.it.sephiroth.Serializer] Frame 0
class it.sephiroth.Serializer
{
var buffer;
function Serializer () {
}
function serialize(what) {
var _local2 = new String("");
_local2 = serialize_internal("", what);
return(_local2);
}
function serialize_internal(buf, struct_c) {
if (((!isNaN(struct_c)) && (struct_c.__proto__ != Boolean.prototype)) && (struct_c.__proto__ != Date.prototype)) {
var _local2 = new Number(struct_c);
} else {
var _local2 = struct_c;
}
switch (_local2.__proto__) {
case Boolean.prototype :
buf = ((buf + "b:") + int(_local2)) + ";";
break;
case null :
case undefined :
buf = buf + "N;";
break;
case Number.prototype :
if (_local2 >= 1E15) {
buf = ((buf + "d:") + _local2) + ";";
} else if ((_local2 % 1) == 0) {
buf = ((buf + "i:") + _local2) + ";";
} else {
buf = ((buf + "d:") + _local2) + ";";
}
break;
case String.prototype :
buf = ((((buf + "s:") + calcLength(_local2)) + ":\"") + _local2) + "\";";
break;
case Date.prototype :
buf = ((((buf + "s:") + length(_local2)) + ":\"") + _local2) + "\";";
break;
case Object.prototype :
var _local4 = 0;
var _local5 = new String("");
buf = buf + "O:8:\"stdClass\":";
for (var _local6 in _local2) {
_local5 = _local5 + (serialize_internal("", _local6) + serialize_internal("", _local2[_local6]));
_local4 = _local4 + 1;
}
buf = (((buf + _local4) + ":{") + _local5) + "}";
break;
case Array.prototype :
_local4 = 0;
_local5 = new String("");
buf = buf + "a:";
for (var _local6 in _local2) {
_local5 = _local5 + (serialize_internal("", _local6) + serialize_internal("", _local2[_local6]));
_local4 = _local4 + 1;
}
buf = (((buf + _local4) + ":{") + _local5) + "}";
break;
default :
buf = buf + "i:0;";
}
return(buf);
}
function calcLength(struct) {
var _local1;
var _local3 = 0;
var _local4 = struct.length;
var _local2 = 0;
while (_local2 < _local4) {
_local1 = ord(struct.charAt(_local2));
if (_local1 < 128) {
_local3 = _local3 + 1;
} else if (_local1 < 1024) {
_local3 = _local3 + 2;
} else if (_local1 < 32768) {
_local3 = _local3 + 3;
} else if (_local1 < 2097152) {
_local3 = _local3 + 4;
}
_local2++;
}
return(_local3);
}
function unserialize(what) {
buffer = what;
return(unserialize_internal(what));
}
function unserialize_internal(obj) {
var _local3 = obj.charAt(0);
var _local2;
switch (_local3) {
case "d" :
_local2 = parse_double();
break;
case "i" :
_local2 = parse_int();
break;
case "b" :
_local2 = parse_boolean();
break;
case "s" :
_local2 = parse_string();
break;
case "a" :
_local2 = parse_array();
break;
case "O" :
_local2 = parse_object();
break;
case "N" :
}
if (_local2[0] != -1) {
buffer = buffer.substr(buffer.indexOf(";", (_local2[0] + length(_local3)) + length(_local2[0].toString())) + 1);
}
return(_local2[1]);
}
function parse_array() {
var _local3 = 0;
var _local5 = getArrayLength();
var _local4 = new Array();
while (_local3 < _local5) {
var _local2 = getNext();
_local4[_local2[0]] = _local2[1];
_local3++;
}
buffer = buffer.substr(1);
return(new Array(-1, _local4));
}
function parse_object() {
var _local6 = parse_string();
buffer = buffer.substr(buffer.indexOf(":", _local6[0]));
var _local7 = _local6[1];
var _local3 = 0;
var _local5 = getObjectLength();
var _local4 = new Object();
while (_local3 < _local5) {
var _local2 = getNext();
_local4[_local2[0]] = _local2[1];
_local3++;
}
buffer = buffer.substr(1);
return(new Array(-1, _local4));
}
function parse_string() {
var _local2 = getStringLenght();
var _local3 = getCStringLenght();
if (_local2 eq _local3) {
var _local4 = buffer.substr(length(_local2) + 4, _local2).toString();
} else {
var _local4 = buffer.substr(length(_local2) + 4, _local3).toString();
}
return(new Array(_local3, _local4));
}
function parse_boolean() {
var _local2 = getLength();
var _local3 = ((_local2 < 1) ? false : true);
return(new Array(length(_local2.toString()), _local3));
}
function parse_double() {
var _local2 = getFloatLength();
var _local3 = _local2;
return(new Array(length(_local2.toString()), _local3));
}
function parse_int() {
var _local2 = getLength();
var _local3 = _local2;
return(new Array(length(_local2.toString()), _local3));
}
function getStringLenght(str) {
var _local2 = parseInt(buffer.substr(2, buffer.indexOf(":", 3) - 2));
return(_local2);
}
function getCStringLenght(str) {
var _local6 = parseInt(buffer.substr(2, buffer.indexOf(":", 3) - 2));
var _local2;
var _local3 = _local6;
var _local4;
var _local5 = buffer;
_local4 = 4 + _local6.toString().length;
_local2 = 0;
while (_local2 < _local3) {
if (_local5.charCodeAt(_local2 + _local4) > 128) {
_local3 = _local3 - 1;
}
_local2++;
}
return(_local3);
}
function getLength() {
var _local2 = parseInt(buffer.substr(2, buffer.indexOf(";", 3) - 2));
return(_local2);
}
function getFloatLength() {
var _local2 = parseFloat(buffer.substr(2, buffer.indexOf(";", 3) - 2));
return(_local2);
}
function getArrayLength() {
var _local2 = parseInt(buffer.substr(2, (buffer.indexOf(":", 2) - buffer.indexOf(":", 1)) + 1));
buffer = buffer.substr(buffer.indexOf(":", 2) + 2);
return(_local2);
}
function getObjectLength() {
var _local2 = parseInt(buffer.substr(1, buffer.indexOf(":", 1)));
buffer = buffer.substr(buffer.indexOf(":", 1) + 2);
return(_local2);
}
function getNext(str) {
var _local2 = unserialize_internal(buffer);
var _local3 = unserialize_internal(buffer);
return(new Array(_local2, _local3));
}
static var className = "it.sephiroth.Serializer";
static var classVersion = "2.1.6";
var instanceName = "Serializer";
}
Symbol 571 MovieClip [__Packages.as.md5] Frame 0
class as.md5
{
function md5 (b64pad, chrsz) {
if (b64pad != undefined) {
this.b64pad = b64pad;
}
if (((chrsz != undefined) && (chrsz == 8)) || (chrsz == 16)) {
this.chrsz = chrsz;
}
}
function hash(s) {
return(hex_md5(s));
}
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local6 = 0;
while (_local6 < x.length) {
var _local11 = _local5;
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 0], 7, -680876936);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 1], 12, -389564586);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 2], 17, 606105819);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 3], 22, -1044525330);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 4], 7, -176418897);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 5], 12, 1200080426);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 6], 17, -1473231341);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 7], 22, -45705983);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 8], 7, 1770035416);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 9], 12, -1958414417);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 10], 17, -42063);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 11], 22, -1990404162);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 12], 7, 1804603682);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 13], 12, -40341101);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 14], 17, -1502002290);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 15], 22, 1236535329);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 1], 5, -165796510);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 6], 9, -1069501632);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 11], 14, 643717713);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 0], 20, -373897302);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 5], 5, -701558691);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 10], 9, 38016083);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 15], 14, -660478335);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 4], 20, -405537848);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 9], 5, 568446438);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 14], 9, -1019803690);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 3], 14, -187363961);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 8], 20, 1163531501);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 13], 5, -1444681467);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 2], 9, -51403784);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 7], 14, 1735328473);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 12], 20, -1926607734);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 5], 4, -378558);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 8], 11, -2022574463);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 11], 16, 1839030562);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 14], 23, -35309556);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 1], 4, -1530992060);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 4], 11, 1272893353);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 7], 16, -155497632);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 10], 23, -1094730640);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 13], 4, 681279174);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 0], 11, -358537222);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 3], 16, -722521979);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 6], 23, 76029189);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 9], 4, -640364487);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 12], 11, -421815835);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 15], 16, 530742520);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 2], 23, -995338651);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 0], 6, -198630844);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 7], 10, 1126891415);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 14], 15, -1416354905);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 5], 21, -57434055);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 12], 6, 1700485571);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 3], 10, -1894986606);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 10], 15, -1051523);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 1], 21, -2054922799);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 8], 6, 1873313359);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 15], 10, -30611744);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 6], 15, -1560198380);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 13], 21, 1309151649);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 4], 6, -145523070);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 11], 10, -1120210379);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 2], 15, 718787259);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 9], 21, -343485551);
_local5 = safe_add(_local5, _local11);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local6 = _local6 + 16;
}
return(Array(_local5, _local4, _local3, _local2));
}
function core_hmac_md5(key, data) {
var _local3 = new Array(str2binl(key));
if (_local3.length > 16) {
_local3 = core_md5(_local3, key.length * chrsz);
}
var _local4 = new Array(16);
var _local5 = new Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = new Array(core_md5(_local4.concat(str2binl(data)), 512 + (data.length * chrsz)));
return(core_md5(_local5.concat(_local6), 640));
}
function safe_add(x, y) {
var _local1 = new Number((x & 65535) + (y & 65535));
var _local2 = new Number(((x >> 16) + (y >> 16)) + (_local1 >> 16));
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local4 = new Array();
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (str.length * chrsz)) {
_local4[_local2 >> 5] = _local4[_local2 >> 5] | ((str.charCodeAt(_local2 / chrsz) & _local5) << (_local2 % 32));
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2str(bin) {
var _local4 = new String("");
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (bin.length * 32)) {
_local4 = _local4 + String.fromCharCode((bin[_local2 >> 5] >>> (_local2 % 32)) & _local5);
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2hex(binarray) {
var _local3 = "0123456789abcdef";
var _local4 = new String("");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
function binl2b64(binarray) {
var _local7 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local5 = new String("");
var _local3 = 0;
while (_local3 < (binarray.length * 4)) {
var _local6 = ((((binarray[_local3 >> 2] >> (8 * (_local3 % 4))) & 255) << 16) | (((binarray[(_local3 + 1) >> 2] >> (8 * ((_local3 + 1) % 4))) & 255) << 8)) | ((binarray[(_local3 + 2) >> 2] >> (8 * ((_local3 + 2) % 4))) & 255);
var _local2 = 0;
while (_local2 < 4) {
if (((_local3 * 8) + (_local2 * 6)) > (binarray.length * 32)) {
_local5 = _local5 + b64pad;
} else {
_local5 = _local5 + _local7.charAt((_local6 >> (6 * (3 - _local2))) & 63);
}
_local2++;
}
_local3 = _local3 + 3;
}
return(_local5);
}
var b64pad = new String("");
var chrsz = new Number(8);
}
Symbol 572 MovieClip [__Packages.com.greensock.easing.Back] Frame 0
class com.greensock.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d * 0.5);
if (t < 1) {
s = s * 1.525;
return(((c * 0.5) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c * 0.5) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
}
Symbol 1 MovieClip [__Packages.mx.remoting.DebugClasses] Frame 0
class mx.remoting.DebugClasses extends MovieClip
{
function DebugClasses () {
super();
}
}
Symbol 8 MovieClip [__Packages.mx.remoting.NetServices] Frame 0
class mx.remoting.NetServices extends Object
{
static var defaultGatewayUrl, logger, traceNetServices;
function NetServices () {
super();
}
static function setDefaultGatewayUrl(url) {
defaultGatewayUrl = url;
}
static function setGatewayUrl(url) {
gatewayUrl = url;
}
static function createGatewayConnection(url, infoLogger) {
var _local1 = url;
logger = infoLogger;
if (_local1 == undefined) {
_local1 = gatewayUrl;
if (_local1 == undefined) {
_local1 = defaultGatewayUrl;
}
}
if (_local1 == undefined) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is undefined");
logger.logInfo(("NetServices: createGatewayConnection - gateway url <" + _local1) + "> is undefined", mx.services.Log.DEBUG);
return(null);
}
var _local2 = new mx.remoting.Connection();
_local2.connect(_local1);
__sharedConnections[_local1] = _local2;
return(_local2);
}
static function getConnection(uri) {
return(__sharedConnections[uri]);
}
static function getHostUrl() {
var _local2 = _root;
if (!isHttpUrl(_local2._url)) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is invalid");
return(null);
}
var _local1 = _local2._url.indexOf("/", 8);
if (_local1 < 0) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is invalid");
return(null);
}
return(_local2._url.substring(0, _local1));
}
static function isHttpUrl(url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
}
static function getHttpUrl(url) {
var _local1 = url;
if (!isHttpUrl(_local1)) {
_local1 = getHostUrl() + _local1;
}
return(_local1);
}
static function trace(who, severity, number, message) {
traceNetServices(who, severity, number, message);
}
static var version = "1.2.0.124";
static var gatewayUrl = _root.gatewayUrl;
static var __sharedConnections = new Array();
}
Symbol 9 MovieClip [__Packages.mx.data.DataRange] Frame 0
interface mx.data.DataRange{}
Symbol 10 MovieClip [__Packages.mx.data.PageableData] Frame 0
interface mx.data.PageableData{}
Symbol 11 MovieClip [__Packages.mx.data.PageableList] Frame 0
interface mx.data.PageableList{}
Symbol 14 MovieClip [__Packages.mx.utils.Iterator] Frame 0
interface mx.utils.Iterator{}
Symbol 15 MovieClip [__Packages.mx.remoting.RecordSet] Frame 0
class mx.remoting.RecordSet extends Object
{
var mTitles, _items, mRecordSetID, dispatchEvent, gateway_conn, mDataFetcher;
function RecordSet (columnNames) {
var _local1 = this;
super();
mx.events.EventDispatcher.initialize(_local1);
_local1._items = new Array();
_local1.uniqueID = 0;
if (_local1.mTitles != null) {
} else {
if (_local1.serverInfo == null) {
if (_local1.serverinfo != null) {
_local1.serverInfo = _local1.serverinfo;
}
}
if (_local1.serverInfo == null) {
_local1.mTitles = columnNames;
} else if (_local1.serverInfo.version != 1) {
mx.remoting.NetServices.trace("RecordSet", "warning", 100, "Received incompatible RecordSet version from server");
} else {
_local1.mTitles = _local1.serverInfo.columnNames;
_local1.mRecordsAvailable = 0;
_local1.setData(((_local1.serverInfo.cursor == null) ? 0 : (_local1.serverInfo.cursor - 1)), _local1.serverInfo.initialData);
if (_local1.serverInfo.initialData.length != _local1.serverInfo.totalCount) {
_local1.mRecordSetID = _local1.serverInfo.id;
if (_local1.mRecordSetID != null) {
_local1.serviceName = ((_local1.serverInfo.serviceName == null) ? "RecordSet" : (_local1.serverInfo.serviceName));
_local1.mTotalCount = _local1.serverInfo.totalCount;
_local1.mDeliveryMode = "ondemand";
_local1.mAllNotified = false;
_local1.mOutstandingRecordCount = 0;
} else {
mx.remoting.NetServices.trace("RecordSet", "warning", 102, "Missing some records, but there's no RecordSet id");
}
}
_local1.serverInfo = null;
}
}
}
function addItem(item) {
addItemAt(length, item);
}
function addItemAt(index, item) {
var _local1 = index;
var _local2 = this;
var _local3 = true;
if ((_local1 < _local2.__get__length()) && (_local1 >= 0)) {
_local2.items.splice(_local1, 0, item);
} else if (_local1 == _local2.__get__length()) {
_local2.items[_local1] = item;
} else {
_local3 = false;
mx.remoting.NetServices.trace("Cannot add an item outside the bounds of the RecordSet");
return;
}
if (_local3) {
item.__ID__ = _local2.uniqueID++;
}
_local2.updateViews("addItems", _local1, _local1);
}
function addEventListener(event, listener) {
}
function clear() {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
var _local2 = _local1.items.length;
_local1.items.splice(0);
_local1.uniqueID = 0;
_local1.updateViews("removeItems", 0, _local2);
}
}
function contains(itmToCheck) {
var _local2 = itmToCheck;
if (isObjectEmpty(_local2)) {
return(false);
}
var itemAtIndex;
var _local3;
var _local1 = 0;
while (_local1 < items.length) {
itemAtIndex = items[_local1];
_local3 = true;
for (var t in _local2) {
if (_local2[t] != itemAtIndex[t]) {
_local3 = false;
break;
}
}
if (_local3) {
return(true);
}
_local1++;
}
return(false);
}
function getColumnNames() {
return(mTitles);
}
function get columnNames() {
return(getColumnNames());
}
function getLocalLength() {
return(items.length);
}
function getLength() {
var _local1 = this;
if (_local1.mRecordSetID != null) {
return(_local1.mTotalCount);
}
return(_local1.items.length);
}
function getIterator() {
var _local1 = new mx.remoting.RecordSetIterator(this);
return(_local1);
}
function get length() {
return(getLength());
}
function getItemAt(index) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.__get__length())) {
return(null);
}
if (_local2.mRecordSetID == null) {
return(_local2.items[_local1]);
}
_local2.requestRecord(_local1);
var _local3 = _local2.items[_local1];
if (_local3 == 1) {
return("in progress");
}
return(_local3);
}
function getItemID(index) {
return(items[index].__ID__);
}
function get items() {
return(_items);
}
function initialize(info) {
}
function filter(filterFunction, context) {
if (checkLocal()) {
} else {
var _local3 = new mx.remoting.RecordSet(mTitles);
var rcount = length;
var _local2 = 0;
while (_local2 < rcount) {
var _local1 = getItemAt(_local2);
if (((_local1 != null) && (_local1 != 1)) && (filterFunction(_local1, context))) {
_local3.addItem(_local1);
}
_local2++;
}
return(_local3);
}
return(undefined);
}
function sortItems(compareFunc, optionFlags) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc, optionFlags);
_local1.updateViews("sort");
}
}
function sortItemsBy(fieldNames, order, optionFlags) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
if (typeof(order) == "string") {
_local1.items.sortOn(fieldNames);
if (order.toUpperCase() == "DESC") {
_local1.items.reverse();
}
} else {
_local1.items.sortOn(fieldNames, optionFlags);
}
_local1.updateViews("sort");
}
}
function sort(compareFunc) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc);
_local1.updateViews("sort");
}
}
function isEmpty() {
return(items.length == 0);
}
function isLocal() {
return(mRecordSetID == null);
}
function isFullyPopulated() {
return(isLocal());
}
function getRemoteLength() {
var _local1 = this;
if (_local1.isLocal()) {
return(_local1.mRecordsAvailable);
}
return(_local1.mTotalCount);
}
function getNumberAvailable() {
var _local1 = this;
if (_local1.isLocal()) {
return(_local1.getLength());
}
return(_local1.mRecordsAvailable);
}
function replaceItemAt(index, item) {
var _local1 = index;
var _local2 = this;
if ((_local1 >= 0) && (_local1 <= _local2.__get__length())) {
var _local3 = _local2.getItemID(_local1);
_local2.items[_local1] = item;
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews("updateItems", _local1, _local1);
}
}
function removeAll() {
clear();
}
function removeItemAt(index) {
var _local1 = index;
var _local2 = this;
var _local3 = _local2._items[_local1];
_local2._items.splice(_local1, 1);
var rItems = [_local2._items[_local1]];
var rIDs = [_local2.getItemID(_local1)];
_local2.dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:_local1, lastItem:_local1, removedItems:rItems, removedIDs:rIDs});
return(_local3);
}
function removeEventListener(event, listener) {
}
function requestRange(range) {
var _local1 = range.getStart();
var _local2 = range.getEnd();
return(internalRequestRange(_local1, _local2));
}
function setDeliveryMode(mode, pagesize, numPrefetchPages) {
var _local1 = this;
var _local2 = pagesize;
var _local3 = numPrefetchPages;
_local1.mDeliveryMode = mode.toLowerCase();
_local1.stopFetchAll();
if ((_local2 == null) || (_local2 <= 0)) {
_local2 = 25;
}
switch (_local1.mDeliveryMode) {
case "ondemand" :
return;
case "page" :
if (_local3 == null) {
_local3 = 0;
}
_local1.mPageSize = _local2;
_local1.mNumPrefetchPages = _local3;
return;
case "fetchall" :
_local1.stopFetchAll();
_local1.startFetchAll(_local2);
return;
default :
mx.remoting.NetServices.trace("RecordSet", "warning", 107, "SetDeliveryMode: unknown mode string");
}
}
function editField(index, fieldName, value) {
changeFieldValue(index, fieldName, value);
}
function getEditingData(index, fieldName) {
return(items[index][fieldName]);
}
function setField(index, fieldName, value) {
changeFieldValue(index, fieldName, value);
}
function changeFieldValue(index, fieldName, value) {
var _local1 = index;
var _local2 = this;
if (_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
_local2.items[_local1][fieldName] = value;
_local2.updateViews("updateItems", _local1, _local1);
}
}
function isObjectEmpty(objToCheck) {
var _local2 = objToCheck;
var _local1 = true;
for (var _local3 in _local2) {
_local1 = false;
return(_local1);
}
return(_local1);
}
function arrayToObject(anArray) {
if (mTitles == null) {
mx.remoting.NetServices.trace("RecordSet", "warning", 105, "getItem: titles are not available");
return(null);
}
var _local3 = new Object();
var alen = anArray.length;
var _local2;
var _local1 = 0;
while (_local1 < alen) {
_local2 = mTitles[_local1];
if (_local2 == null) {
_local2 = ("column" + _local1) + 1;
}
_local3[_local2] = anArray[_local1];
_local1++;
}
return(_local3);
}
function checkLocal() {
if (isLocal()) {
return(false);
}
mx.remoting.NetServices.trace("RecordSet", "warning", 108, "Operation not allowed on partial recordset");
return(true);
}
function getRecordSetService() {
var _local1 = this;
if (_local1.mRecordSetService == null) {
if (_local1.gateway_conn == null) {
_local1.gateway_conn = mx.remoting.NetServices.createGatewayConnection();
} else if (_global.netDebugInstance != undefined) {
_local1.gateway_conn = _local1.gateway_conn.clone();
}
if (_global.netDebugInstance != undefined) {
_local1.gateway_conn.setupRecordSet();
_local1.gateway_conn.setDebugId("RecordSet " + _local1.mRecordSetID);
}
_local1.mRecordSetService = _local1.gateway_conn.getService(_local1.serviceName, _local1);
if (_local1.mRecordSetService == null) {
mx.remoting.NetServices.trace("RecordSet", "warning", 101, "Failed to create RecordSet service");
_local1.mRecordSetService = null;
}
}
return(_local1.mRecordSetService);
}
function internalRequestRange(index, lastIndex) {
var _local1 = index;
var _local2 = this;
var highestRequested = -1;
if (_local1 < 0) {
_local1 = 0;
}
if (lastIndex >= _local2.getRemoteLength()) {
lastIndex = _local2.getRemoteLength() - 1;
}
var _local3;
var last;
while (_local1 <= lastIndex) {
while ((_local1 <= lastIndex) && (_local2.items[_local1] != null)) {
_local1++;
}
_local3 = _local1;
while ((_local1 <= lastIndex) && (_local2.items[_local1] == null)) {
_local2.mOutstandingRecordCount++;
_local2.items[_local1] = 1;
_local1++;
}
last = _local1 - 1;
if (_local3 <= last) {
_local2.logger.logInfo((((" Fetching records from index [" + _local3) + "] to index [") + last) + "]");
_local2.getRecordSetService().getRecords(_local2.mRecordSetID, _local3 + 1, (last - _local3) + 1);
highestRequested = last;
_local2.updateViews("fetchRows", _local3, last);
}
}
return(highestRequested);
}
function removeItems(index, len) {
var _local3 = index;
var _local2 = new Array();
var _local1 = 0;
while (_local1 < len) {
_local2.push(getItemID(_local3 + _local1));
_local1++;
}
var oldItems = items.splice(_local3, len);
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:_local3, lastItem:(_local3 + len) - 1, removedItems:oldItems, removedIDs:_local2});
}
function getRecords_Result(info) {
var _local1 = this;
var _local2 = info;
_local1.setData(_local2.Cursor - 1, _local2.Page);
_local1.mOutstandingRecordCount = _local1.mOutstandingRecordCount - _local2.Page.length;
_local1.updateViews("updateItems", _local2.Cursor - 1, ((_local2.Cursor - 1) + _local2.Page.length) - 1);
if ((_local1.mRecordsAvailable == _local1.mTotalCount) && (!_local1.mAllNotified)) {
_local1.updateViews("allRows");
_local1.mRecordSetService.release();
_local1.mAllNotified = true;
_local1.mRecordSetID = null;
_local1.mRecordSetService = null;
}
}
function release_Result() {
}
function requestOneRecord(index) {
var _local1 = this;
var _local2 = index;
if (_local1.items[_local2] == null) {
if (_local1.mDeliveryMode == "ondemand") {
_local1.logger.logInfo((" INFO: Fetching Record [" + _local2) + "]");
}
_local1.getRecordSetService().getRecords(_local1.mRecordSetID, _local2 + 1, 1);
_local1.mOutstandingRecordCount++;
_local1.items[_local2] = 1;
_local1.updateViews("fetchRows", _local2, _local2);
}
}
function requestRecord(index) {
var _local1 = this;
if (_local1.mDeliveryMode != "page") {
_local1.requestOneRecord(index);
} else {
var _local2 = int(index / _local1.mPageSize) * _local1.mPageSize;
var _local3 = (_local2 + (_local1.mPageSize * (_local1.mNumPrefetchPages + 1))) - 1;
_local1.internalRequestRange(_local2, _local3);
}
}
function _setParentService(service) {
gateway_conn = service.nc;
}
function setData(start, dataArray) {
var _local1 = this;
var datalen = dataArray.length;
var _local3;
var rec;
var _local2 = 0;
while (_local2 < datalen) {
_local3 = _local2 + start;
rec = _local1.items[_local3];
if ((rec != null) && (rec != 1)) {
mx.remoting.NetServices.trace("RecordSet", "warning", 106, "Already got record # " + _local3);
} else {
_local1.mRecordsAvailable = _local1.mRecordsAvailable + 1;
}
_local1.items[_local3] = _local1.arrayToObject(dataArray[_local2]);
_local1.items[_local3].__ID__ = _local1.uniqueID++;
_local2++;
}
}
function startFetchAll(pagesize) {
var _local1 = this;
if (_local1.mDataFetcher != null) {
_local1.mDataFetcher.disable();
}
_local1.mDataFetcher = new mx.remoting.RsDataFetcher(_local1, pagesize);
}
function stopFetchAll() {
mDataFetcher.disable();
mDataFetcher = null;
}
function updateViews(event, first, last) {
dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last});
}
static function registerRecordSet() {
Object.registerClass("RecordSet", mx.remoting.RecordSet);
return(true);
}
static var version = "1.2.0.124";
static var init = registerRecordSet();
}
Symbol 16 MovieClip [__Packages.mx.remoting.RecordSetIterator] Frame 0
class mx.remoting.RecordSetIterator
{
var _recordSet, _cursor;
function RecordSetIterator (rec) {
_recordSet = rec;
_cursor = 0;
}
function hasNext() {
return(_cursor < _recordSet.getLength());
}
function next() {
return(_recordSet.getItemAt(_cursor++));
}
static var version = "1.2.0.124";
}
Symbol 17 MovieClip [__Packages.mx.remoting.RsDataRange] Frame 0
class mx.remoting.RsDataRange extends Object
{
var _start, _end;
function RsDataRange (s, e) {
super();
_start = s;
_end = e;
}
function getStart() {
return(_start);
}
function getEnd() {
return(_end);
}
function setEnd(e) {
_end = e;
}
function setStart(s) {
_start = s;
}
}
Symbol 18 MovieClip [__Packages.mx.remoting.RsDataFetcher] Frame 0
class mx.remoting.RsDataFetcher extends Object
{
var mEnabled;
function RsDataFetcher (pgRS, increment) {
var _local1 = this;
super();
_local1.mRecordSet = pgRS;
_local1.mRecordSet.addEventListener("modelChanged", _local1);
_local1.mIncrement = increment;
_local1.mNextRecord = 0;
_local1.mEnabled = true;
_local1.doNext();
}
function disable() {
mEnabled = false;
}
function doNext() {
var _local1 = this;
if (_local1.mEnabled) {
do {
if (_local1.mNextRecord >= _local1.mRecordSet.getRemoteLength()) {
return;
}
var _local2 = new mx.remoting.RsDataRange(_local1.mNextRecord, (_local1.mNextRecord + _local1.mIncrement) - 1);
_local1.mHighestRequested = _local1.mRecordSet.requestRange(_local2);
_local1.mNextRecord = _local1.mNextRecord + _local1.mIncrement;
} while (_local1.mHighestRequested <= 0);
}
}
function modelChanged(eventObj) {
var _local1 = this;
var _local2 = eventObj;
if (((_local2.eventName == "updateItems") && (_local2.firstItem <= _local1.mHighestRequested)) && (_local2.lastItem >= _local1.mHighestRequested)) {
_local1.doNext();
}
if (_local2.eventName == "allRows") {
_local1.disable();
}
}
}
Symbol 19 MovieClip [__Packages.mx.remoting.NetServiceProxyResponder] Frame 0
class mx.remoting.NetServiceProxyResponder extends Object
{
var service, methodName;
function NetServiceProxyResponder (serv, method) {
super();
service = serv;
methodName = method;
}
function onResult(result) {
var _local2 = result;
var _local1 = service.client;
if ((_local2 instanceof mx.remoting.NetServiceProxy) || (_local2 instanceof mx.remoting.RecordSet)) {
_local2._setParentService(service);
}
var _local3 = methodName + "_Result";
if (typeof(_local1[_local3]) == "function") {
_local1[_local3].apply(_local1, [_local2]);
} else if (typeof(_local1.onResult) == "function") {
_local1.onResult(_local2);
} else {
mx.remoting.NetServices.trace("NetServices", "info", 1, (_local3 + " was received from server: ") + _local2);
}
}
function onStatus(result) {
var _local2 = result;
var _local1 = service.client;
var _local3 = methodName + "_Status";
if (typeof(_local1[_local3]) == "function") {
_local1[_local3].apply(_local1, [_local2]);
} else if (typeof(_local1.onStatus) == "function") {
_local1.onStatus(_local2);
} else if (typeof(_root.onStatus) == "function") {
_root.onStatus(_local2);
} else if (typeof(_global.System.onStatus) == "function") {
_global.System.onStatus(_local2);
} else {
mx.remoting.NetServices.trace("NetServices", "info", 2, (((_local3 + " was received from server: <") + _local2.level) + "> ") + _local2.description);
}
}
}
Symbol 21 MovieClip [__Packages.mx.utils.ObjectCopy] Frame 0
class mx.utils.ObjectCopy
{
function ObjectCopy () {
}
static function copy(refObj) {
var _local1 = new Function(refObj.__proto__.constructor)();
copyProperties(_local1, refObj);
return(_local1);
}
static function copyProperties(dstObj, srcObj) {
var _local2 = srcObj;
var to;
for (var i in _local2) {
to = typeof(_local2[i]);
if (to != "function") {
if (to == "object") {
if (_local2[i] instanceof Array) {
var p = new Array();
var _local3 = _local2[i];
var _local1 = 0;
while (_local1 < _local3.length) {
p[_local1] = _local3[_local1];
_local1++;
}
dstObj[i] = p;
} else if (_local2[i] instanceof String) {
dstObj[i] = new String(_local2[i]);
} else if (_local2[i] instanceof Number) {
dstObj[i] = new Number(_local2[i]);
} else if (_local2[i] instanceof Boolean) {
dstObj[i] = new Boolean(_local2[i]);
} else {
dstObj[i] = copy(_local2[i]);
}
} else {
dstObj[i] = _local2[i];
}
}
}
}
}
Symbol 22 MovieClip [__Packages.mx.remoting.debug.events.NetDebug] Frame 0
class mx.remoting.debug.events.NetDebug extends Object
{
var date, time;
function NetDebug () {
super();
init();
}
function init() {
var _local1 = this;
_local1.eventType = "DebugEvent";
_local1.source = "Client";
_local1.movieUrl = unescape(_root._url);
_local1.initDate();
}
function initDate() {
var _local1 = new Date();
date = _local1;
time = _local1.getTime();
}
}
Symbol 23 MovieClip [__Packages.mx.remoting.debug.events.NetDebugNetConnection] Frame 0
class mx.remoting.debug.events.NetDebugNetConnection extends mx.remoting.debug.events.NetDebug
{
function NetDebugNetConnection () {
super();
}
}
Symbol 24 MovieClip [__Packages.mx.remoting.debug.events.NetDebugConnect] Frame 0
class mx.remoting.debug.events.NetDebugConnect extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugConnect (args) {
var _local1 = args;
var _local2 = this;
super();
_local2.eventType = "Connect";
_local2.connectString = _local1[0];
if (_local1[1] != null) {
_local2.userName = _local1[1];
}
if (_local1[2] != null) {
_local2.password = _local1[2];
}
}
}
Symbol 25 MovieClip [__Packages.mx.remoting.debug.commands.Local] Frame 0
class mx.remoting.debug.commands.Local extends Object
{
var command, data;
function Local () {
super();
}
function init(commandname, dataobj) {
command = commandname;
data = dataobj;
}
}
Symbol 26 MovieClip [__Packages.mx.remoting.debug.commands.StartRTMPTrace] Frame 0
class mx.remoting.debug.commands.StartRTMPTrace extends mx.remoting.debug.commands.Local
{
var init;
function StartRTMPTrace (cs) {
super();
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
init("startRealTimeTrace", _local1);
}
}
Symbol 27 MovieClip [__Packages.mx.remoting.debug.ConnectionMixin] Frame 0
class mx.remoting.debug.ConnectionMixin extends Object
{
var _protocol, _id, _config;
function ConnectionMixin () {
super();
}
static function initialize() {
var _local1 = mx.remoting.Connection.prototype;
var _local2 = mx.remoting.debug.ConnectionMixin.prototype;
if (!_local1.netDebugProxyFunctions) {
_local1.netDebugProxyFunctions = true;
_local1.realConnect = _local1.connect;
_local1.realCall = _local1.call;
_local1.realClose = _local1.close;
_local1.realAddHeader = _local1.addHeader;
_local1.connect = _local2.netDebugProxyConnect;
_local1.call = _local2.netDebugProxyCall;
_local1.close = _local2.netDebugProxyClose;
_local1.addHeader = _local2.netDebugProxyAddHeader;
_local1.attachDebug = _local2.attachDebug;
_local1.sendDebugEvent = _local2.sendDebugEvent;
_local1.sendServerEvent = _local2.sendServerEvent;
_local1.sendClientEvent = _local2.sendClientEvent;
_local1.addNetDebugHeader = _local2.addNetDebugHeader;
_local1.updateConfig = _local2.updateConfig;
_local1.getNetDebug = _local2.getNetDebug;
_local1.isRealTime = _local2.isRealTime;
_local1.setupRecordSet = _local2.setupRecordSet;
_local1.setDebugId = _local2.setDebugId;
_local1.getDebugId = _local2.getDebugId;
_local1.getDebugConfig = _local2.getDebugConfig;
_local1.trace = _local2.trace;
return(true);
}
return(false);
}
function attachDebug() {
var _local1 = this;
if (!_attached) {
_attached = true;
_local1._headerAdded = false;
_local1._configured = false;
_local1._config = new mx.remoting.debug.NetDebugConfig();
mx.utils.ObjectCopy.copyProperties(_local1._config, _local1.getNetDebug().getConfig());
_local1._protocol = "none";
_local1._id = String(_local1.getNetDebug().addNetConnection(_local1));
}
}
function sendDebugEvent(eventobj) {
var _local1 = this;
var _local2 = eventobj;
_local2.protocol = _local1._protocol;
_local2.debugId = _local1._id;
return(_local1.getNetDebug().onEvent(_local2));
}
function sendServerEvent(eventobj) {
eventobj.movieUrl = unescape(_root._url);
if (!sendDebugEvent(eventobj)) {
}
}
function sendClientEvent(eventobj) {
var _local1 = this;
if (_local1._config.m_debug && (_local1._config.client.m_debug)) {
if ((_local1._config.client.http && (_local1._protocol == "http")) || (_local1._config.client.rtmp && (_local1._protocol.substr(0, 4) == "rtmp"))) {
if (!_local1.sendDebugEvent(eventobj)) {
}
}
}
}
function addNetDebugHeader() {
var _local1 = this;
if (!_local1._headerAdded) {
_local1._headerAdded = true;
if ((_local1._config.m_debug && (_local1._config.app_server.m_debug)) && (_local1._protocol == "http")) {
_local1.realAddHeader("amf_server_debug", true, _local1._config.app_server);
} else {
_local1.realAddHeader("amf_server_debug", true, undefined);
}
}
}
function updateConfig(config) {
var _local1 = this;
var _local2 = config;
_local1.attachDebug();
if ((_local2 == null) && (!_local1._configured)) {
_local1._configured = true;
_local2 = mx.remoting.debug.NetDebugConfig.getRealDefaultNetDebugConfig();
}
mx.utils.ObjectCopy.copyProperties(_local1._config, _local2);
_local1._headerAdded = false;
}
function isRealTime() {
return(_protocol.substr(0, 4) == "rtmp");
}
function setupRecordSet() {
var _local1 = this;
_local1.attachDebug();
_local1._config.client.http = _local1._config.client.recordset;
}
function netDebugProxyConnect() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
var _local3 = _local2[0].substr(0, 4);
if ((_local3 == "http") || (_local3.substr(0, 4) == "rtmp")) {
if (_local2[0].charAt(4) == ":") {
_local1._protocol = _local3;
} else {
_local1._protocol = _local2[0].substr(0, 5);
}
} else {
_local1._protocol = "http";
}
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugConnect(_local2));
if (_local1.isRealTime()) {
_local1._connectString = _local2[0];
_local1.getNetDebug().sendCommand(new mx.remoting.debug.commands.StartRTMPTrace(_local2[0]));
var ret = _local1.realConnect.apply(_local1, _local2);
_local1.realCall("@getClientID", new mx.remoting.RTMPClientIDResponse(_local2[0], _local1));
return(ret);
}
return(Boolean(_local1.realConnect.apply(_local1, _local2)));
}
function netDebugProxyCall() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugCall(_local2));
_local1.addNetDebugHeader();
if (_local1._config.app_server) {
_local2[1] = new mx.remoting.debug.NetDebugResponseProxy(_local1, _local2[1]);
return(Boolean(_local1.realCall.apply(_local1, _local2)));
}
return(Boolean(_local1.realCall.apply(_local1, _local2)));
}
function netDebugProxyClose() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugClose());
if (_local1.isRealTime()) {
_local1.getNetDebug().sendCommand(new mx.remoting.debug.commands.StopRTMPTrace(_local1._connectString, _local1._clientId));
}
var _local2 = _local1.realClose();
_local1.getNetDebug().removeNetConnection(_local1);
return(_local2);
}
function netDebugProxyAddHeader() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugAddHeader(arguments));
return(Boolean(_local1.realAddHeader.apply(_local1, arguments)));
}
function setDebugId(id) {
attachDebug();
_id = id;
}
function getDebugId() {
attachDebug();
return(_id);
}
function trace(traceobj) {
var _local1 = this;
_local1.attachDebug();
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTrace(traceobj));
}
}
function getDebugConfig() {
attachDebug();
return(_config);
}
function getNetDebug() {
return(mx.remoting.debug.NetDebug.getNetDebug());
}
static var _attached = false;
}
Symbol 28 MovieClip [__Packages.mx.remoting.debug.events.NetDebugDuplicateNCDError] Frame 0
class mx.remoting.debug.events.NetDebugDuplicateNCDError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugDuplicateNCDError () {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.message = "NCD_ALREADY_RUNNING";
}
}
Symbol 30 MovieClip [__Packages.mx.remoting.debug.commands.GetConfig] Frame 0
class mx.remoting.debug.commands.GetConfig extends mx.remoting.debug.commands.Local
{
var init;
function GetConfig () {
super();
}
function GetConfigCommand() {
super();
init("getConfig", null);
}
}
Symbol 31 MovieClip [__Packages.mx.remoting.debug.events.NetDebugFailedSendError] Frame 0
class mx.remoting.debug.events.NetDebugFailedSendError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugFailedSendError (ev) {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.originalEvent = ev;
_local1.message = "NCD_FAILED_TO_SEND_EVENT";
}
}
Symbol 32 MovieClip [__Packages.mx.remoting.debug.events.NetDebugStatus] Frame 0
class mx.remoting.debug.events.NetDebugStatus extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType, status;
function NetDebugStatus (statusobj) {
super();
eventType = "Status";
status = statusobj;
}
}
Symbol 33 MovieClip [__Packages.mx.remoting.debug.events.NetDebugError] Frame 0
class mx.remoting.debug.events.NetDebugError extends mx.remoting.debug.events.NetDebug
{
var eventType, error;
function NetDebugError (dataobj) {
super();
eventType = "NetDebugError";
error = dataobj;
}
}
Symbol 34 MovieClip [__Packages.mx.remoting.debug.events.NetDebugTraceNetServices] Frame 0
class mx.remoting.debug.events.NetDebugTraceNetServices extends mx.remoting.debug.events.NetDebug
{
function NetDebugTraceNetServices (w, s, n, m) {
var _local1 = this;
super();
_local1.eventType = "NetServicesTrace";
_local1.trace = m;
_local1.who = w;
_local1.severity = s;
_local1.number = n;
}
}
Symbol 35 MovieClip [__Packages.mx.remoting.debug.events.NetDebugTrace] Frame 0
class mx.remoting.debug.events.NetDebugTrace extends mx.remoting.debug.events.NetDebug
{
var eventType, trace;
function NetDebugTrace (traceobj) {
super();
eventType = "Trace";
trace = traceobj;
}
}
Symbol 37 MovieClip [__Packages.mx.remoting.debug.commands.AddRTMPClient] Frame 0
class mx.remoting.debug.commands.AddRTMPClient extends mx.remoting.debug.commands.Local
{
var init;
function AddRTMPClient (cs, cid) {
super();
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
init("addRealTimeClient", _local1);
}
}
Symbol 38 MovieClip [__Packages.mx.remoting.RTMPClientIDResponse] Frame 0
class mx.remoting.RTMPClientIDResponse extends Object
{
var _connectString, _nc;
function RTMPClientIDResponse (cs, nc) {
super();
_connectString = cs;
_nc = nc;
}
function onResult(cid) {
_nc._clientId = cid;
mx.remoting.debug.NetDebug.getNetDebug().sendCommand(new mx.remoting.debug.commands.AddRTMPClient(_connectString, cid));
}
}
Symbol 39 MovieClip [__Packages.mx.remoting.debug.events.NetDebugCall] Frame 0
class mx.remoting.debug.events.NetDebugCall extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugCall (args) {
var _local2 = this;
var _local3 = args;
super();
_local2.eventType = "Call";
_local2.methodName = _local3[0];
_local2.parameters = new Array();
var alen = _local3.length;
var _local1 = 2;
while (_local1 < alen) {
_local2.parameters[_local1 - 2] = _local3[_local1];
_local1++;
}
}
}
Symbol 40 MovieClip [__Packages.mx.remoting.debug.events.NetDebugResult] Frame 0
class mx.remoting.debug.events.NetDebugResult extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType, result;
function NetDebugResult (resultobj) {
super();
eventType = "Result";
result = resultobj;
}
}
Symbol 41 MovieClip [__Packages.mx.remoting.debug.events.NetDebugReceiveCall] Frame 0
class mx.remoting.debug.events.NetDebugReceiveCall extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugReceiveCall (mName, args) {
var _local1 = this;
super();
_local1.eventType = "ReceivedCall";
_local1.methodName = mName;
_local1.parameters = args;
}
}
Symbol 42 MovieClip [__Packages.mx.remoting.debug.NetDebugResponseProxy] Frame 0
class mx.remoting.debug.NetDebugResponseProxy extends Object
{
var _sourceNC, _originalNR;
function NetDebugResponseProxy (source, original) {
super();
_sourceNC = source;
_originalNR = original;
}
function onDebugEvents(debugevents) {
var _local3 = debugevents;
var _local2 = _local3.length;
var _local1 = 0;
while (_local1 < _local2) {
_sourceNC.sendServerEvent(_local3[_local1]);
_local1++;
}
}
function onResult(resultobj) {
_sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugResult(resultobj));
_originalNR.onResult(resultobj);
}
function onStatus(statusobj) {
var _local1 = this;
var _local2 = statusobj;
_local1._sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugStatus(_local2));
if (_local1._originalNR.onStatus != undefined) {
_local1._originalNR.onStatus(_local2);
} else {
_global.System.onStatus(_local2);
}
}
function __resolve(name) {
var _local1 = name;
trace("NetDebugResponseProxy.__resolve name: " + _local1);
_sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugReceiveCall(_local1, arguments));
_originalNR[_local1].apply(arguments);
return(null);
}
}
Symbol 43 MovieClip [__Packages.mx.remoting.debug.events.NetDebugClose] Frame 0
class mx.remoting.debug.events.NetDebugClose extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType;
function NetDebugClose () {
super();
eventType = "Close";
}
}
Symbol 44 MovieClip [__Packages.mx.remoting.debug.commands.StopRTMPTrace] Frame 0
class mx.remoting.debug.commands.StopRTMPTrace extends mx.remoting.debug.commands.Local
{
var init;
function StopRTMPTrace () {
super();
}
function StopRTMPTraceCommand(cs, cid) {
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
init("stopRealTimeTrace", _local1);
}
}
Symbol 45 MovieClip [__Packages.mx.remoting.debug.events.NetDebugAddHeader] Frame 0
class mx.remoting.debug.events.NetDebugAddHeader extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugAddHeader (args) {
var _local1 = this;
var _local2 = args;
super();
_local1.eventType = "AddHeader";
_local1.headerName = _local2[0];
_local1.mustUnderstand = _local2[1];
if (_local2[2] != null) {
_local1.headerObject = _local2[2];
}
}
}
Symbol 46 MovieClip [__Packages.mx.remoting.debug.events.NetDebugInfoError] Frame 0
class mx.remoting.debug.events.NetDebugInfoError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugInfoError (infoobj, mes) {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.info = infoobj;
if (mes != null) {
_local1.message = mes;
}
}
}
Symbol 47 MovieClip [__Packages.mx.remoting.debug.events.NetDebugRtmpLog] Frame 0
class mx.remoting.debug.events.NetDebugRtmpLog extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugRtmpLog (infoobj) {
var _local1 = this;
super();
_local1.eventType = "Trace";
_local1.source = "Flash Communication Server";
_local1.info = infoobj;
_local1.trace = infoobj.description;
}
}
Symbol 48 MovieClip [__Packages.mx.remoting.debug.commands.UpdateNetDebugConfig] Frame 0
class mx.remoting.debug.commands.UpdateNetDebugConfig extends mx.remoting.debug.commands.Local
{
var init;
function UpdateNetDebugConfig () {
super();
}
function UpdateNetDebugCommand(dataobj) {
super();
init("updateConfig", dataobj);
}
}
Symbol 49 MovieClip [__Packages.mx.remoting.ApiClasses] Frame 0
class mx.remoting.ApiClasses extends MovieClip
{
function ApiClasses () {
super();
}
}
Symbol 51 MovieClip [__Packages.mx.remoting.DataGlue] Frame 0
class mx.remoting.DataGlue extends Object
{
var __dataProv, __labelStr, __dataStr, formatFunction;
function DataGlue (dp) {
super();
__dataProv = dp;
}
function get dataProvider() {
return(__dataProv);
}
function get labelString() {
return(__labelStr);
}
function set labelString(val) {
__labelStr = val;
//return(labelString);
}
function get dataString() {
return(__dataStr);
}
function set dataString(val) {
__dataStr = val;
//return(dataString);
}
static function bindFormatStrings(dataConsumer, dp, labelStr, dataStr) {
var _local1 = new mx.remoting.DataGlue(dp);
_local1.__set__labelString(labelStr);
_local1.__set__dataString(dataStr);
_local1.getItemAt = mx.remoting.DataGlue.prototype.getItemAt_FormatString;
dataConsumer.dataProvider = _local1;
}
static function bindFormatFunction(dataConsumer, dp, formatFunc) {
var _local1 = new mx.remoting.DataGlue(dp);
_local1.formatFunction = formatFunc;
_local1.getItemAt = mx.remoting.DataGlue.prototype.getItemAt_FormatFunction;
dataConsumer.setDataProvider(_local1);
}
function addEventListener(eventName, listener) {
dataProvider.addEventListener(eventName, listener);
}
function get length() {
return(getLength());
}
function getLength() {
return(dataProvider.length);
}
function format(formatString, item) {
var _local3 = formatString.split("#");
var result = "";
var tlen = _local3.length;
var _local2;
var _local1 = 0;
while (_local1 < tlen) {
result = result + _local3[_local1];
_local2 = _local3[_local1 + 1];
if (_local2 != undefined) {
result = result + item[_local2];
}
_local1 = _local1 + 2;
}
return(result);
}
function getItemAt_FormatString(index) {
var _local2 = this;
var _local1 = _local2.dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return({label:_local2.format(_local2.__get__labelString(), _local1), data:((_local2.__get__dataString() == null) ? (_local1) : (_local2.format(_local2.__get__dataString(), _local1)))});
}
function getItemAt_FormatFunction(index) {
var _local1 = dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return(formatFunction(_local1));
}
function getItemID(index) {
return(dataProvider.getItemID(index));
}
function addItemAt(index, value) {
dataProvider.addItemAt(index, value);
}
function addItem(value) {
dataProvider.addItem(value);
}
function removeItemAt(index) {
dataProvider.removeItemAt(index);
}
function removeAll() {
dataProvider.removeAll();
}
function replaceItemAt(index, itemObj) {
dataProvider.replaceItemAt(index, itemObj);
}
function sortItemsBy(fieldNames, optionFlags) {
dataProvider.sortItemsBy(fieldNames, optionFlags);
}
function sortItems(compareFunc, optionFlags) {
dataProvider.sortItems(compareFunc, optionFlags);
}
static var version = "1.2.0.124";
}
Symbol 58 MovieClip [__Packages.mx.remoting.Operation] Frame 0
class mx.remoting.Operation
{
var __arguments, __responder, __request, __methodName;
function Operation (methodName, parent) {
var _local1 = this;
_local1.__service = parent;
_local1.__responder = parent.responder;
_local1.__methodName = methodName;
_local1.__invokationName = (_local1.__service.__get__name() + ".") + methodName;
_local1.__request = new Object();
_local1.__arguments = new Array();
}
function createThenSend(Void) {
createArguments();
return(send());
}
function send(Void) {
var _local1 = this;
_local1.__service.log.logInfo((("Invoking " + _local1.__methodName) + " on ") + _local1.__service.__get__name());
var _local3 = new mx.remoting.PendingCall(_local1.__service, _local1.__methodName);
_local3.__set__responder(_local1.__responder);
var _local2 = null;
if (_local1.__arguments == null) {
_local2 = new Array();
} else {
_local2 = _local1.__arguments.concat();
}
_local1.__invokationName = (_local1.__service.__get__name() + ".") + _local1.__methodName;
_local2.unshift(_local1.__invokationName, _local3);
_local1.__service.connection.call.apply(_local1.__service.__get__connection(), _local2);
return(_local3);
}
function invoke(a) {
__arguments = a;
}
function get responder() {
return(__responder);
}
function set responder(r) {
__responder = r;
//return(responder);
}
function get request() {
return(__request);
}
function set request(r) {
__request = r;
//return(request);
}
function get name() {
return(__methodName);
}
function createArguments() {
var _local1 = this;
if (_local1.__request != null) {
_local1.__arguments = new Array();
for (var _local2 in _local1.__request) {
if (_local2 != "arguments") {
_local1.__arguments.unshift(_local1.__request[_local2]);
}
}
}
}
}
Symbol 59 MovieClip [__Packages.mx.data.binding.ObjectDumper] Frame 0
class mx.data.binding.ObjectDumper
{
var inProgress;
function ObjectDumper () {
inProgress = new Array();
}
static function toString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local1 = indent;
var _local2 = maxLineLength;
var _local3 = new mx.data.binding.ObjectDumper();
if (_local2 == undefined) {
_local2 = 100;
}
if (_local1 == undefined) {
_local1 = 0;
}
return(_local3.realToString(obj, showFunctions, showUndefined, showXMLstructures, _local2, _local1));
}
function realToString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local1 = obj;
var x = 0;
while (x < inProgress.length) {
if (inProgress[x] == _local1) {
return("***");
}
x++;
}
inProgress.push(_local1);
indent++;
var t = typeof(_local1);
var result;
if ((_local1 instanceof XMLNode) && (showXMLstructures != true)) {
result = _local1.toString();
} else if (_local1 instanceof Date) {
result = _local1.toString();
} else if (t == "object") {
var _local3 = new Array();
if (_local1 instanceof Array) {
result = "[";
var i = 0;
while (i < _local1.length) {
_local3.push(i);
i++;
}
} else {
result = "{";
for (var i in _local1) {
_local3.push(i);
}
_local3.sort();
}
var sep = "";
var _local2 = 0;
while (_local2 < _local3.length) {
var val = _local1[_local3[_local2]];
var show = true;
if (typeof(val) == "function") {
show = showFunctions == true;
}
if (typeof(val) == "undefined") {
show = showUndefined == true;
}
if (show) {
result = result + sep;
if (!(_local1 instanceof Array)) {
result = result + (_local3[_local2] + ": ");
}
result = result + realToString(val, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent);
sep = ", `";
}
_local2++;
}
if (_local1 instanceof Array) {
result = result + "]";
} else {
result = result + "}";
}
} else if (t == "function") {
result = "function";
} else if (t == "string") {
result = ("\"" + _local1) + "\"";
} else {
result = String(_local1);
}
if (result == "undefined") {
result = "-";
}
inProgress.pop();
return(replaceAll(result, "`", ((result.length < maxLineLength) ? "" : (newline + doIndent(indent)))));
}
static function replaceAll(str, from, to) {
var _local3 = str.split(from);
var result = "";
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3.length) {
result = result + (_local2 + _local3[_local1]);
_local2 = to;
_local1++;
}
return(result);
}
function doIndent(indent) {
var _local3 = indent;
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3) {
_local2 = _local2 + " ";
_local1++;
}
return(_local2);
}
}
Symbol 61 MovieClip [__Packages.mx.rpc.DefaultResponder] Frame 0
class mx.rpc.DefaultResponder
{
var __target;
function DefaultResponder (t) {
target = (t);
}
function get target() {
return(__target);
}
function set target(t) {
__target = t;
//return(target);
}
function onResult(event) {
trace("RPC Result: " + event.__get__result());
}
function onFault(event) {
trace("RPC Fault: " + event.fault.faultstring);
}
}
Symbol 94 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 1
stop();
Instance of Symbol 113 MovieClip "btn_leaderboard" in Symbol 129 MovieClip Frame 1
on (release) {
_root.switchScreen("leaderboard");
}
Instance of Symbol 118 MovieClip "btn_sendfriend" in Symbol 129 MovieClip Frame 1
on (release) {
_root.switchScreen("sendfriend");
}
Instance of Symbol 123 MovieClip "btn_instructions" in Symbol 129 MovieClip Frame 1
on (release) {
_root.switchScreen("instructions");
}
Instance of Symbol 128 MovieClip "btn_play" in Symbol 129 MovieClip Frame 1
on (release) {
_root.switchScreen("game");
}
Symbol 151 MovieClip Frame 1
gotoAndStop(_root.seasonFrame);
Symbol 163 MovieClip Frame 1
gotoAndStop(_root.seasonFrame);
Symbol 200 MovieClip Frame 13
_parent.gotoAndStop(1);
Symbol 278 MovieClip Frame 1
mc_throw.gotoAndStop(3);
Symbol 287 MovieClip Frame 1
gotoAndStop(_root.seasonFrame);
Symbol 310 MovieClip Frame 13
_parent.gotoAndStop(1);
Symbol 364 MovieClip Frame 1
mc_throw.gotoAndStop(3);
Instance of Symbol 137 MovieClip "btn_play" in Symbol 386 MovieClip Frame 1
on (release) {
_root.switchScreen("game");
}
Instance of Symbol 142 MovieClip "btn_menu" in Symbol 386 MovieClip Frame 1
on (release) {
_root.switchScreen("title");
}
Symbol 390 MovieClip Frame 10
stop();
Symbol 392 MovieClip Frame 55
if (!_parent._parent.gameOver) {
_parent.gotoAndStop(1);
} else {
stop();
}
Symbol 396 MovieClip Frame 55
if (!_parent._parent.gameOver) {
_parent.gotoAndStop(1);
} else {
stop();
}
Symbol 398 MovieClip Frame 1
this.ypos = this._y;
if (this.hit) {
gotoAndPlay (12);
}
Symbol 398 MovieClip Frame 11
if (this._y == this.ypos) {
removeMovieClip(this);
}
gotoAndPlay (1);
Symbol 398 MovieClip Frame 20
stop();
removeMovieClip(this);
Symbol 399 MovieClip Frame 1
this.ypos = this._y;
if (this.hit) {
gotoAndPlay (12);
}
Symbol 399 MovieClip Frame 11
if (this._y == this.ypos) {
removeMovieClip(this);
}
gotoAndPlay (1);
Symbol 399 MovieClip Frame 20
stop();
removeMovieClip(this);
Symbol 400 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 1
gotoAndPlay (2);
Symbol 424 MovieClip Frame 31
mc_text.gotoAndStop(_root.seasonFrame);
Symbol 424 MovieClip Frame 81
stop();
Symbol 430 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 2
mc_text.gotoAndStop(_root.seasonFrame);
Symbol 434 MovieClip Frame 1
stop();
Symbol 434 MovieClip Frame 2
mc_text.gotoAndStop(_root.seasonFrame);
Symbol 453 MovieClip Frame 1
function timerUpdate() {
timerSecs--;
if (timerSecs <= 0) {
timerSecs = 0;
mc_timeup.play();
endGame();
}
var _local1 = Math.floor(timerSecs / 60);
var _local2 = timerSecs % 60;
if (_local1 < 10) {
_local1 = "0" + _local1;
}
if (_local2 < 10) {
_local2 = "0" + _local2;
}
timerString = (_local1 + ":") + _local2;
}
function endGame() {
clearInterval(timerIntvl);
_parent.score = points;
com.greensock.TweenLite.delayedCall(1, _root.switchScreen, ["submitscore"]);
}
function endGame2() {
gameCancelled = true;
clearInterval(timerIntvl);
_parent.score = 0;
_root.switchScreen("title");
}
function vanishClip(clip) {
clip.active = false;
com.greensock.TweenLite.to(clip, 0.5, {_alpha:0, onComplete:removeClip, onCompleteParams:[clip]});
}
function collectClip(clip) {
clip.active = false;
com.greensock.TweenLite.to(clip, 0.5, {colorMatrixFilter:{brightness:3.5}, _xscale:1, _yscale:1, _y:clip._y + 20, ease:com.greensock.easing.Back.easeIn, onComplete:removeClip, onCompleteParams:[clip]});
}
function removeClip(clip) {
removeMovieClip(clip);
}
var timerIntvl;
var timerstring = "03:00";
var timerSecs = 180;
var gameCancelled = false;
resetGame = function () {
livesLeft = 3;
depth = 1000;
sleighOffset = 0;
points = 0;
movesMade = 0;
gameOver = false;
com.greensock.TweenLite.delayedCall(2, function () {
if (!gameCancelled) {
timerIntvl = setInterval(timerUpdate, 1000);
}
});
};
var player_mc;
var star_mc;
var sleigh_mc;
var present_mc;
var bomb_mc;
if (_parent.seasonFrame == 1) {
player_mc = mc_player_1;
mc_player_2._visible = false;
star_mc = mc_star;
sleigh_mc = mc_sleigh_1;
present_mc = mc_present;
bomb_mc = mc_pudding;
} else {
player_mc = mc_player_2;
mc_player_1._visible = false;
star_mc = mc_ticket;
sleigh_mc = mc_sleigh_2;
present_mc = mc_case;
bomb_mc = mc_machine;
}
requiredMoves = 10;
spaceDown = false;
whatStar = 0;
whatBomb = 0;
whatPresent = 0;
starSpeed = 20;
bombSpeed = 5;
presentSpeed = 5;
playerSpeed = 10;
sleigh_mc._x = 540;
halfPlayerHeight = player_mc._height / 2;
halfPlayerWidth = player_mc._width / 2;
leftEdge = 0 + halfPlayerWidth;
rightEdge = 500 - halfPlayerWidth;
sleighSpeed = 25;
halfSleighWidth = sleigh_mc._width / 2;
resetGame();
this.onEnterFrame = function () {
if (((Key.isDown(32) && (!spaceDown)) && (player_mc._currentframe != 3)) && (player_mc._currentframe != 4)) {
spaceDown = true;
player_mc.gotoAndStop("throw");
_root.playSound("throw");
newStarName = ("star" + whatStar) + "_mc";
star_mc.duplicateMovieClip(newStarName, depth);
whatStar++;
depth++;
_root.mc_screen[newStarName]._x = player_mc._x + (25 * (player_mc._xscale / 100));
_root.mc_screen[newStarName]._y = player_mc._y + 45;
_root.mc_screen[newStarName].hit = false;
_root.mc_screen[newStarName].onEnterFrame = function () {
if (this._y > 0) {
if (!this.hit) {
this._y = this._y - _root.mc_screen.starSpeed;
}
if (this.hitTest(sleigh_mc.mc_hit) && (!this.hit)) {
_root.playSound("hit");
_root.playSound("whizz");
newPresentName = ("present" + whatPresent) + "_mc";
present_mc.duplicateMovieClip(newPresentName, depth + 20000);
depth++;
whatPresent++;
_root.mc_screen[newPresentName]._x = sleigh_mc._x + (sleigh_mc.mc_driver._x * (sleigh_mc._xscale / 100));
_root.mc_screen[newPresentName]._y = sleigh_mc._y;
_root.mc_screen[newPresentName].presentSpeed = (Math.random() * 7) + 5;
_root.mc_screen[newPresentName].currentSpeed = -_root.mc_screen[newPresentName].presentSpeed;
_root.mc_screen[newPresentName].active = true;
if (Math.ceil(Math.random() * 20) == -1) {
_root.mc_screen[newPresentName].gotoAndStop(6);
_root.mc_screen[newPresentName].extraLife = true;
_root.mc_screen[newPresentName].presentSpeed = 15;
} else {
_root.mc_screen[newPresentName].gotoAndStop(Math.ceil(Math.random() * 4));
_root.mc_screen[newPresentName].extraLife = false;
}
_root.mc_screen[newPresentName].onEnterFrame = function () {
if (this._y < 450) {
if (this.collected != true) {
this._y = this._y + this.currentSpeed;
}
if (this.currentSpeed < this.presentSpeed) {
this.currentSpeed = this.currentSpeed + 0.5;
}
if (this._y > (player_mc._y + 20)) {
if ((this.hitTest(player_mc) && (this.active)) && (player_mc._currentframe != 4)) {
if (this.extraLife) {
_root.mc_screen.extraLife_mc.play();
livesLeft++;
points = points + 80;
}
_root.playSound("collect");
points = points + 20;
this.collected = true;
collectClip(this);
}
}
} else {
vanishClip(this);
}
};
points = points + 15;
sleighSpeed = sleighSpeed * 4;
sleighOffset = sleighOffset + 0.15;
this.gotoAndPlay(12);
this.hit = true;
trace(points);
}
} else {
removeMovieClip(this);
}
};
}
if ((!Key.isDown(32)) && (spaceDown)) {
spaceDown = false;
}
if ((((Key.isDown(37) && (player_mc._x > leftEdge)) && (!gameOver)) && (player_mc._currentframe != 3)) && (player_mc._currentframe != 4)) {
player_mc._x = player_mc._x - playerSpeed;
player_mc._xscale = -100;
if (player_mc._currentframe != 3) {
player_mc.gotoAndStop("walk");
}
}
if ((((Key.isDown(39) && (player_mc._x < rightEdge)) && (!gameOver)) && (player_mc._currentframe != 3)) && (player_mc._currentframe != 4)) {
player_mc._x = player_mc._x + playerSpeed;
player_mc._xscale = 100;
if (player_mc._currentframe != 3) {
player_mc.gotoAndStop("walk");
}
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
if ((player_mc._currentframe != 3) && (player_mc._currentframe != 4)) {
player_mc.gotoAndStop("stand");
}
}
sleigh_mc._x = sleigh_mc._x + sleighSpeed;
var _local3 = -sleigh_mc._width;
var _local4 = 500 + (sleigh_mc._width + 32);
if (((sleigh_mc._x > _local4) && (sleighSpeed > 0)) && (!gameOver)) {
firestorm = false;
movesMade++;
sleigh_mc._y = Math.round(Math.random() * 100) + 40;
sleighSpeed = -5 - sleighOffset;
dropBombLoc = Math.round(Math.random() * 400);
dropBombLoc = dropBombLoc - (sleigh_mc.mc_driver._x * (sleigh_mc._xscale / 100));
trace("dropping bomb1 at" + dropBombLoc);
bombDropped = false;
sleigh_mc.gotoAndStop(2);
sleigh_mc._xscale = 100;
}
if (((sleigh_mc._x < _local3) && (sleighSpeed < 0)) && (!gameOver)) {
firestorm = false;
movesMade++;
sleigh_mc._y = Math.round(Math.random() * 100) + 40;
sleighSpeed = 5 + sleighOffset;
bombDropped = false;
dropBombLoc = Math.round(Math.random() * 400);
dropBombLoc = dropBombLoc + (sleigh_mc.mc_driver._x * (sleigh_mc._xscale / 100));
trace("dropping bomb2 at" + dropBombLoc);
sleigh_mc.gotoAndStop(1);
sleigh_mc._xscale = -100;
if (movesMade >= requiredMoves) {
mc_airstrike.play();
movesMade = 0;
firestorm = true;
sleigh_mc._y = 80;
sleigh_mc._x = -800;
dropBombLoc = 0;
sleighSpeed = 50;
requiredMoves = Math.ceil(Math.random() * 5) + 10;
}
}
if (((sleigh_mc._x >= dropBombLoc) && (sleighSpeed > 0)) || ((sleigh_mc._x <= dropBombLoc) && (sleighSpeed < 0))) {
dropBomb(true);
if (firestorm) {
dropBombLoc = sleigh_mc._x + 150;
}
}
};
dropBomb = function (oneBomb) {
if (!bombDropped) {
if (!firestorm) {
bombDropped = true;
}
newBombName = ("bomb" + whatBomb) + "_mc";
bomb_mc.duplicateMovieClip(newBombName, depth + 10000);
depth++;
whatBomb++;
_root.mc_screen[newBombName].active = true;
_root.mc_screen[newBombName]._x = sleigh_mc._x + (sleigh_mc.mc_driver._x * (sleigh_mc._xscale / 100));
_root.mc_screen[newBombName]._y = sleigh_mc._y;
_root.mc_screen[newBombName].gotoAndStop(Math.ceil(Math.random() * 4));
_root.mc_screen[newBombName].bombSpeed = (Math.random() * 7) + 5;
_root.mc_screen[newBombName].onEnterFrame = function () {
if (this._y < 450) {
this._y = this._y + this.bombSpeed;
if ((this.hitTest(player_mc.mc_hit) && (this.active)) && (player_mc._currentframe != 4)) {
player_mc.explod_mc.play();
player_mc.mask_mc.play();
livesLeft = livesLeft - 1;
player_mc.gotoAndStop("hit");
_root.playSound("ow");
vanishClip(this);
com.greensock.TweenMax.to(player_mc, 0.25, {glowFilter:{_alpha:1, alpha:1, blurX:30, blurY:30, color:16711680, strength:3}, repeat:1, yoyo:true});
}
if ((livesLeft == -1) && (!gameOver)) {
gameOver = true;
player_mc.ani.gotoAndPlay(21);
livesLeft = 0;
endGame();
}
} else {
vanishClip(this);
}
};
}
};
Instance of Symbol 452 MovieClip in Symbol 453 MovieClip Frame 1
on (release) {
_parent.endGame2();
}
Instance of Symbol 142 MovieClip "btn_menu" in Symbol 459 MovieClip Frame 1
on (release) {
_root.switchScreen("title");
}
Instance of Symbol 456 MovieClip "btn_submitscore" in Symbol 459 MovieClip Frame 1
on (release) {
_root.switchScreen("submitscore");
}
Symbol 482 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 1
mc_inner.gotoAndStop(_root.seasonFrame);
var date = new Date();
var day = date.getDate();
var month = (date.getMonth() + 1);
var year = (date.getYear() + 1900);
if ((((month == 1) && (year <= 2011)) && (day <= 31)) || (year <= 2010)) {
mc_inner._visible = true;
} else {
mc_inner._visible = false;
}
Instance of Symbol 494 MovieClip "mc_inner" in Symbol 495 MovieClip Frame 1
on (release) {
getURL ("http://www.visitbirmingham.com/express_terms_and_conditions/", "_blank");
}
Symbol 499 MovieClip Frame 1
mc_score.text_score.text = _parent.score + " points";
Instance of Symbol 142 MovieClip "btn_menu" in Symbol 499 MovieClip Frame 1
on (release) {
_root.switchScreen("title");
}
Instance of Symbol 475 MovieClip "btn_submit" in Symbol 499 MovieClip Frame 1
on (release) {
this.boolSubmit = true;
strUserName = _parent.user_name.text;
strUserEmail = _parent.user_email.text;
intUserIndexOfAt = strUserEmail.indexOf("@");
intUserLastIndexOfDot = strUserEmail.lastIndexOf(".");
intOptin1 = _parent.mc_optin_1._currentframe - 1;
intOptin2 = _parent.mc_optin_2._currentframe - 1;
if (((!strUserEmail) || (intUserIndexOfAt == -1)) || (intUserLastIndexOfDot == -1)) {
this.boolSubmit = false;
_parent.text_error.text = "Your email address is not valid";
} else if (!strUserName) {
this.boolSubmit = false;
_parent.text_error.text = "Please enter your name";
}
if (this.boolSubmit != false) {
_root.intScoreSub = 1;
_parent.btn_submit._visible = false;
_parent.text_error.text = "Submitting score, please wait...";
_root.objRemote.setHighScores(strUserName, strUserEmail, _root.score, intOptin1, intOptin2);
}
}
Instance of Symbol 482 MovieClip "mc_optin_1" in Symbol 499 MovieClip Frame 1
on (release) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 482 MovieClip "mc_optin_2" in Symbol 499 MovieClip Frame 1
on (release) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 518 MovieClip Frame 1
function showHighScores(arrScores) {
i = 0;
while (i < arrScores.length) {
var _local5 = i + 10000;
var _local4 = ("scoreLine" + (i + 1)) + "_mc";
duplicateMovieClip (scoreList_mc.scoreLine_mc, _local4, _local5);
var _local2 = scoreList_mc[("scoreLine" + (i + 1)) + "_mc"];
_local2._y = 26 * i;
trace(arrScores[i].username);
_local2.playerName.text = arrScores[i].username;
_local2.playerScore.text = arrScores[i].points;
nextScorePos = this.scoreList_mc.scoreLine_mc._height;
i++;
}
scrolling();
}
var scoreList_mc = scoreList_mc;
var scrollTrack = scrollTrack;
var scrollFace = scrollFace;
var maskedView = maskedView;
var btnUp = btnUp;
var btnDown = btnDown;
scoreList_mc.scoreLine_mc._visible = false;
_root.objRemote.getHighScores(20);
scrolling = function () {
objContent = scoreList_mc;
var _local5 = scrollTrack._height;
var _local2 = objContent._height;
var _local4 = scrollFace._height;
var _local3 = maskedView._height;
var initPosition = ((scrollFace._y = scrollTrack._y));
var initContentPos = objContent._y;
var finalContentPos = ((_local3 - _local2) + initContentPos);
var left = scrollTrack._x;
var top = scrollTrack._y;
var right = scrollTrack._x;
var bottom = ((scrollTrack._height - _local4) + scrollTrack._y);
var dy = 0;
var speed = 10;
var moveVal = ((_local2 - _local3) / (_local5 - _local4));
scrollFace.onPress = function () {
var _local2 = this._y;
startDrag (this, false, left + 1, top, right, bottom);
this.onMouseMove = function () {
scrollFace._x = scrollTrack._x;
dy = Math.abs(initPosition - this._y);
objContent._y = Math.round(((dy * -1) * moveVal) + initContentPos);
};
};
scrollFace.onMouseUp = function () {
stopDrag();
scrollFace._x = left;
delete this.onMouseMove;
};
btnUp.onPress = function () {
this.onEnterFrame = function () {
if ((objContent._y + speed) < maskedView._y) {
if (scrollFace._y <= top) {
scrollFace._y = top;
} else {
scrollFace._y = scrollFace._y - (speed / moveVal);
}
objContent._y = objContent._y + speed;
} else {
scrollFace._y = top;
objContent._y = maskedView._y;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function () {
delete this.onEnterFrame;
};
btnUp.onRelease = function () {
delete this.onEnterFrame;
};
btnDown.onPress = function () {
this.onEnterFrame = function () {
if ((objContent._y - speed) > finalContentPos) {
if (scrollFace._y >= bottom) {
scrollFace._y = bottom;
} else {
scrollFace._y = scrollFace._y + (speed / moveVal);
}
objContent._y = objContent._y - speed;
} else {
scrollFace._y = bottom;
objContent._y = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function () {
delete this.onEnterFrame;
};
btnDown.onDragOut = function () {
delete this.onEnterFrame;
};
if (_local2 < _local3) {
scrollFace._visible = false;
scrollTrack._visible = false;
btnUp._visible = false;
btnDown._visible = false;
} else {
scrollFace._visible = true;
scrollTrack._visible = true;
btnUp._visible = true;
btnDown._visible = true;
}
scrollTrack.onPress = function () {
scrollFace._y = _ymouse;
if (scrollFace._y < (btnUp._y + btnUp._height)) {
scrollFace._y = btnUp._y + btnUp._height;
} else if ((scrollFace._y + scrollFace._height) > btnDown._y) {
scrollFace._y = btnDown._y - scrollFace._height;
}
dy = Math.abs(initPosition - scrollFace._y);
objContent._y = Math.round(((dy * -1) * moveVal) + initContentPos);
};
};
scrolling();
Instance of Symbol 142 MovieClip "btn_menu" in Symbol 518 MovieClip Frame 1
on (release) {
_root.switchScreen("title");
}
Instance of Symbol 142 MovieClip "btn_menu" in Symbol 535 MovieClip Frame 1
on (release) {
_root.switchScreen("title");
}
Instance of Symbol 475 MovieClip "btn_play" in Symbol 535 MovieClip Frame 1
on (release) {
function sendMail() {
trace("Send");
if (j >= (arrSend.length - 1)) {
_root.mc_screen.friend_name_1.text = "";
_root.mc_screen.friend_email_1.text = "";
_root.mc_screen.friend_name_2.text = "";
_root.mc_screen.friend_email_2.text = "";
_root.mc_screen.friend_name_3.text = "";
_root.mc_screen.friend_email_3.text = "";
_root.mc_screen.friend_name_4.text = "";
_root.mc_screen.friend_email_4.text = "";
_root.mc_screen.text_error.text = "Email sent! Would you like to send another?";
_root.mc_screen.btn_submit._visible = true;
clearInterval(k);
boolSending = false;
}
trace(arrSend[j][1]);
_root.objRemote.sendToFriend(strUserName, strUserEmail, arrSend[j][0], arrSend[j][1], _parent.intScore, intOptin1, intOptin2, _root.seasonFrame);
arrDupe.push(strFriendEmail);
j++;
}
if (boolSending == true) {
return(false);
}
var intSend = 0;
var j = 0;
var k = 0;
_root.mc_screen.boolSubmit = true;
var arrSend = [];
var arrDupe = [];
strUserName = _root.mc_screen.user_name.text;
strUserEmail = _root.mc_screen.user_email.text;
intUserIndexOfAt = strUserEmail.indexOf("@");
intUserLastIndexOfDot = strUserEmail.lastIndexOf(".");
intOptin1 = _root.mc_screen.mc_optin_1._currentframe - 1;
intOptin2 = _root.mc_screen.mc_optin_2._currentframe - 1;
trace("optin1: " + intOptin1);
trace("optin2: " + intOptin2);
if (!strUserName) {
_root.mc_screen.boolSubmit = false;
_root.mc_screen.text_error.text = "Please enter your name";
} else if (((!strUserEmail) || (intUserIndexOfAt == -1)) || (intUserLastIndexOfDot == -1)) {
_root.mc_screen.boolSubmit = false;
_root.mc_screen.text_error.text = "Your email address is not valid";
} else {
i = 1;
while (i <= 3) {
strFriendName = _root.mc_screen["friend_name_" + i].text;
strFriendEmail = _root.mc_screen["friend_email_" + i].text;
intFriendIndexOfAt = strFriendEmail.indexOf("@");
intFriendLastIndexOfDot = strFriendEmail.lastIndexOf(".");
if ((strFriendName != "") || (strFriendEmail != "")) {
intSend++;
if (!strFriendName) {
_root.mc_screen.boolSubmit = false;
_root.mc_screen.text_error.text = ("Friend " + i) + " has a missing name";
break;
}
if (((!strFriendEmail) || (intFriendIndexOfAt == -1)) || (intFriendLastIndexOfDot == -1)) {
_root.mc_screen.boolSubmit = false;
_root.mc_screen.text_error.text = ("Friend " + i) + " has an invalid email address";
break;
}
arrSend.push([strFriendName, strFriendEmail]);
}
i++;
}
if (intSend == 0) {
_root.mc_screen.boolSubmit = false;
_root.mc_screen.text_error.text = "Please enter your friends' details";
}
if (_root.mc_screen.boolSubmit != false) {
_root.mc_screen.btn_submit._visible = false;
_root.mc_screen.text_error.text = "Sending, please wait...";
k = setInterval(sendMail, 400);
boolSending = true;
}
}
}
Instance of Symbol 482 MovieClip "mc_optin_1" in Symbol 535 MovieClip Frame 1
on (release) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 482 MovieClip "mc_optin_2" in Symbol 535 MovieClip Frame 1
on (release) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}