Section 1
//AppProperties (iilwy.application.AppProperties)
package iilwy.application {
public final class AppProperties {
public static const VERSION_EXTERNALARCADE:String = "externalarcade";
public static const MERB_SERVER_TEST:String = "http://testapi.iminlikewithyou.com/";
public static const MODE_NOT_DEBUGGING:String = "mode_NotDebugging";
public static const ENV_DEVELOPMENT:String = "development";
public static const VERSION_OSARCADE:String = "osarcade";
public static const MODE_REMOTE_DEBUGGING:String = "mode_Remote_Debugging";
public static const MODE_LOCAL_DEBUGGING:String = "mode_LocalDebugging";
public static const SERVER_LOCAL:String = "http://localhost:3000/";
public static const MERB_SERVER_DEV:String = "http://dev.local:4000/";
public static const MERB_SERVER_LOCAL:String = "http://localhost:3000/";
public static const SERVER_CHARLES:String = "http://setpixelmbp.local:4000/";
public static const ENV_PRODUCTION:String = "production";
public static const SERVER_LIVE:String = "http://iminlikewithyou.com/";
public static const MERB_SERVER_LIVE:String = "http://api.iminlikewithyou.com/";
public static const VERSION_FBARCADE:String = "fbarcade";
public static const VERSION_WEBSITE:String = "website";
public static const SERVER_DEV:String = "http://dev.local:3000/";
public static var fileServerFlashDev:String = "http://flash.dev.iminlikewithyou.com/";
public static var docLocation:String;
public static var buildVersion:String = "0";
public static var environment:String = AppProperties.ENV_PRODUCTION;
public static var debugMode:String = AppProperties.MODE_NOT_DEBUGGING;
public static var localGamesDir:String = "../../games/";
public static var serverLocation:String = SERVER_LIVE;
public static var localStaticDir:String = "../../../static/";
public static var merbLocation:String = MERB_SERVER_LIVE;
public static var origin:String = "iminlikewithyou";
public static var fileServerMedia:String = "http://mediacdn.iminlikewithyou.com/";
public static var mediaServer:String = "http://video.iilwy.com/";
public static var serverLocationUseJS:Boolean = false;
public static var serverLocationJS:String = "";
public static var appVersion:String = VERSION_WEBSITE;
public static function get fileServerStatic():String{
if ((((_slot1.debugMode == MODE_LOCAL_DEBUGGING)) || ((_slot1.debugMode == MODE_REMOTE_DEBUGGING)))){
return ("http://static.iminlikewithyou.com/");
};
return ("http://staticcdn.iminlikewithyou.com/");
}
public static function get fileServerFlash():String{
if ((((_slot1.debugMode == MODE_LOCAL_DEBUGGING)) || ((_slot1.debugMode == MODE_REMOTE_DEBUGGING)))){
return ("http://flash.iminlikewithyou.com/");
};
return ("http://flashcdn.iminlikewithyou.com/");
}
public static function get fileServerStaticOrLocal():String{
if (_slot1.debugMode == MODE_LOCAL_DEBUGGING){
return (localStaticDir);
};
return (fileServerStatic);
}
}
}//package iilwy.application
Section 2
//Style (iilwy.ui.themes.Style)
package iilwy.ui.themes {
import flash.text.*;
public dynamic class Style {
public var iconAlign:String;
public var _descriptor:Object;
public var error;
public var listBackgroundColorEven:Number;
public var gradientColor:Number;
public var marginRight:Number;
public var itemStyleId:String;
public var buttonStyleId:String;
public var border3Color:Number;
public var selectedOver;
public var paneStyle:Style;
public var capType:String;
public var styleSheet:StyleSheet;
public var disabledSelected;
public var type:String;
public var titleStyleId:String;
public var listBackgroundColor2Parent:Number;
public var cornerRadius:Number;
public var fontFace:String;
public var borderSize:Number;
public var fontColor:Number;
public var itemStyle:Style;
public var minimumWidth:Number;
public var listBackgroundColorOdd:Number;
public var iconColor:Number;
public var listBackgroundColor2Even:Number;
public var focused;
public var marginBottom:Number;
public var listBackgroundColor2Odd:Number;
public var border2Color:Number;
public var itemPadding:Number;
public var disabledOver;
public var disabled;
public var paddingTop:Number;
public var backgroundGradient:Array;
public var paddingRight:Number;
public var foregroundGradient:Array;
public var borderColor:Number;
public var up;
public var paddingBottom:Number;
public var fullyQualifiedName:String;
public var buttonStyle:Style;
public var down;
public var windowStyleId:String;
public var disabledSelectedOver;
public var name:String;
public var hilightColor:Number;
public var embedFonts:Boolean;// = true
public var selected;
public var paddingLeft:Number;
public var accentColor:Number;
public var border4Color:Number;
public var unfocused;
public var fontLeading:String;
public var marginTop:Number;
public var _parent:Style;
public var backgroundColor:Number;
public var over;
public var marginLeft:Number;
public var border1Color:Number;
public var foregroundColor:Number;
public var listBackgroundColorParent:Number;
public var minimumHeight:Number;
public var fontThickness:Number;
public var focusedOver;
public var fontSize:Number;
public var dashColor:Number;
public var contentStyleId:String;
public var fontAlign:String;
public static var staticCount:int = 0;
public function Style(_arg1:String, _arg2:Object, _arg3:Style, _arg4:Theme){
var prop:String;
var s:Style;
var name = _arg1;
var descriptor = _arg2;
var parent = _arg3;
var theme = _arg4;
super();
_parent = parent;
_descriptor = descriptor;
this.name = name;
this.fullyQualifiedName = ((_parent == null)) ? ((theme.name + "-") + this.name) : ((_parent.fullyQualifiedName + "-") + this.name);
if (parent != null){
for (prop in parent._descriptor) {
if (((!((prop == "states"))) && (!((prop == "styles"))))){
copyProperty(prop, parent);
};
};
};
for (prop in descriptor) {
if (((!((prop == "states"))) && (!((prop == "styles"))))){
copyProperty(prop, descriptor);
};
};
if (descriptor.styles){
for (prop in descriptor.styles) {
try {
s = new Style(prop, descriptor.styles[prop], this, theme);
this[prop] = s;
} catch(e:Error) {
};
};
};
if (descriptor.states){
for (prop in descriptor.states) {
try {
s = new Style(prop, descriptor.states[prop], this, theme);
this[prop] = s;
} catch(e:Error) {
};
};
};
if (descriptor.css){
styleSheet = new StyleSheet();
styleSheet.parseCSS(descriptor.css);
};
}
public function copyProperty(_arg1:String, _arg2:Object):void{
var prop = _arg1;
var source = _arg2;
try {
this[prop] = source[prop];
} catch(e:Error) {
};
}
public function get textFormat():TextFormat{
var _local1:String = ((fontFace == null)) ? "aveneirLight" : fontFace;
var _local2:TextFormat = new TextFormat(_local1, fontSize, fontColor);
_local2.align = fontAlign;
_local2.leading = fontLeading;
return (_local2);
}
}
}//package iilwy.ui.themes
Section 3
//Theme (iilwy.ui.themes.Theme)
package iilwy.ui.themes {
public class Theme {
private var _styles:Array;
private var _colorNames:Array;
protected var _themeDescriptors:Array;
public var name:String;// = ""
private var _combinedDescriptor:Object;
public function Theme(_arg1:String){
_themeDescriptors = [];
super();
this.name = _arg1;
process();
}
protected function mixDescriptor_recursive(_arg1, _arg2):void{
var _local3:String;
var _local4:*;
var _local5:Boolean;
for (_local3 in _arg2) {
if (_arg1[_local3] == null){
_arg1[_local3] = _arg2[_local3];
} else {
_local4 = _arg2[_local3];
_local5 = (((((_local4 is String)) || ((_local4 is Array)))) || ((_local4 is Number)));
if (_local5){
_arg1[_local3] = _arg2[_local3];
} else {
mixDescriptor_recursive(_arg1[_local3], _arg2[_local3]);
};
};
};
}
protected function defineDescriptor():void{
}
protected function defineProperties():void{
}
protected function process():void{
defineProperties();
defineDescriptor();
processDescriptor();
}
public function mixDescriptor(_arg1):void{
mixDescriptor_recursive(_combinedDescriptor.styles, _arg1.styles);
}
public function getStyle(_arg1:String):Style{
var _local2:Style = _styles[_arg1];
if (_local2 == null){
_local2 = _styles["noStyle"];
};
return (_local2);
}
private function processDescriptor():void{
var _local1:String;
var _local2:*;
_combinedDescriptor = _themeDescriptors.shift();
if (_themeDescriptors.length > 0){
do {
_local2 = _themeDescriptors.shift();
mixDescriptor(_local2);
} while (_themeDescriptors.length > 0);
};
_styles = new Array();
for (_local1 in _combinedDescriptor.styles) {
_styles[_local1] = new Style(_local1, _combinedDescriptor.styles[_local1], null, this);
};
_themeDescriptors = null;
_combinedDescriptor = null;
}
}
}//package iilwy.ui.themes
Section 4
//GraphicUtil (iilwy.utils.GraphicUtil)
package iilwy.utils {
import flash.display.*;
import flash.geom.*;
public class GraphicUtil {
public static function fitInto(_arg1:DisplayObject, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{
var _local6:Number = (_arg1.width / _arg1.height);
_arg1.height = _arg5;
_arg1.width = (_arg5 * _local6);
if (_arg1.width > _arg4){
_local6 = (_arg1.height / _arg1.width);
_arg1.width = _arg4;
_arg1.height = (_arg4 * _local6);
};
_arg1.x = ((_arg2 + (_arg4 / 2)) - (_arg1.width / 2));
_arg1.y = ((_arg3 + (_arg5 / 2)) - (_arg1.height / 2));
}
public static function setColor(_arg1:DisplayObject, _arg2:Number):void{
var _local3:ColorTransform = new ColorTransform();
_local3.color = _arg2;
_arg1.transform.colorTransform = _local3;
var _local4:Number = getAlpha(_arg2);
if (_local4 != _arg1.alpha){
_arg1.alpha = _local4;
};
}
public static function makeBitmapSprite(_arg1:Sprite, _arg2:Number, _arg3:Number):Sprite{
var _local4:BitmapData = new BitmapData(_arg2, _arg3, true, 0xFFFFFF);
_local4.draw(_arg1);
var _local5:Bitmap = new Bitmap(_local4);
var _local6:Sprite = new Sprite();
_local6.addChild(_local5);
return (_local6);
}
public static function fillInto(_arg1:DisplayObject, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{
var _local6:Number = (_arg1.width / _arg1.height);
_arg1.height = _arg5;
_arg1.width = (_arg5 * _local6);
if (_arg1.width < _arg4){
_local6 = (_arg1.height / _arg1.width);
_arg1.width = _arg4;
_arg1.height = (_arg4 * _local6);
};
_arg1.x = ((_arg2 + (_arg4 / 2)) - (_arg1.width / 2));
_arg1.y = ((_arg3 + (_arg5 / 2)) - (_arg1.height / 2));
}
public static function getChannels(_arg1:Number):Object{
var _local2:Object = {};
_local2.blue = (_arg1 % 0x0100);
_local2.green = ((_arg1 >>> 8) % 0x0100);
_local2.red = ((_arg1 >>> 16) % 0x0100);
_local2.alpha = ((_arg1 >>> 24) % 0x0100);
return (_local2);
}
public static function mixColor(_arg1:Number, _arg2:Number, _arg3:Number):Number{
var _local4:Object = getChannels(_arg1.valueOf());
var _local5:Object = getChannels(_arg2.valueOf());
_local4.red = ((_local4.red * (1 - _arg3)) + (_local5.red * _arg3));
_local4.green = ((_local4.green * (1 - _arg3)) + (_local5.green * _arg3));
_local4.blue = ((_local4.blue * (1 - _arg3)) + (_local5.blue * _arg3));
_local4.alpha = ((_local4.alpha * (1 - _arg3)) + (_local5.alpha * _arg3));
return (setChannels(_local4));
}
public static function getAlpha(_arg1:Number):Number{
var _local2:Number = (((_arg1 >>> 24) % 0x0100) / 0xFF);
if (_local2 == 0){
_local2 = 1;
};
return (_local2);
}
private static function getParentChainRecursor(_arg1:DisplayObject, _arg2:Array):void{
_arg2.unshift(_arg1);
if (_arg1.parent != null){
getParentChainRecursor(_arg1.parent, _arg2);
};
}
public static function setColorNotAlpha(_arg1:DisplayObject, _arg2:Number):void{
var _local3:ColorTransform = new ColorTransform();
_local3.color = _arg2;
_arg1.transform.colorTransform = _local3;
}
public static function makeBitmapData(_arg1:Sprite, _arg2:Number, _arg3:Number):BitmapData{
var _local4:BitmapData = new BitmapData(Math.max(1, _arg2), Math.max(1, _arg3), true, 0xFFFFFF);
_local4.draw(_arg1);
return (_local4);
}
public static function getParentChain(_arg1:DisplayObject):Array{
var _local2:Array = new Array();
getParentChainRecursor(_arg1, _local2);
return (_local2);
}
public static function horizontalDottedLine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0, _arg5:Number=1, _arg6:Number=1):Sprite{
var _local7:Sprite = new Sprite();
var _local8:Number = _arg3;
var _local9:Number = _arg2;
var _local10:Number = _arg1;
_local7.graphics.lineStyle(_arg5, _arg4, _arg6);
_local7.graphics.moveTo(_arg1, _local8);
var _local11:Number = 1;
while (_local11 < _local9) {
_local10 = (_local10 + 2);
if (_local10 >= _local9){
_local10 = _local9;
_local11 = _local9;
};
_local7.graphics.lineTo(_local10, _local8);
_local10 = (_local10 + 2);
_local7.graphics.moveTo(_local10, _local8);
_local11++;
};
return (_local7);
}
public static function setChannels(_arg1:Object):Number{
var _local2:uint;
_local2 = (_local2 + _arg1.blue);
_local2 = (_local2 + (_arg1.green << 8));
_local2 = (_local2 + (_arg1.red << 16));
_local2 = (_local2 + (_arg1.alpha << 24));
return (_local2);
}
public static function verticalDottedLine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0, _arg5:Number=1, _arg6:Number=1):Sprite{
var _local7:Sprite = new Sprite();
var _local8:Number = _arg3;
var _local9:Number = _arg2;
var _local10:Number = _arg1;
_local7.graphics.lineStyle(_arg5, _arg4, _arg6);
_local7.graphics.moveTo(_local8, _local10);
var _local11:Number = 1;
while (_local11 < _local9) {
_local10 = (_local10 + 2);
if (_local10 >= _local9){
_local10 = _local9;
_local11 = _local9;
};
_local7.graphics.lineTo(_local8, _local10);
_local10 = (_local10 + 2);
_local7.graphics.moveTo(_local8, _local10);
_local11++;
};
return (_local7);
}
public static function centerInto(_arg1:DisplayObject, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Boolean=false):void{
_arg1.x = ((_arg2 + (_arg4 / 2)) - (_arg1.width / 2));
_arg1.y = ((_arg3 + (_arg5 / 2)) - (_arg1.height / 2));
if (_arg6){
_arg1.x = Math.round(_arg1.x);
_arg1.y = Math.round(_arg1.y);
};
}
public static function horizontalDottedLineRender(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=1, _arg7:Number=1):void{
var _local8:Sprite = _arg1;
var _local9:Number = _arg4;
var _local10:Number = _arg3;
var _local11:Number = _arg2;
_local8.graphics.lineStyle(_arg6, _arg5, _arg7);
_local8.graphics.moveTo(_arg2, _local9);
var _local12:Number = 1;
while (_local12 < _local10) {
_local11 = (_local11 + 2);
if (_local11 >= _local10){
_local11 = _local10;
_local12 = _local10;
};
_local8.graphics.lineTo(_local11, _local9);
_local11 = (_local11 + 2);
_local8.graphics.moveTo(_local11, _local9);
_local12++;
};
}
public static function centerTextInto(_arg1:DisplayObject, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{
var untyped:*;
var text:String;
var item = _arg1;
var left = _arg2;
var top = _arg3;
var width = _arg4;
var height = _arg5;
item.x = ((left + (width / 2)) - (item.width / 2));
item.y = ((top + (height / 2)) - (item.height / 2));
try {
untyped = item;
text = untyped.text;
if (text.toLowerCase() == text){
item.y = Math.floor(item.y);
} else {
item.y = Math.ceil(item.y);
};
} catch(e:Error) {
item.y = Math.round(item.y);
};
item.x = Math.round(item.x);
}
}
}//package iilwy.utils
Section 5
//Scale9Image (iilwy.utils.Scale9Image)
package iilwy.utils {
import flash.display.*;
import flash.geom.*;
public class Scale9Image extends Sprite {
private var _backgroundImages:Array;
private var _height:Number;// = 100
private var _width:Number;// = 100
public function Scale9Image(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number){
var _local7:Bitmap;
super();
_backgroundImages = Scale9Image.cutUp(_arg1, _arg2, _arg3, _arg4, _arg5);
var _local6:Number = 0;
while (_local6 < 9) {
_local7 = Bitmap(_backgroundImages[_local6]);
addChild(_local7);
_local6++;
};
resize();
}
override public function set width(_arg1:Number):void{
_width = _arg1;
resize();
}
override public function get width():Number{
return (_width);
}
override public function set height(_arg1:Number):void{
_height = _arg1;
resize();
}
private function resize():void{
_backgroundImages[0].x = 0;
_backgroundImages[0].y = 0;
_backgroundImages[1].x = _backgroundImages[0].width;
_backgroundImages[1].y = 0;
_backgroundImages[1].width = (_width - (_backgroundImages[0].width * 2));
_backgroundImages[2].x = (_width - _backgroundImages[0].width);
_backgroundImages[2].y = 0;
_backgroundImages[3].x = 0;
_backgroundImages[3].y = int(_backgroundImages[0].height);
_backgroundImages[3].height = int((_height - (_backgroundImages[0].height + _backgroundImages[6].height)));
_backgroundImages[4].x = _backgroundImages[0].width;
_backgroundImages[4].y = int(_backgroundImages[0].height);
_backgroundImages[4].width = (_width - (_backgroundImages[0].width * 2));
_backgroundImages[4].height = int((_height - (_backgroundImages[0].height + _backgroundImages[6].height)));
_backgroundImages[5].x = (_width - _backgroundImages[0].width);
_backgroundImages[5].y = int(_backgroundImages[0].height);
_backgroundImages[5].height = int((_height - (_backgroundImages[0].height + _backgroundImages[6].height)));
_backgroundImages[6].x = 0;
_backgroundImages[6].y = int((_height - _backgroundImages[6].height));
_backgroundImages[7].x = _backgroundImages[0].width;
_backgroundImages[7].y = int((_height - _backgroundImages[6].height));
_backgroundImages[7].width = (_width - (_backgroundImages[0].width * 2));
_backgroundImages[8].x = (_width - _backgroundImages[0].width);
_backgroundImages[8].y = int((_height - _backgroundImages[6].height));
}
override public function get height():Number{
return (_height);
}
public function destroy():void{
var _local2:Bitmap;
var _local1:Number = 0;
while (_local1 < _backgroundImages.length) {
_local2 = Bitmap(_backgroundImages[_local1]);
_local2.bitmapData.dispose();
removeChild(_local2);
_local1++;
};
_backgroundImages = null;
}
private static function cut(_arg1:BitmapData, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Bitmap{
var _local6:BitmapData = new BitmapData(_arg2, _arg3, true, 0);
var _local7:Rectangle = new Rectangle(_arg4, _arg5, (_arg4 + _arg2), (_arg5 + _arg3));
var _local8:Point = new Point(0, 0);
_local6.copyPixels(_arg1, _local7, _local8);
var _local9:Bitmap = new Bitmap();
_local9.pixelSnapping = PixelSnapping.ALWAYS;
_local9.bitmapData = _local6;
_local9.pixelSnapping = PixelSnapping.ALWAYS;
return (_local9);
}
public static function cutUp(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Array{
var _local6:Array = new Array();
var _local7:BitmapData = new BitmapData(_arg1.width, _arg1.height, true, 0);
_local7.draw(_arg1);
_local6.push(cut(_local7, _arg2, _arg3, 0, 0));
_local6.push(cut(_local7, (_arg4 - _arg2), _arg3, _arg2, 0));
_local6.push(cut(_local7, (_arg1.width - _arg4), _arg3, _arg4, 0));
_local6.push(cut(_local7, _arg2, (_arg5 - _arg3), 0, _arg3));
_local6.push(cut(_local7, (_arg4 - _arg2), (_arg5 - _arg3), _arg2, _arg3));
_local6.push(cut(_local7, (_arg1.width - _arg4), (_arg5 - _arg3), _arg4, _arg3));
_local6.push(cut(_local7, _arg2, (_arg1.height - _arg5), 0, _arg5));
_local6.push(cut(_local7, (_arg4 - _arg2), (_arg1.height - _arg5), _arg2, _arg5));
_local6.push(cut(_local7, (_arg1.width - _arg4), (_arg1.height - _arg5), _arg4, _arg5));
return (_local6);
}
}
}//package iilwy.utils
Section 6
//UiRender (iilwy.utils.UiRender)
package iilwy.utils {
import flash.display.*;
import flash.geom.*;
import iilwy.ui.themes.*;
public class UiRender {
public static function createSimpleGradientFill(_arg1:Graphics, _arg2:uint, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):void{
var _local8:Array = [_arg2, _arg2];
var _local9:Array = [0, 100];
var _local10:Array = [0, 0xFF];
var _local11:Matrix = new Matrix();
_local11.createGradientBox(_arg6, _arg7, _arg3, _arg4, _arg5);
_arg1.beginGradientFill(GradientType.LINEAR, _local8, _local9, _local10, _local11, SpreadMethod.REPEAT);
}
public static function renderGradient(_arg1:Sprite, _arg2:Array, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8=0):void{
createGradientFill(_arg1.graphics, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7);
if ((_arg8 is Number)){
_arg1.graphics.drawRoundRect(_arg4, _arg5, _arg6, _arg7, _arg8, _arg8);
} else {
if ((_arg8 is Array)){
drawRoundRectComplex(_arg1.graphics, _arg4, _arg5, _arg6, _arg7, (_arg8[0] / 2), (_arg8[1] / 2), (_arg8[2] / 2), (_arg8[3] / 2));
};
};
_arg1.graphics.endFill();
}
public static function renderRoundBorderBox(_arg1:Sprite, _arg2:Style, _arg3:Number, _arg4:Number, _arg5:Number=14):void{
_arg1.graphics.lineStyle(3, _arg2.border1Color, GraphicUtil.getAlpha(_arg2.border1Color));
_arg1.graphics.drawRoundRect(1.5, 1.5, (_arg3 - 3), (_arg4 - 3), (_arg5 - 2));
_arg1.graphics.lineStyle(1, _arg2.border2Color, GraphicUtil.getAlpha(_arg2.border2Color));
_arg1.graphics.drawRoundRect(2.5, 2.5, (_arg3 - 5), (_arg4 - 5), (_arg5 - 4));
_arg1.graphics.endFill();
_arg1.graphics.lineStyle();
UiRender.renderRoundRect(_arg1, _arg2.backgroundColor, 3, 3, (_arg3 - 6), (_arg4 - 6), (_arg5 - 3));
if (_arg2.backgroundGradient != null){
UiRender.renderGradient(_arg1, _arg2.backgroundGradient, (0.5 * Math.PI), 5, 5, (_arg3 - 10), (_arg4 - 10), (_arg5 - 7));
};
_arg1.graphics.lineStyle();
}
public static function renderRightFacingTriangle(_arg1:Sprite, _arg2:uint, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{
_arg1.graphics.beginFill(_arg2);
_arg1.graphics.lineStyle(0, 0, 0);
_arg1.graphics.moveTo(_arg3, _arg4);
_arg1.graphics.lineTo(_arg3, (_arg4 + _arg6));
_arg1.graphics.lineTo((_arg3 + _arg5), (_arg4 + (_arg6 / 2)));
_arg1.graphics.lineTo(_arg3, _arg4);
}
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));
}
public static function renderBorderBox(_arg1:Sprite, _arg2:Style, _arg3:Number, _arg4:Number):void{
UiRender.renderRect(_arg1, _arg2.border1Color, 0, 0, _arg3, _arg4);
UiRender.renderRect(_arg1, _arg2.border2Color, 2, 2, (_arg3 - 4), (_arg4 - 4));
UiRender.renderRect(_arg1, _arg2.backgroundColor, 3, 3, (_arg3 - 6), (_arg4 - 6));
}
public static function renderStripedWindowBackground(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Boolean=true):void{
if (_arg4){
renderGradient(_arg1, [0x4C4C4C, 0x181818], (Math.PI / 2), 0, 0, _arg2, _arg3);
};
var _local5:Number = 4;
var _local6:Number = 80;
var _local7:Number = 0;
var _local8:Number = 0;
var _local9:Number = 872415231;
var _local10:Array = [872415231, 872415231, 872415231, _local9];
var _local11:Array = [0.015, 0.015, 0, 0];
var _local12:Array = [0, _local6, _local6, 0xFF];
var _local13:Matrix = new Matrix();
_local13.createGradientBox((_local5 * 2), (_local5 * 2), (0.25 * Math.PI), _local7, _local8);
_arg1.graphics.beginGradientFill(GradientType.LINEAR, _local10, _local11, _local12, _local13, SpreadMethod.REPEAT);
_arg1.graphics.drawRect(_local7, _local8, _arg2, _arg3);
_arg1.graphics.endFill();
}
public static function createGradientFill(_arg1:Graphics, _arg2:Array, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):void{
var _local8:Array = [];
var _local9:Array = [];
var _local10:Array = [];
var _local11:Number = 0;
while (_local11 < _arg2.length) {
_local8.push(_arg2[_local11]);
_local9.push(GraphicUtil.getAlpha(_arg2[_local11]));
_local10.push(Math.floor((_local11 * (0xFF / (_arg2.length - 1)))));
_local11++;
};
var _local12:Matrix = new Matrix();
_local12.createGradientBox(_arg6, _arg7, _arg3, _arg4, _arg5);
_arg1.beginGradientFill(GradientType.LINEAR, _local8, _local9, _local10, _local12, SpreadMethod.PAD);
}
public static function renderStripes(_arg1:Sprite, _arg2:Number, _arg3:uint, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):void{
var _local8:Array = [_arg2, _arg2, _arg2, _arg2];
var _local9:Array = [100, 100, 0, 0];
var _local10:Array = [0, 128, 128, 0xFF];
var _local11:Matrix = new Matrix();
_local11.createGradientBox((_arg3 * 2), (_arg3 * 2), (0.25 * Math.PI), _arg4, _arg5);
_arg1.graphics.beginGradientFill(GradientType.LINEAR, _local8, _local9, _local10, _local11, SpreadMethod.REPEAT);
_arg1.graphics.drawRect(_arg4, _arg5, _arg6, _arg7);
_arg1.graphics.endFill();
}
public static function renderTopNavBgRight():Scale9Image{
var _local1:Sprite = new Sprite();
_local1.graphics.beginFill(0xFFFFFF);
UiRender.drawRoundRectComplex(_local1.graphics, 0, 0, 100, 36, 0, 0, 10, 0);
var _local2:String = GradientType.LINEAR;
var _local3:Array = [0xDDDDDD, 0xFFFFFF];
var _local4:Array = [100, 100];
var _local5:Array = [0, 0xFF];
var _local6:Matrix = new Matrix();
_local6.createGradientBox(100, 36, ((2 * Math.PI) * (270 / 360)), 0, 0);
var _local7:String = SpreadMethod.PAD;
_local1.graphics.beginGradientFill(_local2, _local3, _local4, _local5, _local6, _local7);
UiRender.drawRoundRectComplex(_local1.graphics, 2, 0, 98, 34, 0, 0, 8, 0);
return (new Scale9Image(_local1, 10, 10, 80, 16));
}
public static function renderPartition(_arg1:Sprite, _arg2:Style, _arg3:Number, _arg4:Number, _arg5:Number):void{
UiRender.renderRect(_arg1, _arg2.border2Color, _arg3, _arg4, 1, _arg5);
UiRender.renderRect(_arg1, _arg2.backgroundColor, (_arg3 + 1), _arg4, 2, _arg5);
}
public static function createScale9RoundRect(_arg1:Number, _arg2:Number):Scale9Image{
var _local3:Sprite = new Sprite();
UiRender.renderRoundRect(_local3, _arg1, 0, 0, 100, 100, _arg2);
var _local4:Scale9Image = new Scale9Image(_local3, Math.ceil((_arg2 / 2)), Math.ceil((_arg2 / 2)), (100 - Math.ceil((_arg2 / 2))), (100 - Math.ceil((_arg2 / 2))));
return (_local4);
}
public static function renderSimpleGradient(_arg1:Sprite, _arg2:uint, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8=0):void{
createSimpleGradientFill(_arg1.graphics, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7);
_arg1.graphics.drawRoundRect(_arg4, _arg5, _arg6, _arg7, _arg8, _arg8);
_arg1.graphics.endFill();
}
public static function renderRect(_arg1:Sprite, _arg2:uint, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{
_arg1.graphics.beginFill(_arg2, GraphicUtil.getAlpha(_arg2));
_arg1.graphics.drawRect(_arg3, _arg4, _arg5, _arg6);
_arg1.graphics.endFill();
}
public static function renderRoundRect(_arg1:Sprite, _arg2:uint, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):void{
_arg1.graphics.beginFill(_arg2, GraphicUtil.getAlpha(_arg2));
_arg1.graphics.drawRoundRect(_arg3, _arg4, _arg5, _arg6, _arg7, _arg7);
_arg1.graphics.endFill();
}
public static function createPointSticker(_arg1:Class, _arg2:Number, _arg3:Number, _arg4:Number=undefined):BitmapData{
var _local5:Sprite = new Sprite();
var _local6:Sprite = new Sprite();
_local5.addChild(_local6);
var _local7:Sprite = new (_arg1);
_local7.width = _arg2;
_local7.height = _arg2;
_local5.addChild(_local7);
_local6.mask = _local7;
renderRect(_local6, _arg3, 0, 0, _arg2, _arg2);
if (!isNaN(_arg4)){
renderStripes(_local6, _arg4, 5, 0, 0, _arg2, _arg2);
};
var _local8:BitmapData = new BitmapData(_arg2, _arg2, true, 0xFFFFFF);
_local8.draw(_local5);
return (_local8);
}
public static function renderTriangle(_arg1:Sprite, _arg2:uint, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{
var _local7:Number;
var _local8:Number;
_local7 = _arg3;
_local8 = _arg4;
_arg1.graphics.beginFill(_arg2, GraphicUtil.getAlpha(_arg2));
_arg1.graphics.moveTo(_local7, _local8);
_arg1.graphics.lineTo((_local7 + _arg5), _local8);
_arg1.graphics.lineTo((_local7 + (_arg5 / 2)), (_local8 + _arg6));
_arg1.graphics.lineTo(_local7, _local8);
_arg1.graphics.endFill();
}
public static function renderLeftFacingTriangle(_arg1:Sprite, _arg2:uint, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{
_arg1.graphics.beginFill(_arg2);
_arg1.graphics.lineStyle(0, 0, 0);
_arg1.graphics.moveTo(_arg3, _arg4);
_arg1.graphics.lineTo(_arg3, (_arg4 + _arg6));
_arg1.graphics.lineTo((_arg3 - _arg5), (_arg4 + (_arg6 / 2)));
_arg1.graphics.lineTo(_arg3, _arg4);
}
}
}//package iilwy.utils
Section 7
//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 8
//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 9
//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 10
//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 11
//IBorder (mx.core.IBorder)
package mx.core {
public interface IBorder {
function get borderMetrics():EdgeMetrics;
}
}//package mx.core
Section 12
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 13
//IFlexDisplayObject (mx.core.IFlexDisplayObject)
package mx.core {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.accessibility.*;
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 14
//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 15
//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 16
//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 17
//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 18
//arcadeLoader (arcadeLoader)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import iilwy.utils.*;
import flash.text.*;
import iilwy.application.*;
import flash.system.*;
import flash.external.*;
import flash.net.*;
import flash.filters.*;
public class arcadeLoader extends Sprite {
private var _preloaderBackground:Sprite;
private var _tagline:Sprite;
private var _logo:Sprite;
private var _indicatorWidth:Number;// = 500
private var _gameLogo:Bitmap;
private var _indicators:Sprite;
private var _indicatorBar:Sprite;
private var _indicatorTray:Sprite;
private var _errorField:TextField;
private var _loader:Loader;
private var _preloader:Sprite;
public static const origin:String = "newgrounds";
public static const RELEASE:Boolean = true;
public static const gameId:String = "drawmything";
public static var taglineAsset:Class = arcadeLoader_taglineAsset;
public static var vectorLogo:Class = arcadeLoader_vectorLogo;
public static var gameLogoAsset:Class = arcadeLoader_gameLogoAsset;
public function arcadeLoader(){
Security.allowDomain("http://localhost");
Security.allowDomain("*");
Security.allowDomain("http://flashcdn.iminlikewithyou.com");
Security.allowDomain("http://flash.iminlikewithyou.com");
Security.allowDomain("http://static.iminlikewithyou.com");
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
}
protected function securityErrorHandler(_arg1:SecurityErrorEvent):void{
_errorField.text = _arg1.text;
}
private function load():void{
var baseUrl:String;
var loadUrl:String;
var docLoc:String;
var params:* = loaderInfo.parameters;
var key:String = params.key;
try {
docLoc = ExternalInterface.call("document.location.toString");
} catch(e:Error) {
};
if (RELEASE){
AppProperties.debugMode = AppProperties.MODE_NOT_DEBUGGING;
baseUrl = "http://flashcdn.iminlikewithyou.com/";
} else {
if (((!((docLoc == null))) && ((docLoc.indexOf("flash.dev") > -1)))){
baseUrl = "http://flash.dev.iminlikewithyou.com/";
AppProperties.debugMode = AppProperties.MODE_REMOTE_DEBUGGING;
} else {
baseUrl = "../../flashsite/bin-debug/";
AppProperties.debugMode = AppProperties.MODE_LOCAL_DEBUGGING;
};
};
var path:String = ("arcade/gamelobby/" + _slot1.gameId);
var cache:String = String(Math.floor((new Date().time / ((1000 * 60) * 10))));
loadUrl = ((((((((((baseUrl + "externalArcade.swf") + "?") + "initialUrl=") + path) + "&") + "origin=") + _slot1.origin) + "&") + "cache=") + cache);
_loader = new Loader();
addChild(_loader);
var context:LoaderContext = new LoaderContext();
context.applicationDomain = ApplicationDomain.currentDomain;
if (loadUrl.indexOf("http://") > -1){
context.securityDomain = SecurityDomain.currentDomain;
};
var req:URLRequest = new URLRequest(loadUrl);
_loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onLoadProgress);
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
_loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
_preloader = buildPreloader();
addChild(_preloader);
_gameLogo = new gameLogoAsset();
addChild(_gameLogo);
_errorField = new TextField();
var fmt:TextFormat = new TextFormat("_sans", 12, 0xFFFFFF);
fmt.align = TextFormatAlign.CENTER;
_errorField.defaultTextFormat = fmt;
addChild(_errorField);
_errorField.autoSize = TextFieldAutoSize.LEFT;
_errorField.multiline = true;
_errorField.wordWrap = true;
addChild(_errorField);
stage.addEventListener(Event.RESIZE, onResize);
onResize(null);
try {
_loader.load(req, context);
} catch(e:Error) {
_errorField.text = e.toString();
};
}
protected function buildPreloader():Sprite{
var _local1:Sprite = new Sprite();
_indicatorWidth = Math.min(400, (stage.stageWidth - 30));
_preloaderBackground = new Sprite();
_local1.addChild(_preloaderBackground);
_indicators = new Sprite();
_local1.addChild(_indicators);
_logo = new vectorLogo();
_indicators.addChild(_logo);
_logo.scaleX = (_logo.scaleY = (200 / _logo.width));
_logo.x = ((_indicatorWidth / 2) - (_logo.width / 2));
_logo.y = 70;
var _local2:Sprite = Sprite(Object(_logo).fill);
var _local3:Sprite = Sprite(Object(_logo).stroke);
_local2.blendMode = BlendMode.SUBTRACT;
_local2.alpha = 0.5;
_local3.blendMode = BlendMode.OVERLAY;
_local3.alpha = 1;
_tagline = new taglineAsset();
_tagline.x = ((_indicatorWidth / 2) - (_tagline.width / 2));
_tagline.y = 52;
_tagline.alpha = 0.2;
_indicators.addChild(_tagline);
_indicatorTray = new Sprite();
UiRender.renderRoundRect(_indicatorTray, 620756992, 0, 0, _indicatorWidth, 22, 22);
UiRender.renderGradient(_indicatorTray, [301989887, 587202559], (Math.PI / 2), 2, 2, (_indicatorWidth - 4), 18, 18);
_indicators.addChild(_indicatorTray);
_indicatorBar = new Sprite();
UiRender.renderGradient(_indicatorBar, [2574743415, 2576980377, 2579217339], (Math.PI / 2), 0, 0, 30, 14, 14);
UiRender.renderRoundRect(_indicatorBar, 1157627903, 6, 2, 18, 4, 4);
_indicatorBar.scale9Grid = new Rectangle(10, 1, 10, 10);
_indicatorBar.x = 4;
_indicatorBar.y = 4;
_indicatorBar.width = 0;
_indicatorBar.filters = [new DropShadowFilter(3, 90, 0, 0.9, 10, 10, 1, 1, false, false, false)];
_indicators.addChild(_indicatorBar);
return (_local1);
}
private function onAddedToStage(_arg1:Event):void{
if (_arg1.target == this){
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
stage.frameRate = 60;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.quality = StageQuality.HIGH;
stage.stageFocusRect = false;
load();
};
}
protected function ioErrorHandler(_arg1:IOErrorEvent):void{
_errorField.text = ((_arg1.type + ": ") + _arg1.text);
}
protected function onLoadProgress(_arg1:ProgressEvent):void{
var _local2:Number = (_arg1.bytesLoaded / _arg1.bytesTotal);
_indicatorBar.width = (_local2 * (_indicatorWidth - 8));
}
protected function onResize(_arg1:Event):void{
_preloaderBackground.graphics.clear();
UiRender.renderStripedWindowBackground(_preloaderBackground, stage.stageWidth, stage.stageHeight);
_indicators.x = Math.floor(((stage.stageWidth / 2) - (_indicatorWidth / 2)));
_indicators.y = Math.floor((stage.stageHeight * 0.75));
_gameLogo.y = Math.floor(((stage.stageHeight - _gameLogo.height) / 2));
_gameLogo.x = Math.floor(((stage.stageWidth / 2) - (_gameLogo.width / 2)));
_errorField.y = 20;
_errorField.width = (stage.stageWidth - 50);
_errorField.x = 25;
}
protected function onLoadComplete(_arg1:Event):void{
_preloaderBackground.graphics.clear();
removeChild(_preloader);
removeChild(_gameLogo);
removeChild(_errorField);
_loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, onLoadProgress);
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onLoadComplete);
stage.removeEventListener(Event.RESIZE, onResize);
}
}
}//package
Section 19
//arcadeLoader_gameLogoAsset (arcadeLoader_gameLogoAsset)
package {
import mx.core.*;
public class arcadeLoader_gameLogoAsset extends BitmapAsset {
}
}//package
Section 20
//arcadeLoader_taglineAsset (arcadeLoader_taglineAsset)
package {
import flash.display.*;
import mx.core.*;
public class arcadeLoader_taglineAsset extends SpriteAsset {
public var stroke:DisplayObject;
public var fill:DisplayObject;
}
}//package
Section 21
//arcadeLoader_vectorLogo (arcadeLoader_vectorLogo)
package {
import flash.display.*;
import mx.core.*;
public class arcadeLoader_vectorLogo extends SpriteAsset {
public var stroke:DisplayObject;
public var fill:DisplayObject;
}
}//package