Frame 1
stop();
var intScore = 0;
var intScoreSub = 0;
var intSuccess = 0;
var intChar = 1;
var strRootURL = "http://www.tamba-games.co.uk/sector1";
var strServiceURL = (_root.strRootURL + "/amfphp/gateway.php");
var objRemote = (new remoting.RemotingFunctions(strServiceURL, "GameFunctions"));
preLoad = function () {
preloader.load_pct.text = Math.round((getBytesLoaded() / getBytesTotal()) * 100) + "%";
if (getBytesLoaded() == getBytesTotal()) {
clearInterval(intPreloader);
gotoAndStop ("title");
}
};
var intPreloader = setInterval(preLoad, 40);
function tvc_tracker(url, media_id, format) {
tvc_lv = new LoadVars();
tvc_lv.media = media_id;
tvc_lv.f = format;
return(tvc_lv.sendAndLoad(url, tvc_lv, "get"));
}
kv_v = {c:450, a:0, da:["distralytics.com", "distralytics.co.uk"]};
kv_v.i = 0;
while (kv_v.i < kv_v.da.length) {
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 _local1 = ((("http://" + kv_v.c) + ".c.") + kv_v.da[kv_v.a % kv_v.da.length]) + kv_v.lurl;
System.security.allowDomain(_local1);
kv_v.l_mcl.loadClip(_local1, 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 = "/control/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 () {
kv_v.a++;
kv_v.lc();
}, onLoadStart:function (m) {
System.security.allowDomain(m._url);
}};
kv_v.l_mcl.addListener(kv_v.mcl_l);
kv_v.lc();
_root.tvc_media = "842";
System.security.allowDomain(_parent.url);
strUrl = ((url != null) ? (url) : "http://www.viralchart.com");
if ((_root.tvc_media != null) && (_root.tvc_media != "")) {
_root.tvc_media = (tvc_tracker(strUrl + "/tracker.php", _root.tvc_media, "F") ? null : (_root.tvc_media));
}
Instance of Symbol 127 MovieClip in Frame 1
on (release) {
getURL ("http://www.sector1.net", "_blank");
}
Frame 2
stop();
Frame 3
stop();
var globalSound = new Sound(_root);
btn_sound.onRelease = function () {
if (!soundOff) {
globalSound.setVolume(0);
soundOff = true;
skipnext = true;
}
if (soundOff && (!skipnext)) {
globalSound.setVolume(100);
soundOff = false;
}
skipnext = false;
};
btn_tamba.onRelease = function () {
getURL ("http://www.tamba.co.uk", "_blank");
};
Frame 4
stop();
Frame 5
stop();
btn_sound.onRelease = function () {
if (!soundOff) {
globalSound.setVolume(0);
soundOff = true;
skipnext = true;
}
if (soundOff && (!skipnext)) {
globalSound.setVolume(100);
soundOff = false;
}
skipnext = false;
};
btn_tamba.onRelease = function () {
getURL ("http://www.tamba.co.uk", "_blank");
};
Frame 6
stop();
btn_sound.onRelease = function () {
if (!soundOff) {
globalSound.setVolume(0);
soundOff = true;
skipnext = true;
}
if (soundOff && (!skipnext)) {
globalSound.setVolume(100);
soundOff = false;
}
skipnext = false;
};
btn_tamba.onRelease = function () {
getURL ("http://www.tamba.co.uk", "_blank");
};
Instance of Symbol 127 MovieClip in Frame 6
on (release) {
getURL ("http://www.sector1.net", "_blank");
}
Frame 7
stop();
btn_sound.onRelease = function () {
if (!soundOff) {
globalSound.setVolume(0);
soundOff = true;
skipnext = true;
}
if (soundOff && (!skipnext)) {
globalSound.setVolume(100);
soundOff = false;
}
skipnext = false;
};
btn_tamba.onRelease = function () {
getURL ("http://www.tamba.co.uk", "_blank");
};
Frame 8
stop();
Frame 9
stop();
Frame 10
stop();
Frame 11
stop();
Symbol 6 MovieClip [tomato] Frame 1
stop();
Symbol 24 MovieClip [child] Frame 1
stop();
Symbol 29 MovieClip [RemotingDebugClasses] Frame 1
#initclip 70
Object.registerClass("RemotingDebugClasses", mx.remoting.DebugClasses);
#endinitclip
preview._visible = false;
stop();
Symbol 74 MovieClip [RemotingClasses] Frame 1
#initclip 71
Object.registerClass("RemotingClasses", mx.remoting.ApiClasses);
#endinitclip
preview._visible = false;
stop();
Symbol 893 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.leaderboard.showHighScores(_root.objRemote.serial.unserialize(objResult.__get__result()));
}
function setHighScores(strUserName, strUserEmail, strTel, strPostcode, strClub, intPoints, intWeapon) {
service.setHighScores([strUserName, strUserEmail, strTel, strPostcode, strClub, intPoints, intWeapon], this, setHighScoresResult);
}
function setHighScoresResult() {
_root.gotoAndStop("leaderboard");
}
function sendToFriend(strUserName, strUserEmail, strFriendName, strFriendEmail, intUserScore) {
service.sendToFriend([strUserName, strUserEmail, strFriendName, strFriendEmail, intUserScore], 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 894 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 81 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 30 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 31 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 37 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 80 MovieClip [__Packages.mx.rpc.Responder] Frame 0
interface mx.rpc.Responder{}
Symbol 79 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 78 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 77 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 36 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 60 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 44 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 53 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 895 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 896 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 76 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 897 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 84 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 898 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 899 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 900 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 901 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 902 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 903 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 904 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 905 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 25 MovieClip [__Packages.mx.remoting.DebugClasses] Frame 0
class mx.remoting.DebugClasses extends MovieClip
{
function DebugClasses () {
super();
}
}
Symbol 32 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 33 MovieClip [__Packages.mx.data.DataRange] Frame 0
interface mx.data.DataRange{}
Symbol 34 MovieClip [__Packages.mx.data.PageableData] Frame 0
interface mx.data.PageableData{}
Symbol 35 MovieClip [__Packages.mx.data.PageableList] Frame 0
interface mx.data.PageableList{}
Symbol 38 MovieClip [__Packages.mx.utils.Iterator] Frame 0
interface mx.utils.Iterator{}
Symbol 39 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 40 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 41 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 42 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 43 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 45 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 46 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 47 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 48 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 49 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 50 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 51 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 52 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 54 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 55 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 56 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 57 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 58 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 59 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 61 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 62 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 63 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 64 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 65 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 66 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 67 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 68 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 69 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 70 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 71 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 72 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 73 MovieClip [__Packages.mx.remoting.ApiClasses] Frame 0
class mx.remoting.ApiClasses extends MovieClip
{
function ApiClasses () {
super();
}
}
Symbol 75 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 82 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 83 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 85 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 147 MovieClip Frame 1
stop();
Symbol 159 Button
on (release) {
_parent.gotoAndStop("select");
}
Symbol 161 Button
on (release) {
_parent.gotoAndStop("instructions");
}
Symbol 181 Button
on (release) {
this._visible = false;
_parent.page_1._visible = true;
}
Symbol 200 MovieClip Frame 1
tile_1.icon.gotoAndStop("d");
tile_1.icon.inner.gotoAndStop(1);
tile_2.icon.gotoAndStop("q");
tile_2.icon.inner.gotoAndStop(1);
tile_3.icon.gotoAndStop("f");
tile_3.icon.inner.gotoAndStop(1);
tile_4.icon.gotoAndStop("l");
tile_4.icon.inner.gotoAndStop(1);
tile_5.icon.gotoAndStop("b");
tile_5.icon.inner.gotoAndStop(1);
Symbol 217 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 24
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 40
stop();
Symbol 238 Button
on (release) {
this._visible = false;
_parent.page_2._visible = true;
}
Symbol 241 Button
on (release) {
_parent.gotoAndStop("title");
}
Symbol 243 Button
on (release) {
_parent.gotoAndStop("select");
}
Symbol 246 MovieClip Frame 1
page_2._visible = false;
Symbol 299 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 25
stop();
Symbol 572 MovieClip Frame 7
stop();
Symbol 582 MovieClip Frame 1
stop();
Symbol 594 MovieClip Frame 1
stop();
Symbol 594 MovieClip Frame 2
stop();
Symbol 595 MovieClip Frame 11
stop();
_parent._parent._parent.initQuiz();
Symbol 596 MovieClip Frame 7
stop();
Symbol 616 MovieClip Frame 1
f.gotoAndStop(1);
m.gotoAndStop(1);
Symbol 634 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 75
stop();
_parent.nextFrame();
Symbol 649 MovieClip Frame 1
stop();
Symbol 656 MovieClip Frame 1
stop();
Symbol 656 MovieClip Frame 4
stop();
Symbol 710 MovieClip Frame 1
stop();
Symbol 712 MovieClip Frame 1
stop();
Symbol 713 MovieClip Frame 11
stop();
intro.inner.gotoAndStop("briefcase");
Symbol 713 MovieClip Frame 12
stop();
_parent._parent._parent.initBriefcase();
Symbol 714 MovieClip Frame 7
stop();
Symbol 758 MovieClip Frame 11
stop();
intro.inner.gotoAndStop("ladder");
Symbol 758 MovieClip Frame 12
stop();
_parent._parent._parent.initLadder();
Symbol 759 MovieClip Frame 7
stop();
Symbol 779 MovieClip Frame 1
stop();
Symbol 794 MovieClip Frame 1
stop();
Symbol 794 MovieClip Frame 77
stop();
Symbol 796 MovieClip Frame 11
stop();
intro.inner.gotoAndStop("fire");
Symbol 796 MovieClip Frame 12
stop();
_parent._parent._parent.initFire();
Symbol 797 MovieClip Frame 7
stop();
Symbol 800 MovieClip Frame 1
function initQuiz() {
var _local4 = bonus_mc.game.inner.inner;
_local4.result._visible = false;
_local4.q_txt.text = objQuestions[arrQuiz[intQuiz]].q;
if (objQuestions[arrQuiz[intQuiz]].o[0] == "True") {
_local4.gotoAndStop(2);
}
var _local3 = 0;
while (_local3 < 4) {
var _local2 = _local4["a_" + _local3];
if (typeof(objQuestions[arrQuiz[intQuiz]].o[_local3]) != "undefined") {
_local2._visible = true;
_local2.bg.gotoAndStop(1);
_local2.i = _local3;
_local2.a_txt.text = objQuestions[arrQuiz[intQuiz]].o[_local3];
if (_local3 == objQuestions[arrQuiz[intQuiz]].a) {
_local2.boolC = true;
objCorr = _local2;
} else {
_local2.boolC = false;
}
_local2.onRelease = checkAnswer;
_local2.onRollOver = function () {
this.bg.gotoAndStop(2);
};
_local2.onRollOut = function () {
this.bg.gotoAndStop(1);
};
} else {
_local2._visible = false;
}
_local3++;
}
intQuiz++;
}
function checkAnswer() {
this.bg.gotoAndStop(1);
playSound("drumroll");
var objQ = bonus_mc.game.inner.inner;
var objC = this;
var _local3 = 0;
while (_local3 < 4) {
var _local2 = objQ["a_" + _local3];
delete _local2.onRelease;
delete _local2.onRollOver;
delete _local2.onRollOut;
if (this.i == _local3) {
_local2._visible = true;
} else {
_local2._visible = false;
}
_local3++;
}
var _local9 = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeOut, this._x, 105, 0.25, true);
var _local7 = new mx.transitions.Tween(this, "_y", mx.transitions.easing.Regular.easeOut, this._y, 85, 0.25, true);
var strSnd = "";
_local9.onMotionFinished = function () {
var intPoints = 0;
var _local2 = new mx.transitions.Tween(this.obj, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 1, true);
_local2.onMotionFinished = function () {
playSound("cymbal");
if (objC.boolC) {
intPoints = 150;
strSnd = "cheer";
objQ.result.gotoAndStop(1);
} else {
intPoints = -100;
strSnd = "boo";
objQ.result.gotoAndStop(2);
objCorr.swapDepths(this.obj);
objCorr._x = -400;
objCorr._visible = true;
objCorr._y = 85;
var _local6 = new mx.transitions.Tween(objCorr, "_x", mx.transitions.easing.Strong.easeOut, -400, 105, 0.5, true);
var _local3 = new mx.transitions.Tween(this.obj, "_x", mx.transitions.easing.Strong.easeOut, this.obj._x, 600, 0.5, true);
}
objQ.result._visible = true;
var _local5 = new mx.transitions.Tween(objQ.result, "_xscale", mx.transitions.easing.Strong.easeOut, 300, 100, 0.5, true);
var _local4 = new mx.transitions.Tween(objQ.result, "_yscale", mx.transitions.easing.Strong.easeOut, 300, 100, 0.5, true);
var _local2 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 1.5, true);
_local2.onMotionFinished = function () {
playSound(strSnd);
endBonus(intPoints);
};
};
};
}
function initBriefcase() {
bonus_mc.game.inner.briefcase.items_mc.bg._visible = false;
bonus_mc.game.inner.briefcase.items_mc.item_tmp._visible = false;
playMusic("music_briefcase");
intBSecs = 6;
strBriefM = "x";
var _local2 = 0;
while (_local2 < arrBriefO.length) {
var _local3 = bonus_mc.game.inner.briefcase["item_" + arrBriefO[_local2]];
_local3.swapDepths(100);
_local3.removeMovieClip();
_local2++;
}
arrBriefO = [];
intBriefO = 0;
if (intBrief < 7) {
intBriefI = 4 + intBrief;
}
var objBr = bonus_mc.game.inner.briefcase;
var _local4 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 2, true);
arrBrief.mixElements();
_local4.onMotionFinished = function () {
objBr.lid.gotoAndPlay("open");
bonus_mc.game.inner.briefcase.lid.hud.gotoAndStop(1);
bonus_mc.game.inner.briefcase.lid.hud.timer_txt.text = "";
var _local2 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 0.5, true);
_local2.onMotionFinished = function () {
makeBriefItems();
};
};
intBrief++;
}
function makeBriefItems() {
intBStartX = 0;
intBWidthL = 0;
intBSpace = 0;
intBWidth = 0;
intBWidthT = bonus_mc.game.inner.briefcase.items_mc.bg._width;
intBHeightT = bonus_mc.game.inner.briefcase.items_mc.bg._height;
var _local2 = 0;
while (_local2 < intBriefI) {
var _local3 = bonus_mc.game.inner.briefcase.items_mc.item_tmp.duplicateMovieClip("item_" + _local2, _local2 * 10);
_local3.gotoAndStop(arrBrief[_local2]);
_local3.strName = arrBrief[_local2];
intBWidth = intBWidth + _local3._width;
var _local1 = Math.round(_local3._width * _local3._height);
_local3.swapDepths(9000 - _local1);
_local3._name = "item_" + _local1;
arrBriefO.push(_local1);
_local3._visible = false;
_local2++;
}
intBSpace = (intBWidthT - intBWidth) / (intBriefI - 1);
intBStartX = (intBWidthT / (intBWidth + ((intBSpace * intBriefI) - 1))) / 2;
_local2 = 0;
while (_local2 < intBriefI) {
var _local3 = bonus_mc.game.inner.briefcase.items_mc["item_" + arrBriefO[_local2]];
_local3.positionItem();
_local2++;
}
arrBriefO.sort(Array.DESCENDING | Array.NUMERIC);
bonus_mc.game.inner.briefcase.lid.swapDepths(9000);
dropBriefItems();
}
function dropBriefItems() {
var _local1 = bonus_mc.game.inner.briefcase.items_mc["item_" + arrBriefO[intBriefO]];
_local1._visible = true;
var _local2 = new mx.transitions.Tween(_local1, "_y", mx.transitions.easing.Strong.easeIn, _local1._y - 400, _local1._y, 0.75, true);
_local2.onMotionFinished = function () {
if (intBriefO <= (arrBriefO.length - 1)) {
playSound("brief_thump");
intBriefO++;
dropBriefItems();
} else {
intBTimer = setInterval(updateBriefTimer, 1000);
}
};
}
function updateBriefTimer() {
if (intBSecs == 0) {
clearInterval(intBTimer);
mixBriefItems();
return(false);
}
intBSecs--;
playSound("brief_tick");
bonus_mc.game.inner.briefcase.lid.hud.timer_txt.text = intBSecs;
}
function mixBriefItems() {
var objBr = bonus_mc.game.inner.briefcase;
objBr.lid.gotoAndPlay("close");
arrBrief.mixElements();
bonus_mc.game.inner.briefcase.lid.hud.gotoAndStop(2);
var _local5 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 2, true);
_local5.onMotionFinished = function () {
intBWidthL = 0;
intBriefM = randNum(0, arrBriefO.length - 1);
var _local3 = 0;
while (_local3 < 18) {
var _local2 = bonus_mc.game.inner.briefcase.lid.hud["a_" + _local3];
_local2.label_txt.text = arrBrief[_local3];
_local2.strName = arrBrief[_local3];
_local2.onRollOver = function () {
this.bg.gotoAndStop(2);
};
_local2.onRollOut = function () {
this.bg.gotoAndStop(1);
};
_local2.onRelease = checkGuess;
_local3++;
}
_local3 = 0;
while (_local3 < arrBriefO.length) {
var _local4 = bonus_mc.game.inner.briefcase.items_mc["item_" + arrBriefO[_local3]];
if (_local3 == intBriefM) {
_local4._visible = false;
strBriefM = _local4.strName;
}
_local4.positionItem();
_local3++;
}
objBr.lid.gotoAndPlay("open");
};
}
function checkGuess() {
var intPoints = 0;
var objBr = bonus_mc.game.inner.briefcase;
objBr.lid.gotoAndPlay("close");
if (this.strName == strBriefM) {
intPoints = 200 + (intBrief * 50);
objBr.lid.hud.gotoAndStop(3);
objBr.lid.hud.result.gotoAndStop(1);
strSnd = "cheer";
} else {
intPoints = -100;
objBr.lid.hud.gotoAndStop(3);
objBr.lid.hud.result.gotoAndStop(2);
strSnd = "boo";
}
var _local4 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 0.3, true);
_local4.onMotionFinished = function () {
objBr.lid.hud.gotoAndStop(3);
var _local1 = 0;
while (_local1 < arrBriefO.length) {
var _local2 = bonus_mc.game.inner.briefcase.items_mc["item_" + arrBriefO[_local1]];
if (_local1 == intBriefM) {
_local2._visible = true;
} else {
_local2._visible = false;
}
_local1++;
}
};
_local4 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 0.5, true);
_local4.onMotionFinished = function () {
playSound("drumroll");
var _local2 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 2, true);
_local2.onMotionFinished = function () {
objBr.lid.gotoAndPlay("open");
playSound("cymbal");
var _local2 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 1.5, true);
_local2.onMotionFinished = function () {
playSound(strSnd);
var _local2 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 1.5, true);
endBonus(intPoints);
};
};
};
}
function initLadder() {
playMusic("music_ladders");
bonus_mc.game.inner.playfield.result._visible = false;
arrLL = [];
intLL = 0;
arrLG = [];
intLG = 0;
arrLW = [];
intLW = 0;
boolLPause = true;
intLSecs = 20;
intLadder++;
var _local4 = 0;
if (intLadder > 8) {
_local4 = randNum(2, 8);
intLSecs = intLSecs - 5;
intLCharS = 8;
intLCharSC = 6;
} else {
_local4 = intLadder;
}
intLSecsI = intLSecs;
objLGame = bonus_mc.game.inner.playfield.level.inner;
objLGame._parent.gotoAndStop(_local4);
objLChar = objLGame.char_mc;
objLChar._visible = true;
objLChar.gotoAndStop(intChar);
objLChar.inner.gotoAndStop(1);
objLChar.inner.inner.gotoAndStop(1);
objLChar.onEnterFrame = moveLChar;
objLChar.intXS = 0;
objLChar.intYS = 0;
objLChar.boolLadd = false;
bonus_mc.game.inner.playfield.timer_txt.text = intLSecs;
for (var _local3 in objLGame) {
if (typeof(objLGame[_local3]) == "movieclip") {
if (((_local3 != "char_mc") && (_local3 != "door")) && (_local3 != "intro")) {
objLGame[_local3]._alpha = 0;
}
if (_local3 == "ladder") {
objLGame[_local3]._name = "ladder_" + intLL;
arrLL.push("ladder_" + intLL);
intLL++;
} else if (_local3 == "ground") {
objLGame[_local3]._name = "ground_" + intLG;
arrLG.push("ground_" + intLG);
intLG++;
} else if (_local3 == "wall") {
objLGame[_local3]._name = "wall_" + intLW;
arrLW.push("wall_" + intLW);
intLW++;
}
}
}
objLGame.intro._y = objLGame.door._y + 12;
objLGame.intro._x = -400;
var _local5 = new mx.transitions.Tween(objLGame.intro, "_x", mx.transitions.easing.Bounce.easeOut, -100, objLGame.door._x - 10, 1, true);
_local5.onMotionFinished = function () {
var _local4 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 1.5, true);
_local4.onMotionFinished = function () {
var _local4 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 1.2, true);
_local4.onMotionFinished = function () {
intLTimer = setInterval(updateLadderTimer, 1000);
boolLPause = false;
};
var _local5 = new mx.transitions.Tween(objLGame.intro, "_alpha", mx.transitions.easing.Regular.easeIn, 100, 0, 1, true);
for (var _local3 in objLGame) {
if ((typeof(objLGame[_local3]) == "movieclip") && (objLGame[_local3]._alpha == 0)) {
var _local2 = new mx.transitions.Tween(objLGame[_local3], "_alpha", mx.transitions.easing.Regular.easeIn, 0, 100, 1, true);
}
}
};
};
}
function updateLadderTimer() {
if (intLSecs == 0) {
return(false);
}
intLSecs--;
if (intLSecs < 10) {
playSound("brief_tick");
}
if (intLSecs == 0) {
clearInterval(intLTimer);
failLadder();
}
bonus_mc.game.inner.playfield.timer_txt.text = intLSecs;
}
function winLadder() {
boolLPause = true;
var _local7 = intLSecs;
clearInterval(intLTimer);
objLChar._y++;
playSound("cymbal");
var _local4 = 0.2;
for (var _local5 in objLGame) {
_local4 = _local4 + 0.1;
if (!objLGame[_local5].hitTest(objLGame.door)) {
var _local2 = new mx.transitions.Tween(objLGame[_local5], "_y", mx.transitions.easing.Strong.easeIn, objLGame[_local5]._y, 480, 0.6, true);
var _local3 = new mx.transitions.Tween(objLGame[_local5], "_rotation", mx.transitions.easing.Strong.easeIn, 0, randNum(-45, 45), 0.5, true);
_local2.onMotionFinished = function () {
var _local2 = new mx.transitions.Tween(this.obj, "_y", mx.transitions.easing.Strong.easeIn, this.obj._y, 900, 0.5, true);
_local2.onMotionFinished = function () {
this.obj._visible = false;
};
};
}
}
bonus_mc.game.inner.playfield.result.gotoAndStop(1);
bonus_mc.game.inner.playfield.result._visible = true;
var _local9 = new mx.transitions.Tween(bonus_mc.game.inner.playfield.result, "_xscale", mx.transitions.easing.Strong.easeOut, 300, 100, 0.3, true);
var _local8 = new mx.transitions.Tween(bonus_mc.game.inner.playfield.result, "_yscale", mx.transitions.easing.Strong.easeOut, 300, 100, 0.5, true);
var _local6 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 1.5, true);
_local6.onMotionFinished = function () {
endBonus(intLSecs * 25);
};
}
function failLadder() {
boolLPause = true;
fadeMusic();
var _local2 = new mx.transitions.Tween(objLChar, "_y", mx.transitions.easing.Regular.easeIn, objLChar._y, objLChar._y - 10, 0.2, true);
_local2.onMotionFinished = function () {
playSound("ladder_fall");
bonus_mc.game.inner.playfield.result.gotoAndStop(2);
bonus_mc.game.inner.playfield.result._visible = true;
var _local5 = new mx.transitions.Tween(bonus_mc.game.inner.playfield.result, "_xscale", mx.transitions.easing.Strong.easeOut, 300, 100, 0.3, true);
var _local4 = new mx.transitions.Tween(bonus_mc.game.inner.playfield.result, "_yscale", mx.transitions.easing.Strong.easeOut, 300, 100, 0.5, true);
var _local2 = new mx.transitions.Tween(objLChar, "_y", mx.transitions.easing.Regular.easeOut, objLChar._y, 480, 0.6, true);
_local2.onMotionFinished = function () {
objLChar._visible = false;
var _local2 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 1.5, true);
_local2.onMotionFinished = function () {
endBonus(-100);
};
};
};
}
function moveLChar() {
if (boolLPause) {
this.intXS = 0;
this.intYS = 0;
this.inner.inner.gotoAndStop(1);
return(false);
}
if (Key.isDown(37)) {
this.intYS = 0;
this.intXS = -intLCharS;
this.inner.gotoAndStop("LEFT");
} else if (Key.isDown(39)) {
this.intXS = intLCharS;
this.intYS = 0;
this.inner.gotoAndStop("RIGHT");
} else {
this.intXS = 0;
}
if (Key.isDown(38) && (this.boolLadd)) {
this.intYS = -intLCharSC;
this.intXS = 0;
this.inner.gotoAndStop("CLIMB");
} else if (Key.isDown(40) && (this.boolLadd)) {
this.intYS = intLCharSC;
this.intXS = 0;
this.inner.gotoAndStop("CLIMB");
} else {
this.intYS = 0;
}
this.checkColl();
if ((this.intXS != 0) || ((this.intYS != 0) && (this.boolLadd))) {
this.inner.inner.play();
} else {
this.inner.inner.gotoAndStop(1);
}
this._x = this._x + this.intXS;
this._y = this._y + this.intYS;
}
function initFire() {
intFF = 0;
playMusic("music_fireboss_2");
intFScore = 0;
intFFail = 0;
intFSecs = 30;
boolFBoss = false;
intFFireR = randNum(2, 5);
arrFF = [];
objFCross = this.attachMovie("tomato", "cross_mc", 11000, {_x:-1300});
objFGame = bonus_mc.game.inner.playfield;
objFGame.outro._visible = false;
intFire++;
for (var _local2 in objFGame) {
if (typeof(objFGame[_local2]) == "movieclip") {
trace(_local2);
if (_local2 == "filing") {
objFGame[_local2].intX = objFGame[_local2].char_l._x;
objFGame[_local2].boolL = false;
objFGame[_local2].boolR = false;
objFGame[_local2]._name = "filing_" + intFF;
arrFF.push(intFF);
intFF++;
}
}
}
showFIntro();
}
function showFIntro() {
var intX = objFGame.intro.char._x;
var intD = 1000;
objFGame.intro.char.swapDepths(intD);
var _local6 = new mx.transitions.Tween(objFGame.intro.intro_1, "_x", mx.transitions.easing.Regular.easeOut, objFGame.intro.intro_1._x, -199.3, 0.5, true);
var _local5 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 1.5, true);
_local5.onMotionFinished = function () {
var _local6 = new mx.transitions.Tween(objFGame.intro.intro_2, "_y", mx.transitions.easing.Strong.easeOut, objFGame.intro.intro_2._y, -64.3, 1.5, true);
i = 2;
while (i <= 6) {
intX = intX + 50;
intD = intD - 10;
var _local2 = objFGame.intro.char.duplicateMovieClip("char_" + i, intD);
_local2.gotoAndStop(i);
_local2.inner.gotoAndStop(1);
var _local3 = new mx.transitions.Tween(_local2, "_x", mx.transitions.easing.Regular.easeOut, _local2._x, intX, 1.2, true);
i++;
}
var _local5 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 2, true);
objFGame.onMouseMove = moveFCross;
objFGame.onMouseDown = fireFCross;
_local5.onMotionFinished = function () {
var _local1 = new mx.transitions.Tween(objFGame.intro, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 1, true);
_local1.onMotionFinished = function () {
startFire();
};
};
};
}
function startFire() {
intFIntvl = setInterval(showFTarget, 500);
intFTimer = setInterval(updateFTimer, 1000);
}
function updateFTimer() {
if (intFSecs < 10) {
playSound("brief_tick");
}
intFSecs--;
if (intFSecs <= 0) {
intFSecs = 0;
objFGame.timer_txt.text = intFSecs;
clearInterval(intFTimer);
gameFOver();
}
objFGame.timer_txt.text = intFSecs;
}
function gameFOver() {
clearInterval(intFIntvl);
delete objFGame.onMouseDown;
delete objFGame.onMouseMove;
this.cross_mc.removeMovieClip();
objFGame.outro.intFScore = intFScore;
var _local3 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 2, true);
_local3.onMotionFinished = function () {
objFGame.outro._visible = true;
var _local2 = new mx.transitions.Tween(objFGame.outro, "_x", mx.transitions.easing.Elastic.easeOut, objFGame.outro._x - 300, objFGame.outro._x, 1, true);
_local2.onMotionFinished = function () {
objFGame.outro.gotoAndPlay(2);
var _local2 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 5, true);
_local2.onMotionFinished = function () {
endBonus((intFScore - intFFail) * 100);
};
};
};
}
function moveFCross() {
if (objFCross._visible == false) {
if ((getTimer() - intFGT) > 100) {
objFCross._visible = true;
}
}
objFCross._x = _xmouse;
objFCross._y = _ymouse;
}
function fireFCross() {
if (objFCross._visible == false) {
return(false);
}
intFGT = getTimer();
objFCross._visible = false;
var _local2 = this._parent.attachMovie("tomato", "ffire_" + intFFire, intFFire + 11000);
_local2._x = this._parent._xmouse;
_local2._y = this._parent._ymouse;
intFFire++;
playSound("swish");
_local2.onEnterFrame = moveFireF;
}
function moveFireF() {
for (var _local3 in arrFF) {
var _local2 = objFGame["filing_" + _local3];
if (this.hitTest(objFGame["filing_" + _local3]) && (this._xscale <= (objFGame["filing_" + _local3]._xscale / 2))) {
if (checkFCollision(this, objFGame["filing_" + _local3])) {
this.objHit = objFGame["filing_" + _local3];
this.splatFireF();
break;
}
}
}
this._xscale = (this._yscale = this._yscale - 5);
this._y = this._y + 5;
if (this._xscale <= 15) {
this.splatFireF();
}
}
function showFTarget() {
var _local5 = randNum(0, intFF - 1);
var objF = objFGame["filing_" + _local5];
var intX = objF.intX;
var _local3 = 80;
var objChar;
if ((intFFireT % intFFireR) == 0) {
var _local2 = 1;
intFFireR = randNum(2, 5);
} else {
var _local2 = randNum(2, 6);
}
if (objF.boolR && (objF.boolL)) {
} else if ((!objF.boolR) && (!objF.boolL)) {
intFFireT++;
if ((Math.random() * 2000) > 1000) {
objChar = objF.char_l;
objF.char_l.gotoAndStop(_local2);
objF.char_l.intD = -_local3;
objF.boolL = true;
} else {
intFFireT++;
objChar = objF.char_r;
objF.char_r.gotoAndStop(_local2);
objF.char_r.intD = _local3;
objF.boolR = true;
}
} else if (objF.boolR) {
intFFireT++;
objChar = objF.char_l;
objF.char_l.gotoAndStop(_local2);
objF.char_l.intD = -_local3;
objF.boolL = true;
} else if (objF.boolF) {
intFFireT++;
objChar = objF.char_r;
objF.char_r.gotoAndStop(_local2);
objF.char_r.intD = _local3;
objF.boolR = true;
}
objChar._alpha = 100;
objChar.inner.gotoAndStop(1);
objChar.inner.gotoAndStop(2);
objChar.boolHit = false;
objChar.boolHittable = false;
objChar.intC = _local2;
if (_local2 == 1) {
boolFBoss = true;
}
var _local4 = new mx.transitions.Tween(objChar, "_x", mx.transitions.easing.Strong.easeOut, intX, intX + objChar.intD, 0.25, true);
_local4.onMotionFinished = function () {
objChar.boolHittable = true;
var _local3 = new mx.transitions.Tween(this.obj, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 2, true);
_local3.onMotionFinished = function () {
if (this.obj.boolHit != true) {
objChar.boolHittable = false;
var _local2 = new mx.transitions.Tween(this.obj, "_x", mx.transitions.easing.Strong.easeOut, this.obj._x, intX, 0.5, true);
_local2.onMotionFinished = function () {
if (this.obj.intD < 0) {
objF.boolL = false;
} else if (this.obj.intD > 0) {
objF.boolR = false;
}
if (this.obj.intC == 1) {
boolFBoss = false;
}
};
}
};
};
}
function checkFCollision(mc1, mc2) {
var _local1 = new flash.geom.Matrix();
var _local2 = {x:0, y:0};
mc1.localToGlobal(_local2);
var _local3 = {x:0, y:0};
mc2.localToGlobal(_local3);
_local1.tx = _local2.x;
_local1.ty = _local2.y;
var _local4 = new flash.geom.ColorTransform(0, 0, 0, 1, 0, 255, 255, 0);
var _local5 = new flash.display.BitmapData(700, 600, false);
_local5.draw(mc1, _local1, _local4, "normal");
_local4 = new flash.geom.ColorTransform(0, 0, 0, 1, 255, 255, 255, 0);
_local1.tx = _local3.x;
_local1.ty = _local3.y;
_local5.draw(mc2, _local1, _local4, "difference");
var _local7 = _local5.getColorBoundsRect(16777215, 16711680, true);
var _local6 = true;
if ((_local7.width == 0) and (_local7.height == 0)) {
_local6 = false;
}
return(_local6);
}
function updateTimer() {
if (boolPause == true) {
return(false);
}
if ((intMins == 0) && (intSecs == 0)) {
trace("Time up");
gameOver(false);
return(false);
}
intSecs--;
if (intSecs < 0) {
intSecs = 59;
intMins--;
}
strSecs = intSecs.toString();
strMins = intMins.toString();
if (intSecs < 10) {
strSecs = "0" + strSecs;
}
if (intMins < 10) {
strMins = "0" + strMins;
}
strTimer = (strMins + ":") + strSecs;
}
function initGame() {
playMain("music_main");
arrTT = [];
var _local1 = 1;
while (_local1 <= 5) {
var _local4 = play_area["level_" + _local1];
arrTT[_local1] = 0;
_local4.lift_nums_1["num_" + _local1].gotoAndStop(2);
_local4.lift_nums_2["num_" + _local1].gotoAndStop(2);
var _local3 = 1;
while (_local3 <= 22) {
var _local2 = _local4.route["tile_" + _local3];
if (typeof(_local2) != "undefined") {
arrTT[_local1]++;
_local2.icon.gotoAndStop(arrL[_local1][arrTT[_local1]]);
if ((_local1 % 2) != 0) {
_local2.icon.inner.gotoAndStop(2);
} else {
_local2.icon.inner.gotoAndStop(1);
}
}
_local3++;
}
_local1++;
}
for (var _local5 in objQuestions) {
arrQuiz.push(_local5);
}
arrQuiz.mixElements();
intTimerIntvl = setInterval(updateTimer, 1000);
nextLevel(0, 0);
}
function nextLevel(intLevel, intDir) {
if (intLevel != 0) {
intL = intLevel;
} else {
intL++;
}
objL = play_area["level_" + intL];
intTT = arrTT[intL];
if (intChar == 2) {
objC = objL.char_female;
} else {
objC = objL.char_male;
}
objC._visible = true;
if (boolStart == false) {
boolStart = true;
boolNext = false;
boolOpen = false;
objD.onRelease = rollDie;
objC.gotoAndStop("DOWN");
objC.inner.gotoAndStop(1);
objC.intT = 1;
objC.s = 0;
objC.t = 0;
var _local1 = getTilePos(objL, objC.intT);
objC._x = _local1.x;
objC._y = _local1.y;
objD.gotoAndStop(1);
} else if (intDir == 0) {
exitLift();
} else if (intDir == 2) {
freeDie();
}
objL.trap_mask._visible = false;
objTD = objL.route["tile_" + arrTrap[intL]];
objTD.gotoAndStop(1);
}
function ascendLevel(intLadd) {
if (intLadd == 1) {
var _local2 = play_area["level_" + (intL + 1)];
if (intChar == 2) {
var _local1 = _local2.char_female;
} else {
var _local1 = _local2.char_male;
}
_local1.intT = arrLaddD[intL];
var _local3 = getTilePos(_local2, _local1.intT);
_local1._x = _local3.x;
_local1._y = _local3.y + 440;
_local1.inner.gotoAndStop(1);
}
var _local6 = new mx.transitions.Tween(objD, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 1, true);
var _local5 = new mx.transitions.Tween(objD._parent.dice_shad, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 1, true);
var _local4 = new mx.transitions.Tween(play_area, "_y", mx.transitions.easing.Regular.easeOut, play_area._y, play_area._y + 440, 3, true);
_local4.onMotionFinished = function () {
if (intLadd == 0) {
nextLevel(0, 0);
} else {
nextLevel(0, 2);
}
};
}
function descendLevel() {
objC._x = -200;
var _local2 = play_area["level_" + (intL - 1)];
_local2.lift_btns["btn_" + (intL - 1)].gotoAndStop(1);
if (intChar == 2) {
var _local1 = _local2.char_female;
} else {
var _local1 = _local2.char_male;
}
_local1.setMask(null);
_local1.intT = arrTrapD[intL];
_local1._visible = true;
var _local3 = getTilePos(_local2, _local1.intT);
_local1._x = _local3.x;
_local1._y = _local3.y - 440;
var _local6 = new mx.transitions.Tween(objD, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 1, true);
var _local5 = new mx.transitions.Tween(objD._parent.dice_shad, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 1, true);
var _local4 = new mx.transitions.Tween(play_area, "_y", mx.transitions.easing.Regular.easeOut, play_area._y, play_area._y - 440, 3, true);
_local4.onMotionFinished = function () {
var _local2 = new mx.transitions.Tween(objD, "_alpha", mx.transitions.easing.Regular.easeOut, 0, 100, 1, true);
var _local1 = new mx.transitions.Tween(objD._parent.dice_shad, "_alpha", mx.transitions.easing.Regular.easeOut, 0, 100, 1, true);
nextLevel(intL - 1, 1);
objD.onRelease = rollDie;
};
}
function gameOver(boolSuccess) {
clearInterval(intTimerIntvl);
intScore = intScore + (((intMins * 60) + intSecs) * 10);
_parent.intScore = intScore;
mainMusic.stop();
gameMusic.stop();
if (boolSuccess) {
trace("You won the game!");
_parent.intSuccess = 1;
_parent.gotoAndStop("congrats");
} else {
trace("Game over!");
_parent.intSuccess = 0;
_parent.gotoAndStop("gameover");
}
}
function getTilePos(objLevel, intT) {
var _local1 = {x:0, y:0};
objLevel.route["tile_" + intT].localToGlobal(_local1);
_local1.y = _local1.y + (objLevel.route["tile_" + intT]._height / 2);
return(_local1);
}
function buildRoute() {
objR = new Object();
var _local3 = objC.intT;
var _local4 = _local3 + intD;
if (_local4 > intTT) {
_local4 = intTT;
boolNext = true;
}
objC.intT = objC.intT + intD;
objC.t = 0;
objC.s = 0.08 / (_local4 - _local3);
var _local1 = _local3;
while (_local1 <= _local4) {
var _local2 = getTilePos(objL, _local1);
if (_local1 == _local3) {
objR = new Path(_local2.x, _local2.y);
} else {
objR.lineTo(_local2.x, _local2.y);
}
_local1++;
}
objC.onEnterFrame = moveChar;
}
function enterLift() {
delete objD.onRelease;
boolOpen = true;
boolPause = true;
objL.lift_btns["btn_" + intL].gotoAndStop(2);
objC.intT = 1;
var _local2 = new mx.transitions.Tween(null, "_y", mx.transitions.easing.Regular.easeOut, 0, 0, 0.25, true);
_local2.onMotionFinished = function () {
objL.lift_2.door.gotoAndPlay("open");
var _local2 = new mx.transitions.Tween(null, "_y", mx.transitions.easing.Regular.easeOut, 0, 0, 1, true);
_local2.onMotionFinished = function () {
objR = new Path(objC._x, objC._y);
var _local1 = getTilePos(objL, 99);
objR.lineTo(_local1.x, _local1.y);
objC.setMask(objL.lift_mask_2);
objC.t = 0;
objC.s = 0.03;
var _local2 = new mx.transitions.Tween(null, "_y", mx.transitions.easing.Regular.easeOut, 0, 0, 1.2, true);
_local2.onMotionFinished = function () {
objL.lift_2.door.gotoAndPlay("close");
if (intL == 5) {
var _local1 = new mx.transitions.Tween(null, "_y", mx.transitions.easing.Regular.easeOut, 0, 0, 3, true);
_local1.onMotionFinished = function () {
gameOver(true);
};
} else {
var _local1 = new mx.transitions.Tween(null, "_y", mx.transitions.easing.Regular.easeOut, 0, 0, 1, true);
_local1.onMotionFinished = function () {
ascendLevel(0);
};
}
};
};
};
}
function exitLift() {
objC.intT = 0;
delete objD.onRelease;
playSound("lift_bell");
objC.setMask(objL.lift_mask_1);
objC.inner.gotoAndStop(1);
var _local1 = getTilePos(objL, 0);
objC._x = _local1.x;
objC._y = _local1.y;
var _local2 = new mx.transitions.Tween(null, "_y", mx.transitions.easing.Regular.easeOut, 0, 0, 0.5, true);
_local2.onMotionFinished = function () {
objL.lift_1.door.gotoAndPlay("open");
var _local2 = new mx.transitions.Tween(null, "_y", mx.transitions.easing.Regular.easeOut, 0, 0, 1, true);
_local2.onMotionFinished = function () {
objR = new Path(objC._x, objC._y);
var _local1 = getTilePos(objL, 1);
objR.lineTo(_local1.x, _local1.y);
objC.t = 0;
objC.s = 0.03;
objC.intT = 1;
objC.onEnterFrame = moveChar;
var _local2 = new mx.transitions.Tween(null, "_y", mx.transitions.easing.Regular.easeOut, 0, 0, 1, true);
_local2.onMotionFinished = function () {
objC.intT = 1;
objC.setMask(null);
objL.lift_1.door.gotoAndPlay("close");
freeDie();
};
};
};
}
function openTrap() {
objTD.gotoAndPlay("open");
playSound("trapdoor");
objC.setMask(objL.trap_mask);
var _local3 = new mx.transitions.Tween(null, "_y", mx.transitions.easing.Regular.easeOut, 0, 0, 1, true);
_local3.onMotionFinished = function () {
var _local2 = new mx.transitions.Tween(objC, "_y", mx.transitions.easing.Regular.easeOut, objC._y, objC._y - 30, 0.25, true);
_local2.onMotionFinished = function () {
playSound("fall");
objC.inner.shad._visible = false;
var _local1 = new mx.transitions.Tween(objC, "_y", mx.transitions.easing.Strong.easeOut, objC._y, objC._y + 300, 1, true);
_local1.onMotionFinished = function () {
playSound("trapdoor");
objTD.gotoAndPlay("close");
objC.setMask(null);
descendLevel();
};
};
};
}
function climbLadder() {
objC._visible = false;
objL.ladder.char.gotoAndStop(intChar);
objL.ladder.gotoAndPlay(2);
var _local1 = new mx.transitions.Tween(null, "_y", mx.transitions.easing.Regular.easeOut, 0, 0, 2, true);
_local1.onMotionFinished = function () {
ascendLevel(1);
};
}
function moveChar() {
this.t = this.t + this.s;
if (this.t > 1) {
this.inner.gotoAndStop(1);
if (boolNext) {
if (!boolOpen) {
enterLift();
}
} else {
intDbg = 1;
objD.arrow._visible = true;
objD.arrow.gotoAndPlay(1);
if (arrLadd[intL] == this.intT) {
this.inner.gotoAndStop(1);
climbLadder();
} else if (arrTrap[intL] == this.intT) {
this.inner.gotoAndStop(1);
openTrap();
} else if (this.intT > 0) {
bonusRound(arrL[intL][this.intT]);
objD.onRelease = rollDie;
}
delete this.onEnterFrame;
}
} else {
this.inner.play();
this.t = this.t + this.s;
}
objR.traverse(this, this.t, true, true, this.s);
}
function rollDie(intDD) {
if (boolPause == true) {
return(false);
}
playSound("dice_flick");
objD.arrow._visible = false;
delete objD.onRelease;
var _local1 = new mx.transitions.Tween(objD, "_y", mx.transitions.easing.Regular.easeOut, intDY, -200, 0.5, true);
var _local3 = new mx.transitions.Tween(objD._parent.dice_shad, "_xscale", mx.transitions.easing.Regular.easeOut, 100, 20, 1, true);
var _local2 = new mx.transitions.Tween(objD._parent.dice_shad, "_yscale", mx.transitions.easing.Regular.easeOut, 100, 20, 1, true);
if (typeof(intDD) == "undefined") {
intD = randNum(1, 6);
} else {
intD = Number(intDD);
}
_local1.onMotionFinished = function () {
objD.gotoAndStop(intD);
playSound("dice_bounce");
var _local1 = new mx.transitions.Tween(objD, "_y", mx.transitions.easing.Bounce.easeOut, objD._y, intDY, 1, true);
var _local3 = new mx.transitions.Tween(objD._parent.dice_shad, "_xscale", mx.transitions.easing.Bounce.easeOut, 20, 100, 1, true);
var _local2 = new mx.transitions.Tween(objD._parent.dice_shad, "_yscale", mx.transitions.easing.Bounce.easeOut, 20, 100, 1, true);
_local1.onMotionFinished = function () {
buildRoute();
};
};
}
function freeDie() {
var _local2 = new mx.transitions.Tween(objD, "_alpha", mx.transitions.easing.Regular.easeOut, 0, 100, 1, true);
var _local1 = new mx.transitions.Tween(objD._parent.dice_shad, "_alpha", mx.transitions.easing.Regular.easeOut, 0, 100, 1, true);
_local1.onMotionFinished = function () {
boolPause = false;
boolOpen = false;
boolNext = false;
objD.onRelease = rollDie;
};
}
function bonusRound(strB) {
switch (strB) {
case "q" :
startBonus("quiz");
break;
case "l" :
startBonus("ladder");
break;
case "f" :
startBonus("fire");
break;
case "b" :
startBonus("briefcase");
break;
}
}
function startBonus(strB) {
if (strB != "quiz") {
fadeMain();
} else {
gameMusic = new Sound(music_mc);
}
objD.arrow._visible = false;
boolPause = true;
bonus_mc._x = 18;
bonus_mc._y = 20;
bonus_mc._visible = true;
bonus_mc.gotoAndStop(strB);
bonus_mc.game.gotoAndPlay(2);
}
function endBonus(intPoints) {
var _local4 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 1.5, true);
_local4.onMotionFinished = function () {
var _local3 = new mx.transitions.Tween(bonus_mc, "_y", mx.transitions.easing.Regular.easeOut, bonus_mc.game._y, -550, 0.5, true);
_local3.onMotionFinished = function () {
boolPause = false;
objD.arrow._visible = true;
fadeMusic();
fadeInMain();
if ((intScore + intPoints) > 0) {
if (intPoints > 0) {
points_mc.points_txt.text = "+" + intPoints;
} else {
points_mc.points_txt.text = intPoints;
}
points_mc._alpha = 100;
points_mc._visible = true;
var _local2 = new mx.transitions.Tween(points_mc, "_x", mx.transitions.easing.Regular.easeIn, 800, 168, 0.7, true);
_local2.onMotionFinished = function () {
var _local2 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 100, 1, true);
_local2.onMotionFinished = function () {
var _local1 = new mx.transitions.Tween(points_mc, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 0.5, true);
};
if ((intScore + intPoints) > 0) {
intScore = intScore + intPoints;
} else {
intPoints = intScore;
}
};
}
};
};
}
function randNum(intLow, intHigh) {
return(Math.round(Math.random() * (intHigh - intLow)) + intLow);
}
function playSound(strName) {
var _local2 = new Sound(_root);
_local2.attachSound(strName);
_local2.start();
}
function playMain(strName) {
mainMusic = new Sound(music_main_mc);
clearInterval(intMainMusIntvl);
intMainMusVol = 50;
mainMusic.attachSound(strName);
mainMusic.setVolume(intMainMusVol);
mainMusic.start(0, 99);
}
function fadeMain() {
clearInterval(intMainMusIntvl);
intMainMusIntvl = setInterval(fadeMainOut, 100);
}
function fadeInMain() {
clearInterval(intMainMusIntvl);
intMainMusIntvl = setInterval(fadeMainIn, 100);
}
function fadeMainOut() {
if (intMainMusVol <= 0) {
mainMusic.setVolume(0);
clearInterval(intMainMusIntvl);
return(false);
}
intMainMusVol = intMainMusVol - 10;
mainMusic.setVolume(intMainMusVol);
}
function fadeMainIn() {
if (intMainMusVol >= 50) {
mainMusic.setVolume(50);
clearInterval(intMainMusIntvl);
return(false);
}
intMainMusVol = intMainMusVol + 10;
mainMusic.setVolume(intMainMusVol);
}
function playMusic(strName) {
gameMusic = new Sound(music_mc);
clearInterval(intMusIntvl);
if (strName == "music_briefcase") {
intMusVol = 30;
} else if (strName == "music_fireboss") {
intMusVol = 70;
} else {
intMusVol = 60;
}
gameMusic.attachSound(strName);
gameMusic.setVolume(intMusVol);
gameMusic.start(0, 99);
}
function stopMusic() {
gameMusic.stop();
}
function fadeMusic() {
intMusIntvl = setInterval(fadeMusicOut, 100);
}
function fadeMusicOut() {
if (intMusVol <= 0) {
gameMusic.stop();
clearInterval(intMusIntvl);
return(false);
}
intMusVol = intMusVol - 10;
gameMusic.setVolume(intMusVol);
}
var intScore = 0;
var intScoreT = 0;
var intL = 0;
var objL;
var intChar = _parent.intChar;
var objC;
var intCS = 0.012;
var objR = new Object();
var objD = die_mc;
var intTD = 0;
var intTDD = 0;
var objTD;
var intLDD = 0;
var mainMusic = new Sound();
var gameMusic = new Sound();
var intD = 0;
var intDY = objD._y;
var arrTT;
var intTT = 0;
var boolNext = false;
var boolOpen = false;
var boolStart = false;
var intMins = 3;
var intSecs = 0;
var strMins = "";
var strSecs = "";
var strTimer = (("0" + intMins) + ":00");
var intTimerIntvl = 0;
var boolPause = false;
var intScore = 0;
var intScoreT = intScore;
var arrQuiz = [];
var intQuiz = 0;
bonus_mc._visible = false;
bonus_mc.gotoAndStop(1);
var intMusVol = 100;
var intMainMusVol = 100;
var intMusIntvl = 0;
var intMainMusIntvl = 0;
var intDbg = 1;
var arrL = [];
arrL[1] = [null, "d", "q", "l", "b", "q", "d", "q", "d", "b", "l", "q", "q", "q", "d", "q", "U", "q", "l", "q", "", ""];
arrL[2] = [null, "d", "q", "f", "d", "T", "l", "f", "b", "d", "q", "d", "l", "U", "q", "b", "q", "d", "", "", "", ""];
arrL[3] = [null, "d", "f", "d", "b", "l", "b", "q", "f", "q", "d", "q", "T", "q", "l", "d", "f", "U", "q", "f", "q", "d"];
arrL[4] = [null, "d", "q", "q", "U", "f", "d", "l", "d", "T", "q", "f", "l", "q", "d", "", "", "", "", "", "", ""];
arrL[5] = [null, "d", "q", "d", "q", "b", "l", "f", "q", "d", "q", "T", "q", "d", "q", "f", "d", "", "", "", "", ""];
var arrTrap = [null, 0, 5, 12, 9, 11];
var arrTrapD = [null, 0, 14, 9, 10, 6];
var arrLadd = [null, 16, 13, 17, 4, null];
var arrLaddD = [null, 4, 9, 5, 13, null];
points_mc._visible = false;
Path = function () {
this.init.apply(this, arguments);
};
Path.prototype.init = function (start_x, start_y) {
this._segments = [];
this._length = 0;
if (arguments.length) {
this.moveTo(start_x, start_y);
} else {
this.moveTo(0, 0);
}
};
Path.prototype.curveToAccuracy = 10;
Path.prototype.clear = function () {
this.init(0, 0);
};
Path.prototype.moveTo = function (start_x, start_y) {
this._position = {_x:start_x, _y:start_y};
return(this);
};
Path.prototype.lineTo = function (end_x, end_y) {
var _local3 = end_x - this._position._x;
var _local2 = end_y - this._position._y;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
this._segments[this._segments.length] = {d:_local4, start:this._position, end:{_x:end_x, _y:end_y}, type:"L"};
this._length = this._length + _local4;
this._position = {_x:end_x, _y:end_y};
return(this);
};
Path.prototype.circleTo = (Path.prototype.circleCWTo = function (end_x, end_y, arc, dir) {
if (dir == undefined) {
dir = "CW";
}
if (arc == undefined) {
arc = 0.5;
}
if (arc > 1) {
arc = 1;
} else if (arc <= 0) {
return(this.lineTo(end_x, end_y));
}
if (dir == "CCW") {
arc = 1 - arc;
}
var _local3 = {_x:(this._position._x + end_x) / 2, _y:(this._position._y + end_y) / 2};
var _local5 = end_x - this._position._x;
var _local4 = end_y - this._position._y;
var _local12 = Math.sqrt((_local5 * _local5) + (_local4 * _local4));
var _local8 = _local12 / 2;
var _local9 = _local8 / Math.tan(arc * Math.PI);
var _local11 = _local8 / Math.sin(arc * Math.PI);
var _local10 = Math.atan2(_local4, _local5) + (Math.PI/2);
_local3._x = _local3._x + (Math.cos(_local10) * _local9);
_local3._y = _local3._y + (Math.sin(_local10) * _local9);
var _local18 = Math.atan2(this._position._y - _local3._y, this._position._x - _local3._x);
var _local16 = Math.atan2(end_y - _local3._y, end_x - _local3._x);
if (dir == "CW") {
if (_local16 < _local18) {
_local16 = _local16 + (Math.PI*2);
}
} else if (_local18 < _local16) {
_local18 = _local18 + (Math.PI*2);
}
_local12 = _local11 * Math.abs(_local16 - _local18);
this._segments[this._segments.length] = {d:_local12, r:_local11, a1:_local18, a2:_local16, o:_local3, dir:dir, type:"C"};
this._length = this._length + _local12;
this._position = {_x:end_x, _y:end_y};
return(this);
});
Path.prototype.circleCCWTo = function (end_x, end_y, arc) {
return(this.circleTo.call(this, end_x, end_y, arc, "CCW"));
};
Path.prototype.curveTo = function (con_x, con_y, end_x, end_y) {
var _local3 = this.divideBezier(this._position._x, this._position._y, con_x, con_y, end_x, end_y);
this._segments[this._segments.length] = {d:_local3.d, start:this._position, con:{_x:con_x, _y:con_y}, end:{_x:end_x, _y:end_y}, segs:_local3, type:"B"};
this._length = this._length + _local3.d;
this._position = {_x:end_x, _y:end_y};
return(this);
};
Path.prototype.divideBezier = function (x1, y1, x2, y2, x3, y3) {
var _local2;
var _local15;
var _local14;
var _local12;
var _local11;
var _local9;
var _local8;
var _local7;
var _local6;
var _local29;
var _local13 = [];
var _local5 = {_x:x1, _y:y1};
var _local22 = x2 - x1;
var _local20 = y2 - y1;
var _local21 = x3 - x2;
var _local19 = y3 - y2;
var _local16 = Math.atan2;
var _local18 = Math.sqrt;
var _local17 = 0;
var _local36;
var _local3;
var _local10;
var _local30 = _local16(_local20, _local22);
var _local4 = 1;
while (_local4 < this.curveToAccuracy) {
_local2 = _local4 / this.curveToAccuracy;
_local15 = x1 + (_local22 * _local2);
_local12 = (x2 + (_local21 * _local2)) - _local15;
_local14 = y1 + (_local20 * _local2);
_local11 = (y2 + (_local19 * _local2)) - _local14;
_local7 = _local15 + (_local12 * _local2);
_local6 = _local14 + (_local11 * _local2);
_local9 = _local7 - _local5._x;
_local8 = _local6 - _local5._y;
_local29 = _local18((_local9 * _local9) + (_local8 * _local8));
_local17 = _local17 + _local29;
_local10 = _local16(_local11, _local12);
_local3 = _local10 - _local30;
if (_local3 > Math.PI) {
_local3 = _local3 - (Math.PI*2);
} else if (_local3 < -3.14159265358979) {
_local3 = _local3 + (Math.PI*2);
}
_local13[_local13.length] = {d:_local29, start:_local5, end:{_x:_local7, _y:_local6}, a:{base:_local30, d:_local3}};
_local30 = _local10;
_local5 = {_x:_local7, _y:_local6};
_local4++;
}
_local9 = x3 - _local5._x;
_local8 = y3 - _local5._y;
_local29 = _local18((_local9 * _local9) + (_local8 * _local8));
_local17 = _local17 + _local29;
_local10 = _local16(_local19, _local21);
_local13[_local13.length] = {d:_local29, start:_local5, end:{_x:x3, _y:y3}, a:{base:_local30, d:_local10 - _local30}};
_local13.d = _local17;
return(_local13);
};
Path.prototype.setInBezier = function (obj, t, s, orient) {
if (t < 0) {
t = 0;
} else if (t > 1) {
t = 1;
}
var _local6 = s.d * t;
var _local2;
var _local3 = 0;
var _local4 = s.length + 1;
var _local1 = 1;
while (_local1 < _local4) {
_local2 = s[_local1 - 1];
if ((_local1 == _local4) || ((_local3 + _local2.d) >= _local6)) {
break;
}
_local3 = _local3 + _local2.d;
_local1++;
}
t = (_local6 - _local3) / _local2.d;
var _local9 = _local2.end._x - _local2.start._x;
var _local8 = _local2.end._y - _local2.start._y;
obj._x = _local2.start._x + (_local9 * t);
obj._y = _local2.start._y + (_local8 * t);
if (orient) {
obj._rotation = ((_local2.a.base + (_local2.a.d * t)) * 180) / Math.PI;
}
};
Path.prototype.traverse = function (obj, t, orient, offset, s) {
if (t < 0) {
t = 0;
} else if (t > 1) {
t = 1;
}
var _local8 = this._length * t;
var _local3;
var _local4 = 0;
var _local5 = this._segments.length + 1;
var _local2 = 1;
while (_local2 < _local5) {
_local3 = this._segments[_local2 - 1];
if ((_local2 == _local5) || ((_local4 + _local3.d) >= _local8)) {
break;
}
_local4 = _local4 + _local3.d;
_local2++;
}
t2 = t;
t = (_local8 - _local4) / _local3.d;
switch (_local3.type) {
case "L" :
var _local10 = _local3.end._x - _local3.start._x;
var _local11 = _local3.end._y - _local3.start._y;
obj._x = _local3.start._x + (_local10 * t);
obj._y = _local3.start._y + (_local11 * t);
if (orient) {
if (_local11 > 0) {
if (_local10 < 0) {
obj.gotoAndStop("DOWN");
} else {
obj.gotoAndStop("RIGHT");
}
} else if (_local10 < 0) {
obj.gotoAndStop("LEFT");
} else {
obj.gotoAndStop("UP");
}
}
break;
case "C" :
var _local12 = _local3.a1;
var _local13 = _local3.a2;
var _local9 = _local12 + ((_local13 - _local12) * t);
obj._x = _local3.o._x + (Math.cos(_local9) * _local3.r);
obj._y = _local3.o._y + (Math.sin(_local9) * _local3.r);
if (orient) {
obj._rotation = ((_local3.dir == "CW") ? (((_local9 * 180) / Math.PI) + 90) : (((_local9 * 180) / Math.PI) - 90));
}
break;
case "B" :
this.setInBezier(obj, t, _local3.segs, orient);
}
return(this);
};
Path.prototype.mcCircleTo = function (cen_x, cen_y, a1, a2, r) {
var _local5 = Math.cos;
var _local6 = Math.sin;
var _local14 = Math.abs(a2 - a1);
var _local13 = Math.floor(_local14 / (Math.PI/4)) + 1;
var _local11 = _local14 / _local13;
var _local12 = _local11 / 2;
var _local8 = r / _local5(_local12);
this.moveTo(cen_x + (_local5(a1) * r), cen_y + (_local6(a1) * r));
var _local3 = 0;
while (_local3 < _local13) {
a2 = a1 + _local12;
a1 = a1 + _local11;
this.curveTo(cen_x + (_local5(a2) * _local8), cen_y + (_local6(a2) * _local8), cen_x + (_local5(a1) * r), cen_y + (_local6(a1) * r));
_local3++;
}
return(this);
};
Path.prototype.draw = function (mc) {
var _local3 = this._segments;
var _local5 = _local3.length;
var _local2 = 0;
while (_local2 < _local5) {
switch (_local3[_local2].type) {
case "L" :
mc.moveTo(_local3[_local2].start._x, _local3[_local2].start._y);
mc.lineTo(_local3[_local2].end._x, _local3[_local2].end._y);
break;
case "C" :
if (_local3[_local2].dir == "CW") {
this.mcCircleTo.call(mc, _local3[_local2].o._x, _local3[_local2].o._y, _local3[_local2].a1, _local3[_local2].a2, _local3[_local2].r);
} else {
this.mcCircleTo.call(mc, _local3[_local2].o._x, _local3[_local2].o._y, _local3[_local2].a2, _local3[_local2].a1, _local3[_local2].r);
}
break;
case "B" :
mc.moveTo(_local3[_local2].start._x, _local3[_local2].start._y);
mc.curveTo(_local3[_local2].con._x, _local3[_local2].con._y, _local3[_local2].end._x, _local3[_local2].end._y);
}
_local2++;
}
return(this);
};
var objQuestions = new Object();
objQuestions[0] = new Object();
objQuestions[0].q = "In England and Wales, large shops (over 280 square feet) are not allowed to open on Christmas Day.";
objQuestions[0].o = ["True", "False"];
objQuestions[0].a = 0;
objQuestions[1] = new Object();
objQuestions[1].q = "Employees who have been dismissed for gross misconduct have no legal right to minimum notice.";
objQuestions[1].o = ["True", "False"];
objQuestions[1].a = 0;
objQuestions[2] = new Object();
objQuestions[2].q = "Employers don't have the right to monitor their employees' emails.";
objQuestions[2].o = ["True", "False"];
objQuestions[2].a = 1;
objQuestions[3] = new Object();
objQuestions[3].q = "All employers have a statutory duty to take care of the health and safety of all their employees.";
objQuestions[3].o = ["True", "False"];
objQuestions[3].a = 0;
objQuestions[4] = new Object();
objQuestions[4].q = "Your employer is required by law to give you time off work on bank holidays and public holidays.";
objQuestions[4].o = ["True", "False"];
objQuestions[4].a = 1;
objQuestions[5] = new Object();
objQuestions[5].q = "If you have been out of the workplace for a long time for whatever reason, there are many schemes available to help you get back into work.";
objQuestions[5].o = ["True", "False"];
objQuestions[5].a = 0;
objQuestions[6] = new Object();
objQuestions[6].q = "Almost all employees have a statutory right to take paid time off work for which of the following?";
objQuestions[6].o = ["To follow their favourite football team", "To have a day out at the races", "To have a baby", "To get the weekly shopping in"];
objQuestions[6].a = 2;
objQuestions[7] = new Object();
objQuestions[7].q = "TUPE stands for which of the following?";
objQuestions[7].o = ["Total Undertakings Prevent Employment", "Transfer Under Previous Employer", "Total Understanding Protects Employees", "Transfer of Undertakings Protection of Employment"];
objQuestions[7].a = 3;
objQuestions[8] = new Object();
objQuestions[8].q = "OTE normally stands for which of the following?";
objQuestions[8].o = ["On Target Employers", "On Target Earnings", "On The Edge", "Only The Executives"];
objQuestions[8].a = 1;
objQuestions[9] = new Object();
objQuestions[9].q = "What does the term 'moonlighting' usually mean?";
objQuestions[9].o = ["Having a second job on top of your normal full-time job", "Working really late at night", "The process of turning into a werewolf", "Working at night during a power cut"];
objQuestions[9].a = 0;
objQuestions[10] = new Object();
objQuestions[10].q = "www.sector1.net is a great place to find which of the following?";
objQuestions[10].o = ["Cars", "Jobs", "Holidays", "Houses"];
objQuestions[10].a = 1;
objQuestions[11] = new Object();
objQuestions[11].q = "What does HR stand for?";
objQuestions[11].o = ["Higher Rates", "Human Retail", "Human Resources", "Happy Retailers"];
objQuestions[11].a = 2;
objQuestions[12] = new Object();
objQuestions[12].q = "What does salary 'pa' normally stand for?";
objQuestions[12].o = ["per annum", "poor allowance", "per activity", "promotion allowed"];
objQuestions[12].a = 0;
objQuestions[13] = new Object();
objQuestions[13].q = "What does an 'f/t' job normally stand for?";
objQuestions[13].o = ["full tea breaks", "female temps", "fewer tasks", "full time"];
objQuestions[13].a = 3;
objQuestions[14] = new Object();
objQuestions[14].q = "What does a 'p/t' job normally stand for?";
objQuestions[14].o = ["poor terms", "part time", "plenty of tea breaks", "priority task"];
objQuestions[14].a = 1;
objQuestions[15] = new Object();
objQuestions[15].q = "How long should your CV normally be?";
objQuestions[15].o = ["As many pages as you can write", "At least five pages", "One or two pages", "A couple of sentences"];
objQuestions[15].a = 2;
objQuestions[16] = new Object();
objQuestions[16].q = "Where is a great place to get advice on jobs and careers?";
objQuestions[16].o = ["Your local post office", "The doctor's surgery", "Your local pub", "www.sector1.net"];
objQuestions[16].a = 3;
objQuestions[17] = new Object();
objQuestions[17].q = "What does CV stand for?";
objQuestions[17].o = ["criminal vetting", "current value", "curriculum vitae", "company vision"];
objQuestions[17].a = 2;
objQuestions[18] = new Object();
objQuestions[18].q = "When attending a job interview, it would normally be best to wear which of the following?";
objQuestions[18].o = ["A scuba diving suit", "A business suit", "A clown costume", "T-shirt, shorts and sandals"];
objQuestions[18].a = 1;
objQuestions[19] = new Object();
objQuestions[19].q = "Which of the following would be the best preparation for a job interview?";
objQuestions[19].o = ["Finding out as much as you can about the company", "Stalking the company MD", "Blocking the interview out of your mind", "Worrying about the interview"];
objQuestions[19].a = 0;
objQuestions[20] = new Object();
objQuestions[20].q = "In most companies the job title MD stands for?";
objQuestions[20].o = ["Money Dealer", "Managing Donuts", "Money Director", "Managing Director"];
objQuestions[20].a = 3;
objQuestions[21] = new Object();
objQuestions[21].q = "As well as jobs and careers, www.sector1.net is a great place to find information on improving your skills.";
objQuestions[21].o = ["True", "False"];
objQuestions[21].a = 0;
objQuestions[22] = new Object();
objQuestions[22].q = "As well as jobs and careers, www.sector1.net is a great place to find information on returning to work.";
objQuestions[22].o = ["True", "False"];
objQuestions[22].a = 0;
objQuestions[23] = new Object();
objQuestions[23].q = "As well as jobs, www.sector1.net is a great place to find information on improving your CV.";
objQuestions[23].o = ["True", "False"];
objQuestions[23].a = 0;
objQuestions[24] = new Object();
objQuestions[24].q = "As well as jobs, www.sector1.net is a great place to find information on improving your interview skills.";
objQuestions[24].o = ["True", "False"];
objQuestions[24].a = 0;
objQuestions[25] = new Object();
objQuestions[25].q = "An employer can penalise an employee for joining a Trade Union.";
objQuestions[25].o = ["True", "False"];
objQuestions[25].a = 1;
objQuestions[26] = new Object();
objQuestions[26].q = "Employers can treat part-time workers less favourably than full-time workers.";
objQuestions[26].o = ["True", "False"];
objQuestions[26].a = 1;
objQuestions[27] = new Object();
objQuestions[27].q = "As well as jobs and careers, www.sector1.net is a great place to find information on cookery.";
objQuestions[27].o = ["True", "False"];
objQuestions[27].a = 1;
objQuestions[28] = new Object();
objQuestions[28].q = "As well as jobs and careers, www.sector1.net is a great place to find information on sport.";
objQuestions[28].o = ["True", "False"];
objQuestions[28].a = 1;
objQuestions[29] = new Object();
objQuestions[29].q = "As well as jobs and careers, www.sector1.net is a great place to find information on haberdashery.";
objQuestions[29].o = ["True", "False"];
objQuestions[29].a = 1;
objQuestions[30] = new Object();
objQuestions[30].q = "As well as jobs and careers, www.sector1.net is a great place to find information on working for yourself.";
objQuestions[30].o = ["True", "False"];
objQuestions[30].a = 0;
objQuestions[31] = new Object();
objQuestions[31].q = "As well as jobs and careers, www.sector1.net is a great place to find information about car sharing for your journey into work.";
objQuestions[31].o = ["True", "False"];
objQuestions[31].a = 0;
objQuestions[32] = new Object();
objQuestions[32].q = "It is good practice to have one version of your CV and send it out for every job you apply for without changing it.";
objQuestions[32].o = ["True", "False"];
objQuestions[32].a = 1;
objQuestions[33] = new Object();
objQuestions[33].q = "The local government sector employs over two million people in the UK.";
objQuestions[33].o = ["True", "False"];
objQuestions[33].a = 0;
objQuestions[34] = new Object();
objQuestions[34].q = "You can sign up for job alerts by email on www.sector1.net.";
objQuestions[34].o = ["True", "False"];
objQuestions[34].a = 0;
objQuestions[36] = new Object();
objQuestions[36].q = "A standard home insurance policy will always cover you for working from home.";
objQuestions[36].o = ["True", "False"];
objQuestions[36].a = 1;
objQuestions[37] = new Object();
objQuestions[37].q = "An employer can change an employee's contract of employment without their consent.";
objQuestions[37].o = ["True", "False"];
objQuestions[37].a = 1;
objQuestions[38] = new Object();
objQuestions[38].q = "More than 130,000 employers in the UK run Apprenticeship schemes.";
objQuestions[38].o = ["True", "False"];
objQuestions[38].a = 0;
objQuestions[39] = new Object();
objQuestions[39].q = "Over 10 million people in the UK search for jobs online.";
objQuestions[39].o = ["True", "False"];
objQuestions[39].a = 0;
objQuestions[40] = new Object();
objQuestions[40].q = "The UK National Minimum Wage is exactly the same whatever age you are.";
objQuestions[40].o = ["True", "False"];
objQuestions[40].a = 1;
objQuestions[41] = new Object();
objQuestions[41].q = "Approximately 36 million work days per year are lost due to work-related injuries and illnesses in the UK.";
objQuestions[41].o = ["True", "False"];
objQuestions[41].a = 0;
objQuestions[42] = new Object();
objQuestions[42].q = "Employers can take recruitment decisions based on which of the following?";
objQuestions[42].o = ["capability", "race", "religion", "gender"];
objQuestions[42].a = 0;
objQuestions[43] = new Object();
objQuestions[43].q = "If somebody is discussing the Union in the workplace, they would probably be referring to which of the following?";
objQuestions[43].o = ["The local pub", "A Trade Union", "Two employees getting married", "A flag"];
objQuestions[43].a = 1;
objQuestions[45] = new Object();
objQuestions[45].q = "Paid leave for a man following the birth of a baby is called\u2026?";
objQuestions[45].o = ["Maternity leave", "Eternity leave", "Fraternity leave", "Paternity leave"];
objQuestions[45].a = 3;
objQuestions[46] = new Object();
objQuestions[46].q = "www.sector1.net has a great range of jobs for\u2026?";
objQuestions[46].o = ["People of all ages", "Young people only", "Only people in their 30's", "Only people in their 40's"];
objQuestions[46].a = 0;
objQuestions[47] = new Object();
objQuestions[47].q = "www.sector1.net has jobs in which of the following sectors?";
objQuestions[47].o = ["Only public sector", "All sectors", "Only the energy sector", "Only the manufacturing sector"];
objQuestions[47].a = 1;
objQuestions[48] = new Object();
objQuestions[48].q = "An employer can dismiss an employee for becoming pregnant if they\u2026?";
objQuestions[48].o = ["Are not married", "Become too big to fit in their chair", "An employer can't dismiss an employee for becoming pregnant", "Talk about changing nappies too much"];
objQuestions[48].a = 2;
objQuestions[49] = new Object();
objQuestions[49].q = "The best option if you haven't got the qualifications for a career you want is to\u2026?";
objQuestions[49].o = ["Lie on your CV", "Give up and choose a different career", "Impersonate someone who has got the qualifications", "Look on www.sector1.net for advice on gaining extra qualifications?"];
objQuestions[49].a = 3;
objQuestions[50] = new Object();
objQuestions[50].q = "It's ok to lie on your CV if\u2026?";
objQuestions[50].o = ["It's never advisable to lie on your CV", "It's the first time you've done it", "It's only a small lie", "Your friend told you to do it"];
objQuestions[50].a = 0;
objQuestions[51] = new Object();
objQuestions[51].q = "The time when a person gives up working and collects their pension is referred to as\u2026?";
objQuestions[51].o = ["Being put out to grass", "Retirement", "Worklessness", "God's waiting room"];
objQuestions[51].a = 1;
objQuestions[52] = new Object();
objQuestions[52].q = "Which of the following objects would you NOT expect to find in a typical office?";
objQuestions[52].o = ["A desk", "A chair", "A hot tub", "A computer"];
objQuestions[52].a = 2;
objQuestions[53] = new Object();
objQuestions[53].q = "Which of the following must be clearly marked in the workplace?";
objQuestions[53].o = ["The canteen", "The water cooler", "The stationary cupboard", "The fire exit"];
objQuestions[53].a = 3;
objQuestions[54] = new Object();
objQuestions[54].q = "Which of the following would you normally expect to see on a desk in the workplace?";
objQuestions[54].o = ["A mouse", "A hamster", "A guinea pig", "A gerbil"];
objQuestions[54].a = 0;
objQuestions[55] = new Object();
objQuestions[55].q = "An Employment Tribunal can ask to see records of appointment decisions up to how long after an appointment was made?";
objQuestions[55].o = ["6 days", "6 months", "6 years", "6 decades"];
objQuestions[55].a = 1;
objQuestions[56] = new Object();
objQuestions[56].q = "What is the maximum award that an Employment Tribunal can make against an employer if a case of discrimination is proved?";
objQuestions[56].o = ["\u00A310,000", "\u00A3100,000", "\u00A31,000,000", "There is no limit"];
objQuestions[56].a = 3;
objQuestions[57] = new Object();
objQuestions[57].q = "What sort of 'pools' can jobseekers register their details in on www.sector1.net?";
objQuestions[57].o = ["Swimming pools", "Football pools", "Rock pools", "Talent pools"];
objQuestions[57].a = 3;
objQuestions[58] = new Object();
objQuestions[58].q = "Which of the following information would you NOT normally include in your CV?";
objQuestions[58].o = ["Contact information", "Key skills and competencies", "Your favourite TV programmes", "Education and qualifications"];
objQuestions[58].a = 2;
objQuestions[59] = new Object();
objQuestions[59].q = "Which of the following is unlikely to be included as a selection test in the recruitment process?";
objQuestions[59].o = ["A taste test", "A verbal reasoning test", "A data sufficiency test", "A personality test"];
objQuestions[59].a = 0;
objQuestions[60] = new Object();
objQuestions[60].q = "Which of the following is unlikely to help you prepare for employer selection tests?";
objQuestions[60].o = ["Crossword puzzles", "Juggling", "Sudoku puzzles", "Basic maths problems"];
objQuestions[60].a = 1;
objQuestions[61] = new Object();
objQuestions[61].q = "You can receive job alerts on www.sector1.net by\u2026?";
objQuestions[61].o = ["Carrier pigeon", "Smoke signal", "Text message", "Telepathy"];
objQuestions[61].a = 2;
objQuestions[62] = new Object();
objQuestions[62].q = "Approximately how much of the UK's workforce is employed in the retail sector?";
objQuestions[62].o = ["2%", "5%", "11%", "17%"];
objQuestions[62].a = 2;
objQuestions[63] = new Object();
objQuestions[63].q = "What sort of 'basket' are you likely to find on a jobs website like www.sector1.net?";
objQuestions[63].o = ["Washing basket", "Shopping basket", "Basket case", "Job basket"];
objQuestions[63].a = 3;
objQuestions[64] = new Object();
objQuestions[64].q = "Any serious illnesses, diseases or dangerous incidents in the workplace should be reported in the\u2026?";
objQuestions[64].o = ["The accident book", "The phone book", "The good book", "The Captain's log"];
objQuestions[64].a = 0;
objQuestions[65] = new Object();
objQuestions[65].q = "In the workplace, 'whistle-blowing' generally refers to\u2026?";
objQuestions[65].o = ["Colleagues who whistle annoyingly", "Publicly disclosing malpractice by an employer", "Boasting about a recent promotion", "Blowing a whistle at your desk"];
objQuestions[65].a = 1;
objQuestions[66] = new Object();
objQuestions[66].q = "When you find your dream job on www.sector1.net, your initial time with any new employer is normally known as the\u2026?";
objQuestions[66].o = ["Honeymoon period", "Initiation ceremony", "Induction period", "Standing start"];
objQuestions[66].a = 2;
objQuestions[67] = new Object();
objQuestions[67].q = "The standard money you receive for doing your job is called a\u2026?";
objQuestions[67].o = ["Celery", "Bonus", "Windfall", "Salary"];
objQuestions[67].a = 3;
objQuestions[68] = new Object();
objQuestions[68].q = "Someone who works for themselves is considered to be\u2026?";
objQuestions[68].o = ["Self-employed", "Self-made", "Self-destructing", "Self-aware"];
objQuestions[68].a = 0;
objQuestions[69] = new Object();
objQuestions[69].q = "Poor literacy and numeracy skills cost UK businesses around\u2026?";
objQuestions[69].o = ["\u00A34.1 billion per year", "\u00A34.8 billion per year", "\u00A32.5 billion per year", "\u00A36.3 billion per year"];
objQuestions[69].a = 1;
objQuestions[70] = new Object();
objQuestions[70].q = "Employees with poor skills can expect to earn around\u2026?";
objQuestions[70].o = ["2% less than average", "7% less than average", "11% less than average", "15% less than average"];
objQuestions[70].a = 2;
objQuestions[71] = new Object();
objQuestions[71].q = "Workplace regulations state that during office hours, temperature in workplace buildings must be\u2026?";
objQuestions[71].o = ["Freezing cold", "Red hot", "Reasonable", "Chilly"];
objQuestions[71].a = 2;
var objCorr;
var arrBrief = ["Chef's Hat", "Hard Hat", "Mobile Phone", "Glasses", "Set of Keys", "CD", "Media Player", "Sandwich", "Chocolate Bar", "Tie", "ID Card", "Newspaper", "CV", "Watch", "Book", "Pen", "Notepad", "Bank Notes"];
var intBrief = 0;
var intBriefI = 0;
var arrBriefO = [];
var intBriefO = 0;
var intBriefM = 0;
var strBriefM = "";
var intBSecs = 0;
var intBTimer = 0;
var intBWidth = 0;
var intBWidthT = 0;
var intBHeightT = 0;
var intBWidthL = 0;
var intBSpace = 0;
var intBStartX = 0;
MovieClip.prototype.positionItem = function () {
this._x = intBWidthL;
intBWidthL = intBWidthL + (this._width + intBSpace);
trace(intBSpace);
this._y = randNum(0, intBHeightT - this._height);
};
var objLGame;
var objLChar;
var intLCharS = 6;
var intLCharSC = 4;
var intLSecs = 30;
var intLSecsI = intLSecs;
var intLTimer = 0;
var arrLL = [];
var intLL = 0;
var arrLG = [];
var intLG = 0;
var arrLW = [];
var intLW = 0;
var arrLA = [];
var boolLPause = false;
var intLadder = 0;
MovieClip.prototype.checkColl = function () {
this.boolLadd = false;
this.boolStand = false;
var _local4 = this._x + this.intXS;
var _local3 = this._y + this.intYS;
if (_local4 < 0) {
this.intXS = 0;
} else if (_local4 > 490) {
this.intXS = 0;
}
var _local2 = 0;
while (_local2 < arrLL.length) {
if ((_local4 >= objLGame[arrLL[_local2]]._x) && (_local4 <= (objLGame[arrLL[_local2]]._x + objLGame[arrLL[_local2]]._width))) {
if ((_local3 >= (objLGame[arrLL[_local2]]._y + 14)) && (_local3 <= (objLGame[arrLL[_local2]]._y + objLGame[arrLL[_local2]]._height))) {
this.boolLadd = true;
if (((_local3 - objLGame[arrLL[_local2]]._y) < 18) && (Key.isDown(38))) {
this.intYS = 0;
}
}
}
_local2++;
}
_local2 = 0;
while (_local2 < arrLG.length) {
if ((_local3 >= objLGame[arrLG[_local2]]._y) && (_local3 <= (objLGame[arrLG[_local2]]._y + objLGame[arrLG[_local2]]._height))) {
if (!this.boolLadd) {
this.intYS = 0;
this.boolStand = true;
this._y = objLGame[arrLG[_local2]]._y;
}
}
_local2++;
}
_local2 = 0;
while (_local2 < arrLW.length) {
if ((_local4 >= objLGame[arrLW[_local2]]._x) && (_local4 <= (objLGame[arrLW[_local2]]._x + objLGame[arrLW[_local2]]._width))) {
if ((this._y >= objLGame[arrLW[_local2]]._y) && (this._y <= (objLGame[arrLW[_local2]]._y + objLGame[arrLW[_local2]]._height))) {
this.intXS = 0;
}
}
_local2++;
}
if ((!this.boolStand) && (!this.boolLadd)) {
this.intYS = 6;
}
if (this.hitTest(objLGame.door)) {
winLadder();
}
};
var intFire = 0;
var objFGame;
var arrFF = [];
var intFF = 0;
var intFIntvl = 0;
var objFCross;
var intFFire = 0;
var intFFireT = 0;
var intFFireR = 0;
var intFGT = 0;
var intFSecs = 30;
var intFTimer = 0;
var intFScore = 0;
var intFFail = 0;
var boolFBoss = false;
MovieClip.prototype.splatFireF = function () {
delete this.onEnterFrame;
if (this._xscale > 5) {
playSound("splat");
this.gotoAndStop(2);
if ((!this.objHit.char_l.boolHit) && (this.objHit.char_l.boolHittable)) {
if (checkFCollision(this, this.objHit.char_l)) {
this.objHit.char_l.boolHit = true;
this.objHit.char_l.killPerson();
}
}
if ((!this.objHit.char_r.boolHit) && (this.objHit.char_r.boolHittable)) {
if (checkFCollision(this, this.objHit.char_r)) {
this.objHit.char_r.boolHit = true;
this.objHit.char_r.killPerson();
}
}
}
var _local2 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Strong.easeOut, 100, 0, 1, true);
_local2.onMotionFinished = function () {
this.obj.removeMovieClip();
};
};
MovieClip.prototype.killPerson = function () {
if (this.intC == 1) {
playSound("woohoo");
intFScore++;
} else {
playSound("groan");
if (intFSecs >= 5) {
intFSecs = intFSecs - 5;
} else {
intFSecs = 0;
}
}
var _local2 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Strong.easeOut, 100, 0, 1, true);
_local2.onMotionFinished = function () {
this.obj._x = this.obj._x - this.obj.intD;
if (this.obj.intD < 0) {
this.obj._parent.boolL = false;
} else if (this.obj.intD > 0) {
this.obj._parent.boolR = false;
}
if (this.obj.intC == 1) {
boolFBoss = false;
}
};
};
Array.prototype.mixElements = function () {
var _local3 = this.length;
var _local5;
var _local2;
var _local4;
_local2 = 0;
while (_local2 < _local3) {
_local4 = this[_local2];
_local5 = random(_local3);
this[_local2] = this[_local5];
this[_local5] = _local4;
_local2++;
}
};
this.onEnterFrame = function () {
debug.text = objC.intT;
if (intScoreT < intScore) {
intScoreT = intScoreT + 10;
}
if (intScoreT > intScore) {
intScoreT = intScoreT - 10;
}
};
initGame();
Symbol 811 MovieClip Frame 200
stop();
Symbol 814 MovieClip Frame 200
stop();
Symbol 817 Button
on (release) {
_parent.intScoreSub = 0;
_parent.gotoAndStop("select");
}
Symbol 819 Button
on (release) {
if (_parent.intScoreSub == 1) {
_parent.gotoAndStop("leaderboard");
} else {
_parent.gotoAndStop("submit_score");
}
}
Symbol 821 Button
on (release) {
_parent.gotoAndStop("send_friend");
}
Symbol 823 Button
on (release) {
_parent.gotoAndStop("leaderboard");
}
Symbol 825 Button
on (release) {
if (_parent.intScoreSub == 1) {
_parent.gotoAndStop("leaderboard");
} else {
_parent.gotoAndStop("submit_score");
}
}
Symbol 826 MovieClip Frame 1
idcard.gotoAndStop(_parent.intChar);
points_txt.htmlText = ("You scored<br><font color=\"#ffffff\">" + _parent.intScore) + "</font> points";
Symbol 828 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 20
stop();
Symbol 829 MovieClip Frame 1
stop();
Symbol 829 MovieClip Frame 20
stop();
Symbol 836 MovieClip Frame 1
stop();
Symbol 837 MovieClip Frame 130
portrait_new.gotoAndStop(_parent._parent.intChar);
Symbol 837 MovieClip Frame 160
portraits.p_2.gotoAndPlay(2);
portraits.p_3.gotoAndPlay(3);
Symbol 837 MovieClip Frame 200
stop();
Symbol 840 MovieClip Frame 1
points_txt.htmlText = ("You scored <font color=\"#ffffff\">" + _parent.intScore) + "</font> points";
Symbol 850 Button
on (release) {
if (_parent.intSuccess == 1) {
_parent.gotoAndStop("congrats");
} else {
_parent.gotoAndStop("gameover");
}
}
Symbol 852 Button
on (release) {
this.boolSubmit = true;
strUserName = user_name.text;
strUserEmail = user_email.text;
intUserIndexOfAt = strUserEmail.indexOf("@");
intUserLastIndexOfDot = strUserEmail.lastIndexOf(".");
if (((!strUserEmail) || (intUserIndexOfAt == -1)) || (intUserLastIndexOfDot == -1)) {
this.boolSubmit = false;
error_text.text = "Your email address is not valid";
} else if (!strUserName) {
this.boolSubmit = false;
error_text.text = "Please enter your name";
}
if (this.boolSubmit != false) {
_parent.intScoreSub = 1;
error_text.text = "Submitting score, please wait...";
_root.objRemote.setHighScores(strUserName, strUserEmail, _root.intScore);
}
}
Symbol 873 MovieClip Frame 1
function showHighScores(arrScores) {
i = 0;
while (i <= (arrScores.length - 1)) {
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;
_local2.pos.text = i + 1;
_local2.playerName.text = arrScores[i].name;
_local2.score.text = arrScores[i].score;
_local2.date.text = arrScores[i].date;
nextScorePos = this.scoreList_mc.scoreLine_mc._height;
i++;
}
scrolling();
}
this.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 + 1;
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();
Symbol 886 Button
on (release) {
function sendMail() {
trace("Send");
if (j >= (arrSend.length - 1)) {
_root.sendfriend.friend_name_1.text = "";
_root.sendfriend.friend_email_1.text = "";
_root.sendfriend.friend_name_2.text = "";
_root.sendfriend.friend_email_2.text = "";
_root.sendfriend.friend_name_3.text = "";
_root.sendfriend.friend_email_3.text = "";
_root.sendfriend.error_text.text = "Email sent! Would you like to send another?";
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);
arrDupe.push(strFriendEmail);
j++;
}
if (boolSending == true) {
return(false);
}
var intSend = 0;
var j = 0;
var k = 0;
this.boolSubmit = true;
var arrSend = [];
var arrDupe = [];
strUserName = user_name.text;
strUserEmail = user_email.text;
intUserIndexOfAt = strUserEmail.indexOf("@");
intUserLastIndexOfDot = strUserEmail.lastIndexOf(".");
if (!strUserName) {
this.boolSubmit = false;
error_text.text = "Please enter your name";
} else if (((!strUserEmail) || (intUserIndexOfAt == -1)) || (intUserLastIndexOfDot == -1)) {
this.boolSubmit = false;
error_text.text = "Your email address is not valid";
} else {
i = 1;
while (i <= 3) {
strFriendName = this["friend_name_" + i].text;
strFriendEmail = this["friend_email_" + i].text;
intFriendIndexOfAt = strFriendEmail.indexOf("@");
intFriendLastIndexOfDot = strFriendEmail.lastIndexOf(".");
if ((strFriendName != "") || (strFriendEmail != "")) {
intSend++;
if (!strFriendName) {
this.boolSubmit = false;
error_text.text = ("Friend " + i) + " has a missing name";
break;
}
if (((!strFriendEmail) || (intFriendIndexOfAt == -1)) || (intFriendLastIndexOfDot == -1)) {
this.boolSubmit = false;
error_text.text = ("Friend " + i) + " has an invalid email address";
break;
}
arrSend.push([strFriendName, strFriendEmail]);
}
i++;
}
if (intSend == 0) {
this.boolSubmit = false;
error_text.text = "Please enter your friends' details";
}
if (this.boolSubmit != false) {
btn_submit._visible = false;
error_text.text = "Sending, please wait...";
k = setInterval(sendMail, 400);
boolSending = true;
}
}
}
Symbol 889 Button
on (release) {
_parent.intChar = 1;
_parent.gotoAndStop("game");
}
Symbol 890 Button
on (release) {
_parent.intChar = 2;
_parent.gotoAndStop("game");
}