Section 1
//MainTimeline__Content__ (DaringDoShrink76_fla.MainTimeline__Content__)
package DaringDoShrink76_fla {
import flash.utils.*;
public class MainTimeline__Content__ extends ByteArray {
}
}//package DaringDoShrink76_fla
Section 2
//MainTimeline__LoadingAnimation__ (DaringDoShrink76_fla.MainTimeline__LoadingAnimation__)
package DaringDoShrink76_fla {
import flash.utils.*;
public class MainTimeline__LoadingAnimation__ extends ByteArray {
}
}//package DaringDoShrink76_fla
Section 3
//MainTimeline__Preloader__ (DaringDoShrink76_fla.MainTimeline__Preloader__)
package DaringDoShrink76_fla {
import flash.display.*;
import fl.rsl.*;
public class MainTimeline__Preloader__ extends MovieClip {
public var __rslPreloader:RSLPreloader;
public function MainTimeline__Preloader__():void{
addFrameScript(0, this.frame1, 1, this.frame2);
}
public function frame1():void{
var _local1:RSLInfo;
stop();
this.__rslPreloader = new RSLPreloader(this);
_local1 = new SWZInfo("7421c71f94db4f028e7528b2d278f3fe4dc21273e3cc1c663c569f102564811c");
_local1.addEntry("http://fpdownload.adobe.com/pub/swz/tlf/1.0.0.595/textLayout_1.0.0.595.swz", "http://fpdownload.adobe.com/pub/swz/crossdomain.xml");
_local1.addEntry("textLayout_1.0.0.595.swz", "");
this.__rslPreloader.addRSLInfo(_local1);
this.__rslPreloader.start(MainTimeline__LoadingAnimation__, "DaringDoShrink76_fla.MainTimeline__Content__");
}
public function frame2():void{
stop();
this.__rslPreloader.loadContent();
}
}
}//package DaringDoShrink76_fla
Section 4
//RSLErrorEvent (fl.events.RSLErrorEvent)
package fl.events {
import flash.events.*;
public class RSLErrorEvent extends ErrorEvent {
private var _rslsLoaded:int;
private var _rslsFailed:int;
private var _rslsTotal:int;
private var _failedURLs:Array;
public static const RSL_LOAD_FAILED:String = "rslLoadFailed";
public function RSLErrorEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=0, _arg5:int=0, _arg6:int=0, _arg7:Array=null){
super(_arg1, _arg2, _arg3);
this._rslsLoaded = _arg4;
this._rslsFailed = _arg5;
this._rslsTotal = _arg6;
this._failedURLs = _arg7;
}
public function get rslsLoaded():int{
return (this._rslsLoaded);
}
public function get rslsFailed():int{
return (this._rslsFailed);
}
public function get rslsTotal():int{
return (this._rslsTotal);
}
public function get failedURLs():Array{
return (this._failedURLs);
}
override public function clone():Event{
return (new RSLErrorEvent(type, bubbles, cancelable, this.rslsLoaded, this.rslsFailed, this.rslsTotal, this.failedURLs));
}
}
}//package fl.events
Section 5
//RSLEvent (fl.events.RSLEvent)
package fl.events {
import flash.events.*;
public class RSLEvent extends Event {
private var _rslsLoaded:int;
private var _rslsFailed:int;
private var _rslsTotal:int;
private var _bytesLoaded:int;
private var _bytesTotal:int;
public static const RSL_LOAD_COMPLETE:String = "rslLoadComplete";
public static const RSL_PROGRESS:String = "rslProgress";
public function RSLEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=0, _arg5:int=0, _arg6:int=0, _arg7:int=0, _arg8:int=0){
super(_arg1, _arg2, _arg3);
this._rslsLoaded = _arg4;
this._rslsFailed = _arg5;
this._rslsTotal = _arg6;
this._bytesLoaded = _arg7;
this._bytesTotal = _arg8;
}
public function get rslsLoaded():int{
return (this._rslsLoaded);
}
public function get rslsFailed():int{
return (this._rslsFailed);
}
public function get rslsTotal():int{
return (this._rslsTotal);
}
public function get bytesLoaded():int{
return (this._bytesLoaded);
}
public function get bytesTotal():int{
return (this._bytesTotal);
}
override public function clone():Event{
return (new RSLEvent(type, bubbles, cancelable, this.rslsLoaded, this.rslsFailed, this.rslsTotal, this.bytesLoaded, this.bytesTotal));
}
}
}//package fl.events
Section 6
//RSLInfo (fl.rsl.RSLInfo)
package fl.rsl {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
public class RSLInfo extends EventDispatcher {
protected var _rslURLs:Array;
protected var _policyFileURLs:Array;
protected var _index:int;
protected var _urlLoader:URLLoader;
protected var _loader:Loader;
protected var _failed:Boolean;
protected var _complete:Boolean;
public function RSLInfo(){
this._index = -1;
this._rslURLs = new Array();
this._policyFileURLs = new Array();
}
public function get loader():Loader{
return (this._loader);
}
public function get policyFileURLs():Array{
return (this._policyFileURLs);
}
public function get rslURLs():Array{
return (this._rslURLs);
}
public function get currentAttemptIndex():int{
return (this._index);
}
public function get complete():Boolean{
return (this._complete);
}
public function get failed():Boolean{
return (this._failed);
}
public function get bytesLoaded():int{
return (((this._urlLoader)==null) ? 0 : this._urlLoader.bytesLoaded);
}
public function get bytesTotal():int{
return (((this._urlLoader)==null) ? 0 : this._urlLoader.bytesTotal);
}
public function addEntry(_arg1:String, _arg2:String=null):void{
this._rslURLs.push(_arg1);
this.policyFileURLs.push(_arg2);
}
public function load():void{
var req:URLRequest;
var colonIndex:int;
var protocol:String;
req = this.getNextRequest();
if (req == null){
this._failed = true;
dispatchEvent(new IOErrorEvent(IOErrorEvent.IO_ERROR));
};
while (req != null) {
try {
if (Security.sandboxType == Security.LOCAL_WITH_FILE){
colonIndex = req.url.indexOf(":");
if (colonIndex >= 0){
protocol = req.url.substring(0, colonIndex);
if (protocol != "file"){
req = this.getNextRequest();
continue;
};
};
};
if (this._urlLoader == null){
this._urlLoader = new URLLoader();
this._urlLoader.dataFormat = URLLoaderDataFormat.BINARY;
this._urlLoader.addEventListener(ProgressEvent.PROGRESS, this.handleProgress);
this._urlLoader.addEventListener(Event.COMPLETE, this.urlLoaderComplete);
this._urlLoader.addEventListener(IOErrorEvent.IO_ERROR, this.urlLoaderError);
this._urlLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.urlLoaderError);
};
this._urlLoader.load(req);
} catch(se:SecurityError) {
req = getNextRequest();
if (req == null){
_failed = true;
};
dispatchEvent(new SecurityErrorEvent(SecurityErrorEvent.SECURITY_ERROR, false, false, se.message));
continue;
};
break;
};
if (req == null){
if (this._loader != null){
this._loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, this.loaderComplete);
this._loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, this.loaderError);
};
if (this._urlLoader != null){
this._urlLoader.removeEventListener(ProgressEvent.PROGRESS, this.handleProgress);
this._urlLoader.removeEventListener(Event.COMPLETE, this.urlLoaderComplete);
this._urlLoader.removeEventListener(IOErrorEvent.IO_ERROR, this.urlLoaderError);
this._urlLoader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this.urlLoaderError);
};
};
}
protected function getNextRequest():URLRequest{
this._index++;
if (this._index >= this.rslURLs.length){
return (null);
};
var _local1:URLRequest = new URLRequest();
_local1.url = this._rslURLs[this._index];
var _local2:String = this._policyFileURLs[this._index];
if (((((!((_local2 == null))) && ((_local2.length > 0)))) && (!((Security.sandboxType == Security.LOCAL_WITH_FILE))))){
Security.loadPolicyFile(_local2);
};
return (_local1);
}
protected function handleProgress(_arg1:ProgressEvent){
dispatchEvent(_arg1);
}
protected function urlLoaderComplete(_arg1:Event):void{
var lc:LoaderContext;
var e = _arg1;
this._urlLoader.removeEventListener(ProgressEvent.PROGRESS, this.handleProgress);
this._urlLoader.removeEventListener(Event.COMPLETE, this.urlLoaderComplete);
this._urlLoader.removeEventListener(IOErrorEvent.IO_ERROR, this.urlLoaderError);
this._urlLoader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this.urlLoaderError);
if (this._loader == null){
this._loader = new Loader();
this._loader.contentLoaderInfo.addEventListener(Event.COMPLETE, this.loaderComplete);
this._loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, this.loaderError);
};
try {
lc = new LoaderContext(false, ApplicationDomain.currentDomain);
if (lc.hasOwnProperty("allowLoadBytesCodeExecution")){
lc["allowLoadBytesCodeExecution"] = true;
};
this._loader.loadBytes(ByteArray(this._urlLoader.data), lc);
} catch(se:SecurityError) {
_failed = ((_index + 1) >= rslURLs.length);
dispatchEvent(new SecurityErrorEvent(SecurityErrorEvent.SECURITY_ERROR, false, false, se.message));
loaderError(null);
};
}
protected function urlLoaderError(_arg1:ErrorEvent):void{
this._failed = ((this._index + 1) >= this.rslURLs.length);
dispatchEvent(_arg1);
if (this._failed){
this._urlLoader.removeEventListener(ProgressEvent.PROGRESS, this.handleProgress);
this._urlLoader.removeEventListener(Event.COMPLETE, this.urlLoaderComplete);
this._urlLoader.removeEventListener(IOErrorEvent.IO_ERROR, this.urlLoaderError);
this._urlLoader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this.urlLoaderError);
} else {
this.load();
};
}
protected function loaderComplete(_arg1:Event):void{
this._loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, this.loaderComplete);
this._loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, this.loaderError);
this._complete = true;
dispatchEvent(_arg1);
}
protected function loaderError(_arg1:IOErrorEvent):void{
this._failed = ((this._index + 1) >= this.rslURLs.length);
dispatchEvent(_arg1);
if (this._failed){
this._loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, this.loaderComplete);
this._loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, this.loaderError);
} else {
this.load();
};
}
}
}//package fl.rsl
Section 7
//RSLPreloader (fl.rsl.RSLPreloader)
package fl.rsl {
import flash.events.*;
import flash.display.*;
import fl.events.*;
import flash.utils.*;
import flash.system.*;
public class RSLPreloader extends EventDispatcher {
protected var mainTimeline:MovieClip;
protected var contentClassName:String;
protected var loaderAnim:Loader;
protected var contentLoader:Loader;
protected var _rslInfoList:Array;
protected var loaderList:Array;
protected var numRSLComplete:int;
protected var numRSLFailed:int;
protected var failedURLs:Array;
protected var enterFrameClip:MovieClip;
protected var _debugWaitTime:int;
protected var debugWaitStart:int;
public function RSLPreloader(_arg1:MovieClip=null){
this.mainTimeline = _arg1;
this._rslInfoList = new Array();
this.loaderList = new Array();
this.debugWaitStart = -1;
}
public function set debugWaitTime(_arg1:int):void{
this._debugWaitTime = _arg1;
}
public function get debugWaitTime():int{
return (this._debugWaitTime);
}
public function get numRSLInfos():int{
return (this._rslInfoList.length);
}
public function getRSLInfoAt(_arg1:int):RSLInfo{
return (this._rslInfoList[_arg1]);
}
public function addRSLInfo(_arg1:RSLInfo):void{
this._rslInfoList.push(_arg1);
}
public function start(_arg1:Class=null, _arg2:String=null):void{
var loaderBytes:ByteArray;
var lc:LoaderContext;
var preloaderAnimClass = _arg1;
var contentClassName = _arg2;
this.contentClassName = contentClassName;
try {
if (((!((this.mainTimeline == null))) && (!((preloaderAnimClass == null))))){
loaderBytes = (new (preloaderAnimClass) as ByteArray);
};
} catch(e:Error) {
};
if (loaderBytes == null){
this.loadRSLFiles();
} else {
this.loaderAnim = new Loader();
this.mainTimeline.addChild(this.loaderAnim);
this.loaderAnim.contentLoaderInfo.addEventListener(Event.COMPLETE, this.loaderAnimLoaded);
this.loaderAnim.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, this.loaderAnimError);
lc = new LoaderContext(false, new ApplicationDomain());
if (lc.hasOwnProperty("allowLoadBytesCodeExecution")){
lc["allowLoadBytesCodeExecution"] = true;
};
this.loaderAnim.loadBytes(loaderBytes, lc);
};
}
public function loadContent():void{
var _local1:Class = Class(this.mainTimeline.loaderInfo.applicationDomain.getDefinition(this.contentClassName));
var _local2:ByteArray = ByteArray(new (_local1));
this.contentLoader = new Loader();
this.mainTimeline.addChild(this.contentLoader);
this.contentLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, this.contentComplete);
var _local3:LoaderContext = new LoaderContext(false, this.mainTimeline.loaderInfo.applicationDomain);
if (_local3.hasOwnProperty("allowLoadBytesCodeExecution")){
_local3["allowLoadBytesCodeExecution"] = true;
};
this.contentLoader.loadBytes(_local2, _local3);
}
protected function loaderAnimLoaded(_arg1:Event):void{
var fn:Function;
var e = _arg1;
try {
fn = (this.loaderAnim.content["setRSLPreloader"] as Function);
if (fn != null){
fn(this);
};
} catch(e:Error) {
};
this.loadRSLFiles();
}
protected function loaderAnimError(_arg1:IOErrorEvent):void{
var e = _arg1;
try {
this.mainTimeline.removeChild(this.loaderAnim);
} catch(e:Error) {
};
this.loaderAnim = null;
this.loadRSLFiles();
}
protected function loadRSLFiles(_arg1:Event=null):void{
var _local3:RSLInfo;
if (this._debugWaitTime > 0){
if (this.debugWaitStart < 0){
this.debugWaitStart = getTimer();
this.enterFrameClip = ((this.mainTimeline)==null) ? new MovieClip() : this.mainTimeline;
this.enterFrameClip.addEventListener(Event.ENTER_FRAME, this.loadRSLFiles);
return;
};
if ((getTimer() - this.debugWaitStart) < this._debugWaitTime){
return;
};
this.enterFrameClip.removeEventListener(Event.ENTER_FRAME, this.loadRSLFiles);
this.enterFrameClip = null;
};
var _local2:int;
while (_local2 < this._rslInfoList.length) {
_local3 = this._rslInfoList[_local2];
_local3.addEventListener(ProgressEvent.PROGRESS, this.handleProgress);
_local3.addEventListener(Event.COMPLETE, this.loadComplete);
_local3.addEventListener(IOErrorEvent.IO_ERROR, this.loadFailed);
_local3.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.loadFailed);
this._rslInfoList[_local2].load();
_local2++;
};
}
protected function loadComplete(_arg1:Event):void{
var _local2:RSLInfo = (_arg1.target as RSLInfo);
if (_local2 == null){
return;
};
_arg1.target.removeEventListener(ProgressEvent.PROGRESS, this.handleProgress);
_arg1.target.removeEventListener(Event.COMPLETE, this.loadComplete);
_arg1.target.removeEventListener(IOErrorEvent.IO_ERROR, this.loadFailed);
_arg1.target.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this.loadFailed);
this.numRSLComplete++;
this.loaderList.push(_local2.loader);
if ((this.numRSLComplete + this.numRSLFailed) >= this._rslInfoList.length){
this.finish();
};
}
protected function loadFailed(_arg1:ErrorEvent):void{
var _local2:RSLInfo = (_arg1.target as RSLInfo);
if (_local2 == null){
return;
};
if (_local2.failed){
_arg1.target.removeEventListener(ProgressEvent.PROGRESS, this.handleProgress);
_arg1.target.removeEventListener(Event.COMPLETE, this.loadComplete);
_arg1.target.removeEventListener(IOErrorEvent.IO_ERROR, this.loadFailed);
_arg1.target.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this.loadFailed);
this.failedURLs = ((this.failedURLs)==null) ? _local2.rslURLs : this.failedURLs.concat(_local2.rslURLs);
this.numRSLFailed++;
if ((this.numRSLComplete + this.numRSLFailed) >= this._rslInfoList.length){
this.finish();
};
};
}
protected function handleProgress(_arg1:ProgressEvent):void{
var _local2:int;
var _local3:int;
var _local5:RSLInfo;
var _local4:int;
while (_local4 < this._rslInfoList.length) {
_local5 = this._rslInfoList[_local4];
if (!_local5.failed){
_local2 = (_local2 + _local5.bytesLoaded);
_local3 = (_local3 + _local5.bytesTotal);
};
_local4++;
};
if (_local3 > 0){
dispatchEvent(new RSLEvent(RSLEvent.RSL_PROGRESS, false, false, this.numRSLComplete, this.numRSLFailed, this._rslInfoList.length, _local2, _local3));
};
}
protected function finish():void{
var calledFn:Boolean;
var fn:Function;
try {
if (this.loaderAnim != null){
if (this.numRSLFailed > 0){
fn = (this.loaderAnim.content["handleRSLError"] as Function);
if (fn != null){
fn(this.completeCallback, this.numRSLComplete, this.numRSLFailed, this.failedURLs);
calledFn = true;
};
} else {
fn = (this.loaderAnim.content["handleRSLComplete"] as Function);
if (fn != null){
fn(this.completeCallback);
calledFn = true;
};
};
};
} catch(e:Error) {
calledFn = false;
};
if (!calledFn){
this.completeCallback();
};
}
protected function completeCallback():void{
if ((((this.mainTimeline == null)) || ((this.contentClassName == null)))){
if (this.numRSLFailed > 0){
dispatchEvent(new RSLErrorEvent(RSLErrorEvent.RSL_LOAD_FAILED, false, false, this.numRSLComplete, this.numRSLFailed, this._rslInfoList.length, this.failedURLs));
} else {
dispatchEvent(new RSLEvent(RSLEvent.RSL_LOAD_COMPLETE, false, false, this.numRSLComplete, this.numRSLFailed, this._rslInfoList.length));
};
} else {
this.mainTimeline.play();
};
}
protected function contentComplete(_arg1:Event):void{
var myStage:Stage;
var e = _arg1;
if (this.loaderAnim != null){
try {
this.mainTimeline.removeChild(this.mainTimeline.getChildAt(0));
} catch(e:Error) {
};
try {
this.mainTimeline.removeChild(this.loaderAnim);
} catch(e:Error) {
};
if (this.loaderAnim.hasOwnProperty("unloadAndStop")){
this.loaderAnim.unloadAndStop(true);
} else {
this.loaderAnim.unload();
};
};
this.contentLoader.content["__rslLoaders"] = this.loaderList;
try {
myStage = (this.mainTimeline.parent as Stage);
} catch(se:SecurityError) {
myStage = null;
};
if (myStage == null){
this.mainTimeline.addChild(this.contentLoader.content);
} else {
myStage.addChildAt(this.contentLoader.content, myStage.getChildIndex(this.mainTimeline));
try {
myStage.removeChild(this.mainTimeline);
} catch(e:Error) {
};
};
try {
if (this.mainTimeline["__rslPreloader"] == this){
this.mainTimeline["__rslPreloader"] = null;
};
} catch(e:Error) {
};
}
}
}//package fl.rsl
Section 8
//SWZInfo (fl.rsl.SWZInfo)
package fl.rsl {
import flash.net.*;
public class SWZInfo extends RSLInfo {
protected var _digest:String;
public function SWZInfo(_arg1:String){
this._digest = _arg1;
}
public function get digest():String{
return (this._digest);
}
override protected function getNextRequest():URLRequest{
var _local1:URLRequest = super.getNextRequest();
if (((((((((!((_local1 == null))) && (!((this._digest == null))))) && ((this._digest.length > 0)))) && (!((_local1.url.substr(-4).toLowerCase() == ".swf"))))) && (_local1.hasOwnProperty("digest")))){
_local1.digest = this._digest;
};
return (_local1);
}
}
}//package fl.rsl