STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

A
Very
Merry Christmas!


<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/11437470?noj=FRM11437470-23DC" width="1" height="1"></div>

Sketch Blocks.swf

This is the info page for
Flash #47540

(Click the ID number above for more basic data on this flash file.)


Text
<p align="center"><font face="Journal" size="43" color="#706962" letterSpacing="0.000000" kerning="1"><b>100%</b></font></p>

GAME OVER

<p align="left"><font face="Myriad Pro" size="18" color="#000000" letterSpacing="0.000000" kerning="1">Gamelion is &nbsp;a globally operating <sbr />creative studio of more than 140 <sbr />gaming professionals committed to <sbr />creating success for our publisher <sbr />partners. Gamelion focuses in casual <sbr />games and funware with deep design <sbr />know-how and strong cross-platform <sbr />capabilities.</font></p><p align="left"></p><p align="left"><font face="Myriad Pro" size="18" color="#000000" letterSpacing="0.000000" kerning="1">Check our past developments or <sbr />contact us to learn more about <sbr />Gamelion.</font></p><p align="left"></p><p align="left"><font face="Myriad Pro" size="20" color="#000000" letterSpacing="0.000000" kerning="1"><a href="http://www.game-lion.com/" target = "_blank"><b>www.game-lion.com</b></a></font></p><p align="left"><font face="Myriad Pro" size="20" color="#000000" letterSpacing="0.000000" kerning="1"><a href="http://www.playlion.pl/" target = "_blank"><b>www.playlion.pl</b></a></font></p>

<p align="left"><font face="Myriad Pro" size="18" color="#000000" letterSpacing="0.000000" kerning="1">Gamelion is &nbsp;a globally operating <sbr />creative studio of more than 140 <sbr />gaming professionals committed to <sbr />creating success for our publisher <sbr />partners. Gamelion focuses in casual <sbr />games and funware with deep design <sbr />know-how and strong cross-platform <sbr />capabilities.</font></p><p align="left"></p><p align="left"><font face="Myriad Pro" size="18" color="#000000" letterSpacing="0.000000" kerning="1">Check our past developments or <sbr />contact us to learn more about <sbr />Gamelion.</font></p><p align="left"></p><p align="left"><font face="Myriad Pro" size="20" color="#000000" letterSpacing="0.000000" kerning="1"><a href="http://www.game-lion.com" target = "_blank"><b>www.game-lion.com</b></a></font></p><p align="left"><font face="Myriad Pro" size="20" color="#000000" letterSpacing="0.000000" kerning="1"><a href="http://www.playlion.pl/" target = "_blank"><b>www.playlion.pl</b></a></font></p>

ActionScript [AS3]

Section 1
//ImageItem (br.com.stimuli.loading.loadingtypes.ImageItem) package br.com.stimuli.loading.loadingtypes { import flash.events.*; import flash.display.*; import br.com.stimuli.loading.*; import flash.net.*; import flash.utils.*; public class ImageItem extends LoadingItem { public var loader:Loader; public function ImageItem(_arg1:URLRequest, _arg2:String, _arg3:String){ specificAvailableProps = [BulkLoader.CONTEXT]; super(_arg1, _arg2, _arg3); } override public function onErrorHandler(_arg1:Event):void{ super.onErrorHandler(_arg1); } override public function stop():void{ try { if (loader){ loader.close(); }; } catch(e:Error) { }; super.stop(); } override public function load():void{ super.load(); loader = new Loader(); loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler, false, 0, true); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler, false, 0, true); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false, 100, true); loader.contentLoaderInfo.addEventListener(Event.OPEN, onStartedHandler, false, 0, true); loader.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false, 0, true); loader.load(url, context); } override public function destroy():void{ stop(); cleanListeners(); _content = null; loader = null; } override public function _parseOptions(_arg1:Object):Array{ context = ((_arg1[BulkLoader.CONTEXT]) || (null)); return (super._parseOptions(_arg1)); } override public function isImage():Boolean{ return ((type == BulkLoader.TYPE_IMAGE)); } override public function onCompleteHandler(_arg1:Event):void{ _content = loader.content; super.onCompleteHandler(_arg1); } override public function cleanListeners():void{ var _local1:Object; if (loader){ _local1 = loader.contentLoaderInfo; _local1.removeEventListener(ProgressEvent.PROGRESS, onProgressHandler, false); _local1.removeEventListener(Event.COMPLETE, onCompleteHandler, false); _local1.removeEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false); _local1.removeEventListener(BulkLoader.OPEN, onStartedHandler, false); _local1.removeEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false); }; } override public function isSWF():Boolean{ return ((type == BulkLoader.TYPE_MOVIECLIP)); } public function _onHttpStatusHandler(_arg1:HTTPStatusEvent):void{ _httpStatus = _arg1.status; dispatchEvent(_arg1); } } }//package br.com.stimuli.loading.loadingtypes
Section 2
//LoadingItem (br.com.stimuli.loading.loadingtypes.LoadingItem) package br.com.stimuli.loading.loadingtypes { import flash.events.*; import flash.display.*; import br.com.stimuli.loading.*; import flash.net.*; import flash.utils.*; public class LoadingItem extends EventDispatcher { public var _priority:int;// = 0 public var specificAvailableProps:Array; public var preventCache:Boolean; public var _responseTime:Number; public var _uid:String; public var propertyParsingErrors:Array; public var maxTries:int;// = 3 public var _bytesLoaded:int;// = 0 public var _type:String; public var _percentLoaded:Number; public var _isLoaded:Boolean; public var context;// = null public var _totalTime:int; public var numTries:int;// = 0 public var _additionIndex:int; public var _bytesTotal:int;// = -1 public var _id:String; public var _latency:Number; public var _httpStatus:int;// = -1 public var _content; public var _isLoading:Boolean; public var _speed:Number; public var _startTime:int; public var _weightPercentLoaded:Number; public var _bytesRemaining:int;// = 10000000 public var url:URLRequest; public var status:String; public var _addedTime:int; public var _timeToDownload:int; public var weight:int;// = 1 public static const STATUS_STOPPED:String = "stopped"; public static const STATUS_STARTED:String = "started"; public static const STATUS_ERROR:String = "error"; public static const STATUS_FINISHED:String = "finished"; public function LoadingItem(_arg1:URLRequest, _arg2:String, _arg3:String){ this._type = _arg2; this.url = _arg1; if (!specificAvailableProps){ specificAvailableProps = []; }; this._uid = _arg3; } public function stop():void{ if (_isLoaded){ return; }; status = STATUS_STOPPED; _isLoading = false; } public function onProgressHandler(_arg1):void{ _bytesLoaded = _arg1.bytesLoaded; _bytesTotal = _arg1.bytesTotal; _bytesRemaining = (_bytesTotal - bytesLoaded); _percentLoaded = (_bytesLoaded / _bytesTotal); _weightPercentLoaded = (_percentLoaded * weight); dispatchEvent(_arg1); } public function isSound():Boolean{ return (false); } public function isText():Boolean{ return (false); } public function get weightPercentLoaded():Number{ return (_weightPercentLoaded); } public function get latency():Number{ return (_latency); } public function get content(){ return (_content); } public function isXML():Boolean{ return (false); } public function get percentLoaded():Number{ return (_percentLoaded); } public function load():void{ var _local1:String; if (preventCache){ _local1 = ((("BulkLoaderNoCache=" + _uid) + "_") + int(((Math.random() * 100) * getTimer()))); if (url.url.indexOf("?") == -1){ url.url = (url.url + ("?" + _local1)); } else { url.url = (url.url + ("&" + _local1)); }; }; _isLoading = true; _startTime = getTimer(); } public function onErrorHandler(_arg1:Event):void{ var _local2:BulkErrorEvent; numTries++; status = STATUS_ERROR; _arg1.stopPropagation(); if (numTries >= maxTries){ _local2 = new BulkErrorEvent(BulkErrorEvent.ERROR); _local2.errors = [this]; dispatchEvent(_local2); } else { status = null; load(); }; } public function get startTime():int{ return (_startTime); } public function isStreamable():Boolean{ return (false); } public function get bytesTotal():int{ return (_bytesTotal); } public function onHttpStatusHandler(_arg1:HTTPStatusEvent):void{ _httpStatus = _arg1.status; dispatchEvent(_arg1); } public function get responseTime():Number{ return (_responseTime); } public function get priority():int{ return (_priority); } public function get id():String{ return (_id); } public function onCompleteHandler(_arg1:Event):void{ _totalTime = getTimer(); _timeToDownload = ((_totalTime - _responseTime) / 1000); if (_timeToDownload == 0){ _timeToDownload = 0.2; }; _speed = BulkLoader.truncateNumber(((bytesTotal / 0x0400) / _timeToDownload)); if (_timeToDownload == 0){ _speed = 3000; }; status = STATUS_FINISHED; _isLoaded = true; dispatchEvent(_arg1); _arg1.stopPropagation(); } public function get totalTime():int{ return (_totalTime); } public function get type():String{ return (_type); } public function _parseOptions(_arg1:Object):Array{ var _local3:String; preventCache = _arg1[BulkLoader.PREVENT_CACHING]; _id = _arg1[BulkLoader.ID]; _priority = ((int(_arg1[BulkLoader.PRIORITY])) || (0)); maxTries = ((_arg1[BulkLoader.MAX_TRIES]) || (3)); weight = ((int(_arg1[BulkLoader.WEIGHT])) || (1)); var _local2:Array = BulkLoader.GENERAL_AVAILABLE_PROPS.concat(specificAvailableProps); propertyParsingErrors = []; for (_local3 in _arg1) { if (_local2.indexOf(_local3) == -1){ propertyParsingErrors.push(((((this + ": got a wrong property name: ") + _local3) + ", with value:") + _arg1[_local3])); }; }; return (propertyParsingErrors); } public function get speed():Number{ return (_speed); } public function onStartedHandler(_arg1:Event):void{ _responseTime = getTimer(); _latency = BulkLoader.truncateNumber(((_responseTime - _startTime) / 1000)); status = STATUS_STARTED; dispatchEvent(_arg1); } public function isImage():Boolean{ return (false); } public function get bytesRemaining():int{ return (_bytesRemaining); } public function get bytesLoaded():int{ return (_bytesLoaded); } public function isLoader():Boolean{ return (false); } public function get timeToDownload():int{ return (_timeToDownload); } public function get httpStatus():int{ return (_httpStatus); } public function get isLoaded():Boolean{ return (_isLoaded); } public function getStats():String{ return ((((((((((("Item url:" + url.url) + ", total time: ") + _timeToDownload) + "(s), latency:") + _latency) + "(s), speed: ") + _speed) + " kb/s, size: ") + BulkLoader.truncateNumber((_bytesTotal / 0x0400))) + " kb")); } override public function toString():String{ return (((((("LoadingItem url: " + url.url) + ", type:") + _type) + ", status: ") + status)); } public function isVideo():Boolean{ return (false); } public function destroy():void{ _content = null; } public function get addedTime():int{ return (_addedTime); } public function cleanListeners():void{ } public function isSWF():Boolean{ return (false); } } }//package br.com.stimuli.loading.loadingtypes
Section 3
//SoundItem (br.com.stimuli.loading.loadingtypes.SoundItem) package br.com.stimuli.loading.loadingtypes { import flash.events.*; import br.com.stimuli.loading.*; import flash.media.*; import flash.net.*; public class SoundItem extends LoadingItem { public var loader:Sound; public function SoundItem(_arg1:URLRequest, _arg2:String, _arg3:String){ specificAvailableProps = [BulkLoader.CONTEXT]; super(_arg1, _arg2, _arg3); } override public function onErrorHandler(_arg1:Event):void{ super.onErrorHandler(_arg1); } override public function stop():void{ try { if (loader){ loader.close(); }; } catch(e:Error) { }; super.stop(); } override public function isStreamable():Boolean{ return (true); } override public function isSound():Boolean{ return (true); } override public function load():void{ super.load(); loader = new Sound(); loader.addEventListener(ProgressEvent.PROGRESS, onProgressHandler, false, 0, true); loader.addEventListener(Event.COMPLETE, onCompleteHandler, false, 0, true); loader.addEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false, 0, true); loader.addEventListener(Event.OPEN, onStartedHandler, false, 0, true); loader.load(url, context); } override public function onStartedHandler(_arg1:Event):void{ _content = loader; super.onStartedHandler(_arg1); } override public function destroy():void{ cleanListeners(); stop(); _content = null; loader = null; } override public function _parseOptions(_arg1:Object):Array{ context = ((_arg1[BulkLoader.CONTEXT]) || (null)); return (super._parseOptions(_arg1)); } override public function onCompleteHandler(_arg1:Event):void{ _content = loader; super.onCompleteHandler(_arg1); } override public function cleanListeners():void{ if (loader){ loader.removeEventListener(ProgressEvent.PROGRESS, onProgressHandler, false); loader.removeEventListener(Event.COMPLETE, onCompleteHandler, false); loader.removeEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false); loader.removeEventListener(BulkLoader.OPEN, onStartedHandler, false); }; } } }//package br.com.stimuli.loading.loadingtypes
Section 4
//URLItem (br.com.stimuli.loading.loadingtypes.URLItem) package br.com.stimuli.loading.loadingtypes { import flash.events.*; import br.com.stimuli.loading.*; import flash.net.*; public class URLItem extends LoadingItem { public var loader:URLLoader; public function URLItem(_arg1:URLRequest, _arg2:String, _arg3:String){ super(_arg1, _arg2, _arg3); } override public function stop():void{ try { if (loader){ loader.close(); }; } catch(e:Error) { }; super.stop(); } override public function cleanListeners():void{ if (loader){ loader.removeEventListener(ProgressEvent.PROGRESS, onProgressHandler, false); loader.removeEventListener(Event.COMPLETE, onCompleteHandler, false); loader.removeEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false); loader.removeEventListener(BulkLoader.OPEN, onStartedHandler, false); loader.removeEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false); }; } override public function load():void{ super.load(); loader = new URLLoader(); loader.addEventListener(ProgressEvent.PROGRESS, onProgressHandler, false, 0, true); loader.addEventListener(Event.COMPLETE, onCompleteHandler, false, 0, true); loader.addEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false, 0, true); loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false, 0, true); loader.addEventListener(Event.OPEN, onStartedHandler, false, 0, true); loader.load(url); } override public function isText():Boolean{ return (true); } override public function onStartedHandler(_arg1:Event):void{ super.onStartedHandler(_arg1); } override public function onCompleteHandler(_arg1:Event):void{ _content = loader.data; super.onCompleteHandler(_arg1); } override public function _parseOptions(_arg1:Object):Array{ return (super._parseOptions(_arg1)); } override public function destroy():void{ stop(); cleanListeners(); _content = null; loader = null; } } }//package br.com.stimuli.loading.loadingtypes
Section 5
//VideoItem (br.com.stimuli.loading.loadingtypes.VideoItem) package br.com.stimuli.loading.loadingtypes { import flash.events.*; import flash.display.*; import br.com.stimuli.loading.*; import flash.net.*; import flash.utils.*; public class VideoItem extends LoadingItem { var stream:NetStream; private var dummyEventTrigger:Sprite; var pausedAtStart:Boolean;// = false private var _metaData:Object; private var _canBeginStreaming:Boolean;// = false private var nc:NetConnection; private var _checkPolicyFile:Boolean; public function VideoItem(_arg1:URLRequest, _arg2:String, _arg3:String){ specificAvailableProps = [BulkLoader.CHECK_POLICY_FILE, BulkLoader.PAUSED_AT_START]; super(_arg1, _arg2, _arg3); } public function get checkPolicyFile():Object{ return (_checkPolicyFile); } override public function onStartedHandler(_arg1:Event):void{ _content = stream; if (((pausedAtStart) && (stream))){ stream.pause(); }; super.onStartedHandler(_arg1); } override public function stop():void{ try { if (stream){ stream.close(); }; } catch(e:Error) { }; super.stop(); } override public function _parseOptions(_arg1:Object):Array{ pausedAtStart = ((_arg1[BulkLoader.PAUSED_AT_START]) || (false)); _checkPolicyFile = ((_arg1[BulkLoader.CHECK_POLICY_FILE]) || (false)); return (super._parseOptions(_arg1)); } private function fireCanBeginStreamingEvent():void{ if (_canBeginStreaming){ return; }; _canBeginStreaming = true; var _local1:Event = new Event(BulkLoader.CAN_BEGIN_PLAYING); dispatchEvent(_local1); } public function get metaData():Object{ return (_metaData); } function onNetStatus(_arg1:NetStatusEvent):void{ var _local2:Event; if (!stream){ return; }; stream.removeEventListener(NetStatusEvent.NET_STATUS, onNetStatus, false); if (_arg1.info.code == "NetStream.Play.Start"){ _content = stream; _local2 = new Event(Event.OPEN); onStartedHandler(_local2); } else { if (_arg1.info.code == "NetStream.Play.StreamNotFound"){ onErrorHandler(_arg1); }; }; } override public function isStreamable():Boolean{ return (true); } override public function load():void{ super.load(); nc = new NetConnection(); nc.connect(null); stream = new NetStream(nc); stream.addEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false, 0, true); stream.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus, false, 0, true); dummyEventTrigger = new Sprite(); dummyEventTrigger.addEventListener(Event.ENTER_FRAME, createNetStreamEvent, false, 0, true); var customClient:Object = new Object(); customClient.onCuePoint = function (... _args):void{ }; customClient.onMetaData = onVideoMetadata; customClient.onPlayStatus = function (... _args):void{ }; stream.client = customClient; stream.play(url.url, _checkPolicyFile); stream.seek(0); } function onVideoMetadata(_arg1):void{ _metaData = _arg1; } override public function onCompleteHandler(_arg1:Event):void{ _content = stream; super.onCompleteHandler(_arg1); } override public function cleanListeners():void{ if (stream){ stream.removeEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false); stream.removeEventListener(NetStatusEvent.NET_STATUS, onNetStatus, false); }; if (dummyEventTrigger){ dummyEventTrigger.removeEventListener(Event.ENTER_FRAME, createNetStreamEvent, false); dummyEventTrigger = null; }; } override public function isVideo():Boolean{ return (true); } public function createNetStreamEvent(_arg1:Event):void{ var _local2:Event; var _local3:Event; var _local4:ProgressEvent; var _local5:int; var _local6:Number; var _local7:Number; var _local8:Number; if ((((_bytesTotal == _bytesLoaded)) && ((_bytesTotal > 8)))){ if (dummyEventTrigger){ dummyEventTrigger.removeEventListener(Event.ENTER_FRAME, createNetStreamEvent, false); }; _local2 = new Event(Event.COMPLETE); onCompleteHandler(_local2); } else { if ((((_bytesTotal == 0)) && ((stream.bytesTotal > 4)))){ _local3 = new Event(Event.OPEN); onStartedHandler(_local3); _bytesLoaded = stream.bytesLoaded; _bytesTotal = stream.bytesTotal; } else { if (stream){ _local4 = new ProgressEvent(ProgressEvent.PROGRESS, false, false, stream.bytesLoaded, stream.bytesTotal); if (((((isVideo()) && (metaData))) && (!(_canBeginStreaming)))){ _local5 = (getTimer() - responseTime); _local6 = (bytesLoaded / (_local5 / 1000)); _local7 = (_bytesRemaining / (_local6 * 0.8)); _local8 = (metaData.duration - stream.bufferLength); if (_local8 > _local7){ fireCanBeginStreamingEvent(); }; }; super.onProgressHandler(_local4); }; }; }; } override public function destroy():void{ if (stream){ }; stop(); cleanListeners(); stream = null; super.destroy(); } } }//package br.com.stimuli.loading.loadingtypes
Section 6
//XMLItem (br.com.stimuli.loading.loadingtypes.XMLItem) package br.com.stimuli.loading.loadingtypes { import flash.events.*; import br.com.stimuli.loading.*; import flash.net.*; public class XMLItem extends LoadingItem { public var loader:URLLoader; public function XMLItem(_arg1:URLRequest, _arg2:String, _arg3:String){ super(_arg1, _arg2, _arg3); } override public function onErrorHandler(_arg1:Event):void{ super.onErrorHandler(_arg1); } override public function stop():void{ try { if (loader){ loader.close(); }; } catch(e:Error) { }; super.stop(); } override public function cleanListeners():void{ if (loader){ loader.removeEventListener(ProgressEvent.PROGRESS, onProgressHandler, false); loader.removeEventListener(Event.COMPLETE, onCompleteHandler, false); loader.removeEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false); loader.removeEventListener(BulkLoader.OPEN, onStartedHandler, false); loader.removeEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false); }; } override public function load():void{ super.load(); loader = new URLLoader(); loader.addEventListener(ProgressEvent.PROGRESS, onProgressHandler, false, 0, true); loader.addEventListener(Event.COMPLETE, onCompleteHandler, false, 0, true); loader.addEventListener(IOErrorEvent.IO_ERROR, onErrorHandler, false, 0, true); loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, super.onHttpStatusHandler, false, 0, true); loader.addEventListener(Event.OPEN, onStartedHandler, false, 0, true); loader.load(url); } override public function isText():Boolean{ return (true); } override public function onStartedHandler(_arg1:Event):void{ super.onStartedHandler(_arg1); } override public function onCompleteHandler(_arg1:Event):void{ _content = new XML(loader.data); super.onCompleteHandler(_arg1); } override public function _parseOptions(_arg1:Object):Array{ return (super._parseOptions(_arg1)); } override public function destroy():void{ stop(); cleanListeners(); _content = null; loader = null; } } }//package br.com.stimuli.loading.loadingtypes
Section 7
//BulkErrorEvent (br.com.stimuli.loading.BulkErrorEvent) package br.com.stimuli.loading { import flash.events.*; public class BulkErrorEvent extends Event { public var name:String; public var errors:Array; public static const ERROR:String = "error"; public function BulkErrorEvent(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); this.name = _arg1; } override public function toString():String{ return (super.toString()); } override public function clone():Event{ var _local1:BulkErrorEvent = new BulkErrorEvent(name, bubbles, cancelable); _local1.errors = (errors) ? errors.slice() : []; return (_local1); } } }//package br.com.stimuli.loading
Section 8
//BulkLoader (br.com.stimuli.loading.BulkLoader) package br.com.stimuli.loading { import flash.events.*; import flash.display.*; import flash.media.*; import br.com.stimuli.loading.loadingtypes.*; import flash.net.*; import flash.utils.*; public class BulkLoader extends EventDispatcher { public var _itemsTotal:int;// = 0 public var speedAvg:Number; public var _numConnections:int;// = 7 public var _totalWeight:int;// = 0 public var _bytesTotalCurrent:int;// = 0 public var _itemsLoaded:int;// = 0 public var totalTime:Number; public var _additionIndex:int;// = 0 public var _bytesTotal:int;// = 0 public var _loadedRatio:Number;// = 0 public var _speed:Number; public var _lastSpeedCheck:int; public var _isPaused:Boolean;// = true public var _isFinished:Boolean; public var _name:String; public var _allowsAutoIDFromFileName:Boolean;// = false public var _contents:Dictionary; public var _logFunction:Function; public var _bytesLoaded:int;// = 0 public var _connections:Array; public var logLevel:int;// = 20 public var _percentLoaded:Number;// = 0 public var _weightPercent:Number; public var _lastBytesCheck:int; public var _isRunning:Boolean; public var _id:int; public var _items:Array; public var _stringSubstitutions:Object; public var avgLatency:Number; public var _startTime:int; public var _speedTotal:Number; public var _endTIme:int; public static const LOG_INFO:int = 2; public static const HTTP_STATUS:String = "httpStatus"; public static const CONTEXT:String = "context"; public static const CAN_BEGIN_PLAYING:String = "canBeginPlaying"; public static const TYPE_VIDEO:String = "video"; public static const TYPE_TEXT:String = "text"; public static const TYPE_MOVIECLIP:String = "movieclip"; public static const PREVENT_CACHING:String = "preventCache"; public static const PAUSED_AT_START:String = "pausedAtStart"; public static const TYPE_SOUND:String = "sound"; public static const PROGRESS:String = "progress"; public static const DEFAULT_LOG_LEVEL:int = 20; public static const ID:String = "id"; public static const CHECK_POLICY_FILE:String = "checkPolicyFile"; public static const COMPLETE:String = "complete"; public static const PRIORITY:String = "priority"; public static const MAX_TRIES:String = "maxTries"; public static const VERSION:String = "rev 196 (0.9.9.4)"; public static const AVAILABLE_TYPES:Array = [TYPE_VIDEO, TYPE_XML, TYPE_TEXT, TYPE_SOUND, TYPE_MOVIECLIP, TYPE_IMAGE]; public static const LOG_VERBOSE:int = 0; public static const OPEN:String = "open"; public static const LOG_WARNINGS:int = 3; public static const DEFAULT_NUM_CONNECTIONS:int = 7; public static const GENERAL_AVAILABLE_PROPS:Array = [WEIGHT, MAX_TRIES, HEADERS, ID, PRIORITY, PREVENT_CACHING, "type"]; public static const LOG_SILENT:int = 10; public static const ERROR:String = "error"; public static const HEADERS:String = "headers"; public static const LOG_ERRORS:int = 4; public static const TYPE_IMAGE:String = "image"; public static const TYPE_XML:String = "xml"; public static const WEIGHT:String = "weight"; public static var IMAGE_EXTENSIONS:Array = ["jpg", "jpeg", "gif", "png"]; public static var _customTypesExtensions:Object; public static var MOVIECLIP_EXTENSIONS:Array = ["swf"]; public static var XML_EXTENSIONS:Array = ["xml"]; public static var _typeClasses:Object = {image:ImageItem, movieclip:ImageItem, xml:XMLItem, video:VideoItem, sound:SoundItem, text:URLItem}; public static var TEXT_EXTENSIONS:Array = ["txt", "js", "php", "asp", "py"]; public static var _instancesCreated:int = 0; public static var AVAILABLE_EXTENSIONS:Array = ["swf", "jpg", "jpeg", "gif", "png", "flv", "mp3", "xml", "txt", "js"]; public static var SOUND_EXTENSIONS:Array = ["mp3", "f4a", "f4b"]; public static var VIDEO_EXTENSIONS:Array = ["flv", "f4v", "f4p"]; public static var _allLoaders:Object = {}; public function BulkLoader(_arg1:String, _arg2:int=7, _arg3:int=20){ _items = []; _contents = new Dictionary(); _logFunction = trace; super(); if (Boolean(_allLoaders[_arg1])){ __debug_print_loaders(); throw (new Error((("BulkLoader with name'" + _arg1) + "' has already been created."))); }; if (!_arg1){ throw (new Error("Cannot create a BulkLoader instance without a name")); }; _allLoaders[_arg1] = this; if (_arg2 > 0){ this._numConnections = _arg2; }; this.logLevel = _arg3; _name = _arg1; _instancesCreated++; _id = _instancesCreated; _additionIndex = 0; } public function get allowsAutoIDFromFileName():Boolean{ return (_allowsAutoIDFromFileName); } public function set allowsAutoIDFromFileName(_arg1:Boolean):void{ _allowsAutoIDFromFileName = _arg1; } public function get loadedRatio():Number{ return (_loadedRatio); } public function loadNow(_arg1):Boolean{ var _local2:LoadingItem; var _local3:LoadingItem; if ((_arg1 is LoadingItem)){ _local2 = _arg1; } else { _local2 = get(_arg1); }; if (!_local2){ return (false); }; if (!_connections){ _connections = []; }; if ((((_local2.status == LoadingItem.STATUS_FINISHED)) || ((_local2.status == LoadingItem.STATUS_STARTED)))){ return (true); }; if (_connections.length >= numConnections){ _local3 = _getLeastUrgentOpenedItem(); _removeFromConnections(_local3); _local3.status = null; }; _local2._priority = highestPriority; _loadNext(_local2); return (true); } public function _onItemComplete(_arg1:Event):void{ var _local2:LoadingItem = (_arg1.target as LoadingItem); _removeFromConnections(_local2); log("Loaded ", _local2, LOG_INFO); log("Items to load", getNotLoadedItems(), LOG_VERBOSE); _local2.cleanListeners(); _contents[_local2.url.url] = _local2.content; var _local3:Boolean = _loadNext(); var _local4:Boolean = _isAllDoneP(); _itemsLoaded++; if (_local4){ _onAllLoaded(); }; } public function _getContentAsType(_arg1, _arg2:Class, _arg3:Boolean=false){ var res:*; var key = _arg1; var type = _arg2; var clearMemory = _arg3; if (!_name){ throw (new Error("[BulkLoader] Cannot use an instance that has been cleared from memory (.clear())")); }; var item:LoadingItem = get(key); if (!item){ return (null); }; try { if (((item._isLoaded) || (((item.isStreamable()) && ((item.status == LoadingItem.STATUS_STARTED)))))){ res = (item.content as type); if (res == null){ throw (new Error("bad cast")); }; if (clearMemory){ remove(key); }; return (res); }; } catch(e:Error) { log((("Failed to get content with url: '" + key) + "'as type:"), type, LOG_ERRORS); }; return (null); } public function set stringSubstitutions(_arg1:Object):void{ _stringSubstitutions = _arg1; } public function get contents():Object{ return (_contents); } public function get id():int{ return (_id); } public function getBitmap(_arg1:String, _arg2:Boolean=false):Bitmap{ return (Bitmap(_getContentAsType(_arg1, Bitmap, _arg2))); } public function _removeFromConnections(_arg1):Boolean{ if (!_connections){ return (false); }; var _local2:int = _connections.indexOf(_arg1); if (_local2 > -1){ _connections.splice(_local2, 1); return (true); }; return (false); } public function resume(_arg1):Boolean{ var _local2:LoadingItem = ((_arg1 is LoadingItem)) ? _arg1 : get(_arg1); _isPaused = false; if (((_local2) && ((_local2.status == LoadingItem.STATUS_STOPPED)))){ _local2.status = null; _loadNext(); return (true); }; return (false); } public function _onAllLoaded():void{ if (_isFinished){ return; }; var _local1:BulkProgressEvent = new BulkProgressEvent(COMPLETE); _local1.setInfo(bytesLoaded, bytesTotal, bytesTotalCurrent, _itemsLoaded, itemsTotal, weightPercent); var _local2:BulkProgressEvent = new BulkProgressEvent(PROGRESS); _local2.setInfo(bytesLoaded, bytesTotal, bytesTotalCurrent, _itemsLoaded, itemsTotal, weightPercent); _isRunning = false; _endTIme = getTimer(); totalTime = BulkLoader.truncateNumber(((_endTIme - _startTime) / 1000)); _updateStats(); _connections = []; getStats(); _isFinished = true; log("Finished all", LOG_INFO); dispatchEvent(_local2); dispatchEvent(_local1); } public function removePausedItems():Boolean{ var stoppedLoads:Array = _items.filter(function (_arg1:LoadingItem, ... _args):Boolean{ return ((_arg1.status == LoadingItem.STATUS_STOPPED)); }); stoppedLoads.forEach(function (_arg1:LoadingItem, ... _args):void{ remove(_arg1); }); _loadNext(); return ((stoppedLoads.length > 0)); } public function resumeAll():Boolean{ log("Resuming all items", LOG_VERBOSE); var affected:Boolean; _items.forEach(function (_arg1:LoadingItem, ... _args):void{ if (_arg1.status == LoadingItem.STATUS_STOPPED){ resume(_arg1); affected = true; }; }); _loadNext(); return (affected); } public function get isRunning():Boolean{ return (_isRunning); } public function getNetStreamMetaData(_arg1:String, _arg2:Boolean=false):Object{ var _local3:NetStream = getNetStream(_arg1, _arg2); return ((Boolean(_local3)) ? (get(_arg1) as Object).metaData : null); } public function get logFunction():Function{ return (_logFunction); } public function getProgressForItems(_arg1:Array):BulkProgressEvent{ var _local11:LoadingItem; var _local13:*; _bytesLoaded = (_bytesTotal = (_bytesTotalCurrent = 0)); var _local2:Number = 0; var _local3:int; var _local4:int; var _local5:Number = 0; var _local6:int; var _local7:int; var _local8:int; var _local9:int; var _local10:int; var _local12:Array = []; for each (_local13 in _arg1) { _local11 = ((_local13 is LoadingItem)) ? _local13 : get(_local13); if (!_local11){ } else { _local6++; _local3 = (_local3 + _local11.weight); if ((((((_local11.status == LoadingItem.STATUS_STARTED)) || ((_local11.status == LoadingItem.STATUS_FINISHED)))) || ((_local11.status == LoadingItem.STATUS_STOPPED)))){ _local8 = (_local8 + _local11._bytesLoaded); _local10 = (_local10 + _local11._bytesTotal); _local5 = (_local5 + ((_local11._bytesLoaded / _local11._bytesTotal) * _local11.weight)); if (_local11.status == LoadingItem.STATUS_FINISHED){ _local7++; }; _local4++; }; }; }; if (_local4 != _local6){ _local9 = Number.POSITIVE_INFINITY; } else { _local9 = _local10; }; _local2 = (_local5 / _local3); if (_local3 == 0){ _local2 = 0; }; var _local14:BulkProgressEvent = new BulkProgressEvent(PROGRESS); _local14.setInfo(_local8, _local9, _local9, _local7, _local6, _local2); return (_local14); } public function getContent(_arg1:String, _arg2:Boolean=false){ return (_getContentAsType(_arg1, Object, _arg2)); } public function getSerializedData(_arg1, _arg2:Boolean=false, _arg3:Function=null){ var raw:*; var parsed:*; var key = _arg1; var clearMemory = _arg2; var encodingFunction = _arg3; try { raw = _getContentAsType(key, Object, clearMemory); parsed = encodingFunction.apply(null, [raw]); return (parsed); } catch(e:Error) { log("Failed to parse key:", key, ("with encodingFunction:" + encodingFunction), LOG_ERRORS); }; return (null); } public function log(... _args):void{ var _local2:int = (isNaN(_args[(_args.length - 1)])) ? 3 : int(_args.pop()); if (_local2 >= logLevel){ _logFunction(("[BulkLoader] " + _args.join(" "))); }; } public function clear():void{ removeAll(); delete _allLoaders[name]; _name = null; } public function get speed():Number{ var _local1:int = (getTimer() - _lastSpeedCheck); var _local2:int = ((bytesLoaded - _lastBytesCheck) / 0x0400); var _local3:int = (_local2 / (_local1 / 1000)); _lastSpeedCheck = _local1; _lastBytesCheck = bytesLoaded; return (_local3); } public function get bytesLoaded():int{ return (_bytesLoaded); } public function _loadNext(_arg1:LoadingItem=null):Boolean{ var checkItem:LoadingItem; var toLoad = _arg1; if (_isFinished){ return (false); }; if (!_connections){ _connections = []; }; _connections.forEach(function (_arg1:LoadingItem, ... _args):void{ if ((((_arg1.status == LoadingItem.STATUS_ERROR)) && ((_arg1.numTries < _arg1.maxTries)))){ _removeFromConnections(_arg1); }; }); var next:Boolean; if (!toLoad){ for each (checkItem in _items) { if (((!(checkItem._isLoading)) && (!((checkItem.status == LoadingItem.STATUS_STOPPED))))){ toLoad = checkItem; break; }; }; }; if (toLoad){ next = true; _isRunning = true; if (_connections.length < numConnections){ _connections.push(toLoad); toLoad.load(); log("Will load item:", toLoad, LOG_INFO); }; if (_connections.length < numConnections){ _loadNext(); }; }; return (next); } public function getSound(_arg1, _arg2:Boolean=false):Sound{ return (Sound(_getContentAsType(_arg1, Sound, _arg2))); } public function removeFailedItems():int{ var numCleared:int; var badItems:Array = _items.filter(function (_arg1:LoadingItem, ... _args):Boolean{ return ((_arg1.status == LoadingItem.STATUS_ERROR)); }); numCleared = badItems.length; badItems.forEach(function (_arg1:LoadingItem, ... _args):void{ remove(_arg1); }); _loadNext(); return (numCleared); } public function get(_arg1):LoadingItem{ var _local2:LoadingItem; if (!_arg1){ return (null); }; for each (_local2 in _items) { if ((((((((_local2._id == _arg1)) || ((_local2.url.url == _arg1)))) || ((_local2.url == _arg1)))) || ((((_arg1 is URLRequest)) && ((_local2.url.url == _arg1.url)))))){ return (_local2); }; }; return (null); } public function get highestPriority():int{ var _local2:LoadingItem; var _local1:int = int.MIN_VALUE; for each (_local2 in _items) { if (_local2.priority > _local1){ _local1 = _local2.priority; }; }; return (_local1); } public function start(_arg1:int=-1):void{ if (_arg1 > 0){ _numConnections = _arg1; }; if (_connections){ _loadNext(); return; }; _startTime = getTimer(); _connections = []; _loadNext(); _isRunning = true; _lastBytesCheck = 0; _lastSpeedCheck = getTimer(); _isPaused = false; } public function _getLeastUrgentOpenedItem():LoadingItem{ var _local1:LoadingItem = LoadingItem(_connections.sortOn(["priority", "bytesRemaining", "_additionIndex"], [Array.NUMERIC, Array.DESCENDING, Array.NUMERIC, Array.NUMERIC])[0]); return (_local1); } public function get itemsTotal():int{ return (items.length); } public function getBitmapData(_arg1, _arg2:Boolean=false):BitmapData{ var key = _arg1; var clearMemory = _arg2; try { return (getBitmap(key, clearMemory).bitmapData); } catch(e:Error) { log("Failed to get bitmapData with url:", key, LOG_ERRORS); }; return (null); } public function set logFunction(_arg1:Function):void{ _logFunction = _arg1; } override public function toString():String{ return (((((("[BulkLoader] name:" + name) + ", itemsTotal: ") + itemsTotal) + ", itemsLoaded: ") + _itemsLoaded)); } public function sortItemsByPriority():void{ _items.sortOn(["priority", "_additionIndex"], [(Array.NUMERIC | Array.DESCENDING), Array.NUMERIC]); } public function get stringSubstitutions():Object{ return (_stringSubstitutions); } public function get name():String{ return (_name); } public function remove(_arg1):Boolean{ var item:LoadingItem; var allDone:Boolean; var key = _arg1; try { if ((key is LoadingItem)){ item = key; } else { item = get(key); }; if (!item){ return (false); }; _removeFromItems(item); _removeFromConnections(item); item.destroy(); item = null; _onProgress(); allDone = _isAllDoneP(); if (allDone){ _onAllLoaded(); }; return (true); } catch(e:Error) { log(("Error while removing item from key:" + key), e.getStackTrace(), LOG_ERRORS); }; return (false); } public function removeAll():void{ var _local1:LoadingItem; for each (_local1 in _items.slice()) { remove(_local1); }; _items = []; _connections = []; _contents = new Dictionary(); } public function _updateStats():void{ var _local4:LoadingItem; avgLatency = 0; speedAvg = 0; var _local1:Number = 0; var _local2:int; _speedTotal = 0; var _local3:Number = 0; for each (_local4 in _items) { if (((_local4._isLoaded) && (!((_local4.status == LoadingItem.STATUS_ERROR))))){ _local1 = (_local1 + _local4.latency); _local2 = (_local2 + _local4.bytesTotal); _local3++; }; }; _speedTotal = ((_local2 / 0x0400) / totalTime); avgLatency = (_local1 / _local3); speedAvg = (_speedTotal / _local3); } public function reload(_arg1):Boolean{ var _local2:LoadingItem; if ((_arg1 is LoadingItem)){ _local2 = _arg1; } else { _local2 = get(_arg1); }; if (!_local2){ return (false); }; _removeFromItems(_local2); _removeFromConnections(_local2); _local2.stop(); _local2.cleanListeners(); _local2.status = null; _isFinished = false; _local2._addedTime = getTimer(); _local2._additionIndex = _additionIndex++; _local2.addEventListener(Event.COMPLETE, _onItemComplete, false, int.MIN_VALUE, true); _local2.addEventListener(ERROR, _onItemError, false, 0, true); _local2.addEventListener(Event.OPEN, _onItemStarted, false, 0, true); _local2.addEventListener(ProgressEvent.PROGRESS, _onProgress, false, 0, true); _items.push(_local2); _itemsTotal = (_itemsTotal + 1); _totalWeight = (_totalWeight + _local2.weight); sortItemsByPriority(); _isFinished = false; loadNow(_local2); return (true); } public function _onItemStarted(_arg1:Event):void{ var _local2:LoadingItem = (_arg1.target as LoadingItem); log("Started loading", _local2, LOG_INFO); dispatchEvent(_arg1); } public function add(_arg1, _arg2:Object=null):LoadingItem{ var _local4:String; var _local6:String; if (!_name){ throw (new Error("[BulkLoader] Cannot use an instance that has been cleared from memory (.clear())")); }; if (((!(_arg1)) || (!(String(_arg1))))){ throw (new Error("[BulkLoader] Cannot add an item with a null url")); }; _arg2 = ((_arg2) || ({})); if ((_arg1 is String)){ _arg1 = new URLRequest(BulkLoader.substituteURLString(_arg1, _stringSubstitutions)); if (_arg2[HEADERS]){ _arg1.requestHeaders = _arg2[HEADERS]; }; } else { if ((!(_arg1) is URLRequest)){ throw (new Error(("[BulkLoader] cannot add object with bad type for url:'" + _arg1.url))); }; }; var _local3:LoadingItem = get(_arg2[ID]); if (_local3){ log((("Add received an already added id: " + _arg2[ID]) + ", not adding a new item")); return (_local3); }; if (_arg2["type"]){ _local4 = _arg2["type"].toLowerCase(); if (AVAILABLE_TYPES.indexOf(_local4) == -1){ log("add received an unknown type:", _local4, "and will cast it to text", LOG_WARNINGS); }; }; if (!_local4){ _local4 = guessType(_arg1.url); }; _additionIndex++; _local3 = new _typeClasses[_local4](_arg1, _local4, ((_instancesCreated + "_") + String(_additionIndex))); if (((!(_arg2["id"])) && (_allowsAutoIDFromFileName))){ _arg2["id"] = getFileName(_arg1.url); log("Adding automatic id from file name for item:", _local3, (("( id= " + _arg2["id"]) + " )")); }; var _local5:Array = _local3._parseOptions(_arg2); for each (_local6 in _local5) { log(_local6, LOG_WARNINGS); }; log("Added", _local3, LOG_VERBOSE); _local3._addedTime = getTimer(); _local3._additionIndex = _additionIndex; _local3.addEventListener(Event.COMPLETE, _onItemComplete, false, int.MIN_VALUE, true); _local3.addEventListener(ERROR, _onItemError, false, 0, true); _local3.addEventListener(Event.OPEN, _onItemStarted, false, 0, true); _local3.addEventListener(ProgressEvent.PROGRESS, _onProgress, false, 0, true); _items.push(_local3); _itemsTotal = (_itemsTotal + 1); _totalWeight = (_totalWeight + _local3.weight); sortItemsByPriority(); _isFinished = false; if (!_isPaused){ _loadNext(); }; return (_local3); } public function getText(_arg1, _arg2:Boolean=false):String{ return (String(_getContentAsType(_arg1, String, _arg2))); } public function get bytesTotal():int{ return (_bytesTotal); } public function get percentLoaded():Number{ return (_percentLoaded); } public function get weightPercent():Number{ return (_weightPercent); } public function get bytesTotalCurrent():int{ return (_bytesTotalCurrent); } public function getAVM1Movie(_arg1:String, _arg2:Boolean=false):AVM1Movie{ return (AVM1Movie(_getContentAsType(_arg1, AVM1Movie, _arg2))); } public function get isFinished():Boolean{ return (_isFinished); } public function changeItemPriority(_arg1:String, _arg2:int):Boolean{ var _local3:LoadingItem = get(_arg1); if (!_local3){ return (false); }; _local3._priority = _arg2; sortItemsByPriority(); return (true); } public function get items():Array{ return (_items.slice()); } public function getNetStream(_arg1:String, _arg2:Boolean=false):NetStream{ return (NetStream(_getContentAsType(_arg1, NetStream, _arg2))); } public function getHttpStatus(_arg1):int{ var _local2:LoadingItem = get(_arg1); if (_local2){ return (_local2.httpStatus); }; return (-1); } public function set itemsLoaded(_arg1:int):void{ _itemsLoaded = _arg1; } public function _onProgress(_arg1:Event=null):void{ var _local2:BulkProgressEvent = getProgressForItems(_items); _bytesLoaded = _local2.bytesLoaded; _bytesTotal = _local2.bytesTotal; _weightPercent = _local2.weightPercent; _percentLoaded = _local2.percentLoaded; _bytesTotalCurrent = _local2.bytesTotalCurrent; _loadedRatio = _local2.ratioLoaded; dispatchEvent(_local2); } public function hasItem(_arg1, _arg2:Boolean=true):Boolean{ var _local3:*; var _local4:BulkLoader; if (_arg2){ _local3 = _allLoaders; } else { _local3 = [this]; }; for each (_local4 in _local3) { if (_hasItemInBulkLoader(_arg1, _local4)){ return (true); }; }; return (false); } public function _removeFromItems(_arg1:LoadingItem):Boolean{ var _local2:int = _items.indexOf(_arg1); if (_local2 > -1){ _items.splice(_local2, 1); } else { return (false); }; if (_arg1._isLoaded){ _itemsLoaded--; }; _itemsTotal--; _totalWeight = (_totalWeight - _arg1.weight); log(("Removing " + _arg1), LOG_VERBOSE); return (true); } public function _isAllDoneP():Boolean{ return (_items.every(function (_arg1:LoadingItem, ... _args):Boolean{ return (_arg1._isLoaded); })); } public function _onItemError(_arg1:BulkErrorEvent):void{ var evt = _arg1; var item:LoadingItem = (evt.target as LoadingItem); log(((("After " + item.numTries) + " I am giving up on ") + item.url.url), LOG_ERRORS); log("Error loading", item, LOG_ERRORS); _removeFromConnections(item); evt.stopPropagation(); var bulkErrorEvent:BulkErrorEvent = new BulkErrorEvent(BulkErrorEvent.ERROR); bulkErrorEvent.errors = _items.filter(function (_arg1:LoadingItem, ... _args):Boolean{ return ((_arg1.status == LoadingItem.STATUS_ERROR)); }); dispatchEvent(bulkErrorEvent); } public function pauseAll():void{ var _local1:LoadingItem; for each (_local1 in _items) { pause(_local1); }; _isRunning = false; _isPaused = true; log("Stopping all items", LOG_INFO); } public function getNotLoadedItems():Array{ return (_items.filter(function (_arg1:LoadingItem, ... _args):Boolean{ return (!((_arg1.status == LoadingItem.STATUS_FINISHED))); })); } public function getXML(_arg1, _arg2:Boolean=false):XML{ return (XML(_getContentAsType(_arg1, XML, _arg2))); } public function get totalWeight():int{ return (_totalWeight); } public function get itemsLoaded():int{ return (_itemsLoaded); } public function getMovieClip(_arg1:String, _arg2:Boolean=false):MovieClip{ return (MovieClip(_getContentAsType(_arg1, MovieClip, _arg2))); } public function get numConnections():int{ return (_numConnections); } public function getStats():String{ var stats:Array = []; stats.push("\n************************************"); stats.push((("All items loaded(" + itemsTotal) + ")")); stats.push(("Total time(s): " + totalTime)); stats.push(("Average latency(s): " + truncateNumber(avgLatency))); stats.push(("Average speed(kb/s): " + truncateNumber(speedAvg))); stats.push(("Median speed(kb/s): " + truncateNumber(_speedTotal))); stats.push(("KiloBytes total: " + truncateNumber((bytesTotal / 0x0400)))); var itemsInfo:Array = _items.map(function (_arg1:LoadingItem, ... _args):String{ return (("\t" + _arg1.getStats())); }); stats.push(itemsInfo.join("\n")); stats.push("************************************"); var statsString:String = stats.join("\n"); log(statsString, LOG_VERBOSE); return (statsString); } public function pause(_arg1, _arg2:Boolean=false):Boolean{ var _local3:LoadingItem = ((_arg1 is LoadingItem)) ? _arg1 : get(_arg1); if (!_local3){ return (false); }; _local3.stop(); log("STOPPED ITEM:", _local3, LOG_INFO); var _local4:Boolean = _removeFromConnections(_local3); if (_arg2){ _loadNext(); }; return (_local4); } public static function __debug_printStackTrace():void{ try { throw (new Error("stack trace")); } catch(e:Error) { trace(e.getStackTrace()); }; } public static function pauseAllLoaders():void{ var _local1:BulkLoader; for each (_local1 in _allLoaders) { _local1.pauseAll(); }; } public static function _hasItemInBulkLoader(_arg1, _arg2:BulkLoader):Boolean{ var _local3:LoadingItem = _arg2.get(_arg1); if (((_local3) && (_local3._isLoaded))){ return (true); }; return (false); } public static function getUniqueName():String{ return (("BulkLoader-" + _instancesCreated)); } public static function substituteURLString(_arg1:String, _arg2:Object):String{ var _local9:Object; var _local10:Object; var _local12:String; if (!_arg2){ return (_arg1); }; var _local3:RegExp = /(?P<var_name>\{\s*[^\}]*\})/g; var _local4:Object = _local3.exec(_arg1); var _local5:String = (_local4) ? _local4.var_name : null; var _local6:Array = []; var _local7:int; while (((Boolean(_local4)) && (Boolean(_local4.var_name)))) { if (_local4.var_name){ _local5 = _local4.var_name; _local5 = _local5.replace("{", ""); _local5 = _local5.replace("}", ""); _local5 = _local5.replace(/\s*/g, ""); }; _local6.push({start:_local4.index, end:(_local4.index + _local4.var_name.length), changeTo:_arg2[_local5]}); _local7++; if (_local7 > 400){ break; }; _local4 = _local3.exec(_arg1); _local5 = (_local4) ? _local4.var_name : null; }; if (_local6.length == 0){ return (_arg1); }; var _local8:Array = []; var _local11:String = _arg1.substr(0, _local6[0].start); for each (_local10 in _local6) { if (_local9){ _local11 = _arg1.substring(_local9.end, _local10.start); }; _local8.push(_local11); _local8.push(_local10.changeTo); _local9 = _local10; }; _local8.push(_arg1.substring(_local10.end)); return (_local8.join("")); } public static function createUniqueNamedLoader(_arg1:int=7, _arg2:int=20):BulkLoader{ return (new BulkLoader(BulkLoader.getUniqueName(), _arg1, _arg2)); } public static function whichLoaderHasItem(_arg1):BulkLoader{ var _local2:BulkLoader; for each (_local2 in _allLoaders) { if (BulkLoader._hasItemInBulkLoader(_arg1, _local2)){ return (_local2); }; }; return (null); } public static function removeAllLoaders():void{ var _local1:BulkLoader; for each (_local1 in _allLoaders) { _local1.removeAll(); _local1.clear(); _local1 = null; }; _allLoaders = {}; } public static function __debug_print_num_loaders():void{ var _local2:String; var _local1:int; for each (_local2 in BulkLoader._allLoaders) { _local1++; }; trace("BulkLoader has ", _local1, "instances"); } public static function getFileName(_arg1:String):String{ if (_arg1.lastIndexOf("/") == (_arg1.length - 1)){ return (getFileName(_arg1.substring(0, (_arg1.length - 1)))); }; var _local2:int = (_arg1.lastIndexOf("/") + 1); var _local3:String = _arg1.substring(_local2); var _local4:int = _local3.indexOf("."); if (_local4 == -1){ if (_local3.indexOf("?") > -1){ _local4 = _local3.indexOf("?"); } else { _local4 = _local3.length; }; }; var _local5:String = _local3.substring(0, _local4); return (_local5); } public static function guessType(_arg1:String):String{ var _local4:String; var _local5:String; var _local6:String; var _local2:String = ((_arg1.indexOf("?") > -1)) ? _arg1.substring(0, _arg1.indexOf("?")) : _arg1; var _local3:String = _local2.substring((_local2.lastIndexOf(".") + 1)).toLowerCase(); if (!Boolean(_local3)){ _local3 = BulkLoader.TYPE_TEXT; }; if ((((_local3 == BulkLoader.TYPE_IMAGE)) || ((BulkLoader.IMAGE_EXTENSIONS.indexOf(_local3) > -1)))){ _local4 = BulkLoader.TYPE_IMAGE; } else { if ((((_local3 == BulkLoader.TYPE_SOUND)) || ((BulkLoader.SOUND_EXTENSIONS.indexOf(_local3) > -1)))){ _local4 = BulkLoader.TYPE_SOUND; } else { if ((((_local3 == BulkLoader.TYPE_VIDEO)) || ((BulkLoader.VIDEO_EXTENSIONS.indexOf(_local3) > -1)))){ _local4 = BulkLoader.TYPE_VIDEO; } else { if ((((_local3 == BulkLoader.TYPE_XML)) || ((BulkLoader.XML_EXTENSIONS.indexOf(_local3) > -1)))){ _local4 = BulkLoader.TYPE_XML; } else { if ((((_local3 == BulkLoader.TYPE_MOVIECLIP)) || ((BulkLoader.MOVIECLIP_EXTENSIONS.indexOf(_local3) > -1)))){ _local4 = BulkLoader.TYPE_MOVIECLIP; } else { for (_local5 in _customTypesExtensions) { for each (_local6 in _customTypesExtensions[_local5]) { if (_local6 == _local3){ _local4 = _local5; break; }; if (_local4){ break; }; }; }; if (!_local4){ _local4 = BulkLoader.TYPE_TEXT; }; }; }; }; }; }; return (_local4); } public static function getLoader(_arg1:String):BulkLoader{ return ((BulkLoader._allLoaders[_arg1] as BulkLoader)); } public static function registerNewType(_arg1:String, _arg2:String, _arg3:Class):Boolean{ var _local4:Array; if (_arg1.charAt(0) == "."){ _arg1 = _arg1.substring(1); }; if (AVAILABLE_TYPES.indexOf(_arg2) == -1){ if (((!(Boolean(_arg3))) || (!((_arg3 is LoadingItem))))){ throw (new Error("[BulkLoader]: When adding a new type and extension, you must determine which class to use")); }; _typeClasses[_arg2] = _arg3; if (!_customTypesExtensions[_arg2]){ _customTypesExtensions[_arg2] = []; AVAILABLE_TYPES.push(_arg2); }; _customTypesExtensions[_arg2].push(_arg1); return (true); }; var _local5:Object = {IMAGE_EXTENSIONS:TYPE_IMAGE, VIDEO_EXTENSIONS:TYPE_VIDEO, SOUND_EXTENSIONS:TYPE_SOUND, TEXT_EXTENSIONS:TYPE_TEXT}; _local4 = _local5[_arg2]; if (((_local4) && ((_local4.indexOf(_arg1) == -1)))){ _local4.push(_arg1); return (true); }; return (false); } public static function __debug_print_loaders():void{ var instNames:String; var theNames:Array = []; for each (instNames in BulkLoader._allLoaders) { theNames.push(instNames); }; theNames.sort(); trace("All loaders"); theNames.forEach(function (_arg1, ... _args):void{ trace("\t", _arg1); }); trace("==========="); } public static function truncateNumber(_arg1:Number, _arg2:int=2):Number{ var _local3:int = Math.pow(10, _arg2); return ((Math.round((_arg1 * _local3)) / _local3)); } } }//package br.com.stimuli.loading
Section 9
//BulkProgressEvent (br.com.stimuli.loading.BulkProgressEvent) package br.com.stimuli.loading { import flash.events.*; public class BulkProgressEvent extends ProgressEvent { public var bytesTotalCurrent:int; public var itemsTotal:int; public var itemsLoaded:int; public var _percentLoaded:Number; public var _weightPercent:Number; public var _ratioLoaded:Number; public var name:String; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public function BulkProgressEvent(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); this.name = _arg1; } override public function clone():Event{ var _local1:BulkProgressEvent = new BulkProgressEvent(name, bubbles, cancelable); _local1.setInfo(bytesLoaded, bytesTotal, bytesTotalCurrent, itemsLoaded, itemsTotal, weightPercent); return (_local1); } public function get weightPercent():Number{ return (_weightPercent); } public function set ratioLoaded(_arg1:Number):void{ if (((isNaN(_arg1)) || (!(isFinite(_arg1))))){ _arg1 = 0; }; _ratioLoaded = _arg1; } public function setInfo(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:Number):void{ this.bytesLoaded = _arg1; this.bytesTotal = _arg2; this.bytesTotalCurrent = _arg3; this.itemsLoaded = _arg4; this.itemsTotal = _arg5; this.weightPercent = _arg6; this.percentLoaded = ((_arg2 > 0)) ? (_arg1 / _arg2) : 0; ratioLoaded = ((_arg5 == 0)) ? 0 : (_arg4 / _arg5); } public function set percentLoaded(_arg1:Number):void{ if (((isNaN(_arg1)) || (!(isFinite(_arg1))))){ _arg1 = 0; }; _percentLoaded = _arg1; } public function loadingStatus():String{ var _local1:Array = []; _local1.push(("bytesLoaded: " + bytesLoaded)); _local1.push(("bytesTotal: " + bytesTotal)); _local1.push(("itemsLoaded: " + itemsLoaded)); _local1.push(("itemsTotal: " + itemsTotal)); _local1.push(("bytesTotalCurrent: " + bytesTotalCurrent)); _local1.push(("percentLoaded: " + BulkLoader.truncateNumber(percentLoaded))); _local1.push(("weightPercent: " + BulkLoader.truncateNumber(weightPercent))); _local1.push(("ratioLoaded: " + BulkLoader.truncateNumber(ratioLoaded))); return ((("BulkProgressEvent " + _local1.join(", ")) + ";")); } public function get ratioLoaded():Number{ return (_ratioLoaded); } public function get percentLoaded():Number{ return (_percentLoaded); } public function set weightPercent(_arg1:Number):void{ if (((isNaN(_arg1)) || (!(isFinite(_arg1))))){ _arg1 = 0; }; _weightPercent = _arg1; } override public function toString():String{ return (super.toString()); } } }//package br.com.stimuli.loading
Section 10
//Button (com.gamelion.mp3player.Button) package com.gamelion.mp3player { import flash.events.*; import flash.display.*; import flash.utils.*; public class Button extends Sprite { private var _constantlyPressed:Boolean; private var _overBitmap:Bitmap; private var _pressed:Boolean; private var _upBitmap:Bitmap; private var _pressedBitmap:Bitmap; private var _previousFace:Bitmap; private var _currentFace:Bitmap; public function Button(_arg1:Bitmap, _arg2:Bitmap, _arg3:Bitmap, _arg4:Boolean, _arg5:String){ buttonMode = true; _overBitmap = _arg1; _overBitmap.visible = false; _overBitmap.smoothing = true; addChild(_overBitmap); _pressedBitmap = _arg2; _pressedBitmap.visible = false; _pressedBitmap.smoothing = true; addChild(_pressedBitmap); _upBitmap = _arg3; _upBitmap.visible = true; _upBitmap.smoothing = true; addChild(_upBitmap); _constantlyPressed = _arg4; _pressed = false; name = _arg5; addEventListener(MouseEvent.MOUSE_OVER, onMouseOver); addEventListener(MouseEvent.MOUSE_OUT, onMouseOut); addEventListener(MouseEvent.CLICK, onMouseClick); } private function onMouseOver(_arg1:MouseEvent):void{ if (!_pressed){ _overBitmap.visible = true; _upBitmap.visible = false; }; } private function onMouseOut(_arg1:MouseEvent):void{ if (!_pressed){ _overBitmap.visible = false; _upBitmap.visible = true; } else { if (!_constantlyPressed){ _pressedBitmap.visible = false; _upBitmap.visible = true; _pressed = false; }; }; } private function onMouseClick(_arg1:MouseEvent):void{ var _local2:Timer; if (((_pressed) && (_constantlyPressed))){ _pressedBitmap.visible = false; _overBitmap.visible = true; _pressed = false; } else { if (!_constantlyPressed){ _pressed = true; _overBitmap.visible = false; _pressedBitmap.visible = true; _local2 = new Timer(150, 1); _local2.addEventListener(TimerEvent.TIMER, onTimer); _local2.start(); } else { _pressed = true; _overBitmap.visible = false; _pressedBitmap.visible = true; }; }; dispatchEvent(new Event((name + "ButtonClickedEvent"))); } private function onTimer(_arg1:TimerEvent):void{ _pressedBitmap.visible = false; _overBitmap.visible = true; } public function set pressed(_arg1:Boolean):void{ _pressed = _arg1; if (!_pressed){ _pressedBitmap.visible = false; _upBitmap.visible = true; }; } } }//package com.gamelion.mp3player
Section 11
//LCDDisplay (com.gamelion.mp3player.LCDDisplay) package com.gamelion.mp3player { import flash.events.*; import flash.display.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.errors.*; public class LCDDisplay extends Sprite { private var _display:TextField; private var _textMode:Boolean; private var _previousText:String; private var _previousScrollH:Number; private var _scrollingDirection:Number; private var _spectrum:Sprite; private var _byteArray:ByteArray; private var _barArray:Array; private var _restoreTimer:Timer; private var _scrollTimer:Timer; public static var SPECTRUM_MODE:String = "spectrumMode"; public static var CURRENT_POSITION_MODE:String = "currentPositionMode"; public static var TIME_LEFT_MODE:String = "timeLeftMode"; public static var TITLE_MODE:String = "titleMode"; public static var CLOCK_MODE:String = "clockMode"; public function LCDDisplay(){ var _local3:Shape; super(); buttonMode = true; _barArray = new Array(); _byteArray = new ByteArray(); _display = new TextField(); _display.defaultTextFormat = new TextFormat("ocrFont", 18, 0xFFFFFF, null, null, null, null, null, TextFormatAlign.CENTER, 5, 5); _display.selectable = false; _display.embedFonts = true; _display.antiAliasType = AntiAliasType.ADVANCED; _display.height = 22; _display.width = 92; _display.x = -46; _display.y = -11; _display.text = "TEST test Test"; addEventListener(MouseEvent.CLICK, onMouseClick); addChild(_display); _spectrum = new Sprite(); _spectrum.visible = true; addChild(_spectrum); var _local1:int; while (_local1 < 10) { _local3 = new Shape(); _local3.graphics.beginFill(0xFFFFFF); _local3.graphics.drawRect(0, 0, 5, -14); _local3.y = 2; _local3.x = (2 + (_local1 * 8)); addChild(_local3); _barArray.push(_local3); _spectrum.addChild(_local3); _local1++; }; _spectrum.x = (-(_spectrum.width) / 2); _spectrum.y = (_spectrum.height / 2); addChild(_spectrum); var _local2:Sprite = new Sprite(); _local2.graphics.beginFill(0xFF0000, 0); _local2.graphics.drawRect(-46, -11, 92, 22); addChild(_local2); _scrollingDirection = 1; rotation = 60; _scrollTimer = new Timer(50); _scrollTimer.addEventListener(TimerEvent.TIMER, onTimerEvent); _scrollTimer.start(); _previousText = null; _textMode = true; } public function set display(_arg1:String):void{ if (_previousText != null){ _previousText = _arg1.toUpperCase(); }; _display.text = _arg1.toUpperCase(); } private function onTimerEvent(_arg1:TimerEvent):void{ var yscale:Number; var i:int; var e = _arg1; if (_textMode){ _display.visible = true; _spectrum.visible = false; _display.scrollH = (_display.scrollH + _scrollingDirection); if (_display.scrollH == 0){ _scrollingDirection = 1; }; if (_display.scrollH == _display.maxScrollH){ _scrollingDirection = -1; }; } else { _display.visible = false; _spectrum.visible = true; yscale = 0; SoundMixer.computeSpectrum(_byteArray, true, 0); i = 0; while (i < _barArray.length) { try { yscale = _byteArray.readFloat(); _barArray[i].scaleY = Math.abs(yscale); } catch(e:EOFError) { yscale = 0; _barArray[i].scaleY = Math.abs(yscale); }; i = (i + 1); }; }; } private function restorePreviousText(_arg1:TimerEvent):void{ _display.text = _previousText; _display.scrollH = _previousScrollH; _scrollTimer.start(); _previousText = null; } public function set temporaryDisplay(_arg1:String):void{ if (_previousText == null){ _previousText = _display.text; _previousScrollH = _display.scrollH; }; _display.text = _arg1.toUpperCase(); if (_restoreTimer != null){ _restoreTimer.stop(); }; _display.scrollH = 0; _scrollTimer.stop(); _restoreTimer = new Timer(500, 1); _restoreTimer.addEventListener(TimerEvent.TIMER_COMPLETE, restorePreviousText, false, 0, true); _restoreTimer.start(); } public function set textMode(_arg1:Boolean):void{ _textMode = _arg1; } private function onMouseClick(_arg1:MouseEvent):void{ dispatchEvent(new Event(PlayerEvents.DISPLAY_CLICKED)); } } }//package com.gamelion.mp3player
Section 12
//PlayerEvents (com.gamelion.mp3player.PlayerEvents) package com.gamelion.mp3player { public class PlayerEvents { public static var MUTE_CLICKED:String = "muteButtonClickedEvent"; public static var PLUS_CLICKED:String = "plusButtonClickedEvent"; public static var DISPLAY_CLICKED:String = "displayClickedEvent"; public static var BACKWARD_CLICKED:String = "backwardButtonClickedEvent"; public static var FORWARD_CLICKED:String = "forwardButtonClickedEvent"; public static var PLAY_CLICKED:String = "playButtonClickedEvent"; public static var MINUS_CLICKED:String = "minusButtonClickedEvent"; } }//package com.gamelion.mp3player
Section 13
//Resources (com.gamelion.mp3player.Resources) package com.gamelion.mp3player { public class Resources { public static var OCR_FONT:Class = Resources_OCR_FONT; public static var PLAY_UP:Class = Resources_PLAY_UP; public static var PLAY_PRESSED:Class = Resources_PLAY_PRESSED; public static var MINUS_PRESSED:Class = Resources_MINUS_PRESSED; public static var PLAYER_MAIN:Class = Resources_PLAYER_MAIN; public static var PLUS_OVER:Class = Resources_PLUS_OVER; public static var PLUS_PRESSED:Class = Resources_PLUS_PRESSED; public static var MINUS_OVER:Class = Resources_MINUS_OVER; public static var BACKWARD_PRESSED:Class = Resources_BACKWARD_PRESSED; public static var PLUS_UP:Class = Resources_PLUS_UP; public static var FORWARD_PRESSED:Class = Resources_FORWARD_PRESSED; public static var SPEAKER_PRESSED:Class = Resources_SPEAKER_PRESSED; public static var BACKWARD_OVER:Class = Resources_BACKWARD_OVER; public static var MINUS_UP:Class = Resources_MINUS_UP; public static var SPEAKER_OVER:Class = Resources_SPEAKER_OVER; public static var FORWARD_OVER:Class = Resources_FORWARD_OVER; public static var BACKWARD_UP:Class = Resources_BACKWARD_UP; public static var SPEAKER_UP:Class = Resources_SPEAKER_UP; public static var FORWARD_UP:Class = Resources_FORWARD_UP; public static var PLAY_OVER:Class = Resources_PLAY_OVER; } }//package com.gamelion.mp3player
Section 14
//Resources_BACKWARD_OVER (com.gamelion.mp3player.Resources_BACKWARD_OVER) package com.gamelion.mp3player { import mx.core.*; public class Resources_BACKWARD_OVER extends BitmapAsset { } }//package com.gamelion.mp3player
Section 15
//Resources_BACKWARD_PRESSED (com.gamelion.mp3player.Resources_BACKWARD_PRESSED) package com.gamelion.mp3player { import mx.core.*; public class Resources_BACKWARD_PRESSED extends BitmapAsset { } }//package com.gamelion.mp3player
Section 16
//Resources_BACKWARD_UP (com.gamelion.mp3player.Resources_BACKWARD_UP) package com.gamelion.mp3player { import mx.core.*; public class Resources_BACKWARD_UP extends BitmapAsset { } }//package com.gamelion.mp3player
Section 17
//Resources_FORWARD_OVER (com.gamelion.mp3player.Resources_FORWARD_OVER) package com.gamelion.mp3player { import mx.core.*; public class Resources_FORWARD_OVER extends BitmapAsset { } }//package com.gamelion.mp3player
Section 18
//Resources_FORWARD_PRESSED (com.gamelion.mp3player.Resources_FORWARD_PRESSED) package com.gamelion.mp3player { import mx.core.*; public class Resources_FORWARD_PRESSED extends BitmapAsset { } }//package com.gamelion.mp3player
Section 19
//Resources_FORWARD_UP (com.gamelion.mp3player.Resources_FORWARD_UP) package com.gamelion.mp3player { import mx.core.*; public class Resources_FORWARD_UP extends BitmapAsset { } }//package com.gamelion.mp3player
Section 20
//Resources_MINUS_OVER (com.gamelion.mp3player.Resources_MINUS_OVER) package com.gamelion.mp3player { import mx.core.*; public class Resources_MINUS_OVER extends BitmapAsset { } }//package com.gamelion.mp3player
Section 21
//Resources_MINUS_PRESSED (com.gamelion.mp3player.Resources_MINUS_PRESSED) package com.gamelion.mp3player { import mx.core.*; public class Resources_MINUS_PRESSED extends BitmapAsset { } }//package com.gamelion.mp3player
Section 22
//Resources_MINUS_UP (com.gamelion.mp3player.Resources_MINUS_UP) package com.gamelion.mp3player { import mx.core.*; public class Resources_MINUS_UP extends BitmapAsset { } }//package com.gamelion.mp3player
Section 23
//Resources_OCR_FONT (com.gamelion.mp3player.Resources_OCR_FONT) package com.gamelion.mp3player { import mx.core.*; public class Resources_OCR_FONT extends FontAsset { } }//package com.gamelion.mp3player
Section 24
//Resources_PLAY_OVER (com.gamelion.mp3player.Resources_PLAY_OVER) package com.gamelion.mp3player { import mx.core.*; public class Resources_PLAY_OVER extends BitmapAsset { } }//package com.gamelion.mp3player
Section 25
//Resources_PLAY_PRESSED (com.gamelion.mp3player.Resources_PLAY_PRESSED) package com.gamelion.mp3player { import mx.core.*; public class Resources_PLAY_PRESSED extends BitmapAsset { } }//package com.gamelion.mp3player
Section 26
//Resources_PLAY_UP (com.gamelion.mp3player.Resources_PLAY_UP) package com.gamelion.mp3player { import mx.core.*; public class Resources_PLAY_UP extends BitmapAsset { } }//package com.gamelion.mp3player
Section 27
//Resources_PLAYER_MAIN (com.gamelion.mp3player.Resources_PLAYER_MAIN) package com.gamelion.mp3player { import mx.core.*; public class Resources_PLAYER_MAIN extends BitmapAsset { } }//package com.gamelion.mp3player
Section 28
//Resources_PLUS_OVER (com.gamelion.mp3player.Resources_PLUS_OVER) package com.gamelion.mp3player { import mx.core.*; public class Resources_PLUS_OVER extends BitmapAsset { } }//package com.gamelion.mp3player
Section 29
//Resources_PLUS_PRESSED (com.gamelion.mp3player.Resources_PLUS_PRESSED) package com.gamelion.mp3player { import mx.core.*; public class Resources_PLUS_PRESSED extends BitmapAsset { } }//package com.gamelion.mp3player
Section 30
//Resources_PLUS_UP (com.gamelion.mp3player.Resources_PLUS_UP) package com.gamelion.mp3player { import mx.core.*; public class Resources_PLUS_UP extends BitmapAsset { } }//package com.gamelion.mp3player
Section 31
//Resources_SPEAKER_OVER (com.gamelion.mp3player.Resources_SPEAKER_OVER) package com.gamelion.mp3player { import mx.core.*; public class Resources_SPEAKER_OVER extends BitmapAsset { } }//package com.gamelion.mp3player
Section 32
//Resources_SPEAKER_PRESSED (com.gamelion.mp3player.Resources_SPEAKER_PRESSED) package com.gamelion.mp3player { import mx.core.*; public class Resources_SPEAKER_PRESSED extends BitmapAsset { } }//package com.gamelion.mp3player
Section 33
//Resources_SPEAKER_UP (com.gamelion.mp3player.Resources_SPEAKER_UP) package com.gamelion.mp3player { import mx.core.*; public class Resources_SPEAKER_UP extends BitmapAsset { } }//package com.gamelion.mp3player
Section 34
//SoundPlayer (com.gamelion.mp3player.SoundPlayer) package com.gamelion.mp3player { import flash.events.*; import flash.display.*; import flash.media.*; import flash.net.*; import flash.utils.*; import flash.errors.*; public class SoundPlayer extends Sprite { private var _minusButton:Button; private var _position:Number; private var _plusButton:Button; private var _paused:Boolean; private var _playerBackground:Bitmap; private var _playList:XMLList; private var _backwardButton:Button; private var _forwardButton:Button; private var _muteButton:Button; private var _playButton:Button; private var _soundChanel2:SoundChannel; private var _currentDisplayMode:String; private var _muted:Boolean; private var _currentSong:Number; private var _playerDisplay:LCDDisplay; private var _soundChanel1:SoundChannel; private var _volume:Number; private var _songs:Array; private static var _soundPlayer:SoundPlayer; public function SoundPlayer(_arg1:Function=null){ var _local2:URLLoader; super(); if (_arg1 == getInstance){ _volume = 0.5; _muted = false; _playerBackground = new Resources.PLAYER_MAIN(); _playerBackground.smoothing = true; addChild(_playerBackground); _backwardButton = new Button(new Resources.BACKWARD_OVER(), new Resources.BACKWARD_PRESSED(), new Resources.BACKWARD_UP(), false, "backward"); _backwardButton.x = 150; _backwardButton.y = 184; addChild(_backwardButton); _playButton = new Button(new Resources.PLAY_OVER(), new Resources.PLAY_PRESSED(), new Resources.PLAY_UP(), false, "play"); _playButton.x = 164; _playButton.y = 208; addChild(_playButton); _forwardButton = new Button(new Resources.FORWARD_OVER(), new Resources.FORWARD_PRESSED(), new Resources.FORWARD_UP(), false, "forward"); _forwardButton.x = 178; _forwardButton.y = 232; addChild(_forwardButton); _minusButton = new Button(new Resources.MINUS_OVER(), new Resources.MINUS_PRESSED(), new Resources.MINUS_UP(), false, "minus"); _minusButton.x = 37; _minusButton.y = 56; _minusButton.addEventListener(PlayerEvents.MINUS_CLICKED, onMinusClicked); addChild(_minusButton); _muteButton = new Button(new Resources.SPEAKER_OVER(), new Resources.SPEAKER_PRESSED(), new Resources.SPEAKER_UP(), true, "mute"); _muteButton.x = 54; _muteButton.y = 46; _muteButton.addEventListener(PlayerEvents.MUTE_CLICKED, onMuteClicked); addChild(_muteButton); _plusButton = new Button(new Resources.PLUS_OVER(), new Resources.PLUS_PRESSED(), new Resources.PLUS_UP(), false, "plus"); _plusButton.x = 71; _plusButton.y = 36; _plusButton.addEventListener(PlayerEvents.PLUS_CLICKED, onPlusClicked); addChild(_plusButton); _playerDisplay = new LCDDisplay(); _playerDisplay.x = 120; _playerDisplay.y = 141; addChild(_playerDisplay); _currentDisplayMode = LCDDisplay.TITLE_MODE; _playerDisplay.display = "Loading playlist..."; _local2 = new URLLoader(); _local2.addEventListener(Event.COMPLETE, initPlayer); _local2.addEventListener(IOErrorEvent.IO_ERROR, onIOError); _local2.load(new URLRequest("http://fac.game-lion.com/sketchblocks/mp3/playlist.xml")); } else { throw (new IllegalOperationError("This is a singleton class!!!")); }; } private function onPlayClicked(_arg1:Event):void{ if (_paused){ _playerDisplay.display = _playList[_currentSong].title; _paused = false; _soundChanel1 = _songs[_currentSong].play(_position); _soundChanel1.addEventListener(Event.SOUND_COMPLETE, onForwardClicked, false, 0, true); _soundChanel1.soundTransform = new SoundTransform(_volume); if (_muted){ _soundChanel1.soundTransform = new SoundTransform(0); }; } else { _paused = true; _position = _soundChanel1.position; _soundChanel1.stop(); }; } private function onDisplayClicked(_arg1:Event):void{ switch (_currentDisplayMode){ case LCDDisplay.TITLE_MODE: _currentDisplayMode = LCDDisplay.CURRENT_POSITION_MODE; break; case LCDDisplay.CURRENT_POSITION_MODE: _currentDisplayMode = LCDDisplay.TIME_LEFT_MODE; break; case LCDDisplay.TIME_LEFT_MODE: _currentDisplayMode = LCDDisplay.CLOCK_MODE; break; case LCDDisplay.CLOCK_MODE: _currentDisplayMode = LCDDisplay.SPECTRUM_MODE; _playerDisplay.textMode = false; break; case LCDDisplay.SPECTRUM_MODE: _currentDisplayMode = LCDDisplay.TITLE_MODE; _playerDisplay.textMode = true; break; }; onTimer(null); } private function onPlusClicked(_arg1:Event):void{ if (_volume < 0.9){ _volume = (_volume + 0.1); }; if (_muted){ _muted = false; _muteButton.pressed = false; }; if (_soundChanel1){ _soundChanel1.soundTransform = new SoundTransform(_volume); }; if (_soundChanel2){ _soundChanel2.soundTransform = new SoundTransform(_volume); }; _playerDisplay.temporaryDisplay = (("VOL " + Number((_volume * 100)).toFixed(0)) + "%"); } private function initPlayer(_arg1:Event):void{ var _local2:XML; var _local3:Sound; var _local4:URLRequest; var _local5:SoundLoaderContext; _playList = new XMLList(new XML(_arg1.target.data).mp3); _currentSong = 0; _songs = new Array(); for each (_local2 in _playList) { _local3 = new Sound(); _local4 = new URLRequest(_local2.url); _local5 = new SoundLoaderContext(25); _local3.load(_local4, _local5); _songs.push(_local3); }; dispatchEvent(new Event(Event.COMPLETE)); _backwardButton.addEventListener(PlayerEvents.BACKWARD_CLICKED, onBackwardClicked); _playButton.addEventListener(PlayerEvents.PLAY_CLICKED, onPlayClicked); _forwardButton.addEventListener(PlayerEvents.FORWARD_CLICKED, onForwardClicked); } private function onForwardClicked(_arg1:Event):void{ if (_currentSong < (_playList.length() - 1)){ _currentSong++; } else { _currentSong = 0; }; _soundChanel1.stop(); _playerDisplay.display = _playList[_currentSong].title; _soundChanel1 = _songs[_currentSong].play(); if (_paused){ _position = 0; _soundChanel1.stop(); }; if (_muted){ _soundChanel1.soundTransform = new SoundTransform(0); } else { _soundChanel1.soundTransform = new SoundTransform(_volume); }; _soundChanel1.addEventListener(Event.SOUND_COMPLETE, onForwardClicked, false, 0, true); } private function onTimer(_arg1:TimerEvent):void{ switch (_currentDisplayMode){ case LCDDisplay.TITLE_MODE: _playerDisplay.display = _playList[_currentSong].title; break; case LCDDisplay.TIME_LEFT_MODE: _playerDisplay.display = ((((_playList[_currentSong].title + " -") + addLeadingZero(((_soundChanel1.position - _songs[_currentSong].length) / 60000))) + ":") + addLeadingZero((((_soundChanel1.position - _songs[_currentSong].length) % 60000) / 1000))); break; case LCDDisplay.CURRENT_POSITION_MODE: _playerDisplay.display = ((((_playList[_currentSong].title + " ") + addLeadingZero((_soundChanel1.position / 60000))) + ":") + addLeadingZero(((_soundChanel1.position % 60000) / 1000))); break; case LCDDisplay.CLOCK_MODE: _playerDisplay.display = ((new Date().toLocaleTimeString() + " ") + new Date().toDateString()); break; }; if (_paused){ _playerDisplay.temporaryDisplay = "paused"; }; } private function addLeadingZero(_arg1:int):String{ var _local2 = ""; if (Math.abs(_arg1) < 10){ _local2 = (_local2 + "0"); }; _local2 = (_local2 + Math.abs(_arg1)); return (_local2); } private function onMinusClicked(_arg1:Event):void{ if (_volume > 0.1){ _volume = (_volume - 0.1); }; if (_muted){ _muted = false; _muteButton.pressed = false; }; if (_soundChanel1){ _soundChanel1.soundTransform = new SoundTransform(_volume); }; if (_soundChanel2){ _soundChanel2.soundTransform = new SoundTransform(_volume); }; _playerDisplay.temporaryDisplay = (("VOL " + int((_volume * 100))) + "%"); } public function play():void{ if (_soundChanel1 != null){ _soundChanel1.stop(); }; _currentSong = Math.floor((Math.random() * _playList.length())); _playerDisplay.display = _playList[_currentSong].title; _playerDisplay.addEventListener(PlayerEvents.DISPLAY_CLICKED, onDisplayClicked); _soundChanel1 = _songs[_currentSong].play(); _soundChanel1.soundTransform = new SoundTransform(_volume); _soundChanel1.addEventListener(Event.SOUND_COMPLETE, onForwardClicked, false, 0, true); if (_paused){ _position = 0; _soundChanel1.stop(); }; if (_muted){ _soundChanel1.soundTransform = new SoundTransform(0); }; var _local1:Timer = new Timer(1000); _local1.addEventListener(TimerEvent.TIMER, onTimer); _local1.start(); } private function onMuteClicked(_arg1:Event):void{ if (_muted){ _muted = false; _playerDisplay.temporaryDisplay = "MUTE OFF"; if (_soundChanel1){ _soundChanel1.soundTransform = new SoundTransform(_volume); }; if (_soundChanel2){ _soundChanel2.soundTransform = new SoundTransform(_volume); }; } else { _muted = true; _playerDisplay.temporaryDisplay = "MUTE ON"; if (_soundChanel1){ _soundChanel1.soundTransform = new SoundTransform(0); }; if (_soundChanel2){ _soundChanel2.soundTransform = new SoundTransform(_volume); }; }; } public function playSound(_arg1:Sound):void{ _soundChanel2 = _arg1.play(); _soundChanel2.soundTransform = new SoundTransform(_volume); if (_muted){ _soundChanel2.soundTransform = new SoundTransform(0); }; } private function onIOError(_arg1:IOErrorEvent):void{ _playerDisplay.display = "Error: Cannot load resources...."; } private function onBackwardClicked(_arg1:Event):void{ if (_currentSong > 0){ _currentSong--; } else { _currentSong = (_playList.length() - 1); }; _soundChanel1.stop(); _playerDisplay.display = _playList[_currentSong].title; _soundChanel1 = _songs[_currentSong].play(); if (_paused){ _position = 0; _soundChanel1.stop(); }; if (_muted){ _soundChanel1.soundTransform = new SoundTransform(0); } else { _soundChanel1.soundTransform = new SoundTransform(_volume); }; _soundChanel1.addEventListener(Event.SOUND_COMPLETE, onForwardClicked, false, 0, true); } public static function getInstance():SoundPlayer{ if (_soundPlayer == null){ _soundPlayer = new SoundPlayer(getInstance); }; return (_soundPlayer); } } }//package com.gamelion.mp3player
Section 35
//HighScoreRceivedEvent (com.gamelion.utils.HighScoreRceivedEvent) package com.gamelion.utils { import flash.events.*; public class HighScoreRceivedEvent extends Event { private var m_highScores:Array; public static const TOP_WEEK_SCORES:String = "topWeekScores"; public static const TOP_TODAY_SCORES:String = "topTodayScores"; public static const TOP_SCORES:String = "topScores"; public function HighScoreRceivedEvent(_arg1:String, _arg2:Array, _arg3:Boolean=false, _arg4:Boolean=false){ super(_arg1, _arg3, _arg4); m_highScores = _arg2; } public function get highScores():Array{ return (m_highScores); } } }//package com.gamelion.utils
Section 36
//HighScoreReceivedAllEvent (com.gamelion.utils.HighScoreReceivedAllEvent) package com.gamelion.utils { import flash.events.*; public class HighScoreReceivedAllEvent extends Event { private var m_allArrays:Object; public static const TOP_ALL_SCORES:String = "topAllScores"; public function HighScoreReceivedAllEvent(_arg1:String, _arg2:Object, _arg3:Boolean=false, _arg4:Boolean=false){ super(_arg1, _arg3, _arg4); m_allArrays = _arg2; } public function get highScores():Object{ return (m_allArrays); } } }//package com.gamelion.utils
Section 37
//HighScoreSavedEvent (com.gamelion.utils.HighScoreSavedEvent) package com.gamelion.utils { import flash.events.*; public class HighScoreSavedEvent extends Event { private var m_rank:int; public static const COMPLETE:String = "complete"; public function HighScoreSavedEvent(_arg1:String, _arg2:int, _arg3:Boolean=false, _arg4:Boolean=false){ super(_arg1, _arg3, _arg4); m_rank = _arg2; } public function get rank():int{ return (m_rank); } } }//package com.gamelion.utils
Section 38
//HighScoresSystem (com.gamelion.utils.HighScoresSystem) package com.gamelion.utils { import flash.events.*; import flash.display.*; import flash.net.*; public class HighScoresSystem extends Sprite { private var connection:NetConnection; public static const GET_SCORES_ERROR:String = "getScoresError"; public static const DESCENDING_ORDER:String = "DESC"; public static const SAVE_SCORES_ERROR:String = "saveScoresError"; public static const ASCENDING_ORDER:String = "ASC"; public function HighScoresSystem(_arg1:String){ connection = new NetConnection(); connection.connect(_arg1); } public function getTopScores(_arg1:int, _arg2:int, _arg3:String="DESC"):void{ var _local4:Responder = new Responder(onGetTopScores, onFault); connection.call("Scores.getTop", _local4, _arg1, _arg2, _arg3); } private function onFault(_arg1:Object):void{ dispatchEvent(new Event(HighScoresSystem.GET_SCORES_ERROR)); } public function getTodayScores(_arg1:int, _arg2:int, _arg3:String="DESC"):void{ var _local4:Responder = new Responder(onGetTodayScores, onFault); connection.call("Scores.getTodayTop", _local4, _arg1, _arg2, _arg3); } private function onGetTodayScores(_arg1:Array):void{ dispatchEvent(new HighScoreRceivedEvent(HighScoreRceivedEvent.TOP_TODAY_SCORES, _arg1)); } public function getAllScores(_arg1:int, _arg2:int, _arg3:String="DESC"):void{ var _local4:Responder = new Responder(onGetAllScores, onFault); connection.call("Scores.getAll", _local4, _arg1, _arg2, _arg3); } public function getWeekScores(_arg1:int, _arg2:int, _arg3:String="DESC"):void{ var _local4:Responder = new Responder(onGetWeekScores, onFault); connection.call("Scores.getWeekTop", _local4, _arg1, _arg2, _arg3); } public function saveScore(_arg1:int, _arg2:String, _arg3:int, _arg4:String="DESC", _arg5:String=null):void{ var _local6:Responder = new Responder(onSaveScore, onFault); connection.call("Scores.save", _local6, _arg1, _arg2, _arg3, _arg4, _arg5); } private function onSaveScore(_arg1:int):void{ dispatchEvent(new HighScoreSavedEvent(HighScoreSavedEvent.COMPLETE, _arg1)); } private function onGetAllScores(_arg1:Object):void{ dispatchEvent(new HighScoreReceivedAllEvent(HighScoreReceivedAllEvent.TOP_ALL_SCORES, _arg1)); } private function onGetWeekScores(_arg1:Array):void{ dispatchEvent(new HighScoreRceivedEvent(HighScoreRceivedEvent.TOP_WEEK_SCORES, _arg1)); } private function onGetTopScores(_arg1:Array):void{ dispatchEvent(new HighScoreRceivedEvent(HighScoreRceivedEvent.TOP_SCORES, _arg1)); } } }//package com.gamelion.utils
Section 39
//AdventureModeHud (com.gamelion.AdventureModeHud) package com.gamelion { import flash.events.*; import flash.display.*; import flash.utils.*; public class AdventureModeHud extends Sprite { private var _goalGoldenBlocks:Number; private var _mask:Shape; private var _progressTimeMask1:Shape; private var _progressTimeMask2:Shape; private var _progressTime2:Bitmap; private var _progressTime1:Bitmap; private var _progressGoldenBlocksMask1:Shape; private var _progressGoldenBlocksMask2:Shape; private var _timeLimit:Number; private var _progressGoldenBlocks1:Bitmap; private var _hud:Bitmap; private var _progressGoldenBlocks2:Bitmap; public function AdventureModeHud(_arg1:Number=0, _arg2:Number=0){ _goalGoldenBlocks = _arg1; _timeLimit = _arg2; _hud = new Resources.ADVENTURE_MODE_HUD(); _hud.smoothing = true; addChild(_hud); _progressGoldenBlocks1 = new Resources.YELLOW_BAR(); _progressGoldenBlocks1.x = 7; _progressGoldenBlocks1.y = 26; addChild(_progressGoldenBlocks1); _progressGoldenBlocksMask1 = new Shape(); _progressGoldenBlocksMask1.x = 7; _progressGoldenBlocksMask1.y = 26; _progressGoldenBlocksMask1.graphics.beginFill(16313152, 0.4); _progressGoldenBlocksMask1.graphics.drawRect(1, 2, 178, 18); addChild(_progressGoldenBlocksMask1); _progressGoldenBlocks2 = new Resources.GREEN_BAR(); _progressGoldenBlocks2.x = 7; _progressGoldenBlocks2.y = 26; _progressGoldenBlocks2.visible = false; addChild(_progressGoldenBlocks2); _progressGoldenBlocksMask2 = new Shape(); _progressGoldenBlocksMask2.x = 7; _progressGoldenBlocksMask2.y = 26; _progressGoldenBlocksMask2.graphics.beginFill(16313152, 0.4); _progressGoldenBlocksMask2.graphics.drawRect(1, 2, 178, 18); addChild(_progressGoldenBlocksMask2); _progressGoldenBlocks1.mask = _progressGoldenBlocksMask1; _progressGoldenBlocks2.mask = _progressGoldenBlocksMask2; _progressTime1 = new Resources.GREEN_BAR(); _progressTime1.x = 7; _progressTime1.y = 73; _progressTime1.visible = true; addChild(_progressTime1); _progressTimeMask1 = new Shape(); _progressTimeMask1.x = 7; _progressTimeMask1.y = 72; _progressTimeMask1.graphics.beginFill(0); _progressTimeMask1.graphics.drawRect(1, 1, 178, 18); addChild(_progressTimeMask1); _progressTime2 = new Resources.RED_BAR(); _progressTime2.x = 7; _progressTime2.y = 72; _progressTime2.visible = false; addChild(_progressTime2); _progressTimeMask2 = new Shape(); _progressTimeMask2.x = 7; _progressTimeMask2.y = 72; _progressTimeMask2.graphics.beginFill(0); _progressTimeMask2.graphics.drawRect(1, 1, 178, 18); addChild(_progressTimeMask2); _progressTime1.mask = _progressTimeMask1; _progressTime2.mask = _progressTimeMask2; _mask = new Shape(); _mask.graphics.beginFill(0); if (_arg2 == 0){ _mask.graphics.drawRect(0, 0, width, (height / 2)); } else { _mask.graphics.drawRect(0, 0, width, height); }; addChild(_mask); mask = _mask; } public function set progressTime(_arg1:Number):void{ if (((_timeLimit - _arg1) / _timeLimit) >= 0){ _progressTimeMask1.scaleX = ((_timeLimit - _arg1) / _timeLimit); _progressTimeMask2.scaleX = ((_timeLimit - _arg1) / _timeLimit); } else { _progressTimeMask1.scaleX = 0; _progressTimeMask2.scaleX = 0; }; if ((_timeLimit - _arg1) <= 30){ _progressTime1.visible = false; _progressTime2.visible = true; }; } private function onAnimateTimer1(_arg1:TimerEvent):void{ if (((_arg1.currentTarget as Timer).currentCount % 2) == 0){ _progressGoldenBlocks1.visible = true; _progressGoldenBlocks2.visible = false; } else { _progressGoldenBlocks2.visible = true; _progressGoldenBlocks1.visible = false; }; } public function set progressGoldenBlocks(_arg1:Number):void{ var _local3:Timer; var _local2:Number = _progressGoldenBlocksMask1.scaleX; if ((_arg1 / _goalGoldenBlocks) >= 0){ _progressGoldenBlocksMask1.scaleX = (_arg1 / _goalGoldenBlocks); _progressGoldenBlocksMask2.scaleX = (_arg1 / _goalGoldenBlocks); } else { _progressGoldenBlocksMask1.scaleX = 0; _progressGoldenBlocksMask2.scaleX = 0; }; if (_local2 > _progressGoldenBlocksMask1.scaleX){ _local3 = new Timer(50, 6); _local3.addEventListener(TimerEvent.TIMER, onAnimateTimer1, false, 0, true); _local3.start(); }; } } }//package com.gamelion
Section 40
//ApplicationMode (com.gamelion.ApplicationMode) package com.gamelion { import flash.display.*; public class ApplicationMode extends Sprite { private var _context:Application; public function ApplicationMode(_arg1:Application){ _context = _arg1; this.x = -400; this.y = -440; } public function leave():void{ _context.backgroundContainer.removeChild(this); } public function enter():void{ _context.backgroundContainer.addChild(this); } public function set context(_arg1:Application):void{ _context = _arg1; } public function get context():Application{ return (_context); } } }//package com.gamelion
Section 41
//Brick (com.gamelion.Brick) package com.gamelion { public class Brick { private var _currentFace:int; private var _row:int; private var _color:Number; private var _specialBrick:Boolean; private var _startLine:int; private var _gapFillingBrick:Boolean; private var _column:int; private var _faces:Array; public function Brick(_arg1:Array, _arg2:Number, _arg3:int, _arg4:Boolean){ var _local6:int; var _local7:int; super(); _startLine = _arg3; _color = _arg2; _faces = _arg1.slice(); _currentFace = 0; _startLine = _arg3; _column = 4; _row = 0; _row = -(_arg3); var _local5:int; while (_local5 < (_faces.length - 1)) { _local6 = 0; while (_local6 < 4) { _local7 = 0; while (_local7 < 4) { if (_faces[_local5][_local6][_local7] != 0){ _faces[_local5][_local6][_local7] = _arg2; }; _local7++; }; _local6++; }; _local5++; }; _gapFillingBrick = _faces[(_faces.length - 1)]; _specialBrick = _arg4; } public function get column():int{ return (_column); } public function get specialBrick():Boolean{ return (_specialBrick); } public function get row():int{ return (_row); } public function clone():Brick{ return (new Brick(_faces, _color, _startLine, _specialBrick)); } public function rotate():void{ if (_currentFace < (_faces.length - 2)){ _currentFace++; } else { _currentFace = 0; }; } public function get color():Number{ return (_color); } public function set column(_arg1:int):void{ _column = _arg1; } public function get nextFace():Array{ if (_currentFace < (_faces.length - 2)){ return (_faces[(_currentFace + 1)]); }; return (_faces[0]); } public function set row(_arg1:int):void{ _row = _arg1; } public function get startLine():int{ return (_startLine); } public function get gapFillingBrick():Boolean{ return (_gapFillingBrick); } public function get currentFace():Array{ return (_faces[_currentFace]); } } }//package com.gamelion
Section 42
//GameMode (com.gamelion.GameMode) package com.gamelion { import flash.events.*; import flash.display.*; import com.gamelion.mp3player.*; import flash.media.*; import flash.net.*; import gs.*; import com.gamelion.utils.*; import flash.text.*; import flash.utils.*; import flash.ui.*; public class GameMode extends ApplicationMode { private var _goalGoldenBlocks:Number; private var _points:Number; private var _tetraminos:Array; private var _difficultyValueText:TextField; private var _difficultyLeftArrow:TextField; private var _soundPlayer:SoundPlayer; private var _lineMode:Boolean; private var _lineRemovedSound:Sound; private var _bricksNumber:int; private var _levelLinesCounter:Number; private var _currentBrick:Brick; private var _patternText:TextField; private var _lastBricks:Array; private var _levelValueText:TextField; private var _pauseMode:Boolean; private var _levelLeftArrow:TextField; private var _gameOver:MovieClip; private var _difficultyRightArrow:TextField; private var _animArray:Array; private var _difficultyLevel:Number; private var _brickPatterns:Array; private var _goalLines:Number; private var _shadowBlockValueText:TextField; private var _levelText:TextField; private var _shadowBlockLeftArrow:TextField; private var _enterYourName:TextField; private var _pauseForAnimation:Boolean; private var _backgroundDecoration:Bitmap; private var _elephant:MovieClip; private var _menuSound:Sound; private var _infoPanel:InfoPanel; private var _shadowBlockRightArrow:TextField; private var _patternRightArrow:TextField; private var _nameInput:TextField; private var _brickDockedSound:Sound; private var _adventureModeHud:AdventureModeHud; private var _level:Number; private var _specialTetraminos:Array; private var _colors:Array; private var _score:Number; private var _specialTetramino:Number; private var _nextBrick:Brick; private var _backButton:TextField; private var _brickLimit:Number; private var _nextButton:TextField; private var _shadowBlock:Boolean; private var _difficultyText:TextField; private var _uid:Number; private var _header:TextField; private var _gameStage:GameStage; private var _levelRightArrow:TextField; private var _nextBrickPanel:NextBrickPanel; private var _gameFieldBackground:MovieClip; private var _specialText:TextField; private var _plain:Sprite; private var _background:Bitmap; private var _wellDone:MovieClip; private var _adventureModeTimer:Timer; private var _brickRotateSound:Sound; private var _adventureMode:Boolean; private var _table:Number; private var _pointsLimit:Number; private var _shadowBlockText:TextField; private var _linesCounter:Number; private var _patternLeftArrow:TextField; private var _gameTimer:Timer; private var _brickPattern:Number; public function GameMode(_arg1:Application, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Boolean, _arg6:Number, _arg7:Number=-1, _arg8:Number=0){ super(_arg1); _pauseMode = false; _table = _arg6; _difficultyLevel = _arg4; _level = _arg3; _brickPattern = _arg2; _shadowBlock = _arg5; _points = 0; _linesCounter = 0; _pointsLimit = 3000; _brickLimit = 7; _bricksNumber = 1; _score = _arg8; _uid = _arg7; var _local9:Array = [[[0, 0, 0, 0], [0, 0, 0, 0], [1, 1, 1, 0], [0, 1, 0, 0]], [[0, 0, 0, 0], [0, 1, 0, 0], [1, 1, 0, 0], [0, 1, 0, 0]], [[0, 0, 0, 0], [0, 1, 0, 0], [1, 1, 1, 0], [0, 0, 0, 0]], [[0, 0, 0, 0], [0, 1, 0, 0], [0, 1, 1, 0], [0, 1, 0, 0]], false]; var _local10:Array = [[[0, 0, 0, 0], [0, 0, 0, 0], [1, 1, 0, 0], [0, 1, 1, 0]], [[0, 0, 0, 0], [0, 0, 1, 0], [0, 1, 1, 0], [0, 1, 0, 0]], false]; var _local11:Array = [[[0, 0, 0, 0], [0, 0, 0, 0], [0, 1, 1, 0], [1, 1, 0, 0]], [[0, 0, 0, 0], [0, 1, 0, 0], [0, 1, 1, 0], [0, 0, 1, 0]], false]; var _local12:Array = [[[0, 0, 0, 0], [0, 0, 0, 0], [0, 1, 1, 0], [0, 1, 1, 0]], false]; var _local13:Array = [[[0, 0, 0, 0], [0, 0, 0, 0], [1, 1, 1, 0], [1, 0, 0, 0]], [[0, 0, 0, 0], [1, 1, 0, 0], [0, 1, 0, 0], [0, 1, 0, 0]], [[0, 0, 0, 0], [0, 0, 1, 0], [1, 1, 1, 0], [0, 0, 0, 0]], [[0, 0, 0, 0], [0, 1, 0, 0], [0, 1, 0, 0], [0, 1, 1, 0]], false]; var _local14:Array = [[[0, 0, 0, 0], [0, 0, 0, 0], [1, 1, 1, 0], [0, 0, 1, 0]], [[0, 0, 0, 0], [0, 1, 0, 0], [0, 1, 0, 0], [1, 1, 0, 0]], [[0, 0, 0, 0], [1, 0, 0, 0], [1, 1, 1, 0], [0, 0, 0, 0]], [[0, 0, 0, 0], [0, 1, 1, 0], [0, 1, 0, 0], [0, 1, 0, 0]], false]; var _local15:Array = [[[0, 0, 0, 0], [0, 0, 0, 0], [1, 1, 1, 1], [0, 0, 0, 0]], [[0, 0, 1, 0], [0, 0, 1, 0], [0, 0, 1, 0], [0, 0, 1, 0]], false]; var _local16:Array = [[[0, 0, 0, 0], [0, 0, 0, 0], [0, 1, 0, 0], [0, 0, 0, 0]], true]; var _local17:Array = [[[0, 0, 0, 0], [1, 0, 1, 0], [1, 1, 1, 0], [1, 0, 1, 0]], [[1, 1, 1, 0], [0, 1, 0, 0], [1, 1, 1, 0], [0, 0, 0, 0]], false]; var _local18:Array = [[[0, 0, 0, 0], [0, 0, 0, 0], [1, 1, 1, 0], [1, 0, 1, 0]], [[1, 1, 0, 0], [0, 1, 0, 0], [1, 1, 0, 0], [0, 0, 0, 0]], [[0, 1, 0, 1], [0, 1, 1, 1], [0, 0, 0, 0], [0, 0, 0, 0]], [[0, 0, 0, 0], [0, 0, 1, 1], [0, 0, 1, 0], [0, 0, 1, 1]], false]; var _local19:Array = [[[0, 0, 0, 0], [0, 0, 0, 0], [0, 1, 0, 1], [1, 0, 1, 0]], [[1, 0, 0, 0], [0, 1, 0, 0], [1, 0, 0, 0], [0, 1, 0, 0]], [[0, 1, 0, 1], [1, 0, 1, 0], [0, 0, 0, 0], [0, 0, 0, 0]], [[0, 0, 1, 0], [0, 0, 0, 1], [0, 0, 1, 0], [0, 0, 0, 1]], false]; var _local20:Array = [[[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 1], [1, 1, 1, 0]], [[1, 0, 0, 0], [1, 0, 0, 0], [1, 0, 0, 0], [0, 1, 0, 0]], [[0, 1, 1, 1], [1, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]], [[0, 0, 1, 0], [0, 0, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1]], false]; var _local21:Array = [[[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 1, 0], [0, 1, 1, 0]], [[0, 0, 0, 0], [0, 0, 0, 0], [0, 1, 0, 0], [0, 1, 1, 0]], [[0, 0, 0, 0], [0, 0, 0, 0], [0, 1, 1, 0], [0, 1, 0, 0]], [[0, 0, 0, 0], [0, 0, 0, 0], [0, 1, 1, 0], [0, 0, 1, 0]], false]; var _local22:Array = [[[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 1, 0], [0, 0, 1, 0]], [[0, 0, 0, 0], [0, 0, 0, 0], [0, 1, 1, 0], [0, 0, 0, 0]], false]; _tetraminos = [[_local15, 1, false], [_local14, 1, false], [_local13, 1, false], [_local12, 1, false], [_local11, 1, false], [_local9, 1, false], [_local10, 1, false], [_local16, 1, false], [_local22, 1, true], [_local21, 1, false]]; _levelLinesCounter = 0; _lastBricks = [4, 6, 4, 6]; _colors = [0xFF7200, 0x92D700, 2536416, 15551416, 0xFEEE00, 16731718, 8544175]; _soundPlayer = SoundPlayer.getInstance(); _brickRotateSound = new Resources.ROTATE_SOUND(); _brickDockedSound = new Resources.DOCK_SOUND(); _lineRemovedSound = new Resources.LINE_SOUND(); _menuSound = new Resources.MENU_SOUND(); var _local23:Bitmap = new Resources.PLAIN(); _local23.smoothing = true; _local23.x = (-(_local23.width) / 2); _local23.y = (-(_local23.height) / 2); _plain = new Sprite(); _plain.addChild(_local23); if (_arg7 > -1){ printChallengeNote(); } else { if (_table != 0){ printGoals(); } else { drawGameField(); _goalGoldenBlocks = 0; }; }; } private function pause():void{ _pauseMode = true; _gameStage.hideBricks(); if (_adventureModeTimer != null){ _adventureModeTimer.stop(); }; _gameTimer.stop(); _gameStage.pause(); _gameStage.removeEventListener(GameStage.GAME_OVER, onGameOver); _gameStage.removeEventListener(GameStage.BRICK_DOCKED, onBrickDocked); _gameStage.removeEventListener(GameStage.GAME_OVER, onGameOver); _gameStage.removeEventListener(GameStageEvent.LINES_REMOVED, onFullLine); _gameStage.removeEventListener(GameStageEvent.HARD_DROP, onHardDrop); _header = new TextField(); _header.text = Localization.GAME_PAUSED; _header.width = 230; _header.selectable = false; _header.setTextFormat(new TextFormat("journalFont", 35, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _header.embedFonts = true; _header.y = 350; _header.x = (450 - (_header.width / 2)); addChild(_header); } private function onNo(_arg1:MouseEvent):void{ if (_adventureModeTimer != null){ _adventureModeTimer.start(); }; context.stage.stageFocusRect = false; context.stage.focus = this; addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown, false, 0, true); addEventListener(KeyboardEvent.KEY_UP, onKeyUp, false, 0, true); removeChild(_header); _header = null; removeChild(_nextButton); _nextButton = null; removeChild(_backButton); _backButton = null; _pauseMode = false; _gameStage.addEventListener(GameStage.GAME_OVER, onGameOver, false, 0, true); _gameStage.addEventListener(GameStage.BRICK_DOCKED, onBrickDocked, false, 0, true); _gameStage.addEventListener(GameStage.GAME_OVER, onGameOver, false, 0, true); _gameStage.addEventListener(GameStageEvent.LINES_REMOVED, onFullLine, false, 0, true); _gameStage.addEventListener(GameStageEvent.HARD_DROP, onHardDrop, false, 0, true); addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown, false, 0, true); addEventListener(KeyboardEvent.KEY_UP, onKeyUp, false, 0, true); _gameStage.renderStage(); _gameTimer.start(); _infoPanel.addEventListener(InfoPanel.PAUSE, onPause, false, 0, true); _infoPanel.addEventListener(InfoPanel.QUIT, onQuit, false, 0, true); } private function unpause():void{ if (_header){ removeChild(_header); }; _header = null; _pauseMode = false; _gameStage.unpause(); if (_adventureModeTimer != null){ _adventureModeTimer.start(); }; _gameStage.addEventListener(GameStage.GAME_OVER, onGameOver, false, 0, true); _gameStage.addEventListener(GameStage.BRICK_DOCKED, onBrickDocked, false, 0, true); _gameStage.addEventListener(GameStage.GAME_OVER, onGameOver, false, 0, true); _gameStage.addEventListener(GameStageEvent.LINES_REMOVED, onFullLine, false, 0, true); _gameStage.addEventListener(GameStageEvent.HARD_DROP, onHardDrop, false, 0, true); _gameStage.renderStage(); if (!_pauseForAnimation){ _gameTimer.start(); }; } private function onTableGoalsStageResetingCompleted(_arg1:Event):void{ removeChild(_gameStage); _gameStage = null; _wellDone = new Resources.WELL_DONE(); _wellDone.x = (450 - (_wellDone.width / 2)); _wellDone.y = 115; _wellDone.addEventListener(Event.ENTER_FRAME, onWellDoneEnterFrame, false, 0, true); addChild(_wellDone); } private function printGoals():void{ _header = new TextField(); _nextButton = new TextField(); _nextButton.text = Localization.PLAY_TEXT; switch (_table){ case 1: _goalGoldenBlocks = 40; _header.text = Localization.LEVEL_INSTRUCTIONS1; break; case 2: _goalGoldenBlocks = 60; _lineMode = true; _goalLines = 20; _header.text = Localization.LEVEL_INSTRUCTIONS2; break; case 3: _goalGoldenBlocks = 60; _lineMode = true; _goalLines = 20; _adventureModeTimer = new Timer(1000, 180); _header.text = Localization.LEVEL_INSTRUCTIONS3; break; case 4: _goalGoldenBlocks = 60; _lineMode = true; _goalLines = 20; _adventureModeTimer = new Timer(1000, 120); _header.text = Localization.LEVEL_INSTRUCTIONS4; break; case 5: _difficultyLevel = 5; _goalGoldenBlocks = 80; _lineMode = true; _goalLines = 20; _adventureModeTimer = new Timer(1000, 120); _header.text = Localization.LEVEL_INSTRUCTIONS5; break; }; _level = GameSlot.level; _adventureMode = true; _header.width = 500; _header.selectable = false; _header.wordWrap = true; _header.setTextFormat(new TextFormat("journalFont", 55, 7367010, true, null, null, null, null, TextFormatAlign.CENTER, null, null, null, -20)); _header.embedFonts = true; _header.height = (_header.textHeight + 10); _header.y = (440 - (_header.height / 2)); _header.x = (400 - (_header.width / 2)); addChild(_header); _nextButton.width = 100; _nextButton.selectable = false; _nextButton.setTextFormat(new TextFormat("journalFont", 45, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _nextButton.embedFonts = true; _nextButton.wordWrap = true; _nextButton.y = ((_header.y + _header.textHeight) + 6); _nextButton.x = (400 + _nextButton.width); _nextButton.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _nextButton.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _nextButton.addEventListener(MouseEvent.CLICK, onPlay, false, 0, true); addChild(_nextButton); _backButton = new TextField(); _backButton.text = Localization.BACK_TEXT; _backButton.width = 100; _backButton.selectable = false; _backButton.setTextFormat(new TextFormat("journalFont", 45, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _backButton.embedFonts = true; _backButton.wordWrap = true; _backButton.y = ((_header.y + _header.textHeight) + 6); _backButton.x = (400 - (1.5 * _backButton.width)); _backButton.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _backButton.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _backButton.addEventListener(MouseEvent.CLICK, onAdventureModeBack, false, 0, true); addChild(_backButton); } private function onAdventureModeBack(_arg1:MouseEvent):void{ removeChild(_header); _header = null; removeChild(_nextButton); _nextButton = null; removeChild(_backButton); _backButton = null; dispatchEvent(new GameStageEvent(GameStageEvent.QUIT_GAME, 0, 0, 0, 0, 0, 0, _adventureMode)); } private function randomBrick():Number{ var _local1:Number; if ((_bricksNumber % 10) == 0){ if (_specialTetramino != -1){ _bricksNumber++; return ((Math.floor((Math.random() * 2)) + 8)); }; }; if (((_bricksNumber % 28) - _level) == 0){ _local1 = Math.floor((Math.random() * 6)); switch (_local1){ case 0: _plain.x = 400; _plain.y = -(_plain.height); _plain.rotation = 0; context.addChild(_plain); TweenLite.to(_plain, 4, {y:(800 + _plain.height), onComplete:context.removeChild, onCompleteParams:[_plain]}); break; case 1: _plain.rotation = 90; _plain.x = (800 + _plain.width); _plain.y = 400; context.addChild(_plain); TweenLite.to(_plain, 4, {x:-(_plain.width), onComplete:context.removeChild, onCompleteParams:[_plain]}); break; case 2: _plain.x = 400; _plain.y = (800 + _plain.height); _plain.rotation = 180; context.addChild(_plain); TweenLite.to(_plain, 4, {y:-(_plain.height), onComplete:context.removeChild, onCompleteParams:[_plain]}); break; case 3: _plain.rotation = 270; _plain.x = -(_plain.width); _plain.y = 400; context.addChild(_plain); TweenLite.to(_plain, 4, {x:(800 + _plain.width), onComplete:context.removeChild, onCompleteParams:[_plain]}); break; case 4: _plain.x = -(_plain.width); _plain.y = (800 + _plain.height); _plain.rotation = 225; context.addChild(_plain); TweenLite.to(_plain, 4, {x:(800 + _plain.width), y:-(_plain.height), onComplete:context.removeChild, onCompleteParams:[_plain]}); break; case 5: _plain.rotation = 315; _plain.x = -(_plain.width); _plain.y = -(_plain.height); context.addChild(_plain); TweenLite.to(_plain, 4, {x:(800 + _plain.width), y:(800 + _plain.height), onComplete:context.removeChild, onCompleteParams:[_plain]}); break; case 6: _plain.x = (800 + _plain.width); _plain.y = -(_plain.height); _plain.rotation = 45; context.addChild(_plain); TweenLite.to(_plain, 4, {y:(800 + _plain.height), x:-(_plain.width), onComplete:context.removeChild, onCompleteParams:[_plain]}); break; case 7: _plain.rotation = 135; _plain.x = (800 + _plain.width); _plain.y = (800 + _plain.height); context.addChild(_plain); TweenLite.to(_plain, 4, {x:-(_plain.width), y:-(_plain.width), onComplete:context.removeChild, onCompleteParams:[_plain]}); break; }; }; if (((((_bricksNumber % 21) == 0)) && ((_level > 3)))){ _bricksNumber++; return (7); }; var _local2:int; while (_local2 < 10) { _local1 = Math.floor((Math.random() * _brickLimit)); if (_lastBricks.indexOf(_local1) == -1){ break; }; _local2++; }; _lastBricks.shift(); _lastBricks.push(_local1); _bricksNumber++; return (_local1); } private function onGameOverStageResetingCompleted(_arg1:Event):void{ removeChild(_gameStage); _gameOver = new Resources.GAME_OVER(); _gameOver.x = (450 - (_gameOver.width / 2)); _gameOver.y = 115; _gameOver.addEventListener(Event.ENTER_FRAME, onGameOverEnterFrame, false, 0, true); addChild(_gameOver); _gameOver.play(); } private function onGameOverEnterFrame(_arg1:Event):void{ var _local2:MovieClip = (_arg1.currentTarget as MovieClip); if (_local2.currentFrame == _local2.totalFrames){ displayHighScoreForm(); }; } private function displayCongratulations():void{ removeChild(_gameFieldBackground); removeChild(_infoPanel); _infoPanel = null; _gameFieldBackground = null; _nextButton = new TextField(); _header = new TextField(); if (_table < 5){ _header.text = Localization.CONGRATULATIONS1; _nextButton.text = Localization.PLAY_TEXT; } else { _header.text = Localization.CONGRATULATIONS2; _nextButton.text = Localization.BACK_TEXT; }; _header.width = 600; _header.height = 500; _header.selectable = false; _header.wordWrap = true; _header.setTextFormat(new TextFormat("journalFont", 65, 7367010, true, null, null, null, null, TextFormatAlign.CENTER, null, null, null, -10)); _header.embedFonts = true; _header.height = 200; _header.y = 350; _header.x = (400 - (_header.width / 2)); addChild(_header); _nextButton.width = 100; _nextButton.selectable = false; _nextButton.setTextFormat(new TextFormat("journalFont", 45, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _nextButton.embedFonts = true; _nextButton.wordWrap = true; _nextButton.y = ((_header.y + _header.textHeight) + 6); _nextButton.x = (400 - (_nextButton.width / 2)); _nextButton.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _nextButton.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _nextButton.addEventListener(MouseEvent.CLICK, onTableGolasCompleted, false, 0, true); addChild(_nextButton); } private function drawGameField():void{ var _local1:Sprite = new Sprite(); _local1.graphics.beginFill(0xFFFFFF); _local1.graphics.drawRect(0, 0, 800, 800); _gameFieldBackground = new Resources.GAMEFIELD_BACKGROUND(); _gameFieldBackground.mask; _gameFieldBackground.addEventListener(Event.ENTER_FRAME, onGameFieldEnterFrame, false, 0, true); _gameFieldBackground.x = (442 - (_gameFieldBackground.width / 2)); _gameFieldBackground.y = (547 - (_gameFieldBackground.height / 2)); _gameFieldBackground.mask = _local1; addChild(_gameFieldBackground); addChild(_local1); _gameFieldBackground.play(); context.stage.frameRate = 100; } private function onWellDoneEnterFrame(_arg1:Event):void{ if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){ _wellDone.stop(); _wellDone.removeEventListener(Event.ENTER_FRAME, onWellDoneEnterFrame); removeChild(_wellDone); _wellDone = null; displayCongratulations(); }; } private function onFullLine(_arg1:GameStageEvent):void{ var _local2:Boolean; if (_arg1.linesRemoved == 1){ _points = (_points + (40 + (40 * _level))); }; if (_arg1.linesRemoved == 2){ _points = (_points + (100 + (100 * _level))); }; if (_arg1.linesRemoved == 3){ _points = (_points + (300 + (300 * _level))); }; if (_arg1.linesRemoved == 4){ _points = (_points + (1200 + (1200 * _level))); }; randomRotation(); _infoPanel.points = _points; _linesCounter = (_linesCounter + _arg1.linesRemoved); _levelLinesCounter = (_levelLinesCounter + _arg1.linesRemoved); if (_level < 10){ _local2 = false; if ((((_levelLinesCounter >= 10)) && ((_level < 2)))){ _levelLinesCounter = 0; _level = 2; _local2 = true; }; if ((((_levelLinesCounter >= 12)) && ((_level < 3)))){ _levelLinesCounter = 0; _level = 3; _local2 = true; }; if ((((_levelLinesCounter >= 14)) && ((_level < 4)))){ _levelLinesCounter = 0; _level = 4; _local2 = true; }; if ((((_levelLinesCounter >= 16)) && ((_level < 5)))){ _levelLinesCounter = 0; _level = 5; _local2 = true; }; if ((((_levelLinesCounter >= 18)) && ((_level < 6)))){ _levelLinesCounter = 0; _level = 6; _local2 = true; }; if ((((_levelLinesCounter >= 20)) && ((_level < 7)))){ _levelLinesCounter = 0; _level = 7; _local2 = true; }; if ((((_levelLinesCounter >= 22)) && ((_level < 8)))){ _levelLinesCounter = 0; _level = 8; _local2 = true; }; if ((((_levelLinesCounter >= 24)) && ((_level < 9)))){ _levelLinesCounter = 0; _level = 9; _local2 = true; }; if ((((_levelLinesCounter >= 26)) && ((_level < 10)))){ _levelLinesCounter = 0; _level = 10; _local2 = true; }; if (_local2){ _infoPanel.level = _level; _gameTimer.stop(); _gameTimer.removeEventListener(TimerEvent.TIMER, onTimer); _gameTimer = null; if (_level <= 3){ _gameTimer = new Timer((1100 - (_level * 100))); }; if (_level > 3){ _gameTimer = new Timer((600 - (_level * 50))); }; _gameTimer.addEventListener(TimerEvent.TIMER, onTimer, false, 0, true); _gameTimer.start(); }; }; if (_adventureMode){ _points = (_points + (50 * _arg1.goldenBlocks)); _infoPanel.points = _points; _goalGoldenBlocks = (_goalGoldenBlocks - _arg1.goldenBlocks); _adventureModeHud.progressGoldenBlocks = _goalGoldenBlocks; checkForGoals(); }; if (_lineMode){ _goalLines = (_goalLines - _arg1.linesRemoved); _infoPanel.lines = _goalLines; if (_goalLines <= 0){ checkForGoals(); }; } else { _infoPanel.lines = _linesCounter; }; _pauseForAnimation = false; _gameTimer.start(); } private function onTableGolasCompleted(_arg1:MouseEvent):void{ var _local2:Number; removeChild(_header); _header = null; removeChild(_nextButton); _nextButton = null; if (_table < 5){ _local2 = GameSlot.tableNumber; if (_local2 < (_table + 1)){ GameSlot.tableNumber = (_table + 1); }; GameSlot.level = _level; }; dispatchEvent(new GameStageEvent(GameStageEvent.TABLE_COMPLETED)); } private function onGameFieldEnterFrame(_arg1:Event):void{ var _local2:MovieClip = (_arg1.currentTarget as MovieClip); if (_local2.currentFrame == (_local2.totalFrames - 20)){ _local2.stop(); _local2.removeEventListener(Event.ENTER_FRAME, onGameFieldEnterFrame); startNewGame(); }; } private function printChallengeNote():void{ _header = new TextField(); _nextButton = new TextField(); _nextButton.text = Localization.PLAY_TEXT; switch (_table){ case 1: _goalGoldenBlocks = 40; _header.text = Localization.LEVEL_INSTRUCTIONS1; break; case 2: _goalGoldenBlocks = 60; _lineMode = true; _goalLines = 20; _header.text = Localization.LEVEL_INSTRUCTIONS2; break; case 3: _goalGoldenBlocks = 60; _lineMode = true; _goalLines = 20; _adventureModeTimer = new Timer(1000, 180); _header.text = Localization.LEVEL_INSTRUCTIONS3; break; case 4: _goalGoldenBlocks = 60; _lineMode = true; _goalLines = 20; _adventureModeTimer = new Timer(1000, 120); _header.text = Localization.LEVEL_INSTRUCTIONS4; break; case 5: _difficultyLevel = 5; _goalGoldenBlocks = 80; _lineMode = true; _goalLines = 20; _adventureModeTimer = new Timer(1000, 120); _header.text = Localization.LEVEL_INSTRUCTIONS5; break; }; _level = GameSlot.level; _adventureMode = true; _header.width = 500; _header.selectable = false; _header.wordWrap = true; _header.setTextFormat(new TextFormat("journalFont", 55, 7367010, true, null, null, null, null, TextFormatAlign.CENTER, null, null, null, -20)); _header.embedFonts = true; _header.height = (_header.textHeight + 10); _header.y = (440 - (_header.height / 2)); _header.x = (400 - (_header.width / 2)); addChild(_header); _nextButton.width = 100; _nextButton.selectable = false; _nextButton.setTextFormat(new TextFormat("journalFont", 45, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _nextButton.embedFonts = true; _nextButton.wordWrap = true; _nextButton.y = ((_header.y + _header.textHeight) + 6); _nextButton.x = (400 + _nextButton.width); _nextButton.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _nextButton.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _nextButton.addEventListener(MouseEvent.CLICK, onPlay, false, 0, true); addChild(_nextButton); _backButton = new TextField(); _backButton.text = Localization.BACK_TEXT; _backButton.width = 100; _backButton.selectable = false; _backButton.setTextFormat(new TextFormat("journalFont", 45, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _backButton.embedFonts = true; _backButton.wordWrap = true; _backButton.y = ((_header.y + _header.textHeight) + 6); _backButton.x = (400 - (1.5 * _backButton.width)); _backButton.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _backButton.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _backButton.addEventListener(MouseEvent.CLICK, onAdventureModeBack, false, 0, true); addChild(_backButton); } private function onBrickDocked(_arg1:Event):void{ var _local2:Number = Math.floor((Math.random() * 3)); var _local3:Number = randomBrick(); if (_local3 == 8){ _local2 = 3; }; if (_local3 == 9){ _local2 = 4; }; _currentBrick = _nextBrick; _nextBrick = new Brick(_tetraminos[_local3][0], (_local2 + 1), _tetraminos[_local3][1], _tetraminos[_local3][2]); _gameStage.brick = _currentBrick; _gameStage.renderStage(); _nextBrickPanel.nextBrick = _nextBrick; } private function randomRotation():void{ _gameTimer.start(); } private function onBack(_arg1:MouseEvent):void{ _soundPlayer.playSound(_menuSound); dispatchEvent(new GameStageEvent(GameStageEvent.GAME_OVER)); } private function onMouseOut(_arg1:MouseEvent):void{ _arg1.currentTarget.setTextFormat(new TextFormat("journalFont", _arg1.currentTarget.getTextFormat().size, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); } private function onFullLinesFound(_arg1:GameStageEvent):void{ _pauseForAnimation = true; _gameTimer.stop(); } private function onHardDrop(_arg1:GameStageEvent):void{ _points = (_points + (_arg1.hardDrop + (_arg1.hardDrop * _level))); _infoPanel.points = _points; stage.focus = this; } private function displayHighScoreForm():void{ if (_infoPanel){ removeChild(_infoPanel); }; _gameStage = null; _nextBrickPanel = null; _infoPanel = null; if (_gameOver != null){ _gameOver.visible = false; _gameFieldBackground.visible = false; _gameOver.removeEventListener(Event.ENTER_FRAME, onGameOverEnterFrame); _gameOver.stop(); _gameOver = null; }; if (_adventureMode){ dispatchEvent(new GameStageEvent(GameStageEvent.GAME_OVER, 0, 0, 0, 0, 0, 0, _adventureMode)); } else { _header = new TextField(); _header.text = Localization.YOU_HAVE_SCORED_POINTS.replace("###", (_points + "")); _header.width = 400; _header.selectable = false; _header.setTextFormat(new TextFormat("journalFont", 50, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _header.embedFonts = true; _header.wordWrap = true; _header.y = 330; _header.x = (400 - (_header.width / 2)); addChild(_header); _enterYourName = new TextField(); _enterYourName.text = Localization.PLEASE_ENTER_YOUR_NAME; _enterYourName.width = 230; _enterYourName.selectable = false; _enterYourName.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _enterYourName.embedFonts = true; _enterYourName.y = 400; _enterYourName.x = (400 - (_enterYourName.width / 2)); addChild(_enterYourName); _nameInput = new TextField(); _nameInput.width = 230; _nameInput.defaultTextFormat = new TextFormat("journalFont", 55, 7367010, true, null, null, null, null, TextFormatAlign.CENTER); _nameInput.embedFonts = true; _nameInput.y = 440; _nameInput.x = (400 - (_nameInput.width / 2)); _nameInput.type = TextFieldType.INPUT; _nameInput.maxChars = 30; _nameInput.height = 80; addChild(_nameInput); context.stage.focus = _nameInput; context.stage.stageFocusRect = false; _nextButton = new TextField(); _nextButton.text = Localization.SUBMIT; _nextButton.selectable = false; _nextButton.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _nextButton.embedFonts = true; _nextButton.width = 100; _nextButton.height = 50; _nextButton.x = (_header.x + 30); _nextButton.y = 540; _nextButton.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _nextButton.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _nextButton.addEventListener(MouseEvent.CLICK, onHighscoreSubmit, false, 0, true); addChild(_nextButton); _backButton = new TextField(); _backButton.text = Localization.CANCEL; _backButton.selectable = false; _backButton.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _backButton.embedFonts = true; _backButton.width = 100; _backButton.height = 50; _backButton.x = (((_header.x + _header.width) - _backButton.width) - 30); _backButton.y = 540; _backButton.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _backButton.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _backButton.addEventListener(MouseEvent.CLICK, onBack, false, 0, true); addChild(_backButton); }; } private function onPause(_arg1:Event):void{ if (_pauseMode == true){ _infoPanel.pause = Localization.PAUSE; unpause(); } else { _infoPanel.pause = Localization.RESUME; pause(); }; } private function onYes(_arg1:Event):void{ if (_gameFieldBackground){ removeChild(_gameFieldBackground); }; if (_gameStage){ _gameTimer.removeEventListener(TimerEvent.TIMER, onTimer); _gameStage.removeEventListener(GameStage.GAME_OVER, onGameOver); _gameStage.removeEventListener(GameStage.BRICK_DOCKED, onBrickDocked); _gameStage.removeEventListener(GameStage.GAME_OVER, onGameOver); _gameStage.removeEventListener(GameStageEvent.LINES_REMOVED, onFullLine); _gameStage.removeEventListener(GameStageEvent.HARD_DROP, onHardDrop); removeEventListener(KeyboardEvent.KEY_DOWN, onKeyDown); removeEventListener(KeyboardEvent.KEY_UP, onKeyUp); context.stage.removeEventListener(MouseEvent.CLICK, onClick); }; dispatchEvent(new GameStageEvent(GameStageEvent.QUIT_GAME, 0, 0, 0, 0, 0, 0, _adventureMode)); } private function onHighscoreSubmit(_arg1:MouseEvent):void{ var _local5:HighScoresSystem; _soundPlayer.playSound(_menuSound); var _local2 = "http://stodrew.pl/amfphp/gateway.php"; var _local3:RemotingConnection = new RemotingConnection(_local2); var _local4:Responder = new Responder(onRespond); _nameInput.text = (_nameInput.text.charAt(0).toLocaleUpperCase() + _nameInput.text.slice(1).toLocaleLowerCase()); if (_nameInput.text.length != 0){ _local5 = new HighScoresSystem("http://fac.game-lion.com/amfphp/gateway.php"); _local5.saveScore(5, _nameInput.text, _points); _local5.addEventListener(HighScoreSavedEvent.COMPLETE, onRespond, false, 0, true); } else { removeChild(_header); removeChild(_enterYourName); removeChild(_nameInput); removeChild(_nextButton); removeChild(_backButton); _header = new TextField(); _header.text = "You need to enter your name ..."; _header.width = 400; _header.selectable = false; _header.setTextFormat(new TextFormat("journalFont", 70, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _header.embedFonts = true; _header.wordWrap = true; _header.height = 400; _header.y = 330; _header.x = (400 - (_header.width / 2)); addChild(_header); TweenLite.delayedCall(1.5, redisplaySubmitForm); }; } private function redisplaySubmitForm():void{ if (_header){ removeChild(_header); }; displayHighScoreForm(); } private function onAnimClipEnterFrame(_arg1:Event):void{ var _local2:MovieClip = (_arg1.currentTarget as MovieClip); if (_local2.currentFrame == _local2.totalFrames){ _local2.stop(); _local2.removeEventListener(Event.ENTER_FRAME, onAnimClipEnterFrame); removeChild(_local2); }; } private function checkForGoals():void{ if (_goalGoldenBlocks <= 0){ if (_lineMode){ if (_goalLines <= 0){ tableGoalsCompleted(); }; } else { tableGoalsCompleted(); }; }; } private function onAdventureModeTimerUpdate(_arg1:TimerEvent):void{ _adventureModeHud.progressTime = _arg1.currentTarget.currentCount; } private function onFullLinesRemoved(_arg1:GameStageEvent):void{ } private function onKeyUp(_arg1:KeyboardEvent):void{ if (!_pauseMode){ if (_arg1.keyCode == Keyboard.DOWN){ _gameStage.softDropOff(); }; }; } private function onRespond(_arg1:HighScoreSavedEvent):void{ _gameStage = null; dispatchEvent(new GameStageEvent(GameStageEvent.GAME_OVER, 0, 0, 0, 0, 0, 0, _adventureMode)); } private function onTimer(_arg1:TimerEvent):void{ var _local2:MovieClip; _gameStage.moveBrickToNextLine(); _gameStage.renderStage(); if (_points >= _pointsLimit){ _local2 = _animArray.shift(); addChild(_local2); _local2.gotoAndPlay(1); _local2.addEventListener(Event.ENTER_FRAME, onAnimClipEnterFrame, false, 0, true); _pointsLimit = (_pointsLimit + 7500); _animArray.push(_local2); }; } private function onKeyDown(_arg1:KeyboardEvent):void{ if (((!(_pauseMode)) && (!(_pauseForAnimation)))){ if (_arg1.keyCode == Keyboard.UP){ _gameStage.rotateBrick(); _gameStage.renderStage(); }; if (_arg1.keyCode == Keyboard.LEFT){ _gameStage.moveBrick(-1); _gameStage.renderStage(); }; if (_arg1.keyCode == Keyboard.RIGHT){ _gameStage.moveBrick(1); _gameStage.renderStage(); }; if (_arg1.keyCode == Keyboard.DOWN){ _gameStage.softDrop(); }; if (_arg1.keyCode == Keyboard.SPACE){ _gameStage.dropBrick(); }; }; if (_arg1.keyCode == 80){ if ((_pauseMode == true)){ _infoPanel.pause = Localization.PAUSE; unpause(); } else { _infoPanel.pause = Localization.RESUME; pause(); }; }; } private function onGoldenBlocsEstablished(_arg1:GameStageEvent):void{ _pauseForAnimation = false; _gameStage.renderStage(); _gameTimer.start(); } private function onAdventureModeTimerComplete(_arg1:TimerEvent):void{ if (((((_lineMode) && ((_goalLines > 0)))) || ((_goalGoldenBlocks > 0)))){ onGameOver(null); }; } private function onQuit(_arg1:Event):void{ if (_pauseMode == true){ _infoPanel.pause = Localization.PAUSE; unpause(); }; if (_adventureModeTimer != null){ _adventureModeTimer.stop(); }; removeEventListener(KeyboardEvent.KEY_DOWN, onKeyDown); removeEventListener(KeyboardEvent.KEY_UP, onKeyUp); _infoPanel.removeEventListener(InfoPanel.PAUSE, onPause); _infoPanel.removeEventListener(InfoPanel.QUIT, onQuit); _pauseMode = true; _gameStage.hideBricks(); _gameTimer.stop(); _header = new TextField(); _header.text = Localization.ARE_YOU_SURE_YOU_WANT_TO_QUIT; _header.width = 230; _header.selectable = false; _header.wordWrap = true; _header.setTextFormat(new TextFormat("journalFont", 45, 7367010, true, null, null, null, null, TextFormatAlign.CENTER, null, null, null, -10)); _header.embedFonts = true; _header.height = 200; _header.y = 350; _header.x = (450 - (_header.width / 2)); addChild(_header); _nextButton = new TextField(); _nextButton.text = Localization.YES; _nextButton.width = 100; _nextButton.selectable = false; _nextButton.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _nextButton.embedFonts = true; _nextButton.wordWrap = true; _nextButton.y = ((_header.y + _header.textHeight) + 6); _nextButton.x = _header.x; _nextButton.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _nextButton.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _nextButton.addEventListener(MouseEvent.CLICK, onYes, false, 0, true); addChild(_nextButton); _backButton = new TextField(); _backButton.text = Localization.NO; _backButton.selectable = false; _backButton.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _backButton.embedFonts = true; _backButton.width = 100; _backButton.height = 50; _backButton.x = ((_header.x + _header.width) - _nextButton.width); _backButton.y = ((_header.y + _header.textHeight) + 6); _backButton.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _backButton.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _backButton.addEventListener(MouseEvent.CLICK, onNo, false, 0, true); addChild(_backButton); } private function onGoldenBlocsFound(_arg1:GameStageEvent):void{ _pauseForAnimation = true; _gameTimer.stop(); } private function onGameOver(_arg1:Event):void{ if (_adventureModeHud){ removeChild(_adventureModeHud); }; _infoPanel.hideButtons(); removeChild(_nextBrickPanel); if (_adventureModeTimer != null){ _adventureModeTimer.stop(); _adventureModeTimer = null; }; _gameTimer.removeEventListener(TimerEvent.TIMER, onTimer); _gameStage.removeEventListener(GameStage.GAME_OVER, onGameOver); _gameStage.removeEventListener(GameStage.BRICK_DOCKED, onBrickDocked); _gameStage.removeEventListener(GameStage.GAME_OVER, onGameOver); _gameStage.removeEventListener(GameStageEvent.LINES_REMOVED, onFullLine); _gameStage.removeEventListener(GameStageEvent.HARD_DROP, onHardDrop); removeEventListener(KeyboardEvent.KEY_DOWN, onKeyDown); removeEventListener(KeyboardEvent.KEY_UP, onKeyUp); context.stage.removeEventListener(MouseEvent.CLICK, onClick); _gameStage.addEventListener(GameStage.RESET_FINISHED, onGameOverStageResetingCompleted, false, 0, true); _gameStage.resetStage(); } private function onPlay(_arg1:MouseEvent):void{ removeChild(_header); _header = null; removeChild(_nextButton); _nextButton = null; removeChild(_backButton); _backButton = null; drawGameField(); } private function startNewGame():void{ var _local3:MovieClip; context.stage.frameRate = 30; _gameStage = new GameStage(_difficultyLevel, _brickPattern, _shadowBlock); var _local1:Number = Math.floor((Math.random() * 3)); var _local2:Number = randomBrick(); _currentBrick = new Brick(_tetraminos[_local2][0], (_local1 + 1), _tetraminos[_local2][1], _tetraminos[_local2][2]); _local1 = Math.floor((Math.random() * 3)); _local2 = randomBrick(); _nextBrick = new Brick(_tetraminos[_local2][0], (_local1 + 1), _tetraminos[_local2][1], _tetraminos[_local2][2]); _gameStage.brick = _currentBrick; _gameStage.x = 330; _gameStage.y = 211; _gameStage.renderStage(); _gameStage.addEventListener(GameStage.BRICK_DOCKED, onBrickDocked, false, 0, true); _gameStage.addEventListener(GameStage.GAME_OVER, onGameOver, false, 0, true); _gameStage.addEventListener(GameStageEvent.LINES_REMOVED, onFullLine, false, 0, true); _gameStage.addEventListener(GameStageEvent.HARD_DROP, onHardDrop, false, 0, true); _gameStage.addEventListener(GameStageEvent.FULL_LINES_FOUND, onFullLinesFound, false, 0, true); _gameStage.addEventListener(GameStageEvent.FULL_LINES_REMOVED, onFullLinesRemoved, false, 0, true); _gameStage.addEventListener(GameStageEvent.GOLDEN_BLOCS_FOUND, onGoldenBlocsFound, false, 0, true); _gameStage.addEventListener(GameStageEvent.GOLDEN_BLOCS_ESTABLISHED, onGoldenBlocsEstablished, false, 0, true); addChild(_gameStage); context.stage.stageFocusRect = false; context.stage.focus = this; addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown, false, 0, true); addEventListener(KeyboardEvent.KEY_UP, onKeyUp, false, 0, true); context.stage.addEventListener(MouseEvent.CLICK, onClick, false, 0, true); if (_level < 3){ _gameTimer = new Timer((1000 - (_level * 100))); }; if (_level >= 3){ _gameTimer = new Timer((600 - (_level * 50))); }; _gameTimer.addEventListener(TimerEvent.TIMER, onTimer, false, 0, true); if (_lineMode){ _infoPanel = new InfoPanel(_lineMode, _goalLines); } else { _infoPanel = new InfoPanel(); }; _infoPanel.level = _level; _infoPanel.addEventListener(InfoPanel.PAUSE, onPause, false, 0, true); _infoPanel.addEventListener(InfoPanel.QUIT, onQuit, false, 0, true); addChild(_infoPanel); _nextBrickPanel = new NextBrickPanel(_nextBrick, _brickPattern); if (_adventureMode){ if (_adventureModeTimer){ _adventureModeHud = new AdventureModeHud(_goalGoldenBlocks, _adventureModeTimer.repeatCount); _adventureModeTimer.addEventListener(TimerEvent.TIMER, onAdventureModeTimerUpdate); _adventureModeTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onAdventureModeTimerComplete); _adventureModeTimer.start(); } else { _adventureModeHud = new AdventureModeHud(_goalGoldenBlocks); }; _adventureModeHud.x = 96; _adventureModeHud.y = 445; addChild(_adventureModeHud); }; _nextBrickPanel.x = 146; _nextBrickPanel.y = 280; addChild(_nextBrickPanel); randomRotation(); _animArray = new Array(); _animArray.push(new Resources.SNAIL()); _animArray.push(new Resources.FROG()); _animArray.push(new Resources.RABBIT()); _animArray.push(new Resources.DOLPHIN()); _animArray.push(new Resources.MONKEY()); _animArray.push(new Resources.ELEPHANT()); for each (_local3 in _animArray) { if (_local3.width > 667){ _local3.height = (_local3.height * (667 / _local3.width)); _local3.width = 667; }; _local3.x = ((800 - _local3.width) / 2); _local3.y = ((880 - _local3.height) - 60); }; } private function onClick(_arg1:MouseEvent):void{ stage.focus = this; } private function onMouseOver(_arg1:MouseEvent):void{ _arg1.currentTarget.setTextFormat(new TextFormat("journalFont", _arg1.currentTarget.getTextFormat().size, 0, true, null, null, null, null, TextFormatAlign.CENTER)); } private function tableGoalsCompleted():void{ removeChild(_nextBrickPanel); removeChild(_adventureModeHud); _infoPanel.hideButtons(); _gameTimer.removeEventListener(TimerEvent.TIMER, onTimer); _gameStage.removeEventListener(GameStage.GAME_OVER, onGameOver); _gameStage.removeEventListener(GameStage.BRICK_DOCKED, onBrickDocked); _gameStage.removeEventListener(GameStage.GAME_OVER, onGameOver); _gameStage.removeEventListener(GameStageEvent.LINES_REMOVED, onFullLine); _gameStage.removeEventListener(GameStageEvent.HARD_DROP, onHardDrop); _gameStage.removeEventListener(GameStageEvent.GOLDEN_BLOCS_ESTABLISHED, onGoldenBlocsEstablished); removeEventListener(KeyboardEvent.KEY_DOWN, onKeyDown); removeEventListener(KeyboardEvent.KEY_UP, onKeyUp); context.stage.removeEventListener(MouseEvent.CLICK, onClick); _gameStage.addEventListener(GameStage.RESET_FINISHED, onTableGoalsStageResetingCompleted, false, 0, true); _gameStage.resetStage(); } } }//package com.gamelion
Section 43
//GameSlot (com.gamelion.GameSlot) package com.gamelion { import flash.net.*; public class GameSlot { public static function set level(_arg1:Number):void{ var _local2:SharedObject = SharedObject.getLocal("sketchBlocksSave8"); _local2.data.level = _arg1; _local2.flush(); } public static function get level():Number{ var _local1:Number; var _local2:SharedObject = SharedObject.getLocal("sketchBlocksSave8"); _local1 = _local2.data.level; if (!_local1){ _local1 = 1; }; if (_local1 > 10){ _local1 = 10; }; return (_local1); } public static function set tableNumber(_arg1:Number):void{ var _local2:SharedObject = SharedObject.getLocal("sketchBlocksSave8"); _local2.data.tableNumber = _arg1; _local2.flush(); } public static function get tableNumber():Number{ var _local1:Number; var _local2:SharedObject = SharedObject.getLocal("sketchBlocksSave8"); _local1 = _local2.data.tableNumber; if (!_local1){ _local1 = 1; }; if (_local1 > 5){ _local1 = 5; }; return (_local1); } } }//package com.gamelion
Section 44
//GameStage (com.gamelion.GameStage) package com.gamelion { import flash.events.*; import flash.display.*; import com.gamelion.mp3player.*; import flash.media.*; import gs.*; import flash.utils.*; public class GameStage extends Sprite { private var _shadowBlock:Brick; private var _soundPlayer:SoundPlayer; private var _brickCantRotateSound:Sound; private var _dropTimer:Timer; private var animationTimer:Timer; private var _fullLines:Array; private var resetStageMode:Boolean; private var _brick:Brick; private var _animationOn:Boolean; private var _hardDropMode:Boolean; private var _difficultyLevel:Number; private var _goldenBlocks:Number; private var _dropLines:Number; private var _brickRotateSound:Sound; private var _shadowBlockEnabled:Boolean; private var _fullLinesNumber:Number; private var _softDropMode:Boolean; private var _linesSound:Sound; private var _bricks:Array; private var _bricksToAnimate:Array; private var _stage:Array; public static var BRICK_DOCKED:String = "brickDockedOnStageEvent"; public static var GAME_OVER:String = "gameOverEvent"; public static var FULL_LINE:String = "fullLineEvent"; public static var RESET_FINISHED:String = "resetFinishedEvent"; public function GameStage(_arg1:Number, _arg2:Number, _arg3:Boolean){ var _local5:Array; var _local6:int; var _local7:SmallBrick; var _local8:Number; var _local9:Number; var _local10:Object; super(); _shadowBlockEnabled = _arg3; _difficultyLevel = _arg1; _dropLines = 0; _stage = new Array(); _bricks = new Array(); _bricksToAnimate = new Array(); var _local4:int; while (_local4 < 20) { _stage.push([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); _local5 = new Array(); _local6 = 0; while (_local6 < 10) { _local7 = new SmallBrick(_arg2); _local7.x = ((_local6 * 23) + 1); _local7.y = ((_local4 * 23) + 2); _local7.alpha = 0; addChild(_local7); _local5.push(_local7); _local6++; }; _bricks.push(_local5); _local4++; }; if (_difficultyLevel > 1){ _local4 = 19; while (_local4 >= (20 - (2 * _difficultyLevel))) { _stage[_local4] = null; _stage[_local4] = new Array(); _local8 = (5 + Math.floor((Math.random() * 3))); _local6 = 0; while (_local6 < 10) { if (_local6 <= _local8){ _stage[_local4].push(Math.floor(((Math.random() * 3) + 1))); } else { _stage[_local4].push(0); }; _local6++; }; _local6 = 0; while (_local6 < 10) { _local8 = Math.floor((Math.random() * 10)); _local9 = _stage[_local4][_local6]; _stage[_local4][_local6] = _stage[_local4][_local8]; _stage[_local4][_local8] = _local9; _local6++; }; _local4--; }; _local4 = 0; while (_local4 < 20) { findHorizontalChainOfBlocks(_local4, 1); findHorizontalChainOfBlocks(_local4, 2); findHorizontalChainOfBlocks(_local4, 3); _local4++; }; _local4 = 0; while (_local4 < 10) { findVerticalChainOfBlocks(_local4, 1); findVerticalChainOfBlocks(_local4, 2); findVerticalChainOfBlocks(_local4, 3); _local4++; }; if (_bricksToAnimate.length != 0){ for each (_local10 in _bricksToAnimate) { _stage[_local10.y][_local10.x] = 6; }; }; }; _soundPlayer = SoundPlayer.getInstance(); _brickRotateSound = new Resources.ROTATE_SOUND(); _brickCantRotateSound = new Resources.LINE_SOUND(); _linesSound = new Resources.DOCK_SOUND(); _softDropMode = false; _hardDropMode = false; } private function drawSquare(_arg1:uint, _arg2:int, _arg3:int):void{ } public function set brick(_arg1:Brick):void{ var _local5:int; _softDropMode = false; _hardDropMode = false; if (_dropTimer != null){ _dropTimer.stop(); _dropTimer = null; }; _brick = _arg1; _shadowBlock = _brick.clone(); if (_brick.gapFillingBrick == true){ addEventListener(Event.ENTER_FRAME, onEnterFrame); } else { removeEventListener(Event.ENTER_FRAME, onEnterFrame); }; var _local2:int = _brick.column; var _local3:int = _brick.row; var _local4:int; while (_local4 < 4) { _local5 = 0; while (_local5 < 4) { if (_brick.currentFace[_local4][_local5] > 0){ if (_stage[((_local3 + _local4) - 1)][((_local2 + _local5) - 1)] != 0){ dispatchEvent(new Event(GAME_OVER)); }; }; _local5++; }; _local4++; }; } public function moveShadowBlockToNextLine():Boolean{ var _local4:int; var _local1:int = _shadowBlock.column; var _local2:int = _shadowBlock.row; var _local3:int; while (_local3 < 4) { _local4 = 0; while (_local4 < 4) { if (_shadowBlock.currentFace[_local3][_local4] > 0){ if ((_local2 + _local3) >= 0){ if (_shadowBlock.gapFillingBrick == false){ if (((((_local2 + _local3) > 19)) || (!((_stage[(_local2 + _local3)][((_local1 + _local4) - 1)] == 0))))){ return (false); }; } else { if (((((_local2 + _local3) > 19)) || ((areThereGapsBelow(((_local2 + _local3) - 1), ((_local1 + _local4) - 1)) == false)))){ return (false); }; }; }; }; _local4++; }; _local3++; }; _shadowBlock.row++; return (true); } private function findFullLines():void{ _animationOn = false; var _local1:Number = 0; while (_local1 < 20) { if (_brick.color != 5){ findHorizontalChainOfBlocks(_local1, _brick.color); } else { findHorizontalChainOfBlocks(_local1, 1); findHorizontalChainOfBlocks(_local1, 2); findHorizontalChainOfBlocks(_local1, 3); }; _local1++; }; _local1 = 0; while (_local1 < 10) { if (_brick.color != 5){ findVerticalChainOfBlocks(_local1, _brick.color); } else { findVerticalChainOfBlocks(_local1, 1); findVerticalChainOfBlocks(_local1, 2); findVerticalChainOfBlocks(_local1, 3); }; _local1++; }; if (_bricksToAnimate.length != 0){ animateGoldenBlocks(); }; findFullLines2(); } public function resetStage():void{ var _local2:SmallBrick; resetStageMode = true; var _local1:Number = 0; while (_local1 < 20) { if ((((((((((((_stage[_local1].indexOf(1) >= 0)) || ((_stage[_local1].indexOf(2) >= 0)))) || ((_stage[_local1].indexOf(3) >= 0)))) || ((_stage[_local1].indexOf(4) >= 0)))) || ((_stage[_local1].indexOf(5) >= 0)))) || ((_stage[_local1].indexOf(6) >= 0)))){ for each (_local2 in _bricks[_local1]) { TweenLite.to(_local2, 0.15, {alpha:0}); }; TweenLite.delayedCall(0.17, animateResetStage, [_local1]); return; }; _local1++; }; dispatchEvent(new Event(RESET_FINISHED)); } public function renderStage():void{ var _local2:int; var _local1:int; while (_local1 < 20) { _local2 = 0; while (_local2 < 10) { if (_stage[_local1][_local2] != 0){ _bricks[_local1][_local2].currentFace = _stage[_local1][_local2]; _bricks[_local1][_local2].alpha = 1; _bricks[_local1][_local2].unblur(); } else { _bricks[_local1][_local2].alpha = 0; _bricks[_local1][_local2].unblur(); }; _local2++; }; _local1++; }; if (!resetStageMode){ if (((_shadowBlockEnabled) && ((_animationOn == false)))){ renderShadowBlock(); }; renderBrick(); }; } private function removeFullLines():void{ var _local1:Number; var _local2:Number; _goldenBlocks = 0; if (_fullLinesNumber != 0){ dispatchEvent(new GameStageEvent(GameStageEvent.FULL_LINES_FOUND)); _bricksToAnimate = null; _bricksToAnimate = new Array(); for each (_local1 in _fullLines) { _local2 = 0; while (_local2 < 10) { _bricksToAnimate.push({y:_local1, x:_local2, col:_stage[_local1][_local2]}); if (_stage[_local1][_local2] == 6){ _goldenBlocks++; }; _local2++; }; }; animationTimer = new Timer(100, 6); _animationOn = true; animationTimer.addEventListener(TimerEvent.TIMER, onAnimationTimer2); animationTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onFullLinesRemoved); animationTimer.start(); }; } public function dropBrick():void{ if (_hardDropMode != true){ _dropLines = 0; _hardDropMode = true; _dropTimer = new Timer(15, 1); _dropTimer.addEventListener(TimerEvent.TIMER, onDropTimer, false, 0, true); _dropTimer.start(); }; } private function findVerticalChainOfBlocks(_arg1:Number, _arg2:int):void{ var _local7:Number; var _local8:int; var _local9:int; var _local3:Array = new Array(); var _local4:Number = 0; while (_local4 < 20) { _local3.push(_stage[_local4][_arg1]); _local4++; }; var _local5:String = _local3.toString(); var _local6:RegExp = new RegExp((("(" + _arg2) + "|5){5,}")); while (_local5.search(",") != -1) { _local5 = _local5.replace(",", ""); }; _local7 = _local5.search(_local6); if (_local7 != -1){ while ((((_local7 < 20)) && ((((_stage[_local7][_arg1] == _arg2)) || ((_stage[_local7][_arg1] == 5)))))) { _bricksToAnimate.push({x:_arg1, y:_local7, col:_stage[_local7][_arg1]}); if (((((_local7 - 1) >= 0)) && ((_stage[(_local7 - 1)][_arg1] == 4)))){ _bricksToAnimate.push({x:(_local7 - 1), y:_arg1, col:4}); }; if (((((_local7 + 1) <= 19)) && ((_stage[(_local7 + 1)][_arg1] == 4)))){ _bricksToAnimate.push({y:(_local7 + 1), x:_arg1, col:4}); }; if (((((_arg1 - 1) >= 0)) && ((_stage[_local7][(_arg1 - 1)] == 4)))){ _bricksToAnimate.push({y:_local7, x:(_arg1 - 1), col:4}); }; if (((((_arg1 + 1) <= 9)) && ((_stage[_local7][(_arg1 + 1)] == 4)))){ _bricksToAnimate.push({x:(_arg1 + 1), y:_local7, col:4}); }; if (_bricksToAnimate[(_bricksToAnimate.length - 1)].col == 4){ _local8 = _bricksToAnimate[(_bricksToAnimate.length - 1)].x; _local9 = _bricksToAnimate[(_bricksToAnimate.length - 1)].y; if (((((_local8 - 1) >= 0)) && ((_stage[_local9][(_local8 - 1)] == 4)))){ _bricksToAnimate.push({y:_local9, x:(_local8 - 1), col:4}); }; if (((((_local8 + 1) <= 9)) && ((_stage[_local9][(_local8 + 1)] == 4)))){ _bricksToAnimate.push({y:_local9, x:(_local8 + 1), col:4}); }; if (((((_local9 - 1) >= 0)) && ((_stage[(_local9 - 1)][_local8] == 4)))){ _bricksToAnimate.push({y:(_local9 - 1), x:_local8, col:4}); }; if (((((_local9 + 1) <= 19)) && ((_stage[(_local9 + 1)][_local8] == 4)))){ _bricksToAnimate.push({y:(_local9 + 1), x:_local8, col:4}); }; }; _local7++; }; }; } private function findFullLines2():void{ _fullLines = new Array(); _fullLinesNumber = 0; var _local1:int; while (_local1 < 20) { if (_stage[_local1].indexOf(0) < 0){ _fullLines.push(_local1); _fullLinesNumber++; }; _local1++; }; if (_fullLinesNumber != 0){ if (_animationOn == false){ removeFullLines(); }; }; } private function animateGoldenBlocks():void{ animationTimer = new Timer(80, 5); dispatchEvent(new GameStageEvent(GameStageEvent.GOLDEN_BLOCS_FOUND)); _animationOn = true; animationTimer.addEventListener(TimerEvent.TIMER, onAnimationTimer); animationTimer.addEventListener(TimerEvent.TIMER_COMPLETE, goldenBlocksEstablished); animationTimer.start(); } private function onFullLinesRemoved(_arg1:TimerEvent):void{ var _local2:Number; var _local3:Array; if (_fullLines != null){ for each (_local2 in _fullLines) { _local3 = _stage.splice(_local2, 1); _stage.unshift([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); }; renderStage(); _fullLines = null; _animationOn = false; _soundPlayer.playSound(_linesSound); _bricksToAnimate = new Array(); _local2 = 0; while (_local2 < 20) { findHorizontalChainOfBlocks(_local2, 1); findHorizontalChainOfBlocks(_local2, 2); findHorizontalChainOfBlocks(_local2, 3); _local2++; }; _local2 = 0; while (_local2 < 10) { findVerticalChainOfBlocks(_local2, 1); findVerticalChainOfBlocks(_local2, 2); findVerticalChainOfBlocks(_local2, 3); _local2++; }; dispatchEvent(new GameStageEvent(GameStageEvent.LINES_REMOVED, 0, _fullLinesNumber, 0, 0, 0, _goldenBlocks)); if (_bricksToAnimate.length != 0){ _fullLinesNumber = 0; animateGoldenBlocks(); }; }; } public function unpause():void{ if (_dropTimer != null){ _dropTimer.start(); }; if (_brick.gapFillingBrick){ addEventListener(Event.ENTER_FRAME, onEnterFrame); }; if (_animationOn){ animationTimer.start(); }; } public function removeAllTimers():void{ if (_dropTimer != null){ _dropTimer.stop(); _dropTimer.removeEventListener(TimerEvent.TIMER, onDropTimer); _dropTimer = null; }; } public function rotateBrick():void{ var _local5:int; var _local6:int; var _local1:int = _brick.column; var _local2:int = _brick.row; var _local3:int; var _local4:int; while (_local4 < 4) { _local5 = 0; while (_local5 < 4) { if (_brick.nextFace[_local4][_local5] > 0){ if (((_local2 + _local4) - 1) >= 0){ _local6 = 0; while (_local6 < 2) { if (((_local1 + _local5) - 1) < 0){ if (moveBrick(1)){ _local1++; _local3--; }; }; if (((_local1 + _local5) - 1) > 9){ moveBrick(-1); _local1--; _local3++; }; _local6++; }; if ((((((((((_local1 + _local5) - 1) < 0)) || ((((_local1 + _local5) - 1) > 9)))) || ((((_local2 + _local4) - 1) > 19)))) || (!((_stage[((_local2 + _local4) - 1)][((_local1 + _local5) - 1)] == 0))))){ moveBrick(_local3); _soundPlayer.playSound(_brickCantRotateSound); return; }; }; }; _local5++; }; _local4++; }; _soundPlayer.playSound(_brickRotateSound); _shadowBlock.rotate(); _brick.rotate(); } private function goldenBlocksEstablished(_arg1:TimerEvent):void{ _animationOn = false; dispatchEvent(new GameStageEvent(GameStageEvent.GOLDEN_BLOCS_ESTABLISHED, 0, 0, 0, 0, 0, _bricksToAnimate.length)); animationTimer = null; removeFullLines(); } private function onEnterFrame(_arg1:Event):void{ var _local5:int; var _local2:int = _brick.column; var _local3:int = _brick.row; var _local4:int; while (_local4 < 4) { _local5 = 0; while (_local5 < 4) { if (_brick.currentFace[_local4][_local5] != 0){ if (_bricks[((_local3 + _local4) - 1)][((_local2 + _local5) - 1)].alpha < 1){ _bricks[((_local3 + _local4) - 1)][((_local2 + _local5) - 1)].currentFace = _brick.color; _bricks[((_local3 + _local4) - 1)][((_local2 + _local5) - 1)].alpha = (_bricks[((_local3 + _local4) - 1)][((_local2 + _local5) - 1)].alpha + 0.1); } else { _bricks[((_local3 + _local4) - 1)][((_local2 + _local5) - 1)].alpha = 0; }; }; _local5++; }; _local4++; }; } private function animateResetStage(_arg1:Number):void{ _stage.splice(_arg1, 1); _stage.unshift([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); renderStage(); resetStage(); } public function softDrop():void{ if (_hardDropMode != true){ _softDropMode = true; moveBrickToNextLine(); renderStage(); }; } private function dockBrickOnStage():void{ var _local4:int; var _local1:int = _brick.column; var _local2:int = _brick.row; var _local3:int; while (_local3 < 4) { _local4 = 0; while (_local4 < 4) { if (_brick.currentFace[_local3][_local4] > 0){ if (((_local3 + _local2) - 1) >= 0){ _stage[((_local3 + _local2) - 1)][((_local4 + _local1) - 1)] = _brick.color; }; }; _local4++; }; _local3++; }; _bricksToAnimate = null; _bricksToAnimate = new Array(); if (_brick.color == 4){ _local3 = 0; while (_local3 < 4) { _local4 = 0; while (_local4 < 4) { if (_brick.currentFace[_local3][_local4] > 0){ if ((((((((((((_local4 + _local1) - 2) >= 0)) && ((_stage[((_local3 + _local2) - 1)][((_local4 + _local1) - 2)] == 6)))) || (((((_local4 + _local1) <= 9)) && ((_stage[((_local3 + _local2) - 1)][(_local4 + _local1)] == 6)))))) || ((((((_local3 + _local2) - 2) >= 0)) && ((_stage[((_local3 + _local2) - 2)][((_local4 + _local1) - 1)] == 6)))))) || (((((_local3 + _local2) <= 19)) && ((_stage[(_local3 + _local2)][((_local4 + _local1) - 1)] == 6)))))){ _bricksToAnimate.push({y:((_local3 + _local2) - 1), x:((_local4 + _local1) - 1), col:4}); }; }; _local4++; }; _local3++; }; }; if (_bricksToAnimate.length > 0){ if (_bricksToAnimate.length == 1){ _local3 = 0; while (_local3 < 4) { _local4 = 0; while (_local4 < 4) { if (_brick.currentFace[_local3][_local4] > 0){ if (((!((_bricksToAnimate[0].y == ((_local3 + _local2) - 1)))) || (!((_bricksToAnimate[0].x == ((_local4 + _local1) - 1)))))){ _bricksToAnimate.push({y:((_local3 + _local2) - 1), x:((_local4 + _local1) - 1), col:4}); }; }; _local4++; }; _local3++; }; }; animateGoldenBlocks(); findFullLines2(); } else { findFullLines(); }; dispatchEvent(new Event(BRICK_DOCKED)); _hardDropMode = false; } public function moveBrickToNextLine():Boolean{ var _local4:int; var _local1:int = _brick.column; var _local2:int = _brick.row; var _local3:int; while (_local3 < 4) { _local4 = 0; while (_local4 < 4) { if (_brick.currentFace[_local3][_local4] > 0){ if (((_local2 + _local3) - 1) >= 0){ if (_brick.gapFillingBrick == false){ if (((((_local2 + _local3) > 19)) || (!((_stage[(_local2 + _local3)][((_local1 + _local4) - 1)] == 0))))){ dockBrickOnStage(); return (false); }; } else { if (((((_local2 + _local3) > 19)) || ((areThereGapsBelow(((_local2 + _local3) - 1), ((_local1 + _local4) - 1)) == false)))){ dockBrickOnStage(); return (false); }; }; }; }; _local4++; }; _local3++; }; _brick.row++; _dropLines++; return (true); } public function hideBricks():void{ var _local1:Array; var _local2:SmallBrick; for each (_local1 in _bricks) { for each (_local2 in _local1) { _local2.alpha = 0; }; }; } private function renderBrick():void{ var _local2:int; var _local1:int; while (_local1 < 4) { _local2 = 0; while (_local2 < 4) { if (((_brick.row + _local1) - 1) >= 0){ if (((!((_brick.currentFace[_local1][_local2] == 0))) && ((_brick.gapFillingBrick == false)))){ _bricks[((_brick.row + _local1) - 1)][((_brick.column + _local2) - 1)].alpha = 1; _bricks[((_brick.row + _local1) - 1)][((_brick.column + _local2) - 1)].currentFace = _brick.color; if ((((_hardDropMode == true)) && ((_dropLines > 3)))){ _bricks[((_brick.row + _local1) - 1)][((_brick.column + _local2) - 1)].blur(_dropLines); }; }; }; _local2++; }; _local1++; }; } private function renderShadowBlock():void{ var _local2:int; _shadowBlock.column = _brick.column; _shadowBlock.row = _brick.row; do { } while (moveShadowBlockToNextLine() != false); var _local1:int; while (_local1 < 4) { _local2 = 0; while (_local2 < 4) { if (((!((_shadowBlock.currentFace[_local1][_local2] == 0))) && ((((_shadowBlock.row + _local1) - 1) >= 0)))){ _bricks[((_shadowBlock.row + _local1) - 1)][((_shadowBlock.column + _local2) - 1)].currentFace = 7; _bricks[((_shadowBlock.row + _local1) - 1)][((_shadowBlock.column + _local2) - 1)].alpha = 0.25; }; _local2++; }; _local1++; }; } private function onAnimationTimer2(_arg1:TimerEvent):void{ var _local2:Object; for each (_local2 in _bricksToAnimate) { if (((_arg1.currentTarget.currentCount % 2) == 0)){ _stage[_local2.y][_local2.x] = 0; } else { _stage[_local2.y][_local2.x] = 8; }; }; renderStage(); if (((_arg1.currentTarget.currentCount % 2) == 1)){ for each (_local2 in _bricksToAnimate) { _bricks[_local2.y][_local2.x].alpha = (1 - (_arg1.currentTarget.currentCount * 0.2)); }; }; } private function areThereGapsBelow(_arg1:Number, _arg2:Number):Boolean{ var _local3:Number = 19; while (_local3 > _arg1) { if (_stage[_local3][_arg2] == 0){ return (true); }; _local3--; }; return (false); } private function onAnimationTimer(_arg1:TimerEvent):void{ var _local2:Object; for each (_local2 in _bricksToAnimate) { if (((_arg1.currentTarget as Timer).currentCount % 2) == 0){ _stage[_local2.y][_local2.x] = _local2.col; } else { _stage[_local2.y][_local2.x] = 6; }; }; renderStage(); } private function findHorizontalChainOfBlocks(_arg1:Number, _arg2:int):void{ var _local5:Number; var _local6:int; var _local7:int; var _local3:String = _stage[_arg1].toString(); var _local4:RegExp = new RegExp((("(" + _arg2) + "|5){5,}")); while (_local3.search(",") != -1) { _local3 = _local3.replace(",", ""); }; _local5 = _local3.search(_local4); if (_local5 != -1){ while ((((_stage[_arg1][_local5] == _arg2)) || ((_stage[_arg1][_local5] == 5)))) { _bricksToAnimate.push({y:_arg1, x:_local5, col:_stage[_arg1][_local5]}); if (((((_arg1 - 1) >= 0)) && ((_stage[(_arg1 - 1)][_local5] == 4)))){ _bricksToAnimate.push({y:(_arg1 - 1), x:_local5, col:4}); }; if (((((_arg1 + 1) <= 19)) && ((_stage[(_arg1 + 1)][_local5] == 4)))){ _bricksToAnimate.push({y:(_arg1 + 1), x:_local5, col:4}); }; if (((((_local5 - 1) >= 0)) && ((_stage[_arg1][(_local5 - 1)] == 4)))){ _bricksToAnimate.push({y:_arg1, x:(_local5 - 1), col:4}); }; if (((((_local5 + 1) <= 9)) && ((_stage[_arg1][(_local5 + 1)] == 4)))){ _bricksToAnimate.push({y:_arg1, x:(_local5 + 1), col:4}); }; if (_bricksToAnimate[(_bricksToAnimate.length - 1)].col == 4){ _local6 = _bricksToAnimate[(_bricksToAnimate.length - 1)].x; _local7 = _bricksToAnimate[(_bricksToAnimate.length - 1)].y; if (((((_local6 - 1) >= 0)) && ((_stage[(_local7 - 1)][(_local6 - 1)] == 4)))){ _bricksToAnimate.push({y:_local7, x:(_local6 - 1), col:4}); }; if (((((_local6 + 1) <= 9)) && ((_stage[_local7][(_local6 + 1)] == 4)))){ _bricksToAnimate.push({y:_local7, x:(_local6 + 1), col:4}); }; if (((((_local7 - 1) >= 0)) && ((_stage[(_local7 - 1)][_local6] == 4)))){ _bricksToAnimate.push({y:(_local7 - 1), x:_local6, col:4}); }; if (((((_local7 + 1) <= 19)) && ((_stage[(_local7 + 1)][_local6] == 4)))){ _bricksToAnimate.push({y:(_local7 + 1), x:_local6, col:4}); }; }; _local5++; }; }; } public function moveBrick(_arg1:int):Boolean{ var _local4:int; var _local5:int; var _local2:int = (_brick.column + _arg1); var _local3:int = _brick.row; if (_hardDropMode != true){ _local4 = 0; while (_local4 < 4) { _local5 = 0; while (_local5 < 4) { if (_brick.currentFace[_local4][_local5] > 0){ if (((_local3 + _local4) - 1) >= 0){ if ((((((((((((_local2 + _local5) - 1) < 0)) || ((((_local2 + _local5) - 1) > 9)))) || ((((_local3 + _local4) - 1) > 19)))) || ((((_local3 + _local4) - 1) < 0)))) || (!((_stage[((_local3 + _local4) - 1)][((_local2 + _local5) - 1)] == 0))))){ return (false); }; }; }; _local5++; }; _local4++; }; _brick.column = (_brick.column + _arg1); return (true); //unresolved jump }; return (false); } private function isZero(_arg1:int, _arg2:int, _arg3:Array):Boolean{ return ((_arg1 == 0)); } public function softDropOff():void{ _softDropMode = false; renderStage(); } private function onDropTimer(_arg1:TimerEvent):void{ var _local2:Timer = (_arg1.currentTarget as Timer); if (moveBrickToNextLine()){ _dropTimer = new Timer(15, 1); _dropTimer.addEventListener(TimerEvent.TIMER, onDropTimer, false, 0, true); _dropTimer.start(); renderStage(); } else { _local2.stop(); _hardDropMode = false; _local2 = null; dispatchEvent(new GameStageEvent(GameStageEvent.HARD_DROP, _dropLines, 0)); }; } public function pause():void{ if (_dropTimer != null){ _dropTimer.stop(); }; if (_brick.gapFillingBrick){ removeEventListener(Event.ENTER_FRAME, onEnterFrame); }; if (_animationOn){ animationTimer.stop(); }; } } }//package com.gamelion
Section 45
//GameStageEvent (com.gamelion.GameStageEvent) package com.gamelion { import flash.events.*; public class GameStageEvent extends Event { private var _lines:Number; private var _points:Number; private var _level:Number; private var _goldenBlocks:Number; private var _adventureMode:Boolean; private var _linesRemoved:Number; private var _hardDrop:Number; public static var LINES_REMOVED:String = "linesRemovedEvent"; public static var GAME_OVER:String = "gameOverEvent"; public static var HARD_DROP:String = "hardDropEvent"; public static var FULL_LINES_REMOVED:String = "fullLinesRemovedEvent"; public static var GOLDEN_BLOCS_FOUND:String = "goldenBlocksFoundEvent"; public static var FULL_LINES_FOUND:String = "fullLinesFoundEvent"; public static var GOLDEN_BLOCS_ESTABLISHED:String = "goldenBlocksEstablishedEvent"; public static var TABLE_COMPLETED:String = "tableCompletedEvent"; public static var QUIT_GAME:String = "quitGameEvent"; public function GameStageEvent(_arg1:String, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Boolean=false, _arg9:Boolean=false, _arg10:Boolean=false){ super(_arg1, _arg9, _arg10); _adventureMode = _arg8; _hardDrop = _arg2; _linesRemoved = _arg3; _lines = _arg4; _level = _arg5; _points = _arg6; _goldenBlocks = _arg7; } public function get linesRemoved():Number{ return (_linesRemoved); } public function get points():Number{ return (_points); } public function get level():Number{ return (_level); } override public function toString():String{ return (formatToString("PointEvent", "_hardDrop", "_linesRemoved", "_lines", "_level", "_points", "type", "bubbles", "cancelable", "eventPhase")); } public function get adventureMode():Boolean{ return (_adventureMode); } public function get goldenBlocks():Number{ return (_goldenBlocks); } public function get hardDrop():Number{ return (_hardDrop); } override public function clone():Event{ return (new GameStageEvent(type, _hardDrop, _linesRemoved, _lines, _level, _points, _goldenBlocks, _adventureMode, bubbles, cancelable)); } public function get lines():Number{ return (_lines); } } }//package com.gamelion
Section 46
//HighscoreListMode (com.gamelion.HighscoreListMode) package com.gamelion { import flash.events.*; import flash.display.*; import com.gamelion.mp3player.*; import flash.media.*; import flash.net.*; import com.gamelion.utils.*; import flash.text.*; import flash.utils.*; public class HighscoreListMode extends ApplicationMode { private const PL:String = "www.playlion.com"; private var _points:TextField; private var _gateway:RemotingConnection; private var _loadingAnimation:Sprite; private var _names:TextField; private var _soundPlayer:SoundPlayer; private var _loadingIndicatorTimer:Timer; private var _animationPosition:Number; private var _loadingIndicator:TextField; private var _playLionLogo:Sprite; private var _loadingAnimationElements:Array; private var _backButton:TextField; private var _header:TextField; private var _frame:Bitmap; private var _menuSound:Sound; private var highScoreSystem:HighScoresSystem; public static var BACK:String = "backButtonEvent"; public function HighscoreListMode(_arg1:Application){ super(_arg1); displayScores(); } private function displayScores():void{ var _local4:Bitmap; var _local1 = "http://stodrew.pl/amfphp/gateway.php"; var _local2:Responder = new Responder(onResult, onFault); _soundPlayer = SoundPlayer.getInstance(); _menuSound = new Resources.MENU_SOUND(); _frame = new Resources.FRAME(); _frame.x = (((800 - _frame.width) / 2) + 10); _frame.y = (((800 - _frame.height) / 2) + 50); _frame.smoothing = true; addChild(_frame); _header = new TextField(); _header.text = Localization.TOP_10_SCORES; _header.selectable = false; _header.setTextFormat(new TextFormat("journalFont", 54, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _header.embedFonts = true; _header.y = (_frame.y + 15); _header.width = 400; _header.x = (400 - (_header.width / 2)); addChild(_header); _loadingIndicator = new TextField(); _loadingIndicator.selectable = false; _loadingIndicator.defaultTextFormat = new TextFormat("journalFont", 45, 7367010, true, null, null, null, null, TextFormatAlign.CENTER); _loadingIndicator.embedFonts = true; _loadingIndicator.y = 400; _loadingIndicator.width = 400; _loadingIndicator.x = ((400 - (_loadingIndicator.width / 2)) + 10); _loadingIndicator.text = Localization.LOADING; _loadingAnimationElements = new Array(); _loadingAnimation = new Sprite(); var _local3:Number = 0; while (_local3 < 10) { _loadingAnimationElements.push(new Resources.BRICK_CIRCLE()); _loadingAnimationElements[_local3].smoothing = true; _loadingAnimationElements[_local3].visible = false; _loadingAnimationElements[_local3].x = ((_local3 * 23) + 1); _loadingAnimation.addChild(_loadingAnimationElements[_local3]); _local3++; }; addChild(_loadingIndicator); _loadingAnimation.x = ((399 - (_loadingAnimation.width / 2)) + 10); _loadingAnimation.y = 489; addChild(_loadingAnimation); _loadingIndicatorTimer = new Timer(80); _loadingIndicatorTimer.addEventListener(TimerEvent.TIMER, onTimer, false, 0, true); _loadingIndicatorTimer.start(); _names = new TextField(); _names.width = 225; _names.selectable = false; _names.defaultTextFormat = new TextFormat("journalFont", 35, 7367010, true, null, null, null, null, TextFormatAlign.LEFT, null, null, null, -10); _names.embedFonts = true; _names.y = ((_header.y + _header.textHeight) + 10); _names.x = (260 + 10); _names.height = 400; _points = new TextField(); _points.width = 110; _points.selectable = false; _points.defaultTextFormat = new TextFormat("journalFont", 35, 7367010, true, null, null, null, null, TextFormatAlign.RIGHT, null, null, null, -10); _points.embedFonts = true; _points.y = ((_header.y + _header.textHeight) + 10); _points.x = (455 + 10); _points.height = 400; addChild(_names); addChild(_points); _backButton = new TextField(); _backButton.text = Localization.BACK_TEXT; _backButton.selectable = false; _backButton.embedFonts = true; _backButton.setTextFormat(new TextFormat("journalFont", 36, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _backButton.width = 200; _backButton.height = (_backButton.textHeight + 4); _backButton.x = (400 - (_backButton.width / 2)); _backButton.y = ((_frame.y + _frame.height) - 52); _backButton.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver); _backButton.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut); _backButton.addEventListener(MouseEvent.CLICK, onBack); addChild(_backButton); addChild(_soundPlayer); _local4 = new Resources.PLAY_LION_LOGO(); _local4.smoothing = true; _playLionLogo = new Sprite(); _playLionLogo.addChild(_local4); _playLionLogo.buttonMode = true; _playLionLogo.x = (400 - (_playLionLogo.width / 2)); _playLionLogo.y = ((880 - _playLionLogo.height) - 30); _playLionLogo.addEventListener(MouseEvent.CLICK, onLogoClick, false, 0, true); addChild(_playLionLogo); highScoreSystem = new HighScoresSystem("http://fac.game-lion.com/amfphp/gateway.php"); highScoreSystem.getTopScores(5, 10, HighScoresSystem.DESCENDING_ORDER); highScoreSystem.addEventListener(HighScoreRceivedEvent.TOP_SCORES, onResult, false, 0, true); highScoreSystem.addEventListener(HighScoresSystem.GET_SCORES_ERROR, onFault, false, 0, true); } private function onLogoClick(_arg1:MouseEvent):void{ navigateToURL(new URLRequest(("http://" + PL)), "_blank"); } private function onFault(_arg1:Event):void{ } private function onMouseOut(_arg1:MouseEvent):void{ _arg1.currentTarget.setTextFormat(new TextFormat("journalFont", 36, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); } public function onResult(_arg1:HighScoreRceivedEvent):void{ _loadingIndicatorTimer.stop(); _loadingIndicatorTimer = null; removeChild(_loadingIndicator); _loadingIndicator = null; removeChild(_loadingAnimation); _loadingAnimation = null; var _local2:Array = _arg1.highScores; var _local3:int; while (_local3 < _local2.length) { _names.appendText((_local2[_local3].name + "\n")); _points.appendText((_local2[_local3].score + "\n")); _local3++; }; } private function onTimer(_arg1:TimerEvent):void{ var _local2:Timer = (_arg1.currentTarget as Timer); if ((_local2.currentCount % 2) == 0){ _loadingIndicator.visible = false; } else { _loadingIndicator.visible = true; }; } private function onBack(_arg1:MouseEvent):void{ _soundPlayer.playSound(_menuSound); dispatchEvent(new Event(BACK)); } private function onMouseOver(_arg1:MouseEvent):void{ _arg1.currentTarget.setTextFormat(new TextFormat("journalFont", 36, 0, true, null, null, null, null, TextFormatAlign.CENTER)); } } }//package com.gamelion
Section 47
//InfoPanel (com.gamelion.InfoPanel) package com.gamelion { import flash.events.*; import flash.display.*; import flash.text.*; public class InfoPanel extends Sprite { private var _lines:Number; private var _points:Number; private var _linesMode:Boolean; private var _level:Number; private var _redCircle:Bitmap; private var _pointsValueText:TextField; private var _linesValueText:TextField; private var _quit:TextField; private var _pause:TextField; private var _levelValueText:TextField; public static var PAUSE:String = "pauseEvent"; public static var QUIT:String = "quitEvent"; public function InfoPanel(_arg1:Boolean=false, _arg2:Number=0){ _points = 0; _lines = 0; _level = 0; _linesMode = _arg1; if (_linesMode){ _lines = _arg2; }; _pointsValueText = new TextField(); _pointsValueText.width = 140; _pointsValueText.embedFonts = true; _pointsValueText.defaultTextFormat = new TextFormat("journalFont", 45, 7367010, true, null, null, null, null, TextFormatAlign.CENTER); _pointsValueText.text = ("" + _points); _pointsValueText.selectable = false; _pointsValueText.x = 590; _pointsValueText.y = 280; addChild(_pointsValueText); _levelValueText = new TextField(); _levelValueText.width = 140; _levelValueText.embedFonts = true; _levelValueText.defaultTextFormat = new TextFormat("journalFont", 45, 7367010, true, null, null, null, null, TextFormatAlign.CENTER); _levelValueText.text = ("" + _level); _levelValueText.selectable = false; _levelValueText.x = 590; _levelValueText.y = 400; addChild(_levelValueText); _linesValueText = new TextField(); _linesValueText.width = 140; _linesValueText.selectable = false; _linesValueText.embedFonts = true; _linesValueText.defaultTextFormat = new TextFormat("journalFont", 45, 7367010, true, null, null, null, null, TextFormatAlign.CENTER); _linesValueText.text = ("" + _lines); _linesValueText.x = 590; _linesValueText.y = 520; addChild(_linesValueText); _pause = new TextField(); _pause.selectable = false; _pause.width = 140; _pause.embedFonts = true; _pause.defaultTextFormat = new TextFormat("journalFont", 35, 7367010, true, null, null, null, null, TextFormatAlign.CENTER); _pause.text = Localization.PAUSE; _pause.x = 590; _pause.y = 565; _pause.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver); _pause.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut); _pause.addEventListener(MouseEvent.CLICK, onPause); addChild(_pause); _quit = new TextField(); _quit.selectable = false; _quit.width = 140; _quit.text = Localization.QUIT; _quit.embedFonts = true; _quit.setTextFormat(new TextFormat("journalFont", 35, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _quit.x = 590; _quit.y = 600; _quit.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver); _quit.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut); _quit.addEventListener(MouseEvent.CLICK, onQuit); addChild(_quit); if (_linesMode){ _redCircle = new Resources.RED_CIRCLE(); _redCircle.smoothing = true; _redCircle.x = 585; _redCircle.y = 458; addChild(_redCircle); }; } public function set level(_arg1:Number):void{ _level = _arg1; _levelValueText.text = ("" + _level); } public function set points(_arg1:Number):void{ _points = _arg1; _pointsValueText.text = ("" + _points); } private function onQuit(_arg1:MouseEvent):void{ dispatchEvent(new Event(QUIT)); } private function onPause(_arg1:MouseEvent):void{ dispatchEvent(new Event(PAUSE)); } public function hideButtons():void{ removeChild(_pause); removeChild(_quit); } private function onMouseOut(_arg1:MouseEvent):void{ _arg1.currentTarget.setTextFormat(new TextFormat("journalFont", _arg1.currentTarget.getTextFormat().size, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); } public function set pause(_arg1:String):void{ _pause.text = _arg1; } private function onMouseOver(_arg1:MouseEvent):void{ _arg1.currentTarget.setTextFormat(new TextFormat("journalFont", _arg1.currentTarget.getTextFormat().size, 0, true, null, null, null, null, TextFormatAlign.CENTER)); } public function set lines(_arg1:Number):void{ if (_arg1 >= 0){ _lines = _arg1; _linesValueText.text = ("" + _lines); } else { _lines = 0; _linesValueText.text = ("" + _lines); }; } } }//package com.gamelion
Section 48
//Localization (com.gamelion.Localization) package com.gamelion { public class Localization { public static var POLISH:String = "Polski"; private static var _currentLanguage:String = ENGLISH; public static var ENGLISH:String = "English"; public static function get ARE_YOU_SURE_YOU_WANT_TO_QUIT():String{ switch (_currentLanguage){ case POLISH: return ("Czy napewno chcesz\nopóścić grę?"); case ENGLISH: return ("Are you sure\nyou want to quit?"); }; return (""); } public static function get BACK_TEXT():String{ switch (_currentLanguage){ case POLISH: return ("Powrót"); case ENGLISH: return ("Back"); }; return (""); } public static function get CHALLANGE_MODE_MENU():String{ switch (_currentLanguage){ case POLISH: return ("Menu trybu wyzwania"); case ENGLISH: return ("Challenge mode menu"); }; return (""); } public static function get ADVENTURE_MODE():String{ switch (_currentLanguage){ case POLISH: return ("Tryb misji"); case ENGLISH: return ("Adventure mode"); }; return (""); } public static function get LEVEL_INSTRUCTIONS3():String{ switch (_currentLanguage){ case POLISH: return ("Musisz zgromadzić 60 złotych klocków oraz 20 linii, aby odblokować kolejny stół, ale tym razem masz tylko 3 minuty"); case ENGLISH: return ("You need to collect 60 golden blocks and 20 lines to unlock next table but this time you have only 3 minutes"); }; return (""); } public static function get LEVEL_INSTRUCTIONS4():String{ switch (_currentLanguage){ case POLISH: return ("Musisz zgromadzić 60 złotych klocków oraz 20 linii, aby odblokować kolejny stół, ale tym razem masz tylko 2 minuty"); case ENGLISH: return ("You need to collect 60 golden blocks and 20 lines to unlock next table but this time you have only 2 minutes"); }; return (""); } public static function get LEVEL_INSTRUCTIONS5():String{ switch (_currentLanguage){ case POLISH: return ("Musisz zgromadzić 80 złotych klocków oraz 20 linii, aby zostać mistrzem Sketch Blocks, ale tym razem masz tylko 2 minutya scena jest do połowy zapełniona"); case ENGLISH: return ("You need to collect 80 golden blocks and 20 lines to become Sketch Blocks master but this time you have only 2 minutes and game stage is half filled"); }; return (""); } public static function get SUBMIT():String{ switch (_currentLanguage){ case POLISH: return ("Wyślij"); case ENGLISH: return ("Submit"); }; return (""); } public static function get LEVEL_INSTRUCTIONS2():String{ switch (_currentLanguage){ case POLISH: return ("Musisz zgromadzić 60 złotych klocków oraz 20 linii, aby odblokować kolejny stół"); case ENGLISH: return ("You need to collect 60 golden blocks and 20 lines to unlock next table"); }; return (""); } public static function get GAME_PAUSED():String{ switch (_currentLanguage){ case POLISH: return ("GRA WSTRZYMANA"); case ENGLISH: return ("GAME PAUSED"); }; return (""); } public static function get CONGRATULATIONS1():String{ switch (_currentLanguage){ case POLISH: return ("Gratulacje!\n Spróbuj na kolejnym stole!"); case ENGLISH: return ("Congratulations!\n Try on next table!"); }; return (""); } public static function get CONGRATULATIONS2():String{ switch (_currentLanguage){ case POLISH: return ("Gratulacje!\n Jesteś teraz mistrzem Sketch Blocks!"); case ENGLISH: return ("Congratulations!\n You are Sketch Blocks master!"); }; return (""); } public static function get LOADING():String{ switch (_currentLanguage){ case POLISH: return ("Czekaj..."); case ENGLISH: return ("Loading..."); }; return (""); } public static function get CHALLANGE_MODE():String{ switch (_currentLanguage){ case POLISH: return ("Tryb wyzwania"); case ENGLISH: return ("Challange mode"); }; return (""); } public static function get RESUME():String{ switch (_currentLanguage){ case POLISH: return ("Wznów"); case ENGLISH: return ("Resume"); }; return (""); } public static function get START_NEW_GAME():String{ switch (_currentLanguage){ case POLISH: return ("Rozpocznij nową grę"); case ENGLISH: return ("Start new game"); }; return (""); } public static function get RESET():String{ switch (_currentLanguage){ case POLISH: return ("Resetuj"); case ENGLISH: return ("Reset"); }; return (""); } public static function get LEVEL_INSTRUCTIONS1():String{ switch (_currentLanguage){ case POLISH: return ("Musisz zgromadzić 40 złotych klocków, aby odblokować kolejny stół"); case ENGLISH: return ("You need to collect 40 golden blocks to unlock next table"); }; return (""); } public static function get CHOOSE_YOURE_LANGUAGE():String{ switch (_currentLanguage){ case POLISH: return ("Wybierz swój język"); case ENGLISH: return ("Please choose your language"); }; return (""); } public static function get SENDED_BY_YOU():String{ switch (_currentLanguage){ case POLISH: return ("Wysłane przez ciebie"); case ENGLISH: return ("Sended by you"); }; return (""); } public static function get MORE_GAMES():String{ switch (_currentLanguage){ case POLISH: return ("Więcej gier"); case ENGLISH: return ("More games"); }; return (""); } public static function get TOP_10_SCORES():String{ switch (_currentLanguage){ case POLISH: return ("NAJLEPSZE WYNIKI"); case ENGLISH: return ("TOP 10 SCORES"); }; return (""); } public static function get NO():String{ switch (_currentLanguage){ case POLISH: return ("Nie"); case ENGLISH: return ("No"); }; return (""); } public static function get INSTRUCIONS():String{ switch (_currentLanguage){ case POLISH: return ("Instrukcje"); case ENGLISH: return ("Instructions"); }; return (""); } public static function get YES():String{ switch (_currentLanguage){ case POLISH: return ("Tak"); case ENGLISH: return ("Yes"); }; return (""); } public static function get SELECT_STACK_HEIGHT():String{ switch (_currentLanguage){ case POLISH: return ("Wybierz wysokość stosu"); case ENGLISH: return ("Select stack height"); }; return (""); } public static function get SELECT_BRICK_PATTERN():String{ switch (_currentLanguage){ case POLISH: return ("Wybierz wzór klocka"); case ENGLISH: return ("Select brick pattern"); }; return (""); } public static function get SENDED_TO_YOU():String{ switch (_currentLanguage){ case POLISH: return ("Wysłane do ciebie"); case ENGLISH: return ("Sended to you"); }; return (""); } public static function get PAUSE():String{ switch (_currentLanguage){ case POLISH: return ("Pauza"); case ENGLISH: return ("Pause"); }; return (""); } public static function get CLASSIC_MODE():String{ switch (_currentLanguage){ case POLISH: return ("Tryb klasyczny"); case ENGLISH: return ("Classic mode"); }; return (""); } public static function get PLAY_TEXT():String{ switch (_currentLanguage){ case POLISH: return ("Graj"); case ENGLISH: return ("Play"); }; return (""); } public static function get YOU_HAVE_SCORED_POINTS():String{ switch (_currentLanguage){ case POLISH: return ("Zdobyłeś ### punktów"); case ENGLISH: return ("You have scored ### points"); }; return (""); } public static function get BEST_SCORES():String{ switch (_currentLanguage){ case POLISH: return ("Najlepsze wyniki"); case ENGLISH: return ("Best scores"); }; return (""); } public static function get CHALLANGES_STATISTICS():String{ switch (_currentLanguage){ case POLISH: return ("Statystyki"); case ENGLISH: return ("Statistics"); }; return (""); } public static function get QUIT():String{ switch (_currentLanguage){ case POLISH: return ("Wyjście"); case ENGLISH: return ("Quit"); }; return (""); } public static function get LANGUAGE():String{ switch (_currentLanguage){ case POLISH: return ("Język"); case ENGLISH: return ("Language"); }; return (""); } public static function get SELECT_LEVEL():String{ switch (_currentLanguage){ case POLISH: return ("Wybierz poziom"); case ENGLISH: return ("Select level"); }; return (""); } public static function set currentLanguage(_arg1:String):void{ _currentLanguage = _arg1; } public static function get CHOOSE_FRIEND_TO_CHALLANGE():String{ switch (_currentLanguage){ case POLISH: return ("Wybierz z kim chcesz się zmierzyć:"); case ENGLISH: return ("Choose a friend to challenge:"); }; return (""); } public static function get CHALLANGE_YOUR_FRIENDS():String{ switch (_currentLanguage){ case POLISH: return ("Zmierz się ze swoimi przyjaciółmi"); case ENGLISH: return ("Challange your friends"); }; return (""); } public static function get SHADOW_BLOCK_ENABLED():String{ switch (_currentLanguage){ case POLISH: return ("Cień włączony"); case ENGLISH: return ("Shadow block enabled"); }; return (""); } public static function get currentLanguage():String{ return (_currentLanguage); } public static function get NEXT_TEXT():String{ switch (_currentLanguage){ case POLISH: return ("Dalej"); case ENGLISH: return ("Next"); }; return (""); } public static function get CANCEL():String{ switch (_currentLanguage){ case POLISH: return ("Anuluj"); case ENGLISH: return ("Cancel"); }; return (""); } public static function get PLEASE_ENTER_YOUR_NAME():String{ switch (_currentLanguage){ case POLISH: return ("Wprowadź swoje imię:"); case ENGLISH: return ("Please enter your name:"); }; return (""); } public static function get SHOW_AWAITING_CHALLANGES():String{ switch (_currentLanguage){ case POLISH: return ("Oczekujące wyzwania"); case ENGLISH: return ("Awaiting challenges"); }; return (""); } } }//package com.gamelion
Section 49
//MenuMode (com.gamelion.MenuMode) package com.gamelion { import flash.events.*; import flash.display.*; import com.gamelion.mp3player.*; import flash.media.*; import flash.net.*; import gs.*; import flash.text.*; public class MenuMode extends ApplicationMode { private const PL:String = "www.playlion.com"; private var _difficultyValueText:TextField; private var _menuDrawn:Boolean; private var _soundPlayer:SoundPlayer; private var textDisplayList:Array; private var _difficultyLeftArrow:TextField; private var _firstRun:Boolean; private var _instructionScreen:Bitmap; private var _patternText:TextField; private var _onMouseOverTextFormat:TextFormat; private var _playLionLogo:Sprite; private var _house:Bitmap; private var textsArray:Array; private var _pencil:Bitmap; private var _polish:Boolean; private var _levelValueText:TextField; private var _levelLeftArrow:TextField; private var _menu:MovieClip; private var _table1:Bitmap; private var _table2:Bitmap; private var _table3:Bitmap; private var _table4:Bitmap; private var _table5:Bitmap; private var _difficultyRightArrow:TextField; private var _difficultyLevel:Number; private var _languageLeftArrow:TextField; private var _brickPatterns:Array; private var _shadowBlockValueText:TextField; private var _levelText:TextField; private var _shadowBlockLeftArrow:TextField; private var _languageRightArrow:TextField; private var _menuSound:Sound; private var _shadowBlockRightArrow:TextField; private var _patternRightArrow:TextField; private var _tables:Array; private var _level:Number; private var _backButton:TextField; private var _shadowBlock:Boolean; private var _difficultyText:TextField; private var _nextButton:TextField; private var _header:TextField; private var _lockedArray:Array; private var _levelRightArrow:TextField; private var _lastTableIndicator:Shape; private var _specialText:TextField; private var _shadowBlockText:TextField; private var _onMouseOutTextFormat:TextFormat; private var _brickPattern:Number; private var _patternLeftArrow:TextField; private var _languageValue:TextField; private var _mouseOverSprite:Sprite; public static var SHOW_HIGHSCORES:String = "showHighscoresEvent"; public static var START_GAME:String = "startNewGameEvent"; public function MenuMode(_arg1:Application, _arg2:Boolean=true, _arg3:Boolean=false){ var _local4:Bitmap; super(_arg1); if (!_arg2){ _menuDrawn = true; }; _soundPlayer = SoundPlayer.getInstance(); _menuSound = new Resources.MENU_SOUND(); _local4 = new Resources.PLAY_LION_LOGO(); _local4.smoothing = true; _playLionLogo = new Sprite(); _playLionLogo.addChild(_local4); _playLionLogo.buttonMode = true; _playLionLogo.x = (400 - (_playLionLogo.width / 2)); _playLionLogo.y = ((880 - _playLionLogo.height) - 30); _playLionLogo.addEventListener(MouseEvent.CLICK, onLogoClick, false, 0, true); addChild(_playLionLogo); _onMouseOverTextFormat = new TextFormat(); _onMouseOverTextFormat.font = "journalFont"; _onMouseOverTextFormat.color = 0; _onMouseOverTextFormat.align = TextFormatAlign.CENTER; _onMouseOverTextFormat.size = 50; _onMouseOutTextFormat = new TextFormat(); _onMouseOutTextFormat.font = "journalFont"; _onMouseOutTextFormat.color = 7367010; _onMouseOutTextFormat.align = TextFormatAlign.CENTER; _onMouseOutTextFormat.size = 50; _pencil = new Resources.PENCIL1(); _pencil.smoothing = true; _firstRun = _arg2; _menu = new Resources.MENU(); _menu.x = 380; _menu.y = 380; if (_arg3){ onAdventureMode(null); } else { initMenu(); }; } private function onDifficultyLeftArrowClick(_arg1:MouseEvent):void{ _soundPlayer.playSound(_menuSound); if (_difficultyLevel > 1){ _difficultyLevel--; _difficultyValueText.text = ("" + _difficultyLevel); }; } private function onMouseOver(_arg1:MouseEvent):void{ _arg1.currentTarget.setTextFormat(new TextFormat("journalFont", _arg1.currentTarget.getTextFormat().size, 0, true, null, null, null, null, TextFormatAlign.CENTER)); } private function onHighscore(_arg1:MouseEvent):void{ _soundPlayer.playSound(_menuSound); dispatchEvent(new Event(SHOW_HIGHSCORES)); } private function onInstructions(_arg1:MouseEvent):void{ var _local2:DisplayObject; if (_menuDrawn){ if (_playLionLogo != null){ removeChild(_playLionLogo); }; _soundPlayer.playSound(_menuSound); removeChild(_menu); for each (_local2 in textDisplayList) { removeChild(_local2); }; textDisplayList = null; textDisplayList = new Array(); _instructionScreen = new Resources.INSTRUCTIONS(); _instructionScreen.smoothing = true; addChild(_instructionScreen); textsArray.push({text:Localization.BACK_TEXT, y:800, onClickFunction:onBack}); addMenuText(); _firstRun = false; }; } private function onPatternRightArrowClick(_arg1:MouseEvent):void{ _soundPlayer.playSound(_menuSound); if (_brickPattern < (_brickPatterns.length - 1)){ _brickPatterns[_brickPattern].visible = false; _brickPattern++; _brickPatterns[_brickPattern].visible = true; }; } private function onAdventureModeBack(_arg1:MouseEvent):void{ var _local2:Bitmap; var _local3:Sprite; var _local4:DisplayObject; removeChild(_house); _house = null; removeChild(_lastTableIndicator); _lastTableIndicator = null; removeChild(_mouseOverSprite); _mouseOverSprite = null; for each (_local2 in _lockedArray) { removeChild(_local2); _local2 = null; }; for each (_local3 in _tables) { removeChild(_local3); _local3 = null; }; _soundPlayer.playSound(_menuSound); for each (_local4 in textDisplayList) { removeChild(_local4); }; initMenu(); } private function onStartGame(_arg1:MouseEvent):void{ var _local2:DisplayObject; var _local3:Bitmap; if (_menuDrawn){ _soundPlayer.playSound(_menuSound); _firstRun = false; removeChild(_menu); for each (_local2 in textDisplayList) { removeChild(_local2); }; textDisplayList = null; textDisplayList = new Array(); _level = 1; _difficultyLevel = 1; _shadowBlock = true; _brickPattern = 0; _brickPatterns = new Array(); _brickPatterns.push(new Resources.BRICK_CLASSIC()); _brickPatterns.push(new Resources.BRICK_CIRCLE()); _brickPatterns.push(new Resources.BRICK_EMPTY()); _brickPatterns.push(new Resources.BRICK_RHOMB()); _brickPatterns.push(new Resources.BRICK_STAR()); _header = new TextField(); _header.text = Localization.START_NEW_GAME; _header.width = 400; _header.selectable = false; _header.setTextFormat(new TextFormat("journalFont", 70, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _header.embedFonts = true; _header.wordWrap = true; _header.y = 170; _header.x = (400 - (_header.width / 2)); addChild(_header); for each (_local3 in _brickPatterns) { addChild(_local3); _local3.visible = false; _local3.x = ((400 - (_local3.width / 2)) + 3); _local3.y = 317; _local3.smoothing = true; addChild(_local3); }; _brickPatterns[_brickPattern].visible = true; _patternText = new TextField(); _patternText.text = Localization.SELECT_BRICK_PATTERN; _patternText.width = 230; _patternText.selectable = false; _patternText.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _patternText.embedFonts = true; _patternText.wordWrap = true; _patternText.y = 250; _patternText.x = (400 - (_patternText.width / 2)); addChild(_patternText); _patternLeftArrow = new TextField(); _patternLeftArrow.height = 60; _patternLeftArrow.text = "<<"; _patternLeftArrow.width = 90; _patternLeftArrow.selectable = false; _patternLeftArrow.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _patternLeftArrow.embedFonts = true; _patternLeftArrow.wordWrap = true; _patternLeftArrow.y = 300; _patternLeftArrow.x = 310; _patternLeftArrow.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _patternLeftArrow.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _patternLeftArrow.addEventListener(MouseEvent.CLICK, onPatternLeftArrowClick, false, 0, true); addChild(_patternLeftArrow); _patternRightArrow = new TextField(); _patternRightArrow.height = 60; _patternRightArrow.text = ">>"; _patternRightArrow.width = 90; _patternRightArrow.selectable = false; _patternRightArrow.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _patternRightArrow.embedFonts = true; _patternRightArrow.wordWrap = true; _patternRightArrow.y = 300; _patternRightArrow.x = 405; _patternRightArrow.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _patternRightArrow.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _patternRightArrow.addEventListener(MouseEvent.CLICK, onPatternRightArrowClick, false, 0, true); addChild(_patternRightArrow); _shadowBlockText = new TextField(); _shadowBlockText.text = Localization.SHADOW_BLOCK_ENABLED; _shadowBlockText.width = 230; _shadowBlockText.selectable = false; _shadowBlockText.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _shadowBlockText.embedFonts = true; _shadowBlockText.wordWrap = true; _shadowBlockText.y = 350; _shadowBlockText.x = (400 - (_shadowBlockText.width / 2)); addChild(_shadowBlockText); _shadowBlockLeftArrow = new TextField(); _shadowBlockLeftArrow.height = 60; _shadowBlockLeftArrow.text = "<<"; _shadowBlockLeftArrow.width = 90; _shadowBlockLeftArrow.selectable = false; _shadowBlockLeftArrow.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _shadowBlockLeftArrow.embedFonts = true; _shadowBlockLeftArrow.wordWrap = true; _shadowBlockLeftArrow.y = 400; _shadowBlockLeftArrow.x = 300; _shadowBlockLeftArrow.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _shadowBlockLeftArrow.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _shadowBlockLeftArrow.addEventListener(MouseEvent.CLICK, onShadowBlockLeftArrowClick, false, 0, true); addChild(_shadowBlockLeftArrow); _shadowBlockRightArrow = new TextField(); _shadowBlockRightArrow.height = 60; _shadowBlockRightArrow.text = ">>"; _shadowBlockRightArrow.width = 90; _shadowBlockRightArrow.selectable = false; _shadowBlockRightArrow.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _shadowBlockRightArrow.embedFonts = true; _shadowBlockRightArrow.wordWrap = true; _shadowBlockRightArrow.y = 400; _shadowBlockRightArrow.x = 415; _shadowBlockRightArrow.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _shadowBlockRightArrow.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _shadowBlockRightArrow.addEventListener(MouseEvent.CLICK, onShadowBlockRightArrowClick, false, 0, true); addChild(_shadowBlockRightArrow); _shadowBlockValueText = new TextField(); _shadowBlockValueText.width = 70; _shadowBlockValueText.selectable = false; _shadowBlockValueText.defaultTextFormat = new TextFormat("journalFont", 60, 7367010, true, null, null, null, null, TextFormatAlign.CENTER); _shadowBlockValueText.embedFonts = true; _shadowBlockValueText.wordWrap = true; _shadowBlockValueText.text = Localization.YES; _shadowBlockValueText.y = 390; _shadowBlockValueText.x = (400 - (_shadowBlockValueText.width / 2)); addChild(_shadowBlockValueText); _levelText = new TextField(); _levelText.text = Localization.SELECT_LEVEL; _levelText.width = 230; _levelText.selectable = false; _levelText.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _levelText.embedFonts = true; _levelText.wordWrap = true; _levelText.y = 450; _levelText.x = (400 - (_levelText.width / 2)); addChild(_levelText); _levelLeftArrow = new TextField(); _levelLeftArrow.height = 60; _levelLeftArrow.text = "<<"; _levelLeftArrow.width = 90; _levelLeftArrow.selectable = false; _levelLeftArrow.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _levelLeftArrow.embedFonts = true; _levelLeftArrow.wordWrap = true; _levelLeftArrow.y = 500; _levelLeftArrow.x = 310; _levelLeftArrow.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _levelLeftArrow.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _levelLeftArrow.addEventListener(MouseEvent.CLICK, onLevelLeftArrowClick, false, 0, true); addChild(_levelLeftArrow); _levelRightArrow = new TextField(); _levelRightArrow.height = 60; _levelRightArrow.text = ">>"; _levelRightArrow.width = 90; _levelRightArrow.selectable = false; _levelRightArrow.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _levelRightArrow.embedFonts = true; _levelRightArrow.wordWrap = true; _levelRightArrow.y = 500; _levelRightArrow.x = 405; _levelRightArrow.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _levelRightArrow.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _levelRightArrow.addEventListener(MouseEvent.CLICK, onLevelRightArrowClick, false, 0, true); addChild(_levelRightArrow); _levelValueText = new TextField(); _levelValueText.width = 50; _levelValueText.selectable = false; _levelValueText.defaultTextFormat = new TextFormat("journalFont", 60, 7367010, true, null, null, null, null, TextFormatAlign.CENTER); _levelValueText.embedFonts = true; _levelValueText.wordWrap = true; _levelValueText.text = ("" + _level); _levelValueText.y = 490; _levelValueText.x = (400 - (_levelValueText.width / 2)); addChild(_levelValueText); _difficultyText = new TextField(); _difficultyText.text = Localization.SELECT_STACK_HEIGHT; _difficultyText.width = 230; _difficultyText.selectable = false; _difficultyText.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _difficultyText.embedFonts = true; _difficultyText.wordWrap = true; _difficultyText.y = 550; _difficultyText.x = (400 - (_difficultyText.width / 2)); addChild(_difficultyText); _difficultyLeftArrow = new TextField(); _difficultyLeftArrow.width = 60; _difficultyLeftArrow.text = "<<"; _difficultyLeftArrow.width = 90; _difficultyLeftArrow.selectable = false; _difficultyLeftArrow.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _difficultyLeftArrow.embedFonts = true; _difficultyLeftArrow.wordWrap = true; _difficultyLeftArrow.y = 600; _difficultyLeftArrow.x = 310; _difficultyLeftArrow.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _difficultyLeftArrow.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _difficultyLeftArrow.addEventListener(MouseEvent.CLICK, onDifficultyLeftArrowClick, false, 0, true); addChild(_difficultyLeftArrow); _difficultyRightArrow = new TextField(); _difficultyRightArrow.height = 60; _difficultyRightArrow.text = ">>"; _difficultyRightArrow.width = 90; _difficultyRightArrow.selectable = false; _difficultyRightArrow.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _difficultyRightArrow.embedFonts = true; _difficultyRightArrow.wordWrap = true; _difficultyRightArrow.y = 600; _difficultyRightArrow.x = 405; _difficultyRightArrow.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _difficultyRightArrow.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _difficultyRightArrow.addEventListener(MouseEvent.CLICK, onDifficultyRightArrowClick, false, 0, true); addChild(_difficultyRightArrow); _difficultyValueText = new TextField(); _difficultyValueText.width = 50; _difficultyValueText.selectable = false; _difficultyValueText.defaultTextFormat = new TextFormat("journalFont", 60, 7367010, true, null, null, null, null, TextFormatAlign.CENTER); _difficultyValueText.embedFonts = true; _difficultyValueText.wordWrap = true; _difficultyValueText.text = ("" + _difficultyLevel); _difficultyValueText.y = 590; _difficultyValueText.x = (400 - (_difficultyValueText.width / 2)); addChild(_difficultyValueText); _nextButton = new TextField(); _nextButton.text = Localization.PLAY_TEXT; _nextButton.width = 100; _nextButton.selectable = false; _nextButton.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _nextButton.embedFonts = true; _nextButton.wordWrap = true; _nextButton.y = 660; _nextButton.x = (((_header.x + _header.width) - _nextButton.width) - 30); _nextButton.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _nextButton.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _nextButton.addEventListener(MouseEvent.CLICK, onPlay); addChild(_nextButton); _backButton = new TextField(); _backButton.text = Localization.BACK_TEXT; _backButton.selectable = false; _backButton.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _backButton.embedFonts = true; _backButton.width = 100; _backButton.height = 50; _backButton.x = (_header.x + 30); _backButton.y = 660; _backButton.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _backButton.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _backButton.addEventListener(MouseEvent.CLICK, onBack1, false, 0, true); addChild(_backButton); }; } private function onAdventureMode(_arg1:MouseEvent):void{ var _local2:Number; var _local3:Sprite; var _local4:Number; var _local5:DisplayObject; var _local6:Bitmap; if (_menuDrawn){ _local2 = GameSlot.tableNumber; _soundPlayer.playSound(_menuSound); if (textDisplayList != null){ removeChild(_menu); for each (_local5 in textDisplayList) { removeChild(_local5); }; textDisplayList = null; textDisplayList = new Array(); }; textDisplayList = new Array(); textsArray = new Array(); _mouseOverSprite = new Sprite(); _mouseOverSprite.graphics.beginFill(41141, 0.25); _mouseOverSprite.graphics.drawRect(0, 0, 200, 200); _mouseOverSprite.visible = false; addChild(_mouseOverSprite); _lastTableIndicator = new Shape(); _lastTableIndicator.graphics.beginFill(16305668, 0.25); _lastTableIndicator.graphics.drawRect(0, 0, 200, 200); addChild(_lastTableIndicator); _house = new Resources.HOUSE(); _house.x = (400 - (_house.width / 2)); _house.y = (440 - (_house.height / 2)); _house.smoothing = true; _table1 = new Resources.TABLE1(); _table1.smoothing = true; _table2 = new Resources.TABLE2(); _table2.smoothing = true; _table3 = new Resources.TABLE3(); _table3.smoothing = true; _table4 = new Resources.TABLE4(); _table4.smoothing = true; _table5 = new Resources.TABLE5(); _table5.smoothing = true; _tables = new Array(); _tables.push(new Sprite()); _tables.push(new Sprite()); _tables.push(new Sprite()); _tables.push(new Sprite()); _tables.push(new Sprite()); _tables[0].addChild(_table1); _tables[0].x = ((400 - _tables[0].width) - 7); _tables[0].y = (440 - _tables[0].height); _tables[4].addChild(_table2); _tables[4].x = (400 + 5); _tables[4].y = (440 - _tables[0].height); _tables[1].addChild(_table3); _tables[1].x = ((400 - _tables[0].width) - 7); _tables[1].y = (440 + 11); _tables[3].addChild(_table4); _tables[3].x = (400 + 5); _tables[3].y = (440 + 11); _tables[2].addChild(_table5); _tables[2].x = (400 - (_table5.width / 2)); _tables[2].y = (_house.y + 329); for each (_local3 in _tables) { addChild(_local3); }; _lastTableIndicator.x = _tables[(_local2 - 1)].x; _lastTableIndicator.y = _tables[(_local2 - 1)].y; _lastTableIndicator.width = _tables[(_local2 - 1)].width; _lastTableIndicator.height = _tables[(_local2 - 1)].height; _local4 = 0; while (_local4 < _local2) { _tables[_local4].addEventListener(MouseEvent.MOUSE_OVER, onMouseOverImage, false, 0, true); _tables[_local4].addEventListener(MouseEvent.MOUSE_OUT, onMouseOutImage, false, 0, true); _tables[_local4].addEventListener(MouseEvent.CLICK, onMouseClickImage); _local4++; }; addChild(_house); _lockedArray = new Array(); _local4 = _local2; while (_local4 < 5) { if (_tables[_local4].width > 250){ _local6 = new Resources.LOCKED_BIG(); } else { _local6 = new Resources.LOCKED_SMALL(); }; _local6.x = (_tables[_local4].x + ((_tables[_local4].width - _local6.width) / 2)); _local6.y = (_tables[_local4].y + ((_tables[_local4].height - _local6.height) / 2)); _local6.smoothing = true; addChild(_local6); _lockedArray.push(_local6); _local4++; }; _firstRun = false; textsArray.push({text:Localization.BACK_TEXT, y:((_house.y + _house.height) - 5), x:250, onClickFunction:onAdventureModeBack}); textsArray.push({text:Localization.RESET, y:((_house.y + _house.height) - 5), x:450, onClickFunction:onReset}); addMenuText(); }; } private function onLanguage(_arg1:MouseEvent):void{ var _local2:DisplayObject; _soundPlayer.playSound(_menuSound); if (textDisplayList != null){ removeChild(_menu); for each (_local2 in textDisplayList) { removeChild(_local2); }; textDisplayList = null; textDisplayList = new Array(); }; textDisplayList = new Array(); textsArray = new Array(); _header = new TextField(); _header.width = 500; _header.selectable = false; _header.defaultTextFormat = new TextFormat("journalFont", 70, 7367010, true, null, null, null, null, TextFormatAlign.CENTER, null, null, null, -10); _header.text = Localization.CHOOSE_YOURE_LANGUAGE; _header.embedFonts = true; _header.wordWrap = true; _header.y = 180; _header.x = (400 - (_header.width / 2)); addChild(_header); _languageValue = new TextField(); _languageValue.height = 100; _languageValue.width = 500; _languageValue.selectable = false; _languageValue.defaultTextFormat = new TextFormat("journalFont", 60, 7367010, true, null, null, null, null, TextFormatAlign.CENTER); _languageValue.text = Localization.currentLanguage; _languageValue.embedFonts = true; _languageValue.wordWrap = true; _languageValue.y = 295; _languageValue.x = 150; addChild(_languageValue); _languageLeftArrow = new TextField(); _languageLeftArrow.height = 60; _languageLeftArrow.text = "<<"; _languageLeftArrow.width = 90; _languageLeftArrow.selectable = false; _languageLeftArrow.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _languageLeftArrow.embedFonts = true; _languageLeftArrow.wordWrap = true; _languageLeftArrow.y = 310; _languageLeftArrow.x = 250; _languageLeftArrow.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _languageLeftArrow.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _languageLeftArrow.addEventListener(MouseEvent.CLICK, onLanguageArrowClick, false, 0, true); addChild(_languageLeftArrow); _languageRightArrow = new TextField(); _languageRightArrow.height = 60; _languageRightArrow.text = ">>"; _languageRightArrow.width = 90; _languageRightArrow.selectable = false; _languageRightArrow.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _languageRightArrow.embedFonts = true; _languageRightArrow.wordWrap = true; _languageRightArrow.y = 310; _languageRightArrow.x = 465; _languageRightArrow.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _languageRightArrow.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _languageRightArrow.addEventListener(MouseEvent.CLICK, onLanguageArrowClick, false, 0, true); addChild(_languageRightArrow); _backButton = new TextField(); _backButton.selectable = false; _backButton.defaultTextFormat = new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER); _backButton.text = Localization.BACK_TEXT; _backButton.embedFonts = true; _backButton.width = 100; _backButton.height = 50; _backButton.x = (400 - (_backButton.width / 2)); _backButton.y = 400; _backButton.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _backButton.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _backButton.addEventListener(MouseEvent.CLICK, onBackLanguage, false, 0, true); addChild(_backButton); } private function onMouseClickImage(_arg1:MouseEvent):void{ _soundPlayer.playSound(_menuSound); dispatchEvent(new StartNewGameEvent(StartNewGameEvent.START_NEW_GAME, 0, true, 1, 1, (_tables.indexOf(_arg1.currentTarget) + 1))); } private function onMoreGames(_arg1:MouseEvent):void{ var _local2:Bitmap; var _local3:DisplayObject; if (_menuDrawn){ if (_playLionLogo != null){ removeChild(_playLionLogo); }; _firstRun = false; if (textDisplayList != null){ removeChild(_menu); for each (_local3 in textDisplayList) { removeChild(_local3); }; textDisplayList = null; textDisplayList = new Array(); }; textDisplayList = new Array(); textsArray = new Array(); _header = new TextField(); _header.text = Localization.MORE_GAMES; _header.width = 400; _header.selectable = false; _header.setTextFormat(new TextFormat("journalFont", 70, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _header.embedFonts = true; _header.wordWrap = true; _header.y = 290; _header.x = (400 - (_header.width / 2)); addChild(_header); _local2 = new Resources.PLAY_LION_LOGO(); _local2.smoothing = true; _playLionLogo = new Sprite(); _playLionLogo.addChild(_local2); _playLionLogo.buttonMode = true; _playLionLogo.x = (400 - (_playLionLogo.width / 2)); _playLionLogo.y = ((440 - (_playLionLogo.height / 2)) + 15); _playLionLogo.addEventListener(MouseEvent.CLICK, onLogoClick, false, 0, true); addChild(_playLionLogo); textsArray.push({text:PL, y:(_playLionLogo.y + _playLionLogo.height), onClickFunction:onLogoClick}); addMenuText(); _backButton = new TextField(); _backButton.text = Localization.BACK_TEXT; _backButton.selectable = false; _backButton.setTextFormat(new TextFormat("journalFont", 40, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _backButton.embedFonts = true; _backButton.width = 100; _backButton.height = 50; _backButton.x = (400 - (_backButton.width / 2)); _backButton.y = 590; _backButton.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _backButton.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _backButton.addEventListener(MouseEvent.CLICK, onBackMoreGames, false, 0, true); addChild(_backButton); }; } private function onBack(_arg1:MouseEvent):void{ var _local2:DisplayObject; var _local3:Bitmap; _soundPlayer.playSound(_menuSound); removeChild(_instructionScreen); for each (_local2 in textDisplayList) { removeChild(_local2); }; textDisplayList = null; textDisplayList = new Array(); _local3 = new Resources.PLAY_LION_LOGO(); _local3.smoothing = true; _playLionLogo = new Sprite(); _playLionLogo.addChild(_local3); _playLionLogo.buttonMode = true; _playLionLogo.x = (400 - (_playLionLogo.width / 2)); _playLionLogo.y = ((880 - _playLionLogo.height) - 30); _playLionLogo.addEventListener(MouseEvent.CLICK, onLogoClick, false, 0, true); addChild(_playLionLogo); initMenu(); } private function onMouseOut(_arg1:MouseEvent):void{ _arg1.currentTarget.setTextFormat(new TextFormat("journalFont", _arg1.currentTarget.getTextFormat().size, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); } private function onShadowBlockRightArrowClick(_arg1:MouseEvent):void{ _soundPlayer.playSound(_menuSound); if (_shadowBlock){ _shadowBlock = false; _shadowBlockValueText.text = Localization.NO; } else { _shadowBlock = true; _shadowBlockValueText.text = Localization.YES; }; } private function onPatternLeftArrowClick(_arg1:MouseEvent):void{ _soundPlayer.playSound(_menuSound); if (_brickPattern > 0){ _brickPatterns[_brickPattern].visible = false; _brickPattern--; _brickPatterns[_brickPattern].visible = true; }; } private function onMouseOverImage(_arg1:MouseEvent):void{ var _local2:Sprite = (_arg1.currentTarget as Sprite); _mouseOverSprite.x = _local2.x; _mouseOverSprite.y = _local2.y; _mouseOverSprite.width = _local2.width; _mouseOverSprite.height = _local2.height; _mouseOverSprite.visible = true; if ((((_mouseOverSprite.x == _lastTableIndicator.x)) && ((_mouseOverSprite.y == _lastTableIndicator.y)))){ _lastTableIndicator.visible = false; }; } private function onLogoClick(_arg1:MouseEvent):void{ navigateToURL(new URLRequest(("http://" + PL)), "_blank"); } private function initMenu():void{ textDisplayList = new Array(); _menuDrawn = false; textsArray = new Array(); textsArray.push({text:Localization.ADVENTURE_MODE, y:320, onClickFunction:onAdventureMode}); textsArray.push({text:Localization.CLASSIC_MODE, y:365, onClickFunction:onStartGame}); textsArray.push({text:Localization.BEST_SCORES, y:410, onClickFunction:onHighscore}); textsArray.push({text:Localization.INSTRUCIONS, y:455, onClickFunction:onInstructions}); textsArray.push({text:Localization.MORE_GAMES, y:500, onClickFunction:onMoreGames}); if (_firstRun == true){ _menu.addEventListener(Event.ENTER_FRAME, onMenuEnterFrame); addChild(_menu); _menu.play(); } else { addChild(_menu); _menu.gotoAndStop(_menu.totalFrames); addMenuText(); }; } private function onBack1(_arg1:MouseEvent):void{ var _local2:Bitmap; _soundPlayer.playSound(_menuSound); removeChild(_nextButton); _nextButton = null; removeChild(_backButton); _backButton = null; removeChild(_header); _header = null; removeChild(_levelText); _levelText = null; removeChild(_levelLeftArrow); _levelLeftArrow = null; removeChild(_levelRightArrow); _levelRightArrow = null; removeChild(_levelValueText); _levelValueText = null; removeChild(_difficultyText); _difficultyText = null; removeChild(_difficultyLeftArrow); _difficultyLeftArrow = null; removeChild(_difficultyRightArrow); _difficultyRightArrow = null; removeChild(_difficultyValueText); _difficultyValueText = null; removeChild(_shadowBlockLeftArrow); _shadowBlockLeftArrow = null; removeChild(_shadowBlockRightArrow); _shadowBlockRightArrow = null; removeChild(_shadowBlockText); _shadowBlockText = null; removeChild(_shadowBlockValueText); _shadowBlockValueText = null; removeChild(_patternLeftArrow); _patternLeftArrow = null; removeChild(_patternRightArrow); _patternRightArrow = null; removeChild(_patternText); _patternText = null; for each (_local2 in _brickPatterns) { removeChild(_local2); _local2 = null; }; _brickPatterns = null; initMenu(); } private function onLevelRightArrowClick(_arg1:MouseEvent):void{ _soundPlayer.playSound(_menuSound); if (_level < 10){ _level++; _levelValueText.text = ("" + _level); }; } private function onBackMoreGames(_arg1:Event):void{ var _local3:DisplayObject; if (textDisplayList != null){ for each (_local3 in textDisplayList) { removeChild(_local3); }; textDisplayList = null; textDisplayList = new Array(); }; textDisplayList = new Array(); textsArray = new Array(); removeChild(_backButton); _backButton = null; removeChild(_header); _header = null; removeChild(_playLionLogo); _playLionLogo = null; var _local2:Bitmap = new Resources.PLAY_LION_LOGO(); _local2.smoothing = true; _playLionLogo = new Sprite(); _playLionLogo.addChild(_local2); _playLionLogo.buttonMode = true; _playLionLogo.x = (400 - (_playLionLogo.width / 2)); _playLionLogo.y = ((880 - _playLionLogo.height) - 30); _playLionLogo.addEventListener(MouseEvent.CLICK, onLogoClick, false, 0, true); addChild(_playLionLogo); initMenu(); } private function onPlay(_arg1:MouseEvent):void{ dispatchEvent(new StartNewGameEvent(StartNewGameEvent.START_NEW_GAME, _brickPattern, _shadowBlock, _level, _difficultyLevel)); } private function onReset(_arg1:MouseEvent):void{ var _local2:Bitmap; var _local3:Sprite; var _local4:DisplayObject; removeChild(_house); _house = null; removeChild(_lastTableIndicator); _lastTableIndicator = null; removeChild(_mouseOverSprite); _mouseOverSprite = null; for each (_local2 in _lockedArray) { removeChild(_local2); _local2 = null; }; for each (_local3 in _tables) { removeChild(_local3); _local3 = null; }; _soundPlayer.playSound(_menuSound); for each (_local4 in textDisplayList) { removeChild(_local4); }; textDisplayList = null; GameSlot.tableNumber = 1; GameSlot.level = 1; onAdventureMode(null); } private function onLevelLeftArrowClick(_arg1:MouseEvent):void{ _soundPlayer.playSound(_menuSound); if (_level > 1){ _level--; _levelValueText.text = ("" + _level); }; } private function onLanguageArrowClick(_arg1:MouseEvent):void{ if (Localization.currentLanguage == Localization.POLISH){ Localization.currentLanguage = Localization.ENGLISH; } else { Localization.currentLanguage = Localization.POLISH; }; _header.text = Localization.CHOOSE_YOURE_LANGUAGE; _languageValue.text = Localization.currentLanguage; _backButton.text = Localization.BACK_TEXT; } private function onMouseOutImage(_arg1:MouseEvent):void{ _mouseOverSprite.visible = false; _lastTableIndicator.visible = true; } private function onBackLanguage(_arg1:MouseEvent):void{ removeChild(_header); _header = null; removeChild(_backButton); _backButton = null; removeChild(_languageLeftArrow); _languageLeftArrow = null; removeChild(_languageRightArrow); _languageRightArrow = null; removeChild(_languageValue); _languageValue = null; _soundPlayer.playSound(_menuSound); initMenu(); } private function onDifficultyRightArrowClick(_arg1:MouseEvent):void{ _soundPlayer.playSound(_menuSound); if (_difficultyLevel < 5){ _difficultyLevel++; _difficultyValueText.text = ("" + _difficultyLevel); }; } private function addMenuText():void{ var _local1:Object; var _local2:TextField; if (textsArray.length != 0){ _local1 = textsArray.shift(); _local2 = new TextField(); _local2.text = (_local1.text as String); _local2.selectable = false; _local2.setTextFormat(_onMouseOutTextFormat); _local2.embedFonts = true; _local2.height = (_local2.textHeight + 4); _local2.width = (_local2.textWidth + 10); if (_local1.x){ _local2.x = (_local1.x as Number); } else { _local2.x = ((800 - _local2.width) / 2); }; _local2.y = (_local1.y as Number); _local2.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver); _local2.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut); _local2.addEventListener(MouseEvent.CLICK, (_local1.onClickFunction as Function)); _local2.alpha = 0; addChild(_local2); textDisplayList.push(_local2); _pencil.x = _local2.x; _pencil.y = ((_local2.y - _pencil.height) + _local2.textHeight); if (_firstRun){ TweenLite.to(_pencil, 0.1, {x:((_local2.width / 4) + _local2.x), y:(((_local2.y - _pencil.height) + _local2.textHeight) + 4), onComplete:TweenLite.to, onCompleteParams:[_pencil, 0.1, {x:((_local2.width / 2) + _local2.x), y:(((_local2.y - _pencil.height) + _local2.textHeight) - 4), onComplete:TweenLite.to, onCompleteParams:[_pencil, 0.1, {x:(((3 * _local2.width) / 4) + _local2.x), y:(((_local2.y - _pencil.height) + _local2.textHeight) + 4), onComplete:TweenLite.to, onCompleteParams:[_pencil, 0.1, {x:(_local2.width + _local2.x), y:((_local2.y - _pencil.height) + _local2.textHeight), onComplete:removeChild, onCompleteParams:[_pencil]}]}]}]}); addChild(_pencil); TweenLite.to(_local2, 0.5, {alpha:1, onComplete:addMenuText}); } else { _local2.alpha = 1; addMenuText(); }; } else { _menuDrawn = true; }; } private function onMenuEnterFrame(_arg1:Event):void{ var _local2:MovieClip = (_arg1.currentTarget as MovieClip); if (_local2.currentFrame == _local2.totalFrames){ _local2.stop(); _local2.removeEventListener(Event.ENTER_FRAME, onMenuEnterFrame); addMenuText(); }; } private function onShadowBlockLeftArrowClick(_arg1:MouseEvent):void{ _soundPlayer.playSound(_menuSound); if (_shadowBlock){ _shadowBlock = false; _shadowBlockValueText.text = Localization.NO; } else { _shadowBlock = true; _shadowBlockValueText.text = Localization.YES; }; } } }//package com.gamelion
Section 50
//MochiAd (com.gamelion.MochiAd) package com.gamelion { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.system.*; import flash.net.*; public class MochiAd { public static function getVersion():String{ return ("2.6"); } public static function showClickAwayAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{ }, ad_finished:function ():void{ }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); options.ad_finished(); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; mc.unloadAd = function ():void{ MochiAd.unload(clip); }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; var sendHostProgress:Boolean; mc.regContLC = function (_arg1:String):void{ mc._containerLCName = _arg1; }; chk["onEnterFrame"] = function ():void{ var _local4:Number; if (!this.parent){ delete this.onEnterFrame; return; }; var _local1:Object = this.parent._mochiad_ctr; var _local2:Number = (getTimer() - this.started); var _local3:Boolean; if (!chk.showing){ _local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local4 > 0){ chk.showing = true; _local3 = true; chk.started = getTimer(); } else { if (_local2 > chk.ad_timeout){ options.ad_failed(); _local3 = true; }; }; }; if (this.root == null){ _local3 = true; }; if (_local3){ delete this.onEnterFrame; }; }; doOnEnterFrame(chk); } public static function _isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function _allowDomains(_arg1:String):String{ var _local2:String = _arg1.split("/")[2].split(":")[0]; Security.allowDomain("*"); Security.allowDomain(_local2); Security.allowInsecureDomain("*"); Security.allowInsecureDomain(_local2); return (_local2); } public static function unload(_arg1:Object):Boolean{ if (((_arg1.clip) && (_arg1.clip._mochiad))){ _arg1 = _arg1.clip; }; if (_arg1.origFrameRate != undefined){ _arg1.stage.frameRate = _arg1.origFrameRate; }; if (!_arg1._mochiad){ return (false); }; if (_arg1._mochiad._containerLCName != undefined){ _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"}); }; if (_arg1._mochiad.onUnload){ _arg1._mochiad.onUnload(); }; delete _arg1._mochiad_loaded; delete _arg1._mochiad; return (true); } public static function showInterLevelAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.play(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; var ad_msec:Number = 11000; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; var fadeout_time:Number = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); options.ad_finished(); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; mc.unloadAd = function ():void{ MochiAd.unload(clip); }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object = mc._mochiad_wait; _local2.server_control = true; _local2.showing = true; _local2.started = getTimer(); _local2.ad_msec = (_arg1 - 250); }; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; chk["onEnterFrame"] = function ():void{ var _local4:Number; if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; var _local1:Object = this.parent._mochiad_ctr; var _local2:Number = (getTimer() - this.started); var _local3:Boolean; if (!chk.showing){ _local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local4 > 0){ chk.showing = true; chk.started = getTimer(); MochiAd.adShowing(clip); } else { if (_local2 > chk.ad_timeout){ options.ad_failed(); _local3 = true; }; }; }; if (_local2 > chk.ad_msec){ _local3 = true; }; if (_local3){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function _parseOptions(_arg1:Object, _arg2:Object):Object{ var _local4:String; var _local5:Array; var _local6:Number; var _local7:Array; var _local3:Object = {}; for (_local4 in _arg2) { _local3[_local4] = _arg2[_local4]; }; if (_arg1){ for (_local4 in _arg1) { _local3[_local4] = _arg1[_local4]; }; }; if (_local3.clip == undefined){ throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite.")); }; _arg1 = _local3.clip.loaderInfo.parameters.mochiad_options; if (_arg1){ _local5 = _arg1.split("&"); _local6 = 0; while (_local6 < _local5.length) { _local7 = _local5[_local6].split("="); _local3[unescape(_local7[0])] = unescape(_local7[1]); _local6++; }; }; if (_local3.id == "test"){ trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!"); }; return (_local3); } public static function _cleanup(_arg1:Object):void{ var k:String; var lc:LocalConnection; var f:Function; var mc = _arg1; if (("lc" in mc)){ lc = mc.lc; f = function ():void{ try { lc.client = null; lc.close(); } catch(e:Error) { }; }; setTimeout(f, 0); }; var idx:Number = DisplayObjectContainer(mc).numChildren; while (idx > 0) { idx = (idx - 1); DisplayObjectContainer(mc).removeChildAt(idx); }; for (k in mc) { delete mc[k]; }; } public static function load(_arg1:Object):MovieClip{ var clip:Object; var k:String; var server:String; var hostname:String; var lc:LocalConnection; var name:String; var loader:Loader; var g:Function; var req:URLRequest; var v:Object; var options = _arg1; var DEFAULTS:Object = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = MochiAd._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = MochiAd.getVersion(); clip = options.clip; if (!MochiAd._isNetworkAvailable()){ return (null); }; try { if (clip._mochiad_loaded){ return (null); }; } catch(e:Error) { throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic.")); }; var depth:Number = options.depth; delete options.depth; var mc:MovieClip = createEmptyMovieClip(clip, "_mochiad", depth); var wh:Array = MochiAd._getRes(options, clip); options.res = ((wh[0] + "x") + wh[1]); options.server = (options.server + options.id); delete options.id; clip._mochiad_loaded = true; if (clip.loaderInfo.loaderURL.indexOf("http") == 0){ options.as3_swf = clip.loaderInfo.loaderURL; }; var lv:URLVariables = new URLVariables(); for (k in options) { v = options[k]; if (!(v is Function)){ lv[k] = v; }; }; server = lv.server; delete lv.server; hostname = _allowDomains(server); lc = new LocalConnection(); lc.client = mc; name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_"); lc.allowDomain("*", "localhost"); lc.allowInsecureDomain("*", "localhost"); lc.connect(name); mc.lc = lc; mc.lcName = name; lv.lc = name; lv.st = getTimer(); loader = new Loader(); g = function (_arg1:Object):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); MochiAd.unload(clip); }; loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g); req = new URLRequest((server + ".swf")); req.contentType = "application/x-www-form-urlencoded"; req.method = URLRequestMethod.POST; req.data = lv; loader.load(req); mc.addChild(loader); mc._mochiad_ctr = loader; return (mc); } public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{ var _local4:Array = _arg2.split("."); var _local5:Number = 0; while (_local5 < (_local4.length - 1)) { if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){ return (undefined); }; _arg1 = _arg1[_local4[_local5]]; _local5++; }; if (typeof(_arg1[_local4[_local5]]) == "function"){ return (_arg1[_local4[_local5]].apply(_arg1, _arg3)); }; return (undefined); } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{ var _local4:MovieClip = new MovieClip(); if (((false) && (_arg3))){ _arg1.addChildAt(_local4, _arg3); } else { _arg1.addChild(_local4); }; _arg1[_arg2] = _local4; _local4["_name"] = _arg2; return (_local4); } public static function _getRes(_arg1:Object, _arg2:Object):Array{ var _local6:Array; var _local3:Object = _arg2.getBounds(_arg2.root); var _local4:Number = 0; var _local5:Number = 0; if (typeof(_arg1.res) != "undefined"){ _local6 = _arg1.res.split("x"); _local4 = parseFloat(_local6[0]); _local5 = parseFloat(_local6[1]); } else { _local4 = (_local3.xMax - _local3.xMin); _local5 = (_local3.yMax - _local3.yMin); }; if ((((_local4 == 0)) || ((_local5 == 0)))){ _local4 = _arg2.stage.stageWidth; _local5 = _arg2.stage.stageHeight; }; return ([_local4, _local5]); } public static function adShowing(_arg1:Object):void{ _arg1.origFrameRate = _arg1.stage.frameRate; _arg1.stage.frameRate = 30; } public static function getValue(_arg1:Object, _arg2:String):Object{ var _local3:Array = _arg2.split("."); var _local4:Number = 0; while (_local4 < (_local3.length - 1)) { if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){ return (undefined); }; _arg1 = _arg1[_local3[_local4]]; _local4++; }; return (_arg1[_local3[_local4]]); } public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{ var _local4:Object; var _local5:Object; switch (_arg3.id){ case "setValue": MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value); break; case "getValue": _local4 = MochiAd.getValue(_arg1, _arg3.objectName); _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4); break; case "runMethod": _local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args); _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5); break; default: trace(("[mochiads rpc] unknown rpc id: " + _arg3.id)); }; } public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Array = _arg2.split("."); var _local5:Number = 0; while (_local5 < (_local4.length - 1)) { if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){ return; }; _arg1 = _arg1[_local4[_local5]]; _local5++; }; _arg1[_local4[_local5]] = _arg3; } public static function showPreGameAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var complete:Boolean; var unloaded:Boolean; var sendHostProgress:Boolean; var fn:Function; var r:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.play(); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }, ad_progress:function (_arg1:Number):void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){ options.ad_started(); fn = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); return; }; clip = options.clip; var ad_msec:Number = 11000; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; var fadeout_time:Number = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); var fn:Function = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.x = (w * -0.5); chk.y = (h * -0.5); var bar:MovieClip = createEmptyMovieClip(chk, "_mochiad_bar", 4); if (options.no_progress_bar){ bar.visible = false; delete options.no_progress_bar; } else { bar.x = 10; bar.y = (h - 20); }; var bar_color:Number = options.color; delete options.color; var bar_background:Number = options.background; delete options.background; var bar_outline:Number = options.outline; delete options.outline; var backing_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 1); var backing:Object = backing_mc.graphics; backing.beginFill(bar_background); backing.moveTo(0, 0); backing.lineTo((w - 20), 0); backing.lineTo((w - 20), 10); backing.lineTo(0, 10); backing.lineTo(0, 0); backing.endFill(); var inside_mc:MovieClip = createEmptyMovieClip(bar, "_inside", 2); var inside:Object = inside_mc.graphics; inside.beginFill(bar_color); inside.moveTo(0, 0); inside.lineTo((w - 20), 0); inside.lineTo((w - 20), 10); inside.lineTo(0, 10); inside.lineTo(0, 0); inside.endFill(); inside_mc.scaleX = 0; var outline_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 3); var outline:Object = outline_mc.graphics; outline.lineStyle(0, bar_outline, 100); outline.moveTo(0, 0); outline.lineTo((w - 20), 0); outline.lineTo((w - 20), 10); outline.lineTo(0, 10); outline.lineTo(0, 0); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; complete = false; unloaded = false; var f:Function = function (_arg1:Event):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); complete = true; if (unloaded){ MochiAd.unload(clip); }; }; clip.loaderInfo.addEventListener(Event.COMPLETE, f); if ((clip.root is MovieClip)){ r = (clip.root as MovieClip); if (r.framesLoaded >= r.totalFrames){ complete = true; }; }; mc.unloadAd = function ():void{ unloaded = true; if (complete){ MochiAd.unload(clip); }; }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object = mc._mochiad_wait; _local2.server_control = true; _local2.showing = true; _local2.started = getTimer(); _local2.ad_msec = _arg1; }; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; mc.rpcTestFn = function (_arg1:String):Object{ trace(("[MOCHIAD rpcTestFn] " + _arg1)); return (_arg1); }; mc.regContLC = function (_arg1:String):void{ mc._containerLCName = _arg1; }; sendHostProgress = false; mc.sendHostLoadProgress = function (_arg1:String):void{ sendHostProgress = true; }; chk["onEnterFrame"] = function ():void{ var _local11:Number; if (((!(this.parent)) || (!(this.parent.parent)))){ delete this["onEnterFrame"]; return; }; var _local1:Object = this.parent.parent.root; var _local2:Object = this.parent._mochiad_ctr; var _local3:Number = (getTimer() - this.started); var _local4:Boolean; var _local5:Number = _local1.loaderInfo.bytesTotal; var _local6:Number = _local1.loaderInfo.bytesLoaded; if (complete){ _local6 = Math.max(1, _local6); _local5 = _local6; }; var _local7:Number = ((100 * _local6) / _local5); var _local8:Number = ((100 * _local3) / chk.ad_msec); var _local9:Object = this._mochiad_bar._inside; var _local10:Number = Math.min(100, Math.min(((_local7) || (0)), _local8)); _local10 = Math.max(this.last_pcnt, _local10); this.last_pcnt = _local10; _local9.scaleX = (_local10 * 0.01); options.ad_progress(_local10); if (sendHostProgress){ clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7}); if (_local7 == 100){ sendHostProgress = false; }; }; if (!chk.showing){ _local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local11 > 0){ chk.showing = true; chk.started = getTimer(); MochiAd.adShowing(clip); } else { if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){ options.ad_failed(); _local4 = true; }; }; }; if (_local3 > chk.ad_msec){ _local4 = true; }; if (((complete) && (_local4))){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function showPreloaderAd(_arg1:Object):void{ trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0"); MochiAd.showPreGameAd(_arg1); } public static function showTimedAd(_arg1:Object):void{ trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0"); MochiAd.showInterLevelAd(_arg1); } public static function doOnEnterFrame(_arg1:MovieClip):void{ var mc = _arg1; var f:Function = function (_arg1:Object):void{ if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){ mc.onEnterFrame(); } else { _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; }; mc.addEventListener(Event.ENTER_FRAME, f); } } }//package com.gamelion
Section 51
//MochiBot (com.gamelion.MochiBot) package com.gamelion { import flash.display.*; import flash.system.*; import flash.net.*; public dynamic class MochiBot extends Sprite { public static function track(_arg1:Sprite, _arg2:String):MochiBot{ if (Security.sandboxType == "localWithFile"){ return (null); }; var _local3:MochiBot = new (MochiBot); _arg1.addChild(_local3); Security.allowDomain("*"); Security.allowInsecureDomain("*"); var _local4 = "http://core.mochibot.com/my/core.swf"; var _local5:URLVariables = new URLVariables(); _local5["sb"] = Security.sandboxType; _local5["v"] = Capabilities.version; _local5["swfid"] = _arg2; _local5["mv"] = "8"; _local5["fv"] = "9"; var _local6:String = _local3.root.loaderInfo.loaderURL; if (_local6.indexOf("http") == 0){ _local5["url"] = _local6; } else { _local5["url"] = "local"; }; var _local7:URLRequest = new URLRequest(_local4); _local7.contentType = "application/x-www-form-urlencoded"; _local7.method = URLRequestMethod.POST; _local7.data = _local5; var _local8:Loader = new Loader(); _local3.addChild(_local8); _local8.load(_local7); return (_local3); } } }//package com.gamelion
Section 52
//NextBrickPanel (com.gamelion.NextBrickPanel) package com.gamelion { import flash.events.*; import flash.display.*; import gs.*; import flash.text.*; public class NextBrickPanel extends Sprite { private var _pencil1:Bitmap; private var _timer:int; private var _pencils:Array; private var _nextBrick:Brick; private var _timerIndicator:TextField; private var _brickPattern:Class; private var _goal:Number; private var _bricks:Array; private var _goalIndicator:TextField; public function NextBrickPanel(_arg1:Brick, _arg2:Number=0, _arg3:Number=0, _arg4:int=0){ var _local6:Bitmap; var _local7:Array; var _local8:int; var _local9:SmallBrick; super(); _nextBrick = _arg1; _goal = _arg3; _timer = _arg4; _bricks = new Array(); var _local5:Number = 0; while (_local5 < 4) { _local7 = new Array(); _local8 = 0; while (_local8 < 4) { _local9 = new SmallBrick(_arg2); _local9.x = ((_local8 * 23) + 1); _local9.y = ((_local5 * 23) + 2); _local9.alpha = 0; addChild(_local9); _local7.push(_local9); _local8++; }; _bricks.push(_local7); _local5++; }; _pencils = new Array(); _pencils.push(new Resources.BLUE()); _pencils.push(new Resources.GREEN()); _pencils.push(new Resources.RED()); _pencils.push(new Resources.ORANGE()); _pencils.push(new Resources.NAVY_BLUE()); for each (_local6 in _pencils) { _local6.smoothing = true; _local6.y = -100; _local6.visible = false; addChild(_local6); }; if (_nextBrick.gapFillingBrick == true){ addEventListener(Event.ENTER_FRAME, onEnterFrame); } else { removeEventListener(Event.ENTER_FRAME, onEnterFrame); }; if (_goal != 0){ }; if (_timer != 0){ }; renderNextBrick(); } public function set timerIndicator(_arg1:int):void{ if (((_timer - _arg1) % 60) < 10){ _timerIndicator.text = ((Math.floor(((_timer - _arg1) / 60)) + ":0") + Math.floor(((_timer - _arg1) % 60))); } else { _timerIndicator.text = ((Math.floor(((_timer - _arg1) / 60)) + ":") + Math.floor(((_timer - _arg1) % 60))); }; } private function renderNextBrick():void{ var _local2:int; _pencil1 = _pencils[(_nextBrick.color - 1)]; _pencil1.visible = true; _pencil1.x = -20; var _local1:int; while (_local1 < 4) { _local2 = 0; while (_local2 < 4) { if (_nextBrick.currentFace[_local1][_local2] != 0){ _bricks[_local1][_local2].currentFace = _nextBrick.color; if (_nextBrick.gapFillingBrick == false){ TweenLite.to(_bricks[_local1][_local2], 0.6, {alpha:1}); }; } else { _bricks[_local1][_local2].alpha = 0; }; _local2++; }; _local1++; }; TweenLite.to(_pencil1, 0.2, {delay:0.05, x:40, rotation:15, onComplete:TweenLite.to, onCompleteParams:[_pencil1, 0.2, {x:-20, rotation:-15, onComplete:TweenLite.to, onCompleteParams:[_pencil1, 0.2, {x:40, rotation:0, onComplete:removePencil}]}]}); } public function set nextBrick(_arg1:Brick):void{ var _local2:Array; var _local3:SmallBrick; _nextBrick = _arg1; if (_nextBrick.gapFillingBrick == true){ addEventListener(Event.ENTER_FRAME, onEnterFrame); } else { removeEventListener(Event.ENTER_FRAME, onEnterFrame); }; for each (_local2 in _bricks) { for each (_local3 in _local2) { TweenLite.killTweensOf(_local3); }; }; removeCurrentBrick(); } private function removeCurrentBrick():void{ var _local1:Array; var _local2:SmallBrick; removePencil(); TweenLite.killTweensOf(); for each (_local1 in _bricks) { for each (_local2 in _local1) { _local2.alpha = 0; }; }; renderNextBrick(); } private function removePencil():void{ var _local1:Bitmap; for each (_local1 in _pencils) { _local1.visible = false; }; } private function onEnterFrame(_arg1:Event):void{ var _local3:int; var _local2:int; while (_local2 < 4) { _local3 = 0; while (_local3 < 4) { if (_nextBrick.currentFace[_local2][_local3] != 0){ _bricks[_local2][_local3].currentFace = _nextBrick.color; if (_bricks[_local2][_local3].alpha < 1){ _bricks[_local2][_local3].alpha = (_bricks[_local2][_local3].alpha + 0.1); } else { _bricks[_local2][_local3].alpha = 0; }; }; _local3++; }; _local2++; }; } public function set goalIndicator(_arg1:Number):void{ _goalIndicator.text = (((_goal - _arg1) + " / ") + _goal); } } }//package com.gamelion
Section 53
//Preloader (com.gamelion.Preloader) package com.gamelion { import flash.display.*; import gs.*; import flash.utils.*; public dynamic class Preloader extends MovieClip { private var sharpener:Bitmap; private var pencil:Bitmap; private var gamelion:Bitmap; private var scrap:MovieClip; private var sketchBlocks:Bitmap; private var pencilShadow:Bitmap; private var presents:Bitmap; private var pencilMask:Shape; private var displayContainer:Sprite; private var progress:Sprite; private var background:Bitmap; public static var SHARPENER:Class = Preloader_SHARPENER; public static var PENCIL_SHADOW:Class = Preloader_PENCIL_SHADOW; public static var PROGRESS:Class = Preloader_PROGRESS; public static var GAMELION:Class = Preloader_GAMELION; public static var SCRAP:Class = Preloader_SCRAP; public static var PENCIL:Class = Preloader_PENCIL; public static var MENU_TABLE:Class = Preloader_MENU_TABLE; public static var PRESENTS:Class = Preloader_PRESENTS; public static var SKETCH_BLOCKS:Class = Preloader_SKETCH_BLOCKS; public function Preloader(){ stop(); MochiBot.track(this, "a5c77f40"); displayContainer = new Sprite(); displayContainer.width = 800; displayContainer.height = 880; displayContainer.scaleX = (550 / 800); displayContainer.scaleY = (605 / 880); background = new MENU_TABLE(); background.smoothing = true; displayContainer.addChild(background); gamelion = new GAMELION(); gamelion.alpha = 0; gamelion.smoothing = true; gamelion.x = (400 - (gamelion.width / 2)); gamelion.y = 200; displayContainer.addChild(gamelion); presents = new PRESENTS(); presents.alpha = 0; presents.smoothing = true; presents.x = (400 - (presents.width / 2)); presents.y = ((gamelion.y + gamelion.height) + 15); displayContainer.addChild(presents); sketchBlocks = new SKETCH_BLOCKS(); sketchBlocks.alpha = 0; sketchBlocks.smoothing = true; sketchBlocks.x = (400 - (sketchBlocks.width / 2)); sketchBlocks.y = ((presents.y + presents.height) + 15); displayContainer.addChild(sketchBlocks); progress = new PROGRESS(); progress.alpha = 0; progress.x = (400 - (progress.width / 2)); progress.y = ((0x0300 - progress.height) - 5); displayContainer.addChild(progress); sharpener = new SHARPENER(); sharpener.alpha = 0; sharpener.x = 580; sharpener.y = 650; sharpener.smoothing = true; displayContainer.addChild(sharpener); pencil = new PENCIL(); pencil.alpha = 0; pencil.x = 108; pencil.y = 668; pencil.smoothing = true; displayContainer.addChild(pencil); pencilShadow = new PENCIL_SHADOW(); pencilShadow.alpha = 0; pencilShadow.x = 590; pencilShadow.y = 668; displayContainer.addChild(pencilShadow); pencilMask = new Shape(); pencilMask.graphics.beginFill(0); pencilMask.graphics.drawRect(0, 0, 500, pencil.height); pencilMask.x = 108; pencilMask.y = pencil.y; displayContainer.addChild(pencilMask); pencil.mask = pencilMask; scrap = new SCRAP(); scrap.alpha = 0; scrap.x = (sharpener.x + (1.3 * scrap.width)); scrap.y = (sharpener.y + 28); scrap.scaleX = -1; scrap.play(); displayContainer.addChild(scrap); displayContainer.alpha = 0; addChild(displayContainer); MochiAd.showPreGameAd({clip:this, id:"9064cdfff1940022", res:"550x605", background:16777161, color:0xFF8A00, outline:13994812, no_bg:false, ad_finished:cleanUp}); } private function cleanUp():void{ displayContainer.alpha = 1; scrap.stop(); displayContainer.removeChild(scrap); scrap = null; displayContainer.removeChild(sharpener); sharpener = null; displayContainer.removeChild(pencil); pencil = null; displayContainer.removeChild(pencilShadow); pencilShadow = null; displayContainer.removeChild(pencilMask); pencilMask = null; displayContainer.removeChild(progress); progress = null; animateLogos(); } private function init():void{ var _local2:DisplayObject; nextFrame(); displayContainer.removeChild(background); background = null; displayContainer.removeChild(gamelion); gamelion = null; displayContainer.removeChild(presents); presents = null; displayContainer.removeChild(sketchBlocks); sketchBlocks = null; removeChild(displayContainer); displayContainer = null; var _local1:Class = Class(getDefinitionByName("Application")); if (_local1){ _local2 = new (_local1); _local2.scaleX = (550 / 800); _local2.scaleY = (605 / 880); addChild(_local2); }; } private function animateLogos():void{ TweenLite.to(gamelion, 0.7, {alpha:1, onComplete:TweenLite.to, onCompleteParams:[presents, 0.7, {alpha:1, onComplete:TweenLite.to, onCompleteParams:[sketchBlocks, 0.7, {alpha:1, onComplete:TweenLite.to, onCompleteParams:[gamelion, 0.7, {alpha:0, onComplete:TweenLite.to, onCompleteParams:[presents, 0.7, {alpha:0, onComplete:TweenLite.to, onCompleteParams:[sketchBlocks, 0.7, {alpha:0, onComplete:init}]}]}]}]}]}); } } }//package com.gamelion
Section 54
//Preloader_GAMELION (com.gamelion.Preloader_GAMELION) package com.gamelion { import flash.display.*; import mx.core.*; public class Preloader_GAMELION extends BitmapAsset { public var progress:DisplayObject; } }//package com.gamelion
Section 55
//Preloader_MENU_TABLE (com.gamelion.Preloader_MENU_TABLE) package com.gamelion { import mx.core.*; public class Preloader_MENU_TABLE extends BitmapAsset { } }//package com.gamelion
Section 56
//Preloader_PENCIL (com.gamelion.Preloader_PENCIL) package com.gamelion { import mx.core.*; public class Preloader_PENCIL extends BitmapAsset { } }//package com.gamelion
Section 57
//Preloader_PENCIL_SHADOW (com.gamelion.Preloader_PENCIL_SHADOW) package com.gamelion { import mx.core.*; public class Preloader_PENCIL_SHADOW extends BitmapAsset { } }//package com.gamelion
Section 58
//Preloader_PRESENTS (com.gamelion.Preloader_PRESENTS) package com.gamelion { import flash.display.*; import mx.core.*; public class Preloader_PRESENTS extends BitmapAsset { public var progress:DisplayObject; } }//package com.gamelion
Section 59
//Preloader_PROGRESS (com.gamelion.Preloader_PROGRESS) package com.gamelion { import flash.display.*; import mx.core.*; public class Preloader_PROGRESS extends SpriteAsset { public var progress:DisplayObject; } }//package com.gamelion
Section 60
//Preloader_SCRAP (com.gamelion.Preloader_SCRAP) package com.gamelion { import flash.display.*; import mx.core.*; public class Preloader_SCRAP extends MovieClipAsset { public var progress:DisplayObject; } }//package com.gamelion
Section 61
//Preloader_SHARPENER (com.gamelion.Preloader_SHARPENER) package com.gamelion { import mx.core.*; public class Preloader_SHARPENER extends BitmapAsset { } }//package com.gamelion
Section 62
//Preloader_SKETCH_BLOCKS (com.gamelion.Preloader_SKETCH_BLOCKS) package com.gamelion { import flash.display.*; import mx.core.*; public class Preloader_SKETCH_BLOCKS extends BitmapAsset { public var progress:DisplayObject; } }//package com.gamelion
Section 63
//RemotingConnection (com.gamelion.RemotingConnection) package com.gamelion { import flash.net.*; public class RemotingConnection extends NetConnection { public function RemotingConnection(_arg1:String){ objectEncoding = ObjectEncoding.AMF3; if (_arg1){ connect(_arg1); }; } } }//package com.gamelion
Section 64
//Resources (com.gamelion.Resources) package com.gamelion { public class Resources { public static var HOUSE:Class = Resources_HOUSE; public static var GAME_OVER:Class = Resources_GAME_OVER; public static var BRICK_RHOMB_YELLOW:Class = Resources_BRICK_RHOMB_YELLOW; public static var HEADPHONES:Class = Resources_HEADPHONES; public static var BRICK_EMPTY_BLUE:Class = Resources_BRICK_EMPTY_BLUE; public static var ROTATE_SOUND:Class = Resources_ROTATE_SOUND; public static var BRICK_CLASSIC_RED:Class = Resources_BRICK_CLASSIC_RED; public static var MENU_SOUND:Class = Resources_MENU_SOUND; public static var ELEPHANT:Class = Resources_ELEPHANT; public static var BRICK_CLASSIC_NAVY_BLUE:Class = Resources_BRICK_CLASSIC_NAVY_BLUE; public static var BRICK_CIRCLE_GREEN:Class = Resources_BRICK_CIRCLE_GREEN; public static var RABBIT:Class = Resources_RABBIT; public static var BRICK_EMPTY_PINK:Class = Resources_BRICK_EMPTY_PINK; public static var BRICK_EMPTY_YELLOW:Class = Resources_BRICK_EMPTY_YELLOW; public static var BRICK_CIRCLE_YELLOW:Class = Resources_BRICK_CIRCLE_YELLOW; public static var ORANGE:Class = Resources_ORANGE; public static var LOCKED_BIG:Class = Resources_LOCKED_BIG; public static var BRICK_EMPTY_GREEN:Class = Resources_BRICK_EMPTY_GREEN; public static var BACKGROUND:Class = Resources_BACKGROUND; public static var BRICK_CLASSIC_GREEN:Class = Resources_BRICK_CLASSIC_GREEN; public static var RED_BAR:Class = Resources_RED_BAR; public static var BRICK_RHOMB_RED:Class = Resources_BRICK_RHOMB_RED; public static var NAVY_BLUE:Class = Resources_NAVY_BLUE; public static var TABLE2:Class = Resources_TABLE2; public static var BRICK_CIRCLE_BROWN:Class = Resources_BRICK_CIRCLE_BROWN; public static var TABLE5:Class = Resources_TABLE5; public static var BRICK_CIRCLE_BLUE:Class = Resources_BRICK_CIRCLE_BLUE; public static var FRAME:Class = Resources_FRAME; public static var WELL_DONE:Class = Resources_WELL_DONE; public static var BRICK_RHOMB_NAVY_BLUE:Class = Resources_BRICK_RHOMB_NAVY_BLUE; public static var TABLE4:Class = Resources_TABLE4; public static var BLUE:Class = Resources_BLUE; public static var BRICK_CLASSIC:Class = Resources_BRICK_CLASSIC; public static var TABLE3:Class = Resources_TABLE3; public static var RED_CIRCLE:Class = Resources_RED_CIRCLE; public static var MENU:Class = Resources_MENU; public static var BRICK_CLASSIC_BLUE:Class = Resources_BRICK_CLASSIC_BLUE; public static var BRICK_CIRCLE_PINK:Class = Resources_BRICK_CIRCLE_PINK; public static var BRICK_STAR_RED:Class = Resources_BRICK_STAR_RED; public static var BRICK_EMPTY_BROWN:Class = Resources_BRICK_EMPTY_BROWN; public static var BRICK_CIRCLE_RED:Class = Resources_BRICK_CIRCLE_RED; public static var RED:Class = Resources_RED; public static var BRICK_CLASSIC_BROWN:Class = Resources_BRICK_CLASSIC_BROWN; public static var YELLOW:Class = Resources_YELLOW; public static var WORKSPACE:Class = Resources_WORKSPACE; public static var BRICK_CLASSIC_ORANGE:Class = Resources_BRICK_CLASSIC_ORANGE; public static var BRICK_STAR_NAVY_BLUE:Class = Resources_BRICK_STAR_NAVY_BLUE; public static var BRICK_CLASSIC_PINK:Class = Resources_BRICK_CLASSIC_PINK; public static var BRICK_RHOMB_GREEN:Class = Resources_BRICK_RHOMB_GREEN; public static var BRICK_STAR_BLUE:Class = Resources_BRICK_STAR_BLUE; public static var BRICK_EMPTY:Class = Resources_BRICK_EMPTY; public static var BRICK_RHOMB:Class = Resources_BRICK_RHOMB; public static var BRICK_EMPTY_NAVY_BLUE:Class = Resources_BRICK_EMPTY_NAVY_BLUE; public static var BRICK_STAR_GREEN:Class = Resources_BRICK_STAR_GREEN; public static var MENU_DECO:Class = Resources_MENU_DECO; public static var BRICK_STAR_ORANGE:Class = Resources_BRICK_STAR_ORANGE; public static var LOCKED_SMALL:Class = Resources_LOCKED_SMALL; public static var PLAY_LION_LOGO:Class = Resources_PLAY_LION_LOGO; public static var FROG:Class = Resources_FROG; public static var INSTRUCTIONS:Class = Resources_INSTRUCTIONS; public static var BRICK_RHOMB_BROWN:Class = Resources_BRICK_RHOMB_BROWN; public static var BRICK_RHOMB_BLUE:Class = Resources_BRICK_RHOMB_BLUE; public static var PLAIN:Class = Resources_PLAIN; public static var BRICK_CIRCLE:Class = Resources_BRICK_CIRCLE; public static var BRICK_STAR:Class = Resources_BRICK_STAR; public static var ADVENTURE_MODE_HUD:Class = Resources_ADVENTURE_MODE_HUD; public static var TABLE1:Class = Resources_TABLE1; public static var YELLOW_BAR:Class = Resources_YELLOW_BAR; public static var BUSSINES_CARD = Resources_BUSSINES_CARD; public static var GREEN_BAR:Class = Resources_GREEN_BAR; public static var GAMEFIELD_BACKGROUND:Class = Resources_GAMEFIELD_BACKGROUND; public static var DOLPHIN:Class = Resources_DOLPHIN; public static var BRICK_CLASSIC_YELLOW:Class = Resources_BRICK_CLASSIC_YELLOW; public static var BRICK_EMPTY_RED:Class = Resources_BRICK_EMPTY_RED; public static var BACKGROUND2:Class = Resources_BACKGROUND2; public static var BRICK_STAR_PINK:Class = Resources_BRICK_STAR_PINK; public static var MONKEY:Class = Resources_MONKEY; public static var BRICK_RHOMB_PINK:Class = Resources_BRICK_RHOMB_PINK; public static var GAMEFIELD_BACKGROUND_PL:Class = Resources_GAMEFIELD_BACKGROUND_PL; public static var PENCIL1:Class = Resources_PENCIL1; public static var BRICK_EMPTY_ORANGE:Class = Resources_BRICK_EMPTY_ORANGE; public static var BRICK_CIRCLE_ORANGE:Class = Resources_BRICK_CIRCLE_ORANGE; public static var GREEN:Class = Resources_GREEN; public static var LINE_SOUND:Class = Resources_LINE_SOUND; public static var SNAIL:Class = Resources_SNAIL; public static var DOCK_SOUND:Class = Resources_DOCK_SOUND; public static var BRICK_CIRCLE_NAVY_BLUE:Class = Resources_BRICK_CIRCLE_NAVY_BLUE; public static var VERDANA:Class = Resources_VERDANA; public static var BRICK_RHOMB_ORANGE:Class = Resources_BRICK_RHOMB_ORANGE; public static var BRICK_STAR_YELLOW:Class = Resources_BRICK_STAR_YELLOW; } }//package com.gamelion
Section 65
//Resources_ADVENTURE_MODE_HUD (com.gamelion.Resources_ADVENTURE_MODE_HUD) package com.gamelion { import mx.core.*; public class Resources_ADVENTURE_MODE_HUD extends BitmapAsset { } }//package com.gamelion
Section 66
//Resources_BACKGROUND (com.gamelion.Resources_BACKGROUND) package com.gamelion { import mx.core.*; public class Resources_BACKGROUND extends BitmapAsset { } }//package com.gamelion
Section 67
//Resources_BACKGROUND2 (com.gamelion.Resources_BACKGROUND2) package com.gamelion { import mx.core.*; public class Resources_BACKGROUND2 extends BitmapAsset { } }//package com.gamelion
Section 68
//Resources_BLUE (com.gamelion.Resources_BLUE) package com.gamelion { import mx.core.*; public class Resources_BLUE extends BitmapAsset { } }//package com.gamelion
Section 69
//Resources_BRICK_CIRCLE (com.gamelion.Resources_BRICK_CIRCLE) package com.gamelion { import mx.core.*; public class Resources_BRICK_CIRCLE extends BitmapAsset { } }//package com.gamelion
Section 70
//Resources_BRICK_CIRCLE_BLUE (com.gamelion.Resources_BRICK_CIRCLE_BLUE) package com.gamelion { import mx.core.*; public class Resources_BRICK_CIRCLE_BLUE extends BitmapAsset { } }//package com.gamelion
Section 71
//Resources_BRICK_CIRCLE_BROWN (com.gamelion.Resources_BRICK_CIRCLE_BROWN) package com.gamelion { import mx.core.*; public class Resources_BRICK_CIRCLE_BROWN extends BitmapAsset { } }//package com.gamelion
Section 72
//Resources_BRICK_CIRCLE_GREEN (com.gamelion.Resources_BRICK_CIRCLE_GREEN) package com.gamelion { import mx.core.*; public class Resources_BRICK_CIRCLE_GREEN extends BitmapAsset { } }//package com.gamelion
Section 73
//Resources_BRICK_CIRCLE_NAVY_BLUE (com.gamelion.Resources_BRICK_CIRCLE_NAVY_BLUE) package com.gamelion { import mx.core.*; public class Resources_BRICK_CIRCLE_NAVY_BLUE extends BitmapAsset { } }//package com.gamelion
Section 74
//Resources_BRICK_CIRCLE_ORANGE (com.gamelion.Resources_BRICK_CIRCLE_ORANGE) package com.gamelion { import mx.core.*; public class Resources_BRICK_CIRCLE_ORANGE extends BitmapAsset { } }//package com.gamelion
Section 75
//Resources_BRICK_CIRCLE_PINK (com.gamelion.Resources_BRICK_CIRCLE_PINK) package com.gamelion { import mx.core.*; public class Resources_BRICK_CIRCLE_PINK extends BitmapAsset { } }//package com.gamelion
Section 76
//Resources_BRICK_CIRCLE_RED (com.gamelion.Resources_BRICK_CIRCLE_RED) package com.gamelion { import mx.core.*; public class Resources_BRICK_CIRCLE_RED extends BitmapAsset { } }//package com.gamelion
Section 77
//Resources_BRICK_CIRCLE_YELLOW (com.gamelion.Resources_BRICK_CIRCLE_YELLOW) package com.gamelion { import mx.core.*; public class Resources_BRICK_CIRCLE_YELLOW extends BitmapAsset { } }//package com.gamelion
Section 78
//Resources_BRICK_CLASSIC (com.gamelion.Resources_BRICK_CLASSIC) package com.gamelion { import mx.core.*; public class Resources_BRICK_CLASSIC extends BitmapAsset { } }//package com.gamelion
Section 79
//Resources_BRICK_CLASSIC_BLUE (com.gamelion.Resources_BRICK_CLASSIC_BLUE) package com.gamelion { import mx.core.*; public class Resources_BRICK_CLASSIC_BLUE extends BitmapAsset { } }//package com.gamelion
Section 80
//Resources_BRICK_CLASSIC_BROWN (com.gamelion.Resources_BRICK_CLASSIC_BROWN) package com.gamelion { import mx.core.*; public class Resources_BRICK_CLASSIC_BROWN extends BitmapAsset { } }//package com.gamelion
Section 81
//Resources_BRICK_CLASSIC_GREEN (com.gamelion.Resources_BRICK_CLASSIC_GREEN) package com.gamelion { import mx.core.*; public class Resources_BRICK_CLASSIC_GREEN extends BitmapAsset { } }//package com.gamelion
Section 82
//Resources_BRICK_CLASSIC_NAVY_BLUE (com.gamelion.Resources_BRICK_CLASSIC_NAVY_BLUE) package com.gamelion { import mx.core.*; public class Resources_BRICK_CLASSIC_NAVY_BLUE extends BitmapAsset { } }//package com.gamelion
Section 83
//Resources_BRICK_CLASSIC_ORANGE (com.gamelion.Resources_BRICK_CLASSIC_ORANGE) package com.gamelion { import mx.core.*; public class Resources_BRICK_CLASSIC_ORANGE extends BitmapAsset { } }//package com.gamelion
Section 84
//Resources_BRICK_CLASSIC_PINK (com.gamelion.Resources_BRICK_CLASSIC_PINK) package com.gamelion { import mx.core.*; public class Resources_BRICK_CLASSIC_PINK extends BitmapAsset { } }//package com.gamelion
Section 85
//Resources_BRICK_CLASSIC_RED (com.gamelion.Resources_BRICK_CLASSIC_RED) package com.gamelion { import mx.core.*; public class Resources_BRICK_CLASSIC_RED extends BitmapAsset { } }//package com.gamelion
Section 86
//Resources_BRICK_CLASSIC_YELLOW (com.gamelion.Resources_BRICK_CLASSIC_YELLOW) package com.gamelion { import mx.core.*; public class Resources_BRICK_CLASSIC_YELLOW extends BitmapAsset { } }//package com.gamelion
Section 87
//Resources_BRICK_EMPTY (com.gamelion.Resources_BRICK_EMPTY) package com.gamelion { import mx.core.*; public class Resources_BRICK_EMPTY extends BitmapAsset { } }//package com.gamelion
Section 88
//Resources_BRICK_EMPTY_BLUE (com.gamelion.Resources_BRICK_EMPTY_BLUE) package com.gamelion { import mx.core.*; public class Resources_BRICK_EMPTY_BLUE extends BitmapAsset { } }//package com.gamelion
Section 89
//Resources_BRICK_EMPTY_BROWN (com.gamelion.Resources_BRICK_EMPTY_BROWN) package com.gamelion { import mx.core.*; public class Resources_BRICK_EMPTY_BROWN extends BitmapAsset { } }//package com.gamelion
Section 90
//Resources_BRICK_EMPTY_GREEN (com.gamelion.Resources_BRICK_EMPTY_GREEN) package com.gamelion { import mx.core.*; public class Resources_BRICK_EMPTY_GREEN extends BitmapAsset { } }//package com.gamelion
Section 91
//Resources_BRICK_EMPTY_NAVY_BLUE (com.gamelion.Resources_BRICK_EMPTY_NAVY_BLUE) package com.gamelion { import mx.core.*; public class Resources_BRICK_EMPTY_NAVY_BLUE extends BitmapAsset { } }//package com.gamelion
Section 92
//Resources_BRICK_EMPTY_ORANGE (com.gamelion.Resources_BRICK_EMPTY_ORANGE) package com.gamelion { import mx.core.*; public class Resources_BRICK_EMPTY_ORANGE extends BitmapAsset { } }//package com.gamelion
Section 93
//Resources_BRICK_EMPTY_PINK (com.gamelion.Resources_BRICK_EMPTY_PINK) package com.gamelion { import mx.core.*; public class Resources_BRICK_EMPTY_PINK extends BitmapAsset { } }//package com.gamelion
Section 94
//Resources_BRICK_EMPTY_RED (com.gamelion.Resources_BRICK_EMPTY_RED) package com.gamelion { import mx.core.*; public class Resources_BRICK_EMPTY_RED extends BitmapAsset { } }//package com.gamelion
Section 95
//Resources_BRICK_EMPTY_YELLOW (com.gamelion.Resources_BRICK_EMPTY_YELLOW) package com.gamelion { import mx.core.*; public class Resources_BRICK_EMPTY_YELLOW extends BitmapAsset { } }//package com.gamelion
Section 96
//Resources_BRICK_RHOMB (com.gamelion.Resources_BRICK_RHOMB) package com.gamelion { import mx.core.*; public class Resources_BRICK_RHOMB extends BitmapAsset { } }//package com.gamelion
Section 97
//Resources_BRICK_RHOMB_BLUE (com.gamelion.Resources_BRICK_RHOMB_BLUE) package com.gamelion { import mx.core.*; public class Resources_BRICK_RHOMB_BLUE extends BitmapAsset { } }//package com.gamelion
Section 98
//Resources_BRICK_RHOMB_BROWN (com.gamelion.Resources_BRICK_RHOMB_BROWN) package com.gamelion { import mx.core.*; public class Resources_BRICK_RHOMB_BROWN extends BitmapAsset { } }//package com.gamelion
Section 99
//Resources_BRICK_RHOMB_GREEN (com.gamelion.Resources_BRICK_RHOMB_GREEN) package com.gamelion { import mx.core.*; public class Resources_BRICK_RHOMB_GREEN extends BitmapAsset { } }//package com.gamelion
Section 100
//Resources_BRICK_RHOMB_NAVY_BLUE (com.gamelion.Resources_BRICK_RHOMB_NAVY_BLUE) package com.gamelion { import mx.core.*; public class Resources_BRICK_RHOMB_NAVY_BLUE extends BitmapAsset { } }//package com.gamelion
Section 101
//Resources_BRICK_RHOMB_ORANGE (com.gamelion.Resources_BRICK_RHOMB_ORANGE) package com.gamelion { import mx.core.*; public class Resources_BRICK_RHOMB_ORANGE extends BitmapAsset { } }//package com.gamelion
Section 102
//Resources_BRICK_RHOMB_PINK (com.gamelion.Resources_BRICK_RHOMB_PINK) package com.gamelion { import mx.core.*; public class Resources_BRICK_RHOMB_PINK extends BitmapAsset { } }//package com.gamelion
Section 103
//Resources_BRICK_RHOMB_RED (com.gamelion.Resources_BRICK_RHOMB_RED) package com.gamelion { import mx.core.*; public class Resources_BRICK_RHOMB_RED extends BitmapAsset { } }//package com.gamelion
Section 104
//Resources_BRICK_RHOMB_YELLOW (com.gamelion.Resources_BRICK_RHOMB_YELLOW) package com.gamelion { import mx.core.*; public class Resources_BRICK_RHOMB_YELLOW extends BitmapAsset { } }//package com.gamelion
Section 105
//Resources_BRICK_STAR (com.gamelion.Resources_BRICK_STAR) package com.gamelion { import mx.core.*; public class Resources_BRICK_STAR extends BitmapAsset { } }//package com.gamelion
Section 106
//Resources_BRICK_STAR_BLUE (com.gamelion.Resources_BRICK_STAR_BLUE) package com.gamelion { import mx.core.*; public class Resources_BRICK_STAR_BLUE extends BitmapAsset { } }//package com.gamelion
Section 107
//Resources_BRICK_STAR_GREEN (com.gamelion.Resources_BRICK_STAR_GREEN) package com.gamelion { import mx.core.*; public class Resources_BRICK_STAR_GREEN extends BitmapAsset { } }//package com.gamelion
Section 108
//Resources_BRICK_STAR_NAVY_BLUE (com.gamelion.Resources_BRICK_STAR_NAVY_BLUE) package com.gamelion { import mx.core.*; public class Resources_BRICK_STAR_NAVY_BLUE extends BitmapAsset { } }//package com.gamelion
Section 109
//Resources_BRICK_STAR_ORANGE (com.gamelion.Resources_BRICK_STAR_ORANGE) package com.gamelion { import mx.core.*; public class Resources_BRICK_STAR_ORANGE extends BitmapAsset { } }//package com.gamelion
Section 110
//Resources_BRICK_STAR_PINK (com.gamelion.Resources_BRICK_STAR_PINK) package com.gamelion { import mx.core.*; public class Resources_BRICK_STAR_PINK extends BitmapAsset { } }//package com.gamelion
Section 111
//Resources_BRICK_STAR_RED (com.gamelion.Resources_BRICK_STAR_RED) package com.gamelion { import mx.core.*; public class Resources_BRICK_STAR_RED extends BitmapAsset { } }//package com.gamelion
Section 112
//Resources_BRICK_STAR_YELLOW (com.gamelion.Resources_BRICK_STAR_YELLOW) package com.gamelion { import mx.core.*; public class Resources_BRICK_STAR_YELLOW extends BitmapAsset { } }//package com.gamelion
Section 113
//Resources_BUSSINES_CARD (com.gamelion.Resources_BUSSINES_CARD) package com.gamelion { import mx.core.*; public class Resources_BUSSINES_CARD extends MovieClipAsset { } }//package com.gamelion
Section 114
//Resources_DOCK_SOUND (com.gamelion.Resources_DOCK_SOUND) package com.gamelion { import mx.core.*; public class Resources_DOCK_SOUND extends SoundAsset { } }//package com.gamelion
Section 115
//Resources_DOLPHIN (com.gamelion.Resources_DOLPHIN) package com.gamelion { import mx.core.*; public class Resources_DOLPHIN extends MovieClipAsset { } }//package com.gamelion
Section 116
//Resources_ELEPHANT (com.gamelion.Resources_ELEPHANT) package com.gamelion { import mx.core.*; public class Resources_ELEPHANT extends MovieClipAsset { } }//package com.gamelion
Section 117
//Resources_FRAME (com.gamelion.Resources_FRAME) package com.gamelion { import mx.core.*; public class Resources_FRAME extends BitmapAsset { } }//package com.gamelion
Section 118
//Resources_FROG (com.gamelion.Resources_FROG) package com.gamelion { import mx.core.*; public class Resources_FROG extends MovieClipAsset { } }//package com.gamelion
Section 119
//Resources_GAME_OVER (com.gamelion.Resources_GAME_OVER) package com.gamelion { import mx.core.*; public class Resources_GAME_OVER extends MovieClipAsset { } }//package com.gamelion
Section 120
//Resources_GAMEFIELD_BACKGROUND (com.gamelion.Resources_GAMEFIELD_BACKGROUND) package com.gamelion { import mx.core.*; public class Resources_GAMEFIELD_BACKGROUND extends MovieClipAsset { } }//package com.gamelion
Section 121
//Resources_GAMEFIELD_BACKGROUND_PL (com.gamelion.Resources_GAMEFIELD_BACKGROUND_PL) package com.gamelion { import mx.core.*; public class Resources_GAMEFIELD_BACKGROUND_PL extends MovieClipAsset { } }//package com.gamelion
Section 122
//Resources_GREEN (com.gamelion.Resources_GREEN) package com.gamelion { import mx.core.*; public class Resources_GREEN extends BitmapAsset { } }//package com.gamelion
Section 123
//Resources_GREEN_BAR (com.gamelion.Resources_GREEN_BAR) package com.gamelion { import mx.core.*; public class Resources_GREEN_BAR extends BitmapAsset { } }//package com.gamelion
Section 124
//Resources_HEADPHONES (com.gamelion.Resources_HEADPHONES) package com.gamelion { import mx.core.*; public class Resources_HEADPHONES extends BitmapAsset { } }//package com.gamelion
Section 125
//Resources_HOUSE (com.gamelion.Resources_HOUSE) package com.gamelion { import mx.core.*; public class Resources_HOUSE extends BitmapAsset { } }//package com.gamelion
Section 126
//Resources_INSTRUCTIONS (com.gamelion.Resources_INSTRUCTIONS) package com.gamelion { import mx.core.*; public class Resources_INSTRUCTIONS extends BitmapAsset { } }//package com.gamelion
Section 127
//Resources_LINE_SOUND (com.gamelion.Resources_LINE_SOUND) package com.gamelion { import mx.core.*; public class Resources_LINE_SOUND extends SoundAsset { } }//package com.gamelion
Section 128
//Resources_LOCKED_BIG (com.gamelion.Resources_LOCKED_BIG) package com.gamelion { import mx.core.*; public class Resources_LOCKED_BIG extends BitmapAsset { } }//package com.gamelion
Section 129
//Resources_LOCKED_SMALL (com.gamelion.Resources_LOCKED_SMALL) package com.gamelion { import mx.core.*; public class Resources_LOCKED_SMALL extends BitmapAsset { } }//package com.gamelion
Section 130
//Resources_MENU (com.gamelion.Resources_MENU) package com.gamelion { import mx.core.*; public class Resources_MENU extends MovieClipAsset { } }//package com.gamelion
Section 131
//Resources_MENU_DECO (com.gamelion.Resources_MENU_DECO) package com.gamelion { import mx.core.*; public class Resources_MENU_DECO extends BitmapAsset { } }//package com.gamelion
Section 132
//Resources_MENU_SOUND (com.gamelion.Resources_MENU_SOUND) package com.gamelion { import mx.core.*; public class Resources_MENU_SOUND extends SoundAsset { } }//package com.gamelion
Section 133
//Resources_MONKEY (com.gamelion.Resources_MONKEY) package com.gamelion { import mx.core.*; public class Resources_MONKEY extends MovieClipAsset { } }//package com.gamelion
Section 134
//Resources_NAVY_BLUE (com.gamelion.Resources_NAVY_BLUE) package com.gamelion { import mx.core.*; public class Resources_NAVY_BLUE extends BitmapAsset { } }//package com.gamelion
Section 135
//Resources_ORANGE (com.gamelion.Resources_ORANGE) package com.gamelion { import mx.core.*; public class Resources_ORANGE extends BitmapAsset { } }//package com.gamelion
Section 136
//Resources_PENCIL1 (com.gamelion.Resources_PENCIL1) package com.gamelion { import mx.core.*; public class Resources_PENCIL1 extends BitmapAsset { } }//package com.gamelion
Section 137
//Resources_PLAIN (com.gamelion.Resources_PLAIN) package com.gamelion { import mx.core.*; public class Resources_PLAIN extends BitmapAsset { } }//package com.gamelion
Section 138
//Resources_PLAY_LION_LOGO (com.gamelion.Resources_PLAY_LION_LOGO) package com.gamelion { import mx.core.*; public class Resources_PLAY_LION_LOGO extends BitmapAsset { } }//package com.gamelion
Section 139
//Resources_RABBIT (com.gamelion.Resources_RABBIT) package com.gamelion { import mx.core.*; public class Resources_RABBIT extends MovieClipAsset { } }//package com.gamelion
Section 140
//Resources_RED (com.gamelion.Resources_RED) package com.gamelion { import mx.core.*; public class Resources_RED extends BitmapAsset { } }//package com.gamelion
Section 141
//Resources_RED_BAR (com.gamelion.Resources_RED_BAR) package com.gamelion { import mx.core.*; public class Resources_RED_BAR extends BitmapAsset { } }//package com.gamelion
Section 142
//Resources_RED_CIRCLE (com.gamelion.Resources_RED_CIRCLE) package com.gamelion { import mx.core.*; public class Resources_RED_CIRCLE extends BitmapAsset { } }//package com.gamelion
Section 143
//Resources_ROTATE_SOUND (com.gamelion.Resources_ROTATE_SOUND) package com.gamelion { import mx.core.*; public class Resources_ROTATE_SOUND extends SoundAsset { } }//package com.gamelion
Section 144
//Resources_SNAIL (com.gamelion.Resources_SNAIL) package com.gamelion { import mx.core.*; public class Resources_SNAIL extends MovieClipAsset { } }//package com.gamelion
Section 145
//Resources_TABLE1 (com.gamelion.Resources_TABLE1) package com.gamelion { import mx.core.*; public class Resources_TABLE1 extends BitmapAsset { } }//package com.gamelion
Section 146
//Resources_TABLE2 (com.gamelion.Resources_TABLE2) package com.gamelion { import mx.core.*; public class Resources_TABLE2 extends BitmapAsset { } }//package com.gamelion
Section 147
//Resources_TABLE3 (com.gamelion.Resources_TABLE3) package com.gamelion { import mx.core.*; public class Resources_TABLE3 extends BitmapAsset { } }//package com.gamelion
Section 148
//Resources_TABLE4 (com.gamelion.Resources_TABLE4) package com.gamelion { import mx.core.*; public class Resources_TABLE4 extends BitmapAsset { } }//package com.gamelion
Section 149
//Resources_TABLE5 (com.gamelion.Resources_TABLE5) package com.gamelion { import mx.core.*; public class Resources_TABLE5 extends BitmapAsset { } }//package com.gamelion
Section 150
//Resources_WELL_DONE (com.gamelion.Resources_WELL_DONE) package com.gamelion { import mx.core.*; public class Resources_WELL_DONE extends MovieClipAsset { } }//package com.gamelion
Section 151
//Resources_VERDANA (com.gamelion.Resources_VERDANA) package com.gamelion { import mx.core.*; public class Resources_VERDANA extends FontAsset { } }//package com.gamelion
Section 152
//Resources_WORKSPACE (com.gamelion.Resources_WORKSPACE) package com.gamelion { import mx.core.*; public class Resources_WORKSPACE extends BitmapAsset { } }//package com.gamelion
Section 153
//Resources_YELLOW (com.gamelion.Resources_YELLOW) package com.gamelion { import mx.core.*; public class Resources_YELLOW extends BitmapAsset { } }//package com.gamelion
Section 154
//Resources_YELLOW_BAR (com.gamelion.Resources_YELLOW_BAR) package com.gamelion { import mx.core.*; public class Resources_YELLOW_BAR extends BitmapAsset { } }//package com.gamelion
Section 155
//SmallBrick (com.gamelion.SmallBrick) package com.gamelion { import flash.display.*; import flash.filters.*; public class SmallBrick extends Sprite { private var _blured:Boolean; private var _faces:Array; private var _currentFace:int; private var _efectBitmap:Bitmap; public function SmallBrick(_arg1:Number){ var _local2:Bitmap; super(); _faces = new Array(); _blured = false; switch (_arg1){ case 0: _faces.push(new Resources.BRICK_CLASSIC_BLUE()); _faces.push(new Resources.BRICK_CLASSIC_GREEN()); _faces.push(new Resources.BRICK_CLASSIC_RED()); _faces.push(new Resources.BRICK_CLASSIC_ORANGE()); _faces.push(new Resources.BRICK_CLASSIC_NAVY_BLUE()); _faces.push(new Resources.BRICK_CLASSIC_YELLOW()); _faces.push(new Resources.BRICK_CLASSIC()); _faces.push(new Resources.BRICK_CLASSIC_PINK()); break; case 1: _faces.push(new Resources.BRICK_CIRCLE_BLUE()); _faces.push(new Resources.BRICK_CIRCLE_GREEN()); _faces.push(new Resources.BRICK_CIRCLE_RED()); _faces.push(new Resources.BRICK_CIRCLE_ORANGE()); _faces.push(new Resources.BRICK_CIRCLE_NAVY_BLUE()); _faces.push(new Resources.BRICK_CIRCLE_YELLOW()); _faces.push(new Resources.BRICK_CIRCLE()); _faces.push(new Resources.BRICK_CIRCLE_PINK()); break; case 2: _faces.push(new Resources.BRICK_EMPTY_BLUE()); _faces.push(new Resources.BRICK_EMPTY_GREEN()); _faces.push(new Resources.BRICK_EMPTY_RED()); _faces.push(new Resources.BRICK_EMPTY_ORANGE()); _faces.push(new Resources.BRICK_EMPTY_NAVY_BLUE()); _faces.push(new Resources.BRICK_EMPTY_YELLOW()); _faces.push(new Resources.BRICK_EMPTY()); _faces.push(new Resources.BRICK_EMPTY_PINK()); break; case 3: _faces.push(new Resources.BRICK_RHOMB_BLUE()); _faces.push(new Resources.BRICK_RHOMB_GREEN()); _faces.push(new Resources.BRICK_RHOMB_RED()); _faces.push(new Resources.BRICK_RHOMB_ORANGE()); _faces.push(new Resources.BRICK_RHOMB_NAVY_BLUE()); _faces.push(new Resources.BRICK_RHOMB_YELLOW()); _faces.push(new Resources.BRICK_RHOMB()); _faces.push(new Resources.BRICK_RHOMB_PINK()); break; case 4: _faces.push(new Resources.BRICK_STAR_BLUE()); _faces.push(new Resources.BRICK_STAR_GREEN()); _faces.push(new Resources.BRICK_STAR_RED()); _faces.push(new Resources.BRICK_STAR_ORANGE()); _faces.push(new Resources.BRICK_STAR_NAVY_BLUE()); _faces.push(new Resources.BRICK_STAR_YELLOW()); _faces.push(new Resources.BRICK_STAR()); _faces.push(new Resources.BRICK_STAR_PINK()); break; }; for each (_local2 in _faces) { _local2.y = (22 - _local2.height); addChild(_local2); _local2.visible = false; _local2.smoothing = true; }; _faces[0].visible = true; _currentFace = 0; } public function unblur():void{ if ((_blured = true)){ if (_efectBitmap != null){ removeChild(_efectBitmap); _efectBitmap = null; }; _blured = false; }; } public function set currentFace(_arg1:int):void{ _faces[_currentFace].visible = false; _currentFace = (_arg1 - 1); _faces[_currentFace].visible = true; } public function blur(_arg1:int=0):void{ if (_efectBitmap != null){ removeChild(_efectBitmap); }; _efectBitmap = new Bitmap(_faces[_currentFace].bitmapData, "auto", true); _efectBitmap.filters = [new BlurFilter(0, (10 + (3 * _arg1)), 2)]; _efectBitmap.y = (_faces[_currentFace].y - 10); addChild(_efectBitmap); addChild(_faces[_currentFace]); _blured = true; } } }//package com.gamelion
Section 156
//StartNewGameEvent (com.gamelion.StartNewGameEvent) package com.gamelion { import flash.events.*; public class StartNewGameEvent extends Event { private var _brickPatern:Number; private var _level:Number; private var _table:Number; private var _lines:Number; private var _shadowBlockEnabled:Boolean; public static var START_NEW_GAME:String = "startNewGame"; public function StartNewGameEvent(_arg1:String, _arg2:Number, _arg3:Boolean, _arg4:Number, _arg5:Number, _arg6:Number=0, _arg7:Boolean=false, _arg8:Boolean=false){ super(_arg1, _arg7, _arg8); _brickPatern = _arg2; _shadowBlockEnabled = _arg3; _lines = _arg5; _level = _arg4; _table = _arg6; } public function get level():Number{ return (_level); } override public function toString():String{ return (((((((((("PointEvent:\nBrick patern:" + _brickPatern) + "\nShadow Block:") + _shadowBlockEnabled) + "\nLevel:") + _level) + "\nDifficulty:") + _lines) + "\nTable:") + _table)); } public function get lines():Number{ return (_lines); } public function get shadowBlockEnabled():Boolean{ return (_shadowBlockEnabled); } public function get table():Number{ return (_table); } override public function clone():Event{ return (new StartNewGameEvent(type, _brickPatern, _shadowBlockEnabled, _level, _lines, _table, bubbles, cancelable)); } public function get brickPatern():Number{ return (_brickPatern); } } }//package com.gamelion
Section 157
//TweenFilterLite (gs.TweenFilterLite) package gs { import flash.filters.*; public class TweenFilterLite extends TweenLite { protected var _matrix:Array; protected var _hf:Boolean;// = false protected var _cmf:ColorMatrixFilter; protected var _filters:Array; protected var _endMatrix:Array; protected var _clrsa:Array; public static var removeTween:Function = TweenLite.removeTween; public static var defaultEase:Function = TweenLite.defaultEase; private static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]; private static var _lumB:Number = 0.072169; public static var version:Number = 8.04; public static var delayedCall:Function = TweenLite.delayedCall; public static var killTweensOf:Function = TweenLite.killTweensOf; private static var _lumG:Number = 0.71516; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; private static var _lumR:Number = 0.212671; public function TweenFilterLite(_arg1:Object, _arg2:Number, _arg3:Object){ _filters = []; super(_arg1, _arg2, _arg3); if (TweenLite.version < 8.02){ trace("TweenFilterLite error! Please update your TweenLite class or try deleting your ASO files. TweenFilterLite requires a more recent version. Download updates at http://www.TweenLite.com."); }; if (_arg3.type != undefined){ trace((("TweenFilterLite error: " + _arg1) + " is using deprecated syntax. Please update to the new syntax. See http://www.TweenFilterLite.com for details.")); }; } override public function killVars(_arg1:Object):void{ if (TweenLite.overwriteManager.enabled){ TweenLite.overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, _filters); }; } override public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{ var _local3:Object; var _local4:int; var _local5:Object; var _local6:Object; var _local7:Object; if (((!(_arg1)) && (TweenLite.overwriteManager.enabled))){ _local3 = this.vars; if (_local3.isTV == true){ _local3 = _local3.exposedProps; }; TweenLite.overwriteManager.manageOverwrites(_local3, _all[this.target]); }; _clrsa = []; _filters = []; _matrix = _idMatrix.slice(); _arg2 = (_arg2 + " blurFilter glowFilter colorMatrixFilter dropShadowFilter bevelFilter "); if (_isDisplayObject){ if (this.vars.blurFilter != null){ _local5 = this.vars.blurFilter; addFilter("blurFilter", _local5, BlurFilter, ["blurX", "blurY", "quality"], new BlurFilter(0, 0, ((_local5.quality) || (2)))); }; if (this.vars.glowFilter != null){ _local5 = this.vars.glowFilter; addFilter("glowFilter", _local5, GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength", "inner", "knockout"], new GlowFilter(0xFFFFFF, 0, 0, 0, ((_local5.strength) || (1)), ((_local5.quality) || (2)), _local5.inner, _local5.knockout)); }; if (this.vars.colorMatrixFilter != null){ _local5 = this.vars.colorMatrixFilter; _local6 = addFilter("colorMatrixFilter", _local5, ColorMatrixFilter, [], new ColorMatrixFilter(_matrix)); _cmf = _local6.filter; _matrix = ColorMatrixFilter(_cmf).matrix; if (((!((_local5.matrix == null))) && ((_local5.matrix is Array)))){ _endMatrix = _local5.matrix; } else { if (_local5.relative == true){ _endMatrix = _matrix.slice(); } else { _endMatrix = _idMatrix.slice(); }; _endMatrix = setBrightness(_endMatrix, _local5.brightness); _endMatrix = setContrast(_endMatrix, _local5.contrast); _endMatrix = setHue(_endMatrix, _local5.hue); _endMatrix = setSaturation(_endMatrix, _local5.saturation); _endMatrix = setThreshold(_endMatrix, _local5.threshold); if (!isNaN(_local5.colorize)){ _endMatrix = colorize(_endMatrix, _local5.colorize, _local5.amount); } else { if (!isNaN(_local5.color)){ _endMatrix = colorize(_endMatrix, _local5.color, _local5.amount); }; }; }; _local4 = 0; while (_local4 < _endMatrix.length) { if (((!((_matrix[_local4] == _endMatrix[_local4]))) && (!((_matrix[_local4] == undefined))))){ this.tweens[this.tweens.length] = {o:_matrix, p:_local4.toString(), s:_matrix[_local4], c:(_endMatrix[_local4] - _matrix[_local4]), name:"colorMatrixFilter"}; }; _local4++; }; }; if (this.vars.dropShadowFilter != null){ _local5 = this.vars.dropShadowFilter; addFilter("dropShadowFilter", _local5, DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength", "inner", "knockout", "hideObject"], new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_local5.quality) || (2)), _local5.inner, _local5.knockout, _local5.hideObject)); }; if (this.vars.bevelFilter != null){ _local5 = this.vars.bevelFilter; addFilter("bevelFilter", _local5, BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_local5.quality) || (2)))); }; if (this.vars.runBackwards == true){ _local4 = (_clrsa.length - 1); while (_local4 > -1) { _local7 = _clrsa[_local4]; _clrsa[_local4].sr = (_local7.sr + _local7.cr); _local7.cr = (_local7.cr * -1); _local7.sg = (_local7.sg + _local7.cg); _local7.cg = (_local7.cg * -1); _local7.sb = (_local7.sb + _local7.cb); _local7.cb = (_local7.cb * -1); _local7.f[_local7.p] = (((_local7.sr << 16) | (_local7.sg << 8)) | _local7.sb); _local4--; }; }; super.initTweenVals(true, _arg2); } else { super.initTweenVals(_arg1, _arg2); }; } override public function render(_arg1:uint):void{ var _local3:Number; var _local4:Object; var _local5:int; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:int; var _local10:Array; var _local2:Number = ((_arg1 - this.startTime) / 1000); if (_local2 >= this.duration){ _local2 = this.duration; }; _local3 = this.vars.ease(_local2, 0, 1, this.duration); _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local4 = this.tweens[_local5]; _local4.o[_local4.p] = (_local4.s + (_local3 * _local4.c)); _local5--; }; if (_hf){ _local5 = (_clrsa.length - 1); while (_local5 > -1) { _local4 = _clrsa[_local5]; _local6 = (_local4.sr + (_local3 * _local4.cr)); _local7 = (_local4.sg + (_local3 * _local4.cg)); _local8 = (_local4.sb + (_local3 * _local4.cb)); _local4.f[_local4.p] = (((_local6 << 16) | (_local7 << 8)) | _local8); _local5--; }; if (_cmf != null){ ColorMatrixFilter(_cmf).matrix = _matrix; }; _local10 = this.target.filters; _local5 = 0; while (_local5 < _filters.length) { _local9 = (_local10.length - 1); while (_local9 > -1) { if ((_local10[_local9] is _filters[_local5].type)){ _local10.splice(_local9, 1, _filters[_local5].filter); break; }; _local9--; }; _local5++; }; this.target.filters = _local10; }; if (_hst){ _local5 = (_subTweens.length - 1); while (_local5 > -1) { _subTweens[_local5].proxy(_subTweens[_local5]); _local5--; }; }; if (_hasUpdate){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (_local2 == this.duration){ complete(true); }; } private function addFilter(_arg1:String, _arg2:Object, _arg3:Class, _arg4:Array, _arg5:BitmapFilter):Object{ var _local8:int; var _local9:String; var _local10:Number; var _local11:Object; var _local12:Object; var _local6:Object = {type:_arg3, name:_arg1}; var _local7:Array = this.target.filters; _local8 = 0; while (_local8 < _local7.length) { if ((_local7[_local8] is _arg3)){ _local6.filter = _local7[_local8]; break; }; _local8++; }; if (_local6.filter == undefined){ _local6.filter = _arg5; _local7[_local7.length] = _local6.filter; this.target.filters = _local7; }; _local8 = 0; while (_local8 < _arg4.length) { _local9 = _arg4[_local8]; if (_arg2[_local9] != undefined){ if ((((((_local9 == "color")) || ((_local9 == "highlightColor")))) || ((_local9 == "shadowColor")))){ _local11 = HEXtoRGB(_local6.filter[_local9]); _local12 = HEXtoRGB(_arg2[_local9]); _clrsa[_clrsa.length] = {f:_local6.filter, p:_local9, sr:_local11.rb, cr:(_local12.rb - _local11.rb), sg:_local11.gb, cg:(_local12.gb - _local11.gb), sb:_local11.bb, cb:(_local12.bb - _local11.bb)}; } else { if ((((((((_local9 == "quality")) || ((_local9 == "inner")))) || ((_local9 == "knockout")))) || ((_local9 == "hideObject")))){ _local6.filter[_local9] = _arg2[_local9]; } else { if (typeof(_arg2[_local9]) == "number"){ _local10 = (_arg2[_local9] - _local6.filter[_local9]); } else { _local10 = Number(_arg2[_local9]); }; this.tweens[this.tweens.length] = {o:_local6.filter, p:_local9, s:_local6.filter[_local9], c:_local10, name:_arg1}; }; }; }; _local8++; }; _filters[_filters.length] = _local6; _hf = true; return (_local6); } public static function setContrast(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = (_arg2 + 0.01); var _local3:Array = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0]; return (applyMatrix(_local3, _arg1)); } public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{ if (isNaN(_arg2)){ return (_arg1); }; if (isNaN(_arg3)){ _arg3 = 1; }; var _local4:Number = (((_arg2 >> 16) & 0xFF) / 0xFF); var _local5:Number = (((_arg2 >> 8) & 0xFF) / 0xFF); var _local6:Number = ((_arg2 & 0xFF) / 0xFF); var _local7:Number = (1 - _arg3); var _local8:Array = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0]; return (applyMatrix(_local8, _arg1)); } public static function setBrightness(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = ((_arg2 * 100) - 100); return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1)); } public static function setSaturation(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; var _local3:Number = (1 - _arg2); var _local4:Number = (_local3 * _lumR); var _local5:Number = (_local3 * _lumG); var _local6:Number = (_local3 * _lumB); var _local7:Array = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0]; return (applyMatrix(_local7, _arg1)); } public static function applyMatrix(_arg1:Array, _arg2:Array):Array{ var _local6:int; var _local7:int; if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){ return (_arg2); }; var _local3:Array = []; var _local4:int; var _local5:int; _local6 = 0; while (_local6 < 4) { _local7 = 0; while (_local7 < 5) { if (_local7 == 4){ _local5 = _arg1[(_local4 + 4)]; } else { _local5 = 0; }; _local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5); _local7++; }; _local4 = (_local4 + 5); _local6++; }; return (_local3); } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{ _arg3.runBackwards = true; return (new TweenFilterLite(_arg1, _arg2, _arg3)); } public static function HEXtoRGB(_arg1:Number):Object{ return ({rb:(_arg1 >> 16), gb:((_arg1 >> 8) & 0xFF), bb:(_arg1 & 0xFF)}); } public static function setThreshold(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; var _local3:Array = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0]; return (applyMatrix(_local3, _arg1)); } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{ return (new TweenFilterLite(_arg1, _arg2, _arg3)); } public static function setHue(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = (_arg2 * (Math.PI / 180)); var _local3:Number = Math.cos(_arg2); var _local4:Number = Math.sin(_arg2); var _local5:Array = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]; return (applyMatrix(_local5, _arg1)); } } }//package gs
Section 158
//TweenLite (gs.TweenLite) package gs { import flash.display.*; import flash.geom.*; import flash.events.*; import flash.utils.*; public class TweenLite { public var delay:Number; protected var _hasUpdate:Boolean; protected var _subTweens:Array; protected var _initted:Boolean; public var startTime:int; public var target:Object; public var duration:Number; protected var _hst:Boolean; protected var _isDisplayObject:Boolean; protected var _active:Boolean; public var tweens:Array; public var vars:Object; public var initTime:int; private static var _timer:Timer = new Timer(2000); private static var _classInitted:Boolean; public static var defaultEase:Function = TweenLite.easeOut; public static var version:Number = 8.02; protected static var _all:Dictionary = new Dictionary(); private static var _sprite:Sprite = new Sprite(); protected static var _curTime:uint; public static var overwriteManager:Object; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; private static var _listening:Boolean; public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){ var _local5:*; super(); if (_arg1 == null){ return; }; if (!_classInitted){ _curTime = getTimer(); _sprite.addEventListener(Event.ENTER_FRAME, executeAll); if (overwriteManager == null){ overwriteManager = {mode:1, enabled:false}; }; _classInitted = true; }; var _local4:int = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite); if ((((_all[_arg1] == undefined)) || (((!((_arg1 == null))) && ((_local4 == 1)))))){ delete _all[_arg1]; _all[_arg1] = new Dictionary(true); }; _all[_arg1][this] = this; this.vars = _arg3; this.duration = ((_arg2) || (0.001)); this.delay = ((_arg3.delay) || (0)); _active = (((_arg2 == 0)) && ((this.delay == 0))); this.target = _arg1; _isDisplayObject = (_arg1 is DisplayObject); if (!(this.vars.ease is Function)){ this.vars.ease = defaultEase; }; if (this.vars.easeParams != null){ this.vars.proxiedEase = this.vars.ease; this.vars.ease = easeProxy; }; if (!isNaN(Number(this.vars.autoAlpha))){ this.vars.alpha = Number(this.vars.autoAlpha); this.vars.visible = (this.vars.alpha > 0); }; this.tweens = []; _subTweens = []; _hst = (_initted = false); this.initTime = _curTime; if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (_active))){ initTweenVals(); this.startTime = _curTime; if (_active){ render((this.startTime + 1)); } else { render(this.startTime); }; _local5 = this.vars.visible; if (this.vars.isTV == true){ _local5 = this.vars.exposedProps.visible; }; if (((((!((_local5 == null))) && ((this.vars.runBackwards == true)))) && (_isDisplayObject))){ this.target.visible = Boolean(_local5); }; }; if (((!(_listening)) && (!(_active)))){ _timer.addEventListener("timer", killGarbage); _timer.start(); _listening = true; }; } protected function addSubTween(_arg1:String, _arg2:Function, _arg3:Object, _arg4:Object, _arg5:Object=null):void{ var _local7:String; var _local6:Object = {name:_arg1, proxy:_arg2, target:_arg3, info:_arg5}; _subTweens[_subTweens.length] = _local6; for (_local7 in _arg4) { if (typeof(_arg4[_local7]) == "number"){ this.tweens[this.tweens.length] = {o:_arg3, p:_local7, s:_arg3[_local7], c:(_arg4[_local7] - _arg3[_local7]), sub:_local6, name:_arg1}; } else { this.tweens[this.tweens.length] = {o:_arg3, p:_local7, s:_arg3[_local7], c:Number(_arg4[_local7]), sub:_local6, name:_arg1}; }; }; _hst = true; } public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{ var _local3:String; var _local4:int; var _local6:Array; var _local7:ColorTransform; var _local8:ColorTransform; var _local9:Object; var _local5:Object = this.vars; if (_local5.isTV == true){ _local5 = _local5.exposedProps; }; if (((!(_arg1)) && (overwriteManager.enabled))){ overwriteManager.manageOverwrites(_local5, _all[this.target]); }; if ((this.target is Array)){ _local6 = ((this.vars.endArray) || ([])); _local4 = 0; while (_local4 < _local6.length) { if (((!((this.target[_local4] == _local6[_local4]))) && (!((this.target[_local4] == undefined))))){ this.tweens[this.tweens.length] = {o:this.target, p:_local4.toString(), s:this.target[_local4], c:(_local6[_local4] - this.target[_local4]), name:_local4.toString()}; }; _local4++; }; } else { if (((((!((typeof(_local5.tint) == "undefined"))) || ((this.vars.removeTint == true)))) && (_isDisplayObject))){ _local7 = this.target.transform.colorTransform; _local8 = new ColorTransform(); if (_local5.alpha != undefined){ _local8.alphaMultiplier = _local5.alpha; delete _local5.alpha; } else { _local8.alphaMultiplier = this.target.alpha; }; if (((!((this.vars.removeTint == true))) && (((((!((_local5.tint == null))) && (!((_local5.tint == ""))))) || ((_local5.tint == 0)))))){ _local8.color = _local5.tint; }; addSubTween("tint", tintProxy, {progress:0}, {progress:1}, {target:this.target, color:_local7, endColor:_local8}); }; if (((!((_local5.frame == null))) && (_isDisplayObject))){ addSubTween("frame", frameProxy, {frame:this.target.currentFrame}, {frame:_local5.frame}, {target:this.target}); }; if (((!(isNaN(this.vars.volume))) && (this.target.hasOwnProperty("soundTransform")))){ addSubTween("volume", volumeProxy, this.target.soundTransform, {volume:this.vars.volume}, {target:this.target}); }; for (_local3 in _local5) { if ((((((((((((((((((((((((((((((((((((_local3 == "ease")) || ((_local3 == "delay")))) || ((_local3 == "overwrite")))) || ((_local3 == "onComplete")))) || ((_local3 == "onCompleteParams")))) || ((_local3 == "runBackwards")))) || ((_local3 == "visible")))) || ((_local3 == "autoOverwrite")))) || ((_local3 == "persist")))) || ((_local3 == "onUpdate")))) || ((_local3 == "onUpdateParams")))) || ((_local3 == "autoAlpha")))) || ((_local3 == "onStart")))) || ((_local3 == "onStartParams")))) || ((_local3 == "renderOnStart")))) || ((_local3 == "proxiedEase")))) || ((_local3 == "easeParams")))) || (((_arg1) && (!((_arg2.indexOf(((" " + _local3) + " ")) == -1))))))){ } else { if (((!(((_isDisplayObject) && ((((((_local3 == "tint")) || ((_local3 == "removeTint")))) || ((_local3 == "frame"))))))) && (!((((_local3 == "volume")) && (this.target.hasOwnProperty("soundTransform"))))))){ if (typeof(_local5[_local3]) == "number"){ this.tweens[this.tweens.length] = {o:this.target, p:_local3, s:this.target[_local3], c:(_local5[_local3] - this.target[_local3]), name:_local3}; } else { this.tweens[this.tweens.length] = {o:this.target, p:_local3, s:this.target[_local3], c:Number(_local5[_local3]), name:_local3}; }; }; }; }; }; if (this.vars.runBackwards == true){ _local4 = (this.tweens.length - 1); while (_local4 > -1) { _local9 = this.tweens[_local4]; this.tweens[_local4].s = (_local9.s + _local9.c); _local9.c = (_local9.c * -1); _local4--; }; }; if ((((_local5.visible == true)) && (_isDisplayObject))){ this.target.visible = true; }; if (this.vars.onUpdate != null){ _hasUpdate = true; }; _initted = true; } public function get active():Boolean{ if (_active){ return (true); }; if (((_curTime - this.initTime) / 1000) > this.delay){ _active = true; this.startTime = (this.initTime + (this.delay * 1000)); if (!_initted){ initTweenVals(); } else { if (((!((this.vars.visible == undefined))) && (_isDisplayObject))){ this.target.visible = true; }; }; if (this.vars.onStart != null){ this.vars.onStart.apply(null, this.vars.onStartParams); }; if (this.duration == 0.001){ this.startTime = (this.startTime - 1); }; return (true); //unresolved jump }; return (false); } public function render(_arg1:uint):void{ var _local3:Number; var _local4:Object; var _local5:int; var _local2:Number = ((_arg1 - this.startTime) / 1000); if (_local2 >= this.duration){ _local2 = this.duration; _local3 = 1; } else { _local3 = this.vars.ease(_local2, 0, 1, this.duration); }; _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local4 = this.tweens[_local5]; _local4.o[_local4.p] = (_local4.s + (_local3 * _local4.c)); _local5--; }; if (_hst){ _local5 = (_subTweens.length - 1); while (_local5 > -1) { _subTweens[_local5].proxy(_subTweens[_local5]); _local5--; }; }; if (_hasUpdate){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (_local2 == this.duration){ complete(true); }; } protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams))); } public function killVars(_arg1:Object):void{ if (overwriteManager.enabled){ overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, []); }; } public function complete(_arg1:Boolean=false):void{ if (!_arg1){ if (!_initted){ initTweenVals(); }; this.startTime = (_curTime - (this.duration * 1000)); render(_curTime); return; }; if (((!((this.vars.visible == undefined))) && (_isDisplayObject))){ if (((!(isNaN(this.vars.autoAlpha))) && ((this.target.alpha == 0)))){ this.target.visible = false; } else { if (this.vars.runBackwards != true){ this.target.visible = this.vars.visible; }; }; }; if (this.vars.persist != true){ removeTween(this); }; if (this.vars.onComplete != null){ this.vars.onComplete.apply(null, this.vars.onCompleteParams); }; } public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2)); } public static function frameProxy(_arg1:Object):void{ _arg1.info.target.gotoAndStop(Math.round(_arg1.target.frame)); } public static function removeTween(_arg1:TweenLite=null):void{ if (((!((_arg1 == null))) && (!((_all[_arg1.target] == undefined))))){ _all[_arg1.target][_arg1] = null; delete _all[_arg1.target][_arg1]; }; } public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{ var _local3:Object; var _local4:*; if (((!((_arg1 == null))) && (!((_all[_arg1] == undefined))))){ if (_arg2){ _local3 = _all[_arg1]; for (_local4 in _local3) { _local3[_local4].complete(false); }; }; delete _all[_arg1]; }; } public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{ return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0})); } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ _arg3.runBackwards = true; return (new TweenLite(_arg1, _arg2, _arg3)); } public static function executeAll(_arg1:Event=null):void{ var _local3:Dictionary; var _local4:Object; var _local5:Object; var _local2:uint = (_curTime = getTimer()); if (_listening){ _local3 = _all; for each (_local4 in _local3) { for (_local5 in _local4) { if (((!((_local4[_local5] == undefined))) && (_local4[_local5].active))){ _local4[_local5].render(_local2); }; }; }; }; } public static function volumeProxy(_arg1:Object):void{ _arg1.info.target.soundTransform = _arg1.target; } public static function killGarbage(_arg1:TimerEvent):void{ var _local3:Boolean; var _local4:Object; var _local5:Object; var _local6:Object; var _local2:uint; for (_local4 in _all) { _local3 = false; for (_local5 in _all[_local4]) { _local3 = true; break; }; if (!_local3){ delete _all[_local4]; } else { _local2++; }; }; if (_local2 == 0){ _timer.removeEventListener("timer", killGarbage); _timer.stop(); _listening = false; }; } public static function tintProxy(_arg1:Object):void{ var _local2:Number = _arg1.target.progress; var _local3:Number = (1 - _local2); var _local4:Object = _arg1.info.color; var _local5:Object = _arg1.info.endColor; _arg1.info.target.transform.colorTransform = new ColorTransform(((_local4.redMultiplier * _local3) + (_local5.redMultiplier * _local2)), ((_local4.greenMultiplier * _local3) + (_local5.greenMultiplier * _local2)), ((_local4.blueMultiplier * _local3) + (_local5.blueMultiplier * _local2)), ((_local4.alphaMultiplier * _local3) + (_local5.alphaMultiplier * _local2)), ((_local4.redOffset * _local3) + (_local5.redOffset * _local2)), ((_local4.greenOffset * _local3) + (_local5.greenOffset * _local2)), ((_local4.blueOffset * _local3) + (_local5.blueOffset * _local2)), ((_local4.alphaOffset * _local3) + (_local5.alphaOffset * _local2))); } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ return (new TweenLite(_arg1, _arg2, _arg3)); } } }//package gs
Section 159
//IAutomationObject (mx.automation.IAutomationObject) package mx.automation { import flash.events.*; public interface IAutomationObject { function createAutomationIDPart(_arg1:IAutomationObject):Object; function get automationName():String; function get showInAutomationHierarchy():Boolean; function set automationName(_arg1:String):void; function getAutomationChildAt(_arg1:int):IAutomationObject; function get automationDelegate():Object; function get automationTabularData():Object; function resolveAutomationIDPart(_arg1:Object):Array; function replayAutomatableEvent(_arg1:Event):Boolean; function set automationDelegate(_arg1:Object):void; function get automationValue():Array; function get numAutomationChildren():int; function set showInAutomationHierarchy(_arg1:Boolean):void; } }//package mx.automation
Section 160
//Binding (mx.binding.Binding) package mx.binding { import mx.collections.errors.*; public class Binding { mx_internal var destFunc:Function; mx_internal var srcFunc:Function; mx_internal var destString:String; mx_internal var document:Object; private var hasHadValue:Boolean; mx_internal var isExecuting:Boolean; mx_internal var isHandlingEvent:Boolean; public var twoWayCounterpart:Binding; mx_internal var isEnabled:Boolean; public var uiComponentWatcher:int; private var lastValue:Object; private var wrappedFunctionSuccessful:Boolean; mx_internal static const VERSION:String = "3.0.0.0"; public function Binding(_arg1:Object, _arg2:Function, _arg3:Function, _arg4:String){ this.document = _arg1; this.srcFunc = _arg2; this.destFunc = _arg3; this.destString = _arg4; isEnabled = true; isExecuting = false; isHandlingEvent = false; hasHadValue = false; uiComponentWatcher = -1; BindingManager.addBinding(_arg1, _arg4, this); } protected function wrapFunctionCall(_arg1:Object, _arg2:Function, _arg3:Object=null, ... _args):Object{ var result:Object; var thisArg = _arg1; var wrappedFunction = _arg2; var object = _arg3; var args = _args; wrappedFunctionSuccessful = false; try { result = wrappedFunction.apply(thisArg, args); wrappedFunctionSuccessful = true; return (result); } catch(itemPendingError:ItemPendingError) { itemPendingError.addResponder(new EvalBindingResponder(this, object)); if (BindingManager.debugDestinationStrings[destString]){ trace(((("Binding: destString = " + destString) + ", error = ") + itemPendingError)); }; } catch(rangeError:RangeError) { if (BindingManager.debugDestinationStrings[destString]){ trace(((("Binding: destString = " + destString) + ", error = ") + rangeError)); }; } catch(error:Error) { if (((((((((!((error.errorID == 1006))) && (!((error.errorID == 1009))))) && (!((error.errorID == 1010))))) && (!((error.errorID == 1055))))) && (!((error.errorID == 1069))))){ throw (error); } else { if (BindingManager.debugDestinationStrings[destString]){ trace(((("Binding: destString = " + destString) + ", error = ") + error)); }; }; }; return (null); } private function nodeSeqEqual(_arg1:XMLList, _arg2:XMLList):Boolean{ var _local4:uint; var _local3:uint = _arg1.length(); if (_local3 == _arg2.length()){ _local4 = 0; while ((((_local4 < _local3)) && ((_arg1[_local4] === _arg2[_local4])))) { _local4++; }; return ((_local4 == _local3)); //unresolved jump }; return (false); } public function watcherFired(_arg1:Boolean, _arg2:int):void{ var commitEvent = _arg1; var cloneIndex = _arg2; if (isHandlingEvent){ return; }; try { isHandlingEvent = true; execute(cloneIndex); } finally { isHandlingEvent = false; }; } public function execute(_arg1:Object=null):void{ var o = _arg1; if (!isEnabled){ return; }; if (((isExecuting) || (((twoWayCounterpart) && (twoWayCounterpart.isExecuting))))){ hasHadValue = true; return; }; try { isExecuting = true; wrapFunctionCall(this, innerExecute, o); } finally { isExecuting = false; }; } private function innerExecute():void{ var _local1:Object = wrapFunctionCall(document, srcFunc); if (BindingManager.debugDestinationStrings[destString]){ trace(((("Binding: destString = " + destString) + ", srcFunc result = ") + _local1)); }; if (((hasHadValue) || (wrappedFunctionSuccessful))){ if (((!((((((lastValue is XML)) && (lastValue.hasComplexContent()))) && ((lastValue === _local1))))) && (!((((((((lastValue is XMLList)) && (lastValue.hasComplexContent()))) && ((_local1 is XMLList)))) && (nodeSeqEqual((lastValue as XMLList), (_local1 as XMLList)))))))){ destFunc.call(document, _local1); lastValue = _local1; hasHadValue = true; }; }; } } }//package mx.binding
Section 161
//BindingManager (mx.binding.BindingManager) package mx.binding { public class BindingManager { mx_internal static const VERSION:String = "3.0.0.0"; static var debugDestinationStrings:Object = {}; public static function executeBindings(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:String; if (((!(_arg2)) || ((_arg2 == "")))){ return; }; if (((((((_arg1) && ((((_arg1 is IBindingClient)) || (_arg1.hasOwnProperty("_bindingsByDestination")))))) && (_arg1._bindingsByDestination))) && (_arg1._bindingsBeginWithWord[getFirstWord(_arg2)]))){ for (_local4 in _arg1._bindingsByDestination) { if (_local4.charAt(0) == _arg2.charAt(0)){ if ((((((_local4.indexOf((_arg2 + ".")) == 0)) || ((_local4.indexOf((_arg2 + "[")) == 0)))) || ((_local4 == _arg2)))){ _arg1._bindingsByDestination[_local4].execute(_arg3); }; }; }; }; } public static function addBinding(_arg1:Object, _arg2:String, _arg3:Binding):void{ if (!_arg1._bindingsByDestination){ _arg1._bindingsByDestination = {}; _arg1._bindingsBeginWithWord = {}; }; _arg1._bindingsByDestination[_arg2] = _arg3; _arg1._bindingsBeginWithWord[getFirstWord(_arg2)] = true; } public static function debugBinding(_arg1:String):void{ debugDestinationStrings[_arg1] = true; } private static function getFirstWord(_arg1:String):String{ var _local2:int = _arg1.indexOf("."); var _local3:int = _arg1.indexOf("["); if (_local2 == _local3){ return (_arg1); }; var _local4:int = Math.min(_local2, _local3); if (_local4 == -1){ _local4 = Math.max(_local2, _local3); }; return (_arg1.substr(0, _local4)); } public static function setEnabled(_arg1:Object, _arg2:Boolean):void{ var _local3:Array; var _local4:uint; var _local5:Binding; if ((((_arg1 is IBindingClient)) && (_arg1._bindings))){ _local3 = (_arg1._bindings as Array); _local4 = 0; while (_local4 < _local3.length) { _local5 = _local3[_local4]; _local5.isEnabled = _arg2; _local4++; }; }; } } }//package mx.binding
Section 162
//EvalBindingResponder (mx.binding.EvalBindingResponder) package mx.binding { import mx.rpc.*; public class EvalBindingResponder implements IResponder { private var binding:Binding; private var object:Object; mx_internal static const VERSION:String = "3.0.0.0"; public function EvalBindingResponder(_arg1:Binding, _arg2:Object){ this.binding = _arg1; this.object = _arg2; } public function fault(_arg1:Object):void{ } public function result(_arg1:Object):void{ binding.execute(object); } } }//package mx.binding
Section 163
//IBindingClient (mx.binding.IBindingClient) package mx.binding { public interface IBindingClient { } }//package mx.binding
Section 164
//ItemPendingError (mx.collections.errors.ItemPendingError) package mx.collections.errors { import mx.rpc.*; public class ItemPendingError extends Error { private var _responders:Array; mx_internal static const VERSION:String = "3.0.0.0"; public function ItemPendingError(_arg1:String){ super(_arg1); } public function get responders():Array{ return (_responders); } public function addResponder(_arg1:IResponder):void{ if (!_responders){ _responders = []; }; _responders.push(_arg1); } } }//package mx.collections.errors
Section 165
//IFlexContextMenu (mx.controls.IFlexContextMenu) package mx.controls { import flash.display.*; public interface IFlexContextMenu { function setContextMenu(_arg1:InteractiveObject):void; function unsetContextMenu(_arg1:InteractiveObject):void; } }//package mx.controls
Section 166
//ToolTip (mx.controls.ToolTip) package mx.controls { import flash.display.*; import mx.core.*; import mx.styles.*; import flash.text.*; public class ToolTip extends UIComponent implements IToolTip, IFontContextComponent { private var textChanged:Boolean; private var _text:String; protected var textField:IUITextField; mx_internal var border:IFlexDisplayObject; mx_internal static const VERSION:String = "3.0.0.0"; public static var maxWidth:Number = 300; public function ToolTip(){ mouseEnabled = false; } public function set fontContext(_arg1:IFlexModuleFactory):void{ this.moduleFactory = _arg1; } override public function styleChanged(_arg1:String):void{ super.styleChanged(_arg1); if ((((((_arg1 == "borderStyle")) || ((_arg1 == "styleName")))) || ((_arg1 == null)))){ invalidateDisplayList(); }; } override protected function commitProperties():void{ var _local1:int; var _local2:TextFormat; super.commitProperties(); if (((hasFontContextChanged()) && (!((textField == null))))){ _local1 = getChildIndex(DisplayObject(textField)); removeTextField(); createTextField(_local1); invalidateSize(); textChanged = true; }; if (textChanged){ _local2 = textField.getTextFormat(); _local2.leftMargin = 0; _local2.rightMargin = 0; textField.defaultTextFormat = _local2; textField.text = _text; textChanged = false; }; } mx_internal function getTextField():IUITextField{ return (textField); } override protected function createChildren():void{ var _local1:Class; super.createChildren(); if (!border){ _local1 = getStyle("borderSkin"); border = new (_local1); if ((border is ISimpleStyleClient)){ ISimpleStyleClient(border).styleName = this; }; addChild(DisplayObject(border)); }; createTextField(-1); } override protected function measure():void{ var _local7:Number; super.measure(); var _local1:EdgeMetrics = borderMetrics; var _local2:Number = (_local1.left + getStyle("paddingLeft")); var _local3:Number = (_local1.top + getStyle("paddingTop")); var _local4:Number = (_local1.right + getStyle("paddingRight")); var _local5:Number = (_local1.bottom + getStyle("paddingBottom")); var _local6:Number = (_local2 + _local4); _local7 = (_local3 + _local5); textField.wordWrap = false; if ((textField.textWidth + _local6) > ToolTip.maxWidth){ textField.width = (ToolTip.maxWidth - _local6); textField.wordWrap = true; }; measuredWidth = (textField.width + _local6); measuredHeight = (textField.height + _local7); } public function get fontContext():IFlexModuleFactory{ return (moduleFactory); } public function set text(_arg1:String):void{ _text = _arg1; textChanged = true; invalidateProperties(); invalidateSize(); invalidateDisplayList(); } public function get text():String{ return (_text); } mx_internal function removeTextField():void{ if (textField){ removeChild(DisplayObject(textField)); textField = null; }; } mx_internal function createTextField(_arg1:int):void{ if (!textField){ textField = IUITextField(createInFontContext(UITextField)); textField.autoSize = TextFieldAutoSize.LEFT; textField.mouseEnabled = false; textField.multiline = true; textField.selectable = false; textField.wordWrap = false; textField.styleName = this; if (_arg1 == -1){ addChild(DisplayObject(textField)); } else { addChildAt(DisplayObject(textField), _arg1); }; }; } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ super.updateDisplayList(_arg1, _arg2); var _local3:EdgeMetrics = borderMetrics; var _local4:Number = (_local3.left + getStyle("paddingLeft")); var _local5:Number = (_local3.top + getStyle("paddingTop")); var _local6:Number = (_local3.right + getStyle("paddingRight")); var _local7:Number = (_local3.bottom + getStyle("paddingBottom")); var _local8:Number = (_local4 + _local6); var _local9:Number = (_local5 + _local7); border.setActualSize(_arg1, _arg2); textField.move(_local4, _local5); textField.setActualSize((_arg1 - _local8), (_arg2 - _local9)); } private function get borderMetrics():EdgeMetrics{ if ((border is IRectangularBorder)){ return (IRectangularBorder(border).borderMetrics); }; return (EdgeMetrics.EMPTY); } } }//package mx.controls
Section 167
//ApplicationGlobals (mx.core.ApplicationGlobals) package mx.core { public class ApplicationGlobals { public static var application:Object; } }//package mx.core
Section 168
//BitmapAsset (mx.core.BitmapAsset) package mx.core { import flash.display.*; public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject { mx_internal static const VERSION:String = "3.0.0.0"; public function BitmapAsset(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } public function get measuredWidth():Number{ if (bitmapData){ return (bitmapData.width); }; return (0); } public function get measuredHeight():Number{ if (bitmapData){ return (bitmapData.height); }; return (0); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } } }//package mx.core
Section 169
//ComponentDescriptor (mx.core.ComponentDescriptor) package mx.core { public class ComponentDescriptor { public var events:Object; public var type:Class; public var document:Object; private var _properties:Object; public var propertiesFactory:Function; public var id:String; mx_internal static const VERSION:String = "3.0.0.0"; public function ComponentDescriptor(_arg1:Object){ var _local2:String; super(); for (_local2 in _arg1) { this[_local2] = _arg1[_local2]; }; } public function toString():String{ return (("ComponentDescriptor_" + id)); } public function invalidateProperties():void{ _properties = null; } public function get properties():Object{ var _local1:Array; var _local2:int; var _local3:int; if (_properties){ return (_properties); }; if (propertiesFactory != null){ _properties = propertiesFactory.call(document); }; if (_properties){ _local1 = _properties.childDescriptors; if (_local1){ _local2 = _local1.length; _local3 = 0; while (_local3 < _local2) { _local1[_local3].document = document; _local3++; }; }; } else { _properties = {}; }; return (_properties); } } }//package mx.core
Section 170
//ContainerGlobals (mx.core.ContainerGlobals) package mx.core { import flash.display.*; import mx.managers.*; public class ContainerGlobals { public static var focusedContainer:InteractiveObject; public static function checkFocus(_arg1:InteractiveObject, _arg2:InteractiveObject):void{ var _local6:IFocusManager; var _local7:IButton; var _local3:InteractiveObject = _arg2; var _local4:InteractiveObject = _arg2; var _local5:IUIComponent; if (((!((_arg2 == null))) && ((_arg1 == _arg2)))){ return; }; while (_local4) { if (_local4.parent){ _local3 = _local4.parent; } else { _local3 = null; }; if ((_local4 is IUIComponent)){ _local5 = IUIComponent(_local4); }; _local4 = _local3; if (((((_local4) && ((_local4 is IContainer)))) && (IContainer(_local4).defaultButton))){ break; }; }; if (((!((ContainerGlobals.focusedContainer == _local4))) || ((((ContainerGlobals.focusedContainer == null)) && ((_local4 == null)))))){ if (!_local4){ _local4 = InteractiveObject(_local5); }; if (((_local4) && ((_local4 is IContainer)))){ _local6 = IContainer(_local4).focusManager; if (!_local6){ return; }; _local7 = (IContainer(_local4).defaultButton as IButton); if (_local7){ ContainerGlobals.focusedContainer = InteractiveObject(_local4); _local6.defaultButton = (_local7 as IButton); } else { ContainerGlobals.focusedContainer = InteractiveObject(_local4); _local6.defaultButton = null; }; }; }; } } }//package mx.core
Section 171
//DragSource (mx.core.DragSource) package mx.core { public class DragSource { private var formatHandlers:Object; private var dataHolder:Object; private var _formats:Array; mx_internal static const VERSION:String = "3.0.0.0"; public function DragSource(){ dataHolder = {}; formatHandlers = {}; _formats = []; super(); } public function hasFormat(_arg1:String):Boolean{ var _local2:int = _formats.length; var _local3:int; while (_local3 < _local2) { if (_formats[_local3] == _arg1){ return (true); }; _local3++; }; return (false); } public function addData(_arg1:Object, _arg2:String):void{ _formats.push(_arg2); dataHolder[_arg2] = _arg1; } public function dataForFormat(_arg1:String):Object{ var _local2:Object = dataHolder[_arg1]; if (_local2){ return (_local2); }; if (formatHandlers[_arg1]){ return (formatHandlers[_arg1]()); }; return (null); } public function addHandler(_arg1:Function, _arg2:String):void{ _formats.push(_arg2); formatHandlers[_arg2] = _arg1; } public function get formats():Array{ return (_formats); } } }//package mx.core
Section 172
//EdgeMetrics (mx.core.EdgeMetrics) package mx.core { public class EdgeMetrics { public var top:Number; public var left:Number; public var bottom:Number; public var right:Number; mx_internal static const VERSION:String = "3.0.0.0"; public static const EMPTY:EdgeMetrics = new EdgeMetrics(0, 0, 0, 0); ; public function EdgeMetrics(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){ this.left = _arg1; this.top = _arg2; this.right = _arg3; this.bottom = _arg4; } public function clone():EdgeMetrics{ return (new EdgeMetrics(left, top, right, bottom)); } } }//package mx.core
Section 173
//EmbeddedFont (mx.core.EmbeddedFont) package mx.core { public class EmbeddedFont { private var _fontName:String; private var _fontStyle:String; mx_internal static const VERSION:String = "3.0.0.0"; public function EmbeddedFont(_arg1:String, _arg2:Boolean, _arg3:Boolean){ _fontName = _arg1; _fontStyle = EmbeddedFontRegistry.getFontStyle(_arg2, _arg3); } public function get fontStyle():String{ return (_fontStyle); } public function get fontName():String{ return (_fontName); } } }//package mx.core
Section 174
//EmbeddedFontRegistry (mx.core.EmbeddedFontRegistry) package mx.core { import flash.text.*; import flash.utils.*; public class EmbeddedFontRegistry implements IEmbeddedFontRegistry { mx_internal static const VERSION:String = "3.0.0.0"; private static var fonts:Object = {}; private static var instance:IEmbeddedFontRegistry; public function getAssociatedModuleFactory(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):IFlexModuleFactory{ var _local4:int; var _local5:Object; var _local3:Dictionary = fonts[createFontKey(_arg1)]; if (_local3){ _local4 = _local3[_arg2]; if (_local4){ return (_arg2); }; for (_local5 in _local3) { return ((_local5 as IFlexModuleFactory)); }; }; return (null); } public function deregisterFont(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):void{ var _local5:int; var _local6:Object; var _local3:String = createFontKey(_arg1); var _local4:Dictionary = fonts[_local3]; if (_local4 != null){ delete _local4[_arg2]; _local5 = 0; for (_local6 in _local4) { _local5++; }; if (_local5 == 0){ delete fonts[_local3]; }; }; } public function getFonts():Array{ var _local2:String; var _local1:Array = []; for (_local2 in fonts) { _local1.push(createEmbeddedFont(_local2)); }; return (_local1); } public function registerFont(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):void{ var _local3:String = createFontKey(_arg1); var _local4:Dictionary = fonts[_local3]; if (!_local4){ _local4 = new Dictionary(true); fonts[_local3] = _local4; }; _local4[_arg2] = 1; } public static function registerFonts(_arg1:Object, _arg2:IFlexModuleFactory):void{ var _local4:Object; var _local5:Object; var _local6:String; var _local7:Boolean; var _local8:Boolean; var _local3:IEmbeddedFontRegistry = IEmbeddedFontRegistry(Singleton.getInstance("mx.core::IEmbeddedFontRegistry")); for (_local4 in _arg1) { _local5 = _arg1[_local4]; for (_local6 in _local5) { if (_local5[_local6] == false){ } else { if (_local6 == "regular"){ _local7 = false; _local8 = false; } else { if (_local6 == "boldItalic"){ _local7 = true; _local8 = true; } else { if (_local6 == "bold"){ _local7 = true; _local8 = false; } else { if (_local6 == "italic"){ _local7 = false; _local8 = true; }; }; }; }; _local3.registerFont(new EmbeddedFont(String(_local4), _local7, _local8), _arg2); }; }; }; } public static function getInstance():IEmbeddedFontRegistry{ if (!instance){ instance = new (EmbeddedFontRegistry); }; return (instance); } public static function getFontStyle(_arg1:Boolean, _arg2:Boolean):String{ var _local3:String = FontStyle.REGULAR; if (((_arg1) && (_arg2))){ _local3 = FontStyle.BOLD_ITALIC; } else { if (_arg1){ _local3 = FontStyle.BOLD; } else { if (_arg2){ _local3 = FontStyle.ITALIC; }; }; }; return (_local3); } private static function createFontKey(_arg1:EmbeddedFont):String{ return ((_arg1.fontName + _arg1.fontStyle)); } private static function createEmbeddedFont(_arg1:String):EmbeddedFont{ var _local2:String; var _local3:Boolean; var _local4:Boolean; var _local5:int = endsWith(_arg1, FontStyle.REGULAR); if (_local5 > 0){ _local2 = _arg1.substring(0, _local5); return (new EmbeddedFont(_local2, false, false)); }; _local5 = endsWith(_arg1, FontStyle.BOLD); if (_local5 > 0){ _local2 = _arg1.substring(0, _local5); return (new EmbeddedFont(_local2, true, false)); }; _local5 = endsWith(_arg1, FontStyle.BOLD_ITALIC); if (_local5 > 0){ _local2 = _arg1.substring(0, _local5); return (new EmbeddedFont(_local2, true, true)); }; _local5 = endsWith(_arg1, FontStyle.ITALIC); if (_local5 > 0){ _local2 = _arg1.substring(0, _local5); return (new EmbeddedFont(_local2, false, true)); }; return (new EmbeddedFont("", false, false)); } private static function endsWith(_arg1:String, _arg2:String):int{ var _local3:int = _arg1.lastIndexOf(_arg2); if ((((_local3 > 0)) && (((_local3 + _arg2.length) == _arg1.length)))){ return (_local3); }; return (-1); } } }//package mx.core
Section 175
//EventPriority (mx.core.EventPriority) package mx.core { public final class EventPriority { public static const DEFAULT:int = 0; public static const BINDING:int = 100; public static const DEFAULT_HANDLER:int = -50; public static const EFFECT:int = -100; public static const CURSOR_MANAGEMENT:int = 200; mx_internal static const VERSION:String = "3.0.0.0"; } }//package mx.core
Section 176
//FlexBitmap (mx.core.FlexBitmap) package mx.core { import flash.display.*; import mx.utils.*; public class FlexBitmap extends Bitmap { mx_internal static const VERSION:String = "3.0.0.0"; public function FlexBitmap(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){ var bitmapData = _arg1; var pixelSnapping = _arg2; var smoothing = _arg3; super(bitmapData, pixelSnapping, smoothing); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 177
//FlexLoader (mx.core.FlexLoader) package mx.core { import flash.display.*; import mx.utils.*; public class FlexLoader extends Loader { mx_internal static const VERSION:String = "3.0.0.0"; public function FlexLoader(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 178
//FlexMovieClip (mx.core.FlexMovieClip) package mx.core { import flash.display.*; import mx.utils.*; public class FlexMovieClip extends MovieClip { mx_internal static const VERSION:String = "3.0.0.0"; public function FlexMovieClip(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 179
//FlexShape (mx.core.FlexShape) package mx.core { import flash.display.*; import mx.utils.*; public class FlexShape extends Shape { mx_internal static const VERSION:String = "3.0.0.0"; public function FlexShape(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 180
//FlexSprite (mx.core.FlexSprite) package mx.core { import flash.display.*; import mx.utils.*; public class FlexSprite extends Sprite { mx_internal static const VERSION:String = "3.0.0.0"; public function FlexSprite(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 181
//FlexTextField (mx.core.FlexTextField) package mx.core { import flash.text.*; import mx.utils.*; public class FlexTextField extends TextField { mx_internal static const VERSION:String = "3.0.0.0"; public function FlexTextField(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 182
//FlexVersion (mx.core.FlexVersion) package mx.core { import mx.resources.*; public class FlexVersion { public static const VERSION_2_0_1:uint = 33554433; public static const CURRENT_VERSION:uint = 50331648; public static const VERSION_3_0:uint = 50331648; public static const VERSION_2_0:uint = 33554432; public static const VERSION_ALREADY_READ:String = "versionAlreadyRead"; public static const VERSION_ALREADY_SET:String = "versionAlreadySet"; mx_internal static const VERSION:String = "3.0.0.0"; private static var compatibilityVersionChanged:Boolean = false; private static var _compatibilityErrorFunction:Function; private static var _compatibilityVersion:uint = 50331648; private static var compatibilityVersionRead:Boolean = false; mx_internal static function changeCompatibilityVersionString(_arg1:String):void{ var _local2:Array = _arg1.split("."); var _local3:uint = parseInt(_local2[0]); var _local4:uint = parseInt(_local2[1]); var _local5:uint = parseInt(_local2[2]); _compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5); } public static function set compatibilityVersion(_arg1:uint):void{ var _local2:String; if (_arg1 == _compatibilityVersion){ return; }; if (compatibilityVersionChanged){ if (compatibilityErrorFunction == null){ _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_SET); throw (new Error(_local2)); }; compatibilityErrorFunction(_arg1, VERSION_ALREADY_SET); }; if (compatibilityVersionRead){ if (compatibilityErrorFunction == null){ _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_READ); throw (new Error(_local2)); }; compatibilityErrorFunction(_arg1, VERSION_ALREADY_READ); }; _compatibilityVersion = _arg1; compatibilityVersionChanged = true; } public static function get compatibilityVersion():uint{ compatibilityVersionRead = true; return (_compatibilityVersion); } public static function set compatibilityErrorFunction(_arg1:Function):void{ _compatibilityErrorFunction = _arg1; } public static function set compatibilityVersionString(_arg1:String):void{ var _local2:Array = _arg1.split("."); var _local3:uint = parseInt(_local2[0]); var _local4:uint = parseInt(_local2[1]); var _local5:uint = parseInt(_local2[2]); compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5); } public static function get compatibilityErrorFunction():Function{ return (_compatibilityErrorFunction); } public static function get compatibilityVersionString():String{ var _local1:uint = ((compatibilityVersion >> 24) & 0xFF); var _local2:uint = ((compatibilityVersion >> 16) & 0xFF); var _local3:uint = (compatibilityVersion & 0xFFFF); return (((((_local1.toString() + ".") + _local2.toString()) + ".") + _local3.toString())); } } }//package mx.core
Section 183
//FontAsset (mx.core.FontAsset) package mx.core { import flash.text.*; public class FontAsset extends Font implements IFlexAsset { mx_internal static const VERSION:String = "3.0.0.0"; } }//package mx.core
Section 184
//IBorder (mx.core.IBorder) package mx.core { public interface IBorder { function get borderMetrics():EdgeMetrics; } }//package mx.core
Section 185
//IButton (mx.core.IButton) package mx.core { public interface IButton extends IUIComponent { function get emphasized():Boolean; function set emphasized(_arg1:Boolean):void; function callLater(_arg1:Function, _arg2:Array=null):void; } }//package mx.core
Section 186
//IChildList (mx.core.IChildList) package mx.core { import flash.display.*; import flash.geom.*; public interface IChildList { function get numChildren():int; function removeChild(_arg1:DisplayObject):DisplayObject; function getChildByName(_arg1:String):DisplayObject; function removeChildAt(_arg1:int):DisplayObject; function getChildIndex(_arg1:DisplayObject):int; function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject; function getObjectsUnderPoint(_arg1:Point):Array; function setChildIndex(_arg1:DisplayObject, _arg2:int):void; function getChildAt(_arg1:int):DisplayObject; function addChild(_arg1:DisplayObject):DisplayObject; function contains(_arg1:DisplayObject):Boolean; } }//package mx.core
Section 187
//IConstraintClient (mx.core.IConstraintClient) package mx.core { public interface IConstraintClient { function setConstraintValue(_arg1:String, _arg2):void; function getConstraintValue(_arg1:String); } }//package mx.core
Section 188
//IContainer (mx.core.IContainer) package mx.core { import flash.display.*; import flash.media.*; import flash.geom.*; import mx.managers.*; import flash.text.*; public interface IContainer extends IUIComponent { function set hitArea(_arg1:Sprite):void; function swapChildrenAt(_arg1:int, _arg2:int):void; function getChildByName(_arg1:String):DisplayObject; function get doubleClickEnabled():Boolean; function get graphics():Graphics; function get useHandCursor():Boolean; function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject; function set mouseChildren(_arg1:Boolean):void; function set creatingContentPane(_arg1:Boolean):void; function get textSnapshot():TextSnapshot; function getChildIndex(_arg1:DisplayObject):int; function set doubleClickEnabled(_arg1:Boolean):void; function getObjectsUnderPoint(_arg1:Point):Array; function get creatingContentPane():Boolean; function setChildIndex(_arg1:DisplayObject, _arg2:int):void; function get soundTransform():SoundTransform; function set useHandCursor(_arg1:Boolean):void; function get numChildren():int; function contains(_arg1:DisplayObject):Boolean; function get verticalScrollPosition():Number; function set defaultButton(_arg1:IFlexDisplayObject):void; function swapChildren(_arg1:DisplayObject, _arg2:DisplayObject):void; function set horizontalScrollPosition(_arg1:Number):void; function get focusManager():IFocusManager; function startDrag(_arg1:Boolean=false, _arg2:Rectangle=null):void; function set mouseEnabled(_arg1:Boolean):void; function getChildAt(_arg1:int):DisplayObject; function set soundTransform(_arg1:SoundTransform):void; function get tabChildren():Boolean; function get tabIndex():int; function set focusRect(_arg1:Object):void; function get hitArea():Sprite; function get mouseChildren():Boolean; function removeChildAt(_arg1:int):DisplayObject; function get defaultButton():IFlexDisplayObject; function stopDrag():void; function set tabEnabled(_arg1:Boolean):void; function get horizontalScrollPosition():Number; function get focusRect():Object; function get viewMetrics():EdgeMetrics; function set verticalScrollPosition(_arg1:Number):void; function get dropTarget():DisplayObject; function get mouseEnabled():Boolean; function set tabChildren(_arg1:Boolean):void; function set buttonMode(_arg1:Boolean):void; function get tabEnabled():Boolean; function get buttonMode():Boolean; function removeChild(_arg1:DisplayObject):DisplayObject; function set tabIndex(_arg1:int):void; function addChild(_arg1:DisplayObject):DisplayObject; function areInaccessibleObjectsUnderPoint(_arg1:Point):Boolean; } }//package mx.core
Section 189
//IDeferredInstantiationUIComponent (mx.core.IDeferredInstantiationUIComponent) package mx.core { public interface IDeferredInstantiationUIComponent extends IUIComponent { function set cacheHeuristic(_arg1:Boolean):void; function createReferenceOnParentDocument(_arg1:IFlexDisplayObject):void; function get cachePolicy():String; function set id(_arg1:String):void; function registerEffects(_arg1:Array):void; function executeBindings(_arg1:Boolean=false):void; function get id():String; function deleteReferenceOnParentDocument(_arg1:IFlexDisplayObject):void; function set descriptor(_arg1:UIComponentDescriptor):void; function get descriptor():UIComponentDescriptor; } }//package mx.core
Section 190
//IEmbeddedFontRegistry (mx.core.IEmbeddedFontRegistry) package mx.core { public interface IEmbeddedFontRegistry { function getAssociatedModuleFactory(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):IFlexModuleFactory; function registerFont(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):void; function deregisterFont(_arg1:EmbeddedFont, _arg2:IFlexModuleFactory):void; function getFonts():Array; } }//package mx.core
Section 191
//IFlexAsset (mx.core.IFlexAsset) package mx.core { public interface IFlexAsset { } }//package mx.core
Section 192
//IFlexDisplayObject (mx.core.IFlexDisplayObject) package mx.core { import flash.display.*; import flash.geom.*; import flash.accessibility.*; import flash.events.*; public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher { function get visible():Boolean; function get rotation():Number; function localToGlobal(_arg1:Point):Point; function get name():String; function set width(_arg1:Number):void; function get measuredHeight():Number; function get blendMode():String; function get scale9Grid():Rectangle; function set name(_arg1:String):void; function set scaleX(_arg1:Number):void; function set scaleY(_arg1:Number):void; function get measuredWidth():Number; function get accessibilityProperties():AccessibilityProperties; function set scrollRect(_arg1:Rectangle):void; function get cacheAsBitmap():Boolean; function globalToLocal(_arg1:Point):Point; function get height():Number; function set blendMode(_arg1:String):void; function get parent():DisplayObjectContainer; function getBounds(_arg1:DisplayObject):Rectangle; function get opaqueBackground():Object; function set scale9Grid(_arg1:Rectangle):void; function setActualSize(_arg1:Number, _arg2:Number):void; function set alpha(_arg1:Number):void; function set accessibilityProperties(_arg1:AccessibilityProperties):void; function get width():Number; function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean; function set cacheAsBitmap(_arg1:Boolean):void; function get scaleX():Number; function get scaleY():Number; function get scrollRect():Rectangle; function get mouseX():Number; function get mouseY():Number; function set height(_arg1:Number):void; function set mask(_arg1:DisplayObject):void; function getRect(_arg1:DisplayObject):Rectangle; function get alpha():Number; function set transform(_arg1:Transform):void; function move(_arg1:Number, _arg2:Number):void; function get loaderInfo():LoaderInfo; function get root():DisplayObject; function hitTestObject(_arg1:DisplayObject):Boolean; function set opaqueBackground(_arg1:Object):void; function set visible(_arg1:Boolean):void; function get mask():DisplayObject; function set x(_arg1:Number):void; function set y(_arg1:Number):void; function get transform():Transform; function set filters(_arg1:Array):void; function get x():Number; function get y():Number; function get filters():Array; function set rotation(_arg1:Number):void; function get stage():Stage; } }//package mx.core
Section 193
//IFlexModule (mx.core.IFlexModule) package mx.core { public interface IFlexModule { function set moduleFactory(_arg1:IFlexModuleFactory):void; function get moduleFactory():IFlexModuleFactory; } }//package mx.core
Section 194
//IFlexModuleFactory (mx.core.IFlexModuleFactory) package mx.core { public interface IFlexModuleFactory { function create(... _args):Object; function info():Object; } }//package mx.core
Section 195
//IFontContextComponent (mx.core.IFontContextComponent) package mx.core { public interface IFontContextComponent { function get fontContext():IFlexModuleFactory; function set fontContext(_arg1:IFlexModuleFactory):void; } }//package mx.core
Section 196
//IIMESupport (mx.core.IIMESupport) package mx.core { public interface IIMESupport { function set imeMode(_arg1:String):void; function get imeMode():String; } }//package mx.core
Section 197
//IInvalidating (mx.core.IInvalidating) package mx.core { public interface IInvalidating { function validateNow():void; function invalidateSize():void; function invalidateDisplayList():void; function invalidateProperties():void; } }//package mx.core
Section 198
//IProgrammaticSkin (mx.core.IProgrammaticSkin) package mx.core { public interface IProgrammaticSkin { function validateNow():void; function validateDisplayList():void; } }//package mx.core
Section 199
//IPropertyChangeNotifier (mx.core.IPropertyChangeNotifier) package mx.core { import flash.events.*; public interface IPropertyChangeNotifier extends IEventDispatcher, IUID { } }//package mx.core
Section 200
//IRawChildrenContainer (mx.core.IRawChildrenContainer) package mx.core { public interface IRawChildrenContainer { function get rawChildren():IChildList; } }//package mx.core
Section 201
//IRectangularBorder (mx.core.IRectangularBorder) package mx.core { import flash.geom.*; public interface IRectangularBorder extends IBorder { function get backgroundImageBounds():Rectangle; function get hasBackgroundImage():Boolean; function set backgroundImageBounds(_arg1:Rectangle):void; function layoutBackgroundImage():void; } }//package mx.core
Section 202
//IRepeater (mx.core.IRepeater) package mx.core { public interface IRepeater { function get container():IContainer; function set startingIndex(_arg1:int):void; function get startingIndex():int; function set recycleChildren(_arg1:Boolean):void; function get currentItem():Object; function get count():int; function get recycleChildren():Boolean; function executeChildBindings():void; function set dataProvider(_arg1:Object):void; function initializeRepeater(_arg1:IContainer, _arg2:Boolean):void; function get currentIndex():int; function get dataProvider():Object; function set count(_arg1:int):void; } }//package mx.core
Section 203
//IRepeaterClient (mx.core.IRepeaterClient) package mx.core { public interface IRepeaterClient { function get instanceIndices():Array; function set instanceIndices(_arg1:Array):void; function get isDocument():Boolean; function set repeaters(_arg1:Array):void; function initializeRepeaterArrays(_arg1:IRepeaterClient):void; function get repeaters():Array; function set repeaterIndices(_arg1:Array):void; function get repeaterIndices():Array; } }//package mx.core
Section 204
//IStateClient (mx.core.IStateClient) package mx.core { public interface IStateClient { function get currentState():String; function set currentState(_arg1:String):void; } }//package mx.core
Section 205
//ITextFieldFactory (mx.core.ITextFieldFactory) package mx.core { import flash.text.*; public interface ITextFieldFactory { function createTextField(_arg1:IFlexModuleFactory):TextField; } }//package mx.core
Section 206
//IToolTip (mx.core.IToolTip) package mx.core { import flash.geom.*; public interface IToolTip extends IUIComponent { function set text(_arg1:String):void; function get screen():Rectangle; function get text():String; } }//package mx.core
Section 207
//IUIComponent (mx.core.IUIComponent) package mx.core { import flash.display.*; import mx.managers.*; public interface IUIComponent extends IFlexDisplayObject { function set focusPane(_arg1:Sprite):void; function get enabled():Boolean; function set enabled(_arg1:Boolean):void; function set isPopUp(_arg1:Boolean):void; function get explicitMinHeight():Number; function get percentWidth():Number; function get isPopUp():Boolean; function get owner():DisplayObjectContainer; function get percentHeight():Number; function get baselinePosition():Number; function owns(_arg1:DisplayObject):Boolean; function initialize():void; function get maxWidth():Number; function get minWidth():Number; function getExplicitOrMeasuredWidth():Number; function get explicitMaxWidth():Number; function get explicitMaxHeight():Number; function set percentHeight(_arg1:Number):void; function get minHeight():Number; function set percentWidth(_arg1:Number):void; function get document():Object; function get focusPane():Sprite; function getExplicitOrMeasuredHeight():Number; function set tweeningProperties(_arg1:Array):void; function set explicitWidth(_arg1:Number):void; function set measuredMinHeight(_arg1:Number):void; function get explicitMinWidth():Number; function get tweeningProperties():Array; function get maxHeight():Number; function set owner(_arg1:DisplayObjectContainer):void; function set includeInLayout(_arg1:Boolean):void; function setVisible(_arg1:Boolean, _arg2:Boolean=false):void; function parentChanged(_arg1:DisplayObjectContainer):void; function get explicitWidth():Number; function get measuredMinHeight():Number; function set measuredMinWidth(_arg1:Number):void; function set explicitHeight(_arg1:Number):void; function get includeInLayout():Boolean; function get measuredMinWidth():Number; function get explicitHeight():Number; function set systemManager(_arg1:ISystemManager):void; function set document(_arg1:Object):void; function get systemManager():ISystemManager; } }//package mx.core
Section 208
//IUID (mx.core.IUID) package mx.core { public interface IUID { function get uid():String; function set uid(_arg1:String):void; } }//package mx.core
Section 209
//IUITextField (mx.core.IUITextField) package mx.core { import flash.display.*; import mx.styles.*; import flash.geom.*; import mx.managers.*; import flash.text.*; public interface IUITextField extends IIMESupport, IFlexModule, IInvalidating, ISimpleStyleClient, IToolTipManagerClient, IUIComponent { function replaceText(_arg1:int, _arg2:int, _arg3:String):void; function get doubleClickEnabled():Boolean; function get nestLevel():int; function get caretIndex():int; function set doubleClickEnabled(_arg1:Boolean):void; function get maxScrollH():int; function set nestLevel(_arg1:int):void; function get numLines():int; function get scrollH():int; function setColor(_arg1:uint):void; function get maxScrollV():int; function getImageReference(_arg1:String):DisplayObject; function get scrollV():int; function get border():Boolean; function get text():String; function get styleSheet():StyleSheet; function getCharBoundaries(_arg1:int):Rectangle; function get background():Boolean; function set scrollH(_arg1:int):void; function getFirstCharInParagraph(_arg1:int):int; function get type():String; function replaceSelectedText(_arg1:String):void; function set borderColor(_arg1:uint):void; function get alwaysShowSelection():Boolean; function get sharpness():Number; function get tabIndex():int; function get textColor():uint; function set defaultTextFormat(_arg1:TextFormat):void; function get condenseWhite():Boolean; function get displayAsPassword():Boolean; function get autoSize():String; function setSelection(_arg1:int, _arg2:int):void; function set scrollV(_arg1:int):void; function set useRichTextClipboard(_arg1:Boolean):void; function get selectionBeginIndex():int; function get selectable():Boolean; function set border(_arg1:Boolean):void; function set multiline(_arg1:Boolean):void; function set background(_arg1:Boolean):void; function set embedFonts(_arg1:Boolean):void; function set text(_arg1:String):void; function get selectionEndIndex():int; function set mouseWheelEnabled(_arg1:Boolean):void; function appendText(_arg1:String):void; function get antiAliasType():String; function set styleSheet(_arg1:StyleSheet):void; function set nonInheritingStyles(_arg1:Object):void; function set textColor(_arg1:uint):void; function get wordWrap():Boolean; function getLineIndexAtPoint(_arg1:Number, _arg2:Number):int; function get htmlText():String; function set tabIndex(_arg1:int):void; function get thickness():Number; function getLineIndexOfChar(_arg1:int):int; function get bottomScrollV():int; function set restrict(_arg1:String):void; function set alwaysShowSelection(_arg1:Boolean):void; function getTextFormat(_arg1:int=-1, _arg2:int=-1):TextFormat; function set sharpness(_arg1:Number):void; function set type(_arg1:String):void; function setTextFormat(_arg1:TextFormat, _arg2:int=-1, _arg3:int=-1):void; function set gridFitType(_arg1:String):void; function getUITextFormat():UITextFormat; function set inheritingStyles(_arg1:Object):void; function setFocus():void; function get borderColor():uint; function set condenseWhite(_arg1:Boolean):void; function get textWidth():Number; function getLineOffset(_arg1:int):int; function set displayAsPassword(_arg1:Boolean):void; function set autoSize(_arg1:String):void; function get defaultTextFormat():TextFormat; function get useRichTextClipboard():Boolean; function get nonZeroTextHeight():Number; function set backgroundColor(_arg1:uint):void; function get embedFonts():Boolean; function set selectable(_arg1:Boolean):void; function get multiline():Boolean; function set maxChars(_arg1:int):void; function get textHeight():Number; function get nonInheritingStyles():Object; function getLineText(_arg1:int):String; function set focusRect(_arg1:Object):void; function get mouseWheelEnabled():Boolean; function get restrict():String; function getParagraphLength(_arg1:int):int; function set mouseEnabled(_arg1:Boolean):void; function get gridFitType():String; function get inheritingStyles():Object; function set ignorePadding(_arg1:Boolean):void; function set antiAliasType(_arg1:String):void; function get backgroundColor():uint; function getCharIndexAtPoint(_arg1:Number, _arg2:Number):int; function set tabEnabled(_arg1:Boolean):void; function get maxChars():int; function get focusRect():Object; function get ignorePadding():Boolean; function get mouseEnabled():Boolean; function get length():int; function set wordWrap(_arg1:Boolean):void; function get tabEnabled():Boolean; function set thickness(_arg1:Number):void; function getLineLength(_arg1:int):int; function truncateToFit(_arg1:String=null):Boolean; function set htmlText(_arg1:String):void; function getLineMetrics(_arg1:int):TextLineMetrics; function getStyle(_arg1:String); } }//package mx.core
Section 210
//MovieClipAsset (mx.core.MovieClipAsset) package mx.core { public class MovieClipAsset extends FlexMovieClip implements IFlexAsset, IFlexDisplayObject, IBorder { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.0.0.0"; public function MovieClipAsset(){ _measuredWidth = width; _measuredHeight = height; } public function get measuredWidth():Number{ return (_measuredWidth); } public function get measuredHeight():Number{ return (_measuredHeight); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get borderMetrics():EdgeMetrics{ if (scale9Grid == null){ return (EdgeMetrics.EMPTY); }; return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom)))); } } }//package mx.core
Section 211
//mx_internal (mx.core.mx_internal) package mx.core { public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal"; }//package mx.core
Section 212
//ResourceModuleRSLItem (mx.core.ResourceModuleRSLItem) package mx.core { import flash.events.*; import mx.events.*; import mx.resources.*; public class ResourceModuleRSLItem extends RSLItem { mx_internal static const VERSION:String = "3.0.0.0"; public function ResourceModuleRSLItem(_arg1:String){ super(_arg1); } private function resourceErrorHandler(_arg1:ResourceEvent):void{ var _local2:IOErrorEvent = new IOErrorEvent(IOErrorEvent.IO_ERROR); _local2.text = _arg1.errorText; super.itemErrorHandler(_local2); } override public function load(_arg1:Function, _arg2:Function, _arg3:Function, _arg4:Function, _arg5:Function):void{ chainedProgressHandler = _arg1; chainedCompleteHandler = _arg2; chainedIOErrorHandler = _arg3; chainedSecurityErrorHandler = _arg4; chainedRSLErrorHandler = _arg5; var _local6:IResourceManager = ResourceManager.getInstance(); var _local7:IEventDispatcher = _local6.loadResourceModule(url); _local7.addEventListener(ResourceEvent.PROGRESS, itemProgressHandler); _local7.addEventListener(ResourceEvent.COMPLETE, itemCompleteHandler); _local7.addEventListener(ResourceEvent.ERROR, resourceErrorHandler); } } }//package mx.core
Section 213
//RSLItem (mx.core.RSLItem) package mx.core { import flash.events.*; import flash.display.*; import flash.net.*; import flash.system.*; import mx.events.*; public class RSLItem { protected var chainedSecurityErrorHandler:Function; public var total:uint;// = 0 public var loaded:uint;// = 0 private var completed:Boolean;// = false protected var chainedRSLErrorHandler:Function; protected var chainedIOErrorHandler:Function; protected var chainedCompleteHandler:Function; private var errorText:String; protected var chainedProgressHandler:Function; public var urlRequest:URLRequest; protected var url:String; mx_internal static const VERSION:String = "3.0.0.0"; public function RSLItem(_arg1:String){ this.url = _arg1; } public function itemProgressHandler(_arg1:ProgressEvent):void{ loaded = _arg1.bytesLoaded; total = _arg1.bytesTotal; if (chainedProgressHandler != null){ chainedProgressHandler(_arg1); }; } public function itemErrorHandler(_arg1:ErrorEvent):void{ errorText = decodeURI(_arg1.text); completed = true; loaded = 0; total = 0; trace(errorText); if ((((_arg1.type == IOErrorEvent.IO_ERROR)) && (!((chainedIOErrorHandler == null))))){ chainedIOErrorHandler(_arg1); } else { if ((((_arg1.type == SecurityErrorEvent.SECURITY_ERROR)) && (!((chainedSecurityErrorHandler == null))))){ chainedSecurityErrorHandler(_arg1); } else { if ((((_arg1.type == RSLEvent.RSL_ERROR)) && (!((chainedRSLErrorHandler == null))))){ chainedRSLErrorHandler(_arg1); }; }; }; } public function load(_arg1:Function, _arg2:Function, _arg3:Function, _arg4:Function, _arg5:Function):void{ chainedProgressHandler = _arg1; chainedCompleteHandler = _arg2; chainedIOErrorHandler = _arg3; chainedSecurityErrorHandler = _arg4; chainedRSLErrorHandler = _arg5; var _local6:Loader = new Loader(); var _local7:LoaderContext = new LoaderContext(); urlRequest = new URLRequest(url); _local6.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, itemProgressHandler); _local6.contentLoaderInfo.addEventListener(Event.COMPLETE, itemCompleteHandler); _local6.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, itemErrorHandler); _local6.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, itemErrorHandler); _local7.applicationDomain = ApplicationDomain.currentDomain; _local6.load(urlRequest, _local7); } public function itemCompleteHandler(_arg1:Event):void{ completed = true; if (chainedCompleteHandler != null){ chainedCompleteHandler(_arg1); }; } } }//package mx.core
Section 214
//RSLListLoader (mx.core.RSLListLoader) package mx.core { import flash.events.*; public class RSLListLoader { private var chainedSecurityErrorHandler:Function; private var chainedIOErrorHandler:Function; private var rslList:Array; private var chainedRSLErrorHandler:Function; private var chainedCompleteHandler:Function; private var currentIndex:int;// = 0 private var chainedProgressHandler:Function; mx_internal static const VERSION:String = "3.0.0.0"; public function RSLListLoader(_arg1:Array){ rslList = []; super(); this.rslList = _arg1; } private function loadNext():void{ if (!isDone()){ currentIndex++; if (currentIndex < rslList.length){ rslList[currentIndex].load(chainedProgressHandler, listCompleteHandler, listIOErrorHandler, listSecurityErrorHandler, chainedRSLErrorHandler); }; }; } public function getIndex():int{ return (currentIndex); } public function load(_arg1:Function, _arg2:Function, _arg3:Function, _arg4:Function, _arg5:Function):void{ chainedProgressHandler = _arg1; chainedCompleteHandler = _arg2; chainedIOErrorHandler = _arg3; chainedSecurityErrorHandler = _arg4; chainedRSLErrorHandler = _arg5; currentIndex = -1; loadNext(); } private function listCompleteHandler(_arg1:Event):void{ if (chainedCompleteHandler != null){ chainedCompleteHandler(_arg1); }; loadNext(); } public function isDone():Boolean{ return ((currentIndex >= rslList.length)); } private function listSecurityErrorHandler(_arg1:Event):void{ if (chainedSecurityErrorHandler != null){ chainedSecurityErrorHandler(_arg1); }; } public function getItemCount():int{ return (rslList.length); } public function getItem(_arg1:int):RSLItem{ if ((((_arg1 < 0)) || ((_arg1 >= rslList.length)))){ return (null); }; return (rslList[_arg1]); } private function listIOErrorHandler(_arg1:Event):void{ if (chainedIOErrorHandler != null){ chainedIOErrorHandler(_arg1); }; } } }//package mx.core
Section 215
//Singleton (mx.core.Singleton) package mx.core { public class Singleton { mx_internal static const VERSION:String = "3.0.0.0"; private static var classMap:Object = {}; public static function registerClass(_arg1:String, _arg2:Class):void{ var _local3:Class = classMap[_arg1]; if (!_local3){ classMap[_arg1] = _arg2; }; } public static function getClass(_arg1:String):Class{ return (classMap[_arg1]); } public static function getInstance(_arg1:String):Object{ var _local2:Class = classMap[_arg1]; if (!_local2){ throw (new Error((("No class registered for interface '" + _arg1) + "'."))); }; return (_local2["getInstance"]()); } } }//package mx.core
Section 216
//SoundAsset (mx.core.SoundAsset) package mx.core { import flash.media.*; public class SoundAsset extends Sound implements IFlexAsset { mx_internal static const VERSION:String = "3.0.0.0"; } }//package mx.core
Section 217
//SpriteAsset (mx.core.SpriteAsset) package mx.core { public class SpriteAsset extends FlexSprite implements IFlexAsset, IFlexDisplayObject, IBorder { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.0.0.0"; public function SpriteAsset(){ _measuredWidth = width; _measuredHeight = height; } public function get measuredWidth():Number{ return (_measuredWidth); } public function get measuredHeight():Number{ return (_measuredHeight); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get borderMetrics():EdgeMetrics{ if (scale9Grid == null){ return (EdgeMetrics.EMPTY); }; return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom)))); } } }//package mx.core
Section 218
//TextFieldFactory (mx.core.TextFieldFactory) package mx.core { import flash.text.*; import flash.utils.*; public class TextFieldFactory implements ITextFieldFactory { private var textFields:Dictionary; mx_internal static const VERSION:String = "3.0.0.0"; private static var instance:ITextFieldFactory; public function TextFieldFactory(){ textFields = new Dictionary(true); super(); } public function createTextField(_arg1:IFlexModuleFactory):TextField{ var _local4:Object; var _local2:TextField; var _local3:Dictionary = textFields[_arg1]; if (_local3){ for (_local4 in _local3) { _local2 = TextField(_local4); break; }; }; if (!_local2){ if (_arg1){ _local2 = TextField(_arg1.create("flash.text.TextField")); } else { _local2 = new TextField(); }; if (!_local3){ _local3 = new Dictionary(true); }; _local3[_local2] = 1; textFields[_arg1] = _local3; }; return (_local2); } public static function getInstance():ITextFieldFactory{ if (!instance){ instance = new (TextFieldFactory); }; return (instance); } } }//package mx.core
Section 219
//UIComponent (mx.core.UIComponent) package mx.core { import flash.events.*; import flash.display.*; import mx.styles.*; import flash.system.*; import flash.geom.*; import mx.modules.*; import mx.events.*; import mx.resources.*; import mx.managers.*; import flash.text.*; import mx.automation.*; import mx.controls.*; import mx.states.*; import mx.effects.*; import mx.graphics.*; import mx.binding.*; import flash.utils.*; import mx.utils.*; import mx.validators.*; public class UIComponent extends FlexSprite implements IAutomationObject, IChildList, IDeferredInstantiationUIComponent, IFlexDisplayObject, IFlexModule, IInvalidating, ILayoutManagerClient, IPropertyChangeNotifier, IRepeaterClient, ISimpleStyleClient, IStyleClient, IToolTipManagerClient, IUIComponent, IValidatorListener, IStateClient, IConstraintClient { private var cachedEmbeddedFont:EmbeddedFont;// = null private var errorStringChanged:Boolean;// = false mx_internal var overlay:UIComponent; mx_internal var automaticRadioButtonGroups:Object; private var _currentState:String; private var _isPopUp:Boolean; private var _repeaters:Array; private var _systemManager:ISystemManager; private var _measuredWidth:Number;// = 0 private var methodQueue:Array; mx_internal var _width:Number; private var _tweeningProperties:Array; private var _validationSubField:String; private var _endingEffectInstances:Array; mx_internal var saveBorderColor:Boolean;// = true mx_internal var overlayColor:uint; mx_internal var overlayReferenceCount:int;// = 0 private var hasFontContextBeenSaved:Boolean;// = false private var _repeaterIndices:Array; private var oldExplicitWidth:Number; mx_internal var _descriptor:UIComponentDescriptor; private var _initialized:Boolean;// = false private var _focusEnabled:Boolean;// = true private var cacheAsBitmapCount:int;// = 0 private var requestedCurrentState:String; private var listeningForRender:Boolean;// = false mx_internal var invalidateDisplayListFlag:Boolean;// = false private var oldScaleX:Number;// = 1 private var oldScaleY:Number;// = 1 mx_internal var _explicitMaxHeight:Number; mx_internal var invalidatePropertiesFlag:Boolean;// = false private var hasFocusRect:Boolean;// = false mx_internal var invalidateSizeFlag:Boolean;// = false private var _scaleX:Number;// = 1 private var _scaleY:Number;// = 1 private var _styleDeclaration:CSSStyleDeclaration; private var _resourceManager:IResourceManager; mx_internal var _affectedProperties:Object; mx_internal var _documentDescriptor:UIComponentDescriptor; private var _processedDescriptors:Boolean;// = false mx_internal var origBorderColor:Number; private var _focusManager:IFocusManager; private var _cachePolicy:String;// = "auto" private var _measuredHeight:Number;// = 0 private var _id:String; private var _owner:DisplayObjectContainer; public var transitions:Array; mx_internal var _parent:DisplayObjectContainer; private var _measuredMinWidth:Number;// = 0 private var oldMinWidth:Number; private var _explicitWidth:Number; private var _enabled:Boolean;// = false public var states:Array; private var _mouseFocusEnabled:Boolean;// = true private var oldHeight:Number;// = 0 private var _currentStateChanged:Boolean; private var cachedTextFormat:UITextFormat; mx_internal var _height:Number; private var _automationDelegate:IAutomationObject; private var _percentWidth:Number; private var _automationName:String;// = null private var _isEffectStarted:Boolean;// = false private var _styleName:Object; private var lastUnscaledWidth:Number; mx_internal var _document:Object; mx_internal var _errorString:String;// = "" private var oldExplicitHeight:Number; private var _nestLevel:int;// = 0 private var _systemManagerDirty:Boolean;// = false private var _explicitHeight:Number; mx_internal var _toolTip:String; private var _filters:Array; private var _focusPane:Sprite; private var playStateTransition:Boolean;// = true private var _nonInheritingStyles:Object; private var _showInAutomationHierarchy:Boolean;// = true private var _moduleFactory:IFlexModuleFactory; private var preventDrawFocus:Boolean;// = false private var oldX:Number;// = 0 private var oldY:Number;// = 0 private var _instanceIndices:Array; private var _visible:Boolean;// = true private var _inheritingStyles:Object; private var _includeInLayout:Boolean;// = true mx_internal var _effectsStarted:Array; mx_internal var _explicitMinWidth:Number; private var lastUnscaledHeight:Number; mx_internal var _explicitMaxWidth:Number; private var _measuredMinHeight:Number;// = 0 private var _uid:String; private var _currentTransitionEffect:IEffect; private var _updateCompletePendingFlag:Boolean;// = false private var oldMinHeight:Number; private var _flexContextMenu:IFlexContextMenu; mx_internal var _explicitMinHeight:Number; private var _percentHeight:Number; private var oldEmbeddedFontContext:IFlexModuleFactory;// = null private var oldWidth:Number;// = 0 public static const DEFAULT_MEASURED_WIDTH:Number = 160; public static const DEFAULT_MAX_WIDTH:Number = 10000; public static const DEFAULT_MEASURED_MIN_HEIGHT:Number = 22; public static const DEFAULT_MAX_HEIGHT:Number = 10000; public static const DEFAULT_MEASURED_HEIGHT:Number = 22; mx_internal static const VERSION:String = "3.0.0.0"; public static const DEFAULT_MEASURED_MIN_WIDTH:Number = 40; mx_internal static var dispatchEventHook:Function; private static var fakeMouseY:QName = new QName(mx_internal, "_mouseY"); mx_internal static var createAccessibilityImplementation:Function; mx_internal static var STYLE_UNINITIALIZED:Object = {}; private static var fakeMouseX:QName = new QName(mx_internal, "_mouseX"); private static var _embeddedFontRegistry:IEmbeddedFontRegistry; public function UIComponent(){ methodQueue = []; _resourceManager = ResourceManager.getInstance(); _inheritingStyles = UIComponent.STYLE_UNINITIALIZED; _nonInheritingStyles = UIComponent.STYLE_UNINITIALIZED; states = []; transitions = []; _effectsStarted = []; _affectedProperties = {}; _endingEffectInstances = []; super(); focusRect = false; tabEnabled = (this is IFocusManagerComponent); tabChildren = false; enabled = true; $visible = false; addEventListener(Event.ADDED, addedHandler); addEventListener(Event.REMOVED, removedHandler); if ((this is IFocusManagerComponent)){ addEventListener(FocusEvent.FOCUS_IN, focusInHandler); addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler); addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); addEventListener(KeyboardEvent.KEY_UP, keyUpHandler); }; resourcesChanged(); resourceManager.addEventListener(Event.CHANGE, resourceManager_changeHandler, false, 0, true); _width = super.width; _height = super.height; } override public function get filters():Array{ return ((_filters) ? _filters : super.filters); } public function get toolTip():String{ return (_toolTip); } private function transition_effectEndHandler(_arg1:EffectEvent):void{ _currentTransitionEffect = null; } public function get nestLevel():int{ return (_nestLevel); } protected function adjustFocusRect(_arg1:DisplayObject=null):void{ var _local4:Number; var _local5:Number; var _local6:Point; var _local7:Number; if (!_arg1){ _arg1 = this; }; if (((isNaN(_arg1.width)) || (isNaN(_arg1.height)))){ return; }; var _local2:IFocusManager = focusManager; if (!_local2){ return; }; var _local3:IFlexDisplayObject = IFlexDisplayObject(getFocusObject()); if (_local3){ if (((errorString) && (!((errorString == ""))))){ _local4 = getStyle("errorColor"); } else { _local4 = getStyle("themeColor"); }; _local5 = getStyle("focusThickness"); if ((_local3 is IStyleClient)){ IStyleClient(_local3).setStyle("focusColor", _local4); }; _local3.setActualSize((_arg1.width + (2 * _local5)), (_arg1.height + (2 * _local5))); if (rotation){ _local7 = ((rotation * Math.PI) / 180); _local6 = new Point((_arg1.x - (_local5 * (Math.cos(_local7) - Math.sin(_local7)))), (_arg1.y - (_local5 * (Math.cos(_local7) + Math.sin(_local7))))); DisplayObject(_local3).rotation = rotation; } else { _local6 = new Point((_arg1.x - _local5), (_arg1.y - _local5)); }; if (_arg1.parent == this){ _local6.x = (_local6.x + x); _local6.y = (_local6.y + y); }; _local6 = parent.localToGlobal(_local6); _local6 = parent.globalToLocal(_local6); _local3.move(_local6.x, _local6.y); if ((_local3 is IInvalidating)){ IInvalidating(_local3).validateNow(); } else { if ((_local3 is IProgrammaticSkin)){ IProgrammaticSkin(_local3).validateNow(); }; }; }; } mx_internal function setUnscaledWidth(_arg1:Number):void{ var _local2:Number = (_arg1 * Math.abs(oldScaleX)); if (_explicitWidth == _local2){ return; }; if (!isNaN(_local2)){ _percentWidth = NaN; }; _explicitWidth = _local2; invalidateSize(); var _local3:IInvalidating = (parent as IInvalidating); if (((_local3) && (includeInLayout))){ _local3.invalidateSize(); _local3.invalidateDisplayList(); }; } public function set nestLevel(_arg1:int):void{ var _local2:IChildList; var _local3:int; var _local4:int; var _local5:ILayoutManagerClient; var _local6:IUITextField; if ((((_arg1 > 1)) && (!((_nestLevel == _arg1))))){ _nestLevel = _arg1; updateCallbacks(); _local2 = ((this is IRawChildrenContainer)) ? IRawChildrenContainer(this).rawChildren : IChildList(this); _local3 = _local2.numChildren; _local4 = 0; while (_local4 < _local3) { _local5 = (_local2.getChildAt(_local4) as ILayoutManagerClient); if (_local5){ _local5.nestLevel = (_arg1 + 1); } else { _local6 = (_local2.getChildAt(_local4) as IUITextField); if (_local6){ _local6.nestLevel = (_arg1 + 1); }; }; _local4++; }; }; } public function getExplicitOrMeasuredHeight():Number{ return ((isNaN(explicitHeight)) ? measuredHeight : explicitHeight); } private function callLaterDispatcher(_arg1:Event):void{ var callLaterErrorEvent:DynamicEvent; var event = _arg1; UIComponentGlobals.callLaterDispatcherCount++; if (!UIComponentGlobals.catchCallLaterExceptions){ callLaterDispatcher2(event); } else { try { callLaterDispatcher2(event); } catch(e:Error) { callLaterErrorEvent = new DynamicEvent("callLaterError"); callLaterErrorEvent.error = e; systemManager.dispatchEvent(callLaterErrorEvent); }; }; UIComponentGlobals.callLaterDispatcherCount--; } public function getStyle(_arg1:String){ return ((StyleManager.inheritingStyles[_arg1]) ? _inheritingStyles[_arg1] : _nonInheritingStyles[_arg1]); } final mx_internal function get $width():Number{ return (super.width); } public function get className():String{ var _local1:String = getQualifiedClassName(this); var _local2:int = _local1.indexOf("::"); if (_local2 != -1){ _local1 = _local1.substr((_local2 + 2)); }; return (_local1); } public function verticalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{ UIComponentGlobals.tempMatrix.createGradientBox(_arg3, _arg4, (Math.PI / 2), _arg1, _arg2); return (UIComponentGlobals.tempMatrix); } public function setCurrentState(_arg1:String, _arg2:Boolean=true):void{ if (((!((_arg1 == currentState))) && (!(((isBaseState(_arg1)) && (isBaseState(currentState))))))){ requestedCurrentState = _arg1; playStateTransition = _arg2; if (initialized){ commitCurrentState(); } else { _currentStateChanged = true; addEventListener(FlexEvent.CREATION_COMPLETE, creationCompleteHandler); }; }; } private function getBaseStates(_arg1:State):Array{ var _local2:Array = []; while (((_arg1) && (_arg1.basedOn))) { _local2.push(_arg1.basedOn); _arg1 = getState(_arg1.basedOn); }; return (_local2); } public function set minHeight(_arg1:Number):void{ if (explicitMinHeight == _arg1){ return; }; explicitMinHeight = _arg1; } protected function isOurFocus(_arg1:DisplayObject):Boolean{ return ((_arg1 == this)); } public function get errorString():String{ return (_errorString); } mx_internal function setUnscaledHeight(_arg1:Number):void{ var _local2:Number = (_arg1 * Math.abs(oldScaleY)); if (_explicitHeight == _local2){ return; }; if (!isNaN(_local2)){ _percentHeight = NaN; }; _explicitHeight = _local2; invalidateSize(); var _local3:IInvalidating = (parent as IInvalidating); if (((_local3) && (includeInLayout))){ _local3.invalidateSize(); _local3.invalidateDisplayList(); }; } public function get automationName():String{ if (_automationName){ return (_automationName); }; if (automationDelegate){ return (automationDelegate.automationName); }; return (""); } final mx_internal function set $width(_arg1:Number):void{ super.width = _arg1; } public function invalidateDisplayList():void{ if (!invalidateDisplayListFlag){ invalidateDisplayListFlag = true; if (((parent) && (UIComponentGlobals.layoutManager))){ UIComponentGlobals.layoutManager.invalidateDisplayList(this); }; }; } mx_internal function initThemeColor():Boolean{ var _local2:Object; var _local3:Number; var _local4:Number; var _local5:Object; var _local6:Array; var _local7:int; var _local8:CSSStyleDeclaration; var _local1:Object = _styleName; if (_styleDeclaration){ _local2 = _styleDeclaration.getStyle("themeColor"); _local3 = _styleDeclaration.getStyle("rollOverColor"); _local4 = _styleDeclaration.getStyle("selectionColor"); }; if ((((((_local2 === null)) || (!(StyleManager.isValidStyleValue(_local2))))) && (((_local1) && (!((_local1 is ISimpleStyleClient))))))){ _local5 = ((_local1 is String)) ? StyleManager.getStyleDeclaration(("." + _local1)) : _local1; if (_local5){ _local2 = _local5.getStyle("themeColor"); _local3 = _local5.getStyle("rollOverColor"); _local4 = _local5.getStyle("selectionColor"); }; }; if ((((_local2 === null)) || (!(StyleManager.isValidStyleValue(_local2))))){ _local6 = getClassStyleDeclarations(); _local7 = 0; while (_local7 < _local6.length) { _local8 = _local6[_local7]; if (_local8){ _local2 = _local8.getStyle("themeColor"); _local3 = _local8.getStyle("rollOverColor"); _local4 = _local8.getStyle("selectionColor"); }; if (((!((_local2 === null))) && (StyleManager.isValidStyleValue(_local2)))){ break; }; _local7++; }; }; if (((((((!((_local2 === null))) && (StyleManager.isValidStyleValue(_local2)))) && (isNaN(_local3)))) && (isNaN(_local4)))){ setThemeColor(_local2); return (true); }; return (((((((!((_local2 === null))) && (StyleManager.isValidStyleValue(_local2)))) && (!(isNaN(_local3))))) && (!(isNaN(_local4))))); } override public function get scaleX():Number{ return (_scaleX); } public function get uid():String{ if (!_uid){ _uid = toString(); }; return (_uid); } override public function get mouseX():Number{ if (((((!(root)) || ((root is Stage)))) || ((root[fakeMouseX] === undefined)))){ return (super.mouseX); }; return (globalToLocal(new Point(root[fakeMouseX], 0)).x); } override public function stopDrag():void{ super.stopDrag(); invalidateProperties(); dispatchEvent(new Event("xChanged")); dispatchEvent(new Event("yChanged")); } public function get focusPane():Sprite{ return (_focusPane); } public function set tweeningProperties(_arg1:Array):void{ _tweeningProperties = _arg1; } public function horizontalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{ UIComponentGlobals.tempMatrix.createGradientBox(_arg3, _arg4, 0, _arg1, _arg2); return (UIComponentGlobals.tempMatrix); } public function get isDocument():Boolean{ return ((document == this)); } public function set validationSubField(_arg1:String):void{ _validationSubField = _arg1; } override public function get scaleY():Number{ return (_scaleY); } protected function keyDownHandler(_arg1:KeyboardEvent):void{ } protected function createInFontContext(_arg1:Class):Object{ hasFontContextBeenSaved = true; var _local2:String = StringUtil.trimArrayElements(getStyle("fontFamily"), ","); var _local3:String = getStyle("fontWeight"); var _local4:String = getStyle("fontStyle"); var _local5 = (_local3 == "bold"); var _local6 = (_local4 == "italic"); oldEmbeddedFontContext = getFontContext(_local2, _local5, _local6); var _local7:Object = createInModuleContext((oldEmbeddedFontContext) ? oldEmbeddedFontContext : moduleFactory, getQualifiedClassName(_arg1)); if (_local7 == null){ _local7 = new (_arg1); }; return (_local7); } public function get screen():Rectangle{ var _local1:ISystemManager = systemManager; return ((_local1) ? _local1.screen : null); } protected function focusInHandler(_arg1:FocusEvent):void{ var _local2:IFocusManager; if (isOurFocus(DisplayObject(_arg1.target))){ _local2 = focusManager; if (((_local2) && (_local2.showFocusIndicator))){ drawFocus(true); }; ContainerGlobals.checkFocus(_arg1.relatedObject, this); }; } public function hasFontContextChanged():Boolean{ if (!hasFontContextBeenSaved){ return (false); }; var _local1:String = StringUtil.trimArrayElements(getStyle("fontFamily"), ","); var _local2:String = getStyle("fontWeight"); var _local3:String = getStyle("fontStyle"); var _local4 = (_local2 == "bold"); var _local5 = (_local3 == "italic"); var _local6:EmbeddedFont = getEmbeddedFont(_local1, _local4, _local5); var _local7:IFlexModuleFactory = embeddedFontRegistry.getAssociatedModuleFactory(_local6, moduleFactory); return (!((_local7 == oldEmbeddedFontContext))); } public function get explicitHeight():Number{ return (_explicitHeight); } override public function get x():Number{ return (super.x); } override public function get y():Number{ return (super.y); } override public function get visible():Boolean{ return (_visible); } mx_internal function addOverlay(_arg1:uint, _arg2:RoundedRectangle=null):void{ if (!overlay){ overlayColor = _arg1; overlay = new UIComponent(); overlay.name = "overlay"; overlay.$visible = true; fillOverlay(overlay, _arg1, _arg2); attachOverlay(); if (!_arg2){ addEventListener(ResizeEvent.RESIZE, overlay_resizeHandler); }; overlay.x = 0; overlay.y = 0; invalidateDisplayList(); overlayReferenceCount = 1; } else { overlayReferenceCount++; }; dispatchEvent(new ChildExistenceChangedEvent(ChildExistenceChangedEvent.OVERLAY_CREATED, true, false, overlay)); } public function get percentWidth():Number{ return (_percentWidth); } public function set explicitMinHeight(_arg1:Number):void{ if (_explicitMinHeight == _arg1){ return; }; _explicitMinHeight = _arg1; invalidateSize(); var _local2:IInvalidating = (parent as IInvalidating); if (_local2){ _local2.invalidateSize(); _local2.invalidateDisplayList(); }; dispatchEvent(new Event("explicitMinHeightChanged")); } public function set automationName(_arg1:String):void{ _automationName = _arg1; } public function get mouseFocusEnabled():Boolean{ return (_mouseFocusEnabled); } mx_internal function getEmbeddedFont(_arg1:String, _arg2:Boolean, _arg3:Boolean):EmbeddedFont{ if (cachedEmbeddedFont){ if ((((cachedEmbeddedFont.fontName == _arg1)) && ((cachedEmbeddedFont.fontStyle == EmbeddedFontRegistry.getFontStyle(_arg2, _arg3))))){ return (cachedEmbeddedFont); }; }; cachedEmbeddedFont = new EmbeddedFont(_arg1, _arg2, _arg3); return (cachedEmbeddedFont); } public function stylesInitialized():void{ } public function set errorString(_arg1:String):void{ var _local2:String = _errorString; _errorString = _arg1; ToolTipManager.registerErrorString(this, _local2, _arg1); errorStringChanged = true; invalidateProperties(); dispatchEvent(new Event("errorStringChanged")); } public function getExplicitOrMeasuredWidth():Number{ return ((isNaN(explicitWidth)) ? measuredWidth : explicitWidth); } final mx_internal function set $height(_arg1:Number):void{ super.height = _arg1; } protected function keyUpHandler(_arg1:KeyboardEvent):void{ } final mx_internal function $removeChild(_arg1:DisplayObject):DisplayObject{ return (super.removeChild(_arg1)); } override public function set scaleX(_arg1:Number):void{ if (_scaleX == _arg1){ return; }; _scaleX = _arg1; invalidateProperties(); invalidateSize(); dispatchEvent(new Event("scaleXChanged")); } override public function set scaleY(_arg1:Number):void{ if (_scaleY == _arg1){ return; }; _scaleY = _arg1; invalidateProperties(); invalidateSize(); dispatchEvent(new Event("scaleYChanged")); } public function set uid(_arg1:String):void{ this._uid = _arg1; } public function createAutomationIDPart(_arg1:IAutomationObject):Object{ if (automationDelegate){ return (automationDelegate.createAutomationIDPart(_arg1)); }; return (null); } public function getAutomationChildAt(_arg1:int):IAutomationObject{ if (automationDelegate){ return (automationDelegate.getAutomationChildAt(_arg1)); }; return (null); } mx_internal function get isEffectStarted():Boolean{ return (_isEffectStarted); } override public function get parent():DisplayObjectContainer{ return ((_parent) ? _parent : super.parent); } override public function get mouseY():Number{ if (((((!(root)) || ((root is Stage)))) || ((root[fakeMouseY] === undefined)))){ return (super.mouseY); }; return (globalToLocal(new Point(0, root[fakeMouseY])).y); } public function setActualSize(_arg1:Number, _arg2:Number):void{ var _local3:Boolean; if (_width != _arg1){ _width = _arg1; dispatchEvent(new Event("widthChanged")); _local3 = true; }; if (_height != _arg2){ _height = _arg2; dispatchEvent(new Event("heightChanged")); _local3 = true; }; if (_local3){ invalidateDisplayList(); dispatchResizeEvent(); }; } private function focusObj_resizeHandler(_arg1:ResizeEvent):void{ adjustFocusRect(); } mx_internal function adjustSizesForScaleChanges():void{ var _local3:Number; var _local1:Number = scaleX; var _local2:Number = scaleY; if (_local1 != oldScaleX){ _local3 = Math.abs((_local1 / oldScaleX)); if (explicitMinWidth){ explicitMinWidth = (explicitMinWidth * _local3); }; if (!isNaN(explicitWidth)){ explicitWidth = (explicitWidth * _local3); }; if (explicitMaxWidth){ explicitMaxWidth = (explicitMaxWidth * _local3); }; oldScaleX = _local1; }; if (_local2 != oldScaleY){ _local3 = Math.abs((_local2 / oldScaleY)); if (explicitMinHeight){ explicitMinHeight = (explicitMinHeight * _local3); }; if (explicitHeight){ explicitHeight = (explicitHeight * _local3); }; if (explicitMaxHeight){ explicitMaxHeight = (explicitMaxHeight * _local3); }; oldScaleY = _local2; }; } public function set focusPane(_arg1:Sprite):void{ if (_arg1){ addChild(_arg1); _arg1.x = 0; _arg1.y = 0; _arg1.scrollRect = null; _focusPane = _arg1; } else { removeChild(_focusPane); _focusPane = null; }; } public function determineTextFormatFromStyles():UITextFormat{ var _local2:String; var _local1:UITextFormat = cachedTextFormat; if (!_local1){ _local2 = StringUtil.trimArrayElements(_inheritingStyles.fontFamily, ","); _local1 = new UITextFormat(getNonNullSystemManager(), _local2); _local1.moduleFactory = moduleFactory; _local1.align = _inheritingStyles.textAlign; _local1.bold = (_inheritingStyles.fontWeight == "bold"); _local1.color = (enabled) ? _inheritingStyles.color : _inheritingStyles.disabledColor; _local1.font = _local2; _local1.indent = _inheritingStyles.textIndent; _local1.italic = (_inheritingStyles.fontStyle == "italic"); _local1.kerning = _inheritingStyles.kerning; _local1.leading = _nonInheritingStyles.leading; _local1.leftMargin = _nonInheritingStyles.paddingLeft; _local1.letterSpacing = _inheritingStyles.letterSpacing; _local1.rightMargin = _nonInheritingStyles.paddingRight; _local1.size = _inheritingStyles.fontSize; _local1.underline = (_nonInheritingStyles.textDecoration == "underline"); _local1.antiAliasType = _inheritingStyles.fontAntiAliasType; _local1.gridFitType = _inheritingStyles.fontGridFitType; _local1.sharpness = _inheritingStyles.fontSharpness; _local1.thickness = _inheritingStyles.fontThickness; cachedTextFormat = _local1; }; return (_local1); } public function validationResultHandler(_arg1:ValidationResultEvent):void{ var _local2:String; var _local3:ValidationResult; var _local4:int; if (_arg1.type == ValidationResultEvent.VALID){ if (errorString != ""){ errorString = ""; dispatchEvent(new FlexEvent(FlexEvent.VALID)); }; } else { if (((((!((validationSubField == null))) && (!((validationSubField == ""))))) && (_arg1.results))){ _local4 = 0; while (_local4 < _arg1.results.length) { _local3 = _arg1.results[_local4]; if (_local3.subField == validationSubField){ if (_local3.isError){ _local2 = _local3.errorMessage; } else { if (errorString != ""){ errorString = ""; dispatchEvent(new FlexEvent(FlexEvent.VALID)); }; }; break; }; _local4++; }; } else { if (((_arg1.results) && ((_arg1.results.length > 0)))){ _local2 = _arg1.results[0].errorMessage; }; }; if (((_local2) && (!((errorString == _local2))))){ errorString = _local2; dispatchEvent(new FlexEvent(FlexEvent.INVALID)); }; }; } public function invalidateProperties():void{ if (!invalidatePropertiesFlag){ invalidatePropertiesFlag = true; if (((parent) && (UIComponentGlobals.layoutManager))){ UIComponentGlobals.layoutManager.invalidateProperties(this); }; }; } public function get inheritingStyles():Object{ return (_inheritingStyles); } private function focusObj_scrollHandler(_arg1:Event):void{ adjustFocusRect(); } final mx_internal function get $x():Number{ return (super.x); } final mx_internal function get $y():Number{ return (super.y); } public function setConstraintValue(_arg1:String, _arg2):void{ setStyle(_arg1, _arg2); } protected function resourcesChanged():void{ } public function registerEffects(_arg1:Array):void{ var _local4:String; var _local2:int = _arg1.length; var _local3:int; while (_local3 < _local2) { _local4 = EffectManager.getEventForEffectTrigger(_arg1[_local3]); if (((!((_local4 == null))) && (!((_local4 == ""))))){ addEventListener(_local4, EffectManager.eventHandler, false, EventPriority.EFFECT); }; _local3++; }; } public function get explicitMinWidth():Number{ return (_explicitMinWidth); } private function filterChangeHandler(_arg1:Event):void{ super.filters = _filters; } override public function set visible(_arg1:Boolean):void{ setVisible(_arg1); } public function set explicitHeight(_arg1:Number):void{ if (_explicitHeight == _arg1){ return; }; if (!isNaN(_arg1)){ _percentHeight = NaN; }; _explicitHeight = _arg1; invalidateSize(); var _local2:IInvalidating = (parent as IInvalidating); if (((_local2) && (includeInLayout))){ _local2.invalidateSize(); _local2.invalidateDisplayList(); }; dispatchEvent(new Event("explicitHeightChanged")); } override public function set x(_arg1:Number):void{ if (super.x == _arg1){ return; }; super.x = _arg1; invalidateProperties(); dispatchEvent(new Event("xChanged")); } public function set showInAutomationHierarchy(_arg1:Boolean):void{ _showInAutomationHierarchy = _arg1; } override public function set y(_arg1:Number):void{ if (super.y == _arg1){ return; }; super.y = _arg1; invalidateProperties(); dispatchEvent(new Event("yChanged")); } private function resourceManager_changeHandler(_arg1:Event):void{ resourcesChanged(); } public function set systemManager(_arg1:ISystemManager):void{ _systemManager = _arg1; _systemManagerDirty = false; } mx_internal function getFocusObject():DisplayObject{ var _local1:IFocusManager = focusManager; if (((!(_local1)) || (!(_local1.focusPane)))){ return (null); }; return (((_local1.focusPane.numChildren == 0)) ? null : _local1.focusPane.getChildAt(0)); } public function set percentWidth(_arg1:Number):void{ if (_percentWidth == _arg1){ return; }; if (!isNaN(_arg1)){ _explicitWidth = NaN; }; _percentWidth = _arg1; var _local2:IInvalidating = (parent as IInvalidating); if (_local2){ _local2.invalidateSize(); _local2.invalidateDisplayList(); }; } public function get moduleFactory():IFlexModuleFactory{ return (_moduleFactory); } override public function addChild(_arg1:DisplayObject):DisplayObject{ var _local2:DisplayObjectContainer = _arg1.parent; if (((_local2) && (!((_local2 is Loader))))){ _local2.removeChild(_arg1); }; var _local3:int = (((overlayReferenceCount) && (!((_arg1 == overlay))))) ? Math.max(0, (super.numChildren - 1)) : super.numChildren; addingChild(_arg1); $addChildAt(_arg1, _local3); childAdded(_arg1); return (_arg1); } public function get document():Object{ return (_document); } public function set mouseFocusEnabled(_arg1:Boolean):void{ _mouseFocusEnabled = _arg1; } final mx_internal function $addChild(_arg1:DisplayObject):DisplayObject{ return (super.addChild(_arg1)); } mx_internal function setThemeColor(_arg1:Object):void{ var _local2:Number; if ((_local2 is String)){ _local2 = parseInt(String(_arg1)); } else { _local2 = Number(_arg1); }; if (isNaN(_local2)){ _local2 = StyleManager.getColorName(_arg1); }; var _local3:Number = ColorUtil.adjustBrightness2(_local2, 50); var _local4:Number = ColorUtil.adjustBrightness2(_local2, 70); setStyle("selectionColor", _local3); setStyle("rollOverColor", _local4); } public function get explicitMaxWidth():Number{ return (_explicitMaxWidth); } public function get id():String{ return (_id); } override public function get height():Number{ return (_height); } public function set minWidth(_arg1:Number):void{ if (explicitMinWidth == _arg1){ return; }; explicitMinWidth = _arg1; } public function set currentState(_arg1:String):void{ setCurrentState(_arg1, true); } public function getRepeaterItem(_arg1:int=-1):Object{ var _local2:Array = repeaters; if (_arg1 == -1){ _arg1 = (_local2.length - 1); }; return (_local2[_arg1].getItemAt(repeaterIndices[_arg1])); } public function executeBindings(_arg1:Boolean=false):void{ var _local2:Object = (((descriptor) && (descriptor.document))) ? descriptor.document : parentDocument; BindingManager.executeBindings(_local2, id, this); } public function replayAutomatableEvent(_arg1:Event):Boolean{ if (automationDelegate){ return (automationDelegate.replayAutomatableEvent(_arg1)); }; return (false); } mx_internal function getFontContext(_arg1:String, _arg2:Boolean, _arg3:Boolean):IFlexModuleFactory{ return (embeddedFontRegistry.getAssociatedModuleFactory(getEmbeddedFont(_arg1, _arg2, _arg3), moduleFactory)); } public function get instanceIndex():int{ return ((_instanceIndices) ? _instanceIndices[(_instanceIndices.length - 1)] : -1); } public function set measuredWidth(_arg1:Number):void{ _measuredWidth = _arg1; } public function effectFinished(_arg1:IEffectInstance):void{ _endingEffectInstances.push(_arg1); invalidateProperties(); UIComponentGlobals.layoutManager.addEventListener(FlexEvent.UPDATE_COMPLETE, updateCompleteHandler, false, 0, true); } mx_internal function set isEffectStarted(_arg1:Boolean):void{ _isEffectStarted = _arg1; } mx_internal function fillOverlay(_arg1:UIComponent, _arg2:uint, _arg3:RoundedRectangle=null):void{ if (!_arg3){ _arg3 = new RoundedRectangle(0, 0, unscaledWidth, unscaledHeight, 0); }; var _local4:Graphics = _arg1.graphics; _local4.clear(); _local4.beginFill(_arg2); _local4.drawRoundRect(_arg3.x, _arg3.y, _arg3.width, _arg3.height, (_arg3.cornerRadius * 2), (_arg3.cornerRadius * 2)); _local4.endFill(); } public function get instanceIndices():Array{ return ((_instanceIndices) ? _instanceIndices.slice(0) : null); } mx_internal function childAdded(_arg1:DisplayObject):void{ if ((_arg1 is UIComponent)){ if (!UIComponent(_arg1).initialized){ UIComponent(_arg1).initialize(); }; } else { if ((_arg1 is IUIComponent)){ IUIComponent(_arg1).initialize(); }; }; } public function globalToContent(_arg1:Point):Point{ return (globalToLocal(_arg1)); } mx_internal function removingChild(_arg1:DisplayObject):void{ } mx_internal function getEffectsForProperty(_arg1:String):Array{ return (((_affectedProperties[_arg1])!=undefined) ? _affectedProperties[_arg1] : []); } override public function removeChildAt(_arg1:int):DisplayObject{ var _local2:DisplayObject = getChildAt(_arg1); removingChild(_local2); $removeChild(_local2); childRemoved(_local2); return (_local2); } protected function measure():void{ measuredMinWidth = 0; measuredMinHeight = 0; measuredWidth = 0; measuredHeight = 0; } public function set owner(_arg1:DisplayObjectContainer):void{ _owner = _arg1; } mx_internal function getNonNullSystemManager():ISystemManager{ var _local1:ISystemManager = systemManager; if (!_local1){ _local1 = ISystemManager(SystemManager.getSWFRoot(this)); }; if (!_local1){ return (SystemManagerGlobals.topLevelSystemManagers[0]); }; return (_local1); } protected function get unscaledWidth():Number{ return ((width / Math.abs(scaleX))); } public function set processedDescriptors(_arg1:Boolean):void{ _processedDescriptors = _arg1; if (_arg1){ dispatchEvent(new FlexEvent(FlexEvent.INITIALIZE)); }; } private function processEffectFinished(_arg1:Array):void{ var _local3:int; var _local4:IEffectInstance; var _local5:IEffectInstance; var _local6:Array; var _local7:int; var _local8:String; var _local9:int; var _local2:int = (_effectsStarted.length - 1); while (_local2 >= 0) { _local3 = 0; while (_local3 < _arg1.length) { _local4 = _arg1[_local3]; if (_local4 == _effectsStarted[_local2]){ _local5 = _effectsStarted[_local2]; _effectsStarted.splice(_local2, 1); _local6 = _local5.effect.getAffectedProperties(); _local7 = 0; while (_local7 < _local6.length) { _local8 = _local6[_local7]; if (_affectedProperties[_local8] != undefined){ _local9 = 0; while (_local9 < _affectedProperties[_local8].length) { if (_affectedProperties[_local8][_local9] == _local4){ _affectedProperties[_local8].splice(_local9, 1); break; }; _local9++; }; if (_affectedProperties[_local8].length == 0){ delete _affectedProperties[_local8]; }; }; _local7++; }; break; }; _local3++; }; _local2--; }; isEffectStarted = ((_effectsStarted.length > 0)) ? true : false; if (((_local4) && (_local4.hideFocusRing))){ preventDrawFocus = false; }; } private function commitCurrentState():void{ var _local3:StateChangeEvent; var _local1:IEffect = (playStateTransition) ? getTransition(_currentState, requestedCurrentState) : null; var _local2:String = findCommonBaseState(_currentState, requestedCurrentState); var _local4:String = (_currentState) ? _currentState : ""; var _local5:State = getState(requestedCurrentState); if (_currentTransitionEffect){ _currentTransitionEffect.end(); }; initializeState(requestedCurrentState); if (_local1){ _local1.captureStartValues(); }; _local3 = new StateChangeEvent(StateChangeEvent.CURRENT_STATE_CHANGING); _local3.oldState = _local4; _local3.newState = (requestedCurrentState) ? requestedCurrentState : ""; dispatchEvent(_local3); if (isBaseState(_currentState)){ dispatchEvent(new FlexEvent(FlexEvent.EXIT_STATE)); }; removeState(_currentState, _local2); _currentState = requestedCurrentState; if (isBaseState(currentState)){ dispatchEvent(new FlexEvent(FlexEvent.ENTER_STATE)); } else { applyState(_currentState, _local2); }; _local3 = new StateChangeEvent(StateChangeEvent.CURRENT_STATE_CHANGE); _local3.oldState = _local4; _local3.newState = (_currentState) ? _currentState : ""; dispatchEvent(_local3); if (_local1){ UIComponentGlobals.layoutManager.validateNow(); _currentTransitionEffect = _local1; _local1.addEventListener(EffectEvent.EFFECT_END, transition_effectEndHandler); _local1.play(); }; } public function get includeInLayout():Boolean{ return (_includeInLayout); } private function dispatchResizeEvent():void{ var _local1:ResizeEvent = new ResizeEvent(ResizeEvent.RESIZE); _local1.oldWidth = oldWidth; _local1.oldHeight = oldHeight; dispatchEvent(_local1); oldWidth = width; oldHeight = height; } public function set maxWidth(_arg1:Number):void{ if (explicitMaxWidth == _arg1){ return; }; explicitMaxWidth = _arg1; } public function validateDisplayList():void{ var _local1:ISystemManager; var _local2:Number; var _local3:Number; if (invalidateDisplayListFlag){ _local1 = (parent as ISystemManager); if (_local1){ if ((((_local1 == systemManager.topLevelSystemManager)) && (!((_local1.document == this))))){ setActualSize(getExplicitOrMeasuredWidth(), getExplicitOrMeasuredHeight()); }; }; _local2 = ((scaleX == 0)) ? 0 : (width / scaleX); _local3 = ((scaleY == 0)) ? 0 : (height / scaleY); if (Math.abs((_local2 - lastUnscaledWidth)) < 1E-5){ _local2 = lastUnscaledWidth; }; if (Math.abs((_local3 - lastUnscaledHeight)) < 1E-5){ _local3 = lastUnscaledHeight; }; updateDisplayList(_local2, _local3); lastUnscaledWidth = _local2; lastUnscaledHeight = _local3; invalidateDisplayListFlag = false; }; } public function contentToGlobal(_arg1:Point):Point{ return (localToGlobal(_arg1)); } public function resolveAutomationIDPart(_arg1:Object):Array{ if (automationDelegate){ return (automationDelegate.resolveAutomationIDPart(_arg1)); }; return ([]); } public function set inheritingStyles(_arg1:Object):void{ _inheritingStyles = _arg1; } public function setFocus():void{ var _local1:ISystemManager = systemManager; if (((_local1) && (_local1.stage))){ if (UIComponentGlobals.callLaterDispatcherCount == 0){ _local1.stage.focus = this; UIComponentGlobals.nextFocusObject = null; } else { UIComponentGlobals.nextFocusObject = this; _local1.stage.addEventListener(Event.ENTER_FRAME, setFocusLater); }; } else { UIComponentGlobals.nextFocusObject = this; callLater(setFocusLater); }; } private function getTransition(_arg1:String, _arg2:String):IEffect{ var _local6:Transition; var _local3:IEffect; var _local4:int; if (!transitions){ return (null); }; if (!_arg1){ _arg1 = ""; }; if (!_arg2){ _arg2 = ""; }; var _local5:int; while (_local5 < transitions.length) { _local6 = transitions[_local5]; if ((((((_local6.fromState == "*")) && ((_local6.toState == "*")))) && ((_local4 < 1)))){ _local3 = _local6.effect; _local4 = 1; } else { if ((((((_local6.fromState == _arg1)) && ((_local6.toState == "*")))) && ((_local4 < 2)))){ _local3 = _local6.effect; _local4 = 2; } else { if ((((((_local6.fromState == "*")) && ((_local6.toState == _arg2)))) && ((_local4 < 3)))){ _local3 = _local6.effect; _local4 = 3; } else { if ((((((_local6.fromState == _arg1)) && ((_local6.toState == _arg2)))) && ((_local4 < 4)))){ _local3 = _local6.effect; _local4 = 4; break; }; }; }; }; _local5++; }; return (_local3); } public function set initialized(_arg1:Boolean):void{ _initialized = _arg1; if (_arg1){ setVisible(_visible, true); dispatchEvent(new FlexEvent(FlexEvent.CREATION_COMPLETE)); }; } final mx_internal function set $y(_arg1:Number):void{ super.y = _arg1; } public function owns(_arg1:DisplayObject):Boolean{ var _local2:IChildList = ((this is IRawChildrenContainer)) ? IRawChildrenContainer(this).rawChildren : IChildList(this); if (_local2.contains(_arg1)){ return (true); }; while (((_arg1) && (!((_arg1 == this))))) { if ((_arg1 is IUIComponent)){ _arg1 = IUIComponent(_arg1).owner; } else { _arg1 = _arg1.parent; }; }; return ((_arg1 == this)); } public function setVisible(_arg1:Boolean, _arg2:Boolean=false):void{ _visible = _arg1; if (!initialized){ return; }; if ($visible == _arg1){ return; }; $visible = _arg1; if (!_arg2){ dispatchEvent(new FlexEvent((_arg1) ? FlexEvent.SHOW : FlexEvent.HIDE)); }; } final mx_internal function $addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{ return (super.addChildAt(_arg1, _arg2)); } public function deleteReferenceOnParentDocument(_arg1:IFlexDisplayObject):void{ var _local2:Array; var _local3:Object; var _local4:Array; var _local5:int; var _local6:int; var _local7:int; var _local8:Object; var _local9:PropertyChangeEvent; if (((id) && (!((id == ""))))){ _local2 = _instanceIndices; if (!_local2){ _arg1[id] = null; } else { _local3 = _arg1[id]; if (!_local3){ return; }; _local4 = []; _local4.push(_local3); _local5 = _local2.length; _local6 = 0; while (_local6 < (_local5 - 1)) { _local8 = _local3[_local2[_local6]]; if (!_local8){ return; }; _local3 = _local8; _local4.push(_local3); _local6++; }; _local3.splice(_local2[(_local5 - 1)], 1); _local7 = (_local4.length - 1); while (_local7 > 0) { if (_local4[_local7].length == 0){ _local4[(_local7 - 1)].splice(_local2[_local7], 1); }; _local7--; }; if ((((_local4.length > 0)) && ((_local4[0].length == 0)))){ _arg1[id] = null; } else { _local9 = PropertyChangeEvent.createUpdateEvent(_arg1, id, _arg1[id], _arg1[id]); _arg1.dispatchEvent(_local9); }; }; }; } public function get nonInheritingStyles():Object{ return (_nonInheritingStyles); } public function effectStarted(_arg1:IEffectInstance):void{ var _local4:String; _effectsStarted.push(_arg1); var _local2:Array = _arg1.effect.getAffectedProperties(); var _local3:int; while (_local3 < _local2.length) { _local4 = _local2[_local3]; if (_affectedProperties[_local4] == undefined){ _affectedProperties[_local4] = []; }; _affectedProperties[_local4].push(_arg1); _local3++; }; isEffectStarted = true; if (_arg1.hideFocusRing){ preventDrawFocus = true; drawFocus(false); }; } final mx_internal function set $x(_arg1:Number):void{ super.x = _arg1; } private function applyState(_arg1:String, _arg2:String):void{ var _local4:Array; var _local5:int; var _local3:State = getState(_arg1); if (_arg1 == _arg2){ return; }; if (_local3){ if (_local3.basedOn != _arg2){ applyState(_local3.basedOn, _arg2); }; _local4 = _local3.overrides; _local5 = 0; while (_local5 < _local4.length) { _local4[_local5].apply(this); _local5++; }; _local3.dispatchEnterState(); }; } protected function commitProperties():void{ var _local1:Number; var _local2:Number; if (_scaleX != oldScaleX){ _local1 = Math.abs((_scaleX / oldScaleX)); if (!isNaN(explicitMinWidth)){ explicitMinWidth = (explicitMinWidth * _local1); }; if (!isNaN(explicitWidth)){ explicitWidth = (explicitWidth * _local1); }; if (!isNaN(explicitMaxWidth)){ explicitMaxWidth = (explicitMaxWidth * _local1); }; _width = (_width * _local1); super.scaleX = (oldScaleX = _scaleX); }; if (_scaleY != oldScaleY){ _local2 = Math.abs((_scaleY / oldScaleY)); if (!isNaN(explicitMinHeight)){ explicitMinHeight = (explicitMinHeight * _local2); }; if (!isNaN(explicitHeight)){ explicitHeight = (explicitHeight * _local2); }; if (!isNaN(explicitMaxHeight)){ explicitMaxHeight = (explicitMaxHeight * _local2); }; _height = (_height * _local2); super.scaleY = (oldScaleY = _scaleY); }; if (((!((x == oldX))) || (!((y == oldY))))){ dispatchMoveEvent(); }; if (((!((width == oldWidth))) || (!((height == oldHeight))))){ dispatchResizeEvent(); }; if (errorStringChanged){ errorStringChanged = false; setBorderColorForErrorString(); }; } public function get percentHeight():Number{ return (_percentHeight); } override public function get width():Number{ return (_width); } final mx_internal function get $parent():DisplayObjectContainer{ return (super.parent); } public function set explicitMinWidth(_arg1:Number):void{ if (_explicitMinWidth == _arg1){ return; }; _explicitMinWidth = _arg1; invalidateSize(); var _local2:IInvalidating = (parent as IInvalidating); if (_local2){ _local2.invalidateSize(); _local2.invalidateDisplayList(); }; dispatchEvent(new Event("explicitMinWidthChanged")); } public function get isPopUp():Boolean{ return (_isPopUp); } private function measureSizes():Boolean{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local1:Boolean; if (!invalidateSizeFlag){ return (_local1); }; if (((isNaN(explicitWidth)) || (isNaN(explicitHeight)))){ _local4 = Math.abs(scaleX); _local5 = Math.abs(scaleY); if (_local4 != 1){ _measuredMinWidth = (_measuredMinWidth / _local4); _measuredWidth = (_measuredWidth / _local4); }; if (_local5 != 1){ _measuredMinHeight = (_measuredMinHeight / _local5); _measuredHeight = (_measuredHeight / _local5); }; measure(); invalidateSizeFlag = false; if (((!(isNaN(explicitMinWidth))) && ((measuredWidth < explicitMinWidth)))){ measuredWidth = explicitMinWidth; }; if (((!(isNaN(explicitMaxWidth))) && ((measuredWidth > explicitMaxWidth)))){ measuredWidth = explicitMaxWidth; }; if (((!(isNaN(explicitMinHeight))) && ((measuredHeight < explicitMinHeight)))){ measuredHeight = explicitMinHeight; }; if (((!(isNaN(explicitMaxHeight))) && ((measuredHeight > explicitMaxHeight)))){ measuredHeight = explicitMaxHeight; }; if (_local4 != 1){ _measuredMinWidth = (_measuredMinWidth * _local4); _measuredWidth = (_measuredWidth * _local4); }; if (_local5 != 1){ _measuredMinHeight = (_measuredMinHeight * _local5); _measuredHeight = (_measuredHeight * _local5); }; } else { invalidateSizeFlag = false; _measuredMinWidth = 0; _measuredMinHeight = 0; }; adjustSizesForScaleChanges(); if (isNaN(oldMinWidth)){ oldMinWidth = (isNaN(explicitMinWidth)) ? measuredMinWidth : explicitMinWidth; oldMinHeight = (isNaN(explicitMinHeight)) ? measuredMinHeight : explicitMinHeight; oldExplicitWidth = (isNaN(explicitWidth)) ? measuredWidth : explicitWidth; oldExplicitHeight = (isNaN(explicitHeight)) ? measuredHeight : explicitHeight; _local1 = true; } else { _local3 = (isNaN(explicitMinWidth)) ? measuredMinWidth : explicitMinWidth; if (_local3 != oldMinWidth){ oldMinWidth = _local3; _local1 = true; }; _local3 = (isNaN(explicitMinHeight)) ? measuredMinHeight : explicitMinHeight; if (_local3 != oldMinHeight){ oldMinHeight = _local3; _local1 = true; }; _local3 = (isNaN(explicitWidth)) ? measuredWidth : explicitWidth; if (_local3 != oldExplicitWidth){ oldExplicitWidth = _local3; _local1 = true; }; _local3 = (isNaN(explicitHeight)) ? measuredHeight : explicitHeight; if (_local3 != oldExplicitHeight){ oldExplicitHeight = _local3; _local1 = true; }; }; return (_local1); } public function get automationTabularData():Object{ if (automationDelegate){ return (automationDelegate.automationTabularData); }; return (null); } public function validateNow():void{ UIComponentGlobals.layoutManager.validateClient(this); } public function finishPrint(_arg1:Object, _arg2:IFlexDisplayObject):void{ } public function get repeaters():Array{ return ((_repeaters) ? _repeaters.slice(0) : []); } private function dispatchMoveEvent():void{ var _local1:MoveEvent = new MoveEvent(MoveEvent.MOVE); _local1.oldX = oldX; _local1.oldY = oldY; dispatchEvent(_local1); oldX = x; oldY = y; } public function drawFocus(_arg1:Boolean):void{ var _local4:DisplayObjectContainer; var _local5:Class; if (!parent){ return; }; var _local2:DisplayObject = getFocusObject(); var _local3:Sprite = (focusManager) ? focusManager.focusPane : null; if (((_arg1) && (!(preventDrawFocus)))){ _local4 = _local3.parent; if (_local4 != parent){ if (_local4){ if ((_local4 is ISystemManager)){ ISystemManager(_local4).focusPane = null; } else { IUIComponent(_local4).focusPane = null; }; }; if ((parent is ISystemManager)){ ISystemManager(parent).focusPane = _local3; } else { IUIComponent(parent).focusPane = _local3; }; }; _local5 = getStyle("focusSkin"); if (((_local2) && (!((_local2 is _local5))))){ _local3.removeChild(_local2); _local2 = null; }; if (!_local2){ _local2 = new (_local5); _local2.name = "focus"; _local3.addChild(_local2); }; if ((_local2 is ILayoutManagerClient)){ ILayoutManagerClient(_local2).nestLevel = nestLevel; }; if ((_local2 is ISimpleStyleClient)){ ISimpleStyleClient(_local2).styleName = this; }; addEventListener(MoveEvent.MOVE, focusObj_moveHandler, true); addEventListener(MoveEvent.MOVE, focusObj_moveHandler); addEventListener(ResizeEvent.RESIZE, focusObj_resizeHandler, true); addEventListener(ResizeEvent.RESIZE, focusObj_resizeHandler); addEventListener(Event.REMOVED, focusObj_removedHandler, true); _local2.visible = true; hasFocusRect = true; adjustFocusRect(); } else { if (hasFocusRect){ hasFocusRect = false; if (_local2){ _local2.visible = false; }; removeEventListener(MoveEvent.MOVE, focusObj_moveHandler); removeEventListener(MoveEvent.MOVE, focusObj_moveHandler, true); removeEventListener(ResizeEvent.RESIZE, focusObj_resizeHandler, true); removeEventListener(ResizeEvent.RESIZE, focusObj_resizeHandler); removeEventListener(Event.REMOVED, focusObj_removedHandler, true); }; }; } public function get flexContextMenu():IFlexContextMenu{ return (_flexContextMenu); } private function get indexedID():String{ var _local1:String = id; var _local2:Array = instanceIndices; if (_local2){ _local1 = (_local1 + (("[" + _local2.join("][")) + "]")); }; return (_local1); } public function get measuredMinHeight():Number{ return (_measuredMinHeight); } mx_internal function addingChild(_arg1:DisplayObject):void{ if ((((_arg1 is IUIComponent)) && (!(IUIComponent(_arg1).document)))){ IUIComponent(_arg1).document = (document) ? document : ApplicationGlobals.application; }; if ((((_arg1 is UIComponent)) && ((UIComponent(_arg1).moduleFactory == null)))){ if (moduleFactory != null){ UIComponent(_arg1).moduleFactory = moduleFactory; } else { if ((((document is IFlexModule)) && (!((document.moduleFactory == null))))){ UIComponent(_arg1).moduleFactory = document.moduleFactory; } else { if ((((parent is UIComponent)) && (!((UIComponent(parent).moduleFactory == null))))){ UIComponent(_arg1).moduleFactory = UIComponent(parent).moduleFactory; }; }; }; }; if ((((((_arg1 is IFontContextComponent)) && ((!(_arg1) is UIComponent)))) && ((IFontContextComponent(_arg1).fontContext == null)))){ IFontContextComponent(_arg1).fontContext = moduleFactory; }; if ((_arg1 is IUIComponent)){ IUIComponent(_arg1).parentChanged(this); }; if ((_arg1 is ILayoutManagerClient)){ ILayoutManagerClient(_arg1).nestLevel = (nestLevel + 1); } else { if ((_arg1 is IUITextField)){ IUITextField(_arg1).nestLevel = (nestLevel + 1); }; }; if ((_arg1 is InteractiveObject)){ if (doubleClickEnabled){ InteractiveObject(_arg1).doubleClickEnabled = true; }; }; if ((_arg1 is IStyleClient)){ IStyleClient(_arg1).regenerateStyleCache(true); } else { if ((((_arg1 is IUITextField)) && (IUITextField(_arg1).inheritingStyles))){ StyleProtoChain.initTextField(IUITextField(_arg1)); }; }; if ((_arg1 is ISimpleStyleClient)){ ISimpleStyleClient(_arg1).styleChanged(null); }; if ((_arg1 is IStyleClient)){ IStyleClient(_arg1).notifyStyleChangeInChildren(null, true); }; if ((_arg1 is UIComponent)){ UIComponent(_arg1).initThemeColor(); }; if ((_arg1 is UIComponent)){ UIComponent(_arg1).stylesInitialized(); }; } public function set repeaterIndices(_arg1:Array):void{ _repeaterIndices = _arg1; } protected function initializationComplete():void{ processedDescriptors = true; } public function set moduleFactory(_arg1:IFlexModuleFactory):void{ var _local4:UIComponent; var _local2:int = numChildren; var _local3:int; while (_local3 < _local2) { _local4 = (getChildAt(_local3) as UIComponent); if (!_local4){ } else { if ((((_local4.moduleFactory == null)) || ((_local4.moduleFactory == _moduleFactory)))){ _local4.moduleFactory = _arg1; }; }; _local3++; }; _moduleFactory = _arg1; } private function focusObj_removedHandler(_arg1:Event):void{ if (_arg1.target != this){ return; }; var _local2:DisplayObject = getFocusObject(); if (_local2){ _local2.visible = false; }; } mx_internal function updateCallbacks():void{ if (invalidateDisplayListFlag){ UIComponentGlobals.layoutManager.invalidateDisplayList(this); }; if (invalidateSizeFlag){ UIComponentGlobals.layoutManager.invalidateSize(this); }; if (invalidatePropertiesFlag){ UIComponentGlobals.layoutManager.invalidateProperties(this); }; if (systemManager){ if ((((methodQueue.length > 0)) && (!(listeningForRender)))){ _systemManager.stage.addEventListener(Event.RENDER, callLaterDispatcher); _systemManager.stage.addEventListener(Event.ENTER_FRAME, callLaterDispatcher); listeningForRender = true; }; _systemManager.stage.invalidate(); }; } public function set styleDeclaration(_arg1:CSSStyleDeclaration):void{ _styleDeclaration = _arg1; } override public function set doubleClickEnabled(_arg1:Boolean):void{ var _local2:IChildList; var _local4:InteractiveObject; super.doubleClickEnabled = _arg1; if ((this is IRawChildrenContainer)){ _local2 = IRawChildrenContainer(this).rawChildren; } else { _local2 = IChildList(this); }; var _local3:int; while (_local3 < _local2.numChildren) { _local4 = (_local2.getChildAt(_local3) as InteractiveObject); if (_local4){ _local4.doubleClickEnabled = _arg1; }; _local3++; }; } public function prepareToPrint(_arg1:IFlexDisplayObject):Object{ return (null); } public function get minHeight():Number{ if (!isNaN(explicitMinHeight)){ return (explicitMinHeight); }; return (measuredMinHeight); } public function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void{ var _local5:ISimpleStyleClient; cachedTextFormat = null; var _local3:int = numChildren; var _local4:int; while (_local4 < _local3) { _local5 = (getChildAt(_local4) as ISimpleStyleClient); if (_local5){ _local5.styleChanged(_arg1); if ((_local5 is IStyleClient)){ IStyleClient(_local5).notifyStyleChangeInChildren(_arg1, _arg2); }; }; _local4++; }; } public function get contentMouseX():Number{ return (mouseX); } public function get contentMouseY():Number{ return (mouseY); } public function get tweeningProperties():Array{ return (_tweeningProperties); } public function set explicitMaxWidth(_arg1:Number):void{ if (_explicitMaxWidth == _arg1){ return; }; _explicitMaxWidth = _arg1; invalidateSize(); var _local2:IInvalidating = (parent as IInvalidating); if (_local2){ _local2.invalidateSize(); _local2.invalidateDisplayList(); }; dispatchEvent(new Event("explicitMaxWidthChanged")); } public function set document(_arg1:Object):void{ var _local4:IUIComponent; var _local2:int = numChildren; var _local3:int; while (_local3 < _local2) { _local4 = (getChildAt(_local3) as IUIComponent); if (!_local4){ } else { if ((((_local4.document == _document)) || ((_local4.document == ApplicationGlobals.application)))){ _local4.document = _arg1; }; }; _local3++; }; _document = _arg1; } public function validateSize(_arg1:Boolean=false):void{ var _local2:int; var _local3:DisplayObject; var _local4:Boolean; var _local5:IInvalidating; if (_arg1){ _local2 = 0; while (_local2 < numChildren) { _local3 = getChildAt(_local2); if ((_local3 is ILayoutManagerClient)){ (_local3 as ILayoutManagerClient).validateSize(true); }; _local2++; }; }; if (invalidateSizeFlag){ _local4 = measureSizes(); if (((_local4) && (includeInLayout))){ invalidateDisplayList(); _local5 = (parent as IInvalidating); if (_local5){ _local5.invalidateSize(); _local5.invalidateDisplayList(); }; }; }; } public function get validationSubField():String{ return (_validationSubField); } override public function dispatchEvent(_arg1:Event):Boolean{ if (dispatchEventHook != null){ dispatchEventHook(_arg1, this); }; return (super.dispatchEvent(_arg1)); } public function set id(_arg1:String):void{ _id = _arg1; } private function overlay_resizeHandler(_arg1:Event):void{ fillOverlay(overlay, overlayColor, null); } public function set updateCompletePendingFlag(_arg1:Boolean):void{ _updateCompletePendingFlag = _arg1; } final mx_internal function get $height():Number{ return (super.height); } protected function attachOverlay():void{ addChild(overlay); } public function get explicitMinHeight():Number{ return (_explicitMinHeight); } override public function set height(_arg1:Number):void{ var _local2:IInvalidating; if (explicitHeight != _arg1){ explicitHeight = _arg1; invalidateSize(); }; if (_height != _arg1){ invalidateProperties(); invalidateDisplayList(); _local2 = (parent as IInvalidating); if (((_local2) && (includeInLayout))){ _local2.invalidateSize(); _local2.invalidateDisplayList(); }; _height = _arg1; dispatchEvent(new Event("heightChanged")); }; } public function get numAutomationChildren():int{ if (automationDelegate){ return (automationDelegate.numAutomationChildren); }; return (0); } public function get parentApplication():Object{ var _local2:UIComponent; var _local1:Object = systemManager.document; if (_local1 == this){ _local2 = (_local1.systemManager.parent as UIComponent); _local1 = (_local2) ? _local2.systemManager.document : null; }; return (_local1); } public function localToContent(_arg1:Point):Point{ return (_arg1); } public function get repeaterIndex():int{ return ((_repeaterIndices) ? _repeaterIndices[(_repeaterIndices.length - 1)] : -1); } private function removeState(_arg1:String, _arg2:String):void{ var _local4:Array; var _local5:int; var _local3:State = getState(_arg1); if (_arg1 == _arg2){ return; }; if (_local3){ _local3.dispatchExitState(); _local4 = _local3.overrides; _local5 = _local4.length; while (_local5) { _local4[(_local5 - 1)].remove(this); _local5--; }; if (_local3.basedOn != _arg2){ removeState(_local3.basedOn, _arg2); }; }; } public function setStyle(_arg1:String, _arg2):void{ if (_arg1 == "styleName"){ styleName = _arg2; return; }; if (EffectManager.getEventForEffectTrigger(_arg1) != ""){ EffectManager.setStyle(_arg1, this); }; var _local3:Boolean = StyleManager.isInheritingStyle(_arg1); var _local4 = !((inheritingStyles == UIComponent.STYLE_UNINITIALIZED)); var _local5 = !((getStyle(_arg1) == _arg2)); if (!_styleDeclaration){ _styleDeclaration = new CSSStyleDeclaration(); _styleDeclaration.setStyle(_arg1, _arg2); if (_local4){ regenerateStyleCache(_local3); }; } else { _styleDeclaration.setStyle(_arg1, _arg2); }; if (((_local4) && (_local5))){ styleChanged(_arg1); notifyStyleChangeInChildren(_arg1, _local3); }; } public function get showInAutomationHierarchy():Boolean{ return (_showInAutomationHierarchy); } public function get systemManager():ISystemManager{ var _local1:DisplayObject; var _local2:DisplayObjectContainer; var _local3:IUIComponent; if (((!(_systemManager)) || (_systemManagerDirty))){ _local1 = root; if (((_local1) && (!((_local1 is Stage))))){ _systemManager = (_local1 as ISystemManager); } else { if (_local1){ _systemManager = (Stage(_local1).getChildAt(0) as ISystemManager); } else { _local2 = parent; while (_local2) { _local3 = (_local2 as IUIComponent); if (_local3){ _systemManager = _local3.systemManager; break; }; _local2 = _local2.parent; }; }; }; _systemManagerDirty = false; }; return (_systemManager); } private function isBaseState(_arg1:String):Boolean{ return (((!(_arg1)) || ((_arg1 == "")))); } public function set enabled(_arg1:Boolean):void{ _enabled = _arg1; cachedTextFormat = null; invalidateDisplayList(); dispatchEvent(new Event("enabledChanged")); } public function set focusEnabled(_arg1:Boolean):void{ _focusEnabled = _arg1; } public function get minWidth():Number{ if (!isNaN(explicitMinWidth)){ return (explicitMinWidth); }; return (measuredMinWidth); } private function setFocusLater(_arg1:Event=null):void{ var _local2:ISystemManager = systemManager; if (((_local2) && (_local2.stage))){ _local2.stage.removeEventListener(Event.ENTER_FRAME, setFocusLater); if (UIComponentGlobals.nextFocusObject){ _local2.stage.focus = UIComponentGlobals.nextFocusObject; }; UIComponentGlobals.nextFocusObject = null; }; } public function get currentState():String{ return ((_currentStateChanged) ? requestedCurrentState : _currentState); } public function initializeRepeaterArrays(_arg1:IRepeaterClient):void{ if (((((((_arg1) && (_arg1.instanceIndices))) && (!(_instanceIndices)))) && (!(_arg1.isDocument)))){ _instanceIndices = _arg1.instanceIndices; _repeaters = _arg1.repeaters; _repeaterIndices = _arg1.repeaterIndices; }; } public function get baselinePosition():Number{ if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ return (NaN); }; if (!validateBaselinePosition()){ return (NaN); }; var _local1:TextLineMetrics = measureText("Wj"); if (height < ((2 + _local1.ascent) + 2)){ return (int((height + ((_local1.ascent - height) / 2)))); }; return ((2 + _local1.ascent)); } public function get measuredWidth():Number{ return (_measuredWidth); } public function set instanceIndices(_arg1:Array):void{ _instanceIndices = _arg1; } public function set cachePolicy(_arg1:String):void{ if (_cachePolicy != _arg1){ _cachePolicy = _arg1; if (_arg1 == UIComponentCachePolicy.OFF){ cacheAsBitmap = false; } else { if (_arg1 == UIComponentCachePolicy.ON){ cacheAsBitmap = true; } else { cacheAsBitmap = (cacheAsBitmapCount > 0); }; }; }; } public function get automationValue():Array{ if (automationDelegate){ return (automationDelegate.automationValue); }; return ([]); } private function addedHandler(_arg1:Event):void{ if (_arg1.eventPhase != EventPhase.AT_TARGET){ return; }; if ((((parent is IContainer)) && (IContainer(parent).creatingContentPane))){ _arg1.stopImmediatePropagation(); return; }; } public function parentChanged(_arg1:DisplayObjectContainer):void{ if (!_arg1){ _parent = null; _nestLevel = 0; } else { if ((_arg1 is IStyleClient)){ _parent = _arg1; } else { if ((_arg1 is ISystemManager)){ _parent = _arg1; } else { _parent = _arg1.parent; }; }; }; } public function get owner():DisplayObjectContainer{ return ((_owner) ? _owner : parent); } public function get processedDescriptors():Boolean{ return (_processedDescriptors); } override public function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{ var _local3:DisplayObjectContainer = _arg1.parent; if (((_local3) && (!((_local3 is Loader))))){ _local3.removeChild(_arg1); }; if (((overlayReferenceCount) && (!((_arg1 == overlay))))){ _arg2 = Math.min(_arg2, Math.max(0, (super.numChildren - 1))); }; addingChild(_arg1); $addChildAt(_arg1, _arg2); childAdded(_arg1); return (_arg1); } public function get maxWidth():Number{ return ((isNaN(explicitMaxWidth)) ? DEFAULT_MAX_WIDTH : explicitMaxWidth); } override public function set alpha(_arg1:Number):void{ super.alpha = _arg1; dispatchEvent(new Event("alphaChanged")); } private function removedHandler(_arg1:Event):void{ if (_arg1.eventPhase != EventPhase.AT_TARGET){ return; }; if ((((parent is IContainer)) && (IContainer(parent).creatingContentPane))){ _arg1.stopImmediatePropagation(); return; }; _systemManagerDirty = true; } public function callLater(_arg1:Function, _arg2:Array=null):void{ methodQueue.push(new MethodQueueElement(_arg1, _arg2)); var _local3:ISystemManager = systemManager; if (((_local3) && (_local3.stage))){ if (!listeningForRender){ _local3.stage.addEventListener(Event.RENDER, callLaterDispatcher); _local3.stage.addEventListener(Event.ENTER_FRAME, callLaterDispatcher); listeningForRender = true; }; _local3.stage.invalidate(); }; } public function get initialized():Boolean{ return (_initialized); } private function callLaterDispatcher2(_arg1:Event):void{ var _local6:MethodQueueElement; if (UIComponentGlobals.callLaterSuspendCount > 0){ return; }; var _local2:ISystemManager = systemManager; if (((((_local2) && (_local2.stage))) && (listeningForRender))){ _local2.stage.removeEventListener(Event.RENDER, callLaterDispatcher); _local2.stage.removeEventListener(Event.ENTER_FRAME, callLaterDispatcher); listeningForRender = false; }; var _local3:Array = methodQueue; methodQueue = []; var _local4:int = _local3.length; var _local5:int; while (_local5 < _local4) { _local6 = MethodQueueElement(_local3[_local5]); _local6.method.apply(null, _local6.args); _local5++; }; } public function measureHTMLText(_arg1:String):TextLineMetrics{ return (determineTextFormatFromStyles().measureHTMLText(_arg1)); } public function set descriptor(_arg1:UIComponentDescriptor):void{ _descriptor = _arg1; } private function getState(_arg1:String):State{ if (((!(states)) || (isBaseState(_arg1)))){ return (null); }; var _local2:int; while (_local2 < states.length) { if (states[_local2].name == _arg1){ return (states[_local2]); }; _local2++; }; var _local3:String = resourceManager.getString("core", "stateUndefined", [_arg1]); throw (new ArgumentError(_local3)); } public function validateProperties():void{ if (invalidatePropertiesFlag){ commitProperties(); invalidatePropertiesFlag = false; }; } mx_internal function get documentDescriptor():UIComponentDescriptor{ return (_documentDescriptor); } public function set includeInLayout(_arg1:Boolean):void{ var _local2:IInvalidating; if (_includeInLayout != _arg1){ _includeInLayout = _arg1; _local2 = (parent as IInvalidating); if (_local2){ _local2.invalidateSize(); _local2.invalidateDisplayList(); }; dispatchEvent(new Event("includeInLayoutChanged")); }; } public function getClassStyleDeclarations():Array{ var myApplicationDomain:ApplicationDomain; var cache:Array; var myRoot:DisplayObject; var s:CSSStyleDeclaration; var factory:IFlexModuleFactory = ModuleManager.getAssociatedFactory(this); if (factory != null){ myApplicationDomain = ApplicationDomain(factory.info()["currentDomain"]); } else { myRoot = SystemManager.getSWFRoot(this); if (!myRoot){ return ([]); }; myApplicationDomain = myRoot.loaderInfo.applicationDomain; }; var className:String = getQualifiedClassName(this); className = className.replace("::", "."); cache = StyleManager.typeSelectorCache[className]; if (cache){ return (cache); }; var decls:Array = []; var classNames:Array = []; var caches:Array = []; var declcache:Array = []; while (((((!((className == null))) && (!((className == "mx.core.UIComponent"))))) && (!((className == "mx.core.UITextField"))))) { cache = StyleManager.typeSelectorCache[className]; if (cache){ decls = decls.concat(cache); break; }; s = StyleManager.getStyleDeclaration(className); if (s){ decls.unshift(s); classNames.push(className); caches.push(classNames); declcache.push(decls); decls = []; classNames = []; } else { classNames.push(className); }; try { className = getQualifiedSuperclassName(myApplicationDomain.getDefinition(className)); className = className.replace("::", "."); } catch(e:ReferenceError) { className = null; }; }; caches.push(classNames); declcache.push(decls); decls = []; while (caches.length) { classNames = caches.pop(); decls = decls.concat(declcache.pop()); while (classNames.length) { StyleManager.typeSelectorCache[classNames.pop()] = decls; }; }; return (decls); } public function set measuredMinWidth(_arg1:Number):void{ _measuredMinWidth = _arg1; } private function initializeState(_arg1:String):void{ var _local2:State = getState(_arg1); while (_local2) { _local2.initialize(); _local2 = getState(_local2.basedOn); }; } mx_internal function initProtoChain():void{ var _local1:CSSStyleDeclaration; var _local7:Object; var _local8:CSSStyleDeclaration; if (styleName){ if ((styleName is CSSStyleDeclaration)){ _local1 = CSSStyleDeclaration(styleName); } else { if ((((styleName is IFlexDisplayObject)) || ((styleName is IStyleClient)))){ StyleProtoChain.initProtoChainForUIComponentStyleName(this); return; }; if ((styleName is String)){ _local1 = StyleManager.getStyleDeclaration(("." + styleName)); }; }; }; var _local2:Object = StyleManager.stylesRoot; if (((_local2) && (_local2.effects))){ registerEffects(_local2.effects); }; var _local3:IStyleClient = (parent as IStyleClient); if (_local3){ _local7 = _local3.inheritingStyles; if (_local7 == UIComponent.STYLE_UNINITIALIZED){ _local7 = _local2; }; } else { if (isPopUp){ if ((((((FlexVersion.compatibilityVersion >= FlexVersion.VERSION_3_0)) && (_owner))) && ((_owner is IStyleClient)))){ _local7 = IStyleClient(_owner).inheritingStyles; } else { _local7 = ApplicationGlobals.application.inheritingStyles; }; } else { _local7 = StyleManager.stylesRoot; }; }; var _local4:Array = getClassStyleDeclarations(); var _local5:int = _local4.length; var _local6:int; while (_local6 < _local5) { _local8 = _local4[_local6]; _local7 = _local8.addStyleToProtoChain(_local7, this); _local2 = _local8.addStyleToProtoChain(_local2, this); if (_local8.effects){ registerEffects(_local8.effects); }; _local6++; }; if (_local1){ _local7 = _local1.addStyleToProtoChain(_local7, this); _local2 = _local1.addStyleToProtoChain(_local2, this); if (_local1.effects){ registerEffects(_local1.effects); }; }; inheritingStyles = (_styleDeclaration) ? _styleDeclaration.addStyleToProtoChain(_local7, this) : _local7; nonInheritingStyles = (_styleDeclaration) ? _styleDeclaration.addStyleToProtoChain(_local2, this) : _local2; } public function get repeaterIndices():Array{ return ((_repeaterIndices) ? _repeaterIndices.slice() : []); } override public function removeChild(_arg1:DisplayObject):DisplayObject{ removingChild(_arg1); $removeChild(_arg1); childRemoved(_arg1); return (_arg1); } private function focusObj_moveHandler(_arg1:MoveEvent):void{ adjustFocusRect(); } public function get styleDeclaration():CSSStyleDeclaration{ return (_styleDeclaration); } override public function get doubleClickEnabled():Boolean{ return (super.doubleClickEnabled); } public function contentToLocal(_arg1:Point):Point{ return (_arg1); } private function creationCompleteHandler(_arg1:FlexEvent):void{ if (_currentStateChanged){ _currentStateChanged = false; commitCurrentState(); validateNow(); }; removeEventListener(FlexEvent.CREATION_COMPLETE, creationCompleteHandler); } public function set measuredHeight(_arg1:Number):void{ _measuredHeight = _arg1; } protected function createChildren():void{ } public function get activeEffects():Array{ return (_effectsStarted); } override public function setChildIndex(_arg1:DisplayObject, _arg2:int):void{ if (((overlayReferenceCount) && (!((_arg1 == overlay))))){ _arg2 = Math.min(_arg2, Math.max(0, (super.numChildren - 2))); }; super.setChildIndex(_arg1, _arg2); } public function regenerateStyleCache(_arg1:Boolean):void{ var _local5:DisplayObject; initProtoChain(); var _local2:IChildList = ((this is IRawChildrenContainer)) ? IRawChildrenContainer(this).rawChildren : IChildList(this); var _local3:int = _local2.numChildren; var _local4:int; while (_local4 < _local3) { _local5 = _local2.getChildAt(_local4); if ((_local5 is IStyleClient)){ if (IStyleClient(_local5).inheritingStyles != UIComponent.STYLE_UNINITIALIZED){ IStyleClient(_local5).regenerateStyleCache(_arg1); }; } else { if ((_local5 is IUITextField)){ if (IUITextField(_local5).inheritingStyles){ StyleProtoChain.initTextField(IUITextField(_local5)); }; }; }; _local4++; }; } public function get updateCompletePendingFlag():Boolean{ return (_updateCompletePendingFlag); } protected function focusOutHandler(_arg1:FocusEvent):void{ if (isOurFocus(DisplayObject(_arg1.target))){ drawFocus(false); }; } public function getFocus():InteractiveObject{ var _local1:ISystemManager = systemManager; if (!_local1){ return (null); }; if (UIComponentGlobals.nextFocusObject){ return (UIComponentGlobals.nextFocusObject); }; return (_local1.stage.focus); } public function endEffectsStarted():void{ var _local1:int = _effectsStarted.length; var _local2:int; while (_local2 < _local1) { _effectsStarted[_local2].end(); _local2++; }; } protected function get unscaledHeight():Number{ return ((height / Math.abs(scaleY))); } public function get enabled():Boolean{ return (_enabled); } public function get focusEnabled():Boolean{ return (_focusEnabled); } override public function set cacheAsBitmap(_arg1:Boolean):void{ super.cacheAsBitmap = _arg1; cacheAsBitmapCount = (_arg1) ? 1 : 0; } mx_internal function removeOverlay():void{ if ((((((overlayReferenceCount > 0)) && ((--overlayReferenceCount == 0)))) && (overlay))){ removeEventListener("resize", overlay_resizeHandler); if (super.getChildByName("overlay")){ $removeChild(overlay); }; overlay = null; }; } public function set cacheHeuristic(_arg1:Boolean):void{ if (_cachePolicy == UIComponentCachePolicy.AUTO){ if (_arg1){ cacheAsBitmapCount++; } else { if (cacheAsBitmapCount != 0){ cacheAsBitmapCount--; }; }; super.cacheAsBitmap = !((cacheAsBitmapCount == 0)); }; } public function get cachePolicy():String{ return (_cachePolicy); } public function set maxHeight(_arg1:Number):void{ if (explicitMaxHeight == _arg1){ return; }; explicitMaxHeight = _arg1; } public function getConstraintValue(_arg1:String){ return (getStyle(_arg1)); } public function set focusManager(_arg1:IFocusManager):void{ _focusManager = _arg1; } public function clearStyle(_arg1:String):void{ setStyle(_arg1, undefined); } public function get descriptor():UIComponentDescriptor{ return (_descriptor); } public function set nonInheritingStyles(_arg1:Object):void{ _nonInheritingStyles = _arg1; } public function get cursorManager():ICursorManager{ var _local2:ICursorManager; var _local1:DisplayObject = parent; while (_local1) { if ((((_local1 is IUIComponent)) && (("cursorManager" in _local1)))){ _local2 = _local1["cursorManager"]; return (_local2); }; _local1 = _local1.parent; }; return (CursorManager.getInstance()); } public function set automationDelegate(_arg1:Object):void{ _automationDelegate = (_arg1 as IAutomationObject); } public function get measuredMinWidth():Number{ return (_measuredMinWidth); } public function createReferenceOnParentDocument(_arg1:IFlexDisplayObject):void{ var _local2:Array; var _local3:Object; var _local4:int; var _local5:int; var _local6:PropertyChangeEvent; var _local7:Object; if (((id) && (!((id == ""))))){ _local2 = _instanceIndices; if (!_local2){ _arg1[id] = this; } else { _local3 = _arg1[id]; if (!(_local3 is Array)){ _local3 = (_arg1[id] = []); }; _local4 = _local2.length; _local5 = 0; while (_local5 < (_local4 - 1)) { _local7 = _local3[_local2[_local5]]; if (!(_local7 is Array)){ _local7 = (_local3[_local2[_local5]] = []); }; _local3 = _local7; _local5++; }; _local3[_local2[(_local4 - 1)]] = this; _local6 = PropertyChangeEvent.createUpdateEvent(_arg1, id, _arg1[id], _arg1[id]); _arg1.dispatchEvent(_local6); }; }; } public function get repeater():IRepeater{ return ((_repeaters) ? _repeaters[(_repeaters.length - 1)] : null); } public function set isPopUp(_arg1:Boolean):void{ _isPopUp = _arg1; } public function get measuredHeight():Number{ return (_measuredHeight); } public function initialize():void{ if (initialized){ return; }; dispatchEvent(new FlexEvent(FlexEvent.PREINITIALIZE)); createChildren(); childrenCreated(); initializeAccessibility(); initializationComplete(); } override public function set width(_arg1:Number):void{ var _local2:IInvalidating; if (explicitWidth != _arg1){ explicitWidth = _arg1; invalidateSize(); }; if (_width != _arg1){ invalidateProperties(); invalidateDisplayList(); _local2 = (parent as IInvalidating); if (((_local2) && (includeInLayout))){ _local2.invalidateSize(); _local2.invalidateDisplayList(); }; _width = _arg1; dispatchEvent(new Event("widthChanged")); }; } public function set percentHeight(_arg1:Number):void{ if (_percentHeight == _arg1){ return; }; if (!isNaN(_arg1)){ _explicitHeight = NaN; }; _percentHeight = _arg1; var _local2:IInvalidating = (parent as IInvalidating); if (_local2){ _local2.invalidateSize(); _local2.invalidateDisplayList(); }; } final mx_internal function set $visible(_arg1:Boolean):void{ super.visible = _arg1; } private function findCommonBaseState(_arg1:String, _arg2:String):String{ var _local3:State = getState(_arg1); var _local4:State = getState(_arg2); if (((!(_local3)) || (!(_local4)))){ return (""); }; if (((isBaseState(_local3.basedOn)) && (isBaseState(_local4.basedOn)))){ return (""); }; var _local5:Array = getBaseStates(_local3); var _local6:Array = getBaseStates(_local4); var _local7 = ""; while (_local5[(_local5.length - 1)] == _local6[(_local6.length - 1)]) { _local7 = _local5.pop(); _local6.pop(); if (((!(_local5.length)) || (!(_local6.length)))){ break; }; }; if (((_local5.length) && ((_local5[(_local5.length - 1)] == _local4.name)))){ _local7 = _local4.name; } else { if (((_local6.length) && ((_local6[(_local6.length - 1)] == _local3.name)))){ _local7 = _local3.name; }; }; return (_local7); } mx_internal function childRemoved(_arg1:DisplayObject):void{ if ((_arg1 is IUIComponent)){ if (IUIComponent(_arg1).document != _arg1){ IUIComponent(_arg1).document = null; }; IUIComponent(_arg1).parentChanged(null); }; } final mx_internal function $removeChildAt(_arg1:int):DisplayObject{ return (super.removeChildAt(_arg1)); } public function get maxHeight():Number{ return ((isNaN(explicitMaxHeight)) ? DEFAULT_MAX_HEIGHT : explicitMaxHeight); } protected function initializeAccessibility():void{ if (UIComponent.createAccessibilityImplementation != null){ UIComponent.createAccessibilityImplementation(this); }; } public function set explicitMaxHeight(_arg1:Number):void{ if (_explicitMaxHeight == _arg1){ return; }; _explicitMaxHeight = _arg1; invalidateSize(); var _local2:IInvalidating = (parent as IInvalidating); if (_local2){ _local2.invalidateSize(); _local2.invalidateDisplayList(); }; dispatchEvent(new Event("explicitMaxHeightChanged")); } public function get focusManager():IFocusManager{ if (_focusManager){ return (_focusManager); }; var _local1:DisplayObject = parent; while (_local1) { if ((_local1 is IFocusManagerContainer)){ return (IFocusManagerContainer(_local1).focusManager); }; _local1 = _local1.parent; }; return (null); } public function set styleName(_arg1:Object):void{ if (_styleName === _arg1){ return; }; _styleName = _arg1; if (inheritingStyles == UIComponent.STYLE_UNINITIALIZED){ return; }; regenerateStyleCache(true); initThemeColor(); styleChanged("styleName"); notifyStyleChangeInChildren("styleName", true); } public function get automationDelegate():Object{ return (_automationDelegate); } protected function get resourceManager():IResourceManager{ return (_resourceManager); } mx_internal function validateBaselinePosition():Boolean{ var _local1:Number; var _local2:Number; if (!parent){ return (false); }; if ((((width == 0)) && ((height == 0)))){ validateNow(); _local1 = getExplicitOrMeasuredWidth(); _local2 = getExplicitOrMeasuredHeight(); setActualSize(_local1, _local2); }; validateNow(); return (true); } mx_internal function cancelAllCallLaters():void{ var _local1:ISystemManager = systemManager; if (((_local1) && (_local1.stage))){ if (listeningForRender){ _local1.stage.removeEventListener(Event.RENDER, callLaterDispatcher); _local1.stage.removeEventListener(Event.ENTER_FRAME, callLaterDispatcher); listeningForRender = false; }; }; methodQueue.splice(0); } private function updateCompleteHandler(_arg1:FlexEvent):void{ UIComponentGlobals.layoutManager.removeEventListener(FlexEvent.UPDATE_COMPLETE, updateCompleteHandler); processEffectFinished(_endingEffectInstances); _endingEffectInstances = []; } public function styleChanged(_arg1:String):void{ if ((((this is IFontContextComponent)) && (hasFontContextChanged()))){ invalidateProperties(); }; if (((((!(_arg1)) || ((_arg1 == "styleName")))) || (StyleManager.isSizeInvalidatingStyle(_arg1)))){ invalidateSize(); }; if (((((!(_arg1)) || ((_arg1 == "styleName")))) || ((_arg1 == "themeColor")))){ initThemeColor(); }; invalidateDisplayList(); if ((parent is IInvalidating)){ if (StyleManager.isParentSizeInvalidatingStyle(_arg1)){ IInvalidating(parent).invalidateSize(); }; if (StyleManager.isParentDisplayListInvalidatingStyle(_arg1)){ IInvalidating(parent).invalidateDisplayList(); }; }; } final mx_internal function get $visible():Boolean{ return (super.visible); } public function drawRoundRect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null, _arg6:Object=null, _arg7:Object=null, _arg8:Object=null, _arg9:String=null, _arg10:Array=null, _arg11:Object=null):void{ var _local13:Number; var _local14:Array; var _local15:Matrix; var _local16:Object; var _local12:Graphics = graphics; if (((!(_arg3)) || (!(_arg4)))){ return; }; if (_arg6 !== null){ if ((_arg6 is Array)){ if ((_arg7 is Array)){ _local14 = (_arg7 as Array); } else { _local14 = [_arg7, _arg7]; }; if (!_arg10){ _arg10 = [0, 0xFF]; }; _local15 = null; if (_arg8){ if ((_arg8 is Matrix)){ _local15 = Matrix(_arg8); } else { _local15 = new Matrix(); if ((_arg8 is Number)){ _local15.createGradientBox(_arg3, _arg4, ((Number(_arg8) * Math.PI) / 180), _arg1, _arg2); } else { _local15.createGradientBox(_arg8.w, _arg8.h, _arg8.r, _arg8.x, _arg8.y); }; }; }; if (_arg9 == GradientType.RADIAL){ _local12.beginGradientFill(GradientType.RADIAL, (_arg6 as Array), _local14, _arg10, _local15); } else { _local12.beginGradientFill(GradientType.LINEAR, (_arg6 as Array), _local14, _arg10, _local15); }; } else { _local12.beginFill(Number(_arg6), Number(_arg7)); }; }; if (!_arg5){ _local12.drawRect(_arg1, _arg2, _arg3, _arg4); } else { if ((_arg5 is Number)){ _local13 = (Number(_arg5) * 2); _local12.drawRoundRect(_arg1, _arg2, _arg3, _arg4, _local13, _local13); } else { GraphicsUtil.drawRoundRectComplex(_local12, _arg1, _arg2, _arg3, _arg4, _arg5.tl, _arg5.tr, _arg5.bl, _arg5.br); }; }; if (_arg11){ _local16 = _arg11.r; if ((_local16 is Number)){ _local13 = (Number(_local16) * 2); _local12.drawRoundRect(_arg11.x, _arg11.y, _arg11.w, _arg11.h, _local13, _local13); } else { GraphicsUtil.drawRoundRectComplex(_local12, _arg11.x, _arg11.y, _arg11.w, _arg11.h, _local16.tl, _local16.tr, _local16.bl, _local16.br); }; }; if (_arg6 !== null){ _local12.endFill(); }; } public function move(_arg1:Number, _arg2:Number):void{ var _local3:Boolean; if (_arg1 != super.x){ super.x = _arg1; dispatchEvent(new Event("xChanged")); _local3 = true; }; if (_arg2 != super.y){ super.y = _arg2; dispatchEvent(new Event("yChanged")); _local3 = true; }; if (_local3){ dispatchMoveEvent(); }; } public function set toolTip(_arg1:String):void{ var _local2:String = _toolTip; _toolTip = _arg1; ToolTipManager.registerToolTip(this, _local2, _arg1); dispatchEvent(new Event("toolTipChanged")); } public function set repeaters(_arg1:Array):void{ _repeaters = _arg1; } public function get explicitMaxHeight():Number{ return (_explicitMaxHeight); } public function measureText(_arg1:String):TextLineMetrics{ return (determineTextFormatFromStyles().measureText(_arg1)); } public function get styleName():Object{ return (_styleName); } protected function createInModuleContext(_arg1:IFlexModuleFactory, _arg2:String):Object{ var _local3:Object; if (_arg1){ _local3 = _arg1.create(_arg2); }; return (_local3); } public function get parentDocument():Object{ var _local1:IUIComponent; var _local2:ISystemManager; if (document == this){ _local1 = (parent as IUIComponent); if (_local1){ return (_local1.document); }; _local2 = (parent as ISystemManager); if (_local2){ return (_local2.document); }; return (null); //unresolved jump }; return (document); } protected function childrenCreated():void{ invalidateProperties(); invalidateSize(); invalidateDisplayList(); } public function set flexContextMenu(_arg1:IFlexContextMenu):void{ if (_flexContextMenu){ _flexContextMenu.unsetContextMenu(this); }; _flexContextMenu = _arg1; if (_arg1 != null){ _flexContextMenu.setContextMenu(this); }; } public function set explicitWidth(_arg1:Number):void{ if (_explicitWidth == _arg1){ return; }; if (!isNaN(_arg1)){ _percentWidth = NaN; }; _explicitWidth = _arg1; invalidateSize(); var _local2:IInvalidating = (parent as IInvalidating); if (((_local2) && (includeInLayout))){ _local2.invalidateSize(); _local2.invalidateDisplayList(); }; dispatchEvent(new Event("explicitWidthChanged")); } private function setBorderColorForErrorString():void{ if (((!(_errorString)) || ((_errorString.length == 0)))){ if (!isNaN(origBorderColor)){ setStyle("borderColor", origBorderColor); saveBorderColor = true; }; } else { if (saveBorderColor){ saveBorderColor = false; origBorderColor = getStyle("borderColor"); }; setStyle("borderColor", getStyle("errorColor")); }; styleChanged("themeColor"); var _local1:IFocusManager = focusManager; var _local2:DisplayObject = (_local1) ? DisplayObject(_local1.getFocus()) : null; if (((((_local1) && (_local1.showFocusIndicator))) && ((_local2 == this)))){ drawFocus(true); }; } public function get explicitWidth():Number{ return (_explicitWidth); } public function invalidateSize():void{ if (!invalidateSizeFlag){ invalidateSizeFlag = true; if (((parent) && (UIComponentGlobals.layoutManager))){ UIComponentGlobals.layoutManager.invalidateSize(this); }; }; } public function set measuredMinHeight(_arg1:Number):void{ _measuredMinHeight = _arg1; } protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ } override public function set filters(_arg1:Array):void{ var _local2:int; var _local3:int; var _local4:IEventDispatcher; if (_filters){ _local2 = _filters.length; _local3 = 0; while (_local3 < _local2) { _local4 = (_filters[_local3] as IEventDispatcher); if (_local4){ _local4.removeEventListener("change", filterChangeHandler); }; _local3++; }; }; _filters = _arg1; if (_filters){ _local2 = _filters.length; _local3 = 0; while (_local3 < _local2) { _local4 = (_filters[_local3] as IEventDispatcher); if (_local4){ _local4.addEventListener("change", filterChangeHandler); }; _local3++; }; }; super.filters = _filters; } private static function get embeddedFontRegistry():IEmbeddedFontRegistry{ if (!_embeddedFontRegistry){ _embeddedFontRegistry = IEmbeddedFontRegistry(Singleton.getInstance("mx.core::IEmbeddedFontRegistry")); }; return (_embeddedFontRegistry); } public static function resumeBackgroundProcessing():void{ var _local1:ISystemManager; if (UIComponentGlobals.callLaterSuspendCount > 0){ UIComponentGlobals.callLaterSuspendCount--; if (UIComponentGlobals.callLaterSuspendCount == 0){ _local1 = SystemManagerGlobals.topLevelSystemManagers[0]; if (((_local1) && (_local1.stage))){ _local1.stage.invalidate(); }; }; }; } public static function suspendBackgroundProcessing():void{ UIComponentGlobals.callLaterSuspendCount++; } } }//package mx.core class MethodQueueElement { public var method:Function; public var args:Array; private function MethodQueueElement(_arg1:Function, _arg2:Array=null){ this.method = _arg1; this.args = _arg2; } }
Section 220
//UIComponentCachePolicy (mx.core.UIComponentCachePolicy) package mx.core { public final class UIComponentCachePolicy { public static const AUTO:String = "auto"; public static const ON:String = "on"; mx_internal static const VERSION:String = "3.0.0.0"; public static const OFF:String = "off"; } }//package mx.core
Section 221
//UIComponentDescriptor (mx.core.UIComponentDescriptor) package mx.core { public class UIComponentDescriptor extends ComponentDescriptor { mx_internal var instanceIndices:Array; public var stylesFactory:Function; public var effects:Array; mx_internal var repeaters:Array; mx_internal var repeaterIndices:Array; mx_internal static const VERSION:String = "3.0.0.0"; public function UIComponentDescriptor(_arg1:Object){ super(_arg1); } override public function toString():String{ return (("UIComponentDescriptor_" + id)); } } }//package mx.core
Section 222
//UIComponentGlobals (mx.core.UIComponentGlobals) package mx.core { import flash.display.*; import flash.geom.*; import mx.managers.*; public class UIComponentGlobals { mx_internal static var callLaterSuspendCount:int = 0; mx_internal static var layoutManager:ILayoutManager; mx_internal static var nextFocusObject:InteractiveObject; mx_internal static var designTime:Boolean = false; mx_internal static var tempMatrix:Matrix = new Matrix(); mx_internal static var callLaterDispatcherCount:int = 0; private static var _catchCallLaterExceptions:Boolean = false; public static function set catchCallLaterExceptions(_arg1:Boolean):void{ _catchCallLaterExceptions = _arg1; } public static function get designMode():Boolean{ return (designTime); } public static function set designMode(_arg1:Boolean):void{ designTime = _arg1; } public static function get catchCallLaterExceptions():Boolean{ return (_catchCallLaterExceptions); } } }//package mx.core
Section 223
//UITextField (mx.core.UITextField) package mx.core { import flash.events.*; import flash.display.*; import mx.styles.*; import mx.resources.*; import mx.managers.*; import flash.text.*; import mx.automation.*; import flash.utils.*; import mx.utils.*; public class UITextField extends FlexTextField implements IAutomationObject, IIMESupport, IFlexModule, IInvalidating, ISimpleStyleClient, IToolTipManagerClient, IUITextField { private var _enabled:Boolean;// = true private var untruncatedText:String; private var cachedEmbeddedFont:EmbeddedFont;// = null private var cachedTextFormat:TextFormat; private var _automationDelegate:IAutomationObject; private var _automationName:String; private var _styleName:Object; private var _document:Object; mx_internal var _toolTip:String; private var _nestLevel:int;// = 0 private var _explicitHeight:Number; private var _moduleFactory:IFlexModuleFactory; private var _initialized:Boolean;// = false private var _nonInheritingStyles:Object; private var _inheritingStyles:Object; private var _includeInLayout:Boolean;// = true private var invalidateDisplayListFlag:Boolean;// = true mx_internal var explicitColor:uint;// = 4294967295 private var _processedDescriptors:Boolean;// = true private var _updateCompletePendingFlag:Boolean;// = false private var explicitHTMLText:String;// = null mx_internal var _parent:DisplayObjectContainer; private var _imeMode:String;// = null private var resourceManager:IResourceManager; mx_internal var styleChangedFlag:Boolean;// = true private var _ignorePadding:Boolean;// = true private var _owner:DisplayObjectContainer; private var _explicitWidth:Number; mx_internal static const TEXT_WIDTH_PADDING:int = 5; mx_internal static const TEXT_HEIGHT_PADDING:int = 4; mx_internal static const VERSION:String = "3.0.0.0"; private static var truncationIndicatorResource:String; private static var _embeddedFontRegistry:IEmbeddedFontRegistry; mx_internal static var debuggingBorders:Boolean = false; public function UITextField(){ resourceManager = ResourceManager.getInstance(); _inheritingStyles = UIComponent.STYLE_UNINITIALIZED; _nonInheritingStyles = UIComponent.STYLE_UNINITIALIZED; super(); super.text = ""; focusRect = false; selectable = false; tabEnabled = false; if (debuggingBorders){ border = true; }; if (!truncationIndicatorResource){ truncationIndicatorResource = resourceManager.getString("core", "truncationIndicator"); }; addEventListener(Event.CHANGE, changeHandler); addEventListener("textFieldStyleChange", textFieldStyleChangeHandler); resourceManager.addEventListener(Event.CHANGE, resourceManager_changeHandler, false, 0, true); } public function set imeMode(_arg1:String):void{ _imeMode = _arg1; } public function get nestLevel():int{ return (_nestLevel); } private function textFieldStyleChangeHandler(_arg1:Event):void{ if (explicitHTMLText != null){ super.htmlText = explicitHTMLText; }; } public function truncateToFit(_arg1:String=null):Boolean{ var _local4:String; if (!_arg1){ _arg1 = truncationIndicatorResource; }; validateNow(); var _local2:String = super.text; untruncatedText = _local2; var _local3:Number = width; if (((!((_local2 == ""))) && (((textWidth + TEXT_WIDTH_PADDING) > (_local3 + 1E-14))))){ var _local5 = _local2; super.text = _local5; _local4 = _local5; _local2.slice(0, Math.floor(((_local3 / (textWidth + TEXT_WIDTH_PADDING)) * _local2.length))); while ((((_local4.length > 1)) && (((textWidth + TEXT_WIDTH_PADDING) > _local3)))) { _local4 = _local4.slice(0, -1); super.text = (_local4 + _arg1); }; return (true); }; return (false); } public function set nestLevel(_arg1:int):void{ if ((((_arg1 > 1)) && (!((_nestLevel == _arg1))))){ _nestLevel = _arg1; StyleProtoChain.initTextField(this); styleChangedFlag = true; validateNow(); }; } public function get minHeight():Number{ return (0); } public function getExplicitOrMeasuredHeight():Number{ return ((isNaN(explicitHeight)) ? measuredHeight : explicitHeight); } public function getStyle(_arg1:String){ if (StyleManager.inheritingStyles[_arg1]){ return ((inheritingStyles) ? inheritingStyles[_arg1] : IStyleClient(parent).getStyle(_arg1)); //unresolved jump }; return ((nonInheritingStyles) ? nonInheritingStyles[_arg1] : IStyleClient(parent).getStyle(_arg1)); } public function get className():String{ var _local1:String = getQualifiedClassName(this); var _local2:int = _local1.indexOf("::"); if (_local2 != -1){ _local1 = _local1.substr((_local2 + 2)); }; return (_local1); } public function setColor(_arg1:uint):void{ explicitColor = _arg1; styleChangedFlag = true; invalidateDisplayListFlag = true; validateNow(); } override public function replaceText(_arg1:int, _arg2:int, _arg3:String):void{ super.replaceText(_arg1, _arg2, _arg3); dispatchEvent(new Event("textReplace")); } private function creatingSystemManager():ISystemManager{ return ((((!((moduleFactory == null))) && ((moduleFactory is ISystemManager)))) ? ISystemManager(moduleFactory) : systemManager); } public function set document(_arg1:Object):void{ _document = _arg1; } public function get automationName():String{ if (_automationName){ return (_automationName); }; if (automationDelegate){ return (automationDelegate.automationName); }; return (""); } public function get explicitMinHeight():Number{ return (NaN); } public function get focusPane():Sprite{ return (null); } public function getTextStyles():TextFormat{ var _local1:TextFormat = new TextFormat(); _local1.align = getStyle("textAlign"); _local1.bold = (getStyle("fontWeight") == "bold"); if (enabled){ if (explicitColor == StyleManager.NOT_A_COLOR){ _local1.color = getStyle("color"); } else { _local1.color = explicitColor; }; } else { _local1.color = getStyle("disabledColor"); }; _local1.font = StringUtil.trimArrayElements(getStyle("fontFamily"), ","); _local1.indent = getStyle("textIndent"); _local1.italic = (getStyle("fontStyle") == "italic"); _local1.kerning = getStyle("kerning"); _local1.leading = getStyle("leading"); _local1.leftMargin = (ignorePadding) ? 0 : getStyle("paddingLeft"); _local1.letterSpacing = getStyle("letterSpacing"); _local1.rightMargin = (ignorePadding) ? 0 : getStyle("paddingRight"); _local1.size = getStyle("fontSize"); _local1.underline = (getStyle("textDecoration") == "underline"); cachedTextFormat = _local1; return (_local1); } override public function set text(_arg1:String):void{ if (!_arg1){ _arg1 = ""; }; if (((!(isHTML)) && ((super.text == _arg1)))){ return; }; super.text = _arg1; explicitHTMLText = null; if (invalidateDisplayListFlag){ validateNow(); }; } public function getExplicitOrMeasuredWidth():Number{ return ((isNaN(explicitWidth)) ? measuredWidth : explicitWidth); } public function get showInAutomationHierarchy():Boolean{ return (true); } public function set automationName(_arg1:String):void{ _automationName = _arg1; } public function get systemManager():ISystemManager{ var _local2:IUIComponent; var _local1:DisplayObject = parent; while (_local1) { _local2 = (_local1 as IUIComponent); if (_local2){ return (_local2.systemManager); }; _local1 = _local1.parent; }; return (null); } public function setStyle(_arg1:String, _arg2):void{ } public function get percentWidth():Number{ return (NaN); } public function get explicitHeight():Number{ return (_explicitHeight); } public function get baselinePosition():Number{ var _local1:TextLineMetrics; if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ _local1 = getLineMetrics(0); return (((height - 4) - _local1.descent)); }; if (!parent){ return (NaN); }; var _local2 = (text == ""); if (_local2){ super.text = "Wj"; }; _local1 = getLineMetrics(0); if (_local2){ super.text = ""; }; return ((2 + _local1.ascent)); } public function set enabled(_arg1:Boolean):void{ mouseEnabled = _arg1; _enabled = _arg1; styleChanged("color"); } public function get minWidth():Number{ return (0); } public function get automationValue():Array{ if (automationDelegate){ return (automationDelegate.automationValue); }; return ([""]); } public function get tweeningProperties():Array{ return (null); } public function get measuredWidth():Number{ validateNow(); if (!stage){ return ((textWidth + TEXT_WIDTH_PADDING)); }; return (((textWidth * transform.concatenatedMatrix.d) + TEXT_WIDTH_PADDING)); } public function set tweeningProperties(_arg1:Array):void{ } public function createAutomationIDPart(_arg1:IAutomationObject):Object{ return (null); } override public function get parent():DisplayObjectContainer{ return ((_parent) ? _parent : super.parent); } public function set updateCompletePendingFlag(_arg1:Boolean):void{ _updateCompletePendingFlag = _arg1; } public function setActualSize(_arg1:Number, _arg2:Number):void{ if (width != _arg1){ width = _arg1; }; if (height != _arg2){ height = _arg2; }; } public function get numAutomationChildren():int{ return (0); } public function set focusPane(_arg1:Sprite):void{ } public function getAutomationChildAt(_arg1:int):IAutomationObject{ return (null); } public function get inheritingStyles():Object{ return (_inheritingStyles); } public function get owner():DisplayObjectContainer{ return ((_owner) ? _owner : parent); } public function parentChanged(_arg1:DisplayObjectContainer):void{ if (!_arg1){ _parent = null; _nestLevel = 0; } else { if ((_arg1 is IStyleClient)){ _parent = _arg1; } else { if ((_arg1 is SystemManager)){ _parent = _arg1; } else { _parent = _arg1.parent; }; }; }; } public function get processedDescriptors():Boolean{ return (_processedDescriptors); } public function get maxWidth():Number{ return (UIComponent.DEFAULT_MAX_WIDTH); } private function getEmbeddedFont(_arg1:String, _arg2:Boolean, _arg3:Boolean):EmbeddedFont{ if (cachedEmbeddedFont){ if ((((cachedEmbeddedFont.fontName == _arg1)) && ((cachedEmbeddedFont.fontStyle == EmbeddedFontRegistry.getFontStyle(_arg2, _arg3))))){ return (cachedEmbeddedFont); }; }; cachedEmbeddedFont = new EmbeddedFont(_arg1, _arg2, _arg3); return (cachedEmbeddedFont); } public function get initialized():Boolean{ return (_initialized); } public function invalidateDisplayList():void{ invalidateDisplayListFlag = true; } public function invalidateProperties():void{ } override public function insertXMLText(_arg1:int, _arg2:int, _arg3:String, _arg4:Boolean=false):void{ super.insertXMLText(_arg1, _arg2, _arg3, _arg4); dispatchEvent(new Event("textInsert")); } public function set includeInLayout(_arg1:Boolean):void{ var _local2:IInvalidating; if (_includeInLayout != _arg1){ _includeInLayout = _arg1; _local2 = (parent as IInvalidating); if (_local2){ _local2.invalidateSize(); _local2.invalidateDisplayList(); }; }; } override public function set htmlText(_arg1:String):void{ if (!_arg1){ _arg1 = ""; }; if (((isHTML) && ((super.htmlText == _arg1)))){ return; }; if (((cachedTextFormat) && ((styleSheet == null)))){ defaultTextFormat = cachedTextFormat; }; super.htmlText = _arg1; explicitHTMLText = _arg1; if (invalidateDisplayListFlag){ validateNow(); }; } public function set showInAutomationHierarchy(_arg1:Boolean):void{ } private function resourceManager_changeHandler(_arg1:Event):void{ truncationIndicatorResource = resourceManager.getString("core", "truncationIndicator"); if (untruncatedText != null){ super.text = untruncatedText; truncateToFit(); }; } public function set measuredMinWidth(_arg1:Number):void{ } public function set explicitHeight(_arg1:Number):void{ _explicitHeight = _arg1; } public function get explicitMinWidth():Number{ return (NaN); } public function set percentWidth(_arg1:Number):void{ } public function get imeMode():String{ return (_imeMode); } public function get moduleFactory():IFlexModuleFactory{ return (_moduleFactory); } public function set systemManager(_arg1:ISystemManager):void{ } public function get explicitMaxWidth():Number{ return (NaN); } public function get document():Object{ return (_document); } public function get updateCompletePendingFlag():Boolean{ return (_updateCompletePendingFlag); } public function replayAutomatableEvent(_arg1:Event):Boolean{ if (automationDelegate){ return (automationDelegate.replayAutomatableEvent(_arg1)); }; return (false); } public function get enabled():Boolean{ return (_enabled); } public function set owner(_arg1:DisplayObjectContainer):void{ _owner = _arg1; } public function get automationTabularData():Object{ return (null); } public function set nonInheritingStyles(_arg1:Object):void{ _nonInheritingStyles = _arg1; } public function get includeInLayout():Boolean{ return (_includeInLayout); } public function get measuredMinWidth():Number{ return (0); } public function set isPopUp(_arg1:Boolean):void{ } public function set automationDelegate(_arg1:Object):void{ _automationDelegate = (_arg1 as IAutomationObject); } public function get measuredHeight():Number{ validateNow(); if (!stage){ return ((textHeight + TEXT_HEIGHT_PADDING)); }; return (((textHeight * transform.concatenatedMatrix.a) + TEXT_HEIGHT_PADDING)); } public function set processedDescriptors(_arg1:Boolean):void{ _processedDescriptors = _arg1; } public function setFocus():void{ systemManager.stage.focus = this; } public function initialize():void{ } public function set percentHeight(_arg1:Number):void{ } public function resolveAutomationIDPart(_arg1:Object):Array{ return ([]); } public function set inheritingStyles(_arg1:Object):void{ _inheritingStyles = _arg1; } public function getUITextFormat():UITextFormat{ validateNow(); var _local1:UITextFormat = new UITextFormat(creatingSystemManager()); _local1.moduleFactory = moduleFactory; _local1.copyFrom(getTextFormat()); _local1.antiAliasType = antiAliasType; _local1.gridFitType = gridFitType; _local1.sharpness = sharpness; _local1.thickness = thickness; return (_local1); } private function changeHandler(_arg1:Event):void{ explicitHTMLText = null; } public function set initialized(_arg1:Boolean):void{ _initialized = _arg1; } public function get nonZeroTextHeight():Number{ var _local1:Number; if (super.text == ""){ super.text = "Wj"; _local1 = textHeight; super.text = ""; return (_local1); }; return (textHeight); } public function owns(_arg1:DisplayObject):Boolean{ return ((_arg1 == this)); } override public function setTextFormat(_arg1:TextFormat, _arg2:int=-1, _arg3:int=-1):void{ if (styleSheet){ return; }; super.setTextFormat(_arg1, _arg2, _arg3); dispatchEvent(new Event("textFormatChange")); } public function get nonInheritingStyles():Object{ return (_nonInheritingStyles); } public function setVisible(_arg1:Boolean, _arg2:Boolean=false):void{ this.visible = _arg1; } public function get maxHeight():Number{ return (UIComponent.DEFAULT_MAX_HEIGHT); } public function get automationDelegate():Object{ return (_automationDelegate); } public function get isPopUp():Boolean{ return (false); } public function set ignorePadding(_arg1:Boolean):void{ _ignorePadding = _arg1; styleChanged(null); } public function set styleName(_arg1:Object):void{ if (_styleName === _arg1){ return; }; _styleName = _arg1; if (parent){ StyleProtoChain.initTextField(this); styleChanged("styleName"); }; } public function styleChanged(_arg1:String):void{ styleChangedFlag = true; if (!invalidateDisplayListFlag){ invalidateDisplayListFlag = true; if (("callLater" in parent)){ Object(parent).callLater(validateNow); }; }; } public function get percentHeight():Number{ return (NaN); } private function get isHTML():Boolean{ return (!((explicitHTMLText == null))); } public function get explicitMaxHeight():Number{ return (NaN); } public function get styleName():Object{ return (_styleName); } public function set explicitWidth(_arg1:Number):void{ _explicitWidth = _arg1; } public function validateNow():void{ var _local1:TextFormat; var _local2:EmbeddedFont; var _local3:IFlexModuleFactory; var _local4:ISystemManager; if (!parent){ return; }; if (((!(isNaN(explicitWidth))) && (!((super.width == explicitWidth))))){ super.width = ((explicitWidth)>4) ? explicitWidth : 4; }; if (((!(isNaN(explicitHeight))) && (!((super.height == explicitHeight))))){ super.height = explicitHeight; }; if (styleChangedFlag){ _local1 = getTextStyles(); if (_local1.font){ _local2 = getEmbeddedFont(_local1.font, _local1.bold, _local1.italic); _local3 = embeddedFontRegistry.getAssociatedModuleFactory(_local2, moduleFactory); if (_local3 != null){ embedFonts = true; } else { _local4 = creatingSystemManager(); embedFonts = ((!((_local4 == null))) && (_local4.isFontFaceEmbedded(_local1))); }; } else { embedFonts = getStyle("embedFonts"); }; if (getStyle("fontAntiAliasType") != undefined){ antiAliasType = getStyle("fontAntiAliasType"); gridFitType = getStyle("fontGridFitType"); sharpness = getStyle("fontSharpness"); thickness = getStyle("fontThickness"); }; if (!styleSheet){ super.setTextFormat(_local1); defaultTextFormat = _local1; }; dispatchEvent(new Event("textFieldStyleChange")); }; styleChangedFlag = false; invalidateDisplayListFlag = false; } public function set toolTip(_arg1:String):void{ var _local2:String = _toolTip; _toolTip = _arg1; ToolTipManager.registerToolTip(this, _local2, _arg1); } public function move(_arg1:Number, _arg2:Number):void{ if (this.x != _arg1){ this.x = _arg1; }; if (this.y != _arg2){ this.y = _arg2; }; } public function get toolTip():String{ return (_toolTip); } public function get ignorePadding():Boolean{ return (_ignorePadding); } public function get explicitWidth():Number{ return (_explicitWidth); } public function invalidateSize():void{ invalidateDisplayListFlag = true; } public function set measuredMinHeight(_arg1:Number):void{ } public function get measuredMinHeight():Number{ return (0); } public function set moduleFactory(_arg1:IFlexModuleFactory):void{ _moduleFactory = _arg1; } private static function get embeddedFontRegistry():IEmbeddedFontRegistry{ if (!_embeddedFontRegistry){ _embeddedFontRegistry = IEmbeddedFontRegistry(Singleton.getInstance("mx.core::IEmbeddedFontRegistry")); }; return (_embeddedFontRegistry); } } }//package mx.core
Section 224
//UITextFormat (mx.core.UITextFormat) package mx.core { import mx.managers.*; import flash.text.*; public class UITextFormat extends TextFormat { private var systemManager:ISystemManager; public var sharpness:Number; public var gridFitType:String; public var antiAliasType:String; public var thickness:Number; private var cachedEmbeddedFont:EmbeddedFont;// = null private var _moduleFactory:IFlexModuleFactory; mx_internal static const VERSION:String = "3.0.0.0"; private static var _embeddedFontRegistry:IEmbeddedFontRegistry; private static var _textFieldFactory:ITextFieldFactory; public function UITextFormat(_arg1:ISystemManager, _arg2:String=null, _arg3:Object=null, _arg4:Object=null, _arg5:Object=null, _arg6:Object=null, _arg7:Object=null, _arg8:String=null, _arg9:String=null, _arg10:String=null, _arg11:Object=null, _arg12:Object=null, _arg13:Object=null, _arg14:Object=null){ this.systemManager = _arg1; super(_arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12, _arg13, _arg14); } public function set moduleFactory(_arg1:IFlexModuleFactory):void{ _moduleFactory = _arg1; } mx_internal function copyFrom(_arg1:TextFormat):void{ font = _arg1.font; size = _arg1.size; color = _arg1.color; bold = _arg1.bold; italic = _arg1.italic; underline = _arg1.underline; url = _arg1.url; target = _arg1.target; align = _arg1.align; leftMargin = _arg1.leftMargin; rightMargin = _arg1.rightMargin; indent = _arg1.indent; leading = _arg1.leading; } private function getEmbeddedFont(_arg1:String, _arg2:Boolean, _arg3:Boolean):EmbeddedFont{ if (cachedEmbeddedFont){ if ((((cachedEmbeddedFont.fontName == _arg1)) && ((cachedEmbeddedFont.fontStyle == EmbeddedFontRegistry.getFontStyle(_arg2, _arg3))))){ return (cachedEmbeddedFont); }; }; cachedEmbeddedFont = new EmbeddedFont(_arg1, _arg2, _arg3); return (cachedEmbeddedFont); } public function measureText(_arg1:String, _arg2:Boolean=true):TextLineMetrics{ return (measure(_arg1, false, _arg2)); } private function measure(_arg1:String, _arg2:Boolean, _arg3:Boolean):TextLineMetrics{ if (!_arg1){ _arg1 = ""; }; var _local4:Boolean; var _local5:IFlexModuleFactory = embeddedFontRegistry.getAssociatedModuleFactory(getEmbeddedFont(font, bold, italic), moduleFactory); _local4 = !((_local5 == null)); if (_local5 == null){ _local5 = systemManager; }; var _local6:TextField; _local6 = TextField(textFieldFactory.createTextField(_local5)); if (_arg2){ _local6.htmlText = ""; } else { _local6.text = ""; }; _local6.defaultTextFormat = this; if (font){ _local6.embedFonts = ((_local4) || (((!((systemManager == null))) && (systemManager.isFontFaceEmbedded(this))))); } else { _local6.embedFonts = false; }; _local6.antiAliasType = antiAliasType; _local6.gridFitType = gridFitType; _local6.sharpness = sharpness; _local6.thickness = thickness; if (_arg2){ _local6.htmlText = _arg1; } else { _local6.text = _arg1; }; var _local7:TextLineMetrics = _local6.getLineMetrics(0); if (_arg3){ _local7.width = Math.ceil(_local7.width); _local7.height = Math.ceil(_local7.height); }; return (_local7); } public function measureHTMLText(_arg1:String, _arg2:Boolean=true):TextLineMetrics{ return (measure(_arg1, true, _arg2)); } public function get moduleFactory():IFlexModuleFactory{ return (_moduleFactory); } private static function get embeddedFontRegistry():IEmbeddedFontRegistry{ if (!_embeddedFontRegistry){ _embeddedFontRegistry = IEmbeddedFontRegistry(Singleton.getInstance("mx.core::IEmbeddedFontRegistry")); }; return (_embeddedFontRegistry); } private static function get textFieldFactory():ITextFieldFactory{ if (!_textFieldFactory){ _textFieldFactory = ITextFieldFactory(Singleton.getInstance("mx.core::ITextFieldFactory")); }; return (_textFieldFactory); } } }//package mx.core
Section 225
//AddRemoveEffectTargetFilter (mx.effects.effectClasses.AddRemoveEffectTargetFilter) package mx.effects.effectClasses { import mx.effects.*; public class AddRemoveEffectTargetFilter extends EffectTargetFilter { public var add:Boolean;// = true mx_internal static const VERSION:String = "3.0.0.0"; public function AddRemoveEffectTargetFilter(){ filterProperties = ["parent"]; } override protected function defaultFilterFunction(_arg1:Array, _arg2:Object):Boolean{ var _local5:PropertyChanges; var _local3:int = _arg1.length; var _local4:int; while (_local4 < _local3) { _local5 = _arg1[_local4]; if (_local5.target == _arg2){ if (add){ return ((((_local5.start["parent"] == null)) && (!((_local5.end["parent"] == null))))); }; return (((!((_local5.start["parent"] == null))) && ((_local5.end["parent"] == null)))); }; _local4++; }; return (false); } } }//package mx.effects.effectClasses
Section 226
//HideShowEffectTargetFilter (mx.effects.effectClasses.HideShowEffectTargetFilter) package mx.effects.effectClasses { import mx.effects.*; public class HideShowEffectTargetFilter extends EffectTargetFilter { public var show:Boolean;// = true mx_internal static const VERSION:String = "3.0.0.0"; public function HideShowEffectTargetFilter(){ filterProperties = ["visible"]; } override protected function defaultFilterFunction(_arg1:Array, _arg2:Object):Boolean{ var _local5:PropertyChanges; var _local3:int = _arg1.length; var _local4:int; while (_local4 < _local3) { _local5 = _arg1[_local4]; if (_local5.target == _arg2){ return ((_local5.end["visible"] == show)); }; _local4++; }; return (false); } } }//package mx.effects.effectClasses
Section 227
//PropertyChanges (mx.effects.effectClasses.PropertyChanges) package mx.effects.effectClasses { public class PropertyChanges { public var target:Object; public var start:Object; public var end:Object; mx_internal static const VERSION:String = "3.0.0.0"; public function PropertyChanges(_arg1:Object){ end = {}; start = {}; super(); this.target = _arg1; } } }//package mx.effects.effectClasses
Section 228
//TweenEffectInstance (mx.effects.effectClasses.TweenEffectInstance) package mx.effects.effectClasses { import mx.core.*; import mx.events.*; import mx.effects.*; public class TweenEffectInstance extends EffectInstance { private var _seekTime:Number;// = 0 public var easingFunction:Function; public var tween:Tween; mx_internal var needToLayout:Boolean;// = false mx_internal static const VERSION:String = "3.0.0.0"; public function TweenEffectInstance(_arg1:Object){ super(_arg1); } override public function stop():void{ super.stop(); if (tween){ tween.stop(); }; } mx_internal function applyTweenStartValues():void{ if (duration > 0){ onTweenUpdate(tween.getCurrentValue(0)); }; } override public function get playheadTime():Number{ if (tween){ return ((tween.playheadTime + super.playheadTime)); }; return (0); } protected function createTween(_arg1:Object, _arg2:Object, _arg3:Object, _arg4:Number=-1, _arg5:Number=-1):Tween{ var _local6:Tween = new Tween(_arg1, _arg2, _arg3, _arg4, _arg5); _local6.addEventListener(TweenEvent.TWEEN_START, tweenEventHandler); _local6.addEventListener(TweenEvent.TWEEN_UPDATE, tweenEventHandler); _local6.addEventListener(TweenEvent.TWEEN_END, tweenEventHandler); if (easingFunction != null){ _local6.easingFunction = easingFunction; }; if (_seekTime > 0){ _local6.seek(_seekTime); }; _local6.playReversed = playReversed; return (_local6); } private function tweenEventHandler(_arg1:TweenEvent):void{ dispatchEvent(_arg1); } override public function end():void{ stopRepeat = true; if (delayTimer){ delayTimer.reset(); }; if (tween){ tween.endTween(); tween = null; }; } override public function reverse():void{ super.reverse(); if (tween){ tween.reverse(); }; super.playReversed = !(playReversed); } override mx_internal function set playReversed(_arg1:Boolean):void{ super.playReversed = _arg1; if (tween){ tween.playReversed = _arg1; }; } override public function resume():void{ super.resume(); if (tween){ tween.resume(); }; } public function onTweenEnd(_arg1:Object):void{ onTweenUpdate(_arg1); tween = null; if (needToLayout){ UIComponentGlobals.layoutManager.validateNow(); }; finishRepeat(); } public function onTweenUpdate(_arg1:Object):void{ } override public function pause():void{ super.pause(); if (tween){ tween.pause(); }; } public function seek(_arg1:Number):void{ if (tween){ tween.seek(_arg1); } else { _seekTime = _arg1; }; } } }//package mx.effects.effectClasses
Section 229
//ZoomInstance (mx.effects.effectClasses.ZoomInstance) package mx.effects.effectClasses { import flash.events.*; import mx.core.*; import mx.events.*; import mx.effects.*; public class ZoomInstance extends TweenEffectInstance { private var newY:Number; public var originY:Number; private var origX:Number; private var origY:Number; public var originX:Number; private var origPercentHeight:Number; public var zoomWidthFrom:Number; public var zoomWidthTo:Number; private var newX:Number; public var captureRollEvents:Boolean; private var origPercentWidth:Number; public var zoomHeightFrom:Number; private var origScaleX:Number; public var zoomHeightTo:Number; private var origScaleY:Number; private var scaledOriginX:Number; private var scaledOriginY:Number; private var show:Boolean;// = true private var _mouseHasMoved:Boolean;// = false mx_internal static const VERSION:String = "3.0.0.0"; public function ZoomInstance(_arg1:Object){ super(_arg1); } override public function finishEffect():void{ if (captureRollEvents){ target.removeEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false); target.removeEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false); target.removeEventListener(MouseEvent.MOUSE_MOVE, mouseEventHandler, false); }; super.finishEffect(); } private function getScaleFromWidth(_arg1:Number):Number{ return ((_arg1 / (target.width / Math.abs(target.scaleX)))); } override public function initEffect(_arg1:Event):void{ super.initEffect(_arg1); if ((((_arg1.type == FlexEvent.HIDE)) || ((_arg1.type == Event.REMOVED)))){ show = false; }; } private function getScaleFromHeight(_arg1:Number):Number{ return ((_arg1 / (target.height / Math.abs(target.scaleY)))); } private function applyPropertyChanges():void{ var _local2:Boolean; var _local3:Boolean; var _local1:PropertyChanges = propertyChanges; if (_local1){ _local2 = false; _local3 = false; if (_local1.end["scaleX"] !== undefined){ zoomWidthFrom = (isNaN(zoomWidthFrom)) ? target.scaleX : zoomWidthFrom; zoomWidthTo = (isNaN(zoomWidthTo)) ? _local1.end["scaleX"] : zoomWidthTo; _local3 = true; }; if (_local1.end["scaleY"] !== undefined){ zoomHeightFrom = (isNaN(zoomHeightFrom)) ? target.scaleY : zoomHeightFrom; zoomHeightTo = (isNaN(zoomHeightTo)) ? _local1.end["scaleY"] : zoomHeightTo; _local3 = true; }; if (_local3){ return; }; if (_local1.end["width"] !== undefined){ zoomWidthFrom = (isNaN(zoomWidthFrom)) ? getScaleFromWidth(target.width) : zoomWidthFrom; zoomWidthTo = (isNaN(zoomWidthTo)) ? getScaleFromWidth(_local1.end["width"]) : zoomWidthTo; _local2 = true; }; if (_local1.end["height"] !== undefined){ zoomHeightFrom = (isNaN(zoomHeightFrom)) ? getScaleFromHeight(target.height) : zoomHeightFrom; zoomHeightTo = (isNaN(zoomHeightTo)) ? getScaleFromHeight(_local1.end["height"]) : zoomHeightTo; _local2 = true; }; if (_local2){ return; }; if (_local1.end["visible"] !== undefined){ show = _local1.end["visible"]; }; }; } private function mouseEventHandler(_arg1:MouseEvent):void{ if (_arg1.type == MouseEvent.MOUSE_MOVE){ _mouseHasMoved = true; } else { if ((((_arg1.type == MouseEvent.ROLL_OUT)) || ((_arg1.type == MouseEvent.ROLL_OVER)))){ if (!_mouseHasMoved){ _arg1.stopImmediatePropagation(); }; _mouseHasMoved = false; }; }; } override public function play():void{ super.play(); applyPropertyChanges(); if (((((((isNaN(zoomWidthFrom)) && (isNaN(zoomWidthTo)))) && (isNaN(zoomHeightFrom)))) && (isNaN(zoomHeightTo)))){ if (show){ zoomWidthFrom = (zoomHeightFrom = 0); zoomWidthTo = target.scaleX; zoomHeightTo = target.scaleY; } else { zoomWidthFrom = target.scaleX; zoomHeightFrom = target.scaleY; zoomWidthTo = (zoomHeightTo = 0); }; } else { if (((isNaN(zoomWidthFrom)) && (isNaN(zoomWidthTo)))){ zoomWidthFrom = (zoomWidthTo = target.scaleX); } else { if (((isNaN(zoomHeightFrom)) && (isNaN(zoomHeightTo)))){ zoomHeightFrom = (zoomHeightTo = target.scaleY); }; }; if (isNaN(zoomWidthFrom)){ zoomWidthFrom = target.scaleX; } else { if (isNaN(zoomWidthTo)){ zoomWidthTo = ((zoomWidthFrom)==1) ? 0 : 1; }; }; if (isNaN(zoomHeightFrom)){ zoomHeightFrom = target.scaleY; } else { if (isNaN(zoomHeightTo)){ zoomHeightTo = ((zoomHeightFrom)==1) ? 0 : 1; }; }; }; if (zoomWidthFrom < 0.01){ zoomWidthFrom = 0.01; }; if (zoomWidthTo < 0.01){ zoomWidthTo = 0.01; }; if (zoomHeightFrom < 0.01){ zoomHeightFrom = 0.01; }; if (zoomHeightTo < 0.01){ zoomHeightTo = 0.01; }; origScaleX = target.scaleX; origScaleY = target.scaleY; newX = (origX = target.x); newY = (origY = target.y); if (isNaN(originX)){ scaledOriginX = (target.width / 2); } else { scaledOriginX = (originX * origScaleX); }; if (isNaN(originY)){ scaledOriginY = (target.height / 2); } else { scaledOriginY = (originY * origScaleY); }; scaledOriginX = Number(scaledOriginX.toFixed(1)); scaledOriginY = Number(scaledOriginY.toFixed(1)); origPercentWidth = target.percentWidth; if (!isNaN(origPercentWidth)){ target.width = target.width; }; origPercentHeight = target.percentHeight; if (!isNaN(origPercentHeight)){ target.height = target.height; }; tween = createTween(this, [zoomWidthFrom, zoomHeightFrom], [zoomWidthTo, zoomHeightTo], duration); if (captureRollEvents){ target.addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false); target.addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false); target.addEventListener(MouseEvent.MOUSE_MOVE, mouseEventHandler, false); }; } override public function onTweenEnd(_arg1:Object):void{ var _local2:Number; var _local3:Number; if (!isNaN(origPercentWidth)){ _local2 = target.width; target.percentWidth = origPercentWidth; if (((target.parent) && ((target.parent.autoLayout == false)))){ target.mx_internal::_width = _local2; }; }; if (!isNaN(origPercentHeight)){ _local3 = target.height; target.percentHeight = origPercentHeight; if (((target.parent) && ((target.parent.autoLayout == false)))){ target.mx_internal::_height = _local3; }; }; super.onTweenEnd(_arg1); if (mx_internal::hideOnEffectEnd){ EffectManager.suspendEventHandling(); target.scaleX = origScaleX; target.scaleY = origScaleY; target.move(origX, origY); EffectManager.resumeEventHandling(); }; } override public function onTweenUpdate(_arg1:Object):void{ EffectManager.suspendEventHandling(); if (Math.abs((newX - target.x)) > 0.1){ origX = (origX + (Number(target.x.toFixed(1)) - newX)); }; if (Math.abs((newY - target.y)) > 0.1){ origY = (origY + (Number(target.y.toFixed(1)) - newY)); }; target.scaleX = _arg1[0]; target.scaleY = _arg1[1]; var _local2:Number = (_arg1[0] / origScaleX); var _local3:Number = (_arg1[1] / origScaleY); var _local4:Number = (scaledOriginX * _local2); var _local5:Number = (scaledOriginY * _local3); newX = ((scaledOriginX - _local4) + origX); newY = ((scaledOriginY - _local5) + origY); newX = Number(newX.toFixed(1)); newY = Number(newY.toFixed(1)); target.move(newX, newY); tween.mx_internal::needToLayout = true; EffectManager.resumeEventHandling(); } } }//package mx.effects.effectClasses
Section 230
//Effect (mx.effects.Effect) package mx.effects { import flash.events.*; import mx.core.*; import mx.events.*; import mx.managers.*; import mx.effects.effectClasses.*; import flash.utils.*; public class Effect extends EventDispatcher implements IEffect { private var _perElementOffset:Number;// = 0 private var _hideFocusRing:Boolean;// = false private var _customFilter:EffectTargetFilter; public var repeatCount:int;// = 1 public var suspendBackgroundProcessing:Boolean;// = false public var startDelay:int;// = 0 private var _relevantProperties:Array; private var _callValidateNow:Boolean;// = false mx_internal var applyActualDimensions:Boolean;// = true private var _filter:String; private var _triggerEvent:Event; private var _effectTargetHost:IEffectTargetHost; mx_internal var durationExplicitlySet:Boolean;// = false public var repeatDelay:int;// = 0 private var _targets:Array; mx_internal var propertyChangesArray:Array; mx_internal var filterObject:EffectTargetFilter; protected var endValuesCaptured:Boolean;// = false public var instanceClass:Class; private var _duration:Number;// = 500 private var isPaused:Boolean;// = false private var _relevantStyles:Array; private var _instances:Array; mx_internal static const VERSION:String = "3.0.0.0"; public function Effect(_arg1:Object=null){ _instances = []; instanceClass = IEffectInstance; _relevantStyles = []; _targets = []; super(); this.target = _arg1; } public function get targets():Array{ return (_targets); } public function set targets(_arg1:Array):void{ var _local2:int = _arg1.length; var _local3:int = (_local2 - 1); while (_local3 > 0) { if (_arg1[_local3] == null){ _arg1.splice(_local3, 1); }; _local3--; }; _targets = _arg1; } public function set hideFocusRing(_arg1:Boolean):void{ _hideFocusRing = _arg1; } public function get hideFocusRing():Boolean{ return (_hideFocusRing); } public function stop():void{ var _local3:IEffectInstance; var _local1:int = _instances.length; var _local2:int = _local1; while (_local2 >= 0) { _local3 = IEffectInstance(_instances[_local2]); if (_local3){ _local3.stop(); }; _local2--; }; } public function captureStartValues():void{ var _local1:int; var _local2:int; if (targets.length > 0){ propertyChangesArray = []; _callValidateNow = true; _local1 = targets.length; _local2 = 0; while (_local2 < _local1) { propertyChangesArray.push(new PropertyChanges(targets[_local2])); _local2++; }; propertyChangesArray = captureValues(propertyChangesArray, true); }; endValuesCaptured = false; } mx_internal function captureValues(_arg1:Array, _arg2:Boolean):Array{ var _local4:Object; var _local5:Object; var _local6:int; var _local7:int; var _local8:int; var _local9:int; var _local3:Array = (filterObject) ? mergeArrays(relevantProperties, filterObject.filterProperties) : relevantProperties; if (((_local3) && ((_local3.length > 0)))){ _local6 = _arg1.length; _local7 = 0; while (_local7 < _local6) { _local5 = _arg1[_local7].target; _local4 = (_arg2) ? _arg1[_local7].start : _arg1[_local7].end; _local8 = _local3.length; _local9 = 0; while (_local9 < _local8) { _local4[_local3[_local9]] = getValueFromTarget(_local5, _local3[_local9]); _local9++; }; _local7++; }; }; var _local10:Array = (filterObject) ? mergeArrays(relevantStyles, filterObject.filterStyles) : relevantStyles; if (((_local10) && ((_local10.length > 0)))){ _local6 = _arg1.length; _local7 = 0; while (_local7 < _local6) { _local5 = _arg1[_local7].target; _local4 = (_arg2) ? _arg1[_local7].start : _arg1[_local7].end; _local8 = _local10.length; _local9 = 0; while (_local9 < _local8) { _local4[_local10[_local9]] = _local5.getStyle(_local10[_local9]); _local9++; }; _local7++; }; }; return (_arg1); } protected function getValueFromTarget(_arg1:Object, _arg2:String){ if ((_arg2 in _arg1)){ return (_arg1[_arg2]); }; return (undefined); } public function set target(_arg1:Object):void{ _targets.splice(0); if (_arg1){ _targets[0] = _arg1; }; } public function get className():String{ var _local1:String = getQualifiedClassName(this); var _local2:int = _local1.indexOf("::"); if (_local2 != -1){ _local1 = _local1.substr((_local2 + 2)); }; return (_local1); } public function set perElementOffset(_arg1:Number):void{ _perElementOffset = _arg1; } public function resume():void{ var _local1:int; var _local2:int; if (((isPlaying) && (isPaused))){ isPaused = false; _local1 = _instances.length; _local2 = 0; while (_local2 < _local1) { IEffectInstance(_instances[_local2]).resume(); _local2++; }; }; } public function set duration(_arg1:Number):void{ durationExplicitlySet = true; _duration = _arg1; } public function play(_arg1:Array=null, _arg2:Boolean=false):Array{ var _local6:IEffectInstance; if ((((_arg1 == null)) && (!((propertyChangesArray == null))))){ if (_callValidateNow){ LayoutManager.getInstance().validateNow(); }; if (!endValuesCaptured){ propertyChangesArray = captureValues(propertyChangesArray, false); }; propertyChangesArray = stripUnchangedValues(propertyChangesArray); applyStartValues(propertyChangesArray, this.targets); }; var _local3:Array = createInstances(_arg1); var _local4:int = _local3.length; var _local5:int; while (_local5 < _local4) { _local6 = IEffectInstance(_local3[_local5]); Object(_local6).playReversed = _arg2; _local6.startEffect(); _local5++; }; return (_local3); } public function captureEndValues():void{ propertyChangesArray = captureValues(propertyChangesArray, false); endValuesCaptured = true; } protected function filterInstance(_arg1:Array, _arg2:Object):Boolean{ if (filterObject){ return (filterObject.filterInstance(_arg1, effectTargetHost, _arg2)); }; return (true); } public function get customFilter():EffectTargetFilter{ return (_customFilter); } public function get effectTargetHost():IEffectTargetHost{ return (_effectTargetHost); } public function set relevantProperties(_arg1:Array):void{ _relevantProperties = _arg1; } public function captureMoreStartValues(_arg1:Array):void{ var _local2:Array; var _local3:int; if (_arg1.length > 0){ _local2 = []; _local3 = 0; while (_local3 < _arg1.length) { _local2.push(new PropertyChanges(_arg1[_local3])); _local3++; }; _local2 = captureValues(_local2, true); propertyChangesArray = propertyChangesArray.concat(_local2); }; } public function deleteInstance(_arg1:IEffectInstance):void{ EventDispatcher(_arg1).removeEventListener(EffectEvent.EFFECT_START, effectStartHandler); EventDispatcher(_arg1).removeEventListener(EffectEvent.EFFECT_END, effectEndHandler); var _local2:int = _instances.length; var _local3:int; while (_local3 < _local2) { if (_instances[_local3] === _arg1){ _instances.splice(_local3, 1); }; _local3++; }; } public function get filter():String{ return (_filter); } public function set triggerEvent(_arg1:Event):void{ _triggerEvent = _arg1; } public function get target():Object{ if (_targets.length > 0){ return (_targets[0]); }; return (null); } public function get duration():Number{ return (_duration); } public function set customFilter(_arg1:EffectTargetFilter):void{ _customFilter = _arg1; filterObject = _arg1; } public function get perElementOffset():Number{ return (_perElementOffset); } public function set effectTargetHost(_arg1:IEffectTargetHost):void{ _effectTargetHost = _arg1; } public function get isPlaying():Boolean{ return (((_instances) && ((_instances.length > 0)))); } protected function effectEndHandler(_arg1:EffectEvent):void{ var _local2:IEffectInstance = IEffectInstance(_arg1.effectInstance); deleteInstance(_local2); dispatchEvent(_arg1); } public function get relevantProperties():Array{ if (_relevantProperties){ return (_relevantProperties); }; return (getAffectedProperties()); } public function createInstance(_arg1:Object=null):IEffectInstance{ var _local6:int; var _local7:int; if (!_arg1){ _arg1 = this.target; }; var _local2:IEffectInstance; var _local3:PropertyChanges; var _local4:Boolean; var _local5:Boolean; if (propertyChangesArray){ _local5 = true; _local4 = filterInstance(propertyChangesArray, _arg1); }; if (_local4){ _local2 = IEffectInstance(new instanceClass(_arg1)); initInstance(_local2); if (_local5){ _local6 = propertyChangesArray.length; _local7 = 0; while (_local7 < _local6) { if (propertyChangesArray[_local7].target == _arg1){ _local2.propertyChanges = propertyChangesArray[_local7]; }; _local7++; }; }; EventDispatcher(_local2).addEventListener(EffectEvent.EFFECT_START, effectStartHandler); EventDispatcher(_local2).addEventListener(EffectEvent.EFFECT_END, effectEndHandler); _instances.push(_local2); if (triggerEvent){ _local2.initEffect(triggerEvent); }; }; return (_local2); } protected function effectStartHandler(_arg1:EffectEvent):void{ dispatchEvent(_arg1); } public function getAffectedProperties():Array{ return ([]); } public function set relevantStyles(_arg1:Array):void{ _relevantStyles = _arg1; } public function get triggerEvent():Event{ return (_triggerEvent); } protected function applyValueToTarget(_arg1:Object, _arg2:String, _arg3, _arg4:Object):void{ var target = _arg1; var property = _arg2; var value = _arg3; var props = _arg4; if ((property in target)){ try { if (((((applyActualDimensions) && ((target is IFlexDisplayObject)))) && ((property == "height")))){ target.setActualSize(target.width, value); } else { if (((((applyActualDimensions) && ((target is IFlexDisplayObject)))) && ((property == "width")))){ target.setActualSize(value, target.height); } else { target[property] = value; }; }; } catch(e:Error) { }; }; } protected function initInstance(_arg1:IEffectInstance):void{ _arg1.duration = duration; Object(_arg1).durationExplicitlySet = durationExplicitlySet; _arg1.effect = this; _arg1.effectTargetHost = effectTargetHost; _arg1.hideFocusRing = hideFocusRing; _arg1.repeatCount = repeatCount; _arg1.repeatDelay = repeatDelay; _arg1.startDelay = startDelay; _arg1.suspendBackgroundProcessing = suspendBackgroundProcessing; } mx_internal function applyStartValues(_arg1:Array, _arg2:Array):void{ var _local6:int; var _local7:int; var _local8:Object; var _local9:Boolean; var _local3:Array = relevantProperties; var _local4:int = _arg1.length; var _local5:int; while (_local5 < _local4) { _local8 = _arg1[_local5].target; _local9 = false; _local6 = _arg2.length; _local7 = 0; while (_local7 < _local6) { if (_arg2[_local7] == _local8){ _local9 = filterInstance(_arg1, _local8); break; }; _local7++; }; if (_local9){ _local6 = _local3.length; _local7 = 0; while (_local7 < _local6) { if ((((_local3[_local7] in _arg1[_local5].start)) && ((_local3[_local7] in _local8)))){ applyValueToTarget(_local8, _local3[_local7], _arg1[_local5].start[_local3[_local7]], _arg1[_local5].start); }; _local7++; }; _local6 = relevantStyles.length; _local7 = 0; while (_local7 < _local6) { if ((relevantStyles[_local7] in _arg1[_local5].start)){ _local8.setStyle(relevantStyles[_local7], _arg1[_local5].start[relevantStyles[_local7]]); }; _local7++; }; }; _local5++; }; } public function end(_arg1:IEffectInstance=null):void{ var _local2:int; var _local3:int; var _local4:IEffectInstance; if (_arg1){ _arg1.end(); } else { _local2 = _instances.length; _local3 = _local2; while (_local3 >= 0) { _local4 = IEffectInstance(_instances[_local3]); if (_local4){ _local4.end(); }; _local3--; }; }; } public function get relevantStyles():Array{ return (_relevantStyles); } public function createInstances(_arg1:Array=null):Array{ var _local6:IEffectInstance; if (!_arg1){ _arg1 = this.targets; }; var _local2:Array = []; var _local3:int = _arg1.length; var _local4:Number = 0; var _local5:int; while (_local5 < _local3) { _local6 = createInstance(_arg1[_local5]); if (_local6){ _local6.startDelay = (_local6.startDelay + _local4); _local4 = (_local4 + perElementOffset); _local2.push(_local6); }; _local5++; }; triggerEvent = null; return (_local2); } public function pause():void{ var _local1:int; var _local2:int; if (((isPlaying) && (!(isPaused)))){ isPaused = true; _local1 = _instances.length; _local2 = 0; while (_local2 < _local1) { IEffectInstance(_instances[_local2]).pause(); _local2++; }; }; } public function set filter(_arg1:String):void{ if (!customFilter){ _filter = _arg1; switch (_arg1){ case "add": case "remove": filterObject = new AddRemoveEffectTargetFilter(); AddRemoveEffectTargetFilter(filterObject).add = (_arg1 == "add"); break; case "hide": case "show": filterObject = new HideShowEffectTargetFilter(); HideShowEffectTargetFilter(filterObject).show = (_arg1 == "show"); break; case "move": filterObject = new EffectTargetFilter(); filterObject.filterProperties = ["x", "y"]; break; case "resize": filterObject = new EffectTargetFilter(); filterObject.filterProperties = ["width", "height"]; break; case "addItem": filterObject = new EffectTargetFilter(); filterObject.requiredSemantics = {added:true}; break; case "removeItem": filterObject = new EffectTargetFilter(); filterObject.requiredSemantics = {removed:true}; break; case "replacedItem": filterObject = new EffectTargetFilter(); filterObject.requiredSemantics = {replaced:true}; break; case "replacementItem": filterObject = new EffectTargetFilter(); filterObject.requiredSemantics = {replacement:true}; break; default: filterObject = null; break; }; }; } public function reverse():void{ var _local1:int; var _local2:int; if (isPlaying){ _local1 = _instances.length; _local2 = 0; while (_local2 < _local1) { IEffectInstance(_instances[_local2]).reverse(); _local2++; }; }; } private static function mergeArrays(_arg1:Array, _arg2:Array):Array{ var _local3:int; var _local4:Boolean; var _local5:int; if (_arg2){ _local3 = 0; while (_local3 < _arg2.length) { _local4 = true; _local5 = 0; while (_local5 < _arg1.length) { if (_arg1[_local5] == _arg2[_local3]){ _local4 = false; break; }; _local5++; }; if (_local4){ _arg1.push(_arg2[_local3]); }; _local3++; }; }; return (_arg1); } private static function stripUnchangedValues(_arg1:Array):Array{ var _local3:Object; var _local2:int; while (_local2 < _arg1.length) { for (_local3 in _arg1[_local2].start) { if ((((_arg1[_local2].start[_local3] == _arg1[_local2].end[_local3])) || ((((((((typeof(_arg1[_local2].start[_local3]) == "number")) && ((typeof(_arg1[_local2].end[_local3]) == "number")))) && (isNaN(_arg1[_local2].start[_local3])))) && (isNaN(_arg1[_local2].end[_local3])))))){ delete _arg1[_local2].start[_local3]; delete _arg1[_local2].end[_local3]; }; }; _local2++; }; return (_arg1); } } }//package mx.effects
Section 231
//EffectInstance (mx.effects.EffectInstance) package mx.effects { import flash.events.*; import mx.core.*; import mx.events.*; import mx.effects.effectClasses.*; import flash.utils.*; public class EffectInstance extends EventDispatcher implements IEffectInstance { private var _hideFocusRing:Boolean; private var delayStartTime:Number;// = 0 mx_internal var stopRepeat:Boolean;// = false private var playCount:int;// = 0 private var _repeatCount:int;// = 0 private var _suspendBackgroundProcessing:Boolean;// = false mx_internal var delayTimer:Timer; private var _triggerEvent:Event; private var _effectTargetHost:IEffectTargetHost; mx_internal var parentCompositeEffectInstance:EffectInstance; mx_internal var durationExplicitlySet:Boolean;// = false private var _effect:IEffect; private var _target:Object; mx_internal var hideOnEffectEnd:Boolean;// = false private var _startDelay:int;// = 0 private var delayElapsedTime:Number;// = 0 private var _repeatDelay:int;// = 0 private var _propertyChanges:PropertyChanges; private var _duration:Number;// = 500 private var _playReversed:Boolean; mx_internal static const VERSION:String = "3.0.0.0"; public function EffectInstance(_arg1:Object){ this.target = _arg1; } public function get playheadTime():Number{ return ((((Math.max((playCount - 1), 0) * duration) + (Math.max((playCount - 2), 0) * repeatDelay)) + (playReversed) ? 0 : startDelay)); } public function get hideFocusRing():Boolean{ return (_hideFocusRing); } public function stop():void{ if (delayTimer){ delayTimer.reset(); }; stopRepeat = true; finishEffect(); } public function finishEffect():void{ playCount = 0; dispatchEvent(new EffectEvent(EffectEvent.EFFECT_END, false, false, this)); if (target){ target.dispatchEvent(new EffectEvent(EffectEvent.EFFECT_END, false, false, this)); }; if ((target is UIComponent)){ UIComponent(target).effectFinished(this); }; EffectManager.effectFinished(this); } public function set hideFocusRing(_arg1:Boolean):void{ _hideFocusRing = _arg1; } public function finishRepeat():void{ if (((((!(stopRepeat)) && (!((playCount == 0))))) && ((((playCount < repeatCount)) || ((repeatCount == 0)))))){ if (repeatDelay > 0){ delayTimer = new Timer(repeatDelay, 1); delayStartTime = getTimer(); delayTimer.addEventListener(TimerEvent.TIMER, delayTimerHandler); delayTimer.start(); } else { play(); }; } else { finishEffect(); }; } mx_internal function get playReversed():Boolean{ return (_playReversed); } public function set effect(_arg1:IEffect):void{ _effect = _arg1; } public function get className():String{ var _local1:String = getQualifiedClassName(this); var _local2:int = _local1.indexOf("::"); if (_local2 != -1){ _local1 = _local1.substr((_local2 + 2)); }; return (_local1); } public function set duration(_arg1:Number):void{ durationExplicitlySet = true; _duration = _arg1; } mx_internal function set playReversed(_arg1:Boolean):void{ _playReversed = _arg1; } public function resume():void{ if (((((delayTimer) && (!(delayTimer.running)))) && (!(isNaN(delayElapsedTime))))){ delayTimer.delay = (playReversed) ? delayElapsedTime : (delayTimer.delay - delayElapsedTime); delayTimer.start(); }; } public function get propertyChanges():PropertyChanges{ return (_propertyChanges); } public function set target(_arg1:Object):void{ _target = _arg1; } public function get repeatCount():int{ return (_repeatCount); } mx_internal function playWithNoDuration():void{ duration = 0; repeatCount = 1; repeatDelay = 0; startDelay = 0; startEffect(); } public function get startDelay():int{ return (_startDelay); } mx_internal function get actualDuration():Number{ var _local1:Number = NaN; if (repeatCount > 0){ _local1 = (((duration * repeatCount) + ((repeatDelay * repeatCount) - 1)) + startDelay); }; return (_local1); } public function play():void{ playCount++; dispatchEvent(new EffectEvent(EffectEvent.EFFECT_START, false, false, this)); if (target){ target.dispatchEvent(new EffectEvent(EffectEvent.EFFECT_START, false, false, this)); }; } public function get suspendBackgroundProcessing():Boolean{ return (_suspendBackgroundProcessing); } public function get effectTargetHost():IEffectTargetHost{ return (_effectTargetHost); } public function set repeatDelay(_arg1:int):void{ _repeatDelay = _arg1; } public function set propertyChanges(_arg1:PropertyChanges):void{ _propertyChanges = _arg1; } mx_internal function eventHandler(_arg1:Event):void{ if ((((_arg1.type == FlexEvent.SHOW)) && ((hideOnEffectEnd == true)))){ hideOnEffectEnd = false; _arg1.target.removeEventListener(FlexEvent.SHOW, eventHandler); }; } public function set repeatCount(_arg1:int):void{ _repeatCount = _arg1; } private function delayTimerHandler(_arg1:TimerEvent):void{ delayTimer.reset(); delayStartTime = NaN; delayElapsedTime = NaN; play(); } public function set suspendBackgroundProcessing(_arg1:Boolean):void{ _suspendBackgroundProcessing = _arg1; } public function set triggerEvent(_arg1:Event):void{ _triggerEvent = _arg1; } public function set startDelay(_arg1:int):void{ _startDelay = _arg1; } public function get effect():IEffect{ return (_effect); } public function set effectTargetHost(_arg1:IEffectTargetHost):void{ _effectTargetHost = _arg1; } public function get target():Object{ return (_target); } public function startEffect():void{ EffectManager.effectStarted(this); if ((target is UIComponent)){ UIComponent(target).effectStarted(this); }; if ((((startDelay > 0)) && (!(playReversed)))){ delayTimer = new Timer(startDelay, 1); delayStartTime = getTimer(); delayTimer.addEventListener(TimerEvent.TIMER, delayTimerHandler); delayTimer.start(); } else { play(); }; } public function get repeatDelay():int{ return (_repeatDelay); } public function get duration():Number{ if (((!(durationExplicitlySet)) && (parentCompositeEffectInstance))){ return (parentCompositeEffectInstance.duration); }; return (_duration); } public function initEffect(_arg1:Event):void{ triggerEvent = _arg1; switch (_arg1.type){ case "resizeStart": case "resizeEnd": if (!durationExplicitlySet){ duration = 250; }; break; case FlexEvent.HIDE: target.setVisible(true, true); hideOnEffectEnd = true; target.addEventListener(FlexEvent.SHOW, eventHandler); break; }; } public function get triggerEvent():Event{ return (_triggerEvent); } public function end():void{ if (delayTimer){ delayTimer.reset(); }; stopRepeat = true; finishEffect(); } public function reverse():void{ if (repeatCount > 0){ playCount = ((repeatCount - playCount) + 1); }; } public function pause():void{ if (((((delayTimer) && (delayTimer.running))) && (!(isNaN(delayStartTime))))){ delayTimer.stop(); delayElapsedTime = (getTimer() - delayStartTime); }; } } }//package mx.effects
Section 232
//EffectManager (mx.effects.EffectManager) package mx.effects { import flash.events.*; import flash.display.*; import mx.core.*; import mx.events.*; import mx.resources.*; import flash.utils.*; public class EffectManager extends EventDispatcher { mx_internal static const VERSION:String = "3.0.0.0"; private static var _resourceManager:IResourceManager; private static var effects:Dictionary = new Dictionary(true); mx_internal static var effectsPlaying:Array = []; private static var targetsInfo:Array = []; private static var effectTriggersForEvent:Object = {}; mx_internal static var lastEffectCreated:Effect; private static var eventHandlingSuspendCount:Number = 0; private static var eventsForEffectTriggers:Object = {}; public static function suspendEventHandling():void{ eventHandlingSuspendCount++; } mx_internal static function registerEffectTrigger(_arg1:String, _arg2:String):void{ var _local3:Number; if (_arg1 != ""){ if (_arg2 == ""){ _local3 = _arg1.length; if ((((_local3 > 6)) && ((_arg1.substring((_local3 - 6)) == "Effect")))){ _arg2 = _arg1.substring(0, (_local3 - 6)); }; }; if (_arg2 != ""){ effectTriggersForEvent[_arg2] = _arg1; eventsForEffectTriggers[_arg1] = _arg2; }; }; } private static function removedEffectHandler(_arg1:DisplayObject, _arg2:DisplayObjectContainer, _arg3:int, _arg4:Event):void{ suspendEventHandling(); _arg2.addChildAt(_arg1, _arg3); resumeEventHandling(); createAndPlayEffect(_arg4, _arg1); } private static function createAndPlayEffect(_arg1:Event, _arg2:Object):void{ var _local4:int; var _local5:int; var _local6:int; var _local7:int; var _local9:String; var _local10:String; var _local11:Array; var _local12:Array; var _local13:Array; var _local14:Array; var _local15:EffectInstance; var _local3:Effect = createEffectForType(_arg2, _arg1.type); if (!_local3){ return; }; if ((((_local3 is Zoom)) && ((_arg1.type == MoveEvent.MOVE)))){ _local9 = resourceManager.getString("effects", "incorrectTrigger"); throw (new Error(_local9)); }; if (_arg2.initialized == false){ _local10 = _arg1.type; if ((((((((((_local10 == MoveEvent.MOVE)) || ((_local10 == ResizeEvent.RESIZE)))) || ((_local10 == FlexEvent.SHOW)))) || ((_local10 == FlexEvent.HIDE)))) || ((_local10 == Event.CHANGE)))){ _local3 = null; return; }; }; if ((_local3.target is IUIComponent)){ _local11 = IUIComponent(_local3.target).tweeningProperties; if (((_local11) && ((_local11.length > 0)))){ _local12 = _local3.getAffectedProperties(); _local4 = _local11.length; _local6 = _local12.length; _local5 = 0; while (_local5 < _local4) { _local7 = 0; while (_local7 < _local6) { if (_local11[_local5] == _local12[_local7]){ _local3 = null; return; }; _local7++; }; _local5++; }; }; }; if ((((_local3.target is UIComponent)) && (UIComponent(_local3.target).isEffectStarted))){ _local13 = _local3.getAffectedProperties(); _local5 = 0; while (_local5 < _local13.length) { _local14 = _local3.target.getEffectsForProperty(_local13[_local5]); if (_local14.length > 0){ if (_arg1.type == ResizeEvent.RESIZE){ return; }; _local7 = 0; while (_local7 < _local14.length) { _local15 = _local14[_local7]; if ((((_arg1.type == FlexEvent.SHOW)) && (_local15.hideOnEffectEnd))){ _local15.target.removeEventListener(FlexEvent.SHOW, _local15.eventHandler); _local15.hideOnEffectEnd = false; }; _local15.end(); _local7++; }; }; _local5++; }; }; _local3.triggerEvent = _arg1; _local3.addEventListener(EffectEvent.EFFECT_END, EffectManager.effectEndHandler); lastEffectCreated = _local3; var _local8:Array = _local3.play(); _local4 = _local8.length; _local5 = 0; while (_local5 < _local4) { effectsPlaying.push(new EffectNode(_local3, _local8[_local5])); _local5++; }; if (_local3.suspendBackgroundProcessing){ UIComponent.suspendBackgroundProcessing(); }; } public static function endEffectsForTarget(_arg1:IUIComponent):void{ var _local4:EffectInstance; var _local2:int = effectsPlaying.length; var _local3:int = (_local2 - 1); while (_local3 >= 0) { _local4 = effectsPlaying[_local3].instance; if (_local4.target == _arg1){ _local4.end(); }; _local3--; }; } private static function cacheOrUncacheTargetAsBitmap(_arg1:IUIComponent, _arg2:Boolean=true, _arg3:Boolean=true):void{ var _local4:int; var _local5:int; var _local6:Object; _local4 = targetsInfo.length; _local5 = 0; while (_local5 < _local4) { if (targetsInfo[_local5].target == _arg1){ _local6 = targetsInfo[_local5]; break; }; _local5++; }; if (!_local6){ _local6 = {target:_arg1, bitmapEffectsCount:0, vectorEffectsCount:0}; targetsInfo.push(_local6); }; if (_arg2){ if (_arg3){ _local6.bitmapEffectsCount++; if ((((_local6.vectorEffectsCount == 0)) && ((_arg1 is IDeferredInstantiationUIComponent)))){ IDeferredInstantiationUIComponent(_arg1).cacheHeuristic = true; }; } else { if ((((((_local6.vectorEffectsCount++ == 0)) && ((_arg1 is IDeferredInstantiationUIComponent)))) && ((IDeferredInstantiationUIComponent(_arg1).cachePolicy == UIComponentCachePolicy.AUTO)))){ _arg1.cacheAsBitmap = false; }; }; } else { if (_arg3){ if (_local6.bitmapEffectsCount != 0){ _local6.bitmapEffectsCount--; }; if ((_arg1 is IDeferredInstantiationUIComponent)){ IDeferredInstantiationUIComponent(_arg1).cacheHeuristic = false; }; } else { if (_local6.vectorEffectsCount != 0){ if ((((--_local6.vectorEffectsCount == 0)) && (!((_local6.bitmapEffectsCount == 0))))){ _local4 = _local6.bitmapEffectsCount; _local5 = 0; while (_local5 < _local4) { if ((_arg1 is IDeferredInstantiationUIComponent)){ IDeferredInstantiationUIComponent(_arg1).cacheHeuristic = true; }; _local5++; }; }; }; }; if ((((_local6.bitmapEffectsCount == 0)) && ((_local6.vectorEffectsCount == 0)))){ _local4 = targetsInfo.length; _local5 = 0; while (_local5 < _local4) { if (targetsInfo[_local5].target == _arg1){ targetsInfo.splice(_local5, 1); break; }; _local5++; }; }; }; } mx_internal static function eventHandler(_arg1:Event):void{ var _local2:FocusEvent; var _local3:DisplayObject; var _local4:int; var _local5:DisplayObjectContainer; var _local6:int; if (!(_arg1.currentTarget is IFlexDisplayObject)){ return; }; if (eventHandlingSuspendCount > 0){ return; }; if ((((_arg1 is FocusEvent)) && ((((_arg1.type == FocusEvent.FOCUS_OUT)) || ((_arg1.type == FocusEvent.FOCUS_IN)))))){ _local2 = FocusEvent(_arg1); if (((_local2.relatedObject) && (((_local2.currentTarget.contains(_local2.relatedObject)) || ((_local2.currentTarget == _local2.relatedObject)))))){ return; }; }; if ((((((_arg1.type == Event.ADDED)) || ((_arg1.type == Event.REMOVED)))) && (!((_arg1.target == _arg1.currentTarget))))){ return; }; if (_arg1.type == Event.REMOVED){ if ((_arg1.target is UIComponent)){ if (UIComponent(_arg1.target).initialized == false){ return; }; if (UIComponent(_arg1.target).isEffectStarted){ _local4 = 0; while (_local4 < UIComponent(_arg1.target)._effectsStarted.length) { if (UIComponent(_arg1.target)._effectsStarted[_local4].triggerEvent.type == Event.REMOVED){ return; }; _local4++; }; }; }; _local3 = (_arg1.target as DisplayObject); if (_local3 != null){ _local5 = (_local3.parent as DisplayObjectContainer); if (_local5 != null){ _local6 = _local5.getChildIndex(_local3); if (_local6 >= 0){ if ((_local3 is UIComponent)){ UIComponent(_local3).callLater(removedEffectHandler, [_local3, _local5, _local6, _arg1]); }; }; }; }; } else { createAndPlayEffect(_arg1, _arg1.currentTarget); }; } mx_internal static function endBitmapEffect(_arg1:IUIComponent):void{ cacheOrUncacheTargetAsBitmap(_arg1, false, true); } private static function animateSameProperty(_arg1:Effect, _arg2:Effect, _arg3:EffectInstance):Boolean{ var _local4:Array; var _local5:Array; var _local6:int; var _local7:int; var _local8:int; var _local9:int; if (_arg1.target == _arg3.target){ _local4 = _arg1.getAffectedProperties(); _local5 = _arg2.getAffectedProperties(); _local6 = _local4.length; _local7 = _local5.length; _local8 = 0; while (_local8 < _local6) { _local9 = 0; while (_local9 < _local7) { if (_local4[_local8] == _local5[_local9]){ return (true); }; _local9++; }; _local8++; }; }; return (false); } mx_internal static function effectFinished(_arg1:EffectInstance):void{ delete effects[_arg1]; } mx_internal static function effectsInEffect():Boolean{ var _local1:*; for (_local1 in effects) { return (true); }; return (false); } mx_internal static function effectEndHandler(_arg1:EffectEvent):void{ var _local5:DisplayObject; var _local6:DisplayObjectContainer; var _local2:IEffectInstance = _arg1.effectInstance; var _local3:int = effectsPlaying.length; var _local4:int = (_local3 - 1); while (_local4 >= 0) { if (effectsPlaying[_local4].instance == _local2){ effectsPlaying.splice(_local4, 1); break; }; _local4--; }; if (Object(_local2).hideOnEffectEnd == true){ _local2.target.removeEventListener(FlexEvent.SHOW, Object(_local2).eventHandler); _local2.target.setVisible(false, true); }; if (((_local2.triggerEvent) && ((_local2.triggerEvent.type == Event.REMOVED)))){ _local5 = (_local2.target as DisplayObject); if (_local5 != null){ _local6 = (_local5.parent as DisplayObjectContainer); if (_local6 != null){ suspendEventHandling(); _local6.removeChild(_local5); resumeEventHandling(); }; }; }; if (_local2.suspendBackgroundProcessing){ UIComponent.resumeBackgroundProcessing(); }; } mx_internal static function startBitmapEffect(_arg1:IUIComponent):void{ cacheOrUncacheTargetAsBitmap(_arg1, true, true); } mx_internal static function setStyle(_arg1:String, _arg2):void{ var _local3:String = eventsForEffectTriggers[_arg1]; if (((!((_local3 == null))) && (!((_local3 == ""))))){ _arg2.addEventListener(_local3, EffectManager.eventHandler, false, EventPriority.EFFECT); }; } mx_internal static function getEventForEffectTrigger(_arg1:String):String{ var effectTrigger = _arg1; if (eventsForEffectTriggers){ try { return (eventsForEffectTriggers[effectTrigger]); } catch(e:Error) { return (""); }; }; return (""); } mx_internal static function createEffectForType(_arg1:Object, _arg2:String):Effect{ var cls:Class; var effectObj:Effect; var doc:Object; var target = _arg1; var type = _arg2; var trigger:String = effectTriggersForEvent[type]; if (trigger == ""){ trigger = (type + "Effect"); }; var value:Object = target.getStyle(trigger); if (!value){ return (null); }; if ((value is Class)){ cls = Class(value); return (new cls(target)); }; try { if ((value is String)){ doc = target.parentDocument; if (!doc){ doc = ApplicationGlobals.application; }; effectObj = doc[value]; } else { if ((value is Effect)){ effectObj = Effect(value); }; }; if (effectObj){ effectObj.target = target; return (effectObj); }; } catch(e:Error) { }; var effectClass:Class = Class(target.systemManager.getDefinitionByName(("mx.effects." + value))); if (effectClass){ return (new effectClass(target)); }; return (null); } mx_internal static function effectStarted(_arg1:EffectInstance):void{ effects[_arg1] = 1; } public static function resumeEventHandling():void{ eventHandlingSuspendCount--; } mx_internal static function startVectorEffect(_arg1:IUIComponent):void{ cacheOrUncacheTargetAsBitmap(_arg1, true, false); } mx_internal static function endVectorEffect(_arg1:IUIComponent):void{ cacheOrUncacheTargetAsBitmap(_arg1, false, false); } private static function get resourceManager():IResourceManager{ if (!_resourceManager){ _resourceManager = ResourceManager.getInstance(); }; return (_resourceManager); } } }//package mx.effects class EffectNode { public var factory:Effect; public var instance:EffectInstance; private function EffectNode(_arg1:Effect, _arg2:EffectInstance){ this.factory = _arg1; this.instance = _arg2; } }
Section 233
//EffectTargetFilter (mx.effects.EffectTargetFilter) package mx.effects { import mx.effects.effectClasses.*; public class EffectTargetFilter { public var filterFunction:Function; public var filterStyles:Array; public var filterProperties:Array; public var requiredSemantics:Object;// = null mx_internal static const VERSION:String = "3.0.0.0"; public function EffectTargetFilter(){ filterFunction = defaultFilterFunctionEx; filterProperties = []; filterStyles = []; super(); } protected function defaultFilterFunctionEx(_arg1:Array, _arg2:IEffectTargetHost, _arg3:Object):Boolean{ var _local4:String; if (requiredSemantics){ for (_local4 in requiredSemantics) { if (!_arg2){ return (false); }; if (_arg2.getRendererSemanticValue(_arg3, _local4) != requiredSemantics[_local4]){ return (false); }; }; return (true); }; return (defaultFilterFunction(_arg1, _arg3)); } protected function defaultFilterFunction(_arg1:Array, _arg2:Object):Boolean{ var _local5:PropertyChanges; var _local6:Array; var _local7:int; var _local8:int; var _local3:int = _arg1.length; var _local4:int; while (_local4 < _local3) { _local5 = _arg1[_local4]; if (_local5.target == _arg2){ _local6 = filterProperties.concat(filterStyles); _local7 = _local6.length; _local8 = 0; while (_local8 < _local7) { if (((!((_local5.start[_local6[_local8]] === undefined))) && (!((_local5.end[_local6[_local8]] == _local5.start[_local6[_local8]]))))){ return (true); }; _local8++; }; }; _local4++; }; return (false); } public function filterInstance(_arg1:Array, _arg2:IEffectTargetHost, _arg3:Object):Boolean{ if (filterFunction.length == 2){ return (filterFunction(_arg1, _arg3)); }; return (filterFunction(_arg1, _arg2, _arg3)); } } }//package mx.effects
Section 234
//IAbstractEffect (mx.effects.IAbstractEffect) package mx.effects { import flash.events.*; public interface IAbstractEffect extends IEventDispatcher { } }//package mx.effects
Section 235
//IEffect (mx.effects.IEffect) package mx.effects { import flash.events.*; public interface IEffect extends IAbstractEffect { function captureMoreStartValues(_arg1:Array):void; function get triggerEvent():Event; function set targets(_arg1:Array):void; function captureStartValues():void; function get hideFocusRing():Boolean; function get customFilter():EffectTargetFilter; function get effectTargetHost():IEffectTargetHost; function set triggerEvent(_arg1:Event):void; function set hideFocusRing(_arg1:Boolean):void; function captureEndValues():void; function get target():Object; function set customFilter(_arg1:EffectTargetFilter):void; function get duration():Number; function get perElementOffset():Number; function get targets():Array; function set effectTargetHost(_arg1:IEffectTargetHost):void; function get relevantStyles():Array; function set relevantProperties(_arg1:Array):void; function set target(_arg1:Object):void; function get className():String; function get isPlaying():Boolean; function deleteInstance(_arg1:IEffectInstance):void; function set duration(_arg1:Number):void; function createInstances(_arg1:Array=null):Array; function end(_arg1:IEffectInstance=null):void; function set perElementOffset(_arg1:Number):void; function resume():void; function stop():void; function set filter(_arg1:String):void; function createInstance(_arg1:Object=null):IEffectInstance; function play(_arg1:Array=null, _arg2:Boolean=false):Array; function pause():void; function get relevantProperties():Array; function get filter():String; function reverse():void; function getAffectedProperties():Array; function set relevantStyles(_arg1:Array):void; } }//package mx.effects
Section 236
//IEffectInstance (mx.effects.IEffectInstance) package mx.effects { import flash.events.*; import mx.effects.effectClasses.*; public interface IEffectInstance { function get playheadTime():Number; function get triggerEvent():Event; function set triggerEvent(_arg1:Event):void; function get hideFocusRing():Boolean; function initEffect(_arg1:Event):void; function set startDelay(_arg1:int):void; function get effectTargetHost():IEffectTargetHost; function finishEffect():void; function set hideFocusRing(_arg1:Boolean):void; function finishRepeat():void; function set repeatDelay(_arg1:int):void; function get effect():IEffect; function startEffect():void; function get duration():Number; function get target():Object; function get startDelay():int; function stop():void; function set effectTargetHost(_arg1:IEffectTargetHost):void; function set propertyChanges(_arg1:PropertyChanges):void; function set effect(_arg1:IEffect):void; function get className():String; function set duration(_arg1:Number):void; function set target(_arg1:Object):void; function end():void; function resume():void; function get propertyChanges():PropertyChanges; function set repeatCount(_arg1:int):void; function reverse():void; function get repeatCount():int; function pause():void; function get repeatDelay():int; function set suspendBackgroundProcessing(_arg1:Boolean):void; function play():void; function get suspendBackgroundProcessing():Boolean; } }//package mx.effects
Section 237
//IEffectTargetHost (mx.effects.IEffectTargetHost) package mx.effects { public interface IEffectTargetHost { function unconstrainRenderer(_arg1:Object):void; function removeDataEffectItem(_arg1:Object):void; function getRendererSemanticValue(_arg1:Object, _arg2:String):Object; function addDataEffectItem(_arg1:Object):void; } }//package mx.effects
Section 238
//Tween (mx.effects.Tween) package mx.effects { import flash.events.*; import mx.core.*; import mx.events.*; import flash.utils.*; public class Tween extends EventDispatcher { private var started:Boolean;// = false private var previousUpdateTime:Number; public var duration:Number;// = 3000 private var id:int; private var arrayMode:Boolean; private var _isPlaying:Boolean;// = true private var startValue:Object; public var listener:Object; private var userEquation:Function; mx_internal var needToLayout:Boolean;// = false private var updateFunction:Function; private var _doSeek:Boolean;// = false mx_internal var startTime:Number; private var endFunction:Function; private var endValue:Object; private var _doReverse:Boolean;// = false private var _playheadTime:Number;// = 0 private var _invertValues:Boolean;// = false private var maxDelay:Number;// = 87.5 mx_internal static const VERSION:String = "3.0.0.0"; private static var timer:Timer = null; private static var interval:Number = 10; mx_internal static var activeTweens:Array = []; mx_internal static var intervalTime:Number = NAN; public function Tween(_arg1:Object, _arg2:Object, _arg3:Object, _arg4:Number=-1, _arg5:Number=-1, _arg6:Function=null, _arg7:Function=null){ userEquation = defaultEasingFunction; super(); if (!_arg1){ return; }; if ((_arg2 is Array)){ arrayMode = true; }; this.listener = _arg1; this.startValue = _arg2; this.endValue = _arg3; if (((!(isNaN(_arg4))) && (!((_arg4 == -1))))){ this.duration = _arg4; }; if (((!(isNaN(_arg5))) && (!((_arg5 == -1))))){ maxDelay = (1000 / _arg5); }; this.updateFunction = _arg6; this.endFunction = _arg7; if (_arg4 == 0){ id = -1; endTween(); } else { Tween.addTween(this); }; } mx_internal function get playheadTime():Number{ return (_playheadTime); } public function stop():void{ if (id >= 0){ Tween.removeTweenAt(id); }; } mx_internal function get playReversed():Boolean{ return (_invertValues); } mx_internal function set playReversed(_arg1:Boolean):void{ _invertValues = _arg1; } public function resume():void{ _isPlaying = true; startTime = (intervalTime - _playheadTime); if (_doReverse){ reverse(); _doReverse = false; }; } public function setTweenHandlers(_arg1:Function, _arg2:Function):void{ this.updateFunction = _arg1; this.endFunction = _arg2; } private function defaultEasingFunction(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 / 2) * (Math.sin((Math.PI * ((_arg1 / _arg4) - 0.5))) + 1)) + _arg2)); } public function set easingFunction(_arg1:Function):void{ userEquation = _arg1; } public function endTween():void{ var _local1:TweenEvent = new TweenEvent(TweenEvent.TWEEN_END); var _local2:Object = getCurrentValue(duration); _local1.value = _local2; dispatchEvent(_local1); if (endFunction != null){ endFunction(_local2); } else { listener.onTweenEnd(_local2); }; if (id >= 0){ Tween.removeTweenAt(id); }; } public function reverse():void{ if (_isPlaying){ _doReverse = false; seek((duration - _playheadTime)); _invertValues = !(_invertValues); } else { _doReverse = !(_doReverse); }; } mx_internal function getCurrentValue(_arg1:Number):Object{ var _local2:Array; var _local3:int; var _local4:int; if (duration == 0){ return (endValue); }; if (_invertValues){ _arg1 = (duration - _arg1); }; if (arrayMode){ _local2 = []; _local3 = startValue.length; _local4 = 0; while (_local4 < _local3) { _local2[_local4] = userEquation(_arg1, startValue[_local4], (endValue[_local4] - startValue[_local4]), duration); _local4++; }; return (_local2); //unresolved jump }; return (userEquation(_arg1, startValue, (Number(endValue) - Number(startValue)), duration)); } mx_internal function doInterval():Boolean{ var _local2:Number; var _local3:Object; var _local4:TweenEvent; var _local5:TweenEvent; var _local1:Boolean; previousUpdateTime = intervalTime; if (((_isPlaying) || (_doSeek))){ _local2 = (intervalTime - startTime); _playheadTime = _local2; _local3 = getCurrentValue(_local2); if ((((_local2 >= duration)) && (!(_doSeek)))){ endTween(); _local1 = true; } else { if (!started){ _local5 = new TweenEvent(TweenEvent.TWEEN_START); dispatchEvent(_local5); started = true; }; _local4 = new TweenEvent(TweenEvent.TWEEN_UPDATE); _local4.value = _local3; dispatchEvent(_local4); if (updateFunction != null){ updateFunction(_local3); } else { listener.onTweenUpdate(_local3); }; }; _doSeek = false; }; return (_local1); } public function pause():void{ _isPlaying = false; } public function seek(_arg1:Number):void{ var _local2:Number = intervalTime; previousUpdateTime = _local2; startTime = (_local2 - _arg1); _doSeek = true; } mx_internal static function removeTween(_arg1:Tween):void{ removeTweenAt(_arg1.id); } private static function addTween(_arg1:Tween):void{ _arg1.id = activeTweens.length; activeTweens.push(_arg1); if (!timer){ timer = new Timer(interval); timer.addEventListener(TimerEvent.TIMER, timerHandler); timer.start(); } else { timer.start(); }; if (isNaN(intervalTime)){ intervalTime = getTimer(); }; _arg1.startTime = (_arg1.previousUpdateTime = intervalTime); } private static function timerHandler(_arg1:TimerEvent):void{ var _local6:Tween; var _local2:Boolean; var _local3:Number = intervalTime; intervalTime = getTimer(); var _local4:int = activeTweens.length; var _local5:int = _local4; while (_local5 >= 0) { _local6 = Tween(activeTweens[_local5]); if (_local6){ _local6.needToLayout = false; _local6.doInterval(); if (_local6.needToLayout){ _local2 = true; }; }; _local5--; }; if (_local2){ UIComponentGlobals.layoutManager.validateNow(); }; _arg1.updateAfterEvent(); } private static function removeTweenAt(_arg1:int):void{ var _local4:Tween; if ((((_arg1 >= activeTweens.length)) || ((_arg1 < 0)))){ return; }; activeTweens.splice(_arg1, 1); var _local2:int = activeTweens.length; var _local3:int = _arg1; while (_local3 < _local2) { _local4 = Tween(activeTweens[_local3]); _local4.id--; _local3++; }; if (_local2 == 0){ intervalTime = NaN; timer.reset(); }; } } }//package mx.effects
Section 239
//TweenEffect (mx.effects.TweenEffect) package mx.effects { import flash.events.*; import mx.events.*; import mx.effects.effectClasses.*; public class TweenEffect extends Effect { public var easingFunction:Function;// = null mx_internal static const VERSION:String = "3.0.0.0"; public function TweenEffect(_arg1:Object=null){ super(_arg1); instanceClass = TweenEffectInstance; } protected function tweenEventHandler(_arg1:TweenEvent):void{ dispatchEvent(_arg1); } override protected function initInstance(_arg1:IEffectInstance):void{ super.initInstance(_arg1); TweenEffectInstance(_arg1).easingFunction = easingFunction; EventDispatcher(_arg1).addEventListener(TweenEvent.TWEEN_START, tweenEventHandler); EventDispatcher(_arg1).addEventListener(TweenEvent.TWEEN_UPDATE, tweenEventHandler); EventDispatcher(_arg1).addEventListener(TweenEvent.TWEEN_END, tweenEventHandler); } } }//package mx.effects
Section 240
//Zoom (mx.effects.Zoom) package mx.effects { import mx.effects.effectClasses.*; public class Zoom extends TweenEffect { public var zoomHeightFrom:Number; public var zoomWidthTo:Number; public var originX:Number; public var zoomHeightTo:Number; public var originY:Number; public var captureRollEvents:Boolean; public var zoomWidthFrom:Number; mx_internal static const VERSION:String = "3.0.0.0"; private static var AFFECTED_PROPERTIES:Array = ["scaleX", "scaleY", "x", "y", "width", "height"]; public function Zoom(_arg1:Object=null){ super(_arg1); instanceClass = ZoomInstance; applyActualDimensions = false; relevantProperties = ["scaleX", "scaleY", "width", "height", "visible"]; } override protected function initInstance(_arg1:IEffectInstance):void{ var _local2:ZoomInstance; super.initInstance(_arg1); _local2 = ZoomInstance(_arg1); _local2.zoomWidthFrom = zoomWidthFrom; _local2.zoomWidthTo = zoomWidthTo; _local2.zoomHeightFrom = zoomHeightFrom; _local2.zoomHeightTo = zoomHeightTo; _local2.originX = originX; _local2.originY = originY; _local2.captureRollEvents = captureRollEvents; } override public function getAffectedProperties():Array{ return (AFFECTED_PROPERTIES); } } }//package mx.effects
Section 241
//ChildExistenceChangedEvent (mx.events.ChildExistenceChangedEvent) package mx.events { import flash.events.*; import flash.display.*; public class ChildExistenceChangedEvent extends Event { public var relatedObject:DisplayObject; public static const CHILD_REMOVE:String = "childRemove"; mx_internal static const VERSION:String = "3.0.0.0"; public static const OVERLAY_CREATED:String = "overlayCreated"; public static const CHILD_ADD:String = "childAdd"; public function ChildExistenceChangedEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:DisplayObject=null){ super(_arg1, _arg2, _arg3); this.relatedObject = _arg4; } override public function clone():Event{ return (new ChildExistenceChangedEvent(type, bubbles, cancelable, relatedObject)); } } }//package mx.events
Section 242
//DragEvent (mx.events.DragEvent) package mx.events { import flash.events.*; import mx.core.*; public class DragEvent extends MouseEvent { public var draggedItem:Object; public var action:String; public var dragInitiator:IUIComponent; public var dragSource:DragSource; public static const DRAG_DROP:String = "dragDrop"; public static const DRAG_COMPLETE:String = "dragComplete"; public static const DRAG_EXIT:String = "dragExit"; public static const DRAG_ENTER:String = "dragEnter"; public static const DRAG_START:String = "dragStart"; mx_internal static const VERSION:String = "3.0.0.0"; public static const DRAG_OVER:String = "dragOver"; public function DragEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=true, _arg4:IUIComponent=null, _arg5:DragSource=null, _arg6:String=null, _arg7:Boolean=false, _arg8:Boolean=false, _arg9:Boolean=false){ super(_arg1, _arg2, _arg3); this.dragInitiator = _arg4; this.dragSource = _arg5; this.action = _arg6; this.ctrlKey = _arg7; this.altKey = _arg8; this.shiftKey = _arg9; } override public function clone():Event{ var _local1:DragEvent = new DragEvent(type, bubbles, cancelable, dragInitiator, dragSource, action, ctrlKey, altKey, shiftKey); _local1.relatedObject = this.relatedObject; _local1.localX = this.localX; _local1.localY = this.localY; return (_local1); } } }//package mx.events
Section 243
//DynamicEvent (mx.events.DynamicEvent) package mx.events { import flash.events.*; public dynamic class DynamicEvent extends Event { mx_internal static const VERSION:String = "3.0.0.0"; public function DynamicEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } override public function clone():Event{ var _local2:String; var _local1:DynamicEvent = new DynamicEvent(type, bubbles, cancelable); for (_local2 in this) { _local1[_local2] = this[_local2]; }; return (_local1); } } }//package mx.events
Section 244
//EffectEvent (mx.events.EffectEvent) package mx.events { import flash.events.*; import mx.effects.*; public class EffectEvent extends Event { public var effectInstance:IEffectInstance; public static const EFFECT_START:String = "effectStart"; mx_internal static const VERSION:String = "3.0.0.0"; public static const EFFECT_END:String = "effectEnd"; public function EffectEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:IEffectInstance=null){ super(_arg1, _arg2, _arg3); this.effectInstance = _arg4; } override public function clone():Event{ return (new EffectEvent(type, bubbles, cancelable, effectInstance)); } } }//package mx.events
Section 245
//FlexEvent (mx.events.FlexEvent) package mx.events { import flash.events.*; public class FlexEvent extends Event { public static const ADD:String = "add"; public static const TRANSFORM_CHANGE:String = "transformChange"; public static const INIT_COMPLETE:String = "initComplete"; public static const REMOVE:String = "remove"; public static const BUTTON_DOWN:String = "buttonDown"; public static const EXIT_STATE:String = "exitState"; public static const CREATION_COMPLETE:String = "creationComplete"; public static const REPEAT:String = "repeat"; public static const LOADING:String = "loading"; public static const REPEAT_START:String = "repeatStart"; public static const INITIALIZE:String = "initialize"; public static const ENTER_STATE:String = "enterState"; public static const URL_CHANGED:String = "urlChanged"; public static const REPEAT_END:String = "repeatEnd"; mx_internal static const VERSION:String = "3.0.0.0"; public static const HIDE:String = "hide"; public static const ENTER:String = "enter"; public static const PRELOADER_DONE:String = "preloaderDone"; public static const CURSOR_UPDATE:String = "cursorUpdate"; public static const PREINITIALIZE:String = "preinitialize"; public static const INVALID:String = "invalid"; public static const IDLE:String = "idle"; public static const VALID:String = "valid"; public static const DATA_CHANGE:String = "dataChange"; public static const APPLICATION_COMPLETE:String = "applicationComplete"; public static const VALUE_COMMIT:String = "valueCommit"; public static const UPDATE_COMPLETE:String = "updateComplete"; public static const INIT_PROGRESS:String = "initProgress"; public static const SHOW:String = "show"; public function FlexEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } override public function clone():Event{ return (new FlexEvent(type, bubbles, cancelable)); } } }//package mx.events
Section 246
//FlexMouseEvent (mx.events.FlexMouseEvent) package mx.events { import flash.events.*; import flash.display.*; public class FlexMouseEvent extends MouseEvent { public static const MOUSE_DOWN_OUTSIDE:String = "mouseDownOutside"; public static const MOUSE_WHEEL_OUTSIDE:String = "mouseWheelOutside"; mx_internal static const VERSION:String = "3.0.0.0"; public function FlexMouseEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Number=0, _arg5:Number=0, _arg6:InteractiveObject=null, _arg7:Boolean=false, _arg8:Boolean=false, _arg9:Boolean=false, _arg10:Boolean=false, _arg11:int=0){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11); } override public function clone():Event{ return (new FlexMouseEvent(type, bubbles, cancelable, localX, localY, relatedObject, ctrlKey, altKey, shiftKey, buttonDown, delta)); } } }//package mx.events
Section 247
//ModuleEvent (mx.events.ModuleEvent) package mx.events { import flash.events.*; import mx.modules.*; public class ModuleEvent extends ProgressEvent { public var errorText:String; private var _module:IModuleInfo; public static const READY:String = "ready"; public static const ERROR:String = "error"; public static const PROGRESS:String = "progress"; mx_internal static const VERSION:String = "3.0.0.0"; public static const SETUP:String = "setup"; public static const UNLOAD:String = "unload"; public function ModuleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null, _arg7:IModuleInfo=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; this._module = _arg7; } public function get module():IModuleInfo{ if (_module){ return (_module); }; return ((target as IModuleInfo)); } override public function clone():Event{ return (new ModuleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText, module)); } } }//package mx.events
Section 248
//MoveEvent (mx.events.MoveEvent) package mx.events { import flash.events.*; public class MoveEvent extends Event { public var oldX:Number; public var oldY:Number; mx_internal static const VERSION:String = "3.0.0.0"; public static const MOVE:String = "move"; public function MoveEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Number=NaN, _arg5:Number=NaN){ super(_arg1, _arg2, _arg3); this.oldX = _arg4; this.oldY = _arg5; } override public function clone():Event{ return (new MoveEvent(type, bubbles, cancelable, oldX, oldY)); } } }//package mx.events
Section 249
//PropertyChangeEvent (mx.events.PropertyChangeEvent) package mx.events { import flash.events.*; public class PropertyChangeEvent extends Event { public var newValue:Object; public var kind:String; public var property:Object; public var oldValue:Object; public var source:Object; mx_internal static const VERSION:String = "3.0.0.0"; public static const PROPERTY_CHANGE:String = "propertyChange"; public function PropertyChangeEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:String=null, _arg5:Object=null, _arg6:Object=null, _arg7:Object=null, _arg8:Object=null){ super(_arg1, _arg2, _arg3); this.kind = _arg4; this.property = _arg5; this.oldValue = _arg6; this.newValue = _arg7; this.source = _arg8; } override public function clone():Event{ return (new PropertyChangeEvent(type, bubbles, cancelable, kind, property, oldValue, newValue, source)); } public static function createUpdateEvent(_arg1:Object, _arg2:Object, _arg3:Object, _arg4:Object):PropertyChangeEvent{ var _local5:PropertyChangeEvent = new PropertyChangeEvent(PROPERTY_CHANGE); _local5.kind = PropertyChangeEventKind.UPDATE; _local5.oldValue = _arg3; _local5.newValue = _arg4; _local5.source = _arg1; _local5.property = _arg2; return (_local5); } } }//package mx.events
Section 250
//PropertyChangeEventKind (mx.events.PropertyChangeEventKind) package mx.events { public final class PropertyChangeEventKind { mx_internal static const VERSION:String = "3.0.0.0"; public static const UPDATE:String = "update"; public static const DELETE:String = "delete"; } }//package mx.events
Section 251
//ResizeEvent (mx.events.ResizeEvent) package mx.events { import flash.events.*; public class ResizeEvent extends Event { public var oldHeight:Number; public var oldWidth:Number; mx_internal static const VERSION:String = "3.0.0.0"; public static const RESIZE:String = "resize"; public function ResizeEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Number=NaN, _arg5:Number=NaN){ super(_arg1, _arg2, _arg3); this.oldWidth = _arg4; this.oldHeight = _arg5; } override public function clone():Event{ return (new ResizeEvent(type, bubbles, cancelable, oldWidth, oldHeight)); } } }//package mx.events
Section 252
//ResourceEvent (mx.events.ResourceEvent) package mx.events { import flash.events.*; public class ResourceEvent extends ProgressEvent { public var errorText:String; mx_internal static const VERSION:String = "3.0.0.0"; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public static const ERROR:String = "error"; public function ResourceEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; } override public function clone():Event{ return (new ResourceEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText)); } } }//package mx.events
Section 253
//RSLEvent (mx.events.RSLEvent) package mx.events { import flash.events.*; import flash.net.*; public class RSLEvent extends ProgressEvent { public var errorText:String; public var rslIndex:int; public var rslTotal:int; public var url:URLRequest; public static const RSL_PROGRESS:String = "rslProgress"; public static const RSL_ERROR:String = "rslError"; mx_internal static const VERSION:String = "3.0.0.0"; public static const RSL_COMPLETE:String = "rslComplete"; public function RSLEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=-1, _arg5:int=-1, _arg6:int=-1, _arg7:int=-1, _arg8:URLRequest=null, _arg9:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.rslIndex = _arg6; this.rslTotal = _arg7; this.url = _arg8; this.errorText = _arg9; } override public function clone():Event{ return (new RSLEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, rslIndex, rslTotal, url, errorText)); } } }//package mx.events
Section 254
//StateChangeEvent (mx.events.StateChangeEvent) package mx.events { import flash.events.*; public class StateChangeEvent extends Event { public var newState:String; public var oldState:String; public static const CURRENT_STATE_CHANGING:String = "currentStateChanging"; public static const CURRENT_STATE_CHANGE:String = "currentStateChange"; mx_internal static const VERSION:String = "3.0.0.0"; public function StateChangeEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:String=null, _arg5:String=null){ super(_arg1, _arg2, _arg3); this.oldState = _arg4; this.newState = _arg5; } override public function clone():Event{ return (new StateChangeEvent(type, bubbles, cancelable, oldState, newState)); } } }//package mx.events
Section 255
//StyleEvent (mx.events.StyleEvent) package mx.events { import flash.events.*; public class StyleEvent extends ProgressEvent { public var errorText:String; mx_internal static const VERSION:String = "3.0.0.0"; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public static const ERROR:String = "error"; public function StyleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; } override public function clone():Event{ return (new StyleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText)); } } }//package mx.events
Section 256
//ToolTipEvent (mx.events.ToolTipEvent) package mx.events { import flash.events.*; import mx.core.*; public class ToolTipEvent extends Event { public var toolTip:IToolTip; public static const TOOL_TIP_SHOWN:String = "toolTipShown"; public static const TOOL_TIP_CREATE:String = "toolTipCreate"; public static const TOOL_TIP_SHOW:String = "toolTipShow"; public static const TOOL_TIP_HIDE:String = "toolTipHide"; public static const TOOL_TIP_END:String = "toolTipEnd"; mx_internal static const VERSION:String = "3.0.0.0"; public static const TOOL_TIP_START:String = "toolTipStart"; public function ToolTipEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:IToolTip=null){ super(_arg1, _arg2, _arg3); this.toolTip = _arg4; } override public function clone():Event{ return (new ToolTipEvent(type, bubbles, cancelable, toolTip)); } } }//package mx.events
Section 257
//TweenEvent (mx.events.TweenEvent) package mx.events { import flash.events.*; public class TweenEvent extends Event { public var value:Object; public static const TWEEN_END:String = "tweenEnd"; mx_internal static const VERSION:String = "3.0.0.0"; public static const TWEEN_UPDATE:String = "tweenUpdate"; public static const TWEEN_START:String = "tweenStart"; public function TweenEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Object=null){ super(_arg1, _arg2, _arg3); this.value = _arg4; } override public function clone():Event{ return (new TweenEvent(type, bubbles, cancelable, value)); } } }//package mx.events
Section 258
//ValidationResultEvent (mx.events.ValidationResultEvent) package mx.events { import flash.events.*; public class ValidationResultEvent extends Event { public var results:Array; public var field:String; public static const INVALID:String = "invalid"; mx_internal static const VERSION:String = "3.0.0.0"; public static const VALID:String = "valid"; public function ValidationResultEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:String=null, _arg5:Array=null){ super(_arg1, _arg2, _arg3); this.field = _arg4; this.results = _arg5; } public function get message():String{ var _local1 = ""; var _local2:int = results.length; var _local3:int; while (_local3 < _local2) { if (results[_local3].isError){ _local1 = (_local1 + ((_local1 == "")) ? "" : "\n"); _local1 = (_local1 + results[_local3].errorMessage); }; _local3++; }; return (_local1); } override public function clone():Event{ return (new ValidationResultEvent(type, bubbles, cancelable, field, results)); } } }//package mx.events
Section 259
//RectangularDropShadow (mx.graphics.RectangularDropShadow) package mx.graphics { import flash.display.*; import mx.core.*; import flash.filters.*; import flash.geom.*; import mx.utils.*; public class RectangularDropShadow { private var leftShadow:BitmapData; private var _tlRadius:Number;// = 0 private var _trRadius:Number;// = 0 private var _angle:Number;// = 45 private var topShadow:BitmapData; private var _distance:Number;// = 4 private var rightShadow:BitmapData; private var _alpha:Number;// = 0.4 private var shadow:BitmapData; private var _brRadius:Number;// = 0 private var _blRadius:Number;// = 0 private var _color:int;// = 0 private var bottomShadow:BitmapData; private var changed:Boolean;// = true mx_internal static const VERSION:String = "3.0.0.0"; public function get blRadius():Number{ return (_blRadius); } public function set brRadius(_arg1:Number):void{ if (_brRadius != _arg1){ _brRadius = _arg1; changed = true; }; } public function set color(_arg1:int):void{ if (_color != _arg1){ _color = _arg1; changed = true; }; } public function drawShadow(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{ var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; if (changed){ createShadowBitmaps(); changed = false; }; _arg4 = Math.ceil(_arg4); _arg5 = Math.ceil(_arg5); var _local6:int = (leftShadow) ? leftShadow.width : 0; var _local7:int = (rightShadow) ? rightShadow.width : 0; var _local8:int = (topShadow) ? topShadow.height : 0; var _local9:int = (bottomShadow) ? bottomShadow.height : 0; var _local10:int = (_local6 + _local7); var _local11:int = (_local8 + _local9); var _local12:Number = ((_arg5 + _local11) / 2); var _local13:Number = ((_arg4 + _local10) / 2); var _local14:Matrix = new Matrix(); if (((leftShadow) || (topShadow))){ _local15 = Math.min((tlRadius + _local10), _local13); _local16 = Math.min((tlRadius + _local11), _local12); _local14.tx = (_arg2 - _local6); _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((_arg2 - _local6), (_arg3 - _local8), _local15, _local16); _arg1.endFill(); }; if (((rightShadow) || (topShadow))){ _local17 = Math.min((trRadius + _local10), _local13); _local18 = Math.min((trRadius + _local11), _local12); _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width); _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local17), (_arg3 - _local8), _local17, _local18); _arg1.endFill(); }; if (((leftShadow) || (bottomShadow))){ _local19 = Math.min((blRadius + _local10), _local13); _local20 = Math.min((blRadius + _local11), _local12); _local14.tx = (_arg2 - _local6); _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((_arg2 - _local6), (((_arg3 + _arg5) + _local9) - _local20), _local19, _local20); _arg1.endFill(); }; if (((rightShadow) || (bottomShadow))){ _local21 = Math.min((brRadius + _local10), _local13); _local22 = Math.min((brRadius + _local11), _local12); _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width); _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local21), (((_arg3 + _arg5) + _local9) - _local22), _local21, _local22); _arg1.endFill(); }; if (leftShadow){ _local14.tx = (_arg2 - _local6); _local14.ty = 0; _arg1.beginBitmapFill(leftShadow, _local14); _arg1.drawRect((_arg2 - _local6), ((_arg3 - _local8) + _local16), _local6, ((((_arg5 + _local8) + _local9) - _local16) - _local20)); _arg1.endFill(); }; if (rightShadow){ _local14.tx = (_arg2 + _arg4); _local14.ty = 0; _arg1.beginBitmapFill(rightShadow, _local14); _arg1.drawRect((_arg2 + _arg4), ((_arg3 - _local8) + _local18), _local7, ((((_arg5 + _local8) + _local9) - _local18) - _local22)); _arg1.endFill(); }; if (topShadow){ _local14.tx = 0; _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(topShadow, _local14); _arg1.drawRect(((_arg2 - _local6) + _local15), (_arg3 - _local8), ((((_arg4 + _local6) + _local7) - _local15) - _local17), _local8); _arg1.endFill(); }; if (bottomShadow){ _local14.tx = 0; _local14.ty = (_arg3 + _arg5); _arg1.beginBitmapFill(bottomShadow, _local14); _arg1.drawRect(((_arg2 - _local6) + _local19), (_arg3 + _arg5), ((((_arg4 + _local6) + _local7) - _local19) - _local21), _local9); _arg1.endFill(); }; } public function get brRadius():Number{ return (_brRadius); } public function get angle():Number{ return (_angle); } private function createShadowBitmaps():void{ var _local1:Number = ((Math.max(tlRadius, blRadius) + (2 * distance)) + Math.max(trRadius, brRadius)); var _local2:Number = ((Math.max(tlRadius, trRadius) + (2 * distance)) + Math.max(blRadius, brRadius)); if ((((_local1 < 0)) || ((_local2 < 0)))){ return; }; var _local3:Shape = new FlexShape(); var _local4:Graphics = _local3.graphics; _local4.beginFill(0xFFFFFF); GraphicsUtil.drawRoundRectComplex(_local4, 0, 0, _local1, _local2, tlRadius, trRadius, blRadius, brRadius); _local4.endFill(); var _local5:BitmapData = new BitmapData(_local1, _local2, true, 0); _local5.draw(_local3, new Matrix()); var _local6:DropShadowFilter = new DropShadowFilter(distance, angle, color, alpha); _local6.knockout = true; var _local7:Rectangle = new Rectangle(0, 0, _local1, _local2); var _local8:Rectangle = _local5.generateFilterRect(_local7, _local6); var _local9:Number = (_local7.left - _local8.left); var _local10:Number = (_local8.right - _local7.right); var _local11:Number = (_local7.top - _local8.top); var _local12:Number = (_local8.bottom - _local7.bottom); shadow = new BitmapData(_local8.width, _local8.height); shadow.applyFilter(_local5, _local7, new Point(_local9, _local11), _local6); var _local13:Point = new Point(0, 0); var _local14:Rectangle = new Rectangle(); if (_local9 > 0){ _local14.x = 0; _local14.y = ((tlRadius + _local11) + _local12); _local14.width = _local9; _local14.height = 1; leftShadow = new BitmapData(_local9, 1); leftShadow.copyPixels(shadow, _local14, _local13); } else { leftShadow = null; }; if (_local10 > 0){ _local14.x = (shadow.width - _local10); _local14.y = ((trRadius + _local11) + _local12); _local14.width = _local10; _local14.height = 1; rightShadow = new BitmapData(_local10, 1); rightShadow.copyPixels(shadow, _local14, _local13); } else { rightShadow = null; }; if (_local11 > 0){ _local14.x = ((tlRadius + _local9) + _local10); _local14.y = 0; _local14.width = 1; _local14.height = _local11; topShadow = new BitmapData(1, _local11); topShadow.copyPixels(shadow, _local14, _local13); } else { topShadow = null; }; if (_local12 > 0){ _local14.x = ((blRadius + _local9) + _local10); _local14.y = (shadow.height - _local12); _local14.width = 1; _local14.height = _local12; bottomShadow = new BitmapData(1, _local12); bottomShadow.copyPixels(shadow, _local14, _local13); } else { bottomShadow = null; }; } public function get alpha():Number{ return (_alpha); } public function get color():int{ return (_color); } public function set angle(_arg1:Number):void{ if (_angle != _arg1){ _angle = _arg1; changed = true; }; } public function set trRadius(_arg1:Number):void{ if (_trRadius != _arg1){ _trRadius = _arg1; changed = true; }; } public function set tlRadius(_arg1:Number):void{ if (_tlRadius != _arg1){ _tlRadius = _arg1; changed = true; }; } public function get trRadius():Number{ return (_trRadius); } public function set distance(_arg1:Number):void{ if (_distance != _arg1){ _distance = _arg1; changed = true; }; } public function get distance():Number{ return (_distance); } public function get tlRadius():Number{ return (_tlRadius); } public function set alpha(_arg1:Number):void{ if (_alpha != _arg1){ _alpha = _arg1; changed = true; }; } public function set blRadius(_arg1:Number):void{ if (_blRadius != _arg1){ _blRadius = _arg1; changed = true; }; } } }//package mx.graphics
Section 260
//RoundedRectangle (mx.graphics.RoundedRectangle) package mx.graphics { import flash.geom.*; public class RoundedRectangle extends Rectangle { public var cornerRadius:Number;// = 0 mx_internal static const VERSION:String = "3.0.0.0"; public function RoundedRectangle(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0){ super(_arg1, _arg2, _arg3, _arg4); this.cornerRadius = _arg5; } } }//package mx.graphics
Section 261
//PriorityQueue (mx.managers.layoutClasses.PriorityQueue) package mx.managers.layoutClasses { import flash.display.*; import mx.core.*; import mx.managers.*; public class PriorityQueue { private var maxPriority:int;// = -1 private var arrayOfArrays:Array; private var minPriority:int;// = 0 mx_internal static const VERSION:String = "3.0.0.0"; public function PriorityQueue(){ arrayOfArrays = []; super(); } public function addObject(_arg1:Object, _arg2:int):void{ if (!arrayOfArrays[_arg2]){ arrayOfArrays[_arg2] = []; }; arrayOfArrays[_arg2].push(_arg1); if (maxPriority < minPriority){ minPriority = (maxPriority = _arg2); } else { if (_arg2 < minPriority){ minPriority = _arg2; }; if (_arg2 > maxPriority){ maxPriority = _arg2; }; }; } public function removeSmallest():Object{ var _local1:Object; if (minPriority <= maxPriority){ while (((!(arrayOfArrays[minPriority])) || ((arrayOfArrays[minPriority].length == 0)))) { minPriority++; if (minPriority > maxPriority){ return (null); }; }; _local1 = arrayOfArrays[minPriority].shift(); while (((!(arrayOfArrays[minPriority])) || ((arrayOfArrays[minPriority].length == 0)))) { minPriority++; if (minPriority > maxPriority){ break; }; }; }; return (_local1); } public function removeLargestChild(_arg1:ILayoutManagerClient):Object{ var _local5:int; var _local2:Object; var _local3:int = maxPriority; var _local4:int = _arg1.nestLevel; while (_local4 <= _local3) { if (((arrayOfArrays[_local3]) && ((arrayOfArrays[_local3].length > 0)))){ _local5 = 0; while (_local5 < arrayOfArrays[_local3].length) { if (contains(DisplayObject(_arg1), arrayOfArrays[_local3][_local5])){ _local2 = arrayOfArrays[_local3][_local5]; arrayOfArrays[_local3].splice(_local5, 1); return (_local2); }; _local5++; }; _local3--; } else { if (_local3 == maxPriority){ maxPriority--; }; _local3--; if (_local3 < _local4){ break; }; }; }; return (_local2); } public function isEmpty():Boolean{ return ((minPriority > maxPriority)); } public function removeLargest():Object{ var _local1:Object; if (minPriority <= maxPriority){ while (((!(arrayOfArrays[maxPriority])) || ((arrayOfArrays[maxPriority].length == 0)))) { maxPriority--; if (maxPriority < minPriority){ return (null); }; }; _local1 = arrayOfArrays[maxPriority].shift(); while (((!(arrayOfArrays[maxPriority])) || ((arrayOfArrays[maxPriority].length == 0)))) { maxPriority--; if (maxPriority < minPriority){ break; }; }; }; return (_local1); } public function removeSmallestChild(_arg1:ILayoutManagerClient):Object{ var _local4:int; var _local2:Object; var _local3:int = _arg1.nestLevel; while (_local3 <= maxPriority) { if (((arrayOfArrays[_local3]) && ((arrayOfArrays[_local3].length > 0)))){ _local4 = 0; while (_local4 < arrayOfArrays[_local3].length) { if (contains(DisplayObject(_arg1), arrayOfArrays[_local3][_local4])){ _local2 = arrayOfArrays[_local3][_local4]; arrayOfArrays[_local3].splice(_local4, 1); return (_local2); }; _local4++; }; _local3++; } else { if (_local3 == minPriority){ minPriority++; }; _local3++; if (_local3 > maxPriority){ break; }; }; }; return (_local2); } public function removeAll():void{ arrayOfArrays.splice(0); minPriority = 0; maxPriority = -1; } private function contains(_arg1:DisplayObject, _arg2:DisplayObject):Boolean{ var _local3:IChildList; if ((_arg1 is IRawChildrenContainer)){ _local3 = IRawChildrenContainer(_arg1).rawChildren; return (_local3.contains(_arg2)); }; if ((_arg1 is DisplayObjectContainer)){ return (DisplayObjectContainer(_arg1).contains(_arg2)); }; return ((_arg1 == _arg2)); } } }//package mx.managers.layoutClasses
Section 262
//CursorManager (mx.managers.CursorManager) package mx.managers { import mx.core.*; public class CursorManager { mx_internal static const VERSION:String = "3.0.0.0"; public static const NO_CURSOR:int = 0; private static var _impl:ICursorManager; private static var implClassDependency:CursorManagerImpl; public static function set currentCursorYOffset(_arg1:Number):void{ impl.currentCursorYOffset = _arg1; } mx_internal static function registerToUseBusyCursor(_arg1:Object):void{ impl.registerToUseBusyCursor(_arg1); } public static function get currentCursorID():int{ return (impl.currentCursorID); } public static function getInstance():ICursorManager{ return (impl); } public static function removeBusyCursor():void{ impl.removeBusyCursor(); } public static function setCursor(_arg1:Class, _arg2:int=2, _arg3:Number=0, _arg4:Number=0):int{ return (impl.setCursor(_arg1, _arg2, _arg3, _arg4)); } public static function set currentCursorID(_arg1:int):void{ impl.currentCursorID = _arg1; } mx_internal static function unRegisterToUseBusyCursor(_arg1:Object):void{ impl.unRegisterToUseBusyCursor(_arg1); } private static function get impl():ICursorManager{ if (!_impl){ _impl = ICursorManager(Singleton.getInstance("mx.managers::ICursorManager")); }; return (_impl); } public static function removeAllCursors():void{ impl.removeAllCursors(); } public static function setBusyCursor():void{ impl.setBusyCursor(); } public static function showCursor():void{ impl.showCursor(); } public static function hideCursor():void{ impl.hideCursor(); } public static function removeCursor(_arg1:int):void{ impl.removeCursor(_arg1); } public static function get currentCursorXOffset():Number{ return (impl.currentCursorXOffset); } public static function get currentCursorYOffset():Number{ return (impl.currentCursorYOffset); } public static function set currentCursorXOffset(_arg1:Number):void{ impl.currentCursorXOffset = _arg1; } } }//package mx.managers
Section 263
//CursorManagerImpl (mx.managers.CursorManagerImpl) package mx.managers { import flash.events.*; import flash.display.*; import mx.core.*; import mx.styles.*; import flash.text.*; import flash.ui.*; public class CursorManagerImpl implements ICursorManager { private var showSystemCursor:Boolean;// = false private var nextCursorID:int;// = 1 private var systemManager:ISystemManager;// = null private var cursorList:Array; private var _currentCursorYOffset:Number;// = 0 private var cursorHolder:Sprite; private var currentCursor:DisplayObject; private var _currentCursorID:int;// = 0 private var listenForContextMenu:Boolean;// = false private var showCustomCursor:Boolean;// = false private var initialized:Boolean;// = false private var overTextField:Boolean;// = false private var _currentCursorXOffset:Number;// = 0 private var busyCursorList:Array; private var overLink:Boolean;// = false private var sourceArray:Array; mx_internal static const VERSION:String = "3.0.0.0"; private static var instance:ICursorManager; public function CursorManagerImpl(_arg1:ISystemManager=null){ cursorList = []; busyCursorList = []; sourceArray = []; super(); if (((instance) && (!(_arg1)))){ throw (new Error("Instance already exists.")); }; if (_arg1){ this.systemManager = _arg1; } else { this.systemManager = ApplicationGlobals.application.systemManager; }; } public function set currentCursorYOffset(_arg1:Number):void{ _currentCursorYOffset = _arg1; } public function get currentCursorXOffset():Number{ return (_currentCursorXOffset); } public function removeCursor(_arg1:int):void{ var _local2:Object; var _local3:CursorQueueItem; for (_local2 in cursorList) { _local3 = cursorList[_local2]; if (_local3.cursorID == _arg1){ cursorList.splice(_local2, 1); showCurrentCursor(); break; }; }; } public function get currentCursorID():int{ return (_currentCursorID); } public function set currentCursorID(_arg1:int):void{ _currentCursorID = _arg1; } public function removeAllCursors():void{ cursorList.splice(0); showCurrentCursor(); } private function priorityCompare(_arg1:CursorQueueItem, _arg2:CursorQueueItem):int{ if (_arg1.priority < _arg2.priority){ return (-1); }; if (_arg1.priority == _arg2.priority){ return (0); }; return (1); } public function setBusyCursor():void{ var _local1:CSSStyleDeclaration = StyleManager.getStyleDeclaration("CursorManager"); var _local2:Class = _local1.getStyle("busyCursor"); busyCursorList.push(setCursor(_local2, CursorManagerPriority.LOW)); } public function showCursor():void{ if (cursorHolder){ cursorHolder.visible = true; }; } private function findSource(_arg1:Object):int{ var _local2:int = sourceArray.length; var _local3:int; while (_local3 < _local2) { if (sourceArray[_local3] === _arg1){ return (_local3); }; _local3++; }; return (-1); } private function showCurrentCursor():void{ var _local1:InteractiveObject; var _local2:InteractiveObject; var _local3:CursorQueueItem; var _local4:ISystemManager; if (cursorList.length > 0){ if (!initialized){ cursorHolder = new FlexSprite(); cursorHolder.name = "cursorHolder"; cursorHolder.mouseEnabled = false; initialized = true; }; _local3 = cursorList[0]; if (currentCursorID == CursorManager.NO_CURSOR){ Mouse.hide(); }; if (_local3.cursorID != currentCursorID){ if (cursorHolder.numChildren > 0){ cursorHolder.removeChildAt(0); }; currentCursor = new _local3.cursorClass(); if (currentCursor){ if ((currentCursor is InteractiveObject)){ InteractiveObject(currentCursor).mouseEnabled = false; }; _local4 = (_local3.systemManager) ? _local3.systemManager : ApplicationGlobals.application.systemManager; if (((systemManager) && (!((systemManager == _local4))))){ systemManager.cursorChildren.removeChild(cursorHolder); }; systemManager = _local4; if (!systemManager.cursorChildren.contains(cursorHolder)){ systemManager.cursorChildren.addChild(cursorHolder); }; cursorHolder.addChild(currentCursor); if (!listenForContextMenu){ _local1 = (systemManager.document as InteractiveObject); if (((_local1) && (_local1.contextMenu))){ _local1.contextMenu.addEventListener(ContextMenuEvent.MENU_SELECT, contextMenu_menuSelectHandler); listenForContextMenu = true; }; _local2 = (systemManager as InteractiveObject); if (((_local2) && (_local2.contextMenu))){ _local2.contextMenu.addEventListener(ContextMenuEvent.MENU_SELECT, contextMenu_menuSelectHandler); listenForContextMenu = true; }; }; if ((systemManager is SystemManager)){ cursorHolder.x = (SystemManager(systemManager).mouseX + _local3.x); cursorHolder.y = (SystemManager(systemManager).mouseY + _local3.y); } else { if ((systemManager is DisplayObject)){ cursorHolder.x = (DisplayObject(systemManager).mouseX + _local3.x); cursorHolder.y = (DisplayObject(systemManager).mouseY + _local3.y); } else { cursorHolder.x = _local3.x; cursorHolder.y = _local3.y; }; }; systemManager.stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler, true, EventPriority.CURSOR_MANAGEMENT); }; currentCursorID = _local3.cursorID; currentCursorXOffset = _local3.x; currentCursorYOffset = _local3.y; }; } else { if (currentCursorID != CursorManager.NO_CURSOR){ currentCursorID = CursorManager.NO_CURSOR; currentCursorXOffset = 0; currentCursorYOffset = 0; systemManager.stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler, true); cursorHolder.removeChild(currentCursor); if (listenForContextMenu){ _local1 = (systemManager.document as InteractiveObject); if (((_local1) && (_local1.contextMenu))){ _local1.contextMenu.removeEventListener(ContextMenuEvent.MENU_SELECT, contextMenu_menuSelectHandler); }; _local2 = (systemManager as InteractiveObject); if (((_local2) && (_local2.contextMenu))){ _local2.contextMenu.removeEventListener(ContextMenuEvent.MENU_SELECT, contextMenu_menuSelectHandler); }; listenForContextMenu = false; }; }; Mouse.show(); }; } public function get currentCursorYOffset():Number{ return (_currentCursorYOffset); } private function contextMenu_menuSelectHandler(_arg1:ContextMenuEvent):void{ showCustomCursor = true; systemManager.stage.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler); } public function hideCursor():void{ if (cursorHolder){ cursorHolder.visible = false; }; } public function registerToUseBusyCursor(_arg1:Object):void{ if (((_arg1) && ((_arg1 is EventDispatcher)))){ _arg1.addEventListener(ProgressEvent.PROGRESS, progressHandler); _arg1.addEventListener(Event.COMPLETE, completeHandler); _arg1.addEventListener(IOErrorEvent.IO_ERROR, completeHandler); }; } private function completeHandler(_arg1:Event):void{ var _local2:int = findSource(_arg1.target); if (_local2 != -1){ sourceArray.splice(_local2, 1); removeBusyCursor(); }; } public function setCursor(_arg1:Class, _arg2:int=2, _arg3:Number=0, _arg4:Number=0):int{ var _local5:int = nextCursorID++; var _local6:CursorQueueItem = new CursorQueueItem(); _local6.cursorID = _local5; _local6.cursorClass = _arg1; _local6.priority = _arg2; _local6.x = _arg3; _local6.y = _arg4; if (systemManager){ _local6.systemManager = systemManager; } else { _local6.systemManager = ApplicationGlobals.application.systemManager; }; cursorList.push(_local6); cursorList.sort(priorityCompare); showCurrentCursor(); return (_local5); } private function progressHandler(_arg1:ProgressEvent):void{ var _local2:int = findSource(_arg1.target); if (_local2 == -1){ sourceArray.push(_arg1.target); setBusyCursor(); }; } public function removeBusyCursor():void{ if (busyCursorList.length > 0){ removeCursor(int(busyCursorList.pop())); }; } private function mouseMoveHandler(_arg1:MouseEvent):void{ if ((systemManager is SystemManager)){ cursorHolder.x = (SystemManager(systemManager).mouseX + currentCursorXOffset); cursorHolder.y = (SystemManager(systemManager).mouseY + currentCursorYOffset); } else { if ((systemManager is DisplayObject)){ cursorHolder.x = (DisplayObject(systemManager).mouseX + currentCursorXOffset); cursorHolder.y = (DisplayObject(systemManager).mouseY + currentCursorYOffset); } else { cursorHolder.x = currentCursorXOffset; cursorHolder.y = currentCursorYOffset; }; }; var _local2:Object = _arg1.target; if (((((!(overTextField)) && ((_local2 is TextField)))) && ((_local2.type == TextFieldType.INPUT)))){ overTextField = true; showSystemCursor = true; } else { if (((overTextField) && (!((((_local2 is TextField)) && ((_local2.type == TextFieldType.INPUT))))))){ overTextField = false; showCustomCursor = true; }; }; if (showSystemCursor){ showSystemCursor = false; cursorHolder.visible = false; Mouse.show(); }; if (showCustomCursor){ showCustomCursor = false; cursorHolder.visible = true; Mouse.hide(); }; } public function unRegisterToUseBusyCursor(_arg1:Object):void{ if (((_arg1) && ((_arg1 is EventDispatcher)))){ _arg1.removeEventListener(ProgressEvent.PROGRESS, progressHandler); _arg1.removeEventListener(Event.COMPLETE, completeHandler); _arg1.removeEventListener(IOErrorEvent.IO_ERROR, completeHandler); }; } private function mouseOverHandler(_arg1:MouseEvent):void{ systemManager.stage.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler); mouseMoveHandler(_arg1); } public function set currentCursorXOffset(_arg1:Number):void{ _currentCursorXOffset = _arg1; } public static function getInstance():ICursorManager{ if (!instance){ instance = new (CursorManagerImpl); }; return (instance); } } }//package mx.managers class CursorQueueItem { public var priority:int;// = 2 public var cursorClass:Class;// = null public var cursorID:int;// = 0 public var x:Number; public var y:Number; public var systemManager:ISystemManager; mx_internal static const VERSION:String = "3.0.0.0"; private function CursorQueueItem(){ } }
Section 264
//CursorManagerPriority (mx.managers.CursorManagerPriority) package mx.managers { public final class CursorManagerPriority { public static const HIGH:int = 1; public static const MEDIUM:int = 2; mx_internal static const VERSION:String = "3.0.0.0"; public static const LOW:int = 3; } }//package mx.managers
Section 265
//ICursorManager (mx.managers.ICursorManager) package mx.managers { public interface ICursorManager { function removeAllCursors():void; function set currentCursorYOffset(_arg1:Number):void; function removeBusyCursor():void; function unRegisterToUseBusyCursor(_arg1:Object):void; function hideCursor():void; function get currentCursorID():int; function registerToUseBusyCursor(_arg1:Object):void; function setBusyCursor():void; function showCursor():void; function set currentCursorID(_arg1:int):void; function setCursor(_arg1:Class, _arg2:int=2, _arg3:Number=0, _arg4:Number=0):int; function removeCursor(_arg1:int):void; function get currentCursorXOffset():Number; function get currentCursorYOffset():Number; function set currentCursorXOffset(_arg1:Number):void; } }//package mx.managers
Section 266
//IFocusManager (mx.managers.IFocusManager) package mx.managers { import flash.display.*; import mx.core.*; public interface IFocusManager { function get focusPane():Sprite; function getFocus():IFocusManagerComponent; function deactivate():void; function set defaultButton(_arg1:IButton):void; function set focusPane(_arg1:Sprite):void; function set showFocusIndicator(_arg1:Boolean):void; function get defaultButtonEnabled():Boolean; function findFocusManagerComponent(_arg1:InteractiveObject):IFocusManagerComponent; function get nextTabIndex():int; function get defaultButton():IButton; function get showFocusIndicator():Boolean; function setFocus(_arg1:IFocusManagerComponent):void; function activate():void; function showFocus():void; function set defaultButtonEnabled(_arg1:Boolean):void; function hideFocus():void; function getNextFocusManagerComponent(_arg1:Boolean=false):IFocusManagerComponent; } }//package mx.managers
Section 267
//IFocusManagerComponent (mx.managers.IFocusManagerComponent) package mx.managers { public interface IFocusManagerComponent { function set focusEnabled(_arg1:Boolean):void; function drawFocus(_arg1:Boolean):void; function setFocus():void; function get focusEnabled():Boolean; function get tabEnabled():Boolean; function get tabIndex():int; function get mouseFocusEnabled():Boolean; } }//package mx.managers
Section 268
//IFocusManagerContainer (mx.managers.IFocusManagerContainer) package mx.managers { import flash.events.*; import flash.display.*; public interface IFocusManagerContainer extends IEventDispatcher { function set focusManager(_arg1:IFocusManager):void; function get focusManager():IFocusManager; function get systemManager():ISystemManager; function contains(_arg1:DisplayObject):Boolean; } }//package mx.managers
Section 269
//ILayoutManager (mx.managers.ILayoutManager) package mx.managers { import flash.events.*; public interface ILayoutManager extends IEventDispatcher { function validateNow():void; function validateClient(_arg1:ILayoutManagerClient, _arg2:Boolean=false):void; function isInvalid():Boolean; function invalidateDisplayList(_arg1:ILayoutManagerClient):void; function set usePhasedInstantiation(_arg1:Boolean):void; function invalidateSize(_arg1:ILayoutManagerClient):void; function get usePhasedInstantiation():Boolean; function invalidateProperties(_arg1:ILayoutManagerClient):void; } }//package mx.managers
Section 270
//ILayoutManagerClient (mx.managers.ILayoutManagerClient) package mx.managers { import flash.events.*; public interface ILayoutManagerClient extends IEventDispatcher { function get updateCompletePendingFlag():Boolean; function set updateCompletePendingFlag(_arg1:Boolean):void; function set initialized(_arg1:Boolean):void; function validateProperties():void; function validateDisplayList():void; function get nestLevel():int; function get initialized():Boolean; function get processedDescriptors():Boolean; function validateSize(_arg1:Boolean=false):void; function set nestLevel(_arg1:int):void; function set processedDescriptors(_arg1:Boolean):void; } }//package mx.managers
Section 271
//ISystemManager (mx.managers.ISystemManager) package mx.managers { import flash.events.*; import flash.display.*; import mx.core.*; import flash.geom.*; import flash.text.*; public interface ISystemManager extends IEventDispatcher, IChildList, IFlexModuleFactory { function get focusPane():Sprite; function get loaderInfo():LoaderInfo; function get toolTipChildren():IChildList; function set focusPane(_arg1:Sprite):void; function isTopLevel():Boolean; function get popUpChildren():IChildList; function get screen():Rectangle; function isFontFaceEmbedded(_arg1:TextFormat):Boolean; function get rawChildren():IChildList; function get topLevelSystemManager():ISystemManager; function getDefinitionByName(_arg1:String):Object; function activate(_arg1:IFocusManagerContainer):void; function deactivate(_arg1:IFocusManagerContainer):void; function get cursorChildren():IChildList; function set document(_arg1:Object):void; function get embeddedFontList():Object; function set numModalWindows(_arg1:int):void; function removeFocusManager(_arg1:IFocusManagerContainer):void; function get document():Object; function get numModalWindows():int; function addFocusManager(_arg1:IFocusManagerContainer):void; function get stage():Stage; } }//package mx.managers
Section 272
//IToolTipManager2 (mx.managers.IToolTipManager2) package mx.managers { import flash.display.*; import mx.core.*; import mx.effects.*; public interface IToolTipManager2 { function registerToolTip(_arg1:DisplayObject, _arg2:String, _arg3:String):void; function get enabled():Boolean; function set enabled(_arg1:Boolean):void; function get scrubDelay():Number; function set hideEffect(_arg1:IAbstractEffect):void; function createToolTip(_arg1:String, _arg2:Number, _arg3:Number, _arg4:String=null, _arg5:IUIComponent=null):IToolTip; function set scrubDelay(_arg1:Number):void; function set hideDelay(_arg1:Number):void; function get currentTarget():DisplayObject; function set showDelay(_arg1:Number):void; function get showDelay():Number; function get showEffect():IAbstractEffect; function get hideDelay():Number; function get currentToolTip():IToolTip; function get hideEffect():IAbstractEffect; function set currentToolTip(_arg1:IToolTip):void; function get toolTipClass():Class; function registerErrorString(_arg1:DisplayObject, _arg2:String, _arg3:String):void; function destroyToolTip(_arg1:IToolTip):void; function set toolTipClass(_arg1:Class):void; function sizeTip(_arg1:IToolTip):void; function set currentTarget(_arg1:DisplayObject):void; function set showEffect(_arg1:IAbstractEffect):void; } }//package mx.managers
Section 273
//IToolTipManagerClient (mx.managers.IToolTipManagerClient) package mx.managers { import mx.core.*; public interface IToolTipManagerClient extends IFlexDisplayObject { function get toolTip():String; function set toolTip(_arg1:String):void; } }//package mx.managers
Section 274
//LayoutManager (mx.managers.LayoutManager) package mx.managers { import flash.events.*; import flash.display.*; import mx.core.*; import mx.events.*; import mx.managers.layoutClasses.*; public class LayoutManager extends EventDispatcher implements ILayoutManager { private var invalidateClientPropertiesFlag:Boolean;// = false private var invalidateDisplayListQueue:PriorityQueue; private var updateCompleteQueue:PriorityQueue; private var invalidateDisplayListFlag:Boolean;// = false private var invalidateClientSizeFlag:Boolean;// = false private var invalidateSizeQueue:PriorityQueue; private var originalFrameRate:Number; private var invalidatePropertiesFlag:Boolean;// = false private var invalidatePropertiesQueue:PriorityQueue; private var invalidateSizeFlag:Boolean;// = false private var callLaterPending:Boolean;// = false private var _usePhasedInstantiation:Boolean;// = false private var callLaterObject:UIComponent; private var targetLevel:int;// = 2147483647 mx_internal static const VERSION:String = "3.0.0.0"; private static var instance:LayoutManager; public function LayoutManager(){ updateCompleteQueue = new PriorityQueue(); invalidatePropertiesQueue = new PriorityQueue(); invalidateSizeQueue = new PriorityQueue(); invalidateDisplayListQueue = new PriorityQueue(); super(); } public function set usePhasedInstantiation(_arg1:Boolean):void{ var _local2:Stage; if (_usePhasedInstantiation != _arg1){ _usePhasedInstantiation = _arg1; _local2 = SystemManagerGlobals.topLevelSystemManagers[0].stage; if (_arg1){ originalFrameRate = _local2.frameRate; _local2.frameRate = 1000; } else { _local2.frameRate = originalFrameRate; }; }; } private function waitAFrame():void{ callLaterObject.callLater(doPhasedInstantiation); } public function validateClient(_arg1:ILayoutManagerClient, _arg2:Boolean=false):void{ var _local3:ILayoutManagerClient; var _local4:int; var _local5:Boolean; var _local6:int = targetLevel; if (targetLevel == int.MAX_VALUE){ targetLevel = _arg1.nestLevel; }; while (!(_local5)) { _local5 = true; _local3 = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(_arg1)); while (_local3) { _local3.validateProperties(); if (!_local3.updateCompletePendingFlag){ updateCompleteQueue.addObject(_local3, _local3.nestLevel); _local3.updateCompletePendingFlag = true; }; _local3 = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(_arg1)); }; if (invalidatePropertiesQueue.isEmpty()){ invalidatePropertiesFlag = false; invalidateClientPropertiesFlag = false; }; _local3 = ILayoutManagerClient(invalidateSizeQueue.removeLargestChild(_arg1)); while (_local3) { _local3.validateSize(); if (!_local3.updateCompletePendingFlag){ updateCompleteQueue.addObject(_local3, _local3.nestLevel); _local3.updateCompletePendingFlag = true; }; if (invalidateClientPropertiesFlag){ _local3 = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(_arg1)); if (_local3){ invalidatePropertiesQueue.addObject(_local3, _local3.nestLevel); _local5 = false; break; }; }; _local3 = ILayoutManagerClient(invalidateSizeQueue.removeLargestChild(_arg1)); }; if (invalidateSizeQueue.isEmpty()){ invalidateSizeFlag = false; invalidateClientSizeFlag = false; }; if (!_arg2){ _local3 = ILayoutManagerClient(invalidateDisplayListQueue.removeSmallestChild(_arg1)); while (_local3) { _local3.validateDisplayList(); if (!_local3.updateCompletePendingFlag){ updateCompleteQueue.addObject(_local3, _local3.nestLevel); _local3.updateCompletePendingFlag = true; }; if (invalidateClientPropertiesFlag){ _local3 = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallestChild(_arg1)); if (_local3){ invalidatePropertiesQueue.addObject(_local3, _local3.nestLevel); _local5 = false; break; }; }; if (invalidateClientSizeFlag){ _local3 = ILayoutManagerClient(invalidateSizeQueue.removeLargestChild(_arg1)); if (_local3){ invalidateSizeQueue.addObject(_local3, _local3.nestLevel); _local5 = false; break; }; }; _local3 = ILayoutManagerClient(invalidateDisplayListQueue.removeSmallestChild(_arg1)); }; if (invalidateDisplayListQueue.isEmpty()){ invalidateDisplayListFlag = false; }; }; }; if (_local6 == int.MAX_VALUE){ targetLevel = int.MAX_VALUE; if (!_arg2){ _local3 = ILayoutManagerClient(updateCompleteQueue.removeLargestChild(_arg1)); while (_local3) { if (!_local3.initialized){ _local3.initialized = true; }; _local3.dispatchEvent(new FlexEvent(FlexEvent.UPDATE_COMPLETE)); _local3.updateCompletePendingFlag = false; _local3 = ILayoutManagerClient(updateCompleteQueue.removeLargestChild(_arg1)); }; }; }; } private function validateProperties():void{ var _local1:ILayoutManagerClient = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallest()); while (_local1) { _local1.validateProperties(); if (!_local1.updateCompletePendingFlag){ updateCompleteQueue.addObject(_local1, _local1.nestLevel); _local1.updateCompletePendingFlag = true; }; _local1 = ILayoutManagerClient(invalidatePropertiesQueue.removeSmallest()); }; if (invalidatePropertiesQueue.isEmpty()){ invalidatePropertiesFlag = false; }; } public function invalidateProperties(_arg1:ILayoutManagerClient):void{ if (((!(invalidatePropertiesFlag)) && (ApplicationGlobals.application.systemManager))){ invalidatePropertiesFlag = true; if (!callLaterPending){ if (!callLaterObject){ callLaterObject = new UIComponent(); callLaterObject.systemManager = ApplicationGlobals.application.systemManager; callLaterObject.callLater(waitAFrame); } else { callLaterObject.callLater(doPhasedInstantiation); }; callLaterPending = true; }; }; if (targetLevel <= _arg1.nestLevel){ invalidateClientPropertiesFlag = true; }; invalidatePropertiesQueue.addObject(_arg1, _arg1.nestLevel); } public function invalidateDisplayList(_arg1:ILayoutManagerClient):void{ if (((!(invalidateDisplayListFlag)) && (ApplicationGlobals.application.systemManager))){ invalidateDisplayListFlag = true; if (!callLaterPending){ if (!callLaterObject){ callLaterObject = new UIComponent(); callLaterObject.systemManager = ApplicationGlobals.application.systemManager; callLaterObject.callLater(waitAFrame); } else { callLaterObject.callLater(doPhasedInstantiation); }; callLaterPending = true; }; }; invalidateDisplayListQueue.addObject(_arg1, _arg1.nestLevel); } private function validateDisplayList():void{ var _local1:ILayoutManagerClient = ILayoutManagerClient(invalidateDisplayListQueue.removeSmallest()); while (_local1) { _local1.validateDisplayList(); if (!_local1.updateCompletePendingFlag){ updateCompleteQueue.addObject(_local1, _local1.nestLevel); _local1.updateCompletePendingFlag = true; }; _local1 = ILayoutManagerClient(invalidateDisplayListQueue.removeSmallest()); }; if (invalidateDisplayListQueue.isEmpty()){ invalidateDisplayListFlag = false; }; } public function validateNow():void{ var _local1:int; if (!usePhasedInstantiation){ _local1 = 0; while (((callLaterPending) && ((_local1 < 100)))) { doPhasedInstantiation(); }; }; } private function validateSize():void{ var _local1:ILayoutManagerClient = ILayoutManagerClient(invalidateSizeQueue.removeLargest()); while (_local1) { _local1.validateSize(); if (!_local1.updateCompletePendingFlag){ updateCompleteQueue.addObject(_local1, _local1.nestLevel); _local1.updateCompletePendingFlag = true; }; _local1 = ILayoutManagerClient(invalidateSizeQueue.removeLargest()); }; if (invalidateSizeQueue.isEmpty()){ invalidateSizeFlag = false; }; } private function doPhasedInstantiation():void{ var _local1:ILayoutManagerClient; if (usePhasedInstantiation){ if (invalidatePropertiesFlag){ validateProperties(); ApplicationGlobals.application.dispatchEvent(new Event("validatePropertiesComplete")); } else { if (invalidateSizeFlag){ validateSize(); ApplicationGlobals.application.dispatchEvent(new Event("validateSizeComplete")); } else { if (invalidateDisplayListFlag){ validateDisplayList(); ApplicationGlobals.application.dispatchEvent(new Event("validateDisplayListComplete")); }; }; }; } else { if (invalidatePropertiesFlag){ validateProperties(); }; if (invalidateSizeFlag){ validateSize(); }; if (invalidateDisplayListFlag){ validateDisplayList(); }; }; if (((((invalidatePropertiesFlag) || (invalidateSizeFlag))) || (invalidateDisplayListFlag))){ callLaterObject.callLater(doPhasedInstantiation); } else { usePhasedInstantiation = false; callLaterPending = false; _local1 = ILayoutManagerClient(updateCompleteQueue.removeLargest()); while (_local1) { if (((!(_local1.initialized)) && (_local1.processedDescriptors))){ _local1.initialized = true; }; _local1.dispatchEvent(new FlexEvent(FlexEvent.UPDATE_COMPLETE)); _local1.updateCompletePendingFlag = false; _local1 = ILayoutManagerClient(updateCompleteQueue.removeLargest()); }; dispatchEvent(new FlexEvent(FlexEvent.UPDATE_COMPLETE)); }; } public function isInvalid():Boolean{ return (((((invalidatePropertiesFlag) || (invalidateSizeFlag))) || (invalidateDisplayListFlag))); } public function get usePhasedInstantiation():Boolean{ return (_usePhasedInstantiation); } public function invalidateSize(_arg1:ILayoutManagerClient):void{ if (((!(invalidateSizeFlag)) && (ApplicationGlobals.application.systemManager))){ invalidateSizeFlag = true; if (!callLaterPending){ if (!callLaterObject){ callLaterObject = new UIComponent(); callLaterObject.systemManager = ApplicationGlobals.application.systemManager; callLaterObject.callLater(waitAFrame); } else { callLaterObject.callLater(doPhasedInstantiation); }; callLaterPending = true; }; }; if (targetLevel <= _arg1.nestLevel){ invalidateClientSizeFlag = true; }; invalidateSizeQueue.addObject(_arg1, _arg1.nestLevel); } public static function getInstance():LayoutManager{ if (!instance){ instance = new (LayoutManager); }; return (instance); } } }//package mx.managers
Section 275
//SystemChildrenList (mx.managers.SystemChildrenList) package mx.managers { import flash.display.*; import mx.core.*; import flash.geom.*; public class SystemChildrenList implements IChildList { private var lowerBoundReference:QName; private var upperBoundReference:QName; private var owner:SystemManager; mx_internal static const VERSION:String = "3.0.0.0"; public function SystemChildrenList(_arg1:SystemManager, _arg2:QName, _arg3:QName){ this.owner = _arg1; this.lowerBoundReference = _arg2; this.upperBoundReference = _arg3; } public function getChildAt(_arg1:int):DisplayObject{ var _local2:DisplayObject = owner.mx_internal::rawChildren_getChildAt((owner[lowerBoundReference] + _arg1)); return (_local2); } public function getChildByName(_arg1:String):DisplayObject{ return (owner.mx_internal::rawChildren_getChildByName(_arg1)); } public function removeChildAt(_arg1:int):DisplayObject{ var _local2:DisplayObject = owner.mx_internal::rawChildren_removeChildAt((_arg1 + owner[lowerBoundReference])); var _local3 = owner; var _local4 = upperBoundReference; var _local5 = (_local3[_local4] - 1); _local3[_local4] = _local5; return (_local2); } public function getChildIndex(_arg1:DisplayObject):int{ var _local2:int = owner.mx_internal::rawChildren_getChildIndex(_arg1); _local2 = (_local2 - owner[lowerBoundReference]); return (_local2); } public function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{ var _local3 = owner; _local3.mx_internal::rawChildren_addChildAt(_arg1, (owner[lowerBoundReference] + _arg2)); _local3 = owner; var _local4 = upperBoundReference; var _local5 = (_local3[_local4] + 1); _local3[_local4] = _local5; return (_arg1); } public function getObjectsUnderPoint(_arg1:Point):Array{ return (owner.mx_internal::rawChildren_getObjectsUnderPoint(_arg1)); } public function setChildIndex(_arg1:DisplayObject, _arg2:int):void{ var _local3 = owner; _local3.mx_internal::rawChildren_setChildIndex(_arg1, (owner[lowerBoundReference] + _arg2)); } public function get numChildren():int{ return ((owner[upperBoundReference] - owner[lowerBoundReference])); } public function contains(_arg1:DisplayObject):Boolean{ var _local2:int; if (owner.mx_internal::rawChildren_contains(_arg1)){ while (_arg1.parent != owner) { _arg1 = _arg1.parent; }; _local2 = owner.mx_internal::rawChildren_getChildIndex(_arg1); if ((((_local2 >= owner[lowerBoundReference])) && ((_local2 < owner[upperBoundReference])))){ return (true); }; }; return (false); } public function removeChild(_arg1:DisplayObject):DisplayObject{ var _local2:int = owner.mx_internal::rawChildren_getChildIndex(_arg1); if ((((owner[lowerBoundReference] <= _local2)) && ((_local2 < owner[upperBoundReference])))){ var _local3 = owner; _local3.mx_internal::rawChildren_removeChild(_arg1); _local3 = owner; var _local4 = upperBoundReference; var _local5 = (_local3[_local4] - 1); _local3[_local4] = _local5; }; return (_arg1); } public function addChild(_arg1:DisplayObject):DisplayObject{ var _local2 = owner; _local2.mx_internal::rawChildren_addChildAt(_arg1, owner[upperBoundReference]); _local2 = owner; var _local3 = upperBoundReference; var _local4 = (_local2[_local3] + 1); _local2[_local3] = _local4; return (_arg1); } } }//package mx.managers
Section 276
//SystemManager (mx.managers.SystemManager) package mx.managers { import flash.events.*; import flash.display.*; import mx.core.*; import mx.styles.*; import flash.system.*; import flash.geom.*; import mx.events.*; import mx.resources.*; import flash.text.*; import flash.utils.*; import mx.preloaders.*; import mx.messaging.config.*; public class SystemManager extends MovieClip implements IChildList, IFlexDisplayObject, IFlexModuleFactory, ISystemManager { mx_internal var nestLevel:int;// = 0 private var forms:Array; private var mouseCatcher:Sprite; private var _height:Number; private var preloader:Preloader; private var _document:Object; private var _topLevelSystemManager:ISystemManager; private var _toolTipIndex:int;// = 0 private var _rawChildren:SystemRawChildrenList; private var _explicitHeight:Number; private var _toolTipChildren:SystemChildrenList; private var form:IFocusManagerContainer; private var _width:Number; private var initialized:Boolean;// = false private var _focusPane:Sprite; private var _fontList:Object;// = null private var isStageRoot:Boolean;// = true private var _popUpChildren:SystemChildrenList; private var rslSizes:Array;// = null private var _topMostIndex:int;// = 0 private var nextFrameTimer:Timer;// = null private var topLevel:Boolean;// = true private var _cursorIndex:int;// = 0 mx_internal var _mouseX; mx_internal var _mouseY; private var _numModalWindows:int;// = 0 private var _screen:Rectangle; mx_internal var idleCounter:int;// = 0 private var _cursorChildren:SystemChildrenList; private var initCallbackFunctions:Array; private var _noTopMostIndex:int;// = 0 private var _applicationIndex:int;// = 1 private var idleTimer:Timer; private var doneExecutingInitCallbacks:Boolean;// = false private var _explicitWidth:Number; mx_internal var topLevelWindow:IUIComponent; private static const IDLE_THRESHOLD:Number = 1000; private static const IDLE_INTERVAL:Number = 100; mx_internal static const VERSION:String = "3.0.0.0"; mx_internal static var lastSystemManager:SystemManager; mx_internal static var allSystemManagers:Dictionary = new Dictionary(true); public function SystemManager(){ initCallbackFunctions = []; forms = []; super(); if (stage){ stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; }; if ((((SystemManagerGlobals.topLevelSystemManagers.length > 0)) && (!(stage)))){ topLevel = false; }; if (!stage){ isStageRoot = false; }; if (topLevel){ SystemManagerGlobals.topLevelSystemManagers.push(this); }; lastSystemManager = this; var _local1:Array = info()["compiledLocales"]; ResourceBundle.locale = (((!((_local1 == null))) && ((_local1.length > 0)))) ? _local1[0] : "en_US"; executeCallbacks(); stop(); if (((topLevel) && (!((currentFrame == 1))))){ throw (new Error((("The SystemManager constructor was called when the currentFrame was at " + currentFrame) + " Please add this SWF to bug 129782."))); }; if (((root) && (root.loaderInfo))){ root.loaderInfo.addEventListener(Event.INIT, initHandler); }; } mx_internal function addingChild(_arg1:DisplayObject):void{ var _local4:DisplayObjectContainer; var _local2 = 1; if (!topLevel){ _local4 = parent.parent; while (_local4) { if ((_local4 is ILayoutManagerClient)){ _local2 = (ILayoutManagerClient(_local4).nestLevel + 1); break; }; _local4 = _local4.parent; }; }; nestLevel = _local2; if ((_arg1 is IUIComponent)){ IUIComponent(_arg1).systemManager = this; }; var _local3:Class = Class(getDefinitionByName("mx.core.UIComponent")); if ((((_arg1 is IUIComponent)) && (!(IUIComponent(_arg1).document)))){ IUIComponent(_arg1).document = document; }; if ((_arg1 is ILayoutManagerClient)){ ILayoutManagerClient(_arg1).nestLevel = (nestLevel + 1); }; if ((_arg1 is InteractiveObject)){ if (doubleClickEnabled){ InteractiveObject(_arg1).doubleClickEnabled = true; }; }; if ((_arg1 is IUIComponent)){ IUIComponent(_arg1).parentChanged(this); }; if ((_arg1 is IStyleClient)){ IStyleClient(_arg1).regenerateStyleCache(true); }; if ((_arg1 is ISimpleStyleClient)){ ISimpleStyleClient(_arg1).styleChanged(null); }; if ((_arg1 is IStyleClient)){ IStyleClient(_arg1).notifyStyleChangeInChildren(null, true); }; if (((_local3) && ((_arg1 is _local3)))){ _local3(_arg1).initThemeColor(); }; if (((_local3) && ((_arg1 is _local3)))){ _local3(_arg1).stylesInitialized(); }; } private function idleTimer_timerHandler(_arg1:TimerEvent):void{ idleCounter++; if ((idleCounter * IDLE_INTERVAL) > IDLE_THRESHOLD){ dispatchEvent(new FlexEvent(FlexEvent.IDLE)); }; } public function getExplicitOrMeasuredHeight():Number{ return ((isNaN(explicitHeight)) ? measuredHeight : explicitHeight); } mx_internal function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void{ var _local6:IStyleClient; var _local3:Boolean; var _local4:int = rawChildren.numChildren; var _local5:int; while (_local5 < _local4) { _local6 = (rawChildren.getChildAt(_local5) as IStyleClient); if (_local6){ _local6.styleChanged(_arg1); _local6.notifyStyleChangeInChildren(_arg1, _arg2); }; if (isTopLevelWindow(DisplayObject(_local6))){ _local3 = true; }; _local4 = rawChildren.numChildren; _local5++; }; if (((!(_local3)) && ((topLevelWindow is IStyleClient)))){ IStyleClient(topLevelWindow).styleChanged(_arg1); IStyleClient(topLevelWindow).notifyStyleChangeInChildren(_arg1, _arg2); }; } mx_internal function rawChildren_getObjectsUnderPoint(_arg1:Point):Array{ return (super.getObjectsUnderPoint(_arg1)); } private function initHandler(_arg1:Event):void{ allSystemManagers[this] = this.loaderInfo.url; root.loaderInfo.removeEventListener(Event.INIT, initHandler); var _local2:int = ((totalFrames)==1) ? 0 : 1; addFrameScript(_local2, docFrameHandler); var _local3:int = (_local2 + 1); while (_local3 < totalFrames) { addFrameScript(_local3, extraFrameHandler); _local3++; }; initialize(); } override public function contains(_arg1:DisplayObject):Boolean{ var _local2:int; var _local3:int; var _local4:DisplayObject; if (super.contains(_arg1)){ if (_arg1.parent == this){ _local2 = super.getChildIndex(_arg1); if (_local2 < noTopMostIndex){ return (true); }; } else { _local3 = 0; while (_local3 < noTopMostIndex) { _local4 = super.getChildAt(_local3); if ((_local4 is IRawChildrenContainer)){ if (IRawChildrenContainer(_local4).rawChildren.contains(_arg1)){ return (true); }; }; if ((_local4 is DisplayObjectContainer)){ if (DisplayObjectContainer(_local4).contains(_arg1)){ return (true); }; }; _local3++; }; }; }; return (false); } public function getDefinitionByName(_arg1:String):Object{ var _local3:Object; var _local2:ApplicationDomain = (((!(topLevel)) && ((parent is Loader)))) ? Loader(parent).contentLoaderInfo.applicationDomain : (info()["currentDomain"] as ApplicationDomain); if (_local2.hasDefinition(_arg1)){ _local3 = _local2.getDefinition(_arg1); }; return (_local3); } public function get embeddedFontList():Object{ var _local1:Object; var _local2:String; var _local3:Object; if (_fontList == null){ _fontList = {}; _local1 = info()["fonts"]; for (_local2 in _local1) { _fontList[_local2] = _local1[_local2]; }; if (((!(topLevel)) && (_topLevelSystemManager))){ _local3 = _topLevelSystemManager.embeddedFontList; for (_local2 in _local3) { _fontList[_local2] = _local3[_local2]; }; }; }; return (_fontList); } mx_internal function set cursorIndex(_arg1:int):void{ var _local2:int = (_arg1 - _cursorIndex); _cursorIndex = _arg1; } public function set document(_arg1:Object):void{ _document = _arg1; } override public function getChildAt(_arg1:int):DisplayObject{ return (super.getChildAt((applicationIndex + _arg1))); } public function get rawChildren():IChildList{ if (!_rawChildren){ _rawChildren = new SystemRawChildrenList(this); }; return (_rawChildren); } override public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{ if ((((_arg1 == FlexEvent.IDLE)) && (!(idleTimer)))){ idleTimer = new Timer(IDLE_INTERVAL); idleTimer.addEventListener(TimerEvent.TIMER, idleTimer_timerHandler); idleTimer.start(); addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler, true); addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler, true); }; super.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } public function removeFocusManager(_arg1:IFocusManagerContainer):void{ var _local2:int = forms.length; var _local3:int; while (_local3 < _local2) { if (forms[_local3] == _arg1){ if (form == _arg1){ deactivate(_arg1); }; forms.splice(_local3, 1); return; }; _local3++; }; } private function mouseMoveHandler(_arg1:MouseEvent):void{ idleCounter = 0; } public function get focusPane():Sprite{ return (_focusPane); } override public function get mouseX():Number{ if (_mouseX === undefined){ return (super.mouseX); }; return (_mouseX); } private function mouseDownHandler(_arg1:MouseEvent):void{ var _local2:int; var _local3:DisplayObject; var _local4:Boolean; var _local5:int; var _local6:int; var _local7:int; var _local8:int; var _local9:IChildList; idleCounter = 0; if (numModalWindows == 0){ if (forms.length > 1){ _local2 = forms.length; _local3 = DisplayObject(_arg1.target); _local4 = document.rawChildren.contains(_local3); while (_local3) { _local5 = 0; while (_local5 < _local2) { if (forms[_local5] == _local3){ _local6 = 0; if (((!((_local3 == form))) && ((_local3 is IFocusManagerContainer)))){ activate(IFocusManagerContainer(_local3)); }; if (popUpChildren.contains(_local3)){ _local9 = popUpChildren; } else { _local9 = this; }; _local7 = _local9.getChildIndex(_local3); _local8 = _local7; _local2 = forms.length; _local6 = 0; while (_local6 < _local2) { if (_local9.contains(forms[_local6])){ if (_local9.getChildIndex(forms[_local6]) > _local7){ _local8 = Math.max(_local9.getChildIndex(forms[_local6]), _local8); }; }; _local6++; }; if ((((_local8 > _local7)) && (!(_local4)))){ _local9.setChildIndex(_local3, _local8); }; return; }; _local5++; }; _local3 = _local3.parent; }; }; }; } public function get screen():Rectangle{ if (!_screen){ Stage_resizeHandler(); }; return (_screen); } mx_internal function set topMostIndex(_arg1:int):void{ var _local2:int = (_arg1 - _topMostIndex); _topMostIndex = _arg1; toolTipIndex = (toolTipIndex + _local2); } mx_internal function docFrameHandler(_arg1:Event=null):void{ var _local2:TextFieldFactory; var _local4:int; var _local5:int; var _local6:Class; Singleton.registerClass("mx.managers::IBrowserManager", Class(getDefinitionByName("mx.managers::BrowserManagerImpl"))); Singleton.registerClass("mx.managers::ICursorManager", Class(getDefinitionByName("mx.managers::CursorManagerImpl"))); Singleton.registerClass("mx.managers::IHistoryManager", Class(getDefinitionByName("mx.managers::HistoryManagerImpl"))); Singleton.registerClass("mx.managers::ILayoutManager", Class(getDefinitionByName("mx.managers::LayoutManager"))); Singleton.registerClass("mx.managers::IPopUpManager", Class(getDefinitionByName("mx.managers::PopUpManagerImpl"))); Singleton.registerClass("mx.managers::IToolTipManager2", Class(getDefinitionByName("mx.managers::ToolTipManagerImpl"))); if (Capabilities.playerType == "Desktop"){ Singleton.registerClass("mx.managers::IDragManager", Class(getDefinitionByName("mx.managers::NativeDragManagerImpl"))); if (Singleton.getClass("mx.managers::IDragManager") == null){ Singleton.registerClass("mx.managers::IDragManager", Class(getDefinitionByName("mx.managers::DragManagerImpl"))); }; } else { Singleton.registerClass("mx.managers::IDragManager", Class(getDefinitionByName("mx.managers::DragManagerImpl"))); }; Singleton.registerClass("mx.core::ITextFieldFactory", Class(getDefinitionByName("mx.core::TextFieldFactory"))); executeCallbacks(); doneExecutingInitCallbacks = true; var _local3:Array = info()["mixins"]; if (((_local3) && ((_local3.length > 0)))){ _local4 = _local3.length; _local5 = 0; while (_local5 < _local4) { _local6 = Class(getDefinitionByName(_local3[_local5])); var _local7 = _local6; _local7["init"](this); _local5++; }; }; installCompiledResourceBundles(); initializeTopLevelWindow(null); deferredNextFrame(); } private function Stage_resizeHandler(_arg1:Event=null):void{ var _local2:Number = stage.stageWidth; var _local3:Number = stage.stageHeight; var _local4:Number = loaderInfo.width; var _local5:Number = loaderInfo.height; var _local6:Number = ((_local4 - _local2) / 2); var _local7:Number = ((_local5 - _local3) / 2); var _local8:String = stage.align; if (_local8 == StageAlign.TOP){ _local7 = 0; } else { if (_local8 == StageAlign.BOTTOM){ _local7 = (_local5 - _local3); } else { if (_local8 == StageAlign.LEFT){ _local6 = 0; } else { if (_local8 == StageAlign.RIGHT){ _local6 = (_local4 - _local2); } else { if ((((_local8 == StageAlign.TOP_LEFT)) || ((_local8 == "LT")))){ _local7 = 0; _local6 = 0; } else { if (_local8 == StageAlign.TOP_RIGHT){ _local7 = 0; _local6 = (_local4 - _local2); } else { if (_local8 == StageAlign.BOTTOM_LEFT){ _local7 = (_local5 - _local3); _local6 = 0; } else { if (_local8 == StageAlign.BOTTOM_RIGHT){ _local7 = (_local5 - _local3); _local6 = (_local4 - _local2); }; }; }; }; }; }; }; }; if (!_screen){ _screen = new Rectangle(); }; _screen.x = _local6; _screen.y = _local7; _screen.width = _local2; _screen.height = _local3; if (isStageRoot){ _width = stage.stageWidth; _height = stage.stageHeight; }; if (_arg1){ resizeMouseCatcher(); dispatchEvent(_arg1); }; } public function get explicitHeight():Number{ return (_explicitHeight); } public function get preloaderBackgroundSize():String{ return (info()["backgroundSize"]); } public function isTopLevel():Boolean{ return (topLevel); } override public function get mouseY():Number{ if (_mouseY === undefined){ return (super.mouseY); }; return (_mouseY); } public function getExplicitOrMeasuredWidth():Number{ return ((isNaN(explicitWidth)) ? measuredWidth : explicitWidth); } public function deactivate(_arg1:IFocusManagerContainer):void{ var _local2:IFocusManagerContainer; var _local3:int; var _local4:int; var _local5:IFocusManagerContainer; if (form){ if ((((form == _arg1)) && ((forms.length > 1)))){ form.focusManager.deactivate(); _local3 = forms.length; _local4 = 0; while (_local4 < _local3) { _local5 = forms[_local4]; if (_local5 == _arg1){ _local4 = (_local4 + 1); while (_local4 < _local3) { _local5 = forms[_local4]; if ((((Sprite(_local5).visible == true)) && (IUIComponent(_local5).enabled))){ _local2 = _local5; }; _local4++; }; form = _local2; break; } else { if (((Sprite(_local5).visible) && (IUIComponent(_local5).enabled))){ _local2 = _local5; }; }; _local4++; }; if (form){ form.focusManager.activate(); }; }; }; } override public function getChildByName(_arg1:String):DisplayObject{ return (super.getChildByName(_arg1)); } override public function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{ noTopMostIndex++; return (rawChildren_addChildAt(_arg1, (applicationIndex + _arg2))); } public function get measuredWidth():Number{ return ((topLevelWindow) ? topLevelWindow.getExplicitOrMeasuredWidth() : loaderInfo.width); } public function info():Object{ return ({}); } mx_internal function get toolTipIndex():int{ return (_toolTipIndex); } public function setActualSize(_arg1:Number, _arg2:Number):void{ if (isStageRoot){ return; }; _width = _arg1; _height = _arg2; if (mouseCatcher){ mouseCatcher.width = _arg1; mouseCatcher.height = _arg2; }; dispatchEvent(new Event(Event.RESIZE)); } public function set focusPane(_arg1:Sprite):void{ if (_arg1){ addChild(_arg1); _arg1.x = 0; _arg1.y = 0; _arg1.scrollRect = null; _focusPane = _arg1; } else { removeChild(_focusPane); _focusPane = null; }; } mx_internal function set applicationIndex(_arg1:int):void{ _applicationIndex = _arg1; } private function executeCallbacks():void{ var _local1:Function; if (!parent){ return; }; while (initCallbackFunctions.length > 0) { _local1 = initCallbackFunctions.shift(); _local1(this); }; } public function get popUpChildren():IChildList{ if (!topLevel){ return (_topLevelSystemManager.popUpChildren); }; if (!_popUpChildren){ _popUpChildren = new SystemChildrenList(this, new QName(mx_internal, "noTopMostIndex"), new QName(mx_internal, "topMostIndex")); }; return (_popUpChildren); } public function set explicitHeight(_arg1:Number):void{ _explicitHeight = _arg1; } override public function removeChild(_arg1:DisplayObject):DisplayObject{ noTopMostIndex--; return (rawChildren_removeChild(_arg1)); } override public function addChild(_arg1:DisplayObject):DisplayObject{ noTopMostIndex++; return (rawChildren_addChildAt(_arg1, (noTopMostIndex - 1))); } public function create(... _args):Object{ var _local4:String; var _local5:int; var _local6:int; var _local2:String = info()["mainClassName"]; if (_local2 == null){ _local4 = loaderInfo.loaderURL; _local5 = _local4.lastIndexOf("."); _local6 = _local4.lastIndexOf("/"); _local2 = _local4.substring((_local6 + 1), _local5); }; var _local3:Class = Class(getDefinitionByName(_local2)); return ((_local3) ? new (_local3) : null); } override public function get stage():Stage{ var _local1:Stage = super.stage; if (_local1){ return (_local1); }; if (((!(topLevel)) && (_topLevelSystemManager))){ return (_topLevelSystemManager.stage); }; return (null); } mx_internal function rawChildren_removeChild(_arg1:DisplayObject):DisplayObject{ removingChild(_arg1); super.removeChild(_arg1); childRemoved(_arg1); return (_arg1); } final mx_internal function get $numChildren():int{ return (super.numChildren); } public function get toolTipChildren():IChildList{ if (!topLevel){ return (_topLevelSystemManager.toolTipChildren); }; if (!_toolTipChildren){ _toolTipChildren = new SystemChildrenList(this, new QName(mx_internal, "topMostIndex"), new QName(mx_internal, "toolTipIndex")); }; return (_toolTipChildren); } override public function getChildIndex(_arg1:DisplayObject):int{ return ((super.getChildIndex(_arg1) - applicationIndex)); } private function mouseUpHandler(_arg1:MouseEvent):void{ idleCounter = 0; } mx_internal function rawChildren_getChildIndex(_arg1:DisplayObject):int{ return (super.getChildIndex(_arg1)); } public function activate(_arg1:IFocusManagerContainer):void{ var _local2:IFocusManagerContainer; if (form){ if (((!((form == _arg1))) && ((forms.length > 1)))){ _local2 = form; _local2.focusManager.deactivate(); }; }; form = _arg1; if (_arg1.focusManager){ _arg1.focusManager.activate(); }; } private function deferredNextFrame():void{ if ((currentFrame + 1) > totalFrames){ return; }; if ((currentFrame + 1) <= framesLoaded){ nextFrame(); } else { nextFrameTimer = new Timer(100); nextFrameTimer.addEventListener(TimerEvent.TIMER, nextFrameTimerHandler); nextFrameTimer.start(); }; } mx_internal function get cursorIndex():int{ return (_cursorIndex); } mx_internal function rawChildren_contains(_arg1:DisplayObject):Boolean{ return (super.contains(_arg1)); } override public function setChildIndex(_arg1:DisplayObject, _arg2:int):void{ super.setChildIndex(_arg1, (applicationIndex + _arg2)); } public function get document():Object{ return (_document); } private function resizeMouseCatcher():void{ var _local1:Graphics; if (mouseCatcher){ _local1 = mouseCatcher.graphics; _local1.clear(); _local1.beginFill(0, 0); _local1.drawRect(0, 0, stage.stageWidth, stage.stageHeight); _local1.endFill(); }; } override public function get height():Number{ return (_height); } mx_internal function rawChildren_getChildAt(_arg1:int):DisplayObject{ return (super.getChildAt(_arg1)); } mx_internal function set noTopMostIndex(_arg1:int):void{ var _local2:int = (_arg1 - _noTopMostIndex); _noTopMostIndex = _arg1; topMostIndex = (topMostIndex + _local2); } override public function getObjectsUnderPoint(_arg1:Point):Array{ var _local5:DisplayObject; var _local6:Array; var _local2:Array = []; var _local3:int = topMostIndex; var _local4:int; while (_local4 < _local3) { _local5 = super.getChildAt(_local4); if ((_local5 is DisplayObjectContainer)){ _local6 = DisplayObjectContainer(_local5).getObjectsUnderPoint(_arg1); if (_local6){ _local2 = _local2.concat(_local6); }; }; _local4++; }; return (_local2); } mx_internal function get topMostIndex():int{ return (_topMostIndex); } mx_internal function regenerateStyleCache(_arg1:Boolean):void{ var _local5:IStyleClient; var _local2:Boolean; var _local3:int = rawChildren.numChildren; var _local4:int; while (_local4 < _local3) { _local5 = (rawChildren.getChildAt(_local4) as IStyleClient); if (_local5){ _local5.regenerateStyleCache(_arg1); }; if (isTopLevelWindow(DisplayObject(_local5))){ _local2 = true; }; _local3 = rawChildren.numChildren; _local4++; }; if (((!(_local2)) && ((topLevelWindow is IStyleClient)))){ IStyleClient(topLevelWindow).regenerateStyleCache(_arg1); }; } public function addFocusManager(_arg1:IFocusManagerContainer):void{ forms.push(_arg1); } public function isFontFaceEmbedded(_arg1:TextFormat):Boolean{ var _local6:Font; var _local7:String; var _local2:String = _arg1.font; var _local3:Array = Font.enumerateFonts(); var _local4:int; while (_local4 < _local3.length) { _local6 = Font(_local3[_local4]); if (_local6.fontName == _local2){ _local7 = "regular"; if (((_arg1.bold) && (_arg1.italic))){ _local7 = "boldItalic"; } else { if (_arg1.bold){ _local7 = "bold"; } else { if (_arg1.italic){ _local7 = "italic"; }; }; }; if (_local6.fontStyle == _local7){ return (true); }; }; _local4++; }; if (((((!(_local2)) || (!(embeddedFontList)))) || (!(embeddedFontList[_local2])))){ return (false); }; var _local5:Object = embeddedFontList[_local2]; return (!(((((((_arg1.bold) && (!(_local5.bold)))) || (((_arg1.italic) && (!(_local5.italic)))))) || (((((!(_arg1.bold)) && (!(_arg1.italic)))) && (!(_local5.regular))))))); } mx_internal function rawChildren_setChildIndex(_arg1:DisplayObject, _arg2:int):void{ super.setChildIndex(_arg1, _arg2); } mx_internal function childAdded(_arg1:DisplayObject):void{ _arg1.dispatchEvent(new FlexEvent(FlexEvent.ADD)); if ((_arg1 is IUIComponent)){ IUIComponent(_arg1).initialize(); }; } override public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{ if (_arg1 == FlexEvent.IDLE){ super.removeEventListener(_arg1, _arg2, _arg3); if (((!(hasEventListener(FlexEvent.IDLE))) && (idleTimer))){ idleTimer.stop(); idleTimer = null; removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler); removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler); }; } else { super.removeEventListener(_arg1, _arg2, _arg3); }; } private function extraFrameHandler(_arg1:Event=null):void{ var _local3:Class; var _local2:Object = info()["frames"]; if (((_local2) && (_local2[currentLabel]))){ _local3 = Class(getDefinitionByName(_local2[currentLabel])); var _local4 = _local3; _local4["frame"](this); }; deferredNextFrame(); } public function get application():IUIComponent{ return (IUIComponent(_document)); } override public function removeChildAt(_arg1:int):DisplayObject{ noTopMostIndex--; return (rawChildren_removeChildAt((applicationIndex + _arg1))); } mx_internal function rawChildren_removeChildAt(_arg1:int):DisplayObject{ var _local2:DisplayObject = super.getChildAt(_arg1); removingChild(_local2); super.removeChildAt(_arg1); childRemoved(_local2); return (_local2); } private function installCompiledResourceBundles():void{ var _local1:Object = this.info(); var _local2:ApplicationDomain = (((!(topLevel)) && ((parent is Loader)))) ? Loader(parent).contentLoaderInfo.applicationDomain : _local1["currentDomain"]; var _local3:Array = _local1["compiledLocales"]; var _local4:Array = _local1["compiledResourceBundleNames"]; var _local5:IResourceManager = ResourceManager.getInstance(); _local5.installCompiledResourceBundles(_local2, _local3, _local4); if (!_local5.localeChain){ _local5.localeChain = _local3; }; } mx_internal function removingChild(_arg1:DisplayObject):void{ _arg1.dispatchEvent(new FlexEvent(FlexEvent.REMOVE)); } mx_internal function get applicationIndex():int{ return (_applicationIndex); } mx_internal function set toolTipIndex(_arg1:int):void{ var _local2:int = (_arg1 - _toolTipIndex); _toolTipIndex = _arg1; cursorIndex = (cursorIndex + _local2); } public function get cursorChildren():IChildList{ if (!topLevel){ return (_topLevelSystemManager.cursorChildren); }; if (!_cursorChildren){ _cursorChildren = new SystemChildrenList(this, new QName(mx_internal, "toolTipIndex"), new QName(mx_internal, "cursorIndex")); }; return (_cursorChildren); } public function get preloaderBackgroundImage():Object{ return (info()["backgroundImage"]); } public function set numModalWindows(_arg1:int):void{ _numModalWindows = _arg1; } public function get preloaderBackgroundAlpha():Number{ return (info()["backgroundAlpha"]); } mx_internal function rawChildren_getChildByName(_arg1:String):DisplayObject{ return (super.getChildByName(_arg1)); } private function preloader_preloaderDoneHandler(_arg1:Event):void{ var _local2:IUIComponent = topLevelWindow; preloader.removeEventListener(FlexEvent.PRELOADER_DONE, preloader_preloaderDoneHandler); _popUpChildren.removeChild(preloader); preloader = null; mouseCatcher = new FlexSprite(); mouseCatcher.name = "mouseCatcher"; noTopMostIndex++; super.addChildAt(mouseCatcher, 0); resizeMouseCatcher(); if (!topLevel){ mouseCatcher.visible = false; mask = mouseCatcher; }; noTopMostIndex++; super.addChildAt(DisplayObject(_local2), 1); _local2.dispatchEvent(new FlexEvent(FlexEvent.APPLICATION_COMPLETE)); dispatchEvent(new FlexEvent(FlexEvent.APPLICATION_COMPLETE)); } public function get preloaderBackgroundColor():uint{ var _local1:* = info()["backgroundColor"]; if (_local1 == undefined){ return (StyleManager.NOT_A_COLOR); }; return (StyleManager.getColorName(_local1)); } public function get topLevelSystemManager():ISystemManager{ if (topLevel){ return (this); }; return (_topLevelSystemManager); } mx_internal function initialize():void{ var _local6:int; var _local7:int; var _local9:EmbeddedFontRegistry; var _local13:Class; var _local14:Object; var _local15:RSLItem; if (isStageRoot){ _width = stage.stageWidth; _height = stage.stageHeight; } else { _width = loaderInfo.width; _height = loaderInfo.height; }; preloader = new Preloader(); preloader.addEventListener(FlexEvent.INIT_PROGRESS, preloader_initProgressHandler); preloader.addEventListener(FlexEvent.PRELOADER_DONE, preloader_preloaderDoneHandler); if (!_popUpChildren){ _popUpChildren = new SystemChildrenList(this, new QName(mx_internal, "noTopMostIndex"), new QName(mx_internal, "topMostIndex")); }; _popUpChildren.addChild(preloader); var _local1:Array = info()["rsls"]; var _local2:Array = info()["cdRsls"]; var _local3:Boolean; if (info()["usePreloader"] != undefined){ _local3 = info()["usePreloader"]; }; var _local4:Class = (info()["preloader"] as Class); if (((_local3) && (!(_local4)))){ _local4 = DownloadProgressBar; }; var _local5:Array = []; if (((_local2) && ((_local2.length > 0)))){ _local13 = Class(getDefinitionByName("mx.core::CrossDomainRSLItem")); _local6 = _local2.length; _local7 = 0; while (_local7 < _local6) { _local14 = new _local13(_local2[_local7]["rsls"], _local2[_local7]["policyFiles"], _local2[_local7]["digests"], _local2[_local7]["types"], _local2[_local7]["isSigned"]); _local5.push(_local14); _local7++; }; }; if (((!((_local1 == null))) && ((_local1.length > 0)))){ _local6 = _local1.length; _local7 = 0; while (_local7 < _local6) { _local15 = new RSLItem(_local1[_local7].url); _local5.push(_local15); _local7++; }; }; Singleton.registerClass("mx.resources::IResourceManager", Class(getDefinitionByName("mx.resources::ResourceManagerImpl"))); var _local8:IResourceManager = ResourceManager.getInstance(); Singleton.registerClass("mx.core::IEmbeddedFontRegistry", Class(getDefinitionByName("mx.core::EmbeddedFontRegistry"))); Singleton.registerClass("mx.styles::IStyleManager", Class(getDefinitionByName("mx.styles::StyleManagerImpl"))); Singleton.registerClass("mx.styles::IStyleManager2", Class(getDefinitionByName("mx.styles::StyleManagerImpl"))); var _local10:String = loaderInfo.parameters["localeChain"]; if (((!((_local10 == null))) && (!((_local10 == ""))))){ _local8.localeChain = _local10.split(","); }; var _local11:String = loaderInfo.parameters["resourceModuleURLs"]; var _local12:Array = (_local11) ? _local11.split(",") : null; preloader.initialize(_local3, _local4, preloaderBackgroundColor, preloaderBackgroundAlpha, preloaderBackgroundImage, preloaderBackgroundSize, (isStageRoot) ? stage.stageWidth : loaderInfo.width, (isStageRoot) ? stage.stageHeight : loaderInfo.height, null, null, _local5, _local12); } private function appCreationCompleteHandler(_arg1:FlexEvent):void{ var _local2:DisplayObjectContainer; if (((!(topLevel)) && (parent))){ _local2 = parent.parent; while (_local2) { if ((_local2 is IInvalidating)){ IInvalidating(_local2).invalidateSize(); IInvalidating(_local2).invalidateDisplayList(); return; }; _local2 = _local2.parent; }; }; } public function get measuredHeight():Number{ return ((topLevelWindow) ? topLevelWindow.getExplicitOrMeasuredHeight() : loaderInfo.height); } mx_internal function rawChildren_addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{ addingChild(_arg1); super.addChildAt(_arg1, _arg2); childAdded(_arg1); return (_arg1); } private function nextFrameTimerHandler(_arg1:TimerEvent):void{ if ((currentFrame + 1) <= framesLoaded){ nextFrame(); nextFrameTimer.removeEventListener(TimerEvent.TIMER, nextFrameTimerHandler); nextFrameTimer.reset(); }; } mx_internal function childRemoved(_arg1:DisplayObject):void{ if ((_arg1 is IUIComponent)){ IUIComponent(_arg1).parentChanged(null); }; } mx_internal function get noTopMostIndex():int{ return (_noTopMostIndex); } override public function get numChildren():int{ return ((noTopMostIndex - applicationIndex)); } private function initializeTopLevelWindow(_arg1:Event):void{ var _local2:IUIComponent; var _local3:DisplayObjectContainer; initialized = true; if (!parent){ return; }; if (!topLevel){ _local3 = parent.parent; if (!_local3){ return; }; while (_local3) { if ((_local3 is IUIComponent)){ _topLevelSystemManager = IUIComponent(_local3).systemManager; break; }; _local3 = _local3.parent; }; }; addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, true); if (((topLevel) && (stage))){ stage.addEventListener(Event.RESIZE, Stage_resizeHandler, false, 0, true); }; _local2 = (topLevelWindow = IUIComponent(create())); document = _local2; if (document){ IEventDispatcher(_local2).addEventListener(FlexEvent.CREATION_COMPLETE, appCreationCompleteHandler); if (((topLevel) && (stage))){ LoaderConfig._url = loaderInfo.url; LoaderConfig._parameters = loaderInfo.parameters; _width = stage.stageWidth; _height = stage.stageHeight; IFlexDisplayObject(_local2).setActualSize(stage.stageWidth, stage.stageHeight); } else { IFlexDisplayObject(_local2).setActualSize(loaderInfo.width, loaderInfo.height); }; if (preloader){ preloader.registerApplication(_local2); }; addingChild(DisplayObject(_local2)); childAdded(DisplayObject(_local2)); } else { document = this; }; } public function get numModalWindows():int{ return (_numModalWindows); } public function isTopLevelWindow(_arg1:DisplayObject):Boolean{ return ((((_arg1 is IUIComponent)) && ((IUIComponent(_arg1) == topLevelWindow)))); } override public function get width():Number{ return (_width); } public function move(_arg1:Number, _arg2:Number):void{ } public function set explicitWidth(_arg1:Number):void{ _explicitWidth = _arg1; } private function preloader_initProgressHandler(_arg1:Event):void{ preloader.removeEventListener(FlexEvent.INIT_PROGRESS, preloader_initProgressHandler); deferredNextFrame(); } public function get explicitWidth():Number{ return (_explicitWidth); } mx_internal function rawChildren_addChild(_arg1:DisplayObject):DisplayObject{ addingChild(_arg1); super.addChild(_arg1); childAdded(_arg1); return (_arg1); } public static function getSWFRoot(_arg1:Object):DisplayObject{ var p:*; var sm:ISystemManager; var domain:ApplicationDomain; var cls:Class; var object = _arg1; var className:String = getQualifiedClassName(object); for (p in allSystemManagers) { sm = (p as ISystemManager); domain = sm.loaderInfo.applicationDomain; try { cls = Class(domain.getDefinition(className)); if ((object is cls)){ return ((sm as DisplayObject)); }; } catch(e:Error) { }; }; return (null); } mx_internal static function registerInitCallback(_arg1:Function):void{ if (((!(allSystemManagers)) || (!(lastSystemManager)))){ return; }; var _local2:SystemManager = lastSystemManager; if (_local2.doneExecutingInitCallbacks){ _arg1(_local2); } else { _local2.initCallbackFunctions.push(_arg1); }; } } }//package mx.managers
Section 277
//SystemManagerGlobals (mx.managers.SystemManagerGlobals) package mx.managers { public class SystemManagerGlobals { public static var topLevelSystemManagers:Array = []; public static var bootstrapLoaderInfoURL:String; } }//package mx.managers
Section 278
//SystemRawChildrenList (mx.managers.SystemRawChildrenList) package mx.managers { import flash.display.*; import mx.core.*; import flash.geom.*; public class SystemRawChildrenList implements IChildList { private var owner:SystemManager; mx_internal static const VERSION:String = "3.0.0.0"; public function SystemRawChildrenList(_arg1:SystemManager){ this.owner = _arg1; } public function getChildAt(_arg1:int):DisplayObject{ return (owner.mx_internal::rawChildren_getChildAt(_arg1)); } public function addChild(_arg1:DisplayObject):DisplayObject{ return (owner.mx_internal::rawChildren_addChild(_arg1)); } public function getChildIndex(_arg1:DisplayObject):int{ return (owner.mx_internal::rawChildren_getChildIndex(_arg1)); } public function setChildIndex(_arg1:DisplayObject, _arg2:int):void{ var _local3 = owner; _local3.mx_internal::rawChildren_setChildIndex(_arg1, _arg2); } public function getChildByName(_arg1:String):DisplayObject{ return (owner.mx_internal::rawChildren_getChildByName(_arg1)); } public function removeChildAt(_arg1:int):DisplayObject{ return (owner.mx_internal::rawChildren_removeChildAt(_arg1)); } public function get numChildren():int{ return (owner.mx_internal::$numChildren); } public function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{ return (owner.mx_internal::rawChildren_addChildAt(_arg1, _arg2)); } public function getObjectsUnderPoint(_arg1:Point):Array{ return (owner.mx_internal::rawChildren_getObjectsUnderPoint(_arg1)); } public function contains(_arg1:DisplayObject):Boolean{ return (owner.mx_internal::rawChildren_contains(_arg1)); } public function removeChild(_arg1:DisplayObject):DisplayObject{ return (owner.mx_internal::rawChildren_removeChild(_arg1)); } } }//package mx.managers
Section 279
//ToolTipManager (mx.managers.ToolTipManager) package mx.managers { import flash.events.*; import flash.display.*; import mx.core.*; import mx.effects.*; public class ToolTipManager extends EventDispatcher { mx_internal static const VERSION:String = "3.0.0.0"; private static var implClassDependency:ToolTipManagerImpl; private static var _impl:IToolTipManager2; mx_internal static function registerToolTip(_arg1:DisplayObject, _arg2:String, _arg3:String):void{ impl.registerToolTip(_arg1, _arg2, _arg3); } public static function get enabled():Boolean{ return (impl.enabled); } public static function set enabled(_arg1:Boolean):void{ impl.enabled = _arg1; } public static function createToolTip(_arg1:String, _arg2:Number, _arg3:Number, _arg4:String=null, _arg5:IUIComponent=null):IToolTip{ return (impl.createToolTip(_arg1, _arg2, _arg3, _arg4, _arg5)); } public static function set hideDelay(_arg1:Number):void{ impl.hideDelay = _arg1; } public static function set showDelay(_arg1:Number):void{ impl.showDelay = _arg1; } public static function get showDelay():Number{ return (impl.showDelay); } public static function destroyToolTip(_arg1:IToolTip):void{ return (impl.destroyToolTip(_arg1)); } public static function get scrubDelay():Number{ return (impl.scrubDelay); } public static function get toolTipClass():Class{ return (impl.toolTipClass); } mx_internal static function registerErrorString(_arg1:DisplayObject, _arg2:String, _arg3:String):void{ impl.registerErrorString(_arg1, _arg2, _arg3); } mx_internal static function sizeTip(_arg1:IToolTip):void{ impl.sizeTip(_arg1); } public static function set currentTarget(_arg1:DisplayObject):void{ impl.currentTarget = _arg1; } public static function set showEffect(_arg1:IAbstractEffect):void{ impl.showEffect = _arg1; } private static function get impl():IToolTipManager2{ if (!_impl){ _impl = IToolTipManager2(Singleton.getInstance("mx.managers::IToolTipManager2")); }; return (_impl); } public static function get hideDelay():Number{ return (impl.hideDelay); } public static function set hideEffect(_arg1:IAbstractEffect):void{ impl.hideEffect = _arg1; } public static function set scrubDelay(_arg1:Number):void{ impl.scrubDelay = _arg1; } public static function get currentToolTip():IToolTip{ return (impl.currentToolTip); } public static function set currentToolTip(_arg1:IToolTip):void{ impl.currentToolTip = _arg1; } public static function get showEffect():IAbstractEffect{ return (impl.showEffect); } public static function get currentTarget():DisplayObject{ return (impl.currentTarget); } public static function get hideEffect():IAbstractEffect{ return (impl.hideEffect); } public static function set toolTipClass(_arg1:Class):void{ impl.toolTipClass = _arg1; } } }//package mx.managers
Section 280
//ToolTipManagerImpl (mx.managers.ToolTipManagerImpl) package mx.managers { import flash.events.*; import flash.display.*; import mx.core.*; import mx.styles.*; import flash.geom.*; import mx.events.*; import mx.controls.*; import mx.effects.*; import flash.utils.*; import mx.validators.*; public class ToolTipManagerImpl extends EventDispatcher implements IToolTipManager2 { private var _enabled:Boolean;// = true mx_internal var isError:Boolean; private var _showDelay:Number;// = 500 private var _hideEffect:IAbstractEffect; mx_internal var hideTimer:Timer; private var _scrubDelay:Number;// = 100 private var _toolTipClass:Class; mx_internal var currentText:String; mx_internal var showTimer:Timer; private var _currentToolTip:IToolTip; mx_internal var scrubTimer:Timer; mx_internal var previousTarget:DisplayObject; private var _currentTarget:DisplayObject; private var _showEffect:IAbstractEffect; mx_internal var initialized:Boolean;// = false private var _hideDelay:Number;// = 10000 mx_internal static const VERSION:String = "3.0.0.0"; private static var instance:IToolTipManager2; public function ToolTipManagerImpl(){ _toolTipClass = ToolTip; super(); if (instance){ throw (new Error("Instance already exists.")); }; } mx_internal function systemManager_mouseDownHandler(_arg1:MouseEvent):void{ reset(); } public function set showDelay(_arg1:Number):void{ _showDelay = _arg1; } mx_internal function hideEffectEnded():void{ var _local1:ToolTipEvent; reset(); if (previousTarget){ _local1 = new ToolTipEvent(ToolTipEvent.TOOL_TIP_END); _local1.toolTip = currentToolTip; previousTarget.dispatchEvent(_local1); }; } public function set scrubDelay(_arg1:Number):void{ _scrubDelay = _arg1; } public function get currentToolTip():IToolTip{ return (_currentToolTip); } private function mouseIsOver(_arg1:DisplayObject):Boolean{ if (((!(_arg1)) || (!(_arg1.stage)))){ return (false); }; if ((((_arg1.stage.mouseX == 0)) && ((_arg1.stage.mouseY == 0)))){ return (false); }; return (_arg1.hitTestPoint(_arg1.stage.mouseX, _arg1.stage.mouseY, true)); } mx_internal function toolTipMouseOutHandler(_arg1:MouseEvent):void{ checkIfTargetChanged(_arg1.relatedObject); } public function get enabled():Boolean{ return (_enabled); } public function createToolTip(_arg1:String, _arg2:Number, _arg3:Number, _arg4:String=null, _arg5:IUIComponent=null):IToolTip{ var _local6:ToolTip = new ToolTip(); var _local7:ISystemManager = (_arg5) ? _arg5.systemManager : ApplicationGlobals.application.systemManager; _local7.toolTipChildren.addChild(_local6); if (_arg4){ _local6.setStyle("styleName", "errorTip"); _local6.setStyle("borderStyle", _arg4); }; _local6.text = _arg1; sizeTip(_local6); _local6.move(_arg2, _arg3); return ((_local6 as IToolTip)); } mx_internal function reset():void{ var _local1:ISystemManager; showTimer.reset(); hideTimer.reset(); if (currentToolTip){ if (((showEffect) || (hideEffect))){ currentToolTip.removeEventListener(EffectEvent.EFFECT_END, effectEndHandler); }; EffectManager.endEffectsForTarget(currentToolTip); _local1 = currentToolTip.systemManager; _local1.toolTipChildren.removeChild(DisplayObject(currentToolTip)); currentToolTip = null; scrubTimer.delay = scrubDelay; scrubTimer.reset(); if (scrubDelay > 0){ scrubTimer.delay = scrubDelay; scrubTimer.start(); }; }; } public function get toolTipClass():Class{ return (_toolTipClass); } public function set currentToolTip(_arg1:IToolTip):void{ _currentToolTip = _arg1; } private function hideImmediately(_arg1:DisplayObject):void{ checkIfTargetChanged(null); } mx_internal function showTip():void{ var _local2:ISystemManager; var _local1:ToolTipEvent = new ToolTipEvent(ToolTipEvent.TOOL_TIP_SHOW); _local1.toolTip = currentToolTip; currentTarget.dispatchEvent(_local1); if (isError){ currentTarget.addEventListener("change", changeHandler); } else { _local2 = getSystemManager(currentTarget); _local2.addEventListener(MouseEvent.MOUSE_DOWN, systemManager_mouseDownHandler); }; currentToolTip.visible = true; if (!showEffect){ showEffectEnded(); }; } mx_internal function effectEndHandler(_arg1:EffectEvent):void{ if (_arg1.effectInstance.effect == showEffect){ showEffectEnded(); } else { if (_arg1.effectInstance.effect == hideEffect){ hideEffectEnded(); }; }; } public function get hideDelay():Number{ return (_hideDelay); } public function get currentTarget():DisplayObject{ return (_currentTarget); } mx_internal function showEffectEnded():void{ var _local1:ToolTipEvent; if (hideDelay == 0){ hideTip(); } else { if (hideDelay < Infinity){ hideTimer.delay = hideDelay; hideTimer.start(); }; }; if (currentTarget){ _local1 = new ToolTipEvent(ToolTipEvent.TOOL_TIP_SHOWN); _local1.toolTip = currentToolTip; currentTarget.dispatchEvent(_local1); }; } public function get hideEffect():IAbstractEffect{ return (_hideEffect); } mx_internal function changeHandler(_arg1:Event):void{ reset(); } public function set enabled(_arg1:Boolean):void{ _enabled = _arg1; } mx_internal function errorTipMouseOverHandler(_arg1:MouseEvent):void{ checkIfTargetChanged(DisplayObject(_arg1.target)); } public function get showDelay():Number{ return (_showDelay); } public function registerErrorString(_arg1:DisplayObject, _arg2:String, _arg3:String):void{ if (((!(_arg2)) && (_arg3))){ _arg1.addEventListener(MouseEvent.MOUSE_OVER, errorTipMouseOverHandler); _arg1.addEventListener(MouseEvent.MOUSE_OUT, errorTipMouseOutHandler); if (mouseIsOver(_arg1)){ showImmediately(_arg1); }; } else { if (((_arg2) && (!(_arg3)))){ _arg1.removeEventListener(MouseEvent.MOUSE_OVER, errorTipMouseOverHandler); _arg1.removeEventListener(MouseEvent.MOUSE_OUT, errorTipMouseOutHandler); if (mouseIsOver(_arg1)){ hideImmediately(_arg1); }; }; }; } mx_internal function initialize():void{ if (!showTimer){ showTimer = new Timer(0, 1); showTimer.addEventListener(TimerEvent.TIMER, showTimer_timerHandler); }; if (!hideTimer){ hideTimer = new Timer(0, 1); hideTimer.addEventListener(TimerEvent.TIMER, hideTimer_timerHandler); }; if (!scrubTimer){ scrubTimer = new Timer(0, 1); }; initialized = true; } public function destroyToolTip(_arg1:IToolTip):void{ var _local2:ISystemManager = _arg1.systemManager; _local2.toolTipChildren.removeChild(DisplayObject(_arg1)); } public function get scrubDelay():Number{ return (_scrubDelay); } mx_internal function checkIfTargetChanged(_arg1:DisplayObject):void{ if (!enabled){ return; }; findTarget(_arg1); if (currentTarget != previousTarget){ targetChanged(); previousTarget = currentTarget; }; } public function set toolTipClass(_arg1:Class):void{ _toolTipClass = _arg1; } private function getGlobalBounds(_arg1:DisplayObject):Rectangle{ var _local2:Point = new Point(0, 0); _local2 = _arg1.localToGlobal(_local2); return (new Rectangle(_local2.x, _local2.y, _arg1.width, _arg1.height)); } mx_internal function positionTip():void{ var _local1:Number; var _local2:Number; var _local5:Rectangle; var _local6:Point; var _local7:IToolTip; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local3:Number = currentToolTip.screen.width; var _local4:Number = currentToolTip.screen.height; if (isError){ _local5 = getGlobalBounds(currentTarget); _local1 = (_local5.right + 4); _local2 = (_local5.top - 1); if ((_local1 + currentToolTip.width) > _local3){ _local8 = NaN; _local9 = NaN; _local1 = (_local5.left - 2); if (((_local1 + currentToolTip.width) + 4) > _local3){ _local8 = ((_local3 - _local1) - 4); _local9 = Object(toolTipClass).maxWidth; Object(toolTipClass).maxWidth = _local8; if ((currentToolTip is IStyleClient)){ IStyleClient(currentToolTip).setStyle("borderStyle", "errorTipAbove"); }; currentToolTip["text"] = currentToolTip["text"]; Object(toolTipClass).maxWidth = _local9; } else { if ((currentToolTip is IStyleClient)){ IStyleClient(currentToolTip).setStyle("borderStyle", "errorTipAbove"); }; currentToolTip["text"] = currentToolTip["text"]; }; if ((currentToolTip.height + 2) < _local5.top){ _local2 = (_local5.top - (currentToolTip.height + 2)); } else { _local2 = (_local5.bottom + 2); if (!isNaN(_local8)){ Object(toolTipClass).maxWidth = _local8; }; if ((currentToolTip is IStyleClient)){ IStyleClient(currentToolTip).setStyle("borderStyle", "errorTipBelow"); }; currentToolTip["text"] = currentToolTip["text"]; if (!isNaN(_local9)){ Object(toolTipClass).maxWidth = _local9; }; }; }; sizeTip(currentToolTip); _local6 = new Point(_local1, _local2); _local7 = currentToolTip; _local6 = DisplayObject(_local7).root.globalToLocal(_local6); _local1 = _local6.x; _local2 = _local6.y; } else { _local1 = (ApplicationGlobals.application.mouseX + 11); _local2 = (ApplicationGlobals.application.mouseY + 22); _local10 = currentToolTip.width; if ((_local1 + _local10) > _local3){ _local1 = (_local3 - _local10); }; _local11 = currentToolTip.height; if ((_local2 + _local11) > _local4){ _local2 = (_local4 - _local11); }; }; currentToolTip.move(_local1, _local2); } mx_internal function errorTipMouseOutHandler(_arg1:MouseEvent):void{ checkIfTargetChanged(_arg1.relatedObject); } mx_internal function findTarget(_arg1:DisplayObject):void{ while (_arg1) { if ((_arg1 is IValidatorListener)){ currentText = IValidatorListener(_arg1).errorString; if (((!((currentText == null))) && (!((currentText == ""))))){ currentTarget = _arg1; isError = true; return; }; }; if ((_arg1 is IToolTipManagerClient)){ currentText = IToolTipManagerClient(_arg1).toolTip; if (currentText != null){ currentTarget = _arg1; isError = false; return; }; }; _arg1 = _arg1.parent; }; currentText = null; currentTarget = null; } public function registerToolTip(_arg1:DisplayObject, _arg2:String, _arg3:String):void{ if (((!(_arg2)) && (_arg3))){ _arg1.addEventListener(MouseEvent.MOUSE_OVER, toolTipMouseOverHandler); _arg1.addEventListener(MouseEvent.MOUSE_OUT, toolTipMouseOutHandler); if (mouseIsOver(_arg1)){ showImmediately(_arg1); }; } else { if (((_arg2) && (!(_arg3)))){ _arg1.removeEventListener(MouseEvent.MOUSE_OVER, toolTipMouseOverHandler); _arg1.removeEventListener(MouseEvent.MOUSE_OUT, toolTipMouseOutHandler); if (mouseIsOver(_arg1)){ hideImmediately(_arg1); }; }; }; } private function showImmediately(_arg1:DisplayObject):void{ var _local2:Number = ToolTipManager.showDelay; ToolTipManager.showDelay = 0; checkIfTargetChanged(_arg1); ToolTipManager.showDelay = _local2; } public function set hideDelay(_arg1:Number):void{ _hideDelay = _arg1; } private function getSystemManager(_arg1:DisplayObject):ISystemManager{ return (((_arg1 is IUIComponent)) ? IUIComponent(_arg1).systemManager : null); } public function set currentTarget(_arg1:DisplayObject):void{ _currentTarget = _arg1; } public function sizeTip(_arg1:IToolTip):void{ if ((_arg1 is IInvalidating)){ IInvalidating(_arg1).validateNow(); }; _arg1.setActualSize(_arg1.getExplicitOrMeasuredWidth(), _arg1.getExplicitOrMeasuredHeight()); } mx_internal function showTimer_timerHandler(_arg1:TimerEvent):void{ if (currentTarget){ createTip(); initializeTip(); positionTip(); showTip(); }; } mx_internal function hideTimer_timerHandler(_arg1:TimerEvent):void{ hideTip(); } public function set showEffect(_arg1:IAbstractEffect):void{ _showEffect = (_arg1 as IAbstractEffect); } public function set hideEffect(_arg1:IAbstractEffect):void{ _hideEffect = (_arg1 as IAbstractEffect); } mx_internal function targetChanged():void{ var _local1:ToolTipEvent; if (!initialized){ initialize(); }; if (((previousTarget) && (currentToolTip))){ _local1 = new ToolTipEvent(ToolTipEvent.TOOL_TIP_HIDE); _local1.toolTip = currentToolTip; previousTarget.dispatchEvent(_local1); }; reset(); if (currentTarget){ if (currentText == ""){ return; }; _local1 = new ToolTipEvent(ToolTipEvent.TOOL_TIP_START); currentTarget.dispatchEvent(_local1); if ((((showDelay == 0)) || (scrubTimer.running))){ createTip(); initializeTip(); positionTip(); showTip(); } else { showTimer.delay = showDelay; showTimer.start(); }; }; } mx_internal function initializeTip():void{ if ((currentToolTip is ToolTip)){ ToolTip(currentToolTip).text = currentText; }; if (((isError) && ((currentToolTip is IStyleClient)))){ IStyleClient(currentToolTip).setStyle("styleName", "errorTip"); }; sizeTip(currentToolTip); if ((currentToolTip is IStyleClient)){ if (showEffect){ IStyleClient(currentToolTip).setStyle("showEffect", showEffect); }; if (hideEffect){ IStyleClient(currentToolTip).setStyle("hideEffect", hideEffect); }; }; if (((showEffect) || (hideEffect))){ currentToolTip.addEventListener(EffectEvent.EFFECT_END, effectEndHandler); }; } public function get showEffect():IAbstractEffect{ return (_showEffect); } mx_internal function toolTipMouseOverHandler(_arg1:MouseEvent):void{ checkIfTargetChanged(DisplayObject(_arg1.target)); } mx_internal function hideTip():void{ var _local1:ToolTipEvent; var _local2:ISystemManager; if (previousTarget){ _local1 = new ToolTipEvent(ToolTipEvent.TOOL_TIP_HIDE); _local1.toolTip = currentToolTip; previousTarget.dispatchEvent(_local1); }; if (currentToolTip){ currentToolTip.visible = false; }; if (isError){ if (currentTarget){ currentTarget.removeEventListener("change", changeHandler); }; } else { if (previousTarget){ _local2 = getSystemManager(previousTarget); _local2.removeEventListener(MouseEvent.MOUSE_DOWN, systemManager_mouseDownHandler); }; }; if (!hideEffect){ hideEffectEnded(); }; } mx_internal function createTip():void{ var _local1:ToolTipEvent = new ToolTipEvent(ToolTipEvent.TOOL_TIP_CREATE); currentTarget.dispatchEvent(_local1); if (_local1.toolTip){ currentToolTip = _local1.toolTip; } else { currentToolTip = new toolTipClass(); }; currentToolTip.visible = false; var _local2:ISystemManager = getSystemManager(currentTarget); _local2.toolTipChildren.addChild(DisplayObject(currentToolTip)); } public static function getInstance():IToolTipManager2{ if (!instance){ instance = new (ToolTipManagerImpl); }; return (instance); } } }//package mx.managers
Section 281
//LoaderConfig (mx.messaging.config.LoaderConfig) package mx.messaging.config { public class LoaderConfig { mx_internal static const VERSION:String = "3.0.0.0"; mx_internal static var _url:String = null; mx_internal static var _parameters:Object; public static function get url():String{ return (_url); } public static function get parameters():Object{ return (_parameters); } } }//package mx.messaging.config
Section 282
//IModuleInfo (mx.modules.IModuleInfo) package mx.modules { import flash.events.*; import mx.core.*; import flash.system.*; public interface IModuleInfo extends IEventDispatcher { function get ready():Boolean; function get loaded():Boolean; function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null):void; function release():void; function get error():Boolean; function get data():Object; function publish(_arg1:IFlexModuleFactory):void; function get factory():IFlexModuleFactory; function set data(_arg1:Object):void; function get url():String; function get setup():Boolean; function unload():void; } }//package mx.modules
Section 283
//ModuleManager (mx.modules.ModuleManager) package mx.modules { import mx.core.*; public class ModuleManager { mx_internal static const VERSION:String = "3.0.0.0"; public static function getModule(_arg1:String):IModuleInfo{ return (getSingleton().getModule(_arg1)); } private static function getSingleton():Object{ if (!ModuleManagerGlobals.managerSingleton){ ModuleManagerGlobals.managerSingleton = new ModuleManagerImpl(); }; return (ModuleManagerGlobals.managerSingleton); } public static function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{ return (getSingleton().getAssociatedFactory(_arg1)); } } }//package mx.modules import flash.events.*; import flash.display.*; import mx.core.*; import flash.net.*; import flash.system.*; import mx.events.*; import flash.utils.*; class ModuleInfoProxy extends EventDispatcher implements IModuleInfo { private var _data:Object; private var info:ModuleInfo; private var referenced:Boolean;// = false private function ModuleInfoProxy(_arg1:ModuleInfo){ this.info = _arg1; _arg1.addEventListener(ModuleEvent.SETUP, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.ERROR, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.UNLOAD, moduleEventHandler, false, 0, true); } public function get loaded():Boolean{ return (info.loaded); } public function release():void{ if (referenced){ info.removeReference(); referenced = false; }; } public function get error():Boolean{ return (info.error); } public function get factory():IFlexModuleFactory{ return (info.factory); } public function publish(_arg1:IFlexModuleFactory):void{ info.publish(_arg1); } public function set data(_arg1:Object):void{ _data = _arg1; } public function get ready():Boolean{ return (info.ready); } public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null):void{ var _local3:ModuleEvent; info.resurrect(); if (!referenced){ info.addReference(); referenced = true; }; if (info.error){ dispatchEvent(new ModuleEvent(ModuleEvent.ERROR)); } else { if (info.loaded){ if (info.setup){ dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); if (info.ready){ _local3 = new ModuleEvent(ModuleEvent.PROGRESS); _local3.bytesLoaded = info.size; _local3.bytesTotal = info.size; dispatchEvent(_local3); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); }; }; } else { info.load(_arg1, _arg2); }; }; } private function moduleEventHandler(_arg1:ModuleEvent):void{ dispatchEvent(_arg1); } public function get url():String{ return (info.url); } public function get data():Object{ return (_data); } public function get setup():Boolean{ return (info.setup); } public function unload():void{ info.unload(); info.removeEventListener(ModuleEvent.SETUP, moduleEventHandler); info.removeEventListener(ModuleEvent.PROGRESS, moduleEventHandler); info.removeEventListener(ModuleEvent.READY, moduleEventHandler); info.removeEventListener(ModuleEvent.ERROR, moduleEventHandler); info.removeEventListener(ModuleEvent.UNLOAD, moduleEventHandler); } } class ModuleManagerImpl extends EventDispatcher { private var moduleList:Object; private function ModuleManagerImpl(){ moduleList = {}; super(); } public function getModule(_arg1:String):IModuleInfo{ var _local2:ModuleInfo = (moduleList[_arg1] as ModuleInfo); if (!_local2){ _local2 = new ModuleInfo(_arg1); moduleList[_arg1] = _local2; }; return (new ModuleInfoProxy(_local2)); } public function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{ var m:Object; var info:ModuleInfo; var domain:ApplicationDomain; var cls:Class; var object = _arg1; var className:String = getQualifiedClassName(object); for each (m in moduleList) { info = (m as ModuleInfo); if (!info.ready){ } else { domain = info.applicationDomain; try { cls = Class(domain.getDefinition(className)); if ((object is cls)){ return (info.factory); }; } catch(error:Error) { }; }; }; return (null); } } class ModuleInfo extends EventDispatcher { private var _error:Boolean;// = false private var loader:Loader; private var factoryInfo:FactoryInfo; private var limbo:Dictionary; private var _loaded:Boolean;// = false private var _ready:Boolean;// = false private var numReferences:int;// = 0 private var _url:String; private var _setup:Boolean;// = false private function ModuleInfo(_arg1:String){ _url = _arg1; } private function clearLoader():void{ if (loader){ if (loader.contentLoaderInfo){ loader.contentLoaderInfo.removeEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, progressHandler); loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); }; try { if (loader.content){ loader.content.removeEventListener("ready", readyHandler); }; } catch(error:Error) { }; if (_loaded){ try { loader.close(); } catch(error:Error) { }; }; try { loader.unload(); } catch(error:Error) { }; loader = null; }; } public function get size():int{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.bytesTotal : 0); } public function get loaded():Boolean{ return ((limbo) ? false : _loaded); } public function release():void{ if (((_ready) && (!(limbo)))){ limbo = new Dictionary(true); limbo[factoryInfo] = 1; factoryInfo = null; } else { unload(); }; } public function get error():Boolean{ return ((limbo) ? false : _error); } public function get factory():IFlexModuleFactory{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.factory : null); } public function completeHandler(_arg1:Event):void{ var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = loader.contentLoaderInfo.bytesLoaded; _local2.bytesTotal = loader.contentLoaderInfo.bytesTotal; dispatchEvent(_local2); } public function publish(_arg1:IFlexModuleFactory):void{ if (factoryInfo){ return; }; if (_url.indexOf("published://") != 0){ return; }; factoryInfo = new FactoryInfo(); factoryInfo.factory = _arg1; _loaded = true; _setup = true; _ready = true; _error = false; dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); dispatchEvent(new ModuleEvent(ModuleEvent.PROGRESS)); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); } public function initHandler(_arg1:Event):void{ var moduleEvent:ModuleEvent; var event = _arg1; factoryInfo = new FactoryInfo(); try { factoryInfo.factory = (loader.content as IFlexModuleFactory); } catch(error:Error) { }; if (!factoryInfo.factory){ moduleEvent = new ModuleEvent(ModuleEvent.ERROR, event.bubbles, event.cancelable); moduleEvent.bytesLoaded = 0; moduleEvent.bytesTotal = 0; moduleEvent.errorText = "SWF is not a loadable module"; dispatchEvent(moduleEvent); return; }; loader.content.addEventListener("ready", readyHandler); try { factoryInfo.applicationDomain = loader.contentLoaderInfo.applicationDomain; } catch(error:Error) { }; _setup = true; dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); } public function resurrect():void{ var _local1:Object; if (((!(factoryInfo)) && (limbo))){ for (_local1 in limbo) { factoryInfo = (_local1 as FactoryInfo); break; }; limbo = null; }; if (!factoryInfo){ if (_loaded){ dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD)); }; loader = null; _loaded = false; _setup = false; _ready = false; _error = false; }; } public function errorHandler(_arg1:ErrorEvent):void{ _error = true; var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = 0; _local2.bytesTotal = 0; _local2.errorText = _arg1.text; dispatchEvent(_local2); } public function get ready():Boolean{ return ((limbo) ? false : _ready); } public function removeReference():void{ numReferences--; if (numReferences == 0){ release(); }; } public function addReference():void{ numReferences++; } public function progressHandler(_arg1:ProgressEvent):void{ var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null):void{ if (_loaded){ return; }; _loaded = true; limbo = null; if (_url.indexOf("published://") == 0){ return; }; var _local3:URLRequest = new URLRequest(_url); var _local4:LoaderContext = new LoaderContext(); _local4.applicationDomain = (_arg1) ? _arg1 : new ApplicationDomain(ApplicationDomain.currentDomain); _local4.securityDomain = _arg2; if ((((_arg2 == null)) && ((Security.sandboxType == Security.REMOTE)))){ _local4.securityDomain = SecurityDomain.currentDomain; }; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); loader.load(_local3, _local4); } public function get url():String{ return (_url); } public function get applicationDomain():ApplicationDomain{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.applicationDomain : null); } public function readyHandler(_arg1:Event):void{ _ready = true; factoryInfo.bytesTotal = loader.contentLoaderInfo.bytesTotal; clearLoader(); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); } public function get setup():Boolean{ return ((limbo) ? false : _setup); } public function unload():void{ clearLoader(); if (_loaded){ dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD)); }; limbo = null; factoryInfo = null; _loaded = false; _setup = false; _ready = false; _error = false; } } class FactoryInfo { public var bytesTotal:int;// = 0 public var factory:IFlexModuleFactory; public var applicationDomain:ApplicationDomain; private function FactoryInfo(){ } }
Section 284
//ModuleManagerGlobals (mx.modules.ModuleManagerGlobals) package mx.modules { public class ModuleManagerGlobals { public static var managerSingleton:Object = null; } }//package mx.modules
Section 285
//DownloadProgressBar (mx.preloaders.DownloadProgressBar) package mx.preloaders { import flash.events.*; import flash.display.*; import flash.net.*; import flash.system.*; import flash.geom.*; import mx.events.*; import flash.text.*; import mx.graphics.*; import flash.utils.*; public class DownloadProgressBar extends Sprite implements IPreloaderDisplay { protected var MINIMUM_DISPLAY_TIME:uint;// = 0 private var _barFrameRect:RoundedRectangle; private var _stageHeight:Number;// = 375 private var _stageWidth:Number;// = 500 private var _percentRect:Rectangle; private var _percentObj:TextField; private var _downloadingLabel:String;// = "Loading" private var _showProgressBar:Boolean;// = true private var _yOffset:Number;// = 20 private var _initProgressCount:uint;// = 0 private var _barSprite:Sprite; private var _visible:Boolean;// = false private var _barRect:RoundedRectangle; private var _showingDisplay:Boolean;// = false private var _backgroundSize:String;// = "" private var _initProgressTotal:uint;// = 12 private var _startedInit:Boolean;// = false private var _showLabel:Boolean;// = true private var _value:Number;// = 0 private var _labelRect:Rectangle; private var _backgroundImage:Object; private var _backgroundAlpha:Number;// = 1 private var _backgroundColor:uint; private var _startedLoading:Boolean;// = false private var _showPercentage:Boolean;// = false private var _barFrameSprite:Sprite; protected var DOWNLOAD_PERCENTAGE:uint;// = 60 private var _displayStartCount:uint;// = 0 private var _labelObj:TextField; private var _borderRect:RoundedRectangle; private var _maximum:Number;// = 0 private var _displayTime:int; private var _label:String;// = "" private var _preloader:Sprite; private var _xOffset:Number;// = 20 private var _startTime:int; mx_internal static const VERSION:String = "3.0.0.0"; private static var _initializingLabel:String = "Initializing"; public function DownloadProgressBar(){ _labelRect = labelRect; _percentRect = percentRect; _borderRect = borderRect; _barFrameRect = barFrameRect; _barRect = barRect; super(); } protected function getPercentLoaded(_arg1:Number, _arg2:Number):Number{ var _local3:Number; if ((((((((_arg1 == 0)) || ((_arg2 == 0)))) || (isNaN(_arg2)))) || (isNaN(_arg1)))){ return (0); }; _local3 = ((100 * _arg1) / _arg2); if (((isNaN(_local3)) || ((_local3 <= 0)))){ return (0); }; if (_local3 > 99){ return (99); }; return (Math.round(_local3)); } protected function get labelFormat():TextFormat{ var _local1:TextFormat = new TextFormat(); _local1.color = 0x333333; _local1.font = "Verdana"; _local1.size = 10; return (_local1); } private function calcScale():void{ var _local1:Number; if ((((stageWidth < 160)) || ((stageHeight < 120)))){ scaleX = 1; scaleY = 1; } else { if ((((stageWidth < 240)) || ((stageHeight < 150)))){ createChildren(); _local1 = Math.min((stageWidth / 240), (stageHeight / 150)); scaleX = _local1; scaleY = _local1; } else { createChildren(); }; }; } protected function get percentRect():Rectangle{ return (new Rectangle(108, 4, 34, 16)); } protected function set showLabel(_arg1:Boolean):void{ _showLabel = _arg1; draw(); } private function calcBackgroundSize():Number{ var _local2:int; var _local1:Number = NaN; if (backgroundSize){ _local2 = backgroundSize.indexOf("%"); if (_local2 != -1){ _local1 = Number(backgroundSize.substr(0, _local2)); }; }; return (_local1); } private function show():void{ _showingDisplay = true; calcScale(); draw(); _displayTime = getTimer(); } private function loadBackgroundImage(_arg1:Object):void{ var cls:Class; var newStyleObj:DisplayObject; var loader:Loader; var loaderContext:LoaderContext; var classOrString = _arg1; if (((classOrString) && ((classOrString as Class)))){ cls = Class(classOrString); initBackgroundImage(new (cls)); } else { if (((classOrString) && ((classOrString is String)))){ try { cls = Class(getDefinitionByName(String(classOrString))); } catch(e:Error) { }; if (cls){ newStyleObj = new (cls); initBackgroundImage(newStyleObj); } else { loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loader_completeHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loader_ioErrorHandler); loaderContext = new LoaderContext(); loaderContext.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain); loader.load(new URLRequest(String(classOrString)), loaderContext); }; }; }; } protected function set showPercentage(_arg1:Boolean):void{ _showPercentage = _arg1; draw(); } protected function get barFrameRect():RoundedRectangle{ return (new RoundedRectangle(14, 40, 154, 4)); } private function loader_ioErrorHandler(_arg1:IOErrorEvent):void{ } protected function rslErrorHandler(_arg1:RSLEvent):void{ _preloader.removeEventListener(ProgressEvent.PROGRESS, progressHandler); _preloader.removeEventListener(Event.COMPLETE, completeHandler); _preloader.removeEventListener(RSLEvent.RSL_PROGRESS, rslProgressHandler); _preloader.removeEventListener(RSLEvent.RSL_COMPLETE, rslCompleteHandler); _preloader.removeEventListener(RSLEvent.RSL_ERROR, rslErrorHandler); _preloader.removeEventListener(FlexEvent.INIT_PROGRESS, initProgressHandler); _preloader.removeEventListener(FlexEvent.INIT_COMPLETE, initCompleteHandler); if (!_showingDisplay){ show(); _showingDisplay = true; }; label = ((("RSL Error " + (_arg1.rslIndex + 1)) + " of ") + _arg1.rslTotal); var _local2:ErrorField = new ErrorField(this.parent); _local2.show(_arg1.errorText); } protected function rslCompleteHandler(_arg1:RSLEvent):void{ label = ((("Loaded library " + _arg1.rslIndex) + " of ") + _arg1.rslTotal); } protected function get borderRect():RoundedRectangle{ return (new RoundedRectangle(0, 0, 182, 60, 4)); } protected function showDisplayForDownloading(_arg1:int, _arg2:ProgressEvent):Boolean{ return ((((_arg1 > 700)) && ((_arg2.bytesLoaded < (_arg2.bytesTotal / 2))))); } protected function createChildren():void{ var _local2:TextField; var _local3:TextField; var _local1:Graphics = graphics; if (backgroundColor != 4294967295){ _local1.beginFill(backgroundColor, backgroundAlpha); _local1.drawRect(0, 0, stageWidth, stageHeight); }; if (backgroundImage != null){ loadBackgroundImage(backgroundImage); }; _barFrameSprite = new Sprite(); _barSprite = new Sprite(); addChild(_barFrameSprite); addChild(_barSprite); _local1.beginFill(0xCCCCCC, 0.4); _local1.drawRoundRect(calcX(_borderRect.x), calcY(_borderRect.y), _borderRect.width, _borderRect.height, (_borderRect.cornerRadius * 2), (_borderRect.cornerRadius * 2)); _local1.drawRoundRect(calcX((_borderRect.x + 1)), calcY((_borderRect.y + 1)), (_borderRect.width - 2), (_borderRect.height - 2), (_borderRect.cornerRadius - (1 * 2)), (_borderRect.cornerRadius - (1 * 2))); _local1.endFill(); _local1.beginFill(0xCCCCCC, 0.4); _local1.drawRoundRect(calcX((_borderRect.x + 1)), calcY((_borderRect.y + 1)), (_borderRect.width - 2), (_borderRect.height - 2), (_borderRect.cornerRadius - (1 * 2)), (_borderRect.cornerRadius - (1 * 2))); _local1.endFill(); var _local4:Graphics = _barFrameSprite.graphics; var _local5:Matrix = new Matrix(); _local5.createGradientBox(_barFrameRect.width, _barFrameRect.height, (Math.PI / 2), calcX(_barFrameRect.x), calcY(_barFrameRect.y)); _local4.beginGradientFill(GradientType.LINEAR, [6054502, 11909306], [1, 1], [0, 0xFF], _local5); _local4.drawRoundRect(calcX(_barFrameRect.x), calcY(_barFrameRect.y), _barFrameRect.width, _barFrameRect.height, (_barFrameRect.cornerRadius * 2), (_barFrameRect.cornerRadius * 2)); _local4.drawRoundRect(calcX((_barFrameRect.x + 1)), calcY((_barFrameRect.y + 1)), (_barFrameRect.width - 2), (_barFrameRect.height - 2), (_barFrameRect.cornerRadius * 2), (_barFrameRect.cornerRadius * 2)); _local4.endFill(); _labelObj = new TextField(); _labelObj.x = calcX(_labelRect.x); _labelObj.y = calcY(_labelRect.y); _labelObj.width = _labelRect.width; _labelObj.height = _labelRect.height; _labelObj.selectable = false; _labelObj.defaultTextFormat = labelFormat; addChild(_labelObj); _percentObj = new TextField(); _percentObj.x = calcX(_percentRect.x); _percentObj.y = calcY(_percentRect.y); _percentObj.width = _percentRect.width; _percentObj.height = _percentRect.height; _percentObj.selectable = false; _percentObj.defaultTextFormat = percentFormat; addChild(_percentObj); var _local6:RectangularDropShadow = new RectangularDropShadow(); _local6.color = 0; _local6.angle = 90; _local6.alpha = 0.6; _local6.distance = 2; _local6.tlRadius = (_local6.trRadius = (_local6.blRadius = (_local6.brRadius = _borderRect.cornerRadius))); _local6.drawShadow(_local1, calcX(_borderRect.x), calcY(_borderRect.y), _borderRect.width, _borderRect.height); _local1.lineStyle(1, 0xFFFFFF, 0.3); _local1.moveTo((calcX(_borderRect.x) + _borderRect.cornerRadius), calcY(_borderRect.y)); _local1.lineTo(((calcX(_borderRect.x) - _borderRect.cornerRadius) + _borderRect.width), calcY(_borderRect.y)); } private function draw():void{ var _local1:Number; if (_startedLoading){ if (!_startedInit){ _local1 = Math.round(((getPercentLoaded(_value, _maximum) * DOWNLOAD_PERCENTAGE) / 100)); } else { _local1 = Math.round((((getPercentLoaded(_value, _maximum) * (100 - DOWNLOAD_PERCENTAGE)) / 100) + DOWNLOAD_PERCENTAGE)); }; } else { _local1 = getPercentLoaded(_value, _maximum); }; if (_labelObj){ _labelObj.text = _label; }; if (_percentObj){ if (!_showPercentage){ _percentObj.visible = false; _percentObj.text = ""; } else { _percentObj.text = (String(_local1) + "%"); }; }; if (((_barSprite) && (_barFrameSprite))){ if (!_showProgressBar){ _barSprite.visible = false; _barFrameSprite.visible = false; } else { drawProgressBar(_local1); }; }; } private function timerHandler(_arg1:Event=null):void{ dispatchEvent(new Event(Event.COMPLETE)); } private function hide():void{ } public function get backgroundSize():String{ return (_backgroundSize); } protected function center(_arg1:Number, _arg2:Number):void{ _xOffset = Math.floor(((_arg1 - _borderRect.width) / 2)); _yOffset = Math.floor(((_arg2 - _borderRect.height) / 2)); } protected function progressHandler(_arg1:ProgressEvent):void{ var _local2:uint = _arg1.bytesLoaded; var _local3:uint = _arg1.bytesTotal; var _local4:int = (getTimer() - _startTime); if (((_showingDisplay) || (showDisplayForDownloading(_local4, _arg1)))){ if (!_startedLoading){ show(); label = downloadingLabel; _startedLoading = true; }; setProgress(_arg1.bytesLoaded, _arg1.bytesTotal); }; } protected function initProgressHandler(_arg1:Event):void{ var _local3:Number; var _local2:int = (getTimer() - _startTime); _initProgressCount++; if (((!(_showingDisplay)) && (showDisplayForInit(_local2, _initProgressCount)))){ _displayStartCount = _initProgressCount; show(); } else { if (_showingDisplay){ if (!_startedInit){ _startedInit = true; label = initializingLabel; }; _local3 = ((100 * _initProgressCount) / (_initProgressTotal - _displayStartCount)); setProgress(_local3, 100); }; }; } protected function set downloadingLabel(_arg1:String):void{ _downloadingLabel = _arg1; } public function get stageWidth():Number{ return (_stageWidth); } protected function get showPercentage():Boolean{ return (_showPercentage); } override public function get visible():Boolean{ return (_visible); } public function set stageHeight(_arg1:Number):void{ _stageHeight = _arg1; } public function initialize():void{ _startTime = getTimer(); center(stageWidth, stageHeight); } protected function rslProgressHandler(_arg1:RSLEvent):void{ } protected function get barRect():RoundedRectangle{ return (new RoundedRectangle(14, 39, 154, 6, 0)); } protected function get percentFormat():TextFormat{ var _local1:TextFormat = new TextFormat(); _local1.align = "right"; _local1.color = 0; _local1.font = "Verdana"; _local1.size = 10; return (_local1); } public function set backgroundImage(_arg1:Object):void{ _backgroundImage = _arg1; } private function calcX(_arg1:Number):Number{ return ((_arg1 + _xOffset)); } private function calcY(_arg1:Number):Number{ return ((_arg1 + _yOffset)); } public function set backgroundAlpha(_arg1:Number):void{ _backgroundAlpha = _arg1; } private function initCompleteHandler(_arg1:Event):void{ var _local3:Timer; var _local2:int = (getTimer() - _displayTime); if (((_showingDisplay) && ((_local2 < MINIMUM_DISPLAY_TIME)))){ _local3 = new Timer((MINIMUM_DISPLAY_TIME - _local2), 1); _local3.addEventListener(TimerEvent.TIMER, timerHandler); _local3.start(); } else { timerHandler(); }; } public function set backgroundColor(_arg1:uint):void{ _backgroundColor = _arg1; } private function initBackgroundImage(_arg1:DisplayObject):void{ var _local7:Number; var _local8:Number; var _local9:Number; addChildAt(_arg1, 0); var _local2:Number = _arg1.width; var _local3:Number = _arg1.height; var _local4:Number = calcBackgroundSize(); if (isNaN(_local4)){ _local7 = 1; _local8 = 1; } else { _local9 = (_local4 * 0.01); _local7 = ((_local9 * stageWidth) / _local2); _local8 = ((_local9 * stageHeight) / _local3); }; _arg1.scaleX = _local7; _arg1.scaleY = _local8; var _local5:Number = Math.round((0.5 * (stageWidth - (_local2 * _local7)))); var _local6:Number = Math.round((0.5 * (stageHeight - (_local3 * _local8)))); _arg1.x = _local5; _arg1.y = _local6; if (!isNaN(backgroundAlpha)){ _arg1.alpha = backgroundAlpha; }; } public function set backgroundSize(_arg1:String):void{ _backgroundSize = _arg1; } protected function showDisplayForInit(_arg1:int, _arg2:int):Boolean{ return ((((_arg1 > 300)) && ((_arg2 == 2)))); } protected function get downloadingLabel():String{ return (_downloadingLabel); } private function loader_completeHandler(_arg1:Event):void{ var _local2:DisplayObject = DisplayObject(LoaderInfo(_arg1.target).loader); initBackgroundImage(_local2); } protected function setProgress(_arg1:Number, _arg2:Number):void{ if (((((((!(isNaN(_arg1))) && (!(isNaN(_arg2))))) && ((_arg1 >= 0)))) && ((_arg2 > 0)))){ _value = Number(_arg1); _maximum = Number(_arg2); draw(); }; } public function get stageHeight():Number{ return (_stageHeight); } public function get backgroundImage():Object{ return (_backgroundImage); } public function get backgroundAlpha():Number{ if (!isNaN(_backgroundAlpha)){ return (_backgroundAlpha); }; return (1); } private function drawProgressBar(_arg1:Number):void{ var _local11:Number; var _local2:Graphics = _barSprite.graphics; _local2.clear(); var _local3:Array = [0xFFFFFF, 0xFFFFFF]; var _local4:Array = [0, 0xFF]; var _local5:Matrix = new Matrix(); var _local6:Number = ((_barRect.width * _arg1) / 100); var _local7:Number = (_local6 / 2); var _local8:Number = (_barRect.height - 4); var _local9:Number = calcX(_barRect.x); var _local10:Number = (calcY(_barRect.y) + 2); _local5.createGradientBox(_local7, _local8, 0, _local9, _local10); _local2.beginGradientFill(GradientType.LINEAR, _local3, [0.39, 0.85], _local4, _local5); _local2.drawRect(_local9, _local10, _local7, _local8); _local5.createGradientBox(_local7, _local8, 0, (_local9 + _local7), _local10); _local2.beginGradientFill(GradientType.LINEAR, _local3, [0.85, 1], _local4, _local5); _local2.drawRect((_local9 + _local7), _local10, _local7, _local8); _local7 = (_local6 / 3); _local8 = _barRect.height; _local10 = calcY(_barRect.y); _local11 = ((_local10 + _local8) - 1); _local5.createGradientBox(_local7, _local8, 0, _local9, _local10); _local2.beginGradientFill(GradientType.LINEAR, _local3, [0.05, 0.15], _local4, _local5); _local2.drawRect(_local9, _local10, _local7, 1); _local2.drawRect(_local9, _local11, _local7, 1); _local5.createGradientBox(_local7, _local8, 0, (_local9 + _local7), _local10); _local2.beginGradientFill(GradientType.LINEAR, _local3, [0.15, 0.25], _local4, _local5); _local2.drawRect((_local9 + _local7), _local10, _local7, 1); _local2.drawRect((_local9 + _local7), _local11, _local7, 1); _local5.createGradientBox(_local7, _local8, 0, (_local9 + (_local7 * 2)), _local10); _local2.beginGradientFill(GradientType.LINEAR, _local3, [0.25, 0.1], _local4, _local5); _local2.drawRect((_local9 + (_local7 * 2)), _local10, _local7, 1); _local2.drawRect((_local9 + (_local7 * 2)), _local11, _local7, 1); _local7 = (_local6 / 3); _local8 = _barRect.height; _local10 = (calcY(_barRect.y) + 1); _local11 = ((calcY(_barRect.y) + _local8) - 2); _local5.createGradientBox(_local7, _local8, 0, _local9, _local10); _local2.beginGradientFill(GradientType.LINEAR, _local3, [0.15, 0.3], _local4, _local5); _local2.drawRect(_local9, _local10, _local7, 1); _local2.drawRect(_local9, _local11, _local7, 1); _local5.createGradientBox(_local7, _local8, 0, (_local9 + _local7), _local10); _local2.beginGradientFill(GradientType.LINEAR, _local3, [0.3, 0.4], _local4, _local5); _local2.drawRect((_local9 + _local7), _local10, _local7, 1); _local2.drawRect((_local9 + _local7), _local11, _local7, 1); _local5.createGradientBox(_local7, _local8, 0, (_local9 + (_local7 * 2)), _local10); _local2.beginGradientFill(GradientType.LINEAR, _local3, [0.4, 0.25], _local4, _local5); _local2.drawRect((_local9 + (_local7 * 2)), _local10, _local7, 1); _local2.drawRect((_local9 + (_local7 * 2)), _local11, _local7, 1); } public function get backgroundColor():uint{ return (_backgroundColor); } public function set stageWidth(_arg1:Number):void{ _stageWidth = _arg1; } protected function completeHandler(_arg1:Event):void{ } protected function set label(_arg1:String):void{ if (!(_arg1 is Function)){ _label = _arg1; }; draw(); } public function set preloader(_arg1:Sprite):void{ _preloader = _arg1; _arg1.addEventListener(ProgressEvent.PROGRESS, progressHandler); _arg1.addEventListener(Event.COMPLETE, completeHandler); _arg1.addEventListener(RSLEvent.RSL_PROGRESS, rslProgressHandler); _arg1.addEventListener(RSLEvent.RSL_COMPLETE, rslCompleteHandler); _arg1.addEventListener(RSLEvent.RSL_ERROR, rslErrorHandler); _arg1.addEventListener(FlexEvent.INIT_PROGRESS, initProgressHandler); _arg1.addEventListener(FlexEvent.INIT_COMPLETE, initCompleteHandler); } protected function get label():String{ return (_label); } protected function get labelRect():Rectangle{ return (new Rectangle(14, 17, 100, 16)); } override public function set visible(_arg1:Boolean):void{ if (((!(_visible)) && (_arg1))){ show(); } else { if (((_visible) && (!(_arg1)))){ hide(); }; }; _visible = _arg1; } protected function get showLabel():Boolean{ return (_showLabel); } public static function get initializingLabel():String{ return (_initializingLabel); } public static function set initializingLabel(_arg1:String):void{ _initializingLabel = _arg1; } } }//package mx.preloaders import flash.display.*; import flash.system.*; import flash.text.*; class ErrorField extends Sprite { private const TEXT_MARGIN_PX:int = 10; private const MAX_WIDTH_INCHES:int = 6; private const MIN_WIDTH_INCHES:int = 2; private var parentContainer:DisplayObjectContainer; private function ErrorField(_arg1:DisplayObjectContainer){ this.parentContainer = _arg1; } public function show(_arg1:String):void{ if ((((_arg1 == null)) || ((_arg1.length == 0)))){ return; }; var _local2:Stage = parentContainer.stage; var _local3:TextField = new TextField(); _local3.autoSize = TextFieldAutoSize.LEFT; _local3.multiline = true; _local3.wordWrap = true; _local3.background = true; _local3.defaultTextFormat = labelFormat; _local3.text = _arg1; _local3.width = Math.max((MIN_WIDTH_INCHES * Capabilities.screenDPI), (_local2.stageWidth - (TEXT_MARGIN_PX * 2))); _local3.width = Math.min((MAX_WIDTH_INCHES * Capabilities.screenDPI), _local3.width); _local3.y = Math.max(0, ((_local2.stageHeight - TEXT_MARGIN_PX) - _local3.height)); _local3.x = ((_local2.stageWidth - _local3.width) / 2); parentContainer.addChild(this); this.addChild(_local3); } protected function get labelFormat():TextFormat{ var _local1:TextFormat = new TextFormat(); _local1.color = 0; _local1.font = "Verdana"; _local1.size = 10; return (_local1); } }
Section 286
//IPreloaderDisplay (mx.preloaders.IPreloaderDisplay) package mx.preloaders { import flash.events.*; import flash.display.*; public interface IPreloaderDisplay extends IEventDispatcher { function set backgroundAlpha(_arg1:Number):void; function get stageHeight():Number; function get stageWidth():Number; function set backgroundColor(_arg1:uint):void; function set preloader(_arg1:Sprite):void; function get backgroundImage():Object; function get backgroundSize():String; function get backgroundAlpha():Number; function set stageHeight(_arg1:Number):void; function get backgroundColor():uint; function set stageWidth(_arg1:Number):void; function set backgroundImage(_arg1:Object):void; function set backgroundSize(_arg1:String):void; function initialize():void; } }//package mx.preloaders
Section 287
//Preloader (mx.preloaders.Preloader) package mx.preloaders { import flash.events.*; import flash.display.*; import mx.core.*; import mx.events.*; import flash.utils.*; public class Preloader extends Sprite { private var app:IEventDispatcher;// = null private var showDisplay:Boolean; private var timer:Timer; private var rslDone:Boolean;// = false private var displayClass:IPreloaderDisplay;// = null private var rslListLoader:RSLListLoader; mx_internal static const VERSION:String = "3.0.0.0"; private function getByteValues():Object{ var _local1:LoaderInfo = root.loaderInfo; var _local2:int = _local1.bytesLoaded; var _local3:int = _local1.bytesTotal; var _local4:int = (rslListLoader) ? rslListLoader.getItemCount() : 0; var _local5:int; while (_local5 < _local4) { _local2 = (_local2 + rslListLoader.getItem(_local5).loaded); _local3 = (_local3 + rslListLoader.getItem(_local5).total); _local5++; }; return ({loaded:_local2, total:_local3}); } private function appProgressHandler(_arg1:Event):void{ dispatchEvent(new FlexEvent(FlexEvent.INIT_PROGRESS)); } private function dispatchAppEndEvent(_arg1:Object=null):void{ dispatchEvent(new FlexEvent(FlexEvent.INIT_COMPLETE)); if (!showDisplay){ displayClassCompleteHandler(null); }; } private function ioErrorHandler(_arg1:IOErrorEvent):void{ } private function appCreationCompleteHandler(_arg1:FlexEvent):void{ dispatchAppEndEvent(); } mx_internal function rslErrorHandler(_arg1:ErrorEvent):void{ var _local2:int = rslListLoader.getIndex(); var _local3:RSLItem = rslListLoader.getItem(_local2); var _local4:RSLEvent = new RSLEvent(RSLEvent.RSL_ERROR); _local4.bytesLoaded = 0; _local4.bytesTotal = 0; _local4.rslIndex = _local2; _local4.rslTotal = rslListLoader.getItemCount(); _local4.url = _local3.urlRequest; _local4.errorText = decodeURI(_arg1.text); dispatchEvent(_local4); } public function initialize(_arg1:Boolean, _arg2:Class, _arg3:uint, _arg4:Number, _arg5:Object, _arg6:String, _arg7:Number, _arg8:Number, _arg9:Array=null, _arg10:Array=null, _arg11:Array=null, _arg12:Array=null):void{ var _local13:int; var _local14:int; var _local15:RSLItem; var _local16:ResourceModuleRSLItem; if (((((!((_arg9 == null))) || (!((_arg10 == null))))) && (!((_arg11 == null))))){ throw (new Error("RSLs may only be specified by using libs and sizes or rslList, not both.")); }; root.loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); if (((_arg9) && ((_arg9.length > 0)))){ if (_arg11 == null){ _arg11 = []; }; _local13 = _arg9.length; _local14 = 0; while (_local14 < _local13) { _local15 = new RSLItem(_arg9[_local14]); _arg11.push(_local15); _local14++; }; }; if (((_arg12) && ((_arg12.length > 0)))){ _local13 = _arg12.length; _local14 = 0; while (_local14 < _local13) { _local16 = new ResourceModuleRSLItem(_arg12[_local14]); _arg11.push(_local16); _local14++; }; }; rslListLoader = new RSLListLoader(_arg11); this.showDisplay = _arg1; timer = new Timer(10); timer.addEventListener(TimerEvent.TIMER, timerHandler); timer.start(); if (_arg1){ displayClass = new (_arg2); displayClass.addEventListener(Event.COMPLETE, displayClassCompleteHandler); addChild(DisplayObject(displayClass)); displayClass.backgroundColor = _arg3; displayClass.backgroundAlpha = _arg4; displayClass.backgroundImage = _arg5; displayClass.backgroundSize = _arg6; displayClass.stageWidth = _arg7; displayClass.stageHeight = _arg8; displayClass.initialize(); displayClass.preloader = this; }; if (rslListLoader.getItemCount() > 0){ rslListLoader.load(mx_internal::rslProgressHandler, mx_internal::rslCompleteHandler, mx_internal::rslErrorHandler, mx_internal::rslErrorHandler, mx_internal::rslErrorHandler); } else { rslDone = true; }; } mx_internal function rslProgressHandler(_arg1:ProgressEvent):void{ var _local2:int = rslListLoader.getIndex(); var _local3:RSLItem = rslListLoader.getItem(_local2); var _local4:RSLEvent = new RSLEvent(RSLEvent.RSL_PROGRESS); _local4.bytesLoaded = _arg1.bytesLoaded; _local4.bytesTotal = _arg1.bytesTotal; _local4.rslIndex = _local2; _local4.rslTotal = rslListLoader.getItemCount(); _local4.url = _local3.urlRequest; dispatchEvent(_local4); } public function registerApplication(_arg1:IEventDispatcher):void{ _arg1.addEventListener("validatePropertiesComplete", appProgressHandler); _arg1.addEventListener("validateSizeComplete", appProgressHandler); _arg1.addEventListener("validateDisplayListComplete", appProgressHandler); _arg1.addEventListener(FlexEvent.CREATION_COMPLETE, appCreationCompleteHandler); this.app = _arg1; } mx_internal function rslCompleteHandler(_arg1:Event):void{ var _local2:int = rslListLoader.getIndex(); var _local3:RSLItem = rslListLoader.getItem(_local2); var _local4:RSLEvent = new RSLEvent(RSLEvent.RSL_COMPLETE); _local4.bytesLoaded = _local3.total; _local4.bytesTotal = _local3.total; _local4.rslIndex = _local2; _local4.rslTotal = rslListLoader.getItemCount(); _local4.url = _local3.urlRequest; dispatchEvent(_local4); rslDone = ((_local2 + 1) == _local4.rslTotal); } private function timerHandler(_arg1:TimerEvent):void{ if (!root){ return; }; var _local2:Object = getByteValues(); var _local3:int = _local2.loaded; var _local4:int = _local2.total; dispatchEvent(new ProgressEvent(ProgressEvent.PROGRESS, false, false, _local3, _local4)); if (((rslDone) && ((((((((_local3 >= _local4)) && ((_local4 > 0)))) || ((((_local4 == 0)) && ((_local3 > 0)))))) || ((((((root is MovieClip)) && ((MovieClip(root).totalFrames > 2)))) && ((MovieClip(root).framesLoaded >= 2)))))))){ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.reset(); dispatchEvent(new Event(Event.COMPLETE)); dispatchEvent(new FlexEvent(FlexEvent.INIT_PROGRESS)); }; } private function displayClassCompleteHandler(_arg1:Event):void{ if (displayClass){ displayClass.removeEventListener(Event.COMPLETE, displayClassCompleteHandler); }; if (root){ root.loaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); }; if (app){ app.removeEventListener("validatePropertiesComplete", appProgressHandler); app.removeEventListener("validateSizeComplete", appProgressHandler); app.removeEventListener("validateDisplayListComplete", appProgressHandler); app.removeEventListener(FlexEvent.CREATION_COMPLETE, appCreationCompleteHandler); app = null; }; dispatchEvent(new FlexEvent(FlexEvent.PRELOADER_DONE)); } } }//package mx.preloaders
Section 288
//IResourceBundle (mx.resources.IResourceBundle) package mx.resources { public interface IResourceBundle { function get content():Object; function get locale():String; function get bundleName():String; } }//package mx.resources
Section 289
//IResourceManager (mx.resources.IResourceManager) package mx.resources { import flash.events.*; import flash.system.*; public interface IResourceManager extends IEventDispatcher { function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher; function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean; function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class; function getLocales():Array; function removeResourceBundlesForLocale(_arg1:String):void; function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle; function get localeChain():Array; function getInt(_arg1:String, _arg2:String, _arg3:String=null):int; function update():void; function set localeChain(_arg1:Array):void; function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint; function addResourceBundle(_arg1:IResourceBundle):void; function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array; function getBundleNamesForLocale(_arg1:String):Array; function removeResourceBundle(_arg1:String, _arg2:String):void; function getObject(_arg1:String, _arg2:String, _arg3:String=null); function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String; function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void; function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void; function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle; function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number; } }//package mx.resources
Section 290
//IResourceModule (mx.resources.IResourceModule) package mx.resources { public interface IResourceModule { function get resourceBundles():Array; } }//package mx.resources
Section 291
//ResourceBundle (mx.resources.ResourceBundle) package mx.resources { import mx.core.*; import flash.system.*; import mx.utils.*; public class ResourceBundle implements IResourceBundle { mx_internal var _locale:String; private var _content:Object; mx_internal var _bundleName:String; mx_internal static const VERSION:String = "3.0.0.0"; mx_internal static var backupApplicationDomain:ApplicationDomain; mx_internal static var locale:String; public function ResourceBundle(_arg1:String=null, _arg2:String=null){ _content = {}; super(); mx_internal::_locale = _arg1; mx_internal::_bundleName = _arg2; _content = getContent(); } protected function getContent():Object{ return ({}); } public function getString(_arg1:String):String{ return (String(_getObject(_arg1))); } public function get content():Object{ return (_content); } public function getBoolean(_arg1:String, _arg2:Boolean=true):Boolean{ var _local3:String = _getObject(_arg1).toLowerCase(); if (_local3 == "false"){ return (false); }; if (_local3 == "true"){ return (true); }; return (_arg2); } public function getStringArray(_arg1:String):Array{ var _local2:Array = _getObject(_arg1).split(","); var _local3:int = _local2.length; var _local4:int; while (_local4 < _local3) { _local2[_local4] = StringUtil.trim(_local2[_local4]); _local4++; }; return (_local2); } public function getObject(_arg1:String):Object{ return (_getObject(_arg1)); } private function _getObject(_arg1:String):Object{ var _local2:Object = content[_arg1]; if (!_local2){ throw (new Error(((("Key " + _arg1) + " was not found in resource bundle ") + bundleName))); }; return (_local2); } public function get locale():String{ return (mx_internal::_locale); } public function get bundleName():String{ return (mx_internal::_bundleName); } public function getNumber(_arg1:String):Number{ return (Number(_getObject(_arg1))); } private static function getClassByName(_arg1:String, _arg2:ApplicationDomain):Class{ var _local3:Class; if (_arg2.hasDefinition(_arg1)){ _local3 = (_arg2.getDefinition(_arg1) as Class); }; return (_local3); } public static function getResourceBundle(_arg1:String, _arg2:ApplicationDomain=null):ResourceBundle{ var _local3:String; var _local4:Class; var _local5:Object; var _local6:ResourceBundle; if (!_arg2){ _arg2 = ApplicationDomain.currentDomain; }; _local3 = (((mx_internal::locale + "$") + _arg1) + "_properties"); _local4 = getClassByName(_local3, _arg2); if (!_local4){ _local3 = (_arg1 + "_properties"); _local4 = getClassByName(_local3, _arg2); }; if (!_local4){ _local3 = _arg1; _local4 = getClassByName(_local3, _arg2); }; if (((!(_local4)) && (mx_internal::backupApplicationDomain))){ _local3 = (_arg1 + "_properties"); _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain); if (!_local4){ _local3 = _arg1; _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain); }; }; if (_local4){ _local5 = new (_local4); if ((_local5 is ResourceBundle)){ _local6 = ResourceBundle(_local5); return (_local6); }; }; throw (new Error(("Could not find resource bundle " + _arg1))); } } }//package mx.resources
Section 292
//ResourceManager (mx.resources.ResourceManager) package mx.resources { import mx.core.*; public class ResourceManager { mx_internal static const VERSION:String = "3.0.0.0"; private static var implClassDependency:ResourceManagerImpl; private static var instance:IResourceManager; public static function getInstance():IResourceManager{ if (!instance){ instance = IResourceManager(Singleton.getInstance("mx.resources::IResourceManager")); }; return (instance); } } }//package mx.resources
Section 293
//ResourceManagerImpl (mx.resources.ResourceManagerImpl) package mx.resources { import flash.events.*; import mx.core.*; import flash.system.*; import mx.modules.*; import mx.events.*; import flash.utils.*; import mx.utils.*; public class ResourceManagerImpl extends EventDispatcher implements IResourceManager { private var resourceModules:Object; private var initializedForNonFrameworkApp:Boolean;// = false private var localeMap:Object; private var _localeChain:Array; mx_internal static const VERSION:String = "3.0.0.0"; private static var instance:IResourceManager; public function ResourceManagerImpl(){ localeMap = {}; resourceModules = {}; super(); } public function get localeChain():Array{ return (_localeChain); } public function set localeChain(_arg1:Array):void{ _localeChain = _arg1; update(); } public function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (null); }; var _local5:* = _local4.content[_arg2]; var _local6:Array = String(_local5).split(","); var _local7:int = _local6.length; var _local8:int; while (_local8 < _local7) { _local6[_local8] = StringUtil.trim(_local6[_local8]); _local8++; }; return (_local6); } mx_internal function installCompiledResourceBundle(_arg1:ApplicationDomain, _arg2:String, _arg3:String):void{ var _local4:String; var _local5:String = _arg3; var _local6:int = _arg3.indexOf(":"); if (_local6 != -1){ _local4 = _arg3.substring(0, _local6); _local5 = _arg3.substring((_local6 + 1)); }; if (getResourceBundle(_arg2, _arg3)){ return; }; var _local7 = (((_arg2 + "$") + _local5) + "_properties"); if (_local4 != null){ _local7 = ((_local4 + ".") + _local7); }; var _local8:Class; if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; if (!_local8){ _local7 = _arg3; if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; }; if (!_local8){ _local7 = (_arg3 + "_properties"); if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; }; if (!_local8){ throw (new Error((((("Could not find compiled resource bundle '" + _arg3) + "' for locale '") + _arg2) + "'."))); }; var _local9:ResourceBundle = ResourceBundle(new (_local8)); _local9.mx_internal::_locale = _arg2; _local9.mx_internal::_bundleName = _arg3; addResourceBundle(_local9); } public function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String{ var _local5:IResourceBundle = findBundle(_arg1, _arg2, _arg4); if (!_local5){ return (null); }; var _local6:String = String(_local5.content[_arg2]); if (_arg3){ _local6 = StringUtil.substitute(_local6, _arg3); }; return (_local6); } public function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{ var moduleInfo:IModuleInfo; var resourceEventDispatcher:ResourceEventDispatcher; var timer:Timer; var timerHandler:Function; var url = _arg1; var updateFlag = _arg2; var applicationDomain = _arg3; var securityDomain = _arg4; moduleInfo = ModuleManager.getModule(url); resourceEventDispatcher = new ResourceEventDispatcher(moduleInfo); var readyHandler:Function = function (_arg1:ModuleEvent):void{ var _local2:* = _arg1.module.factory.create(); resourceModules[_arg1.module.url].resourceModule = _local2; if (updateFlag){ update(); }; }; moduleInfo.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true); var errorHandler:Function = function (_arg1:ModuleEvent):void{ var _local3:ResourceEvent; var _local2:String = ("Unable to load resource module from " + url); if (resourceEventDispatcher.willTrigger(ResourceEvent.ERROR)){ _local3 = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local3.bytesLoaded = 0; _local3.bytesTotal = 0; _local3.errorText = _local2; resourceEventDispatcher.dispatchEvent(_local3); } else { throw (new Error(_local2)); }; }; moduleInfo.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true); resourceModules[url] = new ResourceModuleInfo(moduleInfo, readyHandler, errorHandler); timer = new Timer(0); timerHandler = function (_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.stop(); moduleInfo.load(applicationDomain, securityDomain); }; timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true); timer.start(); return (resourceEventDispatcher); } public function getLocales():Array{ var _local2:String; var _local1:Array = []; for (_local2 in localeMap) { _local1.push(_local2); }; return (_local1); } public function removeResourceBundlesForLocale(_arg1:String):void{ delete localeMap[_arg1]; } public function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle{ var _local3:Object = localeMap[_arg1]; if (!_local3){ return (null); }; return (_local3[_arg2]); } private function dumpResourceModule(_arg1):void{ var _local2:ResourceBundle; var _local3:String; for each (_local2 in _arg1.resourceBundles) { trace(_local2.locale, _local2.bundleName); for (_local3 in _local2.content) { }; }; } public function getObject(_arg1:String, _arg2:String, _arg3:String=null){ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (undefined); }; return (_local4.content[_arg2]); } public function addResourceBundle(_arg1:IResourceBundle):void{ var _local2:String = _arg1.locale; var _local3:String = _arg1.bundleName; if (!localeMap[_local2]){ localeMap[_local2] = {}; }; localeMap[_local2][_local3] = _arg1; } private function findBundle(_arg1:String, _arg2:String, _arg3:String):IResourceBundle{ supportNonFrameworkApps(); return (((_arg3)!=null) ? getResourceBundle(_arg3, _arg1) : findResourceBundleWithResource(_arg1, _arg2)); } public function getInt(_arg1:String, _arg2:String, _arg3:String=null):int{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (0); }; var _local5:* = _local4.content[_arg2]; return (int(_local5)); } private function supportNonFrameworkApps():void{ if (initializedForNonFrameworkApp){ return; }; initializedForNonFrameworkApp = true; if (getLocales().length > 0){ return; }; var _local1:ApplicationDomain = ApplicationDomain.currentDomain; if (!_local1.hasDefinition("_CompiledResourceBundleInfo")){ return; }; var _local2:Class = Class(_local1.getDefinition("_CompiledResourceBundleInfo")); var _local3:Array = _local2.compiledLocales; var _local4:Array = _local2.compiledResourceBundleNames; installCompiledResourceBundles(_local1, _local3, _local4); localeChain = _local3; } public function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (null); }; var _local5:* = _local4.content[_arg2]; return ((_local5 as Class)); } public function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (NaN); }; var _local5:* = _local4.content[_arg2]; return (Number(_local5)); } public function update():void{ dispatchEvent(new Event(Event.CHANGE)); } public function getBundleNamesForLocale(_arg1:String):Array{ var _local3:String; var _local2:Array = []; for (_local3 in localeMap[_arg1]) { _local2.push(_local3); }; return (_local2); } public function removeResourceBundle(_arg1:String, _arg2:String):void{ delete localeMap[_arg1][_arg2]; if (getBundleNamesForLocale(_arg1).length == 0){ delete localeMap[_arg1]; }; } public function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void{ var _local7:String; var _local8:int; var _local9:String; var _local4:int = (_arg2) ? _arg2.length : 0; var _local5:int = (_arg3) ? _arg3.length : 0; var _local6:int; while (_local6 < _local4) { _local7 = _arg2[_local6]; _local8 = 0; while (_local8 < _local5) { _local9 = _arg3[_local8]; mx_internal::installCompiledResourceBundle(_arg1, _local7, _local9); _local8++; }; _local6++; }; } public function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle{ var _local5:String; var _local6:Object; var _local7:ResourceBundle; if (!_localeChain){ return (null); }; var _local3:int = _localeChain.length; var _local4:int; while (_local4 < _local3) { _local5 = localeChain[_local4]; _local6 = localeMap[_local5]; if (!_local6){ } else { _local7 = _local6[_arg1]; if (!_local7){ } else { if ((_arg2 in _local7.content)){ return (_local7); }; }; }; _local4++; }; return (null); } public function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (0); }; var _local5:* = _local4.content[_arg2]; return (uint(_local5)); } public function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (false); }; var _local5:* = _local4.content[_arg2]; return ((String(_local5).toLowerCase() == "true")); } public function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void{ throw (new Error("unloadResourceModule() is not yet implemented.")); } public static function getInstance():IResourceManager{ if (!instance){ instance = new (ResourceManagerImpl); }; return (instance); } } }//package mx.resources import flash.events.*; import mx.modules.*; import mx.events.*; class ResourceModuleInfo { public var resourceModule:IResourceModule; public var errorHandler:Function; public var readyHandler:Function; public var moduleInfo:IModuleInfo; private function ResourceModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){ this.moduleInfo = _arg1; this.readyHandler = _arg2; this.errorHandler = _arg3; } } class ResourceEventDispatcher extends EventDispatcher { private function ResourceEventDispatcher(_arg1:IModuleInfo){ _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true); } private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.COMPLETE); dispatchEvent(_local2); } private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; _local2.errorText = _arg1.errorText; dispatchEvent(_local2); } }
Section 294
//IResponder (mx.rpc.IResponder) package mx.rpc { public interface IResponder { function fault(_arg1:Object):void; function result(_arg1:Object):void; } }//package mx.rpc
Section 295
//ApplicationBackground (mx.skins.halo.ApplicationBackground) package mx.skins.halo { import flash.display.*; import mx.skins.*; import mx.utils.*; public class ApplicationBackground extends ProgrammaticSkin { mx_internal static const VERSION:String = "3.0.0.0"; override public function get measuredWidth():Number{ return (8); } override public function get measuredHeight():Number{ return (8); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ var _local6:uint; super.updateDisplayList(_arg1, _arg2); var _local3:Graphics = graphics; var _local4:Array = getStyle("backgroundGradientColors"); var _local5:Array = getStyle("backgroundGradientAlphas"); if (!_local4){ _local6 = getStyle("backgroundColor"); if (isNaN(_local6)){ _local6 = 0xFFFFFF; }; _local4 = []; _local4[0] = ColorUtil.adjustBrightness(_local6, 15); _local4[1] = ColorUtil.adjustBrightness(_local6, -25); }; if (!_local5){ _local5 = [1, 1]; }; _local3.clear(); drawRoundRect(0, 0, _arg1, _arg2, 0, _local4, _local5, verticalGradientMatrix(0, 0, _arg1, _arg2)); } } }//package mx.skins.halo
Section 296
//ButtonSkin (mx.skins.halo.ButtonSkin) package mx.skins.halo { import flash.display.*; import mx.core.*; import mx.styles.*; import mx.skins.*; import mx.utils.*; public class ButtonSkin extends Border { mx_internal static const VERSION:String = "3.0.0.0"; private static var cache:Object = {}; override public function get measuredWidth():Number{ return (UIComponent.DEFAULT_MEASURED_MIN_WIDTH); } override public function get measuredHeight():Number{ return (UIComponent.DEFAULT_MEASURED_MIN_HEIGHT); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ var _local16:Number; var _local17:Array; var _local18:Array; var _local19:Array; var _local20:Array; var _local21:Array; var _local22:Array; super.updateDisplayList(_arg1, _arg2); var _local3:uint = getStyle("borderColor"); var _local4:Number = getStyle("cornerRadius"); var _local5:Array = getStyle("fillAlphas"); var _local6:Array = getStyle("fillColors"); StyleManager.getColorNames(_local6); var _local7:Array = getStyle("highlightAlphas"); var _local8:uint = getStyle("themeColor"); var _local9:Object = calcDerivedStyles(_local8, _local6[0], _local6[1]); var _local10:Number = ColorUtil.adjustBrightness2(_local3, -50); var _local11:Number = ColorUtil.adjustBrightness2(_local8, -25); var _local12:Boolean; if ((parent is IButton)){ _local12 = IButton(parent).emphasized; }; var _local13:Number = Math.max(0, _local4); var _local14:Number = Math.max(0, (_local4 - 1)); var _local15:Number = Math.max(0, (_local4 - 2)); graphics.clear(); switch (name){ case "selectedUpSkin": case "selectedOverSkin": drawRoundRect(0, 0, _arg1, _arg2, _local13, [_local8, _local11], 1, verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - 2), _local14, [_local6[1], _local6[1]], 1, verticalGradientMatrix(0, 0, (_arg1 - 2), (_arg2 - 2))); break; case "upSkin": _local17 = [_local6[0], _local6[1]]; _local18 = [_local5[0], _local5[1]]; if (_local12){ drawRoundRect(0, 0, _arg1, _arg2, _local13, [_local8, _local11], 1, verticalGradientMatrix(0, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:2, y:2, w:(_arg1 - 4), h:(_arg2 - 4), r:(_local4 - 2)}); drawRoundRect(2, 2, (_arg1 - 4), (_arg2 - 4), _local15, _local17, _local18, verticalGradientMatrix(2, 2, (_arg1 - 2), (_arg2 - 2))); drawRoundRect(2, 2, (_arg1 - 4), ((_arg2 - 4) / 2), {tl:_local15, tr:_local15, bl:0, br:0}, [0xFFFFFF, 0xFFFFFF], _local7, verticalGradientMatrix(1, 1, (_arg1 - 2), ((_arg2 - 2) / 2))); } else { drawRoundRect(0, 0, _arg1, _arg2, _local13, [_local3, _local10], 1, verticalGradientMatrix(0, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:1, y:1, w:(_arg1 - 2), h:(_arg2 - 2), r:(_local4 - 1)}); drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - 2), _local14, _local17, _local18, verticalGradientMatrix(1, 1, (_arg1 - 2), (_arg2 - 2))); drawRoundRect(1, 1, (_arg1 - 2), ((_arg2 - 2) / 2), {tl:_local14, tr:_local14, bl:0, br:0}, [0xFFFFFF, 0xFFFFFF], _local7, verticalGradientMatrix(1, 1, (_arg1 - 2), ((_arg2 - 2) / 2))); }; break; case "overSkin": if (_local6.length > 2){ _local19 = [_local6[2], _local6[3]]; } else { _local19 = [_local6[0], _local6[1]]; }; if (_local5.length > 2){ _local20 = [_local5[2], _local5[3]]; } else { _local20 = [_local5[0], _local5[1]]; }; drawRoundRect(0, 0, _arg1, _arg2, _local13, [_local8, _local11], 1, verticalGradientMatrix(0, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:1, y:1, w:(_arg1 - 2), h:(_arg2 - 2), r:(_local4 - 1)}); drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - 2), _local14, _local19, _local20, verticalGradientMatrix(1, 1, (_arg1 - 2), (_arg2 - 2))); drawRoundRect(1, 1, (_arg1 - 2), ((_arg2 - 2) / 2), {tl:_local14, tr:_local14, bl:0, br:0}, [0xFFFFFF, 0xFFFFFF], _local7, verticalGradientMatrix(1, 1, (_arg1 - 2), ((_arg2 - 2) / 2))); break; case "downSkin": case "selectedDownSkin": drawRoundRect(0, 0, _arg1, _arg2, _local13, [_local8, _local11], 1, verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - 2), _local14, [_local9.fillColorPress1, _local9.fillColorPress2], 1, verticalGradientMatrix(1, 1, (_arg1 - 2), (_arg2 - 2))); drawRoundRect(2, 2, (_arg1 - 4), ((_arg2 - 4) / 2), {tl:_local15, tr:_local15, bl:0, br:0}, [0xFFFFFF, 0xFFFFFF], _local7, verticalGradientMatrix(1, 1, (_arg1 - 2), ((_arg2 - 2) / 2))); break; case "disabledSkin": case "selectedDisabledSkin": _local21 = [_local6[0], _local6[1]]; _local22 = [Math.max(0, (_local5[0] - 0.15)), Math.max(0, (_local5[1] - 0.15))]; drawRoundRect(0, 0, _arg1, _arg2, _local13, [_local3, _local10], 0.5, verticalGradientMatrix(0, 0, _arg1, _arg2), GradientType.LINEAR, null, {x:1, y:1, w:(_arg1 - 2), h:(_arg2 - 2), r:(_local4 - 1)}); drawRoundRect(1, 1, (_arg1 - 2), (_arg2 - 2), _local14, _local21, _local22, verticalGradientMatrix(1, 1, (_arg1 - 2), (_arg2 - 2))); break; }; } private static function calcDerivedStyles(_arg1:uint, _arg2:uint, _arg3:uint):Object{ var _local5:Object; var _local4:String = HaloColors.getCacheKey(_arg1, _arg2, _arg3); if (!cache[_local4]){ _local5 = (cache[_local4] = {}); HaloColors.addHaloColors(_local5, _arg1, _arg2, _arg3); }; return (cache[_local4]); } } }//package mx.skins.halo
Section 297
//HaloBorder (mx.skins.halo.HaloBorder) package mx.skins.halo { import flash.display.*; import mx.core.*; import mx.styles.*; import mx.graphics.*; import mx.skins.*; import mx.utils.*; public class HaloBorder extends RectangularBorder { mx_internal var radiusObj:Object; mx_internal var backgroundHole:Object; mx_internal var radius:Number; mx_internal var bRoundedCorners:Boolean; mx_internal var backgroundColor:Object; private var dropShadow:RectangularDropShadow; protected var _borderMetrics:EdgeMetrics; mx_internal var backgroundAlphaName:String; mx_internal static const VERSION:String = "3.0.0.0"; private static var BORDER_WIDTHS:Object = {none:0, solid:1, inset:2, outset:2, alert:3, dropdown:2, menuBorder:1, comboNonEdit:2}; public function HaloBorder(){ BORDER_WIDTHS["default"] = 3; } override public function styleChanged(_arg1:String):void{ if ((((((((((_arg1 == null)) || ((_arg1 == "styleName")))) || ((_arg1 == "borderStyle")))) || ((_arg1 == "borderThickness")))) || ((_arg1 == "borderSides")))){ _borderMetrics = null; }; invalidateDisplayList(); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ if (((isNaN(_arg1)) || (isNaN(_arg2)))){ return; }; super.updateDisplayList(_arg1, _arg2); backgroundColor = getBackgroundColor(); bRoundedCorners = false; backgroundAlphaName = "backgroundAlpha"; backgroundHole = null; radius = 0; radiusObj = null; drawBorder(_arg1, _arg2); drawBackground(_arg1, _arg2); } mx_internal function drawBorder(_arg1:Number, _arg2:Number):void{ var _local5:Number; var _local6:uint; var _local7:uint; var _local8:String; var _local9:Number; var _local10:uint; var _local11:Boolean; var _local12:uint; var _local13:Array; var _local14:Array; var _local15:uint; var _local16:uint; var _local17:uint; var _local18:uint; var _local19:Boolean; var _local20:Object; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Object; var _local27:Number; var _local28:Number; var _local29:IContainer; var _local30:EdgeMetrics; var _local31:Boolean; var _local32:Number; var _local33:Array; var _local34:uint; var _local35:Boolean; var _local36:Number; var _local3:String = getStyle("borderStyle"); var _local4:Array = getStyle("highlightAlphas"); var _local21:Boolean; var _local26:Graphics = graphics; _local26.clear(); if (_local3){ switch (_local3){ case "none": break; case "inset": _local7 = getStyle("borderColor"); _local22 = ColorUtil.adjustBrightness2(_local7, -40); _local23 = ColorUtil.adjustBrightness2(_local7, 25); _local24 = ColorUtil.adjustBrightness2(_local7, 40); _local25 = backgroundColor; if ((((_local25 === null)) || ((_local25 === "")))){ _local25 = _local7; }; draw3dBorder(_local23, _local22, _local24, Number(_local25), Number(_local25), Number(_local25)); break; case "outset": _local7 = getStyle("borderColor"); _local22 = ColorUtil.adjustBrightness2(_local7, -40); _local23 = ColorUtil.adjustBrightness2(_local7, -25); _local24 = ColorUtil.adjustBrightness2(_local7, 40); _local25 = backgroundColor; if ((((_local25 === null)) || ((_local25 === "")))){ _local25 = _local7; }; draw3dBorder(_local23, _local24, _local22, Number(_local25), Number(_local25), Number(_local25)); break; case "alert": case "default": if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ _local27 = getStyle("backgroundAlpha"); _local5 = getStyle("borderAlpha"); backgroundAlphaName = "borderAlpha"; radius = getStyle("cornerRadius"); bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true"); _local28 = (bRoundedCorners) ? radius : 0; drawDropShadow(0, 0, _arg1, _arg2, radius, radius, _local28, _local28); if (!bRoundedCorners){ radiusObj = {}; }; _local29 = (parent as IContainer); if (_local29){ _local30 = _local29.viewMetrics; backgroundHole = {x:_local30.left, y:_local30.top, w:Math.max(0, ((_arg1 - _local30.left) - _local30.right)), h:Math.max(0, ((_arg2 - _local30.top) - _local30.bottom)), r:0}; if ((((backgroundHole.w > 0)) && ((backgroundHole.h > 0)))){ if (_local27 != _local5){ drawDropShadow(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h, 0, 0, 0, 0); }; _local26.beginFill(Number(backgroundColor), _local27); _local26.drawRect(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h); _local26.endFill(); }; }; backgroundColor = getStyle("borderColor"); }; break; case "dropdown": _local12 = getStyle("dropdownBorderColor"); drawDropShadow(0, 0, _arg1, _arg2, 4, 0, 0, 4); drawRoundRect(0, 0, _arg1, _arg2, {tl:4, tr:0, br:0, bl:4}, 5068126, 1); drawRoundRect(0, 0, _arg1, _arg2, {tl:4, tr:0, br:0, bl:4}, [0xFFFFFF, 0xFFFFFF], [0.7, 0], verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {tl:3, tr:0, br:0, bl:3}, 0xFFFFFF, 1); drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {tl:3, tr:0, br:0, bl:3}, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3))); if (!isNaN(_local12)){ drawRoundRect(0, 0, (_arg1 + 1), _arg2, {tl:4, tr:0, br:0, bl:4}, _local12, 0.5); drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {tl:3, tr:0, br:0, bl:3}, 0xFFFFFF, 1); drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {tl:3, tr:0, br:0, bl:3}, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3))); }; backgroundColor = null; break; case "menuBorder": _local7 = getStyle("borderColor"); drawRoundRect(0, 0, _arg1, _arg2, 0, _local7, 1); drawDropShadow(1, 1, (_arg1 - 2), (_arg2 - 2), 0, 0, 0, 0); break; case "comboNonEdit": break; case "controlBar": if ((((_arg1 == 0)) || ((_arg2 == 0)))){ backgroundColor = null; break; }; _local14 = getStyle("footerColors"); _local31 = !((_local14 == null)); _local32 = getStyle("borderAlpha"); if (_local31){ _local26.lineStyle(0, ((_local14.length > 0)) ? _local14[1] : _local14[0], _local32); _local26.moveTo(0, 0); _local26.lineTo(_arg1, 0); _local26.lineStyle(0, 0, 0); if (((((parent) && (parent.parent))) && ((parent.parent is IStyleClient)))){ radius = IStyleClient(parent.parent).getStyle("cornerRadius"); _local32 = IStyleClient(parent.parent).getStyle("borderAlpha"); }; if (isNaN(radius)){ radius = 0; }; if (IStyleClient(parent.parent).getStyle("roundedBottomCorners").toString().toLowerCase() != "true"){ radius = 0; }; drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:0, tr:0, bl:radius, br:radius}, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2)); if ((((_local14.length > 1)) && (!((_local14[0] == _local14[1]))))){ drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:0, tr:0, bl:radius, br:radius}, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(1, 2, (_arg1 - 2), (_arg2 - 3), {tl:0, tr:0, bl:(radius - 1), br:(radius - 1)}, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2)); }; }; backgroundColor = null; break; case "applicationControlBar": _local13 = getStyle("fillColors"); _local5 = getStyle("backgroundAlpha"); _local4 = getStyle("highlightAlphas"); _local33 = getStyle("fillAlphas"); _local11 = getStyle("docked"); _local34 = uint(backgroundColor); radius = getStyle("cornerRadius"); if (!radius){ radius = 0; }; drawDropShadow(0, 1, _arg1, (_arg2 - 1), radius, radius, radius, radius); if (((!((backgroundColor === null))) && (StyleManager.isValidStyleValue(backgroundColor)))){ drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local34, _local5, verticalGradientMatrix(0, 0, _arg1, _arg2)); }; drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local13, _local33, verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(0, 1, _arg1, ((_arg2 / 2) - 1), {tl:radius, tr:radius, bl:0, br:0}, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, ((_arg2 / 2) - 1))); drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:radius, tr:radius, bl:0, br:0}, 0xFFFFFF, 0.3, null, GradientType.LINEAR, null, {x:0, y:2, w:_arg1, h:(_arg2 - 2), r:{tl:radius, tr:radius, bl:0, br:0}}); backgroundColor = null; break; default: _local7 = getStyle("borderColor"); _local9 = getStyle("borderThickness"); _local8 = getStyle("borderSides"); _local35 = true; radius = getStyle("cornerRadius"); bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true"); _local36 = Math.max((radius - _local9), 0); _local20 = {x:_local9, y:_local9, w:(_arg1 - (_local9 * 2)), h:(_arg2 - (_local9 * 2)), r:_local36}; if (!bRoundedCorners){ radiusObj = {tl:radius, tr:radius, bl:0, br:0}; _local20.r = {tl:_local36, tr:_local36, bl:0, br:0}; }; if (_local8 != "left top right bottom"){ _local20.r = {tl:_local36, tr:_local36, bl:(bRoundedCorners) ? _local36 : 0, br:(bRoundedCorners) ? _local36 : 0}; radiusObj = {tl:radius, tr:radius, bl:(bRoundedCorners) ? radius : 0, br:(bRoundedCorners) ? radius : 0}; _local8 = _local8.toLowerCase(); if (_local8.indexOf("left") == -1){ _local20.x = 0; _local20.w = (_local20.w + _local9); _local20.r.tl = 0; _local20.r.bl = 0; radiusObj.tl = 0; radiusObj.bl = 0; _local35 = false; }; if (_local8.indexOf("top") == -1){ _local20.y = 0; _local20.h = (_local20.h + _local9); _local20.r.tl = 0; _local20.r.tr = 0; radiusObj.tl = 0; radiusObj.tr = 0; _local35 = false; }; if (_local8.indexOf("right") == -1){ _local20.w = (_local20.w + _local9); _local20.r.tr = 0; _local20.r.br = 0; radiusObj.tr = 0; radiusObj.br = 0; _local35 = false; }; if (_local8.indexOf("bottom") == -1){ _local20.h = (_local20.h + _local9); _local20.r.bl = 0; _local20.r.br = 0; radiusObj.bl = 0; radiusObj.br = 0; _local35 = false; }; }; if ((((radius == 0)) && (_local35))){ drawDropShadow(0, 0, _arg1, _arg2, 0, 0, 0, 0); _local26.beginFill(_local7); _local26.drawRect(0, 0, _arg1, _arg2); _local26.drawRect(_local9, _local9, (_arg1 - (2 * _local9)), (_arg2 - (2 * _local9))); _local26.endFill(); } else { if (radiusObj){ drawDropShadow(0, 0, _arg1, _arg2, radiusObj.tl, radiusObj.tr, radiusObj.br, radiusObj.bl); drawRoundRect(0, 0, _arg1, _arg2, radiusObj, _local7, 1, null, null, null, _local20); radiusObj.tl = Math.max((radius - _local9), 0); radiusObj.tr = Math.max((radius - _local9), 0); radiusObj.bl = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0; radiusObj.br = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0; } else { drawDropShadow(0, 0, _arg1, _arg2, radius, radius, radius, radius); drawRoundRect(0, 0, _arg1, _arg2, radius, _local7, 1, null, null, null, _local20); radius = Math.max((getStyle("cornerRadius") - _local9), 0); }; }; }; }; } mx_internal function drawBackground(_arg1:Number, _arg2:Number):void{ var _local4:Number; var _local5:Number; var _local6:EdgeMetrics; var _local7:Graphics; var _local8:Number; var _local9:Number; var _local10:Array; var _local11:Number; if (((((((!((backgroundColor === null))) && (!((backgroundColor === ""))))) || (getStyle("mouseShield")))) || (getStyle("mouseShieldChildren")))){ _local4 = Number(backgroundColor); _local5 = 1; _local6 = getBackgroundColorMetrics(); _local7 = graphics; if (((((isNaN(_local4)) || ((backgroundColor === "")))) || ((backgroundColor === null)))){ _local5 = 0; _local4 = 0xFFFFFF; } else { _local5 = getStyle(backgroundAlphaName); }; if (((!((radius == 0))) || (backgroundHole))){ _local8 = _local6.bottom; if (radiusObj){ _local9 = (bRoundedCorners) ? radius : 0; radiusObj = {tl:radius, tr:radius, bl:_local9, br:_local9}; drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radiusObj, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole); } else { drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radius, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole); }; } else { _local7.beginFill(_local4, _local5); _local7.drawRect(_local6.left, _local6.top, ((_arg1 - _local6.right) - _local6.left), ((_arg2 - _local6.bottom) - _local6.top)); _local7.endFill(); }; }; var _local3:String = getStyle("borderStyle"); if ((((((FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)) && ((((_local3 == "alert")) || ((_local3 == "default")))))) && ((getStyle("headerColors") == null)))){ _local10 = getStyle("highlightAlphas"); _local11 = (_local10) ? _local10[0] : 0.3; drawRoundRect(0, 0, _arg1, _arg2, {tl:radius, tr:radius, bl:0, br:0}, 0xFFFFFF, _local11, null, GradientType.LINEAR, null, {x:0, y:1, w:_arg1, h:(_arg2 - 1), r:{tl:radius, tr:radius, bl:0, br:0}}); }; } mx_internal function drawDropShadow(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):void{ var _local11:Number; var _local12:Boolean; if ((((((((getStyle("dropShadowEnabled") == false)) || ((getStyle("dropShadowEnabled") == "false")))) || ((_arg3 == 0)))) || ((_arg4 == 0)))){ return; }; var _local9:Number = getStyle("shadowDistance"); var _local10:String = getStyle("shadowDirection"); if (getStyle("borderStyle") == "applicationControlBar"){ _local12 = getStyle("docked"); _local11 = (_local12) ? 90 : getDropShadowAngle(_local9, _local10); _local9 = Math.abs(_local9); } else { _local11 = getDropShadowAngle(_local9, _local10); _local9 = (Math.abs(_local9) + 2); }; if (!dropShadow){ dropShadow = new RectangularDropShadow(); }; dropShadow.distance = _local9; dropShadow.angle = _local11; dropShadow.color = getStyle("dropShadowColor"); dropShadow.alpha = 0.4; dropShadow.tlRadius = _arg5; dropShadow.trRadius = _arg6; dropShadow.blRadius = _arg8; dropShadow.brRadius = _arg7; dropShadow.drawShadow(graphics, _arg1, _arg2, _arg3, _arg4); } mx_internal function getBackgroundColor():Object{ var _local2:Object; var _local1:IUIComponent = (parent as IUIComponent); if (((_local1) && (!(_local1.enabled)))){ _local2 = getStyle("backgroundDisabledColor"); if (((!((_local2 === null))) && (StyleManager.isValidStyleValue(_local2)))){ return (_local2); }; }; return (getStyle("backgroundColor")); } mx_internal function draw3dBorder(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{ var _local7:Number = width; var _local8:Number = height; drawDropShadow(0, 0, width, height, 0, 0, 0, 0); var _local9:Graphics = graphics; _local9.beginFill(_arg1); _local9.drawRect(0, 0, _local7, _local8); _local9.drawRect(1, 0, (_local7 - 2), _local8); _local9.endFill(); _local9.beginFill(_arg2); _local9.drawRect(1, 0, (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg3); _local9.drawRect(1, (_local8 - 1), (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg4); _local9.drawRect(1, 1, (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg5); _local9.drawRect(1, (_local8 - 2), (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg6); _local9.drawRect(1, 2, (_local7 - 2), (_local8 - 4)); _local9.drawRect(2, 2, (_local7 - 4), (_local8 - 4)); _local9.endFill(); } mx_internal function getBackgroundColorMetrics():EdgeMetrics{ return (borderMetrics); } mx_internal function getDropShadowAngle(_arg1:Number, _arg2:String):Number{ if (_arg2 == "left"){ return (((_arg1 >= 0)) ? 135 : 225); //unresolved jump }; if (_arg2 == "right"){ return (((_arg1 >= 0)) ? 45 : 315); //unresolved jump }; return (((_arg1 >= 0)) ? 90 : 270); } override public function get borderMetrics():EdgeMetrics{ var _local1:Number; var _local3:String; if (_borderMetrics){ return (_borderMetrics); }; var _local2:String = getStyle("borderStyle"); if ((((_local2 == "default")) || ((_local2 == "alert")))){ if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ _borderMetrics = new EdgeMetrics(0, 0, 0, 0); } else { return (EdgeMetrics.EMPTY); }; } else { if ((((_local2 == "controlBar")) || ((_local2 == "applicationControlBar")))){ _borderMetrics = new EdgeMetrics(1, 1, 1, 1); } else { if (_local2 == "solid"){ _local1 = getStyle("borderThickness"); if (isNaN(_local1)){ _local1 = 0; }; _borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1); _local3 = getStyle("borderSides"); if (_local3 != "left top right bottom"){ if (_local3.indexOf("left") == -1){ _borderMetrics.left = 0; }; if (_local3.indexOf("top") == -1){ _borderMetrics.top = 0; }; if (_local3.indexOf("right") == -1){ _borderMetrics.right = 0; }; if (_local3.indexOf("bottom") == -1){ _borderMetrics.bottom = 0; }; }; } else { _local1 = BORDER_WIDTHS[_local2]; if (isNaN(_local1)){ _local1 = 0; }; _borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1); }; }; }; return (_borderMetrics); } } }//package mx.skins.halo
Section 298
//HaloColors (mx.skins.halo.HaloColors) package mx.skins.halo { import mx.utils.*; public class HaloColors { mx_internal static const VERSION:String = "3.0.0.0"; private static var cache:Object = {}; public static function getCacheKey(... _args):String{ return (_args.join(",")); } public static function addHaloColors(_arg1:Object, _arg2:uint, _arg3:uint, _arg4:uint):void{ var _local5:String = getCacheKey(_arg2, _arg3, _arg4); var _local6:Object = cache[_local5]; if (!_local6){ _local6 = (cache[_local5] = {}); _local6.themeColLgt = ColorUtil.adjustBrightness(_arg2, 100); _local6.themeColDrk1 = ColorUtil.adjustBrightness(_arg2, -75); _local6.themeColDrk2 = ColorUtil.adjustBrightness(_arg2, -25); _local6.fillColorBright1 = ColorUtil.adjustBrightness2(_arg3, 15); _local6.fillColorBright2 = ColorUtil.adjustBrightness2(_arg4, 15); _local6.fillColorPress1 = ColorUtil.adjustBrightness2(_arg2, 85); _local6.fillColorPress2 = ColorUtil.adjustBrightness2(_arg2, 60); _local6.bevelHighlight1 = ColorUtil.adjustBrightness2(_arg3, 40); _local6.bevelHighlight2 = ColorUtil.adjustBrightness2(_arg4, 40); }; _arg1.themeColLgt = _local6.themeColLgt; _arg1.themeColDrk1 = _local6.themeColDrk1; _arg1.themeColDrk2 = _local6.themeColDrk2; _arg1.fillColorBright1 = _local6.fillColorBright1; _arg1.fillColorBright2 = _local6.fillColorBright2; _arg1.fillColorPress1 = _local6.fillColorPress1; _arg1.fillColorPress2 = _local6.fillColorPress2; _arg1.bevelHighlight1 = _local6.bevelHighlight1; _arg1.bevelHighlight2 = _local6.bevelHighlight2; } } }//package mx.skins.halo
Section 299
//HaloFocusRect (mx.skins.halo.HaloFocusRect) package mx.skins.halo { import flash.display.*; import mx.styles.*; import mx.skins.*; import mx.utils.*; public class HaloFocusRect extends ProgrammaticSkin implements IStyleClient { private var _focusColor:Number; mx_internal static const VERSION:String = "3.0.0.0"; public function get inheritingStyles():Object{ return (styleName.inheritingStyles); } public function set inheritingStyles(_arg1:Object):void{ } public function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void{ } public function registerEffects(_arg1:Array):void{ } public function regenerateStyleCache(_arg1:Boolean):void{ } public function get styleDeclaration():CSSStyleDeclaration{ return (CSSStyleDeclaration(styleName)); } public function getClassStyleDeclarations():Array{ return ([]); } public function get className():String{ return ("HaloFocusRect"); } public function clearStyle(_arg1:String):void{ if (_arg1 == "focusColor"){ _focusColor = NaN; }; } public function setStyle(_arg1:String, _arg2):void{ if (_arg1 == "focusColor"){ _focusColor = _arg2; }; } public function set nonInheritingStyles(_arg1:Object):void{ } public function get nonInheritingStyles():Object{ return (styleName.nonInheritingStyles); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; super.updateDisplayList(_arg1, _arg2); var _local3:String = getStyle("focusBlendMode"); var _local4:Number = getStyle("focusAlpha"); var _local5:Number = getStyle("focusColor"); var _local6:Number = getStyle("cornerRadius"); var _local7:Number = getStyle("focusThickness"); var _local8:String = getStyle("focusRoundedCorners"); var _local9:Number = getStyle("themeColor"); var _local10:Number = _local5; if (isNaN(_local10)){ _local10 = _local9; }; var _local11:Graphics = graphics; _local11.clear(); blendMode = _local3; if (((!((_local8 == "tl tr bl br"))) && ((_local6 > 0)))){ _local12 = 0; _local13 = 0; _local14 = 0; _local15 = 0; _local16 = (_local6 + _local7); if (_local8.indexOf("tl") >= 0){ _local12 = _local16; }; if (_local8.indexOf("tr") >= 0){ _local14 = _local16; }; if (_local8.indexOf("bl") >= 0){ _local13 = _local16; }; if (_local8.indexOf("br") >= 0){ _local15 = _local16; }; _local11.beginFill(_local10, _local4); GraphicsUtil.drawRoundRectComplex(_local11, 0, 0, _arg1, _arg2, _local12, _local14, _local13, _local15); _local12 = (_local12) ? _local6 : 0; _local14 = (_local14) ? _local6 : 0; _local13 = (_local13) ? _local6 : 0; _local15 = (_local15) ? _local6 : 0; GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15); _local11.endFill(); _local16 = (_local6 + (_local7 / 2)); _local12 = (_local12) ? _local16 : 0; _local14 = (_local14) ? _local16 : 0; _local13 = (_local13) ? _local16 : 0; _local15 = (_local15) ? _local16 : 0; _local11.beginFill(_local10, _local4); GraphicsUtil.drawRoundRectComplex(_local11, (_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local12, _local14, _local13, _local15); _local12 = (_local12) ? _local6 : 0; _local14 = (_local14) ? _local6 : 0; _local13 = (_local13) ? _local6 : 0; _local15 = (_local15) ? _local6 : 0; GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15); _local11.endFill(); } else { _local11.beginFill(_local10, _local4); _local17 = (((_local6 > 0)) ? (_local6 + _local7) : 0 * 2); _local11.drawRoundRect(0, 0, _arg1, _arg2, _local17, _local17); _local17 = (_local6 * 2); _local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17); _local11.endFill(); _local11.beginFill(_local10, _local4); _local17 = (((_local6 > 0)) ? (_local6 + (_local7 / 2)) : 0 * 2); _local11.drawRoundRect((_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local17, _local17); _local17 = (_local6 * 2); _local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17); _local11.endFill(); }; } override public function getStyle(_arg1:String){ return (((_arg1 == "focusColor")) ? _focusColor : super.getStyle(_arg1)); } public function set styleDeclaration(_arg1:CSSStyleDeclaration):void{ } } }//package mx.skins.halo
Section 300
//Border (mx.skins.Border) package mx.skins { import mx.core.*; public class Border extends ProgrammaticSkin implements IBorder { mx_internal static const VERSION:String = "3.0.0.0"; public function get borderMetrics():EdgeMetrics{ return (EdgeMetrics.EMPTY); } } }//package mx.skins
Section 301
//ProgrammaticSkin (mx.skins.ProgrammaticSkin) package mx.skins { import flash.display.*; import mx.core.*; import mx.styles.*; import flash.geom.*; import mx.managers.*; import mx.utils.*; public class ProgrammaticSkin extends FlexShape implements IFlexDisplayObject, IInvalidating, ILayoutManagerClient, ISimpleStyleClient, IProgrammaticSkin { private var _initialized:Boolean;// = false private var _height:Number; private var invalidateDisplayListFlag:Boolean;// = false private var _styleName:IStyleClient; private var _nestLevel:int;// = 0 private var _processedDescriptors:Boolean;// = false private var _updateCompletePendingFlag:Boolean;// = true private var _width:Number; mx_internal static const VERSION:String = "3.0.0.0"; private static var tempMatrix:Matrix = new Matrix(); public function ProgrammaticSkin(){ _width = measuredWidth; _height = measuredHeight; } public function getStyle(_arg1:String){ return (_styleName.getStyle(_arg1)); } protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ } public function get nestLevel():int{ return (_nestLevel); } public function set nestLevel(_arg1:int):void{ _nestLevel = _arg1; invalidateDisplayList(); } override public function get height():Number{ return (_height); } public function get updateCompletePendingFlag():Boolean{ return (_updateCompletePendingFlag); } protected function verticalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{ return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 90)); } public function validateSize(_arg1:Boolean=false):void{ } public function invalidateDisplayList():void{ if (((!(invalidateDisplayListFlag)) && ((nestLevel > 0)))){ invalidateDisplayListFlag = true; UIComponentGlobals.layoutManager.invalidateDisplayList(this); }; } public function set updateCompletePendingFlag(_arg1:Boolean):void{ _updateCompletePendingFlag = _arg1; } protected function horizontalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{ return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 0)); } override public function set height(_arg1:Number):void{ _height = _arg1; invalidateDisplayList(); } public function set processedDescriptors(_arg1:Boolean):void{ _processedDescriptors = _arg1; } public function validateDisplayList():void{ invalidateDisplayListFlag = false; updateDisplayList(width, height); } public function get measuredWidth():Number{ return (0); } override public function set width(_arg1:Number):void{ _width = _arg1; invalidateDisplayList(); } public function get measuredHeight():Number{ return (0); } public function set initialized(_arg1:Boolean):void{ _initialized = _arg1; } protected function drawRoundRect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null, _arg6:Object=null, _arg7:Object=null, _arg8:Matrix=null, _arg9:String="linear", _arg10:Array=null, _arg11:Object=null):void{ var _local13:Number; var _local14:Array; var _local15:Object; var _local12:Graphics = graphics; if ((((_arg3 == 0)) || ((_arg4 == 0)))){ return; }; if (_arg6 !== null){ if ((_arg6 is uint)){ _local12.beginFill(uint(_arg6), Number(_arg7)); } else { if ((_arg6 is Array)){ _local14 = ((_arg7 is Array)) ? (_arg7 as Array) : [_arg7, _arg7]; if (!_arg10){ _arg10 = [0, 0xFF]; }; _local12.beginGradientFill(_arg9, (_arg6 as Array), _local14, _arg10, _arg8); }; }; }; if (!_arg5){ _local12.drawRect(_arg1, _arg2, _arg3, _arg4); } else { if ((_arg5 is Number)){ _local13 = (Number(_arg5) * 2); _local12.drawRoundRect(_arg1, _arg2, _arg3, _arg4, _local13, _local13); } else { GraphicsUtil.drawRoundRectComplex(_local12, _arg1, _arg2, _arg3, _arg4, _arg5.tl, _arg5.tr, _arg5.bl, _arg5.br); }; }; if (_arg11){ _local15 = _arg11.r; if ((_local15 is Number)){ _local13 = (Number(_local15) * 2); _local12.drawRoundRect(_arg11.x, _arg11.y, _arg11.w, _arg11.h, _local13, _local13); } else { GraphicsUtil.drawRoundRectComplex(_local12, _arg11.x, _arg11.y, _arg11.w, _arg11.h, _local15.tl, _local15.tr, _local15.bl, _local15.br); }; }; if (_arg6 !== null){ _local12.endFill(); }; } public function get processedDescriptors():Boolean{ return (_processedDescriptors); } public function set styleName(_arg1:Object):void{ if (_styleName != _arg1){ _styleName = (_arg1 as IStyleClient); invalidateDisplayList(); }; } public function setActualSize(_arg1:Number, _arg2:Number):void{ var _local3:Boolean; if (_width != _arg1){ _width = _arg1; _local3 = true; }; if (_height != _arg2){ _height = _arg2; _local3 = true; }; if (_local3){ invalidateDisplayList(); }; } public function styleChanged(_arg1:String):void{ invalidateDisplayList(); } override public function get width():Number{ return (_width); } public function invalidateProperties():void{ } public function get initialized():Boolean{ return (_initialized); } protected function rotatedGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Matrix{ tempMatrix.createGradientBox(_arg3, _arg4, ((_arg5 * Math.PI) / 180), _arg1, _arg2); return (tempMatrix); } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get styleName():Object{ return (_styleName); } public function validateNow():void{ if (invalidateDisplayListFlag){ validateDisplayList(); }; } public function invalidateSize():void{ } public function validateProperties():void{ } } }//package mx.skins
Section 302
//RectangularBorder (mx.skins.RectangularBorder) package mx.skins { import flash.events.*; import flash.display.*; import mx.core.*; import flash.net.*; import mx.styles.*; import flash.system.*; import flash.geom.*; import mx.resources.*; import flash.utils.*; public class RectangularBorder extends Border implements IRectangularBorder { private var backgroundImage:DisplayObject; private var backgroundImageHeight:Number; private var _backgroundImageBounds:Rectangle; private var backgroundImageStyle:Object; private var backgroundImageWidth:Number; private var resourceManager:IResourceManager; mx_internal static const VERSION:String = "3.0.0.0"; public function RectangularBorder(){ resourceManager = ResourceManager.getInstance(); super(); addEventListener(Event.REMOVED, removedHandler); } public function layoutBackgroundImage():void{ var _local4:Number; var _local5:Number; var _local7:Number; var _local8:Number; var _local14:Number; var _local15:Graphics; var _local1:DisplayObject = parent; var _local2:EdgeMetrics = ((_local1 is IContainer)) ? IContainer(_local1).viewMetrics : borderMetrics; var _local3 = !((getStyle("backgroundAttachment") == "fixed")); if (_backgroundImageBounds){ _local4 = _backgroundImageBounds.width; _local5 = _backgroundImageBounds.height; } else { _local4 = ((width - _local2.left) - _local2.right); _local5 = ((height - _local2.top) - _local2.bottom); }; var _local6:Number = getBackgroundSize(); if (isNaN(_local6)){ _local7 = 1; _local8 = 1; } else { _local14 = (_local6 * 0.01); _local7 = ((_local14 * _local4) / backgroundImageWidth); _local8 = ((_local14 * _local5) / backgroundImageHeight); }; backgroundImage.scaleX = _local7; backgroundImage.scaleY = _local8; var _local9:Number = Math.round((0.5 * (_local4 - (backgroundImageWidth * _local7)))); var _local10:Number = Math.round((0.5 * (_local5 - (backgroundImageHeight * _local8)))); backgroundImage.x = _local2.left; backgroundImage.y = _local2.top; var _local11:Shape = Shape(backgroundImage.mask); _local11.x = _local2.left; _local11.y = _local2.top; if (((_local3) && ((_local1 is IContainer)))){ _local9 = (_local9 - IContainer(_local1).horizontalScrollPosition); _local10 = (_local10 - IContainer(_local1).verticalScrollPosition); }; backgroundImage.alpha = getStyle("backgroundAlpha"); backgroundImage.x = (backgroundImage.x + _local9); backgroundImage.y = (backgroundImage.y + _local10); var _local12:Number = ((width - _local2.left) - _local2.right); var _local13:Number = ((height - _local2.top) - _local2.bottom); if (((!((_local11.width == _local12))) || (!((_local11.height == _local13))))){ _local15 = _local11.graphics; _local15.clear(); _local15.beginFill(0xFFFFFF); _local15.drawRect(0, 0, _local12, _local13); _local15.endFill(); }; } public function set backgroundImageBounds(_arg1:Rectangle):void{ _backgroundImageBounds = _arg1; invalidateDisplayList(); } private function getBackgroundSize():Number{ var _local3:int; var _local1:Number = NaN; var _local2:Object = getStyle("backgroundSize"); if (((_local2) && ((_local2 is String)))){ _local3 = _local2.indexOf("%"); if (_local3 != -1){ _local1 = Number(_local2.substr(0, _local3)); }; }; return (_local1); } private function removedHandler(_arg1:Event):void{ var _local2:IChildList; if (backgroundImage){ _local2 = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent); _local2.removeChild(backgroundImage.mask); _local2.removeChild(backgroundImage); backgroundImage = null; }; } private function initBackgroundImage(_arg1:DisplayObject):void{ backgroundImage = _arg1; if ((_arg1 is Loader)){ backgroundImageWidth = Loader(_arg1).contentLoaderInfo.width; backgroundImageHeight = Loader(_arg1).contentLoaderInfo.height; } else { backgroundImageWidth = backgroundImage.width; backgroundImageHeight = backgroundImage.height; if ((_arg1 is ISimpleStyleClient)){ ISimpleStyleClient(_arg1).styleName = styleName; }; }; var _local2:IChildList = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent); var _local3:Shape = new FlexShape(); _local3.name = "backgroundMask"; _local3.x = 0; _local3.y = 0; _local2.addChild(_local3); var _local4:int = _local2.getChildIndex(this); _local2.addChildAt(backgroundImage, (_local4 + 1)); backgroundImage.mask = _local3; } public function get backgroundImageBounds():Rectangle{ return (_backgroundImageBounds); } public function get hasBackgroundImage():Boolean{ return (!((backgroundImage == null))); } private function completeEventHandler(_arg1:Event):void{ if (!parent){ return; }; var _local2:DisplayObject = DisplayObject(LoaderInfo(_arg1.target).loader); initBackgroundImage(_local2); layoutBackgroundImage(); dispatchEvent(_arg1.clone()); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ var cls:Class; var newStyleObj:DisplayObject; var loader:Loader; var loaderContext:LoaderContext; var message:String; var unscaledWidth = _arg1; var unscaledHeight = _arg2; if (!parent){ return; }; var newStyle:Object = getStyle("backgroundImage"); if (newStyle != backgroundImageStyle){ removedHandler(null); backgroundImageStyle = newStyle; if (((newStyle) && ((newStyle as Class)))){ cls = Class(newStyle); initBackgroundImage(new (cls)); } else { if (((newStyle) && ((newStyle is String)))){ try { cls = Class(getDefinitionByName(String(newStyle))); } catch(e:Error) { }; if (cls){ newStyleObj = new (cls); initBackgroundImage(newStyleObj); } else { loader = new FlexLoader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeEventHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorEventHandler); loader.contentLoaderInfo.addEventListener(ErrorEvent.ERROR, errorEventHandler); loaderContext = new LoaderContext(); loaderContext.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain); loader.load(new URLRequest(String(newStyle)), loaderContext); }; } else { if (newStyle){ message = resourceManager.getString("skins", "notLoaded", [newStyle]); throw (new Error(message)); }; }; }; }; if (backgroundImage){ layoutBackgroundImage(); }; } private function errorEventHandler(_arg1:Event):void{ } } }//package mx.skins
Section 303
//IOverride (mx.states.IOverride) package mx.states { import mx.core.*; public interface IOverride { function initialize():void; function remove(_arg1:UIComponent):void; function apply(_arg1:UIComponent):void; } }//package mx.states
Section 304
//State (mx.states.State) package mx.states { import flash.events.*; import mx.events.*; public class State extends EventDispatcher { public var basedOn:String; private var initialized:Boolean;// = false public var overrides:Array; public var name:String; mx_internal static const VERSION:String = "3.0.0.0"; public function State(){ overrides = []; super(); } mx_internal function initialize():void{ var _local1:int; if (!initialized){ initialized = true; _local1 = 0; while (_local1 < overrides.length) { IOverride(overrides[_local1]).initialize(); _local1++; }; }; } mx_internal function dispatchExitState():void{ dispatchEvent(new FlexEvent(FlexEvent.EXIT_STATE)); } mx_internal function dispatchEnterState():void{ dispatchEvent(new FlexEvent(FlexEvent.ENTER_STATE)); } } }//package mx.states
Section 305
//Transition (mx.states.Transition) package mx.states { import mx.effects.*; public class Transition { public var effect:IEffect; public var toState:String;// = "*" public var fromState:String;// = "*" mx_internal static const VERSION:String = "3.0.0.0"; } }//package mx.states
Section 306
//CSSStyleDeclaration (mx.styles.CSSStyleDeclaration) package mx.styles { import flash.events.*; import flash.display.*; import mx.core.*; import mx.managers.*; import flash.utils.*; public class CSSStyleDeclaration extends EventDispatcher { mx_internal var effects:Array; protected var overrides:Object; public var defaultFactory:Function; public var factory:Function; mx_internal var selectorRefCount:int;// = 0 private var styleManager:IStyleManager2; private var clones:Dictionary; mx_internal static const VERSION:String = "3.0.0.0"; private static const NOT_A_COLOR:uint = 4294967295; private static const FILTERMAP_PROP:String = "__reserved__filterMap"; public function CSSStyleDeclaration(_arg1:String=null){ clones = new Dictionary(true); super(); if (_arg1){ styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2); styleManager.setStyleDeclaration(_arg1, this, false); }; } mx_internal function addStyleToProtoChain(_arg1:Object, _arg2:DisplayObject, _arg3:Object=null):Object{ var p:String; var emptyObjectFactory:Function; var filteredChain:Object; var filterObjectFactory:Function; var i:String; var chain = _arg1; var target = _arg2; var filterMap = _arg3; var nodeAddedToChain:Boolean; var originalChain:Object = chain; if (filterMap){ chain = {}; }; if (defaultFactory != null){ defaultFactory.prototype = chain; chain = new defaultFactory(); nodeAddedToChain = true; }; if (factory != null){ factory.prototype = chain; chain = new factory(); nodeAddedToChain = true; }; if (overrides){ if ((((defaultFactory == null)) && ((factory == null)))){ emptyObjectFactory = function ():void{ }; emptyObjectFactory.prototype = chain; chain = new (emptyObjectFactory); nodeAddedToChain = true; }; for (p in overrides) { if (overrides[p] === undefined){ delete chain[p]; } else { chain[p] = overrides[p]; }; }; }; if (filterMap){ if (nodeAddedToChain){ filteredChain = {}; filterObjectFactory = function ():void{ }; filterObjectFactory.prototype = originalChain; filteredChain = new (filterObjectFactory); for (i in chain) { if (filterMap[i] != null){ filteredChain[filterMap[i]] = chain[i]; }; }; chain = filteredChain; chain[FILTERMAP_PROP] = filterMap; } else { chain = originalChain; }; }; if (nodeAddedToChain){ clones[chain] = 1; }; return (chain); } public function getStyle(_arg1:String){ var _local2:*; var _local3:*; if (overrides){ if ((((_arg1 in overrides)) && ((overrides[_arg1] === undefined)))){ return (undefined); }; _local3 = overrides[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; if (factory != null){ factory.prototype = {}; _local2 = new factory(); _local3 = _local2[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; if (defaultFactory != null){ defaultFactory.prototype = {}; _local2 = new defaultFactory(); _local3 = _local2[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; return (undefined); } public function clearStyle(_arg1:String):void{ setStyle(_arg1, undefined); } public function setStyle(_arg1:String, _arg2):void{ var _local7:int; var _local8:Object; var _local3:Object = getStyle(_arg1); var _local4:Boolean; if ((((((((((selectorRefCount > 0)) && ((factory == null)))) && ((defaultFactory == null)))) && (!(overrides)))) && (!((_local3 === _arg2))))){ _local4 = true; }; if (_arg2 !== undefined){ setStyle(_arg1, _arg2); } else { if (_arg2 == _local3){ return; }; setStyle(_arg1, _arg2); }; var _local5:Array = SystemManagerGlobals.topLevelSystemManagers; var _local6:int = _local5.length; if (_local4){ _local7 = 0; while (_local7 < _local6) { _local8 = _local5[_local7]; _local8.regenerateStyleCache(true); _local7++; }; }; _local7 = 0; while (_local7 < _local6) { _local8 = _local5[_local7]; _local8.notifyStyleChangeInChildren(_arg1, true); _local7++; }; } private function clearStyleAttr(_arg1:String):void{ var _local2:*; if (!overrides){ overrides = {}; }; overrides[_arg1] = undefined; for (_local2 in clones) { delete _local2[_arg1]; }; } mx_internal function createProtoChainRoot():Object{ var _local1:Object = {}; if (defaultFactory != null){ defaultFactory.prototype = _local1; _local1 = new defaultFactory(); }; if (factory != null){ factory.prototype = _local1; _local1 = new factory(); }; clones[_local1] = 1; return (_local1); } mx_internal function clearOverride(_arg1:String):void{ if (((overrides) && (overrides[_arg1]))){ delete overrides[_arg1]; }; } mx_internal function setStyle(_arg1:String, _arg2):void{ var _local3:Object; var _local4:*; var _local5:Number; var _local6:Object; if (_arg2 === undefined){ clearStyleAttr(_arg1); return; }; if ((_arg2 is String)){ if (!styleManager){ styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2); }; _local5 = styleManager.getColorName(_arg2); if (_local5 != NOT_A_COLOR){ _arg2 = _local5; }; }; if (defaultFactory != null){ _local3 = new defaultFactory(); if (_local3[_arg1] !== _arg2){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; } else { if (overrides){ delete overrides[_arg1]; }; }; }; if (factory != null){ _local3 = new factory(); if (_local3[_arg1] !== _arg2){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; } else { if (overrides){ delete overrides[_arg1]; }; }; }; if ((((defaultFactory == null)) && ((factory == null)))){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; }; for (_local4 in clones) { _local6 = _local4[FILTERMAP_PROP]; if (_local6){ if (_local6[_arg1] != null){ _local4[_local6[_arg1]] = _arg2; }; } else { _local4[_arg1] = _arg2; }; }; } } }//package mx.styles
Section 307
//ISimpleStyleClient (mx.styles.ISimpleStyleClient) package mx.styles { public interface ISimpleStyleClient { function set styleName(_arg1:Object):void; function styleChanged(_arg1:String):void; function get styleName():Object; } }//package mx.styles
Section 308
//IStyleClient (mx.styles.IStyleClient) package mx.styles { public interface IStyleClient extends ISimpleStyleClient { function regenerateStyleCache(_arg1:Boolean):void; function get className():String; function clearStyle(_arg1:String):void; function getClassStyleDeclarations():Array; function get inheritingStyles():Object; function set nonInheritingStyles(_arg1:Object):void; function setStyle(_arg1:String, _arg2):void; function get styleDeclaration():CSSStyleDeclaration; function set styleDeclaration(_arg1:CSSStyleDeclaration):void; function get nonInheritingStyles():Object; function set inheritingStyles(_arg1:Object):void; function getStyle(_arg1:String); function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void; function registerEffects(_arg1:Array):void; } }//package mx.styles
Section 309
//IStyleManager (mx.styles.IStyleManager) package mx.styles { import flash.events.*; public interface IStyleManager { function isColorName(_arg1:String):Boolean; function registerParentDisplayListInvalidatingStyle(_arg1:String):void; function registerInheritingStyle(_arg1:String):void; function set stylesRoot(_arg1:Object):void; function get typeSelectorCache():Object; function styleDeclarationsChanged():void; function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void; function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean; function isSizeInvalidatingStyle(_arg1:String):Boolean; function get inheritingStyles():Object; function isValidStyleValue(_arg1):Boolean; function isParentSizeInvalidatingStyle(_arg1:String):Boolean; function getColorName(_arg1:Object):uint; function set typeSelectorCache(_arg1:Object):void; function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void; function getColorNames(_arg1:Array):void; function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher; function isInheritingStyle(_arg1:String):Boolean; function set inheritingStyles(_arg1:Object):void; function get stylesRoot():Object; function initProtoChainRoots():void; function registerColorName(_arg1:String, _arg2:uint):void; function registerParentSizeInvalidatingStyle(_arg1:String):void; function registerSizeInvalidatingStyle(_arg1:String):void; function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void; function isInheritingTextFormatStyle(_arg1:String):Boolean; function getStyleDeclaration(_arg1:String):CSSStyleDeclaration; } }//package mx.styles
Section 310
//IStyleManager2 (mx.styles.IStyleManager2) package mx.styles { import flash.events.*; import flash.system.*; public interface IStyleManager2 extends IStyleManager { function get selectors():Array; function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher; } }//package mx.styles
Section 311
//IStyleModule (mx.styles.IStyleModule) package mx.styles { public interface IStyleModule { function unload():void; } }//package mx.styles
Section 312
//StyleManager (mx.styles.StyleManager) package mx.styles { import flash.events.*; import mx.core.*; import flash.system.*; public class StyleManager { mx_internal static const VERSION:String = "3.0.0.0"; public static const NOT_A_COLOR:uint = 4294967295; private static var _impl:IStyleManager2; private static var implClassDependency:StyleManagerImpl; public static function isParentSizeInvalidatingStyle(_arg1:String):Boolean{ return (impl.isParentSizeInvalidatingStyle(_arg1)); } public static function registerInheritingStyle(_arg1:String):void{ impl.registerInheritingStyle(_arg1); } mx_internal static function set stylesRoot(_arg1:Object):void{ impl.stylesRoot = _arg1; } mx_internal static function get inheritingStyles():Object{ return (impl.inheritingStyles); } mx_internal static function styleDeclarationsChanged():void{ impl.styleDeclarationsChanged(); } public static function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{ impl.setStyleDeclaration(_arg1, _arg2, _arg3); } public static function registerParentDisplayListInvalidatingStyle(_arg1:String):void{ impl.registerParentDisplayListInvalidatingStyle(_arg1); } mx_internal static function get typeSelectorCache():Object{ return (impl.typeSelectorCache); } mx_internal static function set inheritingStyles(_arg1:Object):void{ impl.inheritingStyles = _arg1; } public static function isColorName(_arg1:String):Boolean{ return (impl.isColorName(_arg1)); } public static function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{ return (impl.isParentDisplayListInvalidatingStyle(_arg1)); } public static function isSizeInvalidatingStyle(_arg1:String):Boolean{ return (impl.isSizeInvalidatingStyle(_arg1)); } public static function getColorName(_arg1:Object):uint{ return (impl.getColorName(_arg1)); } mx_internal static function set typeSelectorCache(_arg1:Object):void{ impl.typeSelectorCache = _arg1; } public static function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{ impl.unloadStyleDeclarations(_arg1, _arg2); } public static function getColorNames(_arg1:Array):void{ impl.getColorNames(_arg1); } public static function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false, _arg4:ApplicationDomain=null, _arg5:SecurityDomain=null):IEventDispatcher{ return (impl.loadStyleDeclarations2(_arg1, _arg2, _arg4, _arg5)); } private static function get impl():IStyleManager2{ if (!_impl){ _impl = IStyleManager2(Singleton.getInstance("mx.styles::IStyleManager2")); }; return (_impl); } public static function isValidStyleValue(_arg1):Boolean{ return (impl.isValidStyleValue(_arg1)); } mx_internal static function get stylesRoot():Object{ return (impl.stylesRoot); } public static function isInheritingStyle(_arg1:String):Boolean{ return (impl.isInheritingStyle(_arg1)); } mx_internal static function initProtoChainRoots():void{ impl.initProtoChainRoots(); } public static function registerParentSizeInvalidatingStyle(_arg1:String):void{ impl.registerParentSizeInvalidatingStyle(_arg1); } public static function get selectors():Array{ return (impl.selectors); } public static function registerSizeInvalidatingStyle(_arg1:String):void{ impl.registerSizeInvalidatingStyle(_arg1); } public static function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{ impl.clearStyleDeclaration(_arg1, _arg2); } public static function registerColorName(_arg1:String, _arg2:uint):void{ impl.registerColorName(_arg1, _arg2); } public static function isInheritingTextFormatStyle(_arg1:String):Boolean{ return (impl.isInheritingTextFormatStyle(_arg1)); } public static function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{ return (impl.getStyleDeclaration(_arg1)); } } }//package mx.styles
Section 313
//StyleManagerImpl (mx.styles.StyleManagerImpl) package mx.styles { import flash.events.*; import mx.core.*; import flash.system.*; import mx.modules.*; import mx.events.*; import mx.resources.*; import mx.managers.*; import flash.utils.*; public class StyleManagerImpl implements IStyleManager2 { private var _stylesRoot:Object; private var _selectors:Object; private var styleModules:Object; private var _inheritingStyles:Object; private var resourceManager:IResourceManager; private var _typeSelectorCache:Object; mx_internal static const VERSION:String = "3.0.0.0"; private static var parentSizeInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true}; private static var colorNames:Object = {transparent:"transparent", black:0, blue:0xFF, green:0x8000, gray:0x808080, silver:0xC0C0C0, lime:0xFF00, olive:0x808000, white:0xFFFFFF, yellow:0xFFFF00, maroon:0x800000, navy:128, red:0xFF0000, purple:0x800080, teal:0x8080, fuchsia:0xFF00FF, aqua:0xFFFF, magenta:0xFF00FF, cyan:0xFFFF, halogreen:8453965, haloblue:40447, haloorange:0xFFB600, halosilver:11455193}; private static var inheritingTextFormatStyles:Object = {align:true, bold:true, color:true, font:true, indent:true, italic:true, size:true}; private static var instance:IStyleManager2; private static var parentDisplayListInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true}; private static var sizeInvalidatingStyles:Object = {borderStyle:true, borderThickness:true, fontAntiAliasType:true, fontFamily:true, fontGridFitType:true, fontSharpness:true, fontSize:true, fontStyle:true, fontThickness:true, fontWeight:true, headerHeight:true, horizontalAlign:true, horizontalGap:true, kerning:true, leading:true, letterSpacing:true, paddingBottom:true, paddingLeft:true, paddingRight:true, paddingTop:true, strokeWidth:true, tabHeight:true, tabWidth:true, verticalAlign:true, verticalGap:true}; public function StyleManagerImpl(){ _selectors = {}; styleModules = {}; resourceManager = ResourceManager.getInstance(); _inheritingStyles = {}; _typeSelectorCache = {}; super(); } public function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{ _arg2.selectorRefCount++; _selectors[_arg1] = _arg2; typeSelectorCache = {}; if (_arg3){ styleDeclarationsChanged(); }; } public function registerParentDisplayListInvalidatingStyle(_arg1:String):void{ parentDisplayListInvalidatingStyles[_arg1] = true; } public function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{ var _local2:int; if (_arg1.charAt(0) != "."){ _local2 = _arg1.lastIndexOf("."); if (_local2 != -1){ _arg1 = _arg1.substr((_local2 + 1)); }; }; return (_selectors[_arg1]); } public function set typeSelectorCache(_arg1:Object):void{ _typeSelectorCache = _arg1; } public function isColorName(_arg1:String):Boolean{ return (!((colorNames[_arg1.toLowerCase()] === undefined))); } public function set inheritingStyles(_arg1:Object):void{ _inheritingStyles = _arg1; } public function getColorNames(_arg1:Array):void{ var _local4:uint; if (!_arg1){ return; }; var _local2:int = _arg1.length; var _local3:int; while (_local3 < _local2) { if (((!((_arg1[_local3] == null))) && (isNaN(_arg1[_local3])))){ _local4 = getColorName(_arg1[_local3]); if (_local4 != StyleManager.NOT_A_COLOR){ _arg1[_local3] = _local4; }; }; _local3++; }; } public function isInheritingTextFormatStyle(_arg1:String):Boolean{ return ((inheritingTextFormatStyles[_arg1] == true)); } public function registerParentSizeInvalidatingStyle(_arg1:String):void{ parentSizeInvalidatingStyles[_arg1] = true; } public function registerColorName(_arg1:String, _arg2:uint):void{ colorNames[_arg1.toLowerCase()] = _arg2; } public function isParentSizeInvalidatingStyle(_arg1:String):Boolean{ return ((parentSizeInvalidatingStyles[_arg1] == true)); } public function registerInheritingStyle(_arg1:String):void{ inheritingStyles[_arg1] = true; } public function set stylesRoot(_arg1:Object):void{ _stylesRoot = _arg1; } public function get typeSelectorCache():Object{ return (_typeSelectorCache); } public function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{ return ((parentDisplayListInvalidatingStyles[_arg1] == true)); } public function isSizeInvalidatingStyle(_arg1:String):Boolean{ return ((sizeInvalidatingStyles[_arg1] == true)); } public function styleDeclarationsChanged():void{ var _local4:Object; var _local1:Array = SystemManagerGlobals.topLevelSystemManagers; var _local2:int = _local1.length; var _local3:int; while (_local3 < _local2) { _local4 = _local1[_local3]; _local4.regenerateStyleCache(true); _local4.notifyStyleChangeInChildren(null, true); _local3++; }; } public function isValidStyleValue(_arg1):Boolean{ return (!((_arg1 === undefined))); } public function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher{ return (loadStyleDeclarations2(_arg1, _arg2)); } public function get inheritingStyles():Object{ return (_inheritingStyles); } public function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{ var _local4:IModuleInfo; var _local3:StyleModuleInfo = styleModules[_arg1]; if (_local3){ _local3.styleModule.unload(); _local4 = _local3.module; _local4.unload(); _local4.removeEventListener(ModuleEvent.READY, _local3.readyHandler); _local4.removeEventListener(ModuleEvent.ERROR, _local3.errorHandler); styleModules[_arg1] = null; }; if (_arg2){ styleDeclarationsChanged(); }; } public function getColorName(_arg1:Object):uint{ var _local2:Number; var _local3:*; if ((_arg1 is String)){ if (_arg1.charAt(0) == "#"){ _local2 = Number(("0x" + _arg1.slice(1))); return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2)); }; if ((((_arg1.charAt(1) == "x")) && ((_arg1.charAt(0) == "0")))){ _local2 = Number(_arg1); return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2)); }; _local3 = colorNames[_arg1.toLowerCase()]; if (_local3 === undefined){ return (StyleManager.NOT_A_COLOR); }; return (uint(_local3)); }; return (uint(_arg1)); } public function isInheritingStyle(_arg1:String):Boolean{ return ((inheritingStyles[_arg1] == true)); } public function get stylesRoot():Object{ return (_stylesRoot); } public function initProtoChainRoots():void{ if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ delete _inheritingStyles["textDecoration"]; delete _inheritingStyles["leading"]; }; if (!stylesRoot){ stylesRoot = _selectors["global"].addStyleToProtoChain({}, null); }; } public function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{ var module:IModuleInfo; var styleEventDispatcher:StyleEventDispatcher; var timer:Timer; var timerHandler:Function; var url = _arg1; var update = _arg2; var applicationDomain = _arg3; var securityDomain = _arg4; module = ModuleManager.getModule(url); var readyHandler:Function = function (_arg1:ModuleEvent):void{ var _local2:IStyleModule = IStyleModule(_arg1.module.factory.create()); styleModules[_arg1.module.url].styleModule = _local2; if (update){ styleDeclarationsChanged(); }; }; module.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true); styleEventDispatcher = new StyleEventDispatcher(module); var errorHandler:Function = function (_arg1:ModuleEvent):void{ var _local3:StyleEvent; var _local2:String = resourceManager.getString("styles", "unableToLoad", [_arg1.errorText, url]); if (styleEventDispatcher.willTrigger(StyleEvent.ERROR)){ _local3 = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local3.bytesLoaded = 0; _local3.bytesTotal = 0; _local3.errorText = _local2; styleEventDispatcher.dispatchEvent(_local3); } else { throw (new Error(_local2)); }; }; module.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true); styleModules[url] = new StyleModuleInfo(module, readyHandler, errorHandler); timer = new Timer(0); timerHandler = function (_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.stop(); module.load(applicationDomain, securityDomain); }; timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true); timer.start(); return (styleEventDispatcher); } public function registerSizeInvalidatingStyle(_arg1:String):void{ sizeInvalidatingStyles[_arg1] = true; } public function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{ var _local3:CSSStyleDeclaration = getStyleDeclaration(_arg1); if (((_local3) && ((_local3.selectorRefCount > 0)))){ _local3.selectorRefCount--; }; delete _selectors[_arg1]; if (_arg2){ styleDeclarationsChanged(); }; } public function get selectors():Array{ var _local2:String; var _local1:Array = []; for (_local2 in _selectors) { _local1.push(_local2); }; return (_local1); } public static function getInstance():IStyleManager2{ if (!instance){ instance = new (StyleManagerImpl); }; return (instance); } } }//package mx.styles import flash.events.*; import mx.modules.*; import mx.events.*; class StyleEventDispatcher extends EventDispatcher { private function StyleEventDispatcher(_arg1:IModuleInfo){ _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true); } private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.COMPLETE); dispatchEvent(_local2); } private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; _local2.errorText = _arg1.errorText; dispatchEvent(_local2); } } class StyleModuleInfo { public var errorHandler:Function; public var readyHandler:Function; public var module:IModuleInfo; public var styleModule:IStyleModule; private function StyleModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){ this.module = _arg1; this.readyHandler = _arg2; this.errorHandler = _arg3; } }
Section 314
//StyleProtoChain (mx.styles.StyleProtoChain) package mx.styles { import flash.display.*; import mx.core.*; public class StyleProtoChain { mx_internal static const VERSION:String = "3.0.0.0"; public static function initProtoChainForUIComponentStyleName(_arg1:IStyleClient):void{ var _local9:CSSStyleDeclaration; var _local2:IStyleClient = IStyleClient(_arg1.styleName); var _local3:DisplayObject = (_arg1 as DisplayObject); var _local4:Object = _local2.nonInheritingStyles; if (((!(_local4)) || ((_local4 == UIComponent.STYLE_UNINITIALIZED)))){ _local4 = StyleManager.stylesRoot; if (_local4.effects){ _arg1.registerEffects(_local4.effects); }; }; var _local5:Object = _local2.inheritingStyles; if (((!(_local5)) || ((_local5 == UIComponent.STYLE_UNINITIALIZED)))){ _local5 = StyleManager.stylesRoot; }; var _local6:Array = _arg1.getClassStyleDeclarations(); var _local7:int = _local6.length; if ((_local2 is StyleProxy)){ if (_local7 == 0){ _local4 = addProperties(_local4, _local2, false); }; _local3 = (StyleProxy(_local2).source as DisplayObject); }; var _local8:int; while (_local8 < _local7) { _local9 = _local6[_local8]; _local5 = _local9.addStyleToProtoChain(_local5, _local3); _local5 = addProperties(_local5, _local2, true); _local4 = _local9.addStyleToProtoChain(_local4, _local3); _local4 = addProperties(_local4, _local2, false); if (_local9.effects){ _arg1.registerEffects(_local9.effects); }; _local8++; }; _arg1.inheritingStyles = (_arg1.styleDeclaration) ? _arg1.styleDeclaration.addStyleToProtoChain(_local5, _local3) : _local5; _arg1.nonInheritingStyles = (_arg1.styleDeclaration) ? _arg1.styleDeclaration.addStyleToProtoChain(_local4, _local3) : _local4; } private static function addProperties(_arg1:Object, _arg2:IStyleClient, _arg3:Boolean):Object{ var _local11:CSSStyleDeclaration; var _local12:CSSStyleDeclaration; var _local4:Object = ((((_arg2 is StyleProxy)) && (!(_arg3)))) ? StyleProxy(_arg2).filterMap : null; var _local5:IStyleClient = _arg2; while ((_local5 is StyleProxy)) { _local5 = StyleProxy(_local5).source; }; var _local6:DisplayObject = (_local5 as DisplayObject); var _local7:Array = _arg2.getClassStyleDeclarations(); var _local8:int = _local7.length; var _local9:int; while (_local9 < _local8) { _local11 = _local7[_local9]; _arg1 = _local11.addStyleToProtoChain(_arg1, _local6, _local4); if (_local11.effects){ _arg2.registerEffects(_local11.effects); }; _local9++; }; var _local10:Object = _arg2.styleName; if (_local10){ if (typeof(_local10) == "object"){ if ((_local10 is CSSStyleDeclaration)){ _local12 = CSSStyleDeclaration(_local10); } else { _arg1 = addProperties(_arg1, IStyleClient(_local10), _arg3); }; } else { _local12 = StyleManager.getStyleDeclaration(("." + _local10)); }; if (_local12){ _arg1 = _local12.addStyleToProtoChain(_arg1, _local6, _local4); if (_local12.effects){ _arg2.registerEffects(_local12.effects); }; }; }; if (_arg2.styleDeclaration){ _arg1 = _arg2.styleDeclaration.addStyleToProtoChain(_arg1, _local6, _local4); }; return (_arg1); } public static function initTextField(_arg1:IUITextField):void{ var _local3:CSSStyleDeclaration; var _local2:Object = _arg1.styleName; if (_local2){ if (typeof(_local2) == "object"){ if ((_local2 is CSSStyleDeclaration)){ _local3 = CSSStyleDeclaration(_local2); } else { if ((_local2 is StyleProxy)){ _arg1.inheritingStyles = IStyleClient(_local2).inheritingStyles; _arg1.nonInheritingStyles = addProperties(StyleManager.stylesRoot, IStyleClient(_local2), false); return; }; _arg1.inheritingStyles = IStyleClient(_local2).inheritingStyles; _arg1.nonInheritingStyles = IStyleClient(_local2).nonInheritingStyles; return; }; } else { _local3 = StyleManager.getStyleDeclaration(("." + _local2)); }; }; var _local4:Object = IStyleClient(_arg1.parent).inheritingStyles; var _local5:Object = StyleManager.stylesRoot; if (!_local4){ _local4 = StyleManager.stylesRoot; }; if (_local3){ _local4 = _local3.addStyleToProtoChain(_local4, DisplayObject(_arg1)); _local5 = _local3.addStyleToProtoChain(_local5, DisplayObject(_arg1)); }; _arg1.inheritingStyles = _local4; _arg1.nonInheritingStyles = _local5; } } }//package mx.styles
Section 315
//StyleProxy (mx.styles.StyleProxy) package mx.styles { import mx.core.*; public class StyleProxy implements IStyleClient { private var _source:IStyleClient; private var _filterMap:Object; mx_internal static const VERSION:String = "3.0.0.0"; public function StyleProxy(_arg1:IStyleClient, _arg2:Object){ this.filterMap = _arg2; this.source = _arg1; } public function styleChanged(_arg1:String):void{ return (_source.styleChanged(_arg1)); } public function get filterMap():Object{ return (((FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)) ? null : _filterMap); } public function set filterMap(_arg1:Object):void{ _filterMap = _arg1; } public function get styleDeclaration():CSSStyleDeclaration{ return (_source.styleDeclaration); } public function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void{ return (_source.notifyStyleChangeInChildren(_arg1, _arg2)); } public function set inheritingStyles(_arg1:Object):void{ } public function get source():IStyleClient{ return (_source); } public function get styleName():Object{ if ((_source.styleName is IStyleClient)){ return (new StyleProxy(IStyleClient(_source.styleName), filterMap)); }; return (_source.styleName); } public function registerEffects(_arg1:Array):void{ return (_source.registerEffects(_arg1)); } public function regenerateStyleCache(_arg1:Boolean):void{ _source.regenerateStyleCache(_arg1); } public function get inheritingStyles():Object{ return (_source.inheritingStyles); } public function get className():String{ return (_source.className); } public function clearStyle(_arg1:String):void{ _source.clearStyle(_arg1); } public function getClassStyleDeclarations():Array{ return (_source.getClassStyleDeclarations()); } public function set nonInheritingStyles(_arg1:Object):void{ } public function setStyle(_arg1:String, _arg2):void{ _source.setStyle(_arg1, _arg2); } public function get nonInheritingStyles():Object{ return (((FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)) ? _source.nonInheritingStyles : null); } public function set styleName(_arg1:Object):void{ _source.styleName = _arg1; } public function getStyle(_arg1:String){ return (_source.getStyle(_arg1)); } public function set source(_arg1:IStyleClient):void{ _source = _arg1; } public function set styleDeclaration(_arg1:CSSStyleDeclaration):void{ _source.styleDeclaration = styleDeclaration; } } }//package mx.styles
Section 316
//ColorUtil (mx.utils.ColorUtil) package mx.utils { public class ColorUtil { mx_internal static const VERSION:String = "3.0.0.0"; public static function adjustBrightness2(_arg1:uint, _arg2:Number):uint{ var _local3:Number; var _local4:Number; var _local5:Number; if (_arg2 == 0){ return (_arg1); }; if (_arg2 < 0){ _arg2 = ((100 + _arg2) / 100); _local3 = (((_arg1 >> 16) & 0xFF) * _arg2); _local4 = (((_arg1 >> 8) & 0xFF) * _arg2); _local5 = ((_arg1 & 0xFF) * _arg2); } else { _arg2 = (_arg2 / 100); _local3 = ((_arg1 >> 16) & 0xFF); _local4 = ((_arg1 >> 8) & 0xFF); _local5 = (_arg1 & 0xFF); _local3 = (_local3 + ((0xFF - _local3) * _arg2)); _local4 = (_local4 + ((0xFF - _local4) * _arg2)); _local5 = (_local5 + ((0xFF - _local5) * _arg2)); _local3 = Math.min(_local3, 0xFF); _local4 = Math.min(_local4, 0xFF); _local5 = Math.min(_local5, 0xFF); }; return ((((_local3 << 16) | (_local4 << 8)) | _local5)); } public static function rgbMultiply(_arg1:uint, _arg2:uint):uint{ var _local3:Number = ((_arg1 >> 16) & 0xFF); var _local4:Number = ((_arg1 >> 8) & 0xFF); var _local5:Number = (_arg1 & 0xFF); var _local6:Number = ((_arg2 >> 16) & 0xFF); var _local7:Number = ((_arg2 >> 8) & 0xFF); var _local8:Number = (_arg2 & 0xFF); return ((((((_local3 * _local6) / 0xFF) << 16) | (((_local4 * _local7) / 0xFF) << 8)) | ((_local5 * _local8) / 0xFF))); } public static function adjustBrightness(_arg1:uint, _arg2:Number):uint{ var _local3:Number = Math.max(Math.min((((_arg1 >> 16) & 0xFF) + _arg2), 0xFF), 0); var _local4:Number = Math.max(Math.min((((_arg1 >> 8) & 0xFF) + _arg2), 0xFF), 0); var _local5:Number = Math.max(Math.min(((_arg1 & 0xFF) + _arg2), 0xFF), 0); return ((((_local3 << 16) | (_local4 << 8)) | _local5)); } } }//package mx.utils
Section 317
//GraphicsUtil (mx.utils.GraphicsUtil) package mx.utils { import flash.display.*; public class GraphicsUtil { mx_internal static const VERSION:String = "3.0.0.0"; public static function drawRoundRectComplex(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number):void{ var _local10:Number = (_arg2 + _arg4); var _local11:Number = (_arg3 + _arg5); var _local12:Number = ((_arg4 < _arg5)) ? (_arg4 * 2) : (_arg5 * 2); _arg6 = ((_arg6 < _local12)) ? _arg6 : _local12; _arg7 = ((_arg7 < _local12)) ? _arg7 : _local12; _arg8 = ((_arg8 < _local12)) ? _arg8 : _local12; _arg9 = ((_arg9 < _local12)) ? _arg9 : _local12; var _local13:Number = (_arg9 * 0.292893218813453); var _local14:Number = (_arg9 * 0.585786437626905); _arg1.moveTo(_local10, (_local11 - _arg9)); _arg1.curveTo(_local10, (_local11 - _local14), (_local10 - _local13), (_local11 - _local13)); _arg1.curveTo((_local10 - _local14), _local11, (_local10 - _arg9), _local11); _local13 = (_arg8 * 0.292893218813453); _local14 = (_arg8 * 0.585786437626905); _arg1.lineTo((_arg2 + _arg8), _local11); _arg1.curveTo((_arg2 + _local14), _local11, (_arg2 + _local13), (_local11 - _local13)); _arg1.curveTo(_arg2, (_local11 - _local14), _arg2, (_local11 - _arg8)); _local13 = (_arg6 * 0.292893218813453); _local14 = (_arg6 * 0.585786437626905); _arg1.lineTo(_arg2, (_arg3 + _arg6)); _arg1.curveTo(_arg2, (_arg3 + _local14), (_arg2 + _local13), (_arg3 + _local13)); _arg1.curveTo((_arg2 + _local14), _arg3, (_arg2 + _arg6), _arg3); _local13 = (_arg7 * 0.292893218813453); _local14 = (_arg7 * 0.585786437626905); _arg1.lineTo((_local10 - _arg7), _arg3); _arg1.curveTo((_local10 - _local14), _arg3, (_local10 - _local13), (_arg3 + _local13)); _arg1.curveTo(_local10, (_arg3 + _local14), _local10, (_arg3 + _arg7)); _arg1.lineTo(_local10, (_local11 - _arg9)); } } }//package mx.utils
Section 318
//NameUtil (mx.utils.NameUtil) package mx.utils { import flash.display.*; import mx.core.*; import flash.utils.*; public class NameUtil { mx_internal static const VERSION:String = "3.0.0.0"; private static var counter:int = 0; public static function displayObjectToString(_arg1:DisplayObject):String{ var _local2:String; var _local4:String; var _local5:Array; var _local3:DisplayObject = _arg1; while (_local3 != null) { if (((((_local3.parent) && (_local3.stage))) && ((_local3.parent == _local3.stage)))){ break; }; _local4 = _local3.name; if ((_local3 is IRepeaterClient)){ _local5 = IRepeaterClient(_local3).instanceIndices; if (_local5){ _local4 = (_local4 + (("[" + _local5.join("][")) + "]")); }; }; _local2 = ((_local2 == null)) ? _local4 : ((_local4 + ".") + _local2); _local3 = _local3.parent; }; return (_local2); } public static function createUniqueName(_arg1:Object):String{ if (!_arg1){ return (null); }; var _local2:String = getQualifiedClassName(_arg1); var _local3:int = _local2.indexOf("::"); if (_local3 != -1){ _local2 = _local2.substr((_local3 + 2)); }; var _local4:int = _local2.charCodeAt((_local2.length - 1)); if ((((_local4 >= 48)) && ((_local4 <= 57)))){ _local2 = (_local2 + "_"); }; return ((_local2 + counter++)); } } }//package mx.utils
Section 319
//StringUtil (mx.utils.StringUtil) package mx.utils { public class StringUtil { mx_internal static const VERSION:String = "3.0.0.0"; public static function trim(_arg1:String):String{ if (_arg1 == null){ return (""); }; var _local2:int; while (isWhitespace(_arg1.charAt(_local2))) { _local2++; }; var _local3:int = (_arg1.length - 1); while (isWhitespace(_arg1.charAt(_local3))) { _local3--; }; if (_local3 >= _local2){ return (_arg1.slice(_local2, (_local3 + 1))); }; return (""); } public static function isWhitespace(_arg1:String):Boolean{ switch (_arg1){ case " ": case "\t": case "\r": case "\n": case "\f": return (true); default: return (false); }; } public static function substitute(_arg1:String, ... _args):String{ var _local4:Array; if (_arg1 == null){ return (""); }; var _local3:uint = _args.length; if ((((_local3 == 1)) && ((_args[0] is Array)))){ _local4 = (_args[0] as Array); _local3 = _local4.length; } else { _local4 = _args; }; var _local5:int; while (_local5 < _local3) { _arg1 = _arg1.replace(new RegExp((("\\{" + _local5) + "\\}"), "g"), _local4[_local5]); _local5++; }; return (_arg1); } public static function trimArrayElements(_arg1:String, _arg2:String):String{ var _local3:Array; var _local4:int; var _local5:int; if (((!((_arg1 == ""))) && (!((_arg1 == null))))){ _local3 = _arg1.split(_arg2); _local4 = _local3.length; _local5 = 0; while (_local5 < _local4) { _local3[_local5] = StringUtil.trim(_local3[_local5]); _local5++; }; if (_local4 > 0){ _arg1 = _local3.join(_arg2); }; }; return (_arg1); } } }//package mx.utils
Section 320
//IValidatorListener (mx.validators.IValidatorListener) package mx.validators { import mx.events.*; public interface IValidatorListener { function set errorString(_arg1:String):void; function get validationSubField():String; function validationResultHandler(_arg1:ValidationResultEvent):void; function set validationSubField(_arg1:String):void; function get errorString():String; } }//package mx.validators
Section 321
//ValidationResult (mx.validators.ValidationResult) package mx.validators { public class ValidationResult { public var subField:String; public var errorCode:String; public var isError:Boolean; public var errorMessage:String; mx_internal static const VERSION:String = "3.0.0.0"; public function ValidationResult(_arg1:Boolean, _arg2:String="", _arg3:String="", _arg4:String=""){ this.isError = _arg1; this.subField = _arg2; this.errorMessage = _arg4; this.errorCode = _arg3; } } }//package mx.validators
Section 322
//_activeButtonStyleStyle (_activeButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _activeButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".activeButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 323
//_activeTabStyleStyle (_activeTabStyleStyle) package { import mx.core.*; import mx.styles.*; public class _activeTabStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeTabStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".activeTabStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 324
//_alertButtonStyleStyle (_alertButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _alertButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".alertButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".alertButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 734012; }; }; } } }//package
Section 325
//_ApplicationStyle (_ApplicationStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _ApplicationStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Application"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Application", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.backgroundSize = "100%"; this.paddingTop = 24; this.backgroundColor = 8821927; this.backgroundImage = ApplicationBackground; this.horizontalAlign = "center"; this.backgroundGradientAlphas = [1, 1]; this.paddingLeft = 24; this.paddingBottom = 24; this.paddingRight = 24; }; }; } } }//package
Section 326
//_ButtonStyle (_ButtonStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _ButtonStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Button"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("Button", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.paddingTop = 2; this.cornerRadius = 4; this.textAlign = "center"; this.verticalGap = 2; this.horizontalGap = 2; this.skin = ButtonSkin; this.paddingLeft = 10; this.paddingBottom = 2; this.paddingRight = 10; }; }; } } }//package
Section 327
//_comboDropdownStyle (_comboDropdownStyle) package { import mx.core.*; import mx.styles.*; public class _comboDropdownStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".comboDropdown"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".comboDropdown", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.shadowDirection = "center"; this.fontWeight = "normal"; this.dropShadowEnabled = true; this.leading = 0; this.backgroundColor = 0xFFFFFF; this.shadowDistance = 1; this.cornerRadius = 0; this.borderThickness = 0; this.paddingLeft = 5; this.paddingRight = 5; }; }; } } }//package
Section 328
//_dataGridStylesStyle (_dataGridStylesStyle) package { import mx.core.*; import mx.styles.*; public class _dataGridStylesStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dataGridStyles"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dataGridStyles", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 329
//_dateFieldPopupStyle (_dateFieldPopupStyle) package { import mx.core.*; import mx.styles.*; public class _dateFieldPopupStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dateFieldPopup"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dateFieldPopup", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.dropShadowEnabled = true; this.backgroundColor = 0xFFFFFF; this.borderThickness = 0; }; }; } } }//package
Section 330
//_errorTipStyle (_errorTipStyle) package { import mx.core.*; import mx.styles.*; public class _errorTipStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".errorTip"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".errorTip", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.borderStyle = "errorTipRight"; this.paddingTop = 4; this.borderColor = 13510953; this.color = 0xFFFFFF; this.fontSize = 9; this.shadowColor = 0; this.paddingLeft = 4; this.paddingBottom = 4; this.paddingRight = 4; }; }; } } }//package
Section 331
//_globalStyle (_globalStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _globalStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("global"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("global", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fillColor = 0xFFFFFF; this.kerning = false; this.iconColor = 0x111111; this.textRollOverColor = 2831164; this.horizontalAlign = "left"; this.shadowCapColor = 14015965; this.backgroundAlpha = 1; this.filled = true; this.textDecoration = "none"; this.roundedBottomCorners = true; this.fontThickness = 0; this.focusBlendMode = "normal"; this.fillColors = [0xFFFFFF, 0xCCCCCC, 0xFFFFFF, 0xEEEEEE]; this.horizontalGap = 8; this.borderCapColor = 9542041; this.buttonColor = 7305079; this.indentation = 17; this.selectionDisabledColor = 0xDDDDDD; this.closeDuration = 250; this.embedFonts = false; this.paddingTop = 0; this.letterSpacing = 0; this.focusAlpha = 0.4; this.bevel = true; this.fontSize = 10; this.shadowColor = 0xEEEEEE; this.borderAlpha = 1; this.paddingLeft = 0; this.fontWeight = "normal"; this.indicatorGap = 14; this.focusSkin = HaloFocusRect; this.dropShadowEnabled = false; this.leading = 2; this.borderSkin = HaloBorder; this.fontSharpness = 0; this.modalTransparencyDuration = 100; this.borderThickness = 1; this.backgroundSize = "auto"; this.borderStyle = "inset"; this.borderColor = 12040892; this.fontAntiAliasType = "advanced"; this.errorColor = 0xFF0000; this.shadowDistance = 2; this.horizontalGridLineColor = 0xF7F7F7; this.stroked = false; this.modalTransparencyColor = 0xDDDDDD; this.cornerRadius = 0; this.verticalAlign = "top"; this.textIndent = 0; this.fillAlphas = [0.6, 0.4, 0.75, 0.65]; this.verticalGridLineColor = 14015965; this.themeColor = 40447; this.version = "3.0.0"; this.shadowDirection = "center"; this.modalTransparency = 0.5; this.repeatInterval = 35; this.openDuration = 250; this.textAlign = "left"; this.fontFamily = "Verdana"; this.textSelectedColor = 2831164; this.paddingBottom = 0; this.strokeWidth = 1; this.fontGridFitType = "pixel"; this.horizontalGridLines = false; this.useRollOver = true; this.verticalGridLines = true; this.repeatDelay = 500; this.fontStyle = "normal"; this.dropShadowColor = 0; this.focusThickness = 2; this.verticalGap = 6; this.disabledColor = 11187123; this.paddingRight = 0; this.focusRoundedCorners = "tl tr bl br"; this.borderSides = "left top right bottom"; this.disabledIconColor = 0x999999; this.modalTransparencyBlur = 3; this.color = 734012; this.selectionDuration = 250; this.highlightAlphas = [0.3, 0]; }; }; } } }//package
Section 332
//_headerDateTextStyle (_headerDateTextStyle) package { import mx.core.*; import mx.styles.*; public class _headerDateTextStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDateText"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".headerDateText", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.textAlign = "center"; }; }; } } }//package
Section 333
//_headerDragProxyStyleStyle (_headerDragProxyStyleStyle) package { import mx.core.*; import mx.styles.*; public class _headerDragProxyStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDragProxyStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".headerDragProxyStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 334
//_linkButtonStyleStyle (_linkButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _linkButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".linkButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".linkButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 2; this.paddingLeft = 2; this.paddingBottom = 2; this.paddingRight = 2; }; }; } } }//package
Section 335
//_opaquePanelStyle (_opaquePanelStyle) package { import mx.core.*; import mx.styles.*; public class _opaquePanelStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".opaquePanel"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".opaquePanel", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderColor = 0xFFFFFF; this.backgroundColor = 0xFFFFFF; this.headerColors = [0xE7E7E7, 0xD9D9D9]; this.footerColors = [0xE7E7E7, 0xC7C7C7]; this.borderAlpha = 1; }; }; } } }//package
Section 336
//_plainStyle (_plainStyle) package { import mx.core.*; import mx.styles.*; public class _plainStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".plain"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".plain", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 0; this.backgroundColor = 0xFFFFFF; this.backgroundImage = ""; this.horizontalAlign = "left"; this.paddingLeft = 0; this.paddingBottom = 0; this.paddingRight = 0; }; }; } } }//package
Section 337
//_popUpMenuStyle (_popUpMenuStyle) package { import mx.core.*; import mx.styles.*; public class _popUpMenuStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".popUpMenu"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".popUpMenu", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "normal"; this.textAlign = "left"; }; }; } } }//package
Section 338
//_richTextEditorTextAreaStyleStyle (_richTextEditorTextAreaStyleStyle) package { import mx.core.*; import mx.styles.*; public class _richTextEditorTextAreaStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".richTextEditorTextAreaStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".richTextEditorTextAreaStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 339
//_swatchPanelTextFieldStyle (_swatchPanelTextFieldStyle) package { import mx.core.*; import mx.styles.*; public class _swatchPanelTextFieldStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".swatchPanelTextField"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".swatchPanelTextField", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderStyle = "inset"; this.borderColor = 14015965; this.highlightColor = 12897484; this.backgroundColor = 0xFFFFFF; this.shadowCapColor = 14015965; this.shadowColor = 14015965; this.paddingLeft = 5; this.buttonColor = 7305079; this.borderCapColor = 9542041; this.paddingRight = 5; }; }; } } }//package
Section 340
//_textAreaHScrollBarStyleStyle (_textAreaHScrollBarStyleStyle) package { import mx.core.*; import mx.styles.*; public class _textAreaHScrollBarStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaHScrollBarStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".textAreaHScrollBarStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 341
//_textAreaVScrollBarStyleStyle (_textAreaVScrollBarStyleStyle) package { import mx.core.*; import mx.styles.*; public class _textAreaVScrollBarStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaVScrollBarStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".textAreaVScrollBarStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 342
//_todayStyleStyle (_todayStyleStyle) package { import mx.core.*; import mx.styles.*; public class _todayStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".todayStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".todayStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 0xFFFFFF; this.textAlign = "center"; }; }; } } }//package
Section 343
//_weekDayStyleStyle (_weekDayStyleStyle) package { import mx.core.*; import mx.styles.*; public class _weekDayStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".weekDayStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".weekDayStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.textAlign = "center"; }; }; } } }//package
Section 344
//_windowStatusStyle (_windowStatusStyle) package { import mx.core.*; import mx.styles.*; public class _windowStatusStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStatus"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".windowStatus", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 0x666666; }; }; } } }//package
Section 345
//_windowStylesStyle (_windowStylesStyle) package { import mx.core.*; import mx.styles.*; public class _windowStylesStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStyles"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".windowStyles", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 346
//Application (Application) package { import flash.events.*; import com.gamelion.*; import flash.display.*; import br.com.stimuli.loading.*; import com.gamelion.mp3player.*; import gs.*; import flash.text.*; import gs.easing.*; public class Application extends Sprite { private var sharpener:Bitmap; private var _menuMode:MenuMode; private var _background2:Bitmap; private var _currentBackground:Number; private var pencil:Bitmap; private var _soundPlayer:SoundPlayer; private var _highScoreListMode:HighscoreListMode; private var _gameMode:GameMode; private var _backButton:TextField; private var pencilMask:Shape; private var pencilShadow:Bitmap; private var _backgroundsDecorations:Array; private var _firstRun:Boolean; private var progress:Sprite; private var _backgroundContainer:Sprite; private var _menuTable:Bitmap; private var _loadedTables:Array; private var _backgrounds:Array; private var _mask:Sprite; private var _background:Bitmap; private var scrap:MovieClip; private var _gameTable1:Sprite; private var _gameTable2:Bitmap; private var _gameTable3:Bitmap; private var _gameTable4:Bitmap; private var _gameTable5:Bitmap; private var _bitmapsToLoad:Number; private var preloader:Sprite; private var _currentMode:ApplicationMode; private var _tmpStartGameEvent:StartNewGameEvent; public function Application(){ var tableBack:Bitmap; var i:Number; super(); _backgrounds = new Array(); _backgrounds.push(new Preloader.MENU_TABLE()); _backgrounds.push(new Bitmap()); _backgrounds.push(new Bitmap()); _backgrounds.push(new Bitmap()); _backgrounds.push(new Bitmap()); _backgrounds.push(new Bitmap()); _backgroundsDecorations = new Array(); _backgroundsDecorations.push(new Resources.MENU_DECO()); _backgroundsDecorations.push(new Bitmap()); _backgroundsDecorations.push(new Bitmap()); _backgroundsDecorations.push(new Bitmap()); _backgroundsDecorations.push(new Bitmap()); _backgroundsDecorations.push(new Resources.BUSSINES_CARD()); _loadedTables = [{backgroud:true, decoration:true}, {backgroud:false, decoration:false}, {backgroud:false, decoration:false}, {backgroud:false, decoration:false}, {backgroud:false, decoration:false}, {backgroud:false, decoration:true}]; _backgroundContainer = new Sprite(); _backgroundContainer.x = 400; _backgroundContainer.y = 440; addChild(_backgroundContainer); for each (tableBack in _backgrounds) { tableBack.smoothing = true; tableBack.x = -400; tableBack.y = -440; tableBack.alpha = 0; _backgroundContainer.addChild(tableBack); }; i = 0; while (i < 5) { if ((_backgroundsDecorations[i] is Bitmap)){ _backgroundsDecorations[i].smoothing = true; }; _backgroundsDecorations[i].x = (400 - _backgroundsDecorations[i].width); _backgroundsDecorations[i].y = (440 - _backgroundsDecorations[i].height); _backgroundsDecorations[i].alpha = 0; _backgroundContainer.addChild(_backgroundsDecorations[i]); i = (i + 1); }; _backgroundsDecorations[0].alpha = 0; _backgroundsDecorations[3].x = -400; _backgroundsDecorations[5].x = 100; _backgroundsDecorations[5].y = 290; _backgroundsDecorations[5].alpha = 0; _backgroundsDecorations[5].stop(); _backgroundContainer.addChild(_backgroundsDecorations[5]); try { _soundPlayer = SoundPlayer.getInstance(); _soundPlayer.x = -390; _soundPlayer.y = 156; _soundPlayer.addEventListener(Event.COMPLETE, onPlayerAdded, false, 0, true); } catch(e:Error) { }; _firstRun = true; _currentBackground = 0; _backgrounds[_currentBackground].alpha = 1; _background2 = new Resources.HEADPHONES(); _background2.smoothing = true; _background2.x = (-400 + 60); _background2.y = (440 - _background2.height); _mask = new Sprite(); _mask.graphics.beginFill(0); _mask.graphics.drawRect(0, 0, 800, 880); addChild(_mask); mask = _mask; TweenLite.to(_backgroundsDecorations[0], 1, {alpha:1, onComplete:startMenuMode}); } private function showMenu(_arg1:Event=null):void{ _menuMode = new MenuMode(this, _firstRun); _menuMode.addEventListener(StartNewGameEvent.START_NEW_GAME, onStartGame, false, 0, true); _menuMode.addEventListener(MenuMode.SHOW_HIGHSCORES, onShowHighscores, false, 0, true); _firstRun = false; changeMode(_menuMode); } private function onMouseOver(_arg1:MouseEvent):void{ _arg1.currentTarget.setTextFormat(new TextFormat("journalFont", _arg1.currentTarget.getTextFormat().size, 0, true, null, null, null, null, TextFormatAlign.CENTER)); } public function get backgroundContainer():Sprite{ return (_backgroundContainer); } private function showGame(_arg1:StartNewGameEvent):void{ _gameMode = null; _gameMode = new GameMode(this, _arg1.brickPatern, _arg1.level, _arg1.lines, _arg1.shadowBlockEnabled, _arg1.table); _gameMode.addEventListener(GameStageEvent.GAME_OVER, onGameOver, false, 0, true); _gameMode.addEventListener("displayMainMenu", startMenuMode, false, 0, true); _gameMode.addEventListener(GameStageEvent.QUIT_GAME, onQuitGame, false, 0, true); _gameMode.addEventListener(GameStageEvent.TABLE_COMPLETED, onTableCompleted, false, 0, true); stage.focus = _gameMode; _soundPlayer.play(); changeMode(_gameMode); } private function onAssetsLoadingComplete(_arg1:BulkProgressEvent):void{ var _local2:Number = _tmpStartGameEvent.table; var _local3:Bitmap = ((_arg1.currentTarget as BulkLoader).getContent("bg") as Bitmap); var _local4:Bitmap = ((_arg1.currentTarget as BulkLoader).getContent("deco") as Bitmap); if (_local2 == 0){ _local2 = 1; }; removeChild(preloader); if (_local3){ _backgrounds[_local2] = _local3; _backgrounds[_local2].smoothing = true; _backgrounds[_local2].x = -400; _backgrounds[_local2].y = -440; _backgrounds[_local2].alpha = 0; _backgroundContainer.addChild(_backgrounds[_local2]); _loadedTables[_local2].background = true; }; if (_local4){ _backgroundsDecorations[_local2] = _local4; _backgroundsDecorations[_local2].smoothing = true; _backgroundsDecorations[_local2].x = (400 - _backgroundsDecorations[_local2].width); _backgroundsDecorations[_local2].y = (440 - _backgroundsDecorations[_local2].height); _backgroundsDecorations[_local2].alpha = 0; _backgroundContainer.addChild(_backgroundsDecorations[_local2]); if (_local2 == 3){ _backgroundsDecorations[3].x = -400; }; _loadedTables[_local2].decoration = true; }; onStartGame(_tmpStartGameEvent); } private function showHighscores(_arg1:Event):void{ _highScoreListMode = new HighscoreListMode(this); _highScoreListMode.addEventListener(HighscoreListMode.BACK, onHighScoreModeExit, false, 0, true); changeMode(_highScoreListMode); } private function startMenuMode(_arg1:Event=null):void{ if (_currentBackground != 0){ swapBackgrounds([showMenu, _arg1]); } else { showMenu(_arg1); }; } private function swap(_arg1:Array):void{ var _local2:StartNewGameEvent; var _local3:Number; if ((_arg1[1] is StartNewGameEvent)){ _local2 = (_arg1[1] as StartNewGameEvent); _local3 = _local2.table; if (_local3 == 0){ _local3 = 1; }; TweenLite.to(_backgrounds[_currentBackground], 0.2, {alpha:0}); TweenLite.to(_backgroundsDecorations[_currentBackground], 0.2, {alpha:0}); TweenLite.to(_backgroundsDecorations[_local3], 0.2, {alpha:1}); TweenLite.to(_backgrounds[_local3], 0.2, {alpha:1, onComplete:zoomOut, onCompleteParams:[_arg1]}); _currentBackground = _local3; } else { TweenLite.to(_backgrounds[_currentBackground], 0.2, {alpha:0}); TweenLite.to(_backgroundsDecorations[_currentBackground], 0.2, {alpha:0}); TweenLite.to(_backgroundsDecorations[0], 0.2, {alpha:1}); TweenLite.to(_backgrounds[0], 0.2, {alpha:1, onComplete:zoomOut, onCompleteParams:[_arg1]}); _currentBackground = 0; }; } private function onPlayerAdded(_arg1:Event):void{ _soundPlayer.removeEventListener(Event.COMPLETE, onPlayerAdded); _soundPlayer.play(); } private function loadBackground(_arg1:Number):void{ var _local2:BulkLoader; var _local3:String; var _local4:String; switch (_arg1){ case 1: _local3 = "http://fac.game-lion.com/sketchblocks/assets/table/background.jpg"; break; case 2: _local3 = "http://fac.game-lion.com/sketchblocks/assets/kitchen/background.jpg"; break; case 3: _local3 = "http://fac.game-lion.com/sketchblocks/assets/majster/background.jpg"; break; case 4: _local3 = "http://fac.game-lion.com/sketchblocks/assets/girl/background.jpg"; break; case 5: _local3 = "http://fac.game-lion.com/sketchblocks/assets/business/background.jpg"; break; }; if (!_loadedTables[_arg1].decortion){ switch (_arg1){ case 1: _local4 = "http://fac.game-lion.com/sketchblocks/assets/table/deco_01.png"; break; case 2: _local4 = "http://fac.game-lion.com/sketchblocks/assets/kitchen/deco_01.png"; break; case 3: _local4 = "http://fac.game-lion.com/sketchblocks/assets/majster/deco_01.png"; break; case 4: _local4 = "http://fac.game-lion.com/sketchblocks/assets/girl/deco_01.png"; break; }; }; _local2 = new BulkLoader(Math.random().toString()); _local2.add(_local3, {id:"bg"}); if (_local4 != null){ _local2.add(_local4, {id:"deco"}); }; _local2.addEventListener(BulkProgressEvent.COMPLETE, onAssetsLoadingComplete); _local2.addEventListener(BulkProgressEvent.PROGRESS, onAssetsLoadingProgress); initPreloader(); _local2.start(); } private function onBusinessCardEnterFrame(_arg1:Event):void{ if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){ _backgroundsDecorations[5].stop(); _backgroundsDecorations[5].removeEventListener(Event.ENTER_FRAME, onBusinessCardEnterFrame); _backButton = new TextField(); _backButton.text = "Back"; _backButton.width = 100; _backButton.selectable = false; _backButton.setTextFormat(new TextFormat("journalFont", 45, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); _backButton.embedFonts = true; _backButton.wordWrap = true; _backButton.y = 700; _backButton.x = (400 - (0.5 * _backButton.width)); _backButton.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true); _backButton.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true); _backButton.addEventListener(MouseEvent.CLICK, onBussinesCardClick, false, 0, true); addChild(_backButton); }; } private function onDecorationComplete(_arg1:Event):void{ var _local2:Number = _tmpStartGameEvent.table; if (_local2 == 0){ _local2 = 1; }; removeChild(preloader); _backgroundsDecorations[_local2] = new Bitmap(_arg1.target.loader.contentLoaderInfo.content.bitmapData.clone()); _backgroundsDecorations[_local2].smoothing = true; _backgroundsDecorations[_local2].x = (400 - _backgroundsDecorations[_local2].width); _backgroundsDecorations[_local2].y = (440 - _backgroundsDecorations[_local2].height); _backgroundsDecorations[_local2].alpha = 0; _backgroundContainer.addChild(_backgroundsDecorations[_local2]); if (_local2 == 3){ _backgroundsDecorations[3].x = -400; }; _loadedTables[_local2].decoration = true; onStartGame(_tmpStartGameEvent); } private function onBussinesCardClick(_arg1:MouseEvent):void{ removeChild(_backButton); _backButton = null; _backgroundsDecorations[5].gotoAndStop(1); swapBackgrounds([showMenu, _arg1]); } private function onResult(_arg1:Object):void{ var _local2:String; for each (_local2 in _arg1) { trace(_local2); }; } private function onShowHighscores(_arg1:Event):void{ if (_currentBackground != 0){ swapBackgrounds([showHighscores, _arg1]); } else { showHighscores(_arg1); }; } private function onTableCompleted(_arg1:Event):void{ if (_currentBackground == 5){ _backgroundsDecorations[5].addEventListener(Event.ENTER_FRAME, onBusinessCardEnterFrame); _backgroundsDecorations[5].play(); } else { if (_currentBackground != 0){ swapBackgrounds([showAdventureModeMenu, _arg1]); } else { showAdventureModeMenu(_arg1); }; }; } private function onStartGame(_arg1:StartNewGameEvent):void{ var _local2:Number = _arg1.table; if (_local2 == 0){ _local2 = 1; }; if (((_loadedTables[_local2].background) && (_loadedTables[_local2]))){ if (_currentBackground == 0){ swapBackgrounds([showGame, _arg1]); } else { startMenuMode(); }; } else { _currentMode.visible = false; _tmpStartGameEvent = _arg1; loadBackground(_local2); }; } private function onGameOver(_arg1:GameStageEvent):void{ if (_arg1.adventureMode){ if (_currentBackground != 0){ swapBackgrounds([showAdventureModeMenu, _arg1]); } else { showAdventureModeMenu(_arg1); }; } else { onShowHighscores(_arg1); }; } private function progressLoaded(_arg1:ProgressEvent):void{ var percent:Number; var e = _arg1; try { percent = (e.bytesLoaded / e.bytesTotal); } catch(e:Error) { percent = 0; }; pencil.x = (128 + (percent * 400)); (progress.getChildByName("progress") as TextField).text = (("" + Math.round((percent * 100))) + "%"); } private function onQuitGame(_arg1:GameStageEvent):void{ if (_arg1.adventureMode){ if (_currentBackground != 0){ swapBackgrounds([showAdventureModeMenu, _arg1]); } else { showAdventureModeMenu(_arg1); }; } else { startMenuMode(); }; } private function onError(_arg1:Object):void{ trace("Error"); } private function showAdventureModeMenu(_arg1:Event):void{ _menuMode = new MenuMode(this, _firstRun, true); _menuMode.addEventListener(StartNewGameEvent.START_NEW_GAME, onStartGame, false, 0, true); _menuMode.addEventListener(MenuMode.SHOW_HIGHSCORES, onShowHighscores, false, 0, true); _firstRun = false; changeMode(_menuMode); } private function onAssetsLoadingProgress(_arg1:BulkProgressEvent):void{ var percent:Number; var e = _arg1; try { percent = (e.bytesLoaded / e.bytesTotal); } catch(e:Error) { percent = 0; }; pencil.x = (128 + (percent * 400)); (progress.getChildByName("progress") as TextField).text = (("" + Math.round((percent * 100))) + "%"); } private function onMouseOut(_arg1:MouseEvent):void{ _arg1.currentTarget.setTextFormat(new TextFormat("journalFont", _arg1.currentTarget.getTextFormat().size, 7367010, true, null, null, null, null, TextFormatAlign.CENTER)); } private function swapBackgrounds(_arg1:Array):void{ _currentMode.visible = false; TweenFilterLite.to(_backgroundContainer, 0.7, {scaleX:2.6, scaleY:2.6, onComplete:swap, onCompleteParams:[_arg1]}); } public function changeMode(_arg1:ApplicationMode):void{ if (_currentMode){ _currentMode.leave(); }; _currentMode = _arg1; _currentMode.enter(); _backgroundContainer.addChild(_backgroundsDecorations[_currentBackground]); _backgroundContainer.addChild(_background2); _backgroundContainer.addChild(_soundPlayer); } private function onHighScoreModeExit(_arg1:Event):void{ startMenuMode(); } private function zoomOut(_arg1:Array):void{ TweenFilterLite.to(_backgroundContainer, 1, {scaleX:1, scaleY:1, onComplete:_arg1[0], onCompleteParams:[_arg1[1]], overwrite:false}); } private function initPreloader():void{ preloader = new Sprite(); progress = new Preloader.PROGRESS(); progress.x = (400 - (progress.width / 2)); progress.y = ((568 - progress.height) - 5); (progress.getChildByName("progress") as TextField).text = (("" + 0) + "%"); preloader.addChild(progress); sharpener = new Preloader.SHARPENER(); sharpener.x = 580; sharpener.y = 450; sharpener.smoothing = true; preloader.addChild(sharpener); pencil = new Preloader.PENCIL(); pencil.x = 108; pencil.y = 468; pencil.smoothing = true; preloader.addChild(pencil); pencilShadow = new Preloader.PENCIL_SHADOW(); pencilShadow.x = 590; pencilShadow.y = 468; preloader.addChild(pencilShadow); pencilMask = new Shape(); pencilMask.graphics.beginFill(0); pencilMask.graphics.drawRect(0, 0, 500, pencil.height); pencilMask.x = 108; pencilMask.y = pencil.y; preloader.addChild(pencilMask); pencil.mask = pencilMask; scrap = new Preloader.SCRAP(); scrap.x = (sharpener.x + (1.3 * scrap.width)); scrap.y = (sharpener.y + 28); scrap.scaleX = -1; scrap.play(); preloader.addChild(scrap); addChild(preloader); } } }//package
Section 347
//en_US$core_properties (en_US$core_properties) package { import mx.resources.*; public class en_US$core_properties extends ResourceBundle { public function en_US$core_properties(){ super("en_US", "core"); } override protected function getContent():Object{ var _local1:Object = {multipleChildSets_ClassAndInstance:"Multiple sets of visual children have been specified for this component (component definition and component instance).", truncationIndicator:"...", notExecuting:"Repeater is not executing.", versionAlreadyRead:"Compatibility version has already been read.", multipleChildSets_ClassAndSubclass:"Multiple sets of visual children have been specified for this component (base component definition and derived component definition).", viewSource:"View Source", badFile:"File does not exist.", stateUndefined:"Undefined state '{0}'.", versionAlreadySet:"Compatibility version has already been set."}; return (_local1); } } }//package
Section 348
//en_US$effects_properties (en_US$effects_properties) package { import mx.resources.*; public class en_US$effects_properties extends ResourceBundle { public function en_US$effects_properties(){ super("en_US", "effects"); } override protected function getContent():Object{ var _local1:Object = {incorrectTrigger:"The Zoom effect can not be triggered by a moveEffect trigger.", incorrectSource:"Source property must be a Class or String."}; return (_local1); } } }//package
Section 349
//en_US$skins_properties (en_US$skins_properties) package { import mx.resources.*; public class en_US$skins_properties extends ResourceBundle { public function en_US$skins_properties(){ super("en_US", "skins"); } override protected function getContent():Object{ var _local1:Object = {notLoaded:"Unable to load '{0}'."}; return (_local1); } } }//package
Section 350
//en_US$styles_properties (en_US$styles_properties) package { import mx.resources.*; public class en_US$styles_properties extends ResourceBundle { public function en_US$styles_properties(){ super("en_US", "styles"); } override protected function getContent():Object{ var _local1:Object = {unableToLoad:"Unable to load style({0}): {1}."}; return (_local1); } } }//package

Library Items

Symbol 1 BitmapUsed by:2
Symbol 2 GraphicUses:1Used by:9
Symbol 3 BitmapUsed by:4
Symbol 4 GraphicUses:3Used by:9
Symbol 5 BitmapUsed by:6
Symbol 6 GraphicUses:5Used by:9
Symbol 7 BitmapUsed by:8
Symbol 8 GraphicUses:7Used by:9
Symbol 9 MovieClip {com.gamelion.Preloader_SCRAP} [Scrap]Uses:2 4 6 8
Symbol 10 Bitmap {com.gamelion.Preloader_GAMELION} [Gamelion]
Symbol 11 Bitmap {com.gamelion.Preloader_PRESENTS} [Presents]
Symbol 12 FontUsed by:13
Symbol 13 EditableTextUses:12 61Used by:14
Symbol 14 MovieClip {com.gamelion.Preloader_PROGRESS} [Progress]Uses:13
Symbol 15 Bitmap {com.gamelion.Preloader_SKETCH_BLOCKS} [Sketch_Blocks]
Symbol 16 Bitmap {com.gamelion.Preloader_MENU_TABLE}
Symbol 17 Bitmap {com.gamelion.Preloader_PENCIL_SHADOW}
Symbol 18 Bitmap {com.gamelion.Preloader_PENCIL}
Symbol 19 Bitmap {com.gamelion.Preloader_SHARPENER}
Symbol 20 Sound {com.gamelion.Resources_LINE_SOUND} [com.gamelion.Resources_LINE_SOUND]
Symbol 21 BitmapUsed by:22 89
Symbol 22 GraphicUses:21Used by:65
Symbol 23 BitmapUsed by:24 90
Symbol 24 GraphicUses:23Used by:65
Symbol 25 BitmapUsed by:26 91
Symbol 26 GraphicUses:25Used by:65
Symbol 27 BitmapUsed by:28 92
Symbol 28 GraphicUses:27Used by:65
Symbol 29 BitmapUsed by:30 93
Symbol 30 GraphicUses:29Used by:65
Symbol 31 BitmapUsed by:32 94
Symbol 32 GraphicUses:31Used by:65
Symbol 33 BitmapUsed by:34 95
Symbol 34 GraphicUses:33Used by:65
Symbol 35 BitmapUsed by:36 96
Symbol 36 GraphicUses:35Used by:65
Symbol 37 BitmapUsed by:38 97
Symbol 38 GraphicUses:37Used by:65
Symbol 39 BitmapUsed by:40 98
Symbol 40 GraphicUses:39Used by:65
Symbol 41 BitmapUsed by:42
Symbol 42 GraphicUses:41Used by:65
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:65
Symbol 45 BitmapUsed by:46
Symbol 46 GraphicUses:45Used by:65
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:65
Symbol 49 BitmapUsed by:50
Symbol 50 GraphicUses:49Used by:65
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:65
Symbol 53 BitmapUsed by:54
Symbol 54 GraphicUses:53Used by:65
Symbol 55 BitmapUsed by:56
Symbol 56 GraphicUses:55Used by:65
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:65
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:59Used by:65
Symbol 61 FontUsed by:13 62
Symbol 62 TextUses:61Used by:65
Symbol 63 BitmapUsed by:64
Symbol 64 GraphicUses:63Used by:65
Symbol 65 MovieClip {com.gamelion.Resources_GAME_OVER} [Game_Over]Uses:22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64
Symbol 66 BitmapUsed by:67 70
Symbol 67 GraphicUses:66Used by:87
Symbol 68 BitmapUsed by:69 71
Symbol 69 GraphicUses:68Used by:87
Symbol 70 GraphicUses:66Used by:87
Symbol 71 GraphicUses:68Used by:87
Symbol 72 BitmapUsed by:73
Symbol 73 GraphicUses:72Used by:87
Symbol 74 BitmapUsed by:75
Symbol 75 GraphicUses:74Used by:87
Symbol 76 BitmapUsed by:77
Symbol 77 GraphicUses:76Used by:87
Symbol 78 BitmapUsed by:79
Symbol 79 GraphicUses:78Used by:87
Symbol 80 BitmapUsed by:81 84 86
Symbol 81 GraphicUses:80Used by:87
Symbol 82 BitmapUsed by:83 85
Symbol 83 GraphicUses:82Used by:87
Symbol 84 GraphicUses:80Used by:87
Symbol 85 GraphicUses:82Used by:87
Symbol 86 GraphicUses:80Used by:87
Symbol 87 MovieClip {com.gamelion.Resources_FROG} [Frog]Uses:67 69 70 71 73 75 77 79 81 83 84 85 86
Symbol 88 Bitmap {com.gamelion.Resources_BRICK_STAR_ORANGE} [Brick_Star_Orange]
Symbol 89 GraphicUses:21Used by:105
Symbol 90 GraphicUses:23Used by:105
Symbol 91 GraphicUses:25Used by:105
Symbol 92 GraphicUses:27Used by:105
Symbol 93 GraphicUses:29Used by:105
Symbol 94 GraphicUses:31Used by:105
Symbol 95 GraphicUses:33Used by:105
Symbol 96 GraphicUses:35Used by:105
Symbol 97 GraphicUses:37Used by:105
Symbol 98 GraphicUses:39Used by:105
Symbol 99 BitmapUsed by:100
Symbol 100 GraphicUses:99Used by:105
Symbol 101 BitmapUsed by:102
Symbol 102 GraphicUses:101Used by:105
Symbol 103 BitmapUsed by:104
Symbol 104 GraphicUses:103Used by:105
Symbol 105 MovieClip {com.gamelion.Resources_WELL_DONE} [Well_Done]Uses:89 90 91 92 93 94 95 96 97 98 100 102 104
Symbol 106 Sound {com.gamelion.Resources_ROTATE_SOUND} [com.gamelion.Resources_ROTATE_SOUND]
Symbol 107 Bitmap {com.gamelion.Resources_BRICK_STAR_PINK} [Brick_Star_Pink]
Symbol 108 Bitmap {com.gamelion.Resources_BRICK_STAR_NAVY_BLUE} [Brick_Star_Navy_Blue]
Symbol 109 Sound {com.gamelion.Resources_DOCK_SOUND} [com.gamelion.Resources_DOCK_SOUND]
Symbol 110 BitmapUsed by:111
Symbol 111 GraphicUses:110Used by:142
Symbol 112 BitmapUsed by:113
Symbol 113 GraphicUses:112Used by:142
Symbol 114 BitmapUsed by:115
Symbol 115 GraphicUses:114Used by:142
Symbol 116 BitmapUsed by:117
Symbol 117 GraphicUses:116Used by:142
Symbol 118 BitmapUsed by:119
Symbol 119 GraphicUses:118Used by:142
Symbol 120 BitmapUsed by:121
Symbol 121 GraphicUses:120Used by:142
Symbol 122 BitmapUsed by:123
Symbol 123 GraphicUses:122Used by:142
Symbol 124 BitmapUsed by:125
Symbol 125 GraphicUses:124Used by:142
Symbol 126 BitmapUsed by:127
Symbol 127 GraphicUses:126Used by:142
Symbol 128 BitmapUsed by:129
Symbol 129 GraphicUses:128Used by:142
Symbol 130 BitmapUsed by:131
Symbol 131 GraphicUses:130Used by:142
Symbol 132 BitmapUsed by:133
Symbol 133 GraphicUses:132Used by:142
Symbol 134 BitmapUsed by:135
Symbol 135 GraphicUses:134Used by:142
Symbol 136 BitmapUsed by:137
Symbol 137 GraphicUses:136Used by:142
Symbol 138 BitmapUsed by:139
Symbol 139 GraphicUses:138Used by:142
Symbol 140 BitmapUsed by:141
Symbol 141 GraphicUses:140Used by:142
Symbol 142 MovieClip {com.gamelion.Resources_RABBIT} [Rabbit]Uses:111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141
Symbol 143 BitmapUsed by:144
Symbol 144 GraphicUses:143Used by:149
Symbol 145 BitmapUsed by:146
Symbol 146 GraphicUses:145Used by:149
Symbol 147 BitmapUsed by:148
Symbol 148 GraphicUses:147Used by:149
Symbol 149 MovieClip {com.gamelion.Resources_MENU} [Menu]Uses:144 146 148
Symbol 150 BitmapUsed by:151
Symbol 151 GraphicUses:150Used by:167 244
Symbol 152 BitmapUsed by:153
Symbol 153 GraphicUses:152Used by:167 244
Symbol 154 BitmapUsed by:155
Symbol 155 GraphicUses:154Used by:156
Symbol 156 MovieClipUses:155Used by:167 244
Symbol 157 BitmapUsed by:158
Symbol 158 GraphicUses:157Used by:167 244
Symbol 159 BitmapUsed by:160
Symbol 160 GraphicUses:159Used by:167 244
Symbol 161 BitmapUsed by:162
Symbol 162 GraphicUses:161Used by:167 244
Symbol 163 BitmapUsed by:164
Symbol 164 GraphicUses:163Used by:167 244
Symbol 165 BitmapUsed by:166
Symbol 166 GraphicUses:165Used by:167 244
Symbol 167 MovieClip {com.gamelion.Resources_GAMEFIELD_BACKGROUND_PL} [Stage_animcopy]Uses:151 153 156 158 160 162 164 166
Symbol 168 Sound {com.gamelion.Resources_MENU_SOUND} [com.gamelion.Resources_MENU_SOUND]
Symbol 169 BitmapUsed by:170
Symbol 170 GraphicUses:169Used by:190
Symbol 171 GraphicUsed by:183
Symbol 172 GraphicUsed by:175 178 181
Symbol 173 GraphicUsed by:175 178 181
Symbol 174 GraphicUsed by:175
Symbol 175 MovieClipUses:172 173 174Used by:183
Symbol 176 GraphicUsed by:183
Symbol 177 GraphicUsed by:178
Symbol 178 MovieClipUses:172 173 177Used by:183
Symbol 179 GraphicUsed by:183
Symbol 180 GraphicUsed by:181
Symbol 181 MovieClipUses:172 173 180Used by:183
Symbol 182 GraphicUsed by:183
Symbol 183 MovieClipUses:171 175 176 178 179 181 182Used by:190
Symbol 184 GraphicUsed by:190
Symbol 185 BitmapUsed by:186
Symbol 186 GraphicUses:185Used by:190
Symbol 187 FontUsed by:188 189
Symbol 188 EditableTextUses:187Used by:190
Symbol 189 EditableTextUses:187Used by:190
Symbol 190 MovieClip {com.gamelion.Resources_BUSSINES_CARD} [Bussines_Card]Uses:170 183 184 186 188 189
Symbol 191 Bitmap {com.gamelion.Resources_BRICK_STAR_GREEN} [Brick_Star_Green]
Symbol 192 Bitmap {com.gamelion.Resources_BRICK_STAR_YELLOW} [Brick_Star_Yellow]
Symbol 193 BitmapUsed by:194
Symbol 194 GraphicUses:193Used by:219
Symbol 195 BitmapUsed by:196
Symbol 196 GraphicUses:195Used by:219
Symbol 197 BitmapUsed by:198
Symbol 198 GraphicUses:197Used by:219
Symbol 199 BitmapUsed by:200
Symbol 200 GraphicUses:199Used by:219
Symbol 201 BitmapUsed by:202
Symbol 202 GraphicUses:201Used by:219
Symbol 203 BitmapUsed by:204
Symbol 204 GraphicUses:203Used by:219
Symbol 205 BitmapUsed by:206
Symbol 206 GraphicUses:205Used by:219
Symbol 207 BitmapUsed by:208
Symbol 208 GraphicUses:207Used by:219
Symbol 209 BitmapUsed by:210
Symbol 210 GraphicUses:209Used by:219
Symbol 211 BitmapUsed by:212
Symbol 212 GraphicUses:211Used by:219
Symbol 213 BitmapUsed by:214
Symbol 214 GraphicUses:213Used by:219
Symbol 215 BitmapUsed by:216
Symbol 216 GraphicUses:215Used by:219
Symbol 217 BitmapUsed by:218
Symbol 218 GraphicUses:217Used by:219
Symbol 219 MovieClip {com.gamelion.Resources_ELEPHANT} [Elephant]Uses:194 196 198 200 202 204 206 208 210 212 214 216 218
Symbol 220 Bitmap {com.gamelion.Resources_BRICK_STAR_BLUE} [Brick_Star_Blue]
Symbol 221 BitmapUsed by:222
Symbol 222 GraphicUses:221Used by:243
Symbol 223 BitmapUsed by:224
Symbol 224 GraphicUses:223Used by:243
Symbol 225 BitmapUsed by:226
Symbol 226 GraphicUses:225Used by:243
Symbol 227 BitmapUsed by:228
Symbol 228 GraphicUses:227Used by:243
Symbol 229 BitmapUsed by:230
Symbol 230 GraphicUses:229Used by:243
Symbol 231 BitmapUsed by:232
Symbol 232 GraphicUses:231Used by:243
Symbol 233 BitmapUsed by:234
Symbol 234 GraphicUses:233Used by:243
Symbol 235 BitmapUsed by:236
Symbol 236 GraphicUses:235Used by:243
Symbol 237 BitmapUsed by:238
Symbol 238 GraphicUses:237Used by:243
Symbol 239 BitmapUsed by:240
Symbol 240 GraphicUses:239Used by:243
Symbol 241 BitmapUsed by:242
Symbol 242 GraphicUses:241Used by:243
Symbol 243 MovieClip {com.gamelion.Resources_DOLPHIN} [Dolphin]Uses:222 224 226 228 230 232 234 236 238 240 242
Symbol 244 MovieClip {com.gamelion.Resources_GAMEFIELD_BACKGROUND} [Stage_anim]Uses:151 153 156 158 160 162 164 166
Symbol 245 BitmapUsed by:246
Symbol 246 GraphicUses:245Used by:265
Symbol 247 BitmapUsed by:248
Symbol 248 GraphicUses:247Used by:265
Symbol 249 BitmapUsed by:250
Symbol 250 GraphicUses:249Used by:265
Symbol 251 BitmapUsed by:252
Symbol 252 GraphicUses:251Used by:265
Symbol 253 BitmapUsed by:254
Symbol 254 GraphicUses:253Used by:265
Symbol 255 BitmapUsed by:256
Symbol 256 GraphicUses:255Used by:265
Symbol 257 BitmapUsed by:258
Symbol 258 GraphicUses:257Used by:265
Symbol 259 BitmapUsed by:260
Symbol 260 GraphicUses:259Used by:265
Symbol 261 BitmapUsed by:262
Symbol 262 GraphicUses:261Used by:265
Symbol 263 BitmapUsed by:264
Symbol 264 GraphicUses:263Used by:265
Symbol 265 MovieClip {com.gamelion.Resources_MONKEY} [Monkey]Uses:246 248 250 252 254 256 258 260 262 264
Symbol 266 BitmapUsed by:267
Symbol 267 GraphicUses:266Used by:288
Symbol 268 BitmapUsed by:269
Symbol 269 GraphicUses:268Used by:288
Symbol 270 BitmapUsed by:271
Symbol 271 GraphicUses:270Used by:288
Symbol 272 BitmapUsed by:273
Symbol 273 GraphicUses:272Used by:288
Symbol 274 BitmapUsed by:275
Symbol 275 GraphicUses:274Used by:288
Symbol 276 BitmapUsed by:277
Symbol 277 GraphicUses:276Used by:288
Symbol 278 BitmapUsed by:279
Symbol 279 GraphicUses:278Used by:288
Symbol 280 BitmapUsed by:281
Symbol 281 GraphicUses:280Used by:288
Symbol 282 BitmapUsed by:283
Symbol 283 GraphicUses:282Used by:288
Symbol 284 BitmapUsed by:285
Symbol 285 GraphicUses:284Used by:288
Symbol 286 BitmapUsed by:287
Symbol 287 GraphicUses:286Used by:288
Symbol 288 MovieClip {com.gamelion.Resources_SNAIL} [Snail]Uses:267 269 271 273 275 277 279 281 283 285 287
Symbol 289 Bitmap {com.gamelion.Resources_BRICK_STAR_RED} [Brick_Star_Red]
Symbol 290 Bitmap {com.gamelion.Resources_BRICK_STAR} [Brick_Star]
Symbol 291 Bitmap {com.gamelion.Resources_HOUSE}
Symbol 292 Bitmap {com.gamelion.Resources_BACKGROUND}
Symbol 293 Bitmap {com.gamelion.Resources_YELLOW}
Symbol 294 Bitmap {com.gamelion.Resources_BRICK_CIRCLE_PINK}
Symbol 295 Bitmap {com.gamelion.mp3player.Resources_MINUS_PRESSED}
Symbol 296 Bitmap {com.gamelion.mp3player.Resources_FORWARD_OVER}
Symbol 297 Bitmap {com.gamelion.mp3player.Resources_SPEAKER_OVER}
Symbol 298 Bitmap {com.gamelion.Resources_LOCKED_SMALL}
Symbol 299 Bitmap {com.gamelion.mp3player.Resources_MINUS_OVER}
Symbol 300 Bitmap {com.gamelion.mp3player.Resources_SPEAKER_UP}
Symbol 301 Bitmap {com.gamelion.Resources_BRICK_RHOMB_BLUE}
Symbol 302 Bitmap {com.gamelion.Resources_BRICK_EMPTY}
Symbol 303 Bitmap {com.gamelion.Resources_BRICK_CIRCLE_RED}
Symbol 304 Bitmap {com.gamelion.Resources_BRICK_RHOMB_GREEN}
Symbol 305 Bitmap {com.gamelion.Resources_BRICK_CLASSIC_GREEN}
Symbol 306 Bitmap {com.gamelion.Resources_BRICK_EMPTY_BLUE}
Symbol 307 Bitmap {com.gamelion.mp3player.Resources_MINUS_UP}
Symbol 308 Bitmap {com.gamelion.mp3player.Resources_BACKWARD_UP}
Symbol 309 Bitmap {com.gamelion.Resources_MENU_DECO}
Symbol 310 Bitmap {com.gamelion.Resources_RED}
Symbol 311 Bitmap {com.gamelion.Resources_PENCIL1}
Symbol 312 Bitmap {com.gamelion.Resources_ADVENTURE_MODE_HUD}
Symbol 313 Bitmap {com.gamelion.mp3player.Resources_FORWARD_PRESSED}
Symbol 314 Bitmap {com.gamelion.Resources_HEADPHONES}
Symbol 315 Bitmap {com.gamelion.Resources_BRICK_EMPTY_BROWN}
Symbol 316 Bitmap {com.gamelion.Resources_BRICK_RHOMB_NAVY_BLUE}
Symbol 317 Bitmap {com.gamelion.Resources_BRICK_RHOMB_BROWN}
Symbol 318 Bitmap {com.gamelion.Resources_BRICK_CIRCLE_YELLOW}
Symbol 319 Bitmap {com.gamelion.Resources_BRICK_EMPTY_PINK}
Symbol 320 Font {com.gamelion.mp3player.Resources_OCR_FONT}
Symbol 321 Bitmap {com.gamelion.Resources_RED_CIRCLE}
Symbol 322 Bitmap {com.gamelion.mp3player.Resources_BACKWARD_OVER}
Symbol 323 Bitmap {com.gamelion.Resources_INSTRUCTIONS}
Symbol 324 Bitmap {com.gamelion.Resources_NAVY_BLUE}
Symbol 325 Bitmap {com.gamelion.Resources_BRICK_RHOMB}
Symbol 326 Bitmap {com.gamelion.mp3player.Resources_PLUS_OVER}
Symbol 327 Bitmap {com.gamelion.mp3player.Resources_SPEAKER_PRESSED}
Symbol 328 Bitmap {com.gamelion.Resources_GREEN_BAR}
Symbol 329 Bitmap {com.gamelion.mp3player.Resources_FORWARD_UP}
Symbol 330 Bitmap {com.gamelion.Resources_PLAIN}
Symbol 331 Bitmap {com.gamelion.Resources_BRICK_EMPTY_NAVY_BLUE}
Symbol 332 Font {com.gamelion.Resources_VERDANA}
Symbol 333 Bitmap {com.gamelion.Resources_BRICK_EMPTY_ORANGE}
Symbol 334 Bitmap {com.gamelion.Resources_BRICK_CIRCLE_BLUE}
Symbol 335 Bitmap {com.gamelion.Resources_BRICK_CLASSIC_BLUE}
Symbol 336 Bitmap {com.gamelion.Resources_PLAY_LION_LOGO}
Symbol 337 Bitmap {com.gamelion.Resources_LOCKED_BIG}
Symbol 338 Bitmap {com.gamelion.Resources_BRICK_CLASSIC}
Symbol 339 Bitmap {com.gamelion.Resources_YELLOW_BAR}
Symbol 340 Bitmap {com.gamelion.Resources_BACKGROUND2}
Symbol 341 Bitmap {com.gamelion.Resources_BRICK_RHOMB_RED}
Symbol 342 Bitmap {com.gamelion.mp3player.Resources_PLUS_UP}
Symbol 343 Bitmap {com.gamelion.Resources_BRICK_EMPTY_RED}
Symbol 344 Bitmap {com.gamelion.mp3player.Resources_PLAY_OVER}
Symbol 345 Bitmap {com.gamelion.Resources_TABLE3}
Symbol 346 Bitmap {com.gamelion.Resources_TABLE4}
Symbol 347 Bitmap {com.gamelion.Resources_TABLE1}
Symbol 348 Bitmap {com.gamelion.Resources_TABLE2}
Symbol 349 Bitmap {com.gamelion.Resources_BRICK_CLASSIC_PINK}
Symbol 350 Bitmap {com.gamelion.Resources_BRICK_CIRCLE_NAVY_BLUE}
Symbol 351 Bitmap {com.gamelion.Resources_TABLE5}
Symbol 352 Bitmap {com.gamelion.Resources_BRICK_CLASSIC_NAVY_BLUE}
Symbol 353 Bitmap {com.gamelion.Resources_BRICK_CLASSIC_YELLOW}
Symbol 354 Bitmap {com.gamelion.Resources_BRICK_CIRCLE_GREEN}
Symbol 355 Bitmap {com.gamelion.Resources_BRICK_CLASSIC_BROWN}
Symbol 356 Bitmap {com.gamelion.Resources_BRICK_EMPTY_YELLOW}
Symbol 357 Bitmap {com.gamelion.Resources_BRICK_CIRCLE_ORANGE}
Symbol 358 Bitmap {com.gamelion.mp3player.Resources_PLAY_PRESSED}
Symbol 359 Bitmap {com.gamelion.mp3player.Resources_PLUS_PRESSED}
Symbol 360 Bitmap {com.gamelion.Resources_BRICK_EMPTY_GREEN}
Symbol 361 Bitmap {com.gamelion.Resources_BRICK_RHOMB_ORANGE}
Symbol 362 Bitmap {com.gamelion.Resources_BRICK_RHOMB_PINK}
Symbol 363 Bitmap {com.gamelion.Resources_RED_BAR}
Symbol 364 Bitmap {com.gamelion.Resources_BRICK_CIRCLE_BROWN}
Symbol 365 Bitmap {com.gamelion.Resources_BRICK_CLASSIC_RED}
Symbol 366 Bitmap {com.gamelion.Resources_BRICK_RHOMB_YELLOW}
Symbol 367 Bitmap {com.gamelion.mp3player.Resources_BACKWARD_PRESSED}
Symbol 368 Bitmap {com.gamelion.Resources_BRICK_CIRCLE}
Symbol 369 Bitmap {com.gamelion.Resources_BLUE}
Symbol 370 Bitmap {com.gamelion.Resources_ORANGE}
Symbol 371 Bitmap {com.gamelion.Resources_WORKSPACE}
Symbol 372 Bitmap {com.gamelion.Resources_FRAME}
Symbol 373 Bitmap {com.gamelion.Resources_GREEN}
Symbol 374 Bitmap {com.gamelion.Resources_BRICK_CLASSIC_ORANGE}
Symbol 375 Bitmap {com.gamelion.mp3player.Resources_PLAY_UP}
Symbol 376 Bitmap {com.gamelion.mp3player.Resources_PLAYER_MAIN}

Instance Names

"progress"Symbol 14 MovieClip {com.gamelion.Preloader_PROGRESS} [Progress] Frame 1Symbol 13 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1457 bytes "<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns ..."
ScriptLimits (65)Timeline Frame 1MaxRecursionDepth: 1000, ScriptTimeout: 60 seconds
ExportAssets (56)Timeline Frame 1Symbol 9 as "Scrap"
ExportAssets (56)Timeline Frame 1Symbol 10 as "Gamelion"
ExportAssets (56)Timeline Frame 1Symbol 11 as "Presents"
ExportAssets (56)Timeline Frame 1Symbol 14 as "Progress"
ExportAssets (56)Timeline Frame 1Symbol 15 as "Sketch_Blocks"
ExportAssets (56)Timeline Frame 2Symbol 20 as "com.gamelion.Resources_LINE_SOUND"
ExportAssets (56)Timeline Frame 2Symbol 65 as "Game_Over"
ExportAssets (56)Timeline Frame 2Symbol 87 as "Frog"
ExportAssets (56)Timeline Frame 2Symbol 88 as "Brick_Star_Orange"
ExportAssets (56)Timeline Frame 2Symbol 105 as "Well_Done"
ExportAssets (56)Timeline Frame 2Symbol 106 as "com.gamelion.Resources_ROTATE_SOUND"
ExportAssets (56)Timeline Frame 2Symbol 107 as "Brick_Star_Pink"
ExportAssets (56)Timeline Frame 2Symbol 108 as "Brick_Star_Navy_Blue"
ExportAssets (56)Timeline Frame 2Symbol 109 as "com.gamelion.Resources_DOCK_SOUND"
ExportAssets (56)Timeline Frame 2Symbol 142 as "Rabbit"
ExportAssets (56)Timeline Frame 2Symbol 149 as "Menu"
ExportAssets (56)Timeline Frame 2Symbol 167 as "Stage_animcopy"
ExportAssets (56)Timeline Frame 2Symbol 168 as "com.gamelion.Resources_MENU_SOUND"
ExportAssets (56)Timeline Frame 2Symbol 190 as "Bussines_Card"
ExportAssets (56)Timeline Frame 2Symbol 191 as "Brick_Star_Green"
ExportAssets (56)Timeline Frame 2Symbol 192 as "Brick_Star_Yellow"
ExportAssets (56)Timeline Frame 2Symbol 219 as "Elephant"
ExportAssets (56)Timeline Frame 2Symbol 220 as "Brick_Star_Blue"
ExportAssets (56)Timeline Frame 2Symbol 243 as "Dolphin"
ExportAssets (56)Timeline Frame 2Symbol 244 as "Stage_anim"
ExportAssets (56)Timeline Frame 2Symbol 265 as "Monkey"
ExportAssets (56)Timeline Frame 2Symbol 288 as "Snail"
ExportAssets (56)Timeline Frame 2Symbol 289 as "Brick_Star_Red"
ExportAssets (56)Timeline Frame 2Symbol 290 as "Brick_Star"
SerialNumber (41)Timeline Frame 1

Labels

"com_gamelion_Preloader"Frame 1
"Application"Frame 2




http://swfchan.com/10/47540/info.shtml
Created: 1/5 -2019 15:45:33 Last modified: 1/5 -2019 15:45:33 Server time: 23/12 -2024 01:01:59