Frame 1
function MovieClip() {
}
function XMLSocket() {
}
function AsBroadcaster() {
}
function Color(target) {
this.target = target;
ASSetPropFlags(this, null, 7);
}
function NetConnection() {
this.isConnected = false;
ASSetPropFlags(this, null, 7);
ASnative(2100, 200) /* [NetConnection] NetConnection inner function - primitive object killer */(this);
}
function NetStream(connection) {
function OnCreate(nStream) {
this.nStream = nStream;
}
ASnative(2101, 200) /* [NetStream] NetStream inner function */(this, connection);
var _local2 = OnCreate.prototype;
_local2.onResult = function (streamId) {
ASnative(2101, 201) /* [NetStream] NetStream > [OnCreate.prototype] onResult - inner function */(this.nStream, streamId);
};
_local2.onStatus = function (info) {
this.nStream.onStatus(info);
};
connection.call("createStream", new OnCreate(this));
}
function Camera() {
}
function Microphone() {
}
function SharedObject() {
}
function LocalConnection() {
}
function ContextMenuItem(capt, cb, sepBefore, enab, vis) {
this.caption = capt;
this.onSelect = cb;
this.separatorBefore = ((sepBefore == undefined) ? false : (sepBefore));
this.enabled = ((enab == undefined) ? true : (enab));
this.visible = ((vis == undefined) ? true : (vis));
}
function ContextMenu(cb) {
this.onSelect = cb;
this.builtInItems = {save:true, zoom:true, quality:true, play:true, loop:true, rewind:true, forward_back:true, print:true};
this.customItems = new Array();
}
function Error(m) {
if (typeof(m) != "undefined") {
this.message = m;
}
}
function AsSetupError(s) {
var _local6 = s.split(",");
var _local3 = 0;
while (_local3 < _local6.length) {
var _local4 = _local6[_local3];
var _local5 = function (m) {
this.message = m;
};
var _local2 = new Error();
_local5.prototype = _local2;
_local2.name = _local4;
_local2.message = _local4;
_local3++;
}
}
function AssetCache() {
}
function RemoteLSOUsage() {
}
ASSetPropFlags = ASnative(1, 0) /* [_global] ASSetPropFlags */;
ASSetNative = ASnative(4, 0) /* [_global] ASSetNative */;
ASSetNativeAccessor = ASnative(4, 1) /* [_global] ASSetNativeAccessor */;
escape = ASnative(100, 0) /* [_global] escape */;
unescape = ASnative(100, 1) /* [_global] unescape */;
parseInt = ASnative(100, 2) /* [_global] parseInt */;
parseFloat = ASnative(100, 3) /* [_global] parseFloat */;
trace = ASnative(100, 4) /* [_global] trace */;
updateAfterEvent = ASnative(9, 0) /* [_global] updateAfterEvent */;
isNaN = ASnative(200, 18) /* [_global] isNaN */;
isFinite = ASnative(200, 19) /* [_global] isFinite */;
setInterval = ASnative(250, 0) /* [_global] setInterval */;
clearInterval = (clearTimeout = ASnative(250, 1) /* [_global] clearInterval (=clearTimeout) */);
setTimeout = ASnative(250, 2) /* [_global] setTimeout */;
showRedrawRegions = ASnative(1021, 1) /* [_global] showRedrawRegions */;
var o = Object.prototype;
ASSetNative(o, 101, "6watch,6unwatch,6addProperty,valueOf,toString,6hasOwnProperty,6isPrototypeOf,6isPropertyEnumerable");
o.toLocaleString = function () {
return(this.toString());
};
Object.registerClass = ASnative(101, 8) /* [Object] registerClass */;
ASSetPropFlags(o, null, 3);
ASSetPropFlags(Object, null, 7);
var o = Function.prototype;
ASSetNative(o, 101, "6call,6apply", 10);
ASSetPropFlags(o, null, 3);
Number = ASconstructor(106, 2);
var o = Number.prototype;
ASSetNative(o, 106, "valueOf,toString");
ASSetPropFlags(o, null, 3);
var o = Number;
o.NaN = NaN;
o.POSITIVE_INFINITY = Infinity;
o.NEGATIVE_INFINITY = -Infinity;
o.MIN_VALUE = Number.MIN_VALUE;
o.MAX_VALUE = Number.MAX_VALUE;
ASSetPropFlags(o, null, 7);
Boolean = ASconstructor(107, 2);
var o = Boolean.prototype;
ASSetNative(o, 107, "valueOf,toString");
ASSetPropFlags(o, null, 3);
Date = ASconstructor(103, 256);
var o = Date.prototype;
ASSetNative(o, 103, "getFullYear,getYear,getMonth,getDate,getDay,getHours,getMinutes,getSeconds,getMilliseconds,setFullYear,setMonth,setDate,setHours,setMinutes,setSeconds,setMilliseconds,getTime,setTime,getTimezoneOffset,toString,setYear");
ASSetNative(o, 103, "getUTCFullYear,getUTCYear,getUTCMonth,getUTCDate,getUTCDay,getUTCHours,getUTCMinutes,getUTCSeconds,getUTCMilliseconds,setUTCFullYear,setUTCMonth,setUTCDate,setUTCHours,setUTCMinutes,setUTCSeconds,setUTCMilliseconds", 128);
o.valueOf = o.getTime;
Date.UTC = ASnative(103, 257) /* [Date] UTC */;
ASSetPropFlags(o, null, 3);
ASSetPropFlags(Date, null, 7);
String = ASconstructor(251, 0);
var o = String.prototype;
ASSetNative(o, 251, "valueOf,toString,toUpperCase,toLowerCase,charAt,charCodeAt,concat,indexOf,lastIndexOf,slice,substring,split,substr", 1);
String.fromCharCode = ASnative(251, 14) /* [String] fromCharCode */;
ASSetPropFlags(o, null, 3);
ASSetPropFlags(String, null, 3);
Array = ASconstructor(252, 0);
var o = Array.prototype;
ASSetNative(o, 252, "push,pop,concat,shift,unshift,slice,join,splice,toString,sort,reverse,sortOn", 1);
ASSetPropFlags(o, null, 3);
var o = Array;
o.CASEINSENSITIVE = 1;
o.DESCENDING = 2;
o.UNIQUESORT = 4;
o.RETURNINDEXEDARRAY = 8;
o.NUMERIC = 16;
Math = {E:Math.E, LN10:Math.LN10, LN2:Math.LN2, LOG10E:Math.LOG10E, LOG2E:Math.LOG2E, PI:Math.PI, SQRT1_2:Math.SQRT1_2, SQRT2:Math.SQRT2};
ASSetNative(Math, 200, "abs,min,max,sin,cos,atan2,tan,exp,log,sqrt,round,random,floor,ceil,atan,asin,acos,pow");
ASSetPropFlags(Math, null, 7);
Sound = ASconstructor(500, 17);
var o = Sound.prototype;
ASSetNative(o, 500, "getPan,getTransform,getVolume,setPan,setTransform,setVolume,stop,attachSound,start,6getDuration,6setDuration,6getPosition,6setPosition,6loadSound,6getBytesLoaded,6getBytesTotal,9areSoundsInaccessible");
ASSetPropFlags(o, null, 7);
ASSetNativeAccessor(o, 500, "checkPolicyFile", 18);
ASSetPropFlags(o, "checkPolicyFile", 3);
var o = MovieClip.prototype;
o.useHandCursor = true;
o.enabled = true;
ASSetNativeAccessor(o, 900, "tabIndex", 200);
ASSetNativeAccessor(o, 900, "_lockroot", 300);
ASSetNativeAccessor(o, 900, "8cacheAsBitmap,8opaqueBackground,8scrollRect", 401);
ASSetNativeAccessor(o, 900, "8filters,8transform", 417);
ASSetNativeAccessor(o, 900, "8blendMode", 500);
ASSetNativeAccessor(o, 900, "8forceSmoothing", 502);
ASSetNativeAccessor(o, 901, "8scale9Grid", 12);
o.meth = function (method) {
method = method.toLowerCase();
if (method == "get") {
return(1);
}
if (method == "post") {
return(2);
}
return(0);
};
o.getURL = function (url, window, method) {
if (typeof(window) == "undefined") {
window = "";
}
var _local3 = this.meth(method);
tellTarget (this._target) {
if (_local3 == 0) {
getURL (url, window);
} else if (_local3 == 1) {
getURL (url, window, "GET");
} else {
getURL (url, window, "POST");
}
};
};
o.unloadMovie = function () {
unloadMovie (this._target);
};
o.loadVariables = function (url, method) {
var _local3 = this.meth(method);
tellTarget (this._target) {
if (_local3 == 0) {
loadVariables (url, _target);
} else if (_local3 == 1) {
loadVariables (url, _target, "GET");
} else {
loadVariables (url, _target, "POST");
}
};
};
o.loadMovie = function (url, method) {
var _local3 = this.meth(method);
tellTarget (this._target) {
if (_local3 == 0) {
loadMovie (url, _target);
} else if (_local3 == 1) {
loadMovie (url, _target, "GET");
} else {
loadMovie (url, _target, "POST");
}
};
};
ASSetNative(o, 900, "attachMovie,swapDepths,localToGlobal,globalToLocal,hitTest,getBounds,getBytesTotal,getBytesLoaded,6attachAudio,6attachVideo,6getDepth,6setMask,play,stop,nextFrame,prevFrame,gotoAndPlay,gotoAndStop,duplicateMovieClip,removeMovieClip,startDrag,stopDrag,7getNextHighestDepth,7getInstanceAtDepth,getSWFVersion,8attachBitmap,8getRect");
ASSetNative(o, 901, "6createEmptyMovieClip,6beginFill,6beginGradientFill,6moveTo,6lineTo,6curveTo,6lineStyle,6endFill,6clear,8lineGradientStyle,8beginMeshFill,8beginBitmapFill");
o.createTextField = ASnative(104, 200) /* [MovieClip.prototype] createTextField */;
ASSetPropFlags(o, null, 3);
XMLNode = ASconstructor(253, 0);
var o = XMLNode.prototype;
ASSetNative(o, 253, "cloneNode,removeNode,insertBefore,appendChild,hasChildNodes,toString,getNamespaceForPrefix,getPrefixForNamespace", 1);
XML = ASconstructor(253, 9);
XML.prototype = new XMLNode(1, "");
var o = XML.prototype;
ASSetNative(o, 253, "createElement,createTextNode,parseXML", 10);
o.load = ASnative(301, 0) /* [XML.prototype][LoadVars.prototype][TextField.StyleSheet.prototype] load */;
o.send = ASnative(301, 1) /* [XML.prototype][LoadVars.prototype] send */;
o.sendAndLoad = ASnative(301, 2) /* [XML.prototype][LoadVars.prototype] sendAndLoad */;
o.onLoad = function () {
};
o.onData = function (src) {
if (src == undefined) {
this.onLoad(false);
} else {
this.parseXML(src);
this.loaded = true;
this.onLoad(true);
}
};
o.getBytesLoaded = function () {
return(this._bytesLoaded);
};
o.getBytesTotal = function () {
return(this._bytesTotal);
};
o.addRequestHeader = function (key, value) {
if (typeof(this._customHeaders) == "undefined") {
this._customHeaders = new Array();
ASSetPropFlags(this, "_customHeaders", 131);
}
if ((typeof(key) == "string") && (typeof(value) == "string")) {
this._customHeaders.push(key, value);
} else if (key instanceof Array) {
var _local2 = 0;
while (_local2 < key.length) {
if ((_local2 + 1) < key.length) {
this.addRequestHeader(key[_local2], key[_local2 + 1]);
}
_local2 = _local2 + 2;
}
}
};
LoadVars = ASconstructor(253, 13);
var o = LoadVars.prototype;
ASSetNative(o, 301, "load,send,sendAndLoad,decode");
o.getBytesLoaded = function () {
return(this._bytesLoaded);
};
o.getBytesTotal = function () {
return(this._bytesTotal);
};
o.toString = function () {
var _local2 = [];
for (var _local3 in this) {
_local2.push((escape(_local3) + "=") + escape(this[_local3]));
}
return(_local2.join("&"));
};
o.contentType = "application/x-www-form-urlencoded";
o.onLoad = function () {
};
o.onData = function (src) {
if (src == undefined) {
this.onLoad(false);
} else {
this.decode(src);
this.loaded = true;
this.onLoad(true);
}
};
o.addRequestHeader = function (key, value) {
if (typeof(this._customHeaders) == "undefined") {
this._customHeaders = new Array();
ASSetPropFlags(this, "_customHeaders", 131);
}
if ((typeof(key) == "string") && (typeof(value) == "string")) {
this._customHeaders.push(key, value);
} else if (key instanceof Array) {
var _local2 = 0;
while (_local2 < key.length) {
if ((_local2 + 1) < key.length) {
this.addRequestHeader(key[_local2], key[_local2 + 1]);
}
_local2 = _local2 + 2;
}
}
};
ASSetPropFlags(o, null, 131);
var o = XMLSocket.prototype;
ASSetNative(o, 400, "connect,send,close");
o.onData = function (src) {
this.onXML(new XML(src));
};
ASSetPropFlags(o, null, 3);
var o = AsBroadcaster;
o.broadcastMessage = ASnative(101, 12) /* [AsBroadcaster] broadcastMessage */;
o.addListener = function (x) {
this.removeListener(x);
this._listeners.push(x);
return(true);
};
o.removeListener = function (x) {
var _local3 = this._listeners;
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2] == x) {
_local3.splice(_local2, 1);
return(true);
}
_local2++;
}
return(false);
};
o.initialize = function (o) {
o.broadcastMessage = ASnative(101, 12) /* [AsBroadcaster] broadcastMessage */;
o.addListener = AsBroadcaster.addListener;
o.removeListener = AsBroadcaster.removeListener;
o._listeners = [];
ASSetPropFlags(o, "broadcastMessage,addListener,removeListener,_listeners", 131);
};
ASSetPropFlags(o, null, 131);
Selection = {};
ASSetNative(Selection, 600, "getBeginIndex,getEndIndex,getCaretIndex,getFocus,setFocus,setSelection");
AsBroadcaster.initialize(Selection);
ASSetPropFlags(Selection, null, 7);
var o = Color.prototype;
ASSetNative(o, 700, "setRGB,setTransform,getRGB,getTransform");
ASSetPropFlags(o, null, 7);
Mouse = {};
ASSetNative(Mouse, 5, "show,hide");
AsBroadcaster.initialize(Mouse);
ASSetPropFlags(Mouse, null, 7);
Key = {ALT:18, ENTER:13, SPACE:32, UP:38, DOWN:40, LEFT:37, RIGHT:39, PGUP:33, PGDN:34, HOME:36, END:35, TAB:9, CONTROL:17, SHIFT:16, ESCAPE:27, INSERT:45, DELETEKEY:46, BACKSPACE:8, CAPSLOCK:20};
ASSetNative(Key, 800, "getAscii,getCode,isDown,isToggled,isAccessible");
AsBroadcaster.initialize(Key);
ASSetPropFlags(Key, null, 7);
Button = ASconstructor(105, 0);
var o = Button.prototype;
o.useHandCursor = true;
o.enabled = true;
o.getDepth = ASnative(105, 3) /* [Button.prototype] getDepth */;
ASSetNativeAccessor(o, 105, "8scale9Grid,8filters,8cacheAsBitmap,8blendMode", 4);
TextField = ASconstructor(104, 0);
var o = TextField.prototype;
ASSetNative(o, 104, "6replaceSel,6getTextFormat,6setTextFormat,6removeTextField,6getNewTextFormat,6setNewTextFormat,6getDepth,7replaceText", 100);
AsBroadcaster.initialize(o);
ASSetPropFlags(o, null, 131);
TextField.getFontList = ASnative(104, 201) /* [TextField] getFontList */;
ASSetPropFlags(TextField, null, 131);
ASSetNativeAccessor(o, 104, "8gridFitType,8antiAliasType,8thickness,8sharpness,8filters", 300);
TextField.StyleSheet = ASconstructor(113, 0);
var o = TextField.StyleSheet.prototype;
o._copy = function (o) {
if (typeof(o) != "object") {
return(null);
}
var _local2 = {};
for (var _local3 in o) {
_local2[_local3] = o[_local3];
}
return(_local2);
};
o.getStyle = function (n) {
return(this._copy(this._css[n]));
};
o.setStyle = function (n, s) {
if (!this._css) {
this._css = {};
}
var _local2 = typeof(o);
if (((_local2 == "object") || (_local2 == "null")) || (_local2 == "undefined")) {
this._css[n] = this._copy(s);
this.doTransform(n);
this.update();
}
};
o.clear = function () {
this._css = {};
this._styles = {};
this.update();
};
o.getStyleNames = function () {
var _local2 = [];
for (var _local3 in this._css) {
_local2.push(_local3);
}
return(_local2);
};
o.doTransform = function (n) {
var _local2 = this.transform(this._css[n]);
if (!this._styles) {
this._styles = {};
}
this._styles[n] = _local2;
};
o.transform = function (o) {
if (o == null) {
return(null);
}
var _local2 = new TextFormat();
var _local4 = o.textAlign;
if (_local4) {
_local2.align = _local4;
}
_local4 = o.fontSize;
if (_local4) {
_local4 = parseInt(_local4);
if (_local4 > 0) {
_local2.size = _local4;
}
}
_local4 = o.textDecoration;
if (_local4 == "none") {
_local2.underline = false;
} else if (_local4 == "underline") {
_local2.underline = true;
}
_local4 = o.marginLeft;
if (_local4) {
_local2.leftMargin = parseInt(_local4);
}
_local4 = o.marginRight;
if (_local4) {
_local2.rightMargin = parseInt(_local4);
}
_local4 = o.leading;
if (_local4) {
_local2.leading = parseInt(_local4);
}
_local4 = o.kerning;
if (_local4 == "true") {
_local2.kerning = 1;
} else if (_local4 == "false") {
_local2.kerning = 0;
} else {
_local2.kerning = parseInt(_local4);
}
_local4 = o.letterSpacing;
if (_local4) {
_local2.letterSpacing = parseInt(_local4);
}
_local4 = o.fontFamily;
if (_local4) {
_local2.font = this.parseCSSFontFamily(_local4);
}
_local2.display = o.display;
_local4 = o.fontWeight;
if (_local4 == "bold") {
_local2.bold = true;
} else if (_local4 == "normal") {
_local2.bold = false;
}
_local4 = o.fontStyle;
if (_local4 == "italic") {
_local2.italic = true;
} else if (_local4 == "normal") {
_local2.italic = false;
}
_local4 = o.textIndent;
if (_local4) {
_local2.indent = parseInt(_local4);
}
_local4 = o.color;
if (_local4) {
_local4 = this.parseColor(_local4);
if (_local4 != null) {
_local2.color = _local4;
}
}
return(_local2);
};
o.parseCSS = function (s) {
var _local2 = this.parseCSSInternal(s);
if (typeof(_local2) == "null") {
return(false);
}
if (!this._css) {
this._css = {};
}
for (var _local3 in _local2) {
this._css[_local3] = this._copy(_local2[_local3]);
this.doTransform(_local3);
}
this.update();
return(true);
};
o.parse = o.parseCSS;
o.load = ASnative(301, 0) /* [XML.prototype][LoadVars.prototype][TextField.StyleSheet.prototype] load */;
o.onLoad = function () {
};
o.onData = function (src) {
if (src == undefined) {
this.onLoad(false);
} else {
var _local2 = this.parse(src);
this.loaded = _local2;
this.onLoad(_local2);
}
};
ASSetNative(o, 113, "7update,7parseCSSInternal,7parseCSSFontFamily,7parseColor", 100);
ASSetPropFlags(o, null, 1027);
ASSetPropFlags(TextField, "StyleSheet", 1027);
TextFormat = ASconstructor(110, 0);
Stage = {width:0, height:0, scaleMode:0, align:""};
ASSetNativeAccessor(Stage, 666, "scaleMode,align,width,height,showMenu,displayState", 1);
ASSetNativeAccessor(Stage, 666, "9fullScreenSourceRect,9fullScreenHeight,9fullScreenWidth", 100);
AsBroadcaster.initialize(Stage);
Video = ASconstructor(667, 0);
var o = Video.prototype;
ASSetNative(o, 667, "6attachVideo,6clear", 1);
ASSetPropFlags(o, null, 3);
Accessibility = {};
ASSetNative(Accessibility, 1999, "6isActive,6sendEvent,6updateProperties");
ASSetPropFlags(Accessibility, null, 6);
var o = NetConnection.prototype;
o.proxyType = "none";
o.addProperty("connectedProxyType", ASnative(2100, 4), null);
o.addProperty("usingTLS", ASnative(2100, 5), null);
ASSetNative(o, 2100, "6connect,6close,6call,6addHeader");
ASSetPropFlags(o, null, 3);
var o = NetStream.prototype;
o.publish = function (name, type) {
var _local3 = arguments.length;
if (_local3 == 1) {
ASnative(2101, 202) /* [NetStream.prototype] publish|play|receiveAudio|receiveVideo|pause|seek - inner function */(this, "publish", null, name);
} else {
ASnative(2101, 202) /* [NetStream.prototype] publish|play|receiveAudio|receiveVideo|pause|seek - inner function */(this, "publish", null, name, type);
}
};
o.play = function (name, start, len, reset) {
var _local3 = arguments.length;
if (_local3 == 1) {
ASnative(2101, 202) /* [NetStream.prototype] publish|play|receiveAudio|receiveVideo|pause|seek - inner function */(this, "play", null, name);
} else if (_local3 == 2) {
ASnative(2101, 202) /* [NetStream.prototype] publish|play|receiveAudio|receiveVideo|pause|seek - inner function */(this, "play", null, name, start * 1000);
} else if (_local3 == 3) {
ASnative(2101, 202) /* [NetStream.prototype] publish|play|receiveAudio|receiveVideo|pause|seek - inner function */(this, "play", null, name, start * 1000, len * 1000);
} else {
ASnative(2101, 202) /* [NetStream.prototype] publish|play|receiveAudio|receiveVideo|pause|seek - inner function */(this, "play", null, name, start * 1000, len * 1000, reset);
}
};
o.receiveAudio = function (flag) {
ASnative(2101, 202) /* [NetStream.prototype] publish|play|receiveAudio|receiveVideo|pause|seek - inner function */(this, "receiveAudio", null, flag);
};
o.receiveVideo = function (flag) {
ASnative(2101, 202) /* [NetStream.prototype] publish|play|receiveAudio|receiveVideo|pause|seek - inner function */(this, "receiveVideo", null, flag);
};
o.pause = function (flag) {
ASnative(2101, 202) /* [NetStream.prototype] publish|play|receiveAudio|receiveVideo|pause|seek - inner function */(this, "pause", null, flag, this.time * 1000);
};
o.seek = function (offset) {
ASnative(2101, 202) /* [NetStream.prototype] publish|play|receiveAudio|receiveVideo|pause|seek - inner function */(this, "seek", null, offset * 1000);
};
ASSetNative(o, 2101, "6close,6attachAudio,6attachVideo,6send,6setBufferTime");
ASSetNativeAccessor(o, 2101, "checkPolicyFile", 5);
ASSetPropFlags(o, null, 3);
Camera.get = function (index) {
return(ASnative(2102, 200) /* [Camera] get */(index));
};
Camera.addProperty("names", ASnative(2102, 201) /* [Camera] names getter-function */, null);
var o = Camera.prototype;
ASSetNative(o, 2102, "6setMode,6setQuality,6setKeyFrameInterval,6setMotionLevel,6setLoopback,6setCursor");
ASSetPropFlags(o, null, 3);
Microphone.get = function (index) {
return(ASnative(2104, 200) /* [Microphone] get */(index));
};
Microphone.addProperty("names", ASnative(2104, 201) /* [Microphone] names getter-function */, null);
var o = Microphone.prototype;
ASSetNative(o, 2104, "6setSilenceLevel,6setRate,6setGain,6setUseEchoSuppression");
ASSetPropFlags(o, null, 3);
SharedObject.getLocal = function (name, localPath, secure) {
var _local1 = ASnative(2106, 202) /* [SharedObject] getLocal - inner function */(name, localPath, secure);
if (!_local1) {
_local1 = new SharedObject();
if (!ASnative(2106, 204) /* [SharedObject] getLocal - inner function */(_local1, name, localPath, secure)) {
return(null);
}
}
return(_local1);
};
SharedObject.getRemote = function (name, remotePath, options, secure) {
var _local1 = ASnative(2106, 203) /* [SharedObject] getRemote - inner function */(name, remotePath, options, secure);
if (!_local1) {
_local1 = new SharedObject();
if (!ASnative(2106, 205) /* [SharedObject] getRemote - inner function */(_local1, name, remotePath, options, secure)) {
return(null);
}
}
return(_local1);
};
SharedObject.deleteAll = function (url) {
return(ASnative(2106, 206) /* [SharedObject] deleteAll */(url));
};
SharedObject.getDiskUsage = function (url) {
return(ASnative(2106, 207) /* [SharedObject] getDiskUsage */(url));
};
ASSetPropFlags(SharedObject, "deleteAll,getDiskUsage", 1);
var o = SharedObject.prototype;
ASSetNative(o, 2106, "6connect,6send,6flush,6close,6getSize,6setFps,6clear");
ASSetPropFlags(o, null, 3);
System = {};
System.capabilities = {hasAudio:true, hasMP3:true, hasAudio:true, hasMP3:true, hasAudioEncoder:true, hasVideoEncoder:true, hasTLS:false, screenResolutionX:800, screenResolutionY:600, screenDPI:72, screenColor:"color", pixelAspectRatio:1, hasAccessibility:true, Query:ASnative(11, 0) /* [System.Capabilities] Query - 'Query' is deleted after use! */};
System.capabilities.Query();
delete System.capabilities.Query;
ASSetNativeAccessor(System.capabilities, 11, "_internal", 1);
ASSetPropFlags(System.capabilities, "_internal", 7);
System.Product = function (strName) {
this.name = strName;
ASSetPropFlags(this, null, 7);
};
var o = System.Product.prototype;
o.isRunning = function () {
return(ASnative(2201, 0) /* [System.Product.prototype] IsRunning */(this.name));
};
o.isInstalled = function () {
return(ASnative(2201, 1) /* [System.Product.prototype] IsInstalled */(this.name));
};
o.launch = function () {
if (arguments.length > 0) {
return(ASnative(2201, 2) /* [System.Product.prototype] Launch */(this.name, arguments[0]));
}
return(ASnative(2201, 2) /* [System.Product.prototype] Launch */(this.name));
};
o.download = function () {
if (arguments.length > 0) {
if (arguments.length == 1) {
return(ASnative(2201, 3) /* [System.Product.prototype] Download - inner function */(this, this.name, arguments[0]));
}
var _local4 = "";
if (arguments[2] instanceof Array) {
var _local3 = 0;
while (_local3 < arguments[2].length) {
if (this.validate(arguments[2][_local3]) == true) {
_local4 = _local4 + (arguments[2][_local3] + "/");
} else {
return(false);
}
_local3++;
}
}
if (this.validate(arguments[1]) == true) {
_local4 = _local4 + arguments[1];
} else {
return(false);
}
return(ASnative(2201, 3) /* [System.Product.prototype] Download - inner function */(this, this.name, arguments[0], _local4));
}
return(ASnative(2201, 3) /* [System.Product.prototype] Download - inner function */(this, this.name));
};
o.validate = function (str) {
var _local3 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_";
var _local2 = str.length;
var _local1 = 0;
while (_local1 < _local2) {
if (_local3.indexOf(str.charAt(_local1)) == -1) {
return(false);
}
_local1++;
}
return(true);
};
o.installedVersion = function () {
return(ASnative(2201, 4) /* [System.Product.prototype] installedVersion */(this.name));
};
ASSetPropFlags(o, null, 3);
System.showSettings = ASnative(2107, 0) /* [System] ShowSettings */;
ASSetNativeAccessor(System, 2107, "exactSettings", 1);
ASSetPropFlags(System, "exactSettings", 128);
ASSetNativeAccessor(System, 2107, "useCodepage", 3);
flash = {};
ASSetPropFlags(_global, "flash", 4096);
flash.text = {};
flash.text.TextRenderer = ASconstructor(2150, 0);
var textRenderer = flash.text.TextRenderer;
ASSetNative(textRenderer, 2150, "8setAdvancedAntialiasingTable", 1);
ASSetNativeAccessor(textRenderer, 2150, "8maxLevel", 4);
ASSetNativeAccessor(textRenderer, 2150, "8displayMode", 10);
var o = new Object();
System.security = o;
ASSetNative(o, 12, "allowDomain,7allowInsecureDomain,loadPolicyFile,chooseLocalSwfPath,escapeDomain");
System.security.addProperty("sandboxType", ASnative(12, 5), null);
System.security.PolicyFileResolver = function () {
};
var o = System.security.PolicyFileResolver.prototype;
ASSetNative(o, 15, "resolve");
AsBroadcaster.initialize(o);
System.setClipboard = ASnative(1066, 0) /* [System] setClipboard */;
System.IME = {ALPHANUMERIC_FULL:"ALPHANUMERIC_FULL", ALPHANUMERIC_HALF:"ALPHANUMERIC_HALF", CHINESE:"CHINESE", JAPANESE_HIRAGANA:"JAPANESE_HIRAGANA", JAPANESE_KATAKANA_FULL:"JAPANESE_KATAKANA_FULL", JAPANESE_KATAKANA_HALF:"JAPANESE_KATAKANA_HALF", KOREAN:"KOREAN", UNKNOWN:"UNKNOWN"};
ASSetNative(System.IME, 13, "8getEnabled,8setEnabled,8getConversionMode,8setConversionMode,8setCompositionString,8doConversion");
AsBroadcaster.initialize(System.IME);
ASSetPropFlags(System.IME, null, 7);
var o = LocalConnection.prototype;
ASSetNative(o, 2200, "6connect,6send,6close,6domain");
ASSetPropFlags(o, null, 3);
var o = ContextMenuItem.prototype;
o.copy = function () {
var _local2 = new ContextMenuItem();
_local2.caption = this.caption;
_local2.onSelect = this.onSelect;
_local2.separatorBefore = this.separatorBefore;
_local2.enabled = this.enabled;
_local2.visible = this.visible;
return(_local2);
};
ASSetPropFlags(o, null, 1027);
var o = ContextMenu.prototype;
o.copy = function () {
var _local3 = new ContextMenu();
_local3.onSelect = this.onSelect;
_local3.builtInItems = this.builtInItems;
_local3.customItems = new Array();
var _local2 = 0;
while (_local2 < this.customItems.length) {
_local3.customItems.push(this.customItems[_local2].copy());
_local2++;
}
return(_local3);
};
o.hideBuiltInItems = function () {
this.builtInItems = {save:false, zoom:false, quality:false, play:false, loop:false, rewind:false, forward_back:false, print:false};
};
ASSetPropFlags(o, null, 1027);
var o = Error.prototype;
o.name = (o.message = "Error");
o.toString = function () {
return(this.message);
};
AsSetupError("EvalError,ReferenceError,SyntaxError,TypeError,URIError");
MovieClipLoader = ASconstructor(112, 0);
var o = MovieClipLoader.prototype;
ASSetNative(o, 112, "7loadClip,7getProgress,7unloadClip", 100);
AsBroadcaster.initialize(o);
ASSetPropFlags(o, null, 1027);
PrintJob = ASconstructor(111, 0);
var o = PrintJob.prototype;
ASSetNative(o, 111, "7start,7addPage,7send", 100);
ASSetPropFlags(o, null, 1027);
TextSnapshot = ASconstructor(1067, 0);
MovieClip.prototype.getTextSnapshot = function () {
return(new TextSnapshot(this));
};
ASSetPropFlags(MovieClip.prototype, "getTextSnapshot", 131);
ASSetNative(TextSnapshot.prototype, 1067, "6getCount,6setSelected,6getSelected,6getText,6getSelectedText,6hitTestTextNearPos,6findText,6setSelectColor,6getTextRunInfo", 1);
flash.display = {};
flash.display.BitmapData = ASconstructor(1100, 0);
var o = flash.display.BitmapData;
o.RED_CHANNEL = 1;
o.GREEN_CHANNEL = 2;
o.BLUE_CHANNEL = 4;
o.ALPHA_CHANNEL = 8;
ASSetNative(o, 1100, "8loadBitmap", 40);
var o = flash.display.BitmapData.prototype;
ASSetNativeAccessor(o, 1100, "8width,8height,8rectangle,8transparent", 100);
ASSetNative(o, 1100, "8getPixel,8setPixel,8fillRect,8copyPixels,8applyFilter,8scroll,8threshold,8draw,8pixelDissolve,8getPixel32,8setPixel32,8floodFill,8getColorBoundsRect,8perlinNoise,8colorTransform,8hitTest,8paletteMap,8merge,8noise,8copyChannel,8clone,8dispose,8generateFilterRect,8compare", 1);
flash.filters = {};
var o = ((flash.filters.BitmapFilter = ASconstructor(1112, 0)));
ASSetNative(o.prototype, 1112, "8clone", 1);
flash.filters.DropShadowFilter = ASconstructor(1101, 0);
flash.filters.DropShadowFilter.prototype = (o = new flash.filters.BitmapFilter());
ASSetNativeAccessor(o, 1101, "8distance,8angle,8color,8alpha,8quality,8inner,8knockout,8blurX,8blurY,8strength,8hideObject", 1);
flash.filters.BlurFilter = ASconstructor(1102, 0);
flash.filters.BlurFilter.prototype = (o = new flash.filters.BitmapFilter());
ASSetNativeAccessor(o, 1102, "8blurX,8blurY,8quality", 1);
flash.filters.GlowFilter = ASconstructor(1103, 0);
flash.filters.GlowFilter.prototype = (o = new flash.filters.BitmapFilter());
ASSetNativeAccessor(o, 1103, "8color,8alpha,8quality,8inner,8knockout,8blurX,8blurY,8strength", 1);
flash.filters.BevelFilter = ASconstructor(1107, 0);
flash.filters.BevelFilter.prototype = (o = new flash.filters.BitmapFilter());
ASSetNativeAccessor(o, 1107, "8distance,8angle,8highlightColor,8highlightAlpha,8shadowColor,8shadowAlpha,8quality,8strength,8knockout,8blurX,8blurY,8type", 1);
flash.filters.GradientGlowFilter = ASconstructor(1108, 0);
flash.filters.GradientGlowFilter.prototype = (o = new flash.filters.BitmapFilter());
ASSetNativeAccessor(o, 1108, "8distance,8angle,8colors,8alphas,8ratios,8blurX,8blurY,8quality,8strength,8knockout,8type", 1);
flash.filters.GradientBevelFilter = ASconstructor(1108, 1000);
flash.filters.GradientBevelFilter.prototype = (o = new flash.filters.BitmapFilter());
ASSetNativeAccessor(o, 1108, "8distance,8angle,8colors,8alphas,8ratios,8blurX,8blurY,8quality,8strength,8knockout,8type", 1);
flash.filters.ConvolutionFilter = ASconstructor(1109, 0);
flash.filters.ConvolutionFilter.prototype = (o = new flash.filters.BitmapFilter());
ASSetNativeAccessor(o, 1109, "8matrixX,8matrixY,8matrix,8divisor,8bias,8preserveAlpha,8clamp,8color,8alpha", 1);
flash.filters.ColorMatrixFilter = ASconstructor(1110, 0);
flash.filters.ColorMatrixFilter.prototype = (o = new flash.filters.BitmapFilter());
ASSetNativeAccessor(o, 1110, "8matrix", 1);
var o = ((flash.filters.DisplacementMapFilter = ASconstructor(1111, 0)));
flash.filters.DisplacementMapFilter.prototype = (o = new flash.filters.BitmapFilter());
ASSetNativeAccessor(o, 1111, "8mapBitmap,8mapPoint,8componentX,8componentY,8scaleX,8scaleY,8mode,8color,8alpha", 1);
flash.geom = {};
flash.geom.Rectangle = function (p1, p2, p3, p4) {
var _local3 = arguments.length;
if (!_local3) {
this.setEmpty();
} else {
this.x = p1;
this.y = p2;
this.width = p3;
this.height = p4;
}
};
var o = flash.geom.Rectangle.prototype;
o.clone = function () {
return(new flash.geom.Rectangle(this.x, this.y, this.width, this.height));
};
o.setEmpty = function () {
this.x = (this.y = (this.width = (this.height = 0)));
};
o.isEmpty = function () {
return((this.width <= 0) || (this.height <= 0));
};
o.addProperty("left", function () {
return(this.x);
}, function (newx) {
this.width = this.width + (this.x - newx);
this.x = newx;
});
o.addProperty("right", function () {
return(this.x + this.width);
}, function (newr) {
this.width = newr - this.x;
});
o.addProperty("top", function () {
return(this.y);
}, function (newy) {
this.height = this.height + (this.y - newy);
this.y = newy;
});
o.addProperty("bottom", function () {
return(this.y + this.height);
}, function (newb) {
this.height = newb - this.y;
});
o.addProperty("topLeft", function () {
return(new flash.geom.Point(this.x, this.y));
}, function (value) {
this.width = this.width + (this.x - value.x);
this.height = this.height + (this.y - value.y);
this.x = value.x;
this.y = value.y;
});
o.addProperty("bottomRight", function () {
return(new flash.geom.Point(this.x + this.width, this.y + this.height));
}, function (value) {
this.width = value.x - this.x;
this.height = value.y - this.y;
});
o.addProperty("size", function () {
return(new flash.geom.Point(this.width, this.height));
}, function (value) {
this.width = value.x;
this.height = value.y;
});
o.inflate = function (dx, dy) {
this.x = this.x - dx;
this.width = this.width + (2 * dx);
this.y = this.y - dy;
this.height = this.height + (2 * dy);
};
o.inflatePoint = function (pt) {
this.x = this.x - pt.x;
this.width = this.width + (2 * pt.x);
this.y = this.y - pt.y;
this.height = this.height + (2 * pt.y);
};
o.offset = function (dx, dy) {
this.x = this.x + dx;
this.y = this.y + dy;
};
o.offsetPoint = function (pt) {
this.x = this.x + pt.x;
this.y = this.y + pt.y;
};
o.contains = function (x, y) {
return((((x >= this.x) && (x < (this.x + this.width))) && (y >= this.y)) && (y < (this.y + this.height)));
};
o.containsPoint = function (pt) {
return((((pt.x >= this.x) && (pt.x < (this.x + this.width))) && (pt.y >= this.y)) && (pt.y < (this.y + this.height)));
};
o.containsRectangle = function (rect) {
var _local4 = rect.x + rect.width;
var _local6 = rect.y + rect.height;
var _local3 = this.x + this.width;
var _local5 = this.y + this.height;
return((((((((rect.x >= this.x) && (rect.x < _local3)) && (rect.y >= this.y)) && (rect.y < _local5)) && (_local4 > this.x)) && (_local4 <= _local3)) && (_local6 > this.y)) && (_local6 <= _local5));
};
o.intersection = function (toIntersect) {
var _local2 = new flash.geom.Rectangle();
if (this.isEmpty() || (toIntersect.isEmpty())) {
_local2.setEmpty();
return(_local2);
}
_local2.x = Math.max(this.x, toIntersect.x);
_local2.y = Math.max(this.y, toIntersect.y);
_local2.width = Math.min(this.x + this.width, toIntersect.x + toIntersect.width) - _local2.x;
_local2.height = Math.min(this.y + this.height, toIntersect.y + toIntersect.height) - _local2.y;
if ((_local2.width <= 0) || (_local2.height <= 0)) {
_local2.setEmpty();
}
return(_local2);
};
o.intersects = function (toIntersect) {
return(!this.intersection(toIntersect).isEmpty());
};
o.union = function (toUnion) {
if (this.isEmpty()) {
return(toUnion.clone());
}
if (toUnion.isEmpty()) {
return(this.clone());
}
var _local2 = new flash.geom.Rectangle();
_local2.x = Math.min(this.x, toUnion.x);
_local2.y = Math.min(this.y, toUnion.y);
_local2.width = Math.max(this.x + this.width, toUnion.x + toUnion.width) - _local2.x;
_local2.height = Math.max(this.y + this.height, toUnion.y + toUnion.height) - _local2.y;
return(_local2);
};
o.equals = function (toCompare) {
return(((((toCompare instanceof flash.geom.Rectangle) && (toCompare.x == this.x)) && (toCompare.y == this.y)) && (toCompare.width == this.width)) && (toCompare.height == this.height));
};
o.toString = function () {
return(((((((("(x=" + this.x) + ", y=") + this.y) + ", w=") + this.width) + ", h=") + this.height) + ")");
};
flash.geom.Point = function (p1, p2) {
var _local3 = arguments.length;
if (!_local3) {
this.x = (this.y = 0);
} else {
this.x = p1;
this.y = p2;
}
};
var o = flash.geom.Point;
o.distance = function (pt1, pt2) {
return(pt1.subtract(pt2).length);
};
o.polar = function (len, angle) {
return(new flash.geom.Point(len * Math.cos(angle), len * Math.sin(angle)));
};
o.interpolate = function (pt1, pt2, f) {
return(new flash.geom.Point(pt2.x + (f * (pt1.x - pt2.x)), pt2.y + (f * (pt1.y - pt2.y))));
};
var o = flash.geom.Point.prototype;
o.addProperty("length", function () {
return(Math.sqrt((this.x * this.x) + (this.y * this.y)));
}, function (newlen) {
});
o.clone = function () {
return(new flash.geom.Point(this.x, this.y));
};
o.offset = function (dx, dy) {
this.x = this.x + dx;
this.y = this.y + dy;
};
o.equals = function (toCompare) {
return(((toCompare instanceof flash.geom.Point) && (toCompare.x == this.x)) && (toCompare.y == this.y));
};
o.subtract = function (v) {
return(new flash.geom.Point(this.x - v.x, this.y - v.y));
};
o.add = function (v) {
return(new flash.geom.Point(this.x + v.x, this.y + v.y));
};
o.normalize = function (thickness) {
var _local2 = this.length;
if (_local2 > 0) {
_local2 = thickness / _local2;
this.x = this.x * _local2;
this.y = this.y * _local2;
}
};
o.toString = function () {
return(((("(x=" + this.x) + ", y=") + this.y) + ")");
};
flash.geom.Matrix = function (pa, pb, pc, pd, ptx, pty) {
var _local3 = arguments.length;
if (!_local3) {
this.identity();
} else {
this.a = pa;
this.b = pb;
this.c = pc;
this.d = pd;
this.tx = ptx;
this.ty = pty;
}
};
var o = flash.geom.Matrix.prototype;
o.concat = function (m) {
var _local7;
var _local8;
var _local3;
var _local4;
var _local6;
var _local5;
_local7 = this.a * m.a;
_local4 = this.d * m.d;
_local3 = 0;
_local8 = _local3;
_local6 = (this.tx * m.a) + m.tx;
_local5 = (this.ty * m.d) + m.ty;
if ((((this.b != 0) || (this.c != 0)) || (m.b != 0)) || (m.c != 0)) {
_local7 = _local7 + (this.b * m.c);
_local4 = _local4 + (this.c * m.b);
_local8 = _local8 + ((this.a * m.b) + (this.b * m.d));
_local3 = _local3 + ((this.c * m.a) + (this.d * m.c));
_local6 = _local6 + (this.ty * m.c);
_local5 = _local5 + (this.tx * m.b);
}
this.a = _local7;
this.b = _local8;
this.c = _local3;
this.d = _local4;
this.tx = _local6;
this.ty = _local5;
};
o.invert = function () {
if ((this.b == 0) && (this.c == 0)) {
this.a = 1 / this.a;
this.d = 1 / this.d;
this.b = (this.c = 0);
this.tx = (-this.a) * this.tx;
this.ty = (-this.d) * this.ty;
} else {
var _local6;
var _local5;
var _local4;
var _local3;
var _local2;
_local6 = this.a;
_local5 = this.b;
_local4 = this.c;
_local3 = this.d;
_local2 = (_local6 * _local3) - (_local5 * _local4);
if (_local2 == 0) {
this.identity();
return(undefined);
}
_local2 = 1 / _local2;
this.a = _local3 * _local2;
this.b = (-_local5) * _local2;
this.c = (-_local4) * _local2;
this.d = _local6 * _local2;
var _local7 = this.deltaTransformPoint(new flash.geom.Point(this.tx, this.ty));
this.tx = -_local7.x;
this.ty = -_local7.y;
}
};
o.createBox = function (scaleX, scaleY, rotation, x, y) {
var _local3 = arguments.length;
var _local6 = 0;
if (_local3 > 2) {
_local6 = rotation;
}
var _local5 = 0;
if (_local3 > 3) {
_local5 = x;
}
var _local4 = 0;
if (_local3 > 4) {
_local4 = y;
}
this.identity();
this.rotate(rotation);
this.scale(scaleX, scaleY);
this.tx = _local5;
this.ty = _local4;
};
o.createGradientBox = function (width, height, rotation, x, y) {
var _local3 = arguments.length;
var _local6 = 0;
if (_local3 > 2) {
_local6 = rotation;
}
var _local5 = 0;
if (_local3 > 3) {
_local5 = x;
}
var _local4 = 0;
if (_local3 > 4) {
_local4 = y;
}
this.createBox(width / 1638.4, height / 1638.4, _local6, _local5 + (width / 2), _local4 + (height / 2));
};
o.clone = function () {
return(new flash.geom.Matrix(this.a, this.b, this.c, this.d, this.tx, this.ty));
};
o.identity = function () {
this.a = (this.d = 1);
this.b = (this.c = 0);
this.tx = (this.ty = 0);
};
o.rotate = function (radians) {
var _local3 = Math.cos(radians);
var _local2 = Math.sin(radians);
var _local4 = new flash.geom.Matrix(_local3, _local2, -_local2, _local3, 0, 0);
this.concat(_local4);
};
o.translate = function (dx, dy) {
this.tx = this.tx + dx;
this.ty = this.ty + dy;
};
o.scale = function (sx, sy) {
var _local2 = new flash.geom.Matrix(sx, 0, 0, sy, 0, 0);
this.concat(_local2);
};
o.deltaTransformPoint = function (pt) {
return(new flash.geom.Point((this.a * pt.x) + (this.c * pt.y), (this.d * pt.y) + (this.b * pt.x)));
};
o.transformPoint = function (pt) {
return(new flash.geom.Point(((this.a * pt.x) + (this.c * pt.y)) + this.tx, ((this.d * pt.y) + (this.b * pt.x)) + this.ty));
};
o.toString = function () {
return(((((((((((("(a=" + this.a) + ", b=") + this.b) + ", c=") + this.c) + ", d=") + this.d) + ", tx=") + this.tx) + ", ty=") + this.ty) + ")");
};
flash.geom.ColorTransform = ASconstructor(1105, 0);
var o = flash.geom.ColorTransform.prototype;
ASSetNativeAccessor(o, 1105, "8alphaMultiplier,8redMultiplier,8greenMultiplier,8blueMultiplier,8alphaOffset,8redOffset,8greenOffset,8blueOffset,8rgb", 101);
ASSetNative(o, 1105, "8concat", 1);
o.toString = function () {
return(((((((((((((((("(redMultiplier=" + this.redMultiplier) + ", greenMultiplier=") + this.greenMultiplier) + ", blueMultiplier=") + this.blueMultiplier) + ", alphaMultiplier=") + this.alphaMultiplier) + ", redOffset=") + this.redOffset) + ", greenOffset=") + this.greenOffset) + ", blueOffset=") + this.blueOffset) + ", alphaOffset=") + this.alphaOffset) + ")");
};
flash.geom.Transform = ASconstructor(1106, 0);
ASSetNativeAccessor(flash.geom.Transform.prototype, 1106, "8matrix,8concatenatedMatrix,8colorTransform,8concatenatedColorTransform,8pixelBounds", 101);
ASSetNative(AssetCache, 2401, "6purge,6getDiskUsage", 206);
ASSetPropFlags(AssetCache, "purge,getDiskUsage", 1);
RemoteLSOUsage.getURLPageSupport = function () {
return(ASnative(2198, 101)());
};
ASSetPropFlags(RemoteLSOUsage, "getURLPageSupport", 1);
flash.net = {};
flash.net.FileReference = function () {
ASnative(2204, 200) /* [flash.net.FileReference] - inner function */(this);
this._listeners = [];
};
var o = flash.net.FileReference.prototype;
AsBroadcaster.initialize(o);
ASSetNative(o, 2204, "8browse,8upload,8download,8cancel");
ASSetPropFlags(o, null, 3);
flash.net.FileReferenceList = function () {
this.fileList = new Array();
this._listeners = [];
};
var o = flash.net.FileReferenceList.prototype;
AsBroadcaster.initialize(o);
ASSetNative(o, 2205, "8browse");
ASSetPropFlags(o, null, 3);
flash.external = {};
flash.external.ExternalInterface = function () {
};
ASSetNative(flash.external.ExternalInterface, 14, "8_initJS,8_objectID,8_addCallback,8_evalJS,8_callOut,8_escapeXML,8_unescapeXML,8_jsQuoteString");
ASSetNativeAccessor(flash.external.ExternalInterface, 14, "8available", 100);
flash.external.ExternalInterface.addCallback = function (functionName, instance, method) {
if (method && (flash.external.ExternalInterface.available)) {
flash.external.ExternalInterface._initJS();
var _local3 = function (request) {
return(flash.external.ExternalInterface._callIn(instance, method, request));
};
var _local1 = flash.external.ExternalInterface._addCallback(functionName, _local3);
if (_local1) {
var _local2 = flash.external.ExternalInterface._objectID();
if (_local2 != null) {
flash.external.ExternalInterface._evalJS(((("__flash__addCallback(document.getElementById(\"" + _local2) + "\"), \"") + functionName) + "\");");
}
}
return(_local1);
}
return(false);
};
flash.external.ExternalInterface.call = function (functionName) {
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface._initJS();
var _local3 = "try { ";
var _local4 = flash.external.ExternalInterface._objectID();
if (_local4 != null) {
_local3 = _local3 + (("document.getElementById(\"" + _local4) + "\").SetReturnValue(");
}
_local3 = _local3 + (("__flash__toXML(" + functionName) + "(");
var _local2 = 1;
while (_local2 < arguments.length) {
if (_local2 != 1) {
_local3 = _local3 + ",";
}
_local3 = _local3 + flash.external.ExternalInterface._toJS(arguments[_local2]);
_local2++;
}
_local3 = _local3 + ")) ";
if (_local4 != null) {
_local3 = _local3 + ")";
}
_local3 = _local3 + "; } catch (e) { ";
if (_local4 != null) {
_local3 = _local3 + (("document.getElementById(\"" + _local4) + "\").SetReturnValue(\"<undefined/>\");");
} else {
_local3 = _local3 + "\"<undefined/>\";";
}
_local3 = _local3 + " }";
var _local5 = flash.external.ExternalInterface._evalJS(_local3);
if (_local5 == null) {
var _local7 = ((("<invoke name=\"" + functionName) + "\" returntype=\"xml\">") + flash.external.ExternalInterface._argumentsToXML(arguments)) + "</invoke>";
_local5 = flash.external.ExternalInterface._callOut(_local7);
}
if (_local5 == null) {
return(null);
}
var _local6 = new XML();
_local6.ignoreWhite = true;
_local6.parseXML(_local5);
return(flash.external.ExternalInterface._toAS(_local6.firstChild));
}
return(null);
};
flash.external.ExternalInterface._callIn = function (instance, method, request) {
var _local2 = new XML();
_local2.ignoreWhite = true;
_local2.parseXML(request);
var _local3 = null;
var _local1 = 0;
while (_local1 < _local2.firstChild.childNodes.length) {
if (_local2.firstChild.childNodes[_local1].nodeName == "arguments") {
_local3 = _local2.firstChild.childNodes[_local1];
break;
}
_local1++;
}
var _local4 = method.apply(instance, flash.external.ExternalInterface._argumentsToAS(_local3));
return(((_local2.firstChild.attributes.returntype == "javascript") ? (flash.external.ExternalInterface._toJS(_local4)) : (flash.external.ExternalInterface._toXML(_local4))));
};
flash.external.ExternalInterface._arrayToXML = function (obj) {
var _local3 = "<array>";
var _local1 = 0;
while (_local1 < obj.length) {
_local3 = _local3 + (((("<property id=\"" + _local1) + "\">") + flash.external.ExternalInterface._toXML(obj[_local1])) + "</property>");
_local1++;
}
return(_local3 + "</array>");
};
flash.external.ExternalInterface._argumentsToXML = function (obj) {
var _local3 = "<arguments>";
var _local1 = 1;
while (_local1 < obj.length) {
_local3 = _local3 + flash.external.ExternalInterface._toXML(obj[_local1]);
_local1++;
}
return(_local3 + "</arguments>");
};
flash.external.ExternalInterface._objectToXML = function (obj) {
var _local2 = "<object>";
for (var _local3 in obj) {
_local2 = _local2 + (((("<property id=\"" + _local3) + "\">") + flash.external.ExternalInterface._toXML(obj[_local3])) + "</property>");
}
return(_local2 + "</object>");
};
flash.external.ExternalInterface._toXML = function (value) {
var _local2 = typeof(value);
if (_local2 == "string") {
return(("<string>" + flash.external.ExternalInterface._escapeXML(value)) + "</string>");
}
if (_local2 == "undefined") {
return("<undefined/>");
}
if (_local2 == "number") {
return(("<number>" + value) + "</number>");
}
if (value == null) {
return("<null/>");
}
if (_local2 == "boolean") {
return((value ? "<true/>" : "<false/>"));
}
if (value.hasOwnProperty("length")) {
return(flash.external.ExternalInterface._arrayToXML(value));
}
if (_local2 == "object") {
return(flash.external.ExternalInterface._objectToXML(value));
}
return("<null/>");
};
flash.external.ExternalInterface._objectToAS = function (obj) {
var _local3 = {};
var _local1 = 0;
while (_local1 < obj.childNodes.length) {
if (obj.childNodes[_local1].nodeName == "property") {
_local3[obj.childNodes[_local1].attributes.id] = flash.external.ExternalInterface._toAS(obj.childNodes[_local1].firstChild);
}
_local1++;
}
return(_local3);
};
flash.external.ExternalInterface._arrayToAS = function (obj) {
var _local3 = [];
var _local1 = 0;
while (_local1 < obj.childNodes.length) {
_local3[obj.childNodes[_local1].attributes.id] = flash.external.ExternalInterface._toAS(obj.childNodes[_local1].firstChild);
_local1++;
}
return(_local3);
};
flash.external.ExternalInterface._toAS = function (obj) {
var type = obj.nodeName;
if (type == "number") {
return(Number(obj.firstChild.toString()));
}
if (type == "string") {
if ((getSWFVersion() > 8) && (String(obj.firstChild) == "null")) {
return(flash.external.ExternalInterface._unescapeXML(""));
}
return(flash.external.ExternalInterface._unescapeXML(String(obj.firstChild)));
}
if (type == "false") {
return(false);
}
if (type == "true") {
return(true);
}
if (type == "null") {
return(null);
}
if (type == "undefined") {
return(undefined);
}
if (type == "object") {
return(flash.external.ExternalInterface._objectToAS(obj));
}
if (type == "array") {
return(flash.external.ExternalInterface._arrayToAS(obj));
}
if (type == "class") {
return(eval (String(obj.firstChild)));
}
return(undefined);
};
flash.external.ExternalInterface._argumentsToAS = function (obj) {
var _local3 = [];
var _local1 = 0;
while (_local1 < obj.childNodes.length) {
_local3.push(flash.external.ExternalInterface._toAS(obj.childNodes[_local1]));
_local1++;
}
return(_local3);
};
flash.external.ExternalInterface._arrayToJS = function (value) {
var _local2 = "[";
var _local1 = 0;
while (_local1 < value.length) {
if (_local1 != 0) {
_local2 = _local2 + ",";
}
_local2 = _local2 + flash.external.ExternalInterface._toJS(value[_local1]);
_local1++;
}
return(_local2 + "]");
};
flash.external.ExternalInterface._objectToJS = function (value) {
var _local1 = "({";
var _local2 = true;
for (var _local4 in value) {
if (!_local2) {
_local1 = _local1 + ",";
}
_local2 = false;
_local1 = _local1 + ((_local4 + ":") + flash.external.ExternalInterface._toJS(value[_local4]));
}
return(_local1 + "})");
};
flash.external.ExternalInterface._toJS = function (value) {
if (typeof(value) == "string") {
return(("\"" + flash.external.ExternalInterface._jsQuoteString(flash.external.ExternalInterface._unescapeXML(value))) + "\"");
}
if (typeof(value) == "object") {
if (value instanceof Array) {
return(flash.external.ExternalInterface._arrayToJS(value));
}
return(flash.external.ExternalInterface._objectToJS(value));
}
return(String(value));
};
ASSetPropFlags(flash.external.ExternalInterface, null, 4103);
var o = null;