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

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

EGO Texas Hold 'Em.swf

This is the info page for
Flash #67851

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


Text
CREATE YOUR OWN EGO.  IT'S FREE!

WWW.EGOCITY.COM

FOR MORE INFORMATION VISIT

SAVE CHIPS, EARN MERITS, VIEW STATS, AND MORE!

Click this button to create your
own Ego!  Your guest progress
will NOT be saved.

<p align="center"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="1"><b>Your privacy is important to us. &nbsp;We will only use this information to communicate with you and will not give this information to any third party.</b></font></p>

<p align="left"><font face="Arial" size="10" color="#db1d30" letterSpacing="1.000000" kerning="1"><b>Invalid Username</b></font></p>

<p align="left"><font face="Arial" size="10" color="#db1d30" letterSpacing="1.000000" kerning="1"><b>Invalid Password</b></font></p>

<p align="left"></p>

<p align="left"></p>

Existing Users Log In Here!

<p align="center"><font face="Arial Black" size="25" color="#00ccff" letterSpacing="3.000000" kerning="1">0</font></p>

www.egocity.com

An award-winning social networking game!

1

Design
your EGO

2

User
Info

3

Play

Design the starting look of your EGO!

Gender

Skin Color

Hair Style

Hair Color

Personality

Gender          Skin Color          Hair Style           Hair Color            Personality

<p align="left"><font face="Arial" size="14" color="#2386fe" letterSpacing="0.000000" kerning="1"><b>MALE </b></font></p>

<p align="left"><font face="Arial" size="14" color="#ff6699" letterSpacing="0.000000" kerning="1"><b>FEMALE </b></font></p>

<p align="left"><font face="Verdana" size="10" color="#24b6fd" letterSpacing="0.000000" kerning="1"><b>ACTOR &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ARTIST &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BULLY &nbsp;&nbsp;&nbsp;CLASSCLOWN &nbsp;&nbsp;&nbsp;FLIRT &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GOTH</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#24b6fd" letterSpacing="0.000000" kerning="1"><b>JOCK &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NERD &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PREPPY &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;REBEL &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SKATER &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SURFER</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#24b6fd" letterSpacing="0.000000" kerning="1"><b>ACTOR &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ARTIST &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BULLY &nbsp;&nbsp;CLASSCLOWN &nbsp;&nbsp;FLIRT &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GOTH</b></font></p>

<p align="left"><font face="Verdana" size="10" color="#24b6fd" letterSpacing="0.000000" kerning="1"><b>JOCK &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NERD &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PREPPY &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;REBEL &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SKATER &nbsp;&nbsp;&nbsp;&nbsp;SURFER</b></font></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="center"><font face="Arial" size="10" color="#ff0000" letterSpacing="1.000000" kerning="1"><b>Error: That username is already taken.</b></font></p>

<p align="center"><font face="Arial" size="26" color="#2199fc" letterSpacing="1.000000" kerning="1"><b>captcha</b></font></p>

USER INFORMATION

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

WELCOME MOBILE USER!

<p align="center"><font face="Arial" size="10" color="#ff0000" letterSpacing="1.000000" kerning="1"><b>Error: That username is already taken.</b></font></p>

<p align="center"><font face="Arial" size="19" color="#000000" letterSpacing="1.000000" kerning="1"><b>KYLE</b></font></p>

Thank You for Joining EGO City!

Please check your email inbox for a verification link from
EGO City. When you use this link to verify your email
address, your EGO will earn 20 FREE TOKENS to spend
in the Market at EGOcity.com!
We hope you will enjoy making new friends and playing
games with them in EGO City!

ActionScript [AS3]

Section 1
//JSONDecoder (com.adobe.serialization.json.JSONDecoder) package com.adobe.serialization.json { public class JSONDecoder { private var value; private var tokenizer:JSONTokenizer; private var token:JSONToken; public function JSONDecoder(_arg1:String){ tokenizer = new JSONTokenizer(_arg1); nextToken(); value = parseValue(); } private function nextToken():JSONToken{ return ((token = tokenizer.getNextToken())); } private function parseObject():Object{ var _local1:Object; var _local2:String; _local1 = new Object(); nextToken(); if (token.type == JSONTokenType.RIGHT_BRACE){ return (_local1); }; while (true) { if (token.type == JSONTokenType.STRING){ _local2 = String(token.value); nextToken(); if (token.type == JSONTokenType.COLON){ nextToken(); _local1[_local2] = parseValue(); nextToken(); if (token.type == JSONTokenType.RIGHT_BRACE){ return (_local1); }; if (token.type == JSONTokenType.COMMA){ nextToken(); } else { tokenizer.parseError(("Expecting } or , but found " + token.value)); }; } else { tokenizer.parseError(("Expecting : but found " + token.value)); }; } else { tokenizer.parseError(("Expecting string but found " + token.value)); }; }; return (null); } private function parseArray():Array{ var _local1:Array; _local1 = new Array(); nextToken(); if (token.type == JSONTokenType.RIGHT_BRACKET){ return (_local1); }; while (true) { _local1.push(parseValue()); nextToken(); if (token.type == JSONTokenType.RIGHT_BRACKET){ return (_local1); }; if (token.type == JSONTokenType.COMMA){ nextToken(); } else { tokenizer.parseError(("Expecting ] or , but found " + token.value)); }; }; return (null); } public function getValue(){ return (value); } private function parseValue():Object{ switch (token.type){ case JSONTokenType.LEFT_BRACE: return (parseObject()); case JSONTokenType.LEFT_BRACKET: return (parseArray()); case JSONTokenType.STRING: case JSONTokenType.NUMBER: case JSONTokenType.TRUE: case JSONTokenType.FALSE: case JSONTokenType.NULL: return (token.value); default: tokenizer.parseError(("Unexpected " + token.value)); }; return (null); } } }//package com.adobe.serialization.json
Section 2
//JSONParseError (com.adobe.serialization.json.JSONParseError) package com.adobe.serialization.json { public class JSONParseError extends Error { private var _text:String; private var _location:int; public function JSONParseError(_arg1:String="", _arg2:int=0, _arg3:String=""){ super(_arg1); _location = _arg2; _text = _arg3; } public function get text():String{ return (_text); } public function get location():int{ return (_location); } } }//package com.adobe.serialization.json
Section 3
//JSONToken (com.adobe.serialization.json.JSONToken) package com.adobe.serialization.json { public class JSONToken { private var _value:Object; private var _type:int; public function JSONToken(_arg1:int=-1, _arg2:Object=null){ _type = _arg1; _value = _arg2; } public function set value(_arg1:Object):void{ _value = _arg1; } public function get value():Object{ return (_value); } public function set type(_arg1:int):void{ _type = _arg1; } public function get type():int{ return (_type); } } }//package com.adobe.serialization.json
Section 4
//JSONTokenizer (com.adobe.serialization.json.JSONTokenizer) package com.adobe.serialization.json { public class JSONTokenizer { private var loc:int; private var ch:String; private var obj:Object; private var jsonString:String; public function JSONTokenizer(_arg1:String){ jsonString = _arg1; loc = 0; nextChar(); } private function skipComments():void{ if (ch == "/"){ nextChar(); switch (ch){ case "/": do { nextChar(); } while (((!((ch == "\n"))) && (!((ch == ""))))); nextChar(); break; case "*": nextChar(); while (true) { if (ch == "*"){ nextChar(); if (ch == "/"){ nextChar(); break; }; } else { nextChar(); }; if (ch == ""){ parseError("Multi-line comment not closed"); }; }; break; default: parseError((("Unexpected " + ch) + " encountered (expecting '/' or '*' )")); }; }; } private function isDigit(_arg1:String):Boolean{ return ((((_arg1 >= "0")) && ((_arg1 <= "9")))); } private function readNumber():JSONToken{ var _local1:JSONToken; var _local2:String; var _local3:Number; _local1 = new JSONToken(); _local1.type = JSONTokenType.NUMBER; _local2 = ""; if (ch == "-"){ _local2 = (_local2 + "-"); nextChar(); }; if (!isDigit(ch)){ parseError("Expecting a digit"); }; if (ch == "0"){ _local2 = (_local2 + ch); nextChar(); if (isDigit(ch)){ parseError("A digit cannot immediately follow 0"); }; } else { while (isDigit(ch)) { _local2 = (_local2 + ch); nextChar(); }; }; if (ch == "."){ _local2 = (_local2 + "."); nextChar(); if (!isDigit(ch)){ parseError("Expecting a digit"); }; while (isDigit(ch)) { _local2 = (_local2 + ch); nextChar(); }; }; if ((((ch == "e")) || ((ch == "E")))){ _local2 = (_local2 + "e"); nextChar(); if ((((ch == "+")) || ((ch == "-")))){ _local2 = (_local2 + ch); nextChar(); }; if (!isDigit(ch)){ parseError("Scientific notation number needs exponent value"); }; while (isDigit(ch)) { _local2 = (_local2 + ch); nextChar(); }; }; _local3 = Number(_local2); if (((isFinite(_local3)) && (!(isNaN(_local3))))){ _local1.value = _local3; return (_local1); }; parseError((("Number " + _local3) + " is not valid!")); return (null); } private function nextChar():String{ return ((ch = jsonString.charAt(loc++))); } public function getNextToken():JSONToken{ var _local1:JSONToken; var _local2:String; var _local3:String; var _local4:String; _local1 = new JSONToken(); skipIgnored(); switch (ch){ case "{": _local1.type = JSONTokenType.LEFT_BRACE; _local1.value = "{"; nextChar(); break; case "}": _local1.type = JSONTokenType.RIGHT_BRACE; _local1.value = "}"; nextChar(); break; case "[": _local1.type = JSONTokenType.LEFT_BRACKET; _local1.value = "["; nextChar(); break; case "]": _local1.type = JSONTokenType.RIGHT_BRACKET; _local1.value = "]"; nextChar(); break; case ",": _local1.type = JSONTokenType.COMMA; _local1.value = ","; nextChar(); break; case ":": _local1.type = JSONTokenType.COLON; _local1.value = ":"; nextChar(); break; case "t": _local2 = ((("t" + nextChar()) + nextChar()) + nextChar()); if (_local2 == "true"){ _local1.type = JSONTokenType.TRUE; _local1.value = true; nextChar(); } else { parseError(("Expecting 'true' but found " + _local2)); }; break; case "f": _local3 = (((("f" + nextChar()) + nextChar()) + nextChar()) + nextChar()); if (_local3 == "false"){ _local1.type = JSONTokenType.FALSE; _local1.value = false; nextChar(); } else { parseError(("Expecting 'false' but found " + _local3)); }; break; case "n": _local4 = ((("n" + nextChar()) + nextChar()) + nextChar()); if (_local4 == "null"){ _local1.type = JSONTokenType.NULL; _local1.value = null; nextChar(); } else { parseError(("Expecting 'null' but found " + _local4)); }; break; case "\"": _local1 = readString(); break; default: if (((isDigit(ch)) || ((ch == "-")))){ _local1 = readNumber(); } else { if (ch == ""){ return (null); }; parseError((("Unexpected " + ch) + " encountered")); }; }; return (_local1); } private function skipWhite():void{ while (isWhiteSpace(ch)) { nextChar(); }; } private function isWhiteSpace(_arg1:String):Boolean{ return ((((((_arg1 == " ")) || ((_arg1 == "\t")))) || ((_arg1 == "\n")))); } public function parseError(_arg1:String):void{ throw (new JSONParseError(_arg1, loc, jsonString)); } private function skipIgnored():void{ skipWhite(); skipComments(); skipWhite(); } private function isHexDigit(_arg1:String):Boolean{ var _local2:String; _local2 = _arg1.toUpperCase(); return (((isDigit(_arg1)) || ((((_local2 >= "A")) && ((_local2 <= "F")))))); } private function readString():JSONToken{ var _local1:JSONToken; var _local2:String; var _local3:String; var _local4:int; _local1 = new JSONToken(); _local1.type = JSONTokenType.STRING; _local2 = ""; nextChar(); while (((!((ch == "\""))) && (!((ch == ""))))) { if (ch == "\\"){ nextChar(); switch (ch){ case "\"": _local2 = (_local2 + "\""); break; case "/": _local2 = (_local2 + "/"); break; case "\\": _local2 = (_local2 + "\\"); break; case "b": _local2 = (_local2 + "\b"); break; case "f": _local2 = (_local2 + "\f"); break; case "n": _local2 = (_local2 + "\n"); break; case "r": _local2 = (_local2 + "\r"); break; case "t": _local2 = (_local2 + "\t"); break; case "u": _local3 = ""; _local4 = 0; while (_local4 < 4) { if (!isHexDigit(nextChar())){ parseError((" Excepted a hex digit, but found: " + ch)); }; _local3 = (_local3 + ch); _local4++; }; _local2 = (_local2 + String.fromCharCode(parseInt(_local3, 16))); break; default: _local2 = (_local2 + ("\\" + ch)); }; } else { _local2 = (_local2 + ch); }; nextChar(); }; if (ch == ""){ parseError("Unterminated string literal"); }; nextChar(); _local1.value = _local2; return (_local1); } } }//package com.adobe.serialization.json
Section 5
//JSONTokenType (com.adobe.serialization.json.JSONTokenType) package com.adobe.serialization.json { public class JSONTokenType { public static const NUMBER:int = 11; public static const FALSE:int = 8; public static const RIGHT_BRACKET:int = 4; public static const NULL:int = 9; public static const TRUE:int = 7; public static const RIGHT_BRACE:int = 2; public static const UNKNOWN:int = -1; public static const COMMA:int = 0; public static const LEFT_BRACKET:int = 3; public static const STRING:int = 10; public static const LEFT_BRACE:int = 1; public static const COLON:int = 6; } }//package com.adobe.serialization.json
Section 6
//BaseScrollPane (fl.containers.BaseScrollPane) package fl.containers { import fl.core.*; import fl.controls.*; import flash.display.*; import flash.events.*; import fl.events.*; import flash.geom.*; public class BaseScrollPane extends UIComponent { protected var defaultLineScrollSize:Number;// = 4 protected var _maxHorizontalScrollPosition:Number;// = 0 protected var vScrollBar:Boolean; protected var disabledOverlay:Shape; protected var hScrollBar:Boolean; protected var availableWidth:Number; protected var _verticalPageScrollSize:Number;// = 0 protected var vOffset:Number;// = 0 protected var _verticalScrollBar:ScrollBar; protected var useFixedHorizontalScrolling:Boolean;// = false protected var contentWidth:Number;// = 0 protected var contentHeight:Number;// = 0 protected var _horizontalPageScrollSize:Number;// = 0 protected var background:DisplayObject; protected var _useBitmpScrolling:Boolean;// = false protected var contentPadding:Number;// = 0 protected var availableHeight:Number; protected var _horizontalScrollBar:ScrollBar; protected var contentScrollRect:Rectangle; protected var _horizontalScrollPolicy:String; protected var _verticalScrollPolicy:String; protected static const SCROLL_BAR_STYLES:Object = {upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; private static var defaultStyles:Object = {repeatDelay:500, repeatInterval:35, skin:"ScrollPane_upSkin", contentPadding:0, disabledAlpha:0.5}; public function BaseScrollPane(){ contentWidth = 0; contentHeight = 0; contentPadding = 0; vOffset = 0; _maxHorizontalScrollPosition = 0; _horizontalPageScrollSize = 0; _verticalPageScrollSize = 0; defaultLineScrollSize = 4; useFixedHorizontalScrolling = false; _useBitmpScrolling = false; super(); } protected function handleWheel(_arg1:MouseEvent):void{ if (((((!(enabled)) || (!(_verticalScrollBar.visible)))) || ((contentHeight <= availableHeight)))){ return; }; _verticalScrollBar.scrollPosition = (_verticalScrollBar.scrollPosition - (_arg1.delta * verticalLineScrollSize)); setVerticalScrollPosition(_verticalScrollBar.scrollPosition); dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _arg1.delta, horizontalScrollPosition)); } public function get verticalScrollPosition():Number{ return (_verticalScrollBar.scrollPosition); } protected function drawDisabledOverlay():void{ if (enabled){ if (contains(disabledOverlay)){ removeChild(disabledOverlay); }; } else { disabledOverlay.x = (disabledOverlay.y = contentPadding); disabledOverlay.width = availableWidth; disabledOverlay.height = availableHeight; disabledOverlay.alpha = (getStyleValue("disabledAlpha") as Number); addChild(disabledOverlay); }; } public function set verticalScrollPosition(_arg1:Number):void{ drawNow(); _verticalScrollBar.scrollPosition = _arg1; setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false); } protected function setContentSize(_arg1:Number, _arg2:Number):void{ if ((((((contentWidth == _arg1)) || (useFixedHorizontalScrolling))) && ((contentHeight == _arg2)))){ return; }; contentWidth = _arg1; contentHeight = _arg2; invalidate(InvalidationType.SIZE); } public function get horizontalScrollPosition():Number{ return (_horizontalScrollBar.scrollPosition); } public function get horizontalScrollBar():ScrollBar{ return (_horizontalScrollBar); } override public function set enabled(_arg1:Boolean):void{ if (enabled == _arg1){ return; }; _verticalScrollBar.enabled = _arg1; _horizontalScrollBar.enabled = _arg1; super.enabled = _arg1; } public function get verticalLineScrollSize():Number{ return (_verticalScrollBar.lineScrollSize); } public function get horizontalScrollPolicy():String{ return (_horizontalScrollPolicy); } protected function calculateAvailableSize():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; _local1 = ScrollBar.WIDTH; _local2 = (contentPadding = Number(getStyleValue("contentPadding"))); _local3 = ((height - (2 * _local2)) - vOffset); vScrollBar = (((_verticalScrollPolicy == ScrollPolicy.ON)) || ((((_verticalScrollPolicy == ScrollPolicy.AUTO)) && ((contentHeight > _local3))))); _local4 = ((width - (vScrollBar) ? _local1 : 0) - (2 * _local2)); _local5 = (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - _local4); hScrollBar = (((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_local5 > 0))))); if (hScrollBar){ _local3 = (_local3 - _local1); }; if (((((((hScrollBar) && (!(vScrollBar)))) && ((_verticalScrollPolicy == ScrollPolicy.AUTO)))) && ((contentHeight > _local3)))){ vScrollBar = true; _local4 = (_local4 - _local1); }; availableHeight = (_local3 + vOffset); availableWidth = _local4; } public function get maxVerticalScrollPosition():Number{ drawNow(); return (Math.max(0, (contentHeight - availableHeight))); } public function set horizontalScrollPosition(_arg1:Number):void{ drawNow(); _horizontalScrollBar.scrollPosition = _arg1; setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false); } public function get horizontalLineScrollSize():Number{ return (_horizontalScrollBar.lineScrollSize); } public function set verticalPageScrollSize(_arg1:Number):void{ _verticalPageScrollSize = _arg1; invalidate(InvalidationType.SIZE); } public function get verticalScrollPolicy():String{ return (_verticalScrollPolicy); } protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ } public function get useBitmapScrolling():Boolean{ return (_useBitmpScrolling); } protected function handleScroll(_arg1:ScrollEvent):void{ if (_arg1.target == _verticalScrollBar){ setVerticalScrollPosition(_arg1.position); } else { setHorizontalScrollPosition(_arg1.position); }; } public function set verticalLineScrollSize(_arg1:Number):void{ _verticalScrollBar.lineScrollSize = _arg1; } public function get verticalScrollBar():ScrollBar{ return (_verticalScrollBar); } protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ } public function set horizontalPageScrollSize(_arg1:Number):void{ _horizontalPageScrollSize = _arg1; invalidate(InvalidationType.SIZE); } override protected function draw():void{ if (isInvalid(InvalidationType.STYLES)){ setStyles(); drawBackground(); if (contentPadding != getStyleValue("contentPadding")){ invalidate(InvalidationType.SIZE, false); }; }; if (isInvalid(InvalidationType.SIZE, InvalidationType.STATE)){ drawLayout(); }; updateChildren(); super.draw(); } public function set horizontalScrollPolicy(_arg1:String):void{ _horizontalScrollPolicy = _arg1; invalidate(InvalidationType.SIZE); } override protected function configUI():void{ var _local1:Graphics; super.configUI(); contentScrollRect = new Rectangle(0, 0, 85, 85); _verticalScrollBar = new ScrollBar(); _verticalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true); _verticalScrollBar.visible = false; _verticalScrollBar.lineScrollSize = defaultLineScrollSize; addChild(_verticalScrollBar); copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES); _horizontalScrollBar = new ScrollBar(); _horizontalScrollBar.direction = ScrollBarDirection.HORIZONTAL; _horizontalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true); _horizontalScrollBar.visible = false; _horizontalScrollBar.lineScrollSize = defaultLineScrollSize; addChild(_horizontalScrollBar); copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES); disabledOverlay = new Shape(); _local1 = disabledOverlay.graphics; _local1.beginFill(0xFFFFFF); _local1.drawRect(0, 0, width, height); _local1.endFill(); addEventListener(MouseEvent.MOUSE_WHEEL, handleWheel, false, 0, true); } protected function calculateContentWidth():void{ } public function get verticalPageScrollSize():Number{ if (isNaN(availableHeight)){ drawNow(); }; return (((((_verticalPageScrollSize == 0)) && (!(isNaN(availableHeight))))) ? availableHeight : _verticalPageScrollSize); } protected function drawLayout():void{ calculateAvailableSize(); calculateContentWidth(); background.width = width; background.height = height; if (vScrollBar){ _verticalScrollBar.visible = true; _verticalScrollBar.x = ((width - ScrollBar.WIDTH) - contentPadding); _verticalScrollBar.y = contentPadding; _verticalScrollBar.height = availableHeight; } else { _verticalScrollBar.visible = false; }; _verticalScrollBar.setScrollProperties(availableHeight, 0, (contentHeight - availableHeight), verticalPageScrollSize); setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false); if (hScrollBar){ _horizontalScrollBar.visible = true; _horizontalScrollBar.x = contentPadding; _horizontalScrollBar.y = ((height - ScrollBar.WIDTH) - contentPadding); _horizontalScrollBar.width = availableWidth; } else { _horizontalScrollBar.visible = false; }; _horizontalScrollBar.setScrollProperties(availableWidth, 0, (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - availableWidth), horizontalPageScrollSize); setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false); drawDisabledOverlay(); } protected function drawBackground():void{ var _local1:DisplayObject; _local1 = background; background = getDisplayObjectInstance(getStyleValue("skin")); background.width = width; background.height = height; addChildAt(background, 0); if (((!((_local1 == null))) && (!((_local1 == background))))){ removeChild(_local1); }; } public function set horizontalLineScrollSize(_arg1:Number):void{ _horizontalScrollBar.lineScrollSize = _arg1; } public function get horizontalPageScrollSize():Number{ if (isNaN(availableWidth)){ drawNow(); }; return (((((_horizontalPageScrollSize == 0)) && (!(isNaN(availableWidth))))) ? availableWidth : _horizontalPageScrollSize); } public function get maxHorizontalScrollPosition():Number{ drawNow(); return (Math.max(0, (contentWidth - availableWidth))); } protected function setStyles():void{ copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES); copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES); } protected function updateChildren():void{ _verticalScrollBar.enabled = (_horizontalScrollBar.enabled = enabled); _verticalScrollBar.drawNow(); _horizontalScrollBar.drawNow(); } public function set verticalScrollPolicy(_arg1:String):void{ _verticalScrollPolicy = _arg1; invalidate(InvalidationType.SIZE); } public function set useBitmapScrolling(_arg1:Boolean):void{ _useBitmpScrolling = _arg1; invalidate(InvalidationType.STATE); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, ScrollBar.getStyleDefinition())); } } }//package fl.containers
Section 7
//CellRenderer (fl.controls.listClasses.CellRenderer) package fl.controls.listClasses { import fl.controls.*; import flash.events.*; public class CellRenderer extends LabelButton implements ICellRenderer { protected var _data:Object; protected var _listData:ListData; private static var defaultStyles:Object = {upSkin:"CellRenderer_upSkin", downSkin:"CellRenderer_downSkin", overSkin:"CellRenderer_overSkin", disabledSkin:"CellRenderer_disabledSkin", selectedDisabledSkin:"CellRenderer_selectedDisabledSkin", selectedUpSkin:"CellRenderer_selectedUpSkin", selectedDownSkin:"CellRenderer_selectedDownSkin", selectedOverSkin:"CellRenderer_selectedOverSkin", textFormat:null, disabledTextFormat:null, embedFonts:null, textPadding:5}; public function CellRenderer():void{ toggle = true; focusEnabled = false; } override protected function toggleSelected(_arg1:MouseEvent):void{ } override public function get selected():Boolean{ return (super.selected); } public function set listData(_arg1:ListData):void{ _listData = _arg1; label = _listData.label; setStyle("icon", _listData.icon); } override public function set selected(_arg1:Boolean):void{ super.selected = _arg1; } public function set data(_arg1:Object):void{ _data = _arg1; } public function get listData():ListData{ return (_listData); } override public function setSize(_arg1:Number, _arg2:Number):void{ super.setSize(_arg1, _arg2); } override protected function drawLayout():void{ var _local1:Number; var _local2:Number; var _local3:Number; _local1 = Number(getStyleValue("textPadding")); _local2 = 0; if (icon != null){ icon.x = _local1; icon.y = Math.round(((height - icon.height) >> 1)); _local2 = (icon.width + _local1); }; if (label.length > 0){ textField.visible = true; _local3 = Math.max(0, ((width - _local2) - (_local1 * 2))); textField.width = _local3; textField.height = (textField.textHeight + 4); textField.x = (_local2 + _local1); textField.y = Math.round(((height - textField.height) >> 1)); } else { textField.visible = false; }; background.width = width; background.height = height; } public function get data():Object{ return (_data); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls.listClasses
Section 8
//ICellRenderer (fl.controls.listClasses.ICellRenderer) package fl.controls.listClasses { public interface ICellRenderer { function setSize(_arg1:Number, _arg2:Number):void; function get listData():ListData; function get data():Object; function setMouseState(_arg1:String):void; function set x(_arg1:Number):void; function set y(_arg1:Number):void; function set data(_arg1:Object):void; function set selected(_arg1:Boolean):void; function set listData(_arg1:ListData):void; function get selected():Boolean; } }//package fl.controls.listClasses
Section 9
//ListData (fl.controls.listClasses.ListData) package fl.controls.listClasses { import fl.core.*; public class ListData { protected var _index:uint; protected var _owner:UIComponent; protected var _label:String; protected var _icon:Object;// = null protected var _row:uint; protected var _column:uint; public function ListData(_arg1:String, _arg2:Object, _arg3:UIComponent, _arg4:uint, _arg5:uint, _arg6:uint=0){ _icon = null; super(); _label = _arg1; _icon = _arg2; _owner = _arg3; _index = _arg4; _row = _arg5; _column = _arg6; } public function get owner():UIComponent{ return (_owner); } public function get label():String{ return (_label); } public function get row():uint{ return (_row); } public function get index():uint{ return (_index); } public function get icon():Object{ return (_icon); } public function get column():uint{ return (_column); } } }//package fl.controls.listClasses
Section 10
//BaseButton (fl.controls.BaseButton) package fl.controls { import fl.core.*; import flash.display.*; import flash.events.*; import flash.utils.*; import fl.events.*; public class BaseButton extends UIComponent { protected var _selected:Boolean;// = false private var unlockedMouseState:String; protected var pressTimer:Timer; protected var mouseState:String; protected var background:DisplayObject; private var _mouseStateLocked:Boolean;// = false protected var _autoRepeat:Boolean;// = false private static var defaultStyles:Object = {upSkin:"Button_upSkin", downSkin:"Button_downSkin", overSkin:"Button_overSkin", disabledSkin:"Button_disabledSkin", selectedDisabledSkin:"Button_selectedDisabledSkin", selectedUpSkin:"Button_selectedUpSkin", selectedDownSkin:"Button_selectedDownSkin", selectedOverSkin:"Button_selectedOverSkin", focusRectSkin:null, focusRectPadding:null, repeatDelay:500, repeatInterval:35}; public function BaseButton(){ _selected = false; _autoRepeat = false; _mouseStateLocked = false; super(); buttonMode = true; mouseChildren = false; useHandCursor = false; setupMouseEvents(); setMouseState("up"); pressTimer = new Timer(1, 0); pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true); } protected function endPress():void{ pressTimer.reset(); } public function set mouseStateLocked(_arg1:Boolean):void{ _mouseStateLocked = _arg1; if (_arg1 == false){ setMouseState(unlockedMouseState); } else { unlockedMouseState = mouseState; }; } public function get autoRepeat():Boolean{ return (_autoRepeat); } public function set autoRepeat(_arg1:Boolean):void{ _autoRepeat = _arg1; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; mouseEnabled = _arg1; } public function get selected():Boolean{ return (_selected); } protected function mouseEventHandler(_arg1:MouseEvent):void{ if (_arg1.type == MouseEvent.MOUSE_DOWN){ setMouseState("down"); startPress(); } else { if ((((_arg1.type == MouseEvent.ROLL_OVER)) || ((_arg1.type == MouseEvent.MOUSE_UP)))){ setMouseState("over"); endPress(); } else { if (_arg1.type == MouseEvent.ROLL_OUT){ setMouseState("up"); endPress(); }; }; }; } public function setMouseState(_arg1:String):void{ if (_mouseStateLocked){ unlockedMouseState = _arg1; return; }; if (mouseState == _arg1){ return; }; mouseState = _arg1; invalidate(InvalidationType.STATE); } protected function startPress():void{ if (_autoRepeat){ pressTimer.delay = Number(getStyleValue("repeatDelay")); pressTimer.start(); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } protected function buttonDown(_arg1:TimerEvent):void{ if (!_autoRepeat){ endPress(); return; }; if (pressTimer.currentCount == 1){ pressTimer.delay = Number(getStyleValue("repeatInterval")); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } public function set selected(_arg1:Boolean):void{ if (_selected == _arg1){ return; }; _selected = _arg1; invalidate(InvalidationType.STATE); } override public function get enabled():Boolean{ return (super.enabled); } override protected function draw():void{ if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; super.draw(); } protected function setupMouseEvents():void{ addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false, 0, true); } protected function drawLayout():void{ background.width = width; background.height = height; } protected function drawBackground():void{ var _local1:String; var _local2:DisplayObject; _local1 = (enabled) ? mouseState : "disabled"; if (selected){ _local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1)); }; _local1 = (_local1 + "Skin"); _local2 = background; background = getDisplayObjectInstance(getStyleValue(_local1)); addChildAt(background, 0); if (((!((_local2 == null))) && (!((_local2 == background))))){ removeChild(_local2); }; } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 11
//Button (fl.controls.Button) package fl.controls { import fl.core.*; import flash.display.*; import fl.managers.*; public class Button extends LabelButton implements IFocusManagerComponent { protected var emphasizedBorder:DisplayObject; protected var _emphasized:Boolean;// = false private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2}; public static var createAccessibilityImplementation:Function; public function Button(){ _emphasized = false; super(); } override public function drawFocus(_arg1:Boolean):void{ var _local2:Number; var _local3:*; super.drawFocus(_arg1); if (_arg1){ _local2 = Number(getStyleValue("emphasizedPadding")); if ((((_local2 < 0)) || (!(_emphasized)))){ _local2 = 0; }; _local3 = getStyleValue("focusRectPadding"); _local3 = ((_local3)==null) ? 2 : _local3; _local3 = (_local3 + _local2); uiFocusRect.x = -(_local3); uiFocusRect.y = -(_local3); uiFocusRect.width = (width + (_local3 * 2)); uiFocusRect.height = (height + (_local3 * 2)); }; } public function set emphasized(_arg1:Boolean):void{ _emphasized = _arg1; invalidate(InvalidationType.STYLES); } override protected function draw():void{ if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){ drawEmphasized(); }; super.draw(); if (emphasizedBorder != null){ setChildIndex(emphasizedBorder, (numChildren - 1)); }; } public function get emphasized():Boolean{ return (_emphasized); } override protected function initializeAccessibility():void{ if (Button.createAccessibilityImplementation != null){ Button.createAccessibilityImplementation(this); }; } protected function drawEmphasized():void{ var _local1:Object; var _local2:Number; if (emphasizedBorder != null){ removeChild(emphasizedBorder); }; emphasizedBorder = null; if (!_emphasized){ return; }; _local1 = getStyleValue("emphasizedSkin"); if (_local1 != null){ emphasizedBorder = getDisplayObjectInstance(_local1); }; if (emphasizedBorder != null){ addChildAt(emphasizedBorder, 0); _local2 = Number(getStyleValue("emphasizedPadding")); emphasizedBorder.x = (emphasizedBorder.y = -(_local2)); emphasizedBorder.width = (width + (_local2 * 2)); emphasizedBorder.height = (height + (_local2 * 2)); }; } public static function getStyleDefinition():Object{ return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles)); } } }//package fl.controls
Section 12
//ButtonLabelPlacement (fl.controls.ButtonLabelPlacement) package fl.controls { public class ButtonLabelPlacement { public static const TOP:String = "top"; public static const LEFT:String = "left"; public static const BOTTOM:String = "bottom"; public static const RIGHT:String = "right"; } }//package fl.controls
Section 13
//CheckBox (fl.controls.CheckBox) package fl.controls { import flash.display.*; public class CheckBox extends LabelButton { private static var defaultStyles:Object = {icon:null, upIcon:"CheckBox_upIcon", downIcon:"CheckBox_downIcon", overIcon:"CheckBox_overIcon", disabledIcon:"CheckBox_disabledIcon", selectedDisabledIcon:"CheckBox_selectedDisabledIcon", focusRectSkin:null, focusRectPadding:null, selectedUpIcon:"CheckBox_selectedUpIcon", selectedDownIcon:"CheckBox_selectedDownIcon", selectedOverIcon:"CheckBox_selectedOverIcon", textFormat:null, disabledTextFormat:null, embedFonts:null, textPadding:5}; public static var createAccessibilityImplementation:Function; override public function drawFocus(_arg1:Boolean):void{ var _local2:Number; super.drawFocus(_arg1); if (_arg1){ _local2 = Number(getStyleValue("focusRectPadding")); uiFocusRect.x = (background.x - _local2); uiFocusRect.y = (background.y - _local2); uiFocusRect.width = (background.width + (_local2 << 1)); uiFocusRect.height = (background.height + (_local2 << 1)); }; } override public function get autoRepeat():Boolean{ return (false); } override public function set autoRepeat(_arg1:Boolean):void{ } override public function set toggle(_arg1:Boolean):void{ throw (new Error("Warning: You cannot change a CheckBox's toggle.")); } override public function get toggle():Boolean{ return (true); } override protected function configUI():void{ var _local1:Shape; var _local2:Graphics; super.configUI(); super.toggle = true; _local1 = new Shape(); _local2 = _local1.graphics; _local2.beginFill(0, 0); _local2.drawRect(0, 0, 100, 100); _local2.endFill(); background = (_local1 as DisplayObject); addChildAt(background, 0); } override protected function drawLayout():void{ var _local1:Number; super.drawLayout(); _local1 = Number(getStyleValue("textPadding")); switch (_labelPlacement){ case ButtonLabelPlacement.RIGHT: icon.x = _local1; textField.x = (icon.x + (icon.width + _local1)); background.width = ((textField.x + textField.width) + _local1); background.height = (Math.max(textField.height, icon.height) + (_local1 * 2)); break; case ButtonLabelPlacement.LEFT: icon.x = ((width - icon.width) - _local1); textField.x = (((width - icon.width) - (_local1 * 2)) - textField.width); background.width = ((textField.width + icon.width) + (_local1 * 3)); background.height = (Math.max(textField.height, icon.height) + (_local1 * 2)); break; case ButtonLabelPlacement.TOP: case ButtonLabelPlacement.BOTTOM: background.width = (Math.max(textField.width, icon.width) + (_local1 * 2)); background.height = ((textField.height + icon.height) + (_local1 * 3)); break; }; background.x = Math.min((icon.x - _local1), (textField.x - _local1)); background.y = Math.min((icon.y - _local1), (textField.y - _local1)); } override protected function drawBackground():void{ } override protected function initializeAccessibility():void{ if (CheckBox.createAccessibilityImplementation != null){ CheckBox.createAccessibilityImplementation(this); }; } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 14
//ComboBox (fl.controls.ComboBox) package fl.controls { import fl.controls.listClasses.*; import fl.core.*; import flash.display.*; import flash.events.*; import fl.data.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.geom.*; import flash.ui.*; public class ComboBox extends UIComponent implements IFocusManagerComponent { protected var _dropdownWidth:Number; protected var highlightedCell:int;// = -1 protected var _prompt:String; protected var isOpen:Boolean;// = false protected var list:List; protected var _rowCount:uint;// = 5 protected var currentIndex:int; protected var isKeyDown:Boolean;// = false protected var _labels:Array; protected var background:BaseButton; protected var inputField:TextInput; protected var listOverIndex:uint; protected var editableValue:String; protected var _editable:Boolean;// = false private var collectionItemImport:SimpleCollectionItem; protected static const BACKGROUND_STYLES:Object = {overSkin:"overSkin", downSkin:"downSkin", upSkin:"upSkin", disabledSkin:"disabledSkin", repeatInterval:"repeatInterval"}; protected static const LIST_STYLES:Object = {upSkin:"comboListUpSkin", overSkin:"comboListOverSkin", downSkin:"comobListDownSkin", disabledSkin:"comboListDisabledSkin", downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval", textFormat:"textFormat", disabledAlpha:"disabledAlpha", skin:"listSkin"}; private static var defaultStyles:Object = {upSkin:"ComboBox_upSkin", downSkin:"ComboBox_downSkin", overSkin:"ComboBox_overSkin", disabledSkin:"ComboBox_disabledSkin", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, textPadding:3, buttonWidth:24, disabledAlpha:null, listSkin:null}; public static var createAccessibilityImplementation:Function; public function ComboBox(){ _rowCount = 5; _editable = false; isOpen = false; highlightedCell = -1; isKeyDown = false; super(); } protected function drawList():void{ list.rowCount = Math.max(0, Math.min(_rowCount, list.dataProvider.length)); } public function set imeMode(_arg1:String):void{ inputField.imeMode = _arg1; } public function get dropdown():List{ return (list); } public function get dropdownWidth():Number{ return (list.width); } public function sortItemsOn(_arg1:String, _arg2:Object=null){ return (list.sortItemsOn(_arg1, _arg2)); } protected function onEnter(_arg1:ComponentEvent):void{ _arg1.stopPropagation(); } public function removeItemAt(_arg1:uint):void{ list.removeItemAt(_arg1); invalidate(InvalidationType.DATA); } public function open():void{ currentIndex = selectedIndex; if (((isOpen) || ((length == 0)))){ return; }; dispatchEvent(new Event(Event.OPEN)); isOpen = true; addEventListener(Event.ENTER_FRAME, addCloseListener, false, 0, true); positionList(); list.scrollToSelected(); stage.addChild(list); } public function get selectedItem():Object{ return (list.selectedItem); } public function set text(_arg1:String):void{ if (!editable){ return; }; inputField.text = _arg1; } public function get labelField():String{ return (list.labelField); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ var _local2:int; var _local3:uint; var _local4:Number; var _local5:int; isKeyDown = true; if (_arg1.ctrlKey){ switch (_arg1.keyCode){ case Keyboard.UP: if (highlightedCell > -1){ selectedIndex = highlightedCell; dispatchEvent(new Event(Event.CHANGE)); }; close(); break; case Keyboard.DOWN: open(); break; }; return; }; _arg1.stopPropagation(); _local2 = Math.max(((calculateAvailableHeight() / list.rowHeight) << 0), 1); _local3 = selectedIndex; _local4 = ((highlightedCell)==-1) ? selectedIndex : highlightedCell; _local5 = -1; switch (_arg1.keyCode){ case Keyboard.SPACE: if (isOpen){ close(); } else { open(); }; return; case Keyboard.ESCAPE: if (isOpen){ if (highlightedCell > -1){ selectedIndex = selectedIndex; }; close(); }; return; case Keyboard.UP: _local5 = Math.max(0, (_local4 - 1)); break; case Keyboard.DOWN: _local5 = Math.min((length - 1), (_local4 + 1)); break; case Keyboard.PAGE_UP: _local5 = Math.max((_local4 - _local2), 0); break; case Keyboard.PAGE_DOWN: _local5 = Math.min((_local4 + _local2), (length - 1)); break; case Keyboard.HOME: _local5 = 0; break; case Keyboard.END: _local5 = (length - 1); break; case Keyboard.ENTER: if (((_editable) && ((highlightedCell == -1)))){ editableValue = inputField.text; selectedIndex = -1; } else { if (((isOpen) && ((highlightedCell > -1)))){ editableValue = null; selectedIndex = highlightedCell; dispatchEvent(new Event(Event.CHANGE)); }; }; dispatchEvent(new ComponentEvent(ComponentEvent.ENTER)); close(); return; default: if (editable){ break; }; _local5 = list.getNextIndexAtLetter(String.fromCharCode(_arg1.keyCode), _local4); break; }; if (_local5 > -1){ if (isOpen){ highlightCell(_local5); inputField.text = list.itemToLabel(getItemAt(_local5)); } else { highlightCell(); selectedIndex = _local5; dispatchEvent(new Event(Event.CHANGE)); }; }; } public function set dropdownWidth(_arg1:Number):void{ _dropdownWidth = _arg1; invalidate(InvalidationType.SIZE); } public function get editable():Boolean{ return (_editable); } override protected function focusInHandler(_arg1:FocusEvent):void{ super.focusInHandler(_arg1); if (editable){ stage.focus = inputField.textField; }; } protected function onStageClick(_arg1:MouseEvent):void{ if (!isOpen){ return; }; if (((!(contains((_arg1.target as DisplayObject)))) && (!(list.contains((_arg1.target as DisplayObject)))))){ if (highlightedCell != -1){ selectedIndex = highlightedCell; dispatchEvent(new Event(Event.CHANGE)); }; close(); }; } protected function handleDataChange(_arg1:DataChangeEvent):void{ invalidate(InvalidationType.DATA); } override protected function keyUpHandler(_arg1:KeyboardEvent):void{ isKeyDown = false; } protected function onListItemUp(_arg1:MouseEvent):void{ var _local2:*; stage.removeEventListener(MouseEvent.MOUSE_UP, onListItemUp); if (((!((_arg1.target is ICellRenderer))) || (!(list.contains((_arg1.target as DisplayObject)))))){ return; }; editableValue = null; _local2 = selectedIndex; selectedIndex = _arg1.target.listData.index; if (_local2 != selectedIndex){ dispatchEvent(new Event(Event.CHANGE)); }; close(); } public function removeAll():void{ list.removeAll(); inputField.text = ""; invalidate(InvalidationType.DATA); } public function set selectedItem(_arg1:Object):void{ list.selectedItem = _arg1; invalidate(InvalidationType.SELECTED); } protected function highlightCell(_arg1:int=-1):void{ var _local2:ICellRenderer; if (highlightedCell > -1){ _local2 = list.itemToCellRenderer(getItemAt(highlightedCell)); if (_local2 != null){ _local2.setMouseState("up"); }; }; if (_arg1 == -1){ return; }; list.scrollToIndex(_arg1); list.drawNow(); _local2 = list.itemToCellRenderer(getItemAt(_arg1)); if (_local2 != null){ _local2.setMouseState("over"); highlightedCell = _arg1; }; } public function itemToLabel(_arg1:Object):String{ if (_arg1 == null){ return (""); }; return (list.itemToLabel(_arg1)); } public function addItemAt(_arg1:Object, _arg2:uint):void{ list.addItemAt(_arg1, _arg2); invalidate(InvalidationType.DATA); } public function replaceItemAt(_arg1:Object, _arg2:uint):Object{ return (list.replaceItemAt(_arg1, _arg2)); } protected function showPrompt():void{ inputField.text = _prompt; } public function set rowCount(_arg1:uint):void{ _rowCount = _arg1; invalidate(InvalidationType.SIZE); } public function get restrict():String{ return (inputField.restrict); } protected function setEmbedFonts():void{ var _local1:Object; _local1 = getStyleValue("embedFonts"); if (_local1 != null){ inputField.textField.embedFonts = _local1; }; } public function sortItems(... _args){ return (list.sortItems.apply(list, _args)); } public function set labelField(_arg1:String):void{ list.labelField = _arg1; invalidate(InvalidationType.DATA); } public function set editable(_arg1:Boolean):void{ _editable = _arg1; drawTextField(); } public function set prompt(_arg1:String):void{ if (_arg1 == ""){ _prompt = null; } else { _prompt = _arg1; }; invalidate(InvalidationType.STATE); } public function get length():int{ return (list.length); } protected function drawTextField():void{ inputField.setStyle("upSkin", ""); inputField.setStyle("disabledSkin", ""); inputField.enabled = enabled; inputField.editable = _editable; inputField.textField.selectable = ((enabled) && (_editable)); inputField.mouseEnabled = (inputField.mouseChildren = ((enabled) && (_editable))); inputField.focusEnabled = false; if (_editable){ inputField.addEventListener(FocusEvent.FOCUS_IN, onInputFieldFocus, false, 0, true); inputField.addEventListener(FocusEvent.FOCUS_OUT, onInputFieldFocusOut, false, 0, true); } else { inputField.removeEventListener(FocusEvent.FOCUS_IN, onInputFieldFocus); inputField.removeEventListener(FocusEvent.FOCUS_OUT, onInputFieldFocusOut); }; } protected function onInputFieldFocusOut(_arg1:FocusEvent):void{ inputField.removeEventListener(ComponentEvent.ENTER, onEnter); selectedIndex = selectedIndex; } protected function passEvent(_arg1:Event):void{ dispatchEvent(_arg1); } public function get imeMode():String{ return (inputField.imeMode); } public function get labelFunction():Function{ return (list.labelFunction); } protected function calculateAvailableHeight():Number{ var _local1:Number; _local1 = Number(getStyleValue("contentPadding")); return ((list.height - (_local1 * 2))); } public function get selectedIndex():int{ return (list.selectedIndex); } override protected function focusOutHandler(_arg1:FocusEvent):void{ isKeyDown = false; if (isOpen){ if (((!(_arg1.relatedObject)) || (!(list.contains(_arg1.relatedObject))))){ if (((!((highlightedCell == -1))) && (!((highlightedCell == selectedIndex))))){ selectedIndex = highlightedCell; dispatchEvent(new Event(Event.CHANGE)); }; close(); }; }; super.focusOutHandler(_arg1); } public function get selectedLabel():String{ if (editableValue != null){ return (editableValue); }; if (selectedIndex == -1){ return (null); }; return (itemToLabel(selectedItem)); } public function get text():String{ return (inputField.text); } protected function onListChange(_arg1:Event):void{ editableValue = null; dispatchEvent(_arg1); invalidate(InvalidationType.SELECTED); if (isKeyDown){ return; }; close(); } protected function onToggleListVisibility(_arg1:MouseEvent):void{ _arg1.stopPropagation(); dispatchEvent(_arg1); if (isOpen){ close(); } else { open(); stage.addEventListener(MouseEvent.MOUSE_UP, onListItemUp, false, 0, true); }; } override protected function draw():void{ var _local1:*; _local1 = selectedIndex; if ((((_local1 == -1)) && (((((!((prompt == null))) || (editable))) || ((length == 0)))))){ _local1 = Math.max(-1, Math.min(_local1, (length - 1))); } else { editableValue = null; _local1 = Math.max(0, Math.min(_local1, (length - 1))); }; if (list.selectedIndex != _local1){ list.selectedIndex = _local1; invalidate(InvalidationType.SELECTED, false); }; if (isInvalid(InvalidationType.STYLES)){ setStyles(); setEmbedFonts(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE, InvalidationType.DATA, InvalidationType.STATE)){ drawTextFormat(); drawLayout(); invalidate(InvalidationType.DATA); }; if (isInvalid(InvalidationType.DATA)){ drawList(); invalidate(InvalidationType.SELECTED, true); }; if (isInvalid(InvalidationType.SELECTED)){ if ((((_local1 == -1)) && (!((editableValue == null))))){ inputField.text = editableValue; } else { if (_local1 > -1){ if (length > 0){ inputField.horizontalScrollPosition = 0; inputField.text = itemToLabel(list.selectedItem); }; } else { if ((((_local1 == -1)) && (!((_prompt == null))))){ showPrompt(); } else { inputField.text = ""; }; }; }; if (((((editable) && ((selectedIndex > -1)))) && ((stage.focus == inputField.textField)))){ inputField.setSelection(0, inputField.length); }; }; drawTextField(); super.draw(); } public function addItem(_arg1:Object):void{ list.addItem(_arg1); invalidate(InvalidationType.DATA); } public function get rowCount():uint{ return (_rowCount); } override protected function configUI():void{ super.configUI(); background = new BaseButton(); background.focusEnabled = false; copyStylesToChild(background, BACKGROUND_STYLES); background.addEventListener(MouseEvent.MOUSE_DOWN, onToggleListVisibility, false, 0, true); addChild(background); inputField = new TextInput(); inputField.focusTarget = (this as IFocusManagerComponent); inputField.focusEnabled = false; inputField.addEventListener(Event.CHANGE, onTextInput, false, 0, true); addChild(inputField); list = new List(); list.focusEnabled = false; copyStylesToChild(list, LIST_STYLES); list.addEventListener(Event.CHANGE, onListChange, false, 0, true); list.addEventListener(ListEvent.ITEM_CLICK, onListChange, false, 0, true); list.addEventListener(ListEvent.ITEM_ROLL_OUT, passEvent, false, 0, true); list.addEventListener(ListEvent.ITEM_ROLL_OVER, passEvent, false, 0, true); list.verticalScrollBar.addEventListener(Event.SCROLL, passEvent, false, 0, true); } protected function positionList():void{ var _local1:Point; _local1 = localToGlobal(new Point(0, 0)); list.x = _local1.x; if (((_local1.y + height) + list.height) > stage.stageHeight){ list.y = (_local1.y - list.height); } else { list.y = (_local1.y + height); }; } public function get value():String{ var _local1:Object; if (editableValue != null){ return (editableValue); }; _local1 = selectedItem; if (((!(_editable)) && (!((_local1.data == null))))){ return (_local1.data); }; return (itemToLabel(_local1)); } public function get prompt():String{ return (_prompt); } public function set dataProvider(_arg1:DataProvider):void{ _arg1.addEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange, false, 0, true); list.dataProvider = _arg1; invalidate(InvalidationType.DATA); } public function set restrict(_arg1:String):void{ if (((componentInspectorSetting) && ((_arg1 == "")))){ _arg1 = null; }; if (!_editable){ return; }; inputField.restrict = _arg1; } protected function onTextInput(_arg1:Event):void{ _arg1.stopPropagation(); if (!_editable){ return; }; editableValue = inputField.text; selectedIndex = -1; dispatchEvent(new Event(Event.CHANGE)); } protected function onInputFieldFocus(_arg1:FocusEvent):void{ inputField.addEventListener(ComponentEvent.ENTER, onEnter, false, 0, true); close(); } public function getItemAt(_arg1:uint):Object{ return (list.getItemAt(_arg1)); } override protected function initializeAccessibility():void{ if (ComboBox.createAccessibilityImplementation != null){ ComboBox.createAccessibilityImplementation(this); }; } protected function drawLayout():void{ var _local1:Number; var _local2:Number; _local1 = (getStyleValue("buttonWidth") as Number); _local2 = (getStyleValue("textPadding") as Number); background.setSize(width, height); inputField.x = (inputField.y = _local2); inputField.setSize(((width - _local1) - _local2), (height - _local2)); list.width = (isNaN(_dropdownWidth)) ? width : _dropdownWidth; background.enabled = enabled; background.drawNow(); } public function removeItem(_arg1:Object):Object{ return (list.removeItem(_arg1)); } private function addCloseListener(_arg1:Event){ removeEventListener(Event.ENTER_FRAME, addCloseListener); if (!isOpen){ return; }; stage.addEventListener(MouseEvent.MOUSE_DOWN, onStageClick, false, 0, true); } public function get dataProvider():DataProvider{ return (list.dataProvider); } public function get textField():TextInput{ return (inputField); } protected function setStyles():void{ copyStylesToChild(background, BACKGROUND_STYLES); copyStylesToChild(list, LIST_STYLES); } public function set labelFunction(_arg1:Function):void{ list.labelFunction = _arg1; invalidate(InvalidationType.DATA); } protected function drawTextFormat():void{ var _local1:TextFormat; _local1 = (getStyleValue((_enabled) ? "textFormat" : "disabledTextFormat") as TextFormat); if (_local1 == null){ _local1 = new TextFormat(); }; inputField.textField.defaultTextFormat = _local1; inputField.textField.setTextFormat(_local1); setEmbedFonts(); } public function set selectedIndex(_arg1:int):void{ list.selectedIndex = _arg1; highlightCell(); invalidate(InvalidationType.SELECTED); } public function close():void{ highlightCell(); highlightedCell = -1; if (!isOpen){ return; }; dispatchEvent(new Event(Event.CLOSE)); stage.removeEventListener(MouseEvent.MOUSE_DOWN, onStageClick); isOpen = false; stage.removeChild(list); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, List.getStyleDefinition())); } } }//package fl.controls
Section 15
//LabelButton (fl.controls.LabelButton) package fl.controls { import fl.core.*; import flash.display.*; import flash.events.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.ui.*; public class LabelButton extends BaseButton implements IFocusManagerComponent { protected var _labelPlacement:String;// = "right" protected var _toggle:Boolean;// = false protected var icon:DisplayObject; protected var oldMouseState:String; protected var mode:String;// = "center" public var textField:TextField; protected var _label:String;// = "Label" private static var defaultStyles:Object = {icon:null, upIcon:null, downIcon:null, overIcon:null, disabledIcon:null, selectedDisabledIcon:null, selectedUpIcon:null, selectedDownIcon:null, selectedOverIcon:null, textFormat:null, disabledTextFormat:null, textPadding:5, embedFonts:false}; public static var createAccessibilityImplementation:Function; public function LabelButton(){ _labelPlacement = ButtonLabelPlacement.RIGHT; _toggle = false; _label = "Label"; mode = "center"; super(); } protected function toggleSelected(_arg1:MouseEvent):void{ selected = !(selected); dispatchEvent(new Event(Event.CHANGE, true)); } public function get labelPlacement():String{ return (_labelPlacement); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ if (oldMouseState == null){ oldMouseState = mouseState; }; setMouseState("down"); startPress(); }; } protected function setEmbedFont(){ var _local1:Object; _local1 = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; } override protected function keyUpHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ setMouseState(oldMouseState); oldMouseState = null; endPress(); dispatchEvent(new MouseEvent(MouseEvent.CLICK)); }; } override public function get selected():Boolean{ return ((_toggle) ? _selected : false); } public function set labelPlacement(_arg1:String):void{ _labelPlacement = _arg1; invalidate(InvalidationType.SIZE); } public function set toggle(_arg1:Boolean):void{ if (((!(_arg1)) && (super.selected))){ selected = false; }; _toggle = _arg1; if (_toggle){ addEventListener(MouseEvent.CLICK, toggleSelected, false, 0, true); } else { removeEventListener(MouseEvent.CLICK, toggleSelected); }; invalidate(InvalidationType.STATE); } public function get label():String{ return (_label); } override public function set selected(_arg1:Boolean):void{ _selected = _arg1; if (_toggle){ invalidate(InvalidationType.STATE); }; } override protected function draw():void{ if (textField.text != _label){ label = _label; }; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); drawIcon(); drawTextFormat(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } public function get toggle():Boolean{ return (_toggle); } override protected function configUI():void{ super.configUI(); textField = new TextField(); textField.type = TextFieldType.DYNAMIC; textField.selectable = false; addChild(textField); } override protected function drawLayout():void{ var _local1:Number; var _local2:String; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; _local1 = Number(getStyleValue("textPadding")); _local2 = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement; textField.height = (textField.textHeight + 4); _local3 = (textField.textWidth + 4); _local4 = (textField.textHeight + 4); _local5 = ((icon)==null) ? 0 : (icon.width + _local1); _local6 = ((icon)==null) ? 0 : (icon.height + _local1); textField.visible = (label.length > 0); if (icon != null){ icon.x = Math.round(((width - icon.width) / 2)); icon.y = Math.round(((height - icon.height) / 2)); }; if (textField.visible == false){ textField.width = 0; textField.height = 0; } else { if ((((_local2 == ButtonLabelPlacement.BOTTOM)) || ((_local2 == ButtonLabelPlacement.TOP)))){ _local7 = Math.max(0, Math.min(_local3, (width - (2 * _local1)))); if ((height - 2) > _local4){ _local8 = _local4; } else { _local8 = (height - 2); }; _local3 = _local7; textField.width = _local3; _local4 = _local8; textField.height = _local4; textField.x = Math.round(((width - _local3) / 2)); textField.y = Math.round(((((height - textField.height) - _local6) / 2) + ((_local2)==ButtonLabelPlacement.BOTTOM) ? _local6 : 0)); if (icon != null){ icon.y = Math.round(((_local2)==ButtonLabelPlacement.BOTTOM) ? (textField.y - _local6) : ((textField.y + textField.height) + _local1)); }; } else { _local7 = Math.max(0, Math.min(_local3, ((width - _local5) - (2 * _local1)))); _local3 = _local7; textField.width = _local3; textField.x = Math.round(((((width - _local3) - _local5) / 2) + ((_local2)!=ButtonLabelPlacement.LEFT) ? _local5 : 0)); textField.y = Math.round(((height - textField.height) / 2)); if (icon != null){ icon.x = Math.round(((_local2)!=ButtonLabelPlacement.LEFT) ? (textField.x - _local5) : ((textField.x + _local3) + _local1)); }; }; }; super.drawLayout(); } override protected function initializeAccessibility():void{ if (LabelButton.createAccessibilityImplementation != null){ LabelButton.createAccessibilityImplementation(this); }; } protected function drawIcon():void{ var _local1:DisplayObject; var _local2:String; var _local3:Object; _local1 = icon; _local2 = (enabled) ? mouseState : "disabled"; if (selected){ _local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1)); }; _local2 = (_local2 + "Icon"); _local3 = getStyleValue(_local2); if (_local3 == null){ _local3 = getStyleValue("icon"); }; if (_local3 != null){ icon = getDisplayObjectInstance(_local3); }; if (icon != null){ addChildAt(icon, 1); }; if (((!((_local1 == null))) && (!((_local1 == icon))))){ removeChild(_local1); }; } public function set label(_arg1:String):void{ _label = _arg1; if (textField.text != _label){ textField.text = _label; dispatchEvent(new ComponentEvent(ComponentEvent.LABEL_CHANGE)); }; invalidate(InvalidationType.SIZE); invalidate(InvalidationType.STYLES); } protected function drawTextFormat():void{ var _local1:Object; var _local2:TextFormat; var _local3:TextFormat; _local1 = UIComponent.getStyleDefinition(); _local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat); textField.setTextFormat(_local2); _local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat); if (_local3 != null){ textField.setTextFormat(_local3); } else { _local3 = _local2; }; textField.defaultTextFormat = _local3; setEmbedFont(); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition())); } } }//package fl.controls
Section 16
//List (fl.controls.List) package fl.controls { import fl.controls.listClasses.*; import fl.core.*; import flash.display.*; import flash.events.*; import flash.utils.*; import fl.managers.*; import flash.geom.*; import flash.ui.*; public class List extends SelectableList implements IFocusManagerComponent { protected var _labelField:String;// = "label" protected var _rowHeight:Number;// = 20 protected var _cellRenderer:Object; protected var _iconField:String;// = "icon" protected var _labelFunction:Function; protected var _iconFunction:Function; private static var defaultStyles:Object = {focusRectSkin:null, focusRectPadding:null}; public static var createAccessibilityImplementation:Function; public function List(){ _rowHeight = 20; _labelField = "label"; _iconField = "icon"; super(); } public function get iconField():String{ return (_iconField); } protected function doKeySelection(_arg1:int, _arg2:Boolean, _arg3:Boolean):void{ var _local4:Boolean; var _local5:int; var _local6:Array; var _local7:int; var _local8:int; _local4 = false; if (_arg2){ _local6 = []; _local7 = lastCaretIndex; _local8 = _arg1; if (_local7 == -1){ _local7 = ((caretIndex)!=-1) ? caretIndex : _arg1; }; if (_local7 > _local8){ _local8 = _local7; _local7 = _arg1; }; _local5 = _local7; while (_local5 <= _local8) { _local6.push(_local5); _local5++; }; selectedIndices = _local6; caretIndex = _arg1; _local4 = true; } else { selectedIndex = _arg1; caretIndex = (lastCaretIndex = _arg1); _local4 = true; }; if (_local4){ dispatchEvent(new Event(Event.CHANGE)); }; invalidate(InvalidationType.DATA); } override protected function drawList():void{ var _local1:Rectangle; var _local2:uint; var _local3:uint; var _local4:uint; var _local5:Object; var _local6:ICellRenderer; var _local7:Dictionary; var _local8:Dictionary; var _local9:Boolean; var _local10:String; var _local11:Object; var _local12:Sprite; var _local13:String; listHolder.x = (listHolder.y = contentPadding); _local1 = listHolder.scrollRect; _local1.x = _horizontalScrollPosition; _local1.y = (Math.floor(_verticalScrollPosition) % rowHeight); listHolder.scrollRect = _local1; listHolder.cacheAsBitmap = useBitmapScrolling; _local2 = Math.floor((_verticalScrollPosition / rowHeight)); _local3 = Math.min(length, ((_local2 + rowCount) + 1)); _local7 = (renderedItems = new Dictionary(true)); _local4 = _local2; while (_local4 < _local3) { _local7[_dataProvider.getItemAt(_local4)] = true; _local4++; }; _local8 = new Dictionary(true); while (activeCellRenderers.length > 0) { _local6 = (activeCellRenderers.pop() as ICellRenderer); _local5 = _local6.data; if ((((_local7[_local5] == null)) || ((invalidItems[_local5] == true)))){ availableCellRenderers.push(_local6); } else { _local8[_local5] = _local6; invalidItems[_local5] = true; }; list.removeChild((_local6 as DisplayObject)); }; invalidItems = new Dictionary(true); _local4 = _local2; while (_local4 < _local3) { _local9 = false; _local5 = _dataProvider.getItemAt(_local4); if (_local8[_local5] != null){ _local9 = true; _local6 = _local8[_local5]; delete _local8[_local5]; } else { if (availableCellRenderers.length > 0){ _local6 = (availableCellRenderers.pop() as ICellRenderer); } else { _local6 = (getDisplayObjectInstance(getStyleValue("cellRenderer")) as ICellRenderer); _local12 = (_local6 as Sprite); if (_local12 != null){ _local12.addEventListener(MouseEvent.CLICK, handleCellRendererClick, false, 0, true); _local12.addEventListener(MouseEvent.ROLL_OVER, handleCellRendererMouseEvent, false, 0, true); _local12.addEventListener(MouseEvent.ROLL_OUT, handleCellRendererMouseEvent, false, 0, true); _local12.addEventListener(Event.CHANGE, handleCellRendererChange, false, 0, true); _local12.doubleClickEnabled = true; _local12.addEventListener(MouseEvent.DOUBLE_CLICK, handleCellRendererDoubleClick, false, 0, true); if (_local12["setStyle"] != null){ for (_local13 in rendererStyles) { var _local16 = _local12; _local16["setStyle"](_local13, rendererStyles[_local13]); }; }; }; }; }; list.addChild((_local6 as Sprite)); activeCellRenderers.push(_local6); _local6.y = (rowHeight * (_local4 - _local2)); _local6.setSize((availableWidth + _maxHorizontalScrollPosition), rowHeight); _local10 = itemToLabel(_local5); _local11 = null; if (_iconFunction != null){ _local11 = _iconFunction(_local5); } else { if (_iconField != null){ _local11 = _local5[_iconField]; }; }; if (!_local9){ _local6.data = _local5; }; _local6.listData = new ListData(_local10, _local11, this, _local4, _local4, 0); _local6.selected = !((_selectedIndices.indexOf(_local4) == -1)); if ((_local6 is UIComponent)){ (_local6 as UIComponent).drawNow(); }; _local4++; }; } public function get iconFunction():Function{ return (_iconFunction); } public function set iconField(_arg1:String):void{ if (_arg1 == _iconField){ return; }; _iconField = _arg1; invalidate(InvalidationType.DATA); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ var _local2:int; if (!selectable){ return; }; switch (_arg1.keyCode){ case Keyboard.UP: case Keyboard.DOWN: case Keyboard.END: case Keyboard.HOME: case Keyboard.PAGE_UP: case Keyboard.PAGE_DOWN: moveSelectionVertically(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); break; case Keyboard.LEFT: case Keyboard.RIGHT: moveSelectionHorizontally(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); break; case Keyboard.SPACE: if (caretIndex == -1){ caretIndex = 0; }; doKeySelection(caretIndex, _arg1.shiftKey, _arg1.ctrlKey); scrollToSelected(); break; default: _local2 = getNextIndexAtLetter(String.fromCharCode(_arg1.keyCode), selectedIndex); if (_local2 > -1){ selectedIndex = _local2; scrollToSelected(); }; break; }; _arg1.stopPropagation(); } override public function itemToLabel(_arg1:Object):String{ if (_labelFunction != null){ return (String(_labelFunction(_arg1))); }; return (((_arg1[_labelField])!=null) ? String(_arg1[_labelField]) : ""); } public function get labelField():String{ return (_labelField); } override protected function moveSelectionVertically(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ var _local4:int; var _local5:int; var _local6:int; _local4 = Math.max(Math.floor((calculateAvailableHeight() / rowHeight)), 1); _local5 = -1; _local6 = 0; switch (_arg1){ case Keyboard.UP: if (caretIndex > 0){ _local5 = (caretIndex - 1); }; break; case Keyboard.DOWN: if (caretIndex < (length - 1)){ _local5 = (caretIndex + 1); }; break; case Keyboard.PAGE_UP: if (caretIndex > 0){ _local5 = Math.max((caretIndex - _local4), 0); }; break; case Keyboard.PAGE_DOWN: if (caretIndex < (length - 1)){ _local5 = Math.min((caretIndex + _local4), (length - 1)); }; break; case Keyboard.HOME: if (caretIndex > 0){ _local5 = 0; }; break; case Keyboard.END: if (caretIndex < (length - 1)){ _local5 = (length - 1); }; break; }; if (_local5 >= 0){ doKeySelection(_local5, _arg2, _arg3); scrollToSelected(); }; } public function set labelField(_arg1:String):void{ if (_arg1 == _labelField){ return; }; _labelField = _arg1; invalidate(InvalidationType.DATA); } public function set rowCount(_arg1:uint):void{ var _local2:Number; var _local3:Number; _local2 = Number(getStyleValue("contentPadding")); _local3 = ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0; height = (((rowHeight * _arg1) + (2 * _local2)) + _local3); } override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ list.x = -(_arg1); super.setHorizontalScrollPosition(_arg1, true); } public function set iconFunction(_arg1:Function):void{ if (_iconFunction == _arg1){ return; }; _iconFunction = _arg1; invalidate(InvalidationType.DATA); } public function get labelFunction():Function{ return (_labelFunction); } override protected function moveSelectionHorizontally(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ } override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ invalidate(InvalidationType.SCROLL); super.setVerticalScrollPosition(_arg1, true); } protected function calculateAvailableHeight():Number{ var _local1:Number; _local1 = Number(getStyleValue("contentPadding")); return (((height - (_local1 * 2)) - ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0)); } override protected function draw():void{ var _local1:Boolean; _local1 = !((contentHeight == (rowHeight * length))); contentHeight = (rowHeight * length); if (isInvalid(InvalidationType.STYLES)){ setStyles(); drawBackground(); if (contentPadding != getStyleValue("contentPadding")){ invalidate(InvalidationType.SIZE, false); }; if (_cellRenderer != getStyleValue("cellRenderer")){ _invalidateList(); _cellRenderer = getStyleValue("cellRenderer"); }; }; if (((isInvalid(InvalidationType.SIZE, InvalidationType.STATE)) || (_local1))){ drawLayout(); }; if (isInvalid(InvalidationType.RENDERER_STYLES)){ updateRendererStyles(); }; if (isInvalid(InvalidationType.STYLES, InvalidationType.SIZE, InvalidationType.DATA, InvalidationType.SCROLL, InvalidationType.SELECTED)){ drawList(); }; updateChildren(); validate(); } override protected function configUI():void{ useFixedHorizontalScrolling = true; _horizontalScrollPolicy = ScrollPolicy.AUTO; _verticalScrollPolicy = ScrollPolicy.AUTO; super.configUI(); } override public function get rowCount():uint{ return (Math.ceil((calculateAvailableHeight() / rowHeight))); } override protected function initializeAccessibility():void{ if (List.createAccessibilityImplementation != null){ List.createAccessibilityImplementation(this); }; } override public function scrollToIndex(_arg1:int):void{ var _local2:uint; var _local3:uint; drawNow(); _local2 = (Math.floor(((_verticalScrollPosition + availableHeight) / rowHeight)) - 1); _local3 = Math.ceil((_verticalScrollPosition / rowHeight)); if (_arg1 < _local3){ verticalScrollPosition = (_arg1 * rowHeight); } else { if (_arg1 > _local2){ verticalScrollPosition = (((_arg1 + 1) * rowHeight) - availableHeight); }; }; } public function get rowHeight():Number{ return (_rowHeight); } public function set labelFunction(_arg1:Function):void{ if (_labelFunction == _arg1){ return; }; _labelFunction = _arg1; invalidate(InvalidationType.DATA); } public function set rowHeight(_arg1:Number):void{ _rowHeight = _arg1; invalidate(InvalidationType.SIZE); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, SelectableList.getStyleDefinition())); } } }//package fl.controls
Section 17
//ScrollBar (fl.controls.ScrollBar) package fl.controls { import fl.core.*; import flash.events.*; import fl.events.*; public class ScrollBar extends UIComponent { private var _direction:String;// = "vertical" protected var inDrag:Boolean;// = false protected var upArrow:BaseButton; private var _pageScrollSize:Number;// = 0 protected var downArrow:BaseButton; private var _pageSize:Number;// = 10 private var thumbScrollOffset:Number; private var _maxScrollPosition:Number;// = 0 private var _scrollPosition:Number;// = 0 protected var track:BaseButton; private var _minScrollPosition:Number;// = 0 private var _lineScrollSize:Number;// = 1 protected var thumb:LabelButton; protected static const THUMB_STYLES:Object = {disabledSkin:"thumbDisabledSkin", downSkin:"thumbDownSkin", overSkin:"thumbOverSkin", upSkin:"thumbUpSkin", icon:"thumbIcon", textPadding:0}; public static const WIDTH:Number = 15; protected static const DOWN_ARROW_STYLES:Object = {disabledSkin:"downArrowDisabledSkin", downSkin:"downArrowDownSkin", overSkin:"downArrowOverSkin", upSkin:"downArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; protected static const UP_ARROW_STYLES:Object = {disabledSkin:"upArrowDisabledSkin", downSkin:"upArrowDownSkin", overSkin:"upArrowOverSkin", upSkin:"upArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; protected static const TRACK_STYLES:Object = {disabledSkin:"trackDisabledSkin", downSkin:"trackDownSkin", overSkin:"trackOverSkin", upSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; private static var defaultStyles:Object = {downArrowDisabledSkin:"ScrollArrowDown_disabledSkin", downArrowDownSkin:"ScrollArrowDown_downSkin", downArrowOverSkin:"ScrollArrowDown_overSkin", downArrowUpSkin:"ScrollArrowDown_upSkin", thumbDisabledSkin:"ScrollThumb_upSkin", thumbDownSkin:"ScrollThumb_downSkin", thumbOverSkin:"ScrollThumb_overSkin", thumbUpSkin:"ScrollThumb_upSkin", trackDisabledSkin:"ScrollTrack_skin", trackDownSkin:"ScrollTrack_skin", trackOverSkin:"ScrollTrack_skin", trackUpSkin:"ScrollTrack_skin", upArrowDisabledSkin:"ScrollArrowUp_disabledSkin", upArrowDownSkin:"ScrollArrowUp_downSkin", upArrowOverSkin:"ScrollArrowUp_overSkin", upArrowUpSkin:"ScrollArrowUp_upSkin", thumbIcon:"ScrollBar_thumbIcon", repeatDelay:500, repeatInterval:35}; public function ScrollBar(){ _pageSize = 10; _pageScrollSize = 0; _lineScrollSize = 1; _minScrollPosition = 0; _maxScrollPosition = 0; _scrollPosition = 0; _direction = ScrollBarDirection.VERTICAL; inDrag = false; super(); setStyles(); focusEnabled = false; } public function get minScrollPosition():Number{ return (_minScrollPosition); } public function set minScrollPosition(_arg1:Number):void{ setScrollProperties(_pageSize, _arg1, _maxScrollPosition); } public function setScrollPosition(_arg1:Number, _arg2:Boolean=true):void{ var _local3:Number; _local3 = scrollPosition; _scrollPosition = Math.max(_minScrollPosition, Math.min(_maxScrollPosition, _arg1)); if (_local3 == _scrollPosition){ return; }; if (_arg2){ dispatchEvent(new ScrollEvent(_direction, (scrollPosition - _local3), scrollPosition)); }; updateThumb(); } public function set scrollPosition(_arg1:Number):void{ setScrollPosition(_arg1, true); } public function get pageScrollSize():Number{ return (((_pageScrollSize)==0) ? _pageSize : _pageScrollSize); } public function set pageSize(_arg1:Number):void{ if (_arg1 > 0){ _pageSize = _arg1; }; } public function setScrollProperties(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0):void{ this.pageSize = _arg1; _minScrollPosition = _arg2; _maxScrollPosition = _arg3; if (_arg4 >= 0){ _pageScrollSize = _arg4; }; enabled = (_maxScrollPosition > _minScrollPosition); setScrollPosition(_scrollPosition, false); updateThumb(); } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; downArrow.enabled = (track.enabled = (thumb.enabled = (upArrow.enabled = ((enabled) && ((_maxScrollPosition > _minScrollPosition)))))); updateThumb(); } protected function updateThumb():void{ var _local1:Number; _local1 = ((_maxScrollPosition - _minScrollPosition) + _pageSize); if ((((((track.height <= 12)) || ((_maxScrollPosition <= _minScrollPosition)))) || ((((_local1 == 0)) || (isNaN(_local1)))))){ thumb.height = 12; thumb.visible = false; } else { thumb.height = Math.max(13, ((_pageSize / _local1) * track.height)); thumb.y = (track.y + ((track.height - thumb.height) * ((_scrollPosition - _minScrollPosition) / (_maxScrollPosition - _minScrollPosition)))); thumb.visible = enabled; }; } protected function thumbPressHandler(_arg1:MouseEvent):void{ inDrag = true; thumbScrollOffset = (mouseY - thumb.y); thumb.mouseStateLocked = true; mouseChildren = false; stage.addEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag, false, 0, true); stage.addEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler, false, 0, true); } protected function thumbReleaseHandler(_arg1:MouseEvent):void{ inDrag = false; mouseChildren = true; thumb.mouseStateLocked = false; stage.removeEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag); stage.removeEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler); } public function set pageScrollSize(_arg1:Number):void{ if (_arg1 >= 0){ _pageScrollSize = _arg1; }; } protected function handleThumbDrag(_arg1:MouseEvent):void{ var _local2:Number; _local2 = Math.max(0, Math.min((track.height - thumb.height), ((mouseY - track.y) - thumbScrollOffset))); setScrollPosition((((_local2 / (track.height - thumb.height)) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition)); } public function set direction(_arg1:String):void{ var _local2:Boolean; if (_direction == _arg1){ return; }; _direction = _arg1; if (isLivePreview){ return; }; setScaleY(1); _local2 = (_direction == ScrollBarDirection.HORIZONTAL); if (((_local2) && (componentInspectorSetting))){ if (rotation == 90){ return; }; setScaleX(-1); rotation = -90; }; if (!componentInspectorSetting){ if (((_local2) && ((rotation == 0)))){ rotation = -90; setScaleX(-1); } else { if (((!(_local2)) && ((rotation == -90)))){ rotation = 0; setScaleX(1); }; }; }; invalidate(InvalidationType.SIZE); } public function set lineScrollSize(_arg1:Number):void{ if (_arg1 > 0){ _lineScrollSize = _arg1; }; } override public function get height():Number{ return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.width : super.height); } protected function scrollPressHandler(_arg1:ComponentEvent):void{ var _local2:Number; var _local3:Number; _arg1.stopImmediatePropagation(); if (_arg1.currentTarget == upArrow){ setScrollPosition((_scrollPosition - _lineScrollSize)); } else { if (_arg1.currentTarget == downArrow){ setScrollPosition((_scrollPosition + _lineScrollSize)); } else { _local2 = (((track.mouseY / track.height) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition); _local3 = ((pageScrollSize)==0) ? pageSize : pageScrollSize; if (_scrollPosition < _local2){ setScrollPosition(Math.min(_local2, (_scrollPosition + _local3))); } else { if (_scrollPosition > _local2){ setScrollPosition(Math.max(_local2, (_scrollPosition - _local3))); }; }; }; }; } public function get pageSize():Number{ return (_pageSize); } public function set maxScrollPosition(_arg1:Number):void{ setScrollProperties(_pageSize, _minScrollPosition, _arg1); } public function get scrollPosition():Number{ return (_scrollPosition); } override public function get enabled():Boolean{ return (super.enabled); } override protected function draw():void{ var _local1:Number; if (isInvalid(InvalidationType.SIZE)){ _local1 = super.height; downArrow.move(0, Math.max(upArrow.height, (_local1 - downArrow.height))); track.setSize(WIDTH, Math.max(0, (_local1 - (downArrow.height + upArrow.height)))); updateThumb(); }; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ setStyles(); }; downArrow.drawNow(); upArrow.drawNow(); track.drawNow(); thumb.drawNow(); validate(); } override protected function configUI():void{ super.configUI(); track = new BaseButton(); track.move(0, 14); track.useHandCursor = false; track.autoRepeat = true; track.focusEnabled = false; addChild(track); thumb = new LabelButton(); thumb.label = ""; thumb.setSize(WIDTH, 15); thumb.move(0, 15); thumb.focusEnabled = false; addChild(thumb); downArrow = new BaseButton(); downArrow.setSize(WIDTH, 14); downArrow.autoRepeat = true; downArrow.focusEnabled = false; addChild(downArrow); upArrow = new BaseButton(); upArrow.setSize(WIDTH, 14); upArrow.move(0, 0); upArrow.autoRepeat = true; upArrow.focusEnabled = false; addChild(upArrow); upArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); downArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); track.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbPressHandler, false, 0, true); enabled = false; } public function get direction():String{ return (_direction); } public function get lineScrollSize():Number{ return (_lineScrollSize); } override public function setSize(_arg1:Number, _arg2:Number):void{ if (_direction == ScrollBarDirection.HORIZONTAL){ super.setSize(_arg2, _arg1); } else { super.setSize(_arg1, _arg2); }; } public function get maxScrollPosition():Number{ return (_maxScrollPosition); } override public function get width():Number{ return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.height : super.width); } protected function setStyles():void{ copyStylesToChild(downArrow, DOWN_ARROW_STYLES); copyStylesToChild(thumb, THUMB_STYLES); copyStylesToChild(track, TRACK_STYLES); copyStylesToChild(upArrow, UP_ARROW_STYLES); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 18
//ScrollBarDirection (fl.controls.ScrollBarDirection) package fl.controls { public class ScrollBarDirection { public static const HORIZONTAL:String = "horizontal"; public static const VERTICAL:String = "vertical"; } }//package fl.controls
Section 19
//ScrollPolicy (fl.controls.ScrollPolicy) package fl.controls { public class ScrollPolicy { public static const OFF:String = "off"; public static const ON:String = "on"; public static const AUTO:String = "auto"; } }//package fl.controls
Section 20
//SelectableList (fl.controls.SelectableList) package fl.controls { import fl.controls.listClasses.*; import fl.core.*; import flash.display.*; import flash.events.*; import fl.data.*; import flash.utils.*; import fl.managers.*; import fl.events.*; import fl.containers.*; import flash.ui.*; public class SelectableList extends BaseScrollPane implements IFocusManagerComponent { protected var invalidItems:Dictionary; protected var renderedItems:Dictionary; protected var listHolder:Sprite; protected var _allowMultipleSelection:Boolean;// = false protected var lastCaretIndex:int;// = -1 protected var _selectedIndices:Array; protected var availableCellRenderers:Array; protected var list:Sprite; protected var caretIndex:int;// = -1 protected var updatedRendererStyles:Object; protected var preChangeItems:Array; protected var activeCellRenderers:Array; protected var rendererStyles:Object; protected var _verticalScrollPosition:Number; protected var _dataProvider:DataProvider; protected var _horizontalScrollPosition:Number; private var collectionItemImport:SimpleCollectionItem; protected var _selectable:Boolean;// = true private static var defaultStyles:Object = {skin:"List_skin", cellRenderer:CellRenderer, contentPadding:null, disabledAlpha:null}; public static var createAccessibilityImplementation:Function; public function SelectableList(){ _allowMultipleSelection = false; _selectable = true; caretIndex = -1; lastCaretIndex = -1; super(); activeCellRenderers = []; availableCellRenderers = []; invalidItems = new Dictionary(true); renderedItems = new Dictionary(true); _selectedIndices = []; if (dataProvider == null){ dataProvider = new DataProvider(); }; verticalScrollPolicy = ScrollPolicy.AUTO; rendererStyles = {}; updatedRendererStyles = {}; } protected function drawList():void{ } public function set allowMultipleSelection(_arg1:Boolean):void{ if (_arg1 == _allowMultipleSelection){ return; }; _allowMultipleSelection = _arg1; if (((!(_arg1)) && ((_selectedIndices.length > 1)))){ _selectedIndices = [_selectedIndices.pop()]; invalidate(InvalidationType.DATA); }; } public function sortItemsOn(_arg1:String, _arg2:Object=null){ return (_dataProvider.sortOn(_arg1, _arg2)); } public function removeItemAt(_arg1:uint):Object{ return (_dataProvider.removeItemAt(_arg1)); } public function get selectedItem():Object{ return (((_selectedIndices.length)==0) ? null : _dataProvider.getItemAt(selectedIndex)); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ if (!selectable){ return; }; switch (_arg1.keyCode){ case Keyboard.UP: case Keyboard.DOWN: case Keyboard.END: case Keyboard.HOME: case Keyboard.PAGE_UP: case Keyboard.PAGE_DOWN: moveSelectionVertically(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); _arg1.stopPropagation(); break; case Keyboard.LEFT: case Keyboard.RIGHT: moveSelectionHorizontally(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); _arg1.stopPropagation(); break; }; } public function get selectable():Boolean{ return (_selectable); } public function itemToCellRenderer(_arg1:Object):ICellRenderer{ var _local2:*; var _local3:ICellRenderer; if (_arg1 != null){ for (_local2 in activeCellRenderers) { _local3 = (activeCellRenderers[_local2] as ICellRenderer); if (_local3.data == _arg1){ return (_local3); }; }; }; return (null); } public function getNextIndexAtLetter(_arg1:String, _arg2:int=-1):int{ var _local3:int; var _local4:Number; var _local5:Number; var _local6:Object; var _local7:String; if (length == 0){ return (-1); }; _arg1 = _arg1.toUpperCase(); _local3 = (length - 1); _local4 = 0; while (_local4 < _local3) { _local5 = ((_arg2 + 1) + _local4); if (_local5 > (length - 1)){ _local5 = (_local5 - length); }; _local6 = getItemAt(_local5); if (_local6 == null){ break; }; _local7 = itemToLabel(_local6); if (_local7 == null){ } else { if (_local7.charAt(0).toUpperCase() == _arg1){ return (_local5); }; }; _local4++; }; return (-1); } public function invalidateList():void{ _invalidateList(); invalidate(InvalidationType.DATA); } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; list.mouseChildren = _enabled; } public function get selectedIndices():Array{ return (_selectedIndices.concat()); } public function set selectable(_arg1:Boolean):void{ if (_arg1 == _selectable){ return; }; if (!_arg1){ selectedIndices = []; }; _selectable = _arg1; } public function itemToLabel(_arg1:Object):String{ return (_arg1["label"]); } public function addItemAt(_arg1:Object, _arg2:uint):void{ _dataProvider.addItemAt(_arg1, _arg2); invalidateList(); } public function replaceItemAt(_arg1:Object, _arg2:uint):Object{ return (_dataProvider.replaceItemAt(_arg1, _arg2)); } protected function handleDataChange(_arg1:DataChangeEvent):void{ var _local2:int; var _local3:int; var _local4:String; var _local5:uint; _local2 = _arg1.startIndex; _local3 = _arg1.endIndex; _local4 = _arg1.changeType; if (_local4 == DataChangeType.INVALIDATE_ALL){ clearSelection(); invalidateList(); } else { if (_local4 == DataChangeType.INVALIDATE){ _local5 = 0; while (_local5 < _arg1.items.length) { invalidateItem(_arg1.items[_local5]); _local5++; }; } else { if (_local4 == DataChangeType.ADD){ _local5 = 0; while (_local5 < _selectedIndices.length) { if (_selectedIndices[_local5] >= _local2){ _selectedIndices[_local5] = (_selectedIndices[_local5] + (_local2 - _local3)); }; _local5++; }; } else { if (_local4 == DataChangeType.REMOVE){ _local5 = 0; while (_local5 < _selectedIndices.length) { if (_selectedIndices[_local5] >= _local2){ if (_selectedIndices[_local5] <= _local3){ delete _selectedIndices[_local5]; } else { _selectedIndices[_local5] = (_selectedIndices[_local5] - ((_local2 - _local3) + 1)); }; }; _local5++; }; } else { if (_local4 == DataChangeType.REMOVE_ALL){ clearSelection(); } else { if (_local4 == DataChangeType.REPLACE){ } else { selectedItems = preChangeItems; preChangeItems = null; }; }; }; }; }; }; invalidate(InvalidationType.DATA); } protected function _invalidateList():void{ availableCellRenderers = []; while (activeCellRenderers.length > 0) { list.removeChild((activeCellRenderers.pop() as DisplayObject)); }; } protected function updateRendererStyles():void{ var _local1:Array; var _local2:uint; var _local3:uint; var _local4:String; _local1 = availableCellRenderers.concat(activeCellRenderers); _local2 = _local1.length; _local3 = 0; while (_local3 < _local2) { if (_local1[_local3].setStyle == null){ } else { for (_local4 in updatedRendererStyles) { _local1[_local3].setStyle(_local4, updatedRendererStyles[_local4]); }; _local1[_local3].drawNow(); }; _local3++; }; updatedRendererStyles = {}; } public function set selectedItem(_arg1:Object):void{ var _local2:int; _local2 = _dataProvider.getItemIndex(_arg1); selectedIndex = _local2; } public function sortItems(... _args){ return (_dataProvider.sort.apply(_dataProvider, _args)); } public function removeAll():void{ _dataProvider.removeAll(); } protected function handleCellRendererChange(_arg1:Event):void{ var _local2:ICellRenderer; var _local3:uint; _local2 = (_arg1.currentTarget as ICellRenderer); _local3 = _local2.listData.index; _dataProvider.invalidateItemAt(_local3); } protected function moveSelectionVertically(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ } override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ var _local3:Number; if (_arg1 == _horizontalScrollPosition){ return; }; _local3 = (_arg1 - _horizontalScrollPosition); _horizontalScrollPosition = _arg1; if (_arg2){ dispatchEvent(new ScrollEvent(ScrollBarDirection.HORIZONTAL, _local3, _arg1)); }; } public function scrollToSelected():void{ scrollToIndex(selectedIndex); } public function invalidateItem(_arg1:Object):void{ if (renderedItems[_arg1] == null){ return; }; invalidItems[_arg1] = true; invalidate(InvalidationType.DATA); } protected function handleCellRendererClick(_arg1:MouseEvent):void{ var _local2:ICellRenderer; var _local3:uint; var _local4:int; var _local5:int; var _local6:uint; if (!_enabled){ return; }; _local2 = (_arg1.currentTarget as ICellRenderer); _local3 = _local2.listData.index; if (((!(dispatchEvent(new ListEvent(ListEvent.ITEM_CLICK, false, true, _local2.listData.column, _local2.listData.row, _local3, _local2.data)))) || (!(_selectable)))){ return; }; _local4 = selectedIndices.indexOf(_local3); if (!_allowMultipleSelection){ if (_local4 != -1){ return; }; _local2.selected = true; _selectedIndices = [_local3]; lastCaretIndex = (caretIndex = _local3); } else { if (_arg1.shiftKey){ _local6 = ((_selectedIndices.length)>0) ? _selectedIndices[0] : _local3; _selectedIndices = []; if (_local6 > _local3){ _local5 = _local6; while (_local5 >= _local3) { _selectedIndices.push(_local5); _local5--; }; } else { _local5 = _local6; while (_local5 <= _local3) { _selectedIndices.push(_local5); _local5++; }; }; caretIndex = _local3; } else { if (_arg1.ctrlKey){ if (_local4 != -1){ _local2.selected = false; _selectedIndices.splice(_local4, 1); } else { _local2.selected = true; _selectedIndices.push(_local3); }; caretIndex = _local3; } else { _selectedIndices = [_local3]; lastCaretIndex = (caretIndex = _local3); }; }; }; dispatchEvent(new Event(Event.CHANGE)); invalidate(InvalidationType.DATA); } public function get length():uint{ return (_dataProvider.length); } public function get allowMultipleSelection():Boolean{ return (_allowMultipleSelection); } protected function onPreChange(_arg1:DataChangeEvent):void{ switch (_arg1.changeType){ case DataChangeType.REMOVE: case DataChangeType.ADD: case DataChangeType.INVALIDATE: case DataChangeType.REMOVE_ALL: case DataChangeType.REPLACE: case DataChangeType.INVALIDATE_ALL: break; default: preChangeItems = selectedItems; break; }; } public function getRendererStyle(_arg1:String, _arg2:int=-1):Object{ return (rendererStyles[_arg1]); } override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ var _local3:Number; if (_arg1 == _verticalScrollPosition){ return; }; _local3 = (_arg1 - _verticalScrollPosition); _verticalScrollPosition = _arg1; if (_arg2){ dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _local3, _arg1)); }; } protected function moveSelectionHorizontally(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ } public function set selectedIndices(_arg1:Array):void{ if (!_selectable){ return; }; _selectedIndices = ((_arg1)==null) ? [] : _arg1.concat(); invalidate(InvalidationType.SELECTED); } public function get selectedIndex():int{ return (((_selectedIndices.length)==0) ? -1 : _selectedIndices[(_selectedIndices.length - 1)]); } override protected function draw():void{ super.draw(); } override protected function configUI():void{ super.configUI(); listHolder = new Sprite(); addChild(listHolder); listHolder.scrollRect = contentScrollRect; list = new Sprite(); listHolder.addChild(list); } public function addItem(_arg1:Object):void{ _dataProvider.addItem(_arg1); invalidateList(); } protected function handleCellRendererMouseEvent(_arg1:MouseEvent):void{ var _local2:ICellRenderer; var _local3:String; _local2 = (_arg1.target as ICellRenderer); _local3 = ((_arg1.type)==MouseEvent.ROLL_OVER) ? ListEvent.ITEM_ROLL_OVER : ListEvent.ITEM_ROLL_OUT; dispatchEvent(new ListEvent(_local3, false, false, _local2.listData.column, _local2.listData.row, _local2.listData.index, _local2.data)); } public function clearRendererStyle(_arg1:String, _arg2:int=-1):void{ delete rendererStyles[_arg1]; updatedRendererStyles[_arg1] = null; invalidate(InvalidationType.RENDERER_STYLES); } protected function handleCellRendererDoubleClick(_arg1:MouseEvent):void{ var _local2:ICellRenderer; var _local3:uint; if (!_enabled){ return; }; _local2 = (_arg1.currentTarget as ICellRenderer); _local3 = _local2.listData.index; dispatchEvent(new ListEvent(ListEvent.ITEM_DOUBLE_CLICK, false, true, _local2.listData.column, _local2.listData.row, _local3, _local2.data)); } public function get rowCount():uint{ return (0); } public function isItemSelected(_arg1:Object):Boolean{ return ((selectedItems.indexOf(_arg1) > -1)); } public function set dataProvider(_arg1:DataProvider):void{ if (_dataProvider != null){ _dataProvider.removeEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange); _dataProvider.removeEventListener(DataChangeEvent.PRE_DATA_CHANGE, onPreChange); }; _dataProvider = _arg1; _dataProvider.addEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange, false, 0, true); _dataProvider.addEventListener(DataChangeEvent.PRE_DATA_CHANGE, onPreChange, false, 0, true); clearSelection(); invalidateList(); } override protected function drawLayout():void{ super.drawLayout(); contentScrollRect = listHolder.scrollRect; contentScrollRect.width = availableWidth; contentScrollRect.height = availableHeight; listHolder.scrollRect = contentScrollRect; } public function getItemAt(_arg1:uint):Object{ return (_dataProvider.getItemAt(_arg1)); } override protected function initializeAccessibility():void{ if (SelectableList.createAccessibilityImplementation != null){ SelectableList.createAccessibilityImplementation(this); }; } public function scrollToIndex(_arg1:int):void{ } public function removeItem(_arg1:Object):Object{ return (_dataProvider.removeItem(_arg1)); } public function get dataProvider():DataProvider{ return (_dataProvider); } public function set maxHorizontalScrollPosition(_arg1:Number):void{ _maxHorizontalScrollPosition = _arg1; invalidate(InvalidationType.SIZE); } public function setRendererStyle(_arg1:String, _arg2:Object, _arg3:uint=0):void{ if (rendererStyles[_arg1] == _arg2){ return; }; updatedRendererStyles[_arg1] = _arg2; rendererStyles[_arg1] = _arg2; invalidate(InvalidationType.RENDERER_STYLES); } public function invalidateItemAt(_arg1:uint):void{ var _local2:Object; _local2 = _dataProvider.getItemAt(_arg1); if (_local2 != null){ invalidateItem(_local2); }; } public function set selectedItems(_arg1:Array):void{ var _local2:Array; var _local3:uint; var _local4:int; if (_arg1 == null){ selectedIndices = null; return; }; _local2 = []; _local3 = 0; while (_local3 < _arg1.length) { _local4 = _dataProvider.getItemIndex(_arg1[_local3]); if (_local4 != -1){ _local2.push(_local4); }; _local3++; }; selectedIndices = _local2; } public function clearSelection():void{ selectedIndex = -1; } override public function get maxHorizontalScrollPosition():Number{ return (_maxHorizontalScrollPosition); } public function get selectedItems():Array{ var _local1:Array; var _local2:uint; _local1 = []; _local2 = 0; while (_local2 < _selectedIndices.length) { _local1.push(_dataProvider.getItemAt(_selectedIndices[_local2])); _local2++; }; return (_local1); } public function set selectedIndex(_arg1:int):void{ selectedIndices = ((_arg1)==-1) ? null : [_arg1]; } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, BaseScrollPane.getStyleDefinition())); } } }//package fl.controls
Section 21
//TextInput (fl.controls.TextInput) package fl.controls { import fl.core.*; import flash.display.*; import flash.events.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.ui.*; public class TextInput extends UIComponent implements IFocusManagerComponent { protected var _html:Boolean;// = false protected var _savedHTML:String; protected var background:DisplayObject; protected var _editable:Boolean;// = true public var textField:TextField; private static var defaultStyles:Object = {upSkin:"TextInput_upSkin", disabledSkin:"TextInput_disabledSkin", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, textPadding:0, embedFonts:false}; public static var createAccessibilityImplementation:Function; public function TextInput(){ _editable = true; _html = false; super(); } override public function drawFocus(_arg1:Boolean):void{ if (focusTarget != null){ focusTarget.drawFocus(_arg1); return; }; super.drawFocus(_arg1); } public function set imeMode(_arg1:String):void{ _imeMode = _arg1; } override protected function isOurFocus(_arg1:DisplayObject):Boolean{ return ((((_arg1 == textField)) || (super.isOurFocus(_arg1)))); } protected function handleKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.ENTER){ dispatchEvent(new ComponentEvent(ComponentEvent.ENTER, true)); }; } public function set text(_arg1:String):void{ textField.text = _arg1; _html = false; invalidate(InvalidationType.DATA); invalidate(InvalidationType.STYLES); } protected function updateTextFieldType():void{ textField.type = (((enabled) && (editable))) ? TextFieldType.INPUT : TextFieldType.DYNAMIC; textField.selectable = enabled; } public function get selectionEndIndex():int{ return (textField.selectionEndIndex); } public function get editable():Boolean{ return (_editable); } override protected function focusInHandler(_arg1:FocusEvent):void{ var _local2:IFocusManager; if (_arg1.target == this){ stage.focus = textField; }; _local2 = focusManager; if (((editable) && (_local2))){ _local2.showFocusIndicator = true; if (((textField.selectable) && ((textField.selectionBeginIndex == textField.selectionBeginIndex)))){ setSelection(0, textField.length); }; }; super.focusInHandler(_arg1); if (editable){ setIMEMode(true); }; } public function get selectionBeginIndex():int{ return (textField.selectionBeginIndex); } public function set alwaysShowSelection(_arg1:Boolean):void{ textField.alwaysShowSelection = _arg1; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; updateTextFieldType(); } protected function setEmbedFont(){ var _local1:Object; _local1 = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; } public function get horizontalScrollPosition():int{ return (textField.scrollH); } public function set condenseWhite(_arg1:Boolean):void{ textField.condenseWhite = _arg1; } public function set displayAsPassword(_arg1:Boolean):void{ textField.displayAsPassword = _arg1; } public function set horizontalScrollPosition(_arg1:int):void{ textField.scrollH = _arg1; } public function get restrict():String{ return (textField.restrict); } public function get textWidth():Number{ return (textField.textWidth); } public function get textHeight():Number{ return (textField.textHeight); } public function set editable(_arg1:Boolean):void{ _editable = _arg1; updateTextFieldType(); } public function get maxChars():int{ return (textField.maxChars); } public function get length():int{ return (textField.length); } public function getLineMetrics(_arg1:int):TextLineMetrics{ return (textField.getLineMetrics(_arg1)); } public function get imeMode():String{ return (_imeMode); } override protected function focusOutHandler(_arg1:FocusEvent):void{ super.focusOutHandler(_arg1); if (editable){ setIMEMode(false); }; } public function set htmlText(_arg1:String):void{ if (_arg1 == ""){ text = ""; return; }; _html = true; _savedHTML = _arg1; textField.htmlText = _arg1; invalidate(InvalidationType.DATA); invalidate(InvalidationType.STYLES); } public function get text():String{ return (textField.text); } override public function get enabled():Boolean{ return (super.enabled); } public function get condenseWhite():Boolean{ return (textField.condenseWhite); } public function get alwaysShowSelection():Boolean{ return (textField.alwaysShowSelection); } override protected function draw():void{ var _local1:Object; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawTextFormat(); drawBackground(); _local1 = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; super.draw(); } protected function handleTextInput(_arg1:TextEvent):void{ _arg1.stopPropagation(); dispatchEvent(new TextEvent(TextEvent.TEXT_INPUT, true, false, _arg1.text)); } override protected function configUI():void{ super.configUI(); tabChildren = true; textField = new TextField(); addChild(textField); updateTextFieldType(); textField.addEventListener(TextEvent.TEXT_INPUT, handleTextInput, false, 0, true); textField.addEventListener(Event.CHANGE, handleChange, false, 0, true); textField.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown, false, 0, true); } public function setSelection(_arg1:int, _arg2:int):void{ textField.setSelection(_arg1, _arg2); } public function get displayAsPassword():Boolean{ return (textField.displayAsPassword); } public function appendText(_arg1:String):void{ textField.appendText(_arg1); } public function set restrict(_arg1:String):void{ if (((componentInspectorSetting) && ((_arg1 == "")))){ _arg1 = null; }; textField.restrict = _arg1; } public function get htmlText():String{ return (textField.htmlText); } protected function drawBackground():void{ var _local1:DisplayObject; var _local2:String; _local1 = background; _local2 = (enabled) ? "upSkin" : "disabledSkin"; background = getDisplayObjectInstance(getStyleValue(_local2)); if (background == null){ return; }; addChildAt(background, 0); if (((((!((_local1 == null))) && (!((_local1 == background))))) && (contains(_local1)))){ removeChild(_local1); }; } override public function setFocus():void{ stage.focus = textField; } protected function drawLayout():void{ var _local1:Number; _local1 = Number(getStyleValue("textPadding")); if (background != null){ background.width = width; background.height = height; }; textField.width = (width - (2 * _local1)); textField.height = (height - (2 * _local1)); textField.x = (textField.y = _local1); } public function set maxChars(_arg1:int):void{ textField.maxChars = _arg1; } public function get maxHorizontalScrollPosition():int{ return (textField.maxScrollH); } protected function drawTextFormat():void{ var _local1:Object; var _local2:TextFormat; var _local3:TextFormat; _local1 = UIComponent.getStyleDefinition(); _local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat); textField.setTextFormat(_local2); _local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat); if (_local3 != null){ textField.setTextFormat(_local3); } else { _local3 = _local2; }; textField.defaultTextFormat = _local3; setEmbedFont(); if (_html){ textField.htmlText = _savedHTML; }; } protected function handleChange(_arg1:Event):void{ _arg1.stopPropagation(); dispatchEvent(new Event(Event.CHANGE, true)); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 22
//UIScrollBar (fl.controls.UIScrollBar) package fl.controls { import fl.core.*; import flash.events.*; import fl.events.*; import flash.text.*; public class UIScrollBar extends ScrollBar { protected var inScroll:Boolean;// = false protected var _scrollTarget:TextField; protected var inEdit:Boolean;// = false private static var defaultStyles:Object = {}; public function UIScrollBar(){ inEdit = false; inScroll = false; super(); } protected function handleTargetScroll(_arg1:Event):void{ if (inDrag){ return; }; if (!enabled){ return; }; inEdit = true; updateScrollTargetProperties(); scrollPosition = ((direction)==ScrollBarDirection.HORIZONTAL) ? _scrollTarget.scrollH : _scrollTarget.scrollV; inEdit = false; } override public function set minScrollPosition(_arg1:Number):void{ super.minScrollPosition = ((_arg1)<0) ? 0 : _arg1; } override public function setScrollPosition(_arg1:Number, _arg2:Boolean=true):void{ super.setScrollPosition(_arg1, _arg2); if (!_scrollTarget){ inScroll = false; return; }; updateTargetScroll(); } override public function setScrollProperties(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0):void{ var _local5:Number; var _local6:Number; _local5 = _arg3; _local6 = ((_arg2)<0) ? 0 : _arg2; if (_scrollTarget != null){ if (direction == ScrollBarDirection.HORIZONTAL){ _local5 = ((_arg3)>_scrollTarget.maxScrollH) ? _scrollTarget.maxScrollH : _local5; } else { _local5 = ((_arg3)>_scrollTarget.maxScrollV) ? _scrollTarget.maxScrollV : _local5; }; }; super.setScrollProperties(_arg1, _local6, _local5, _arg4); } public function get scrollTargetName():String{ return (_scrollTarget.name); } public function get scrollTarget():TextField{ return (_scrollTarget); } protected function updateScrollTargetProperties():void{ var _local1:Boolean; var _local2:Number; if (_scrollTarget == null){ setScrollProperties(pageSize, minScrollPosition, maxScrollPosition, pageScrollSize); scrollPosition = 0; } else { _local1 = (direction == ScrollBarDirection.HORIZONTAL); _local2 = (_local1) ? _scrollTarget.width : 10; setScrollProperties(_local2, (_local1) ? 0 : 1, (_local1) ? _scrollTarget.maxScrollH : _scrollTarget.maxScrollV, pageScrollSize); scrollPosition = (_local1) ? _scrollTarget.scrollH : _scrollTarget.scrollV; }; } public function update():void{ inEdit = true; updateScrollTargetProperties(); inEdit = false; } public function set scrollTargetName(_arg1:String):void{ var target = _arg1; try { scrollTarget = (parent.getChildByName(target) as TextField); } catch(error:Error) { throw (new Error("ScrollTarget not found, or is not a TextField")); }; } override public function set direction(_arg1:String):void{ if (isLivePreview){ return; }; super.direction = _arg1; updateScrollTargetProperties(); } protected function handleTargetChange(_arg1:Event):void{ inEdit = true; setScrollPosition(((direction)==ScrollBarDirection.HORIZONTAL) ? _scrollTarget.scrollH : _scrollTarget.scrollV, true); updateScrollTargetProperties(); inEdit = false; } override public function set maxScrollPosition(_arg1:Number):void{ var _local2:Number; _local2 = _arg1; if (_scrollTarget != null){ if (direction == ScrollBarDirection.HORIZONTAL){ _local2 = ((_local2)>_scrollTarget.maxScrollH) ? _scrollTarget.maxScrollH : _local2; } else { _local2 = ((_local2)>_scrollTarget.maxScrollV) ? _scrollTarget.maxScrollV : _local2; }; }; super.maxScrollPosition = _local2; } protected function updateTargetScroll(_arg1:ScrollEvent=null):void{ if (inEdit){ return; }; if (direction == ScrollBarDirection.HORIZONTAL){ _scrollTarget.scrollH = scrollPosition; } else { _scrollTarget.scrollV = scrollPosition; }; } override protected function draw():void{ if (isInvalid(InvalidationType.DATA)){ updateScrollTargetProperties(); }; super.draw(); } public function set scrollTarget(_arg1:TextField):void{ if (_scrollTarget != null){ _scrollTarget.removeEventListener(Event.CHANGE, handleTargetChange, false); _scrollTarget.removeEventListener(TextEvent.TEXT_INPUT, handleTargetChange, false); _scrollTarget.removeEventListener(Event.SCROLL, handleTargetScroll, false); removeEventListener(ScrollEvent.SCROLL, updateTargetScroll, false); }; _scrollTarget = _arg1; if (_scrollTarget != null){ _scrollTarget.addEventListener(Event.CHANGE, handleTargetChange, false, 0, true); _scrollTarget.addEventListener(TextEvent.TEXT_INPUT, handleTargetChange, false, 0, true); _scrollTarget.addEventListener(Event.SCROLL, handleTargetScroll, false, 0, true); addEventListener(ScrollEvent.SCROLL, updateTargetScroll, false, 0, true); }; invalidate(InvalidationType.DATA); } override public function get direction():String{ return (super.direction); } public static function getStyleDefinition():Object{ return (UIComponent.mergeStyles(defaultStyles, ScrollBar.getStyleDefinition())); } } }//package fl.controls
Section 23
//ComponentShim (fl.core.ComponentShim) package fl.core { import flash.display.*; public dynamic class ComponentShim extends MovieClip { } }//package fl.core
Section 24
//InvalidationType (fl.core.InvalidationType) package fl.core { public class InvalidationType { public static const SIZE:String = "size"; public static const ALL:String = "all"; public static const DATA:String = "data"; public static const SCROLL:String = "scroll"; public static const STATE:String = "state"; public static const STYLES:String = "styles"; public static const SELECTED:String = "selected"; public static const RENDERER_STYLES:String = "rendererStyles"; } }//package fl.core
Section 25
//UIComponent (fl.core.UIComponent) package fl.core { import flash.display.*; import flash.events.*; import flash.utils.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.system.*; public class UIComponent extends Sprite { protected var _enabled:Boolean;// = true private var _mouseFocusEnabled:Boolean;// = true protected var startHeight:Number; protected var _height:Number; protected var _oldIMEMode:String;// = null protected var startWidth:Number; public var focusTarget:IFocusManagerComponent; protected var errorCaught:Boolean;// = false protected var uiFocusRect:DisplayObject; protected var _width:Number; public var version:String;// = "3.0.0.15" protected var isFocused:Boolean;// = false protected var callLaterMethods:Dictionary; private var _focusEnabled:Boolean;// = true private var tempText:TextField; protected var invalidateFlag:Boolean;// = false protected var _inspector:Boolean;// = false protected var sharedStyles:Object; protected var invalidHash:Object; protected var isLivePreview:Boolean;// = false protected var _imeMode:String;// = null protected var instanceStyles:Object; protected var _x:Number; protected var _y:Number; public static var inCallLaterPhase:Boolean = false; private static var defaultStyles:Object = {focusRectSkin:"focusRectSkin", focusRectPadding:2, textFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), disabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultTextFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultDisabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0)}; public static var createAccessibilityImplementation:Function; private static var focusManagers:Dictionary = new Dictionary(false); public function UIComponent(){ version = "3.0.0.15"; isLivePreview = false; invalidateFlag = false; _enabled = true; isFocused = false; _focusEnabled = true; _mouseFocusEnabled = true; _imeMode = null; _oldIMEMode = null; errorCaught = false; _inspector = false; super(); instanceStyles = {}; sharedStyles = {}; invalidHash = {}; callLaterMethods = new Dictionary(); StyleManager.registerInstance(this); configUI(); invalidate(InvalidationType.ALL); tabEnabled = (this is IFocusManagerComponent); focusRect = false; if (tabEnabled){ addEventListener(FocusEvent.FOCUS_IN, focusInHandler); addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler); addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); addEventListener(KeyboardEvent.KEY_UP, keyUpHandler); }; initializeFocusManager(); addEventListener(Event.ENTER_FRAME, hookAccessibility, false, 0, true); } public function drawFocus(_arg1:Boolean):void{ var _local2:Number; isFocused = _arg1; if (((!((uiFocusRect == null))) && (contains(uiFocusRect)))){ removeChild(uiFocusRect); uiFocusRect = null; }; if (_arg1){ uiFocusRect = (getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite); if (uiFocusRect == null){ return; }; _local2 = Number(getStyleValue("focusRectPadding")); uiFocusRect.x = -(_local2); uiFocusRect.y = -(_local2); uiFocusRect.width = (width + (_local2 * 2)); uiFocusRect.height = (height + (_local2 * 2)); addChildAt(uiFocusRect, 0); }; } private function callLaterDispatcher(_arg1:Event):void{ var _local2:Dictionary; var _local3:Object; if (_arg1.type == Event.ADDED_TO_STAGE){ removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher); stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); return; }; _arg1.target.removeEventListener(Event.RENDER, callLaterDispatcher); if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); return; }; inCallLaterPhase = true; _local2 = callLaterMethods; for (_local3 in _local2) { _local3(); delete _local2[_local3]; }; inCallLaterPhase = false; } private function addedHandler(_arg1:Event):void{ removeEventListener("addedToStage", addedHandler); initializeFocusManager(); } protected function getStyleValue(_arg1:String):Object{ return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]); } protected function isOurFocus(_arg1:DisplayObject):Boolean{ return ((_arg1 == this)); } override public function get scaleX():Number{ return ((width / startWidth)); } override public function get scaleY():Number{ return ((height / startHeight)); } override public function set height(_arg1:Number):void{ if (_height == _arg1){ return; }; setSize(width, _arg1); } protected function keyDownHandler(_arg1:KeyboardEvent):void{ } protected function focusInHandler(_arg1:FocusEvent):void{ var _local2:IFocusManager; if (isOurFocus((_arg1.target as DisplayObject))){ _local2 = focusManager; if (((_local2) && (_local2.showFocusIndicator))){ drawFocus(true); isFocused = true; }; }; } public function setStyle(_arg1:String, _arg2:Object):void{ if ((((instanceStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; instanceStyles[_arg1] = _arg2; invalidate(InvalidationType.STYLES); } override public function get visible():Boolean{ return (super.visible); } public function get componentInspectorSetting():Boolean{ return (_inspector); } override public function get x():Number{ return ((isNaN(_x)) ? super.x : _x); } override public function get y():Number{ return ((isNaN(_y)) ? super.y : _y); } protected function setIMEMode(_arg1:Boolean){ var enabled = _arg1; if (_imeMode != null){ if (enabled){ IME.enabled = true; _oldIMEMode = IME.conversionMode; try { if (((!(errorCaught)) && (!((IME.conversionMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _imeMode; }; errorCaught = false; } catch(e:Error) { errorCaught = true; throw (new Error(("IME mode not supported: " + _imeMode))); }; } else { if (((!((IME.conversionMode == IMEConversionMode.UNKNOWN))) && (!((_oldIMEMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _oldIMEMode; }; IME.enabled = false; }; }; } public function set enabled(_arg1:Boolean):void{ if (_arg1 == _enabled){ return; }; _enabled = _arg1; invalidate(InvalidationType.STATE); } public function setSharedStyle(_arg1:String, _arg2:Object):void{ if ((((sharedStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; sharedStyles[_arg1] = _arg2; if (instanceStyles[_arg1] == null){ invalidate(InvalidationType.STYLES); }; } protected function keyUpHandler(_arg1:KeyboardEvent):void{ } public function set focusEnabled(_arg1:Boolean):void{ _focusEnabled = _arg1; } override public function set scaleX(_arg1:Number):void{ setSize((startWidth * _arg1), height); } public function get mouseFocusEnabled():Boolean{ return (_mouseFocusEnabled); } override public function set scaleY(_arg1:Number):void{ setSize(width, (startHeight * _arg1)); } protected function getDisplayObjectInstance(_arg1:Object):DisplayObject{ var classDef:Object; var skin = _arg1; classDef = null; if ((skin is Class)){ return ((new (skin) as DisplayObject)); }; if ((skin is DisplayObject)){ (skin as DisplayObject).x = 0; (skin as DisplayObject).y = 0; return ((skin as DisplayObject)); }; try { classDef = getDefinitionByName(skin.toString()); } catch(e:Error) { try { classDef = (loaderInfo.applicationDomain.getDefinition(skin.toString()) as Object); } catch(e:Error) { }; }; if (classDef == null){ return (null); }; return ((new (classDef) as DisplayObject)); } protected function copyStylesToChild(_arg1:UIComponent, _arg2:Object):void{ var _local3:String; for (_local3 in _arg2) { _arg1.setStyle(_local3, getStyleValue(_arg2[_local3])); }; } protected function beforeComponentParameters():void{ } protected function callLater(_arg1:Function):void{ if (inCallLaterPhase){ return; }; callLaterMethods[_arg1] = true; if (stage != null){ stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); } else { addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); }; } protected function createFocusManager():void{ if (focusManagers[stage] == null){ focusManagers[stage] = new FocusManager(stage); }; } override public function set visible(_arg1:Boolean):void{ var _local2:String; if (super.visible == _arg1){ return; }; super.visible = _arg1; _local2 = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE; dispatchEvent(new ComponentEvent(_local2, true)); } protected function hookAccessibility(_arg1:Event):void{ removeEventListener(Event.ENTER_FRAME, hookAccessibility); initializeAccessibility(); } public function set componentInspectorSetting(_arg1:Boolean):void{ _inspector = _arg1; if (_inspector){ beforeComponentParameters(); } else { afterComponentParameters(); }; } override public function set x(_arg1:Number):void{ move(_arg1, _y); } public function drawNow():void{ draw(); } override public function set y(_arg1:Number):void{ move(_x, _arg1); } protected function checkLivePreview():Boolean{ var className:String; if (parent == null){ return (false); }; try { className = getQualifiedClassName(parent); } catch(e:Error) { }; return ((className == "fl.livepreview::LivePreviewParent")); } protected function focusOutHandler(_arg1:FocusEvent):void{ if (isOurFocus((_arg1.target as DisplayObject))){ drawFocus(false); isFocused = false; }; } public function set mouseFocusEnabled(_arg1:Boolean):void{ _mouseFocusEnabled = _arg1; } public function getFocus():InteractiveObject{ if (stage){ return (stage.focus); }; return (null); } protected function validate():void{ invalidHash = {}; } override public function get height():Number{ return (_height); } public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{ invalidHash[_arg1] = true; if (_arg2){ this.callLater(draw); }; } public function get enabled():Boolean{ return (_enabled); } protected function getScaleX():Number{ return (super.scaleX); } protected function getScaleY():Number{ return (super.scaleY); } public function get focusEnabled():Boolean{ return (_focusEnabled); } protected function afterComponentParameters():void{ } protected function draw():void{ if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } protected function configUI():void{ var _local1:Number; var _local2:Number; var _local3:Number; isLivePreview = checkLivePreview(); _local1 = rotation; rotation = 0; _local2 = super.width; _local3 = super.height; var _local4 = 1; super.scaleY = _local4; super.scaleX = _local4; setSize(_local2, _local3); move(super.x, super.y); rotation = _local1; startWidth = _local2; startHeight = _local3; if (numChildren > 0){ removeChildAt(0); }; } protected function setScaleX(_arg1:Number):void{ super.scaleX = _arg1; } protected function setScaleY(_arg1:Number):void{ super.scaleY = _arg1; } private function initializeFocusManager():void{ if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true); } else { createFocusManager(); }; } public function set focusManager(_arg1:IFocusManager):void{ UIComponent.focusManagers[this] = _arg1; } public function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } protected function isInvalid(_arg1:String, ... _args):Boolean{ if (((invalidHash[_arg1]) || (invalidHash[InvalidationType.ALL]))){ return (true); }; while (_args.length > 0) { if (invalidHash[_args.pop()]){ return (true); }; }; return (false); } public function setSize(_arg1:Number, _arg2:Number):void{ _width = _arg1; _height = _arg2; invalidate(InvalidationType.SIZE); dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false)); } override public function set width(_arg1:Number):void{ if (_width == _arg1){ return; }; setSize(_arg1, height); } public function setFocus():void{ if (stage){ stage.focus = this; }; } protected function initializeAccessibility():void{ if (UIComponent.createAccessibilityImplementation != null){ UIComponent.createAccessibilityImplementation(this); }; } public function get focusManager():IFocusManager{ var _local1:DisplayObject; _local1 = this; while (_local1) { if (UIComponent.focusManagers[_local1] != null){ return (IFocusManager(UIComponent.focusManagers[_local1])); }; _local1 = _local1.parent; }; return (null); } override public function get width():Number{ return (_width); } public function move(_arg1:Number, _arg2:Number):void{ _x = _arg1; _y = _arg2; super.x = Math.round(_arg1); super.y = Math.round(_arg2); dispatchEvent(new ComponentEvent(ComponentEvent.MOVE)); } public function validateNow():void{ invalidate(InvalidationType.ALL, false); draw(); } public function getStyle(_arg1:String):Object{ return (instanceStyles[_arg1]); } public static function getStyleDefinition():Object{ return (defaultStyles); } public static function mergeStyles(... _args):Object{ var _local2:Object; var _local3:uint; var _local4:uint; var _local5:Object; var _local6:String; _local2 = {}; _local3 = _args.length; _local4 = 0; while (_local4 < _local3) { _local5 = _args[_local4]; for (_local6 in _local5) { if (_local2[_local6] != null){ } else { _local2[_local6] = _args[_local4][_local6]; }; }; _local4++; }; return (_local2); } } }//package fl.core
Section 26
//DataProvider (fl.data.DataProvider) package fl.data { import flash.events.*; import fl.events.*; public class DataProvider extends EventDispatcher { protected var data:Array; public function DataProvider(_arg1:Object=null){ if (_arg1 == null){ data = []; } else { data = getDataFromObject(_arg1); }; } protected function dispatchPreChangeEvent(_arg1:String, _arg2:Array, _arg3:int, _arg4:int):void{ dispatchEvent(new DataChangeEvent(DataChangeEvent.PRE_DATA_CHANGE, _arg1, _arg2, _arg3, _arg4)); } public function invalidateItemAt(_arg1:int):void{ checkIndex(_arg1, (data.length - 1)); dispatchChangeEvent(DataChangeType.INVALIDATE, [data[_arg1]], _arg1, _arg1); } public function getItemIndex(_arg1:Object):int{ return (data.indexOf(_arg1)); } protected function getDataFromObject(_arg1:Object):Array{ var _local2:Array; var _local3:Array; var _local4:uint; var _local5:Object; var _local6:XML; var _local7:XMLList; var _local8:XML; var _local9:XMLList; var _local10:XML; var _local11:XMLList; var _local12:XML; if ((_arg1 is Array)){ _local3 = (_arg1 as Array); if (_local3.length > 0){ if ((((_local3[0] is String)) || ((_local3[0] is Number)))){ _local2 = []; _local4 = 0; while (_local4 < _local3.length) { _local5 = {label:String(_local3[_local4]), data:_local3[_local4]}; _local2.push(_local5); _local4++; }; return (_local2); }; }; return (_arg1.concat()); } else { if ((_arg1 is DataProvider)){ return (_arg1.toArray()); }; if ((_arg1 is XML)){ _local6 = (_arg1 as XML); _local2 = []; _local7 = _local6.*; for each (_local8 in _local7) { _arg1 = {}; _local9 = _local8.attributes(); for each (_local10 in _local9) { _arg1[_local10.localName()] = _local10.toString(); }; _local11 = _local8.*; for each (_local12 in _local11) { if (_local12.hasSimpleContent()){ _arg1[_local12.localName()] = _local12.toString(); }; }; _local2.push(_arg1); }; return (_local2); //unresolved jump }; }; throw (new ((!NULL! + !NULL!) + " to Array or DataProvider.").TypeError(!NULL!)); } public function removeItemAt(_arg1:uint):Object{ var _local2:Array; checkIndex(_arg1, (data.length - 1)); dispatchPreChangeEvent(DataChangeType.REMOVE, data.slice(_arg1, (_arg1 + 1)), _arg1, _arg1); _local2 = data.splice(_arg1, 1); dispatchChangeEvent(DataChangeType.REMOVE, _local2, _arg1, _arg1); return (_local2[0]); } public function addItem(_arg1:Object):void{ dispatchPreChangeEvent(DataChangeType.ADD, [_arg1], (data.length - 1), (data.length - 1)); data.push(_arg1); dispatchChangeEvent(DataChangeType.ADD, [_arg1], (data.length - 1), (data.length - 1)); } public function sortOn(_arg1:Object, _arg2:Object=null){ var _local3:Array; dispatchPreChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); _local3 = data.sortOn(_arg1, _arg2); dispatchChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); return (_local3); } public function sort(... _args){ var _local2:Array; dispatchPreChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); _local2 = data.sort.apply(data, _args); dispatchChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); return (_local2); } public function addItems(_arg1:Object):void{ addItemsAt(_arg1, data.length); } public function concat(_arg1:Object):void{ addItems(_arg1); } public function clone():DataProvider{ return (new DataProvider(data)); } public function toArray():Array{ return (data.concat()); } public function get length():uint{ return (data.length); } public function addItemAt(_arg1:Object, _arg2:uint):void{ checkIndex(_arg2, data.length); dispatchPreChangeEvent(DataChangeType.ADD, [_arg1], _arg2, _arg2); data.splice(_arg2, 0, _arg1); dispatchChangeEvent(DataChangeType.ADD, [_arg1], _arg2, _arg2); } public function getItemAt(_arg1:uint):Object{ checkIndex(_arg1, (data.length - 1)); return (data[_arg1]); } override public function toString():String{ return ((("DataProvider [" + data.join(" , ")) + "]")); } public function invalidateItem(_arg1:Object):void{ var _local2:uint; _local2 = getItemIndex(_arg1); if (_local2 == -1){ return; }; invalidateItemAt(_local2); } protected function dispatchChangeEvent(_arg1:String, _arg2:Array, _arg3:int, _arg4:int):void{ dispatchEvent(new DataChangeEvent(DataChangeEvent.DATA_CHANGE, _arg1, _arg2, _arg3, _arg4)); } protected function checkIndex(_arg1:int, _arg2:int):void{ if ((((_arg1 > _arg2)) || ((_arg1 < 0)))){ throw (new RangeError((((("DataProvider index (" + _arg1) + ") is not in acceptable range (0 - ") + _arg2) + ")"))); }; } public function addItemsAt(_arg1:Object, _arg2:uint):void{ var _local3:Array; checkIndex(_arg2, data.length); _local3 = getDataFromObject(_arg1); dispatchPreChangeEvent(DataChangeType.ADD, _local3, _arg2, ((_arg2 + _local3.length) - 1)); data.splice.apply(data, [_arg2, 0].concat(_local3)); dispatchChangeEvent(DataChangeType.ADD, _local3, _arg2, ((_arg2 + _local3.length) - 1)); } public function replaceItem(_arg1:Object, _arg2:Object):Object{ var _local3:int; _local3 = getItemIndex(_arg2); if (_local3 != -1){ return (replaceItemAt(_arg1, _local3)); }; return (null); } public function removeItem(_arg1:Object):Object{ var _local2:int; _local2 = getItemIndex(_arg1); if (_local2 != -1){ return (removeItemAt(_local2)); }; return (null); } public function merge(_arg1:Object):void{ var _local2:Array; var _local3:uint; var _local4:uint; var _local5:uint; var _local6:Object; _local2 = getDataFromObject(_arg1); _local3 = _local2.length; _local4 = data.length; dispatchPreChangeEvent(DataChangeType.ADD, data.slice(_local4, data.length), _local4, (this.data.length - 1)); _local5 = 0; while (_local5 < _local3) { _local6 = _local2[_local5]; if (getItemIndex(_local6) == -1){ data.push(_local6); }; _local5++; }; if (data.length > _local4){ dispatchChangeEvent(DataChangeType.ADD, data.slice(_local4, data.length), _local4, (this.data.length - 1)); } else { dispatchChangeEvent(DataChangeType.ADD, [], -1, -1); }; } public function replaceItemAt(_arg1:Object, _arg2:uint):Object{ var _local3:Array; checkIndex(_arg2, (data.length - 1)); _local3 = [data[_arg2]]; dispatchPreChangeEvent(DataChangeType.REPLACE, _local3, _arg2, _arg2); data[_arg2] = _arg1; dispatchChangeEvent(DataChangeType.REPLACE, _local3, _arg2, _arg2); return (_local3[0]); } public function invalidate():void{ dispatchEvent(new DataChangeEvent(DataChangeEvent.DATA_CHANGE, DataChangeType.INVALIDATE_ALL, data.concat(), 0, data.length)); } public function removeAll():void{ var _local1:Array; _local1 = data.concat(); dispatchPreChangeEvent(DataChangeType.REMOVE_ALL, _local1, 0, _local1.length); data = []; dispatchChangeEvent(DataChangeType.REMOVE_ALL, _local1, 0, _local1.length); } } }//package fl.data
Section 27
//SimpleCollectionItem (fl.data.SimpleCollectionItem) package fl.data { public dynamic class SimpleCollectionItem { public var label:String; public var data:String; public function toString():String{ return ((((("[SimpleCollectionItem: " + label) + ",") + data) + "]")); } } }//package fl.data
Section 28
//ComponentEvent (fl.events.ComponentEvent) package fl.events { import flash.events.*; public class ComponentEvent extends Event { public static const HIDE:String = "hide"; public static const BUTTON_DOWN:String = "buttonDown"; public static const MOVE:String = "move"; public static const RESIZE:String = "resize"; public static const ENTER:String = "enter"; public static const LABEL_CHANGE:String = "labelChange"; public static const SHOW:String = "show"; public function ComponentEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } override public function toString():String{ return (formatToString("ComponentEvent", "type", "bubbles", "cancelable")); } override public function clone():Event{ return (new ComponentEvent(type, bubbles, cancelable)); } } }//package fl.events
Section 29
//DataChangeEvent (fl.events.DataChangeEvent) package fl.events { import flash.events.*; public class DataChangeEvent extends Event { protected var _items:Array; protected var _endIndex:uint; protected var _changeType:String; protected var _startIndex:uint; public static const PRE_DATA_CHANGE:String = "preDataChange"; public static const DATA_CHANGE:String = "dataChange"; public function DataChangeEvent(_arg1:String, _arg2:String, _arg3:Array, _arg4:int=-1, _arg5:int=-1):void{ super(_arg1); _changeType = _arg2; _startIndex = _arg4; _items = _arg3; _endIndex = ((_arg5)==-1) ? _startIndex : _arg5; } public function get changeType():String{ return (_changeType); } public function get startIndex():uint{ return (_startIndex); } public function get items():Array{ return (_items); } override public function clone():Event{ return (new DataChangeEvent(type, _changeType, _items, _startIndex, _endIndex)); } override public function toString():String{ return (formatToString("DataChangeEvent", "type", "changeType", "startIndex", "endIndex", "bubbles", "cancelable")); } public function get endIndex():uint{ return (_endIndex); } } }//package fl.events
Section 30
//DataChangeType (fl.events.DataChangeType) package fl.events { public class DataChangeType { public static const ADD:String = "add"; public static const REMOVE:String = "remove"; public static const REMOVE_ALL:String = "removeAll"; public static const CHANGE:String = "change"; public static const REPLACE:String = "replace"; public static const INVALIDATE:String = "invalidate"; public static const INVALIDATE_ALL:String = "invalidateAll"; public static const SORT:String = "sort"; } }//package fl.events
Section 31
//ListEvent (fl.events.ListEvent) package fl.events { import flash.events.*; public class ListEvent extends Event { protected var _index:int; protected var _item:Object; protected var _columnIndex:int; protected var _rowIndex:int; public static const ITEM_DOUBLE_CLICK:String = "itemDoubleClick"; public static const ITEM_ROLL_OUT:String = "itemRollOut"; public static const ITEM_ROLL_OVER:String = "itemRollOver"; public static const ITEM_CLICK:String = "itemClick"; public function ListEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=-1, _arg5:int=-1, _arg6:int=-1, _arg7:Object=null){ super(_arg1, _arg2, _arg3); _rowIndex = _arg5; _columnIndex = _arg4; _index = _arg6; _item = _arg7; } public function get rowIndex():Object{ return (_rowIndex); } public function get index():int{ return (_index); } public function get item():Object{ return (_item); } public function get columnIndex():int{ return (_columnIndex); } override public function clone():Event{ return (new ListEvent(type, bubbles, cancelable, _columnIndex, _rowIndex)); } override public function toString():String{ return (formatToString("ListEvent", "type", "bubbles", "cancelable", "columnIndex", "rowIndex", "index", "item")); } } }//package fl.events
Section 32
//ScrollEvent (fl.events.ScrollEvent) package fl.events { import flash.events.*; public class ScrollEvent extends Event { private var _position:Number; private var _direction:String; private var _delta:Number; public static const SCROLL:String = "scroll"; public function ScrollEvent(_arg1:String, _arg2:Number, _arg3:Number){ super(ScrollEvent.SCROLL, false, false); _direction = _arg1; _delta = _arg2; _position = _arg3; } override public function clone():Event{ return (new ScrollEvent(_direction, _delta, _position)); } public function get position():Number{ return (_position); } override public function toString():String{ return (formatToString("ScrollEvent", "type", "bubbles", "cancelable", "direction", "delta", "position")); } public function get delta():Number{ return (_delta); } public function get direction():String{ return (_direction); } } }//package fl.events
Section 33
//FocusManager (fl.managers.FocusManager) package fl.managers { import fl.core.*; import fl.controls.*; import flash.display.*; import flash.events.*; import flash.utils.*; import flash.text.*; import flash.ui.*; public class FocusManager implements IFocusManager { private var focusableObjects:Dictionary; private var _showFocusIndicator:Boolean;// = true private var defButton:Button; private var focusableCandidates:Array; private var _form:DisplayObjectContainer; private var _defaultButtonEnabled:Boolean;// = true private var activated:Boolean;// = false private var _defaultButton:Button; private var calculateCandidates:Boolean;// = true private var lastFocus:InteractiveObject; private var lastAction:String; public function FocusManager(_arg1:DisplayObjectContainer){ activated = false; calculateCandidates = true; _showFocusIndicator = true; _defaultButtonEnabled = true; super(); focusableObjects = new Dictionary(true); if (_arg1 != null){ _form = _arg1; addFocusables(DisplayObject(_arg1)); _arg1.addEventListener(Event.ADDED, addedHandler); _arg1.addEventListener(Event.REMOVED, removedHandler); activate(); }; } public function get showFocusIndicator():Boolean{ return (_showFocusIndicator); } private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{ var _local5:int; var _local6:int; var _local7:DisplayObject; var _local8:IFocusManagerGroup; var _local9:int; var _local10:DisplayObject; var _local11:IFocusManagerGroup; _local5 = focusableCandidates.length; _local6 = _arg1; while (true) { if (_arg2){ _arg1--; } else { _arg1++; }; if (_arg3){ if (((_arg2) && ((_arg1 < 0)))){ break; }; if (((!(_arg2)) && ((_arg1 == _local5)))){ break; }; } else { _arg1 = ((_arg1 + _local5) % _local5); if (_local6 == _arg1){ break; }; }; if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){ _local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1])); if ((_local7 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local7); _local9 = 0; while (_local9 < focusableCandidates.length) { _local10 = focusableCandidates[_local9]; if ((_local10 is IFocusManagerGroup)){ _local11 = IFocusManagerGroup(_local10); if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){ _arg1 = _local9; break; }; }; _local9++; }; }; return (_arg1); }; }; return (_arg1); } public function set form(_arg1:DisplayObjectContainer):void{ _form = _arg1; } private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{ var focusable:IFocusManagerComponent; var io:InteractiveObject; var doc:DisplayObjectContainer; var i:int; var child:DisplayObject; var o = _arg1; var skipTopLevel = _arg2; if (!skipTopLevel){ if ((o is IFocusManagerComponent)){ focusable = IFocusManagerComponent(o); if (focusable.focusEnabled){ if (((focusable.tabEnabled) && (isTabVisible(o)))){ focusableObjects[o] = true; calculateCandidates = true; }; o.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); o.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; } else { if ((o is InteractiveObject)){ io = (o as InteractiveObject); if (((((io) && (io.tabEnabled))) && ((findFocusManagerComponent(io) == io)))){ focusableObjects[io] = true; calculateCandidates = true; }; io.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); io.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; }; }; if ((o is DisplayObjectContainer)){ doc = DisplayObjectContainer(o); o.addEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); if ((((((doc is Stage)) || ((doc.parent is Stage)))) || (doc.tabChildren))){ i = 0; while (i < doc.numChildren) { try { child = doc.getChildAt(i); if (child != null){ addFocusables(doc.getChildAt(i)); }; } catch(error:SecurityError) { }; i = (i + 1); }; }; }; } private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{ return (_arg1.getChildIndex(_arg2)); } private function mouseFocusChangeHandler(_arg1:FocusEvent):void{ if ((_arg1.relatedObject is TextField)){ return; }; _arg1.preventDefault(); } private function focusOutHandler(_arg1:FocusEvent):void{ var _local2:InteractiveObject; _local2 = (_arg1.target as InteractiveObject); } private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{ var _local3:IFocusManagerGroup; if (!isEnabledAndVisible(_arg1)){ return (false); }; if ((_arg1 is IFocusManagerGroup)){ _local3 = IFocusManagerGroup(_arg1); if (_arg2 == _local3.groupName){ return (false); }; }; return (true); } public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{ var _local2:InteractiveObject; _local2 = _arg1; while (_arg1) { if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){ return (_arg1); }; _arg1 = _arg1.parent; }; return (_local2); } private function sortFocusableObjectsTabIndex():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))){ focusableCandidates.push(_local2); }; }; focusableCandidates.sort(sortByTabIndex); } private function removeFocusables(_arg1:DisplayObject):void{ var _local2:Object; var _local3:DisplayObject; if ((_arg1 is DisplayObjectContainer)){ _arg1.removeEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); _arg1.removeEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); for (_local2 in focusableObjects) { _local3 = DisplayObject(_local2); if (DisplayObjectContainer(_arg1).contains(_local3)){ if (_local3 == lastFocus){ lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local2]; calculateCandidates = true; }; }; }; } private function addedHandler(_arg1:Event):void{ var _local2:DisplayObject; _local2 = DisplayObject(_arg1.target); if (_local2.stage){ addFocusables(DisplayObject(_arg1.target)); }; } private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{ while (_arg1 != InteractiveObject(form)) { if ((((((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))) && (IFocusManagerComponent(_arg1).mouseFocusEnabled))) && (UIComponent(_arg1).enabled))){ return (_arg1); }; _arg1 = _arg1.parent; if (_arg1 == null){ break; }; }; return (null); } private function tabChildrenChangeHandler(_arg1:Event):void{ var _local2:DisplayObjectContainer; if (_arg1.target != _arg1.currentTarget){ return; }; calculateCandidates = true; _local2 = DisplayObjectContainer(_arg1.target); if (_local2.tabChildren){ addFocusables(_local2, true); } else { removeFocusables(_local2); }; } public function sendDefaultButtonEvent():void{ defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK)); } public function getFocus():InteractiveObject{ var _local1:InteractiveObject; _local1 = form.stage.focus; return (findFocusManagerComponent(_local1)); } private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{ var _local2:DisplayObjectContainer; var _local3:TextField; var _local4:SimpleButton; _local2 = DisplayObject(form).parent; while (_arg1 != _local2) { if ((_arg1 is UIComponent)){ if (!UIComponent(_arg1).enabled){ return (false); }; } else { if ((_arg1 is TextField)){ _local3 = TextField(_arg1); if ((((_local3.type == TextFieldType.DYNAMIC)) || (!(_local3.selectable)))){ return (false); }; } else { if ((_arg1 is SimpleButton)){ _local4 = SimpleButton(_arg1); if (!_local4.enabled){ return (false); }; }; }; }; if (!_arg1.visible){ return (false); }; _arg1 = _arg1.parent; }; return (true); } public function set defaultButton(_arg1:Button):void{ var _local2:Button; _local2 = (_arg1) ? Button(_arg1) : null; if (_local2 != _defaultButton){ if (_defaultButton){ _defaultButton.emphasized = false; }; if (defButton){ defButton.emphasized = false; }; _defaultButton = _local2; defButton = _local2; if (_local2){ _local2.emphasized = true; }; }; } private function deactivateHandler(_arg1:Event):void{ var _local2:InteractiveObject; _local2 = InteractiveObject(_arg1.target); } public function setFocus(_arg1:InteractiveObject):void{ if ((_arg1 is IFocusManagerComponent)){ IFocusManagerComponent(_arg1).setFocus(); } else { form.stage.focus = _arg1; }; } private function setFocusToNextObject(_arg1:FocusEvent):void{ var _local2:InteractiveObject; if (!hasFocusableObjects()){ return; }; _local2 = getNextFocusManagerComponent(_arg1.shiftKey); if (_local2){ setFocus(_local2); }; } private function hasFocusableObjects():Boolean{ var _local1:Object; for (_local1 in focusableObjects) { return (true); }; return (false); } private function tabIndexChangeHandler(_arg1:Event):void{ calculateCandidates = true; } private function sortFocusableObjects():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))) && ((_local2.tabIndex > 0)))){ sortFocusableObjectsTabIndex(); return; }; focusableCandidates.push(_local2); }; focusableCandidates.sort(sortByDepth); } private function keyFocusChangeHandler(_arg1:FocusEvent):void{ showFocusIndicator = true; if ((((((_arg1.keyCode == Keyboard.TAB)) || ((_arg1.keyCode == 0)))) && (!(_arg1.isDefaultPrevented())))){ setFocusToNextObject(_arg1); _arg1.preventDefault(); }; } private function getIndexOfFocusedObject(_arg1:DisplayObject):int{ var _local2:int; var _local3:int; _local2 = focusableCandidates.length; _local3 = 0; _local3 = 0; while (_local3 < _local2) { if (focusableCandidates[_local3] == _arg1){ return (_local3); }; _local3++; }; return (-1); } public function hideFocus():void{ } private function removedHandler(_arg1:Event):void{ var _local2:int; var _local3:DisplayObject; var _local4:InteractiveObject; _local3 = DisplayObject(_arg1.target); if ((((_local3 is IFocusManagerComponent)) && ((focusableObjects[_local3] == true)))){ if (_local3 == lastFocus){ IFocusManagerComponent(lastFocus).drawFocus(false); lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local3]; calculateCandidates = true; } else { if ((((_local3 is InteractiveObject)) && ((focusableObjects[_local3] == true)))){ _local4 = (_local3 as InteractiveObject); if (_local4){ if (_local4 == lastFocus){ lastFocus = null; }; delete focusableObjects[_local4]; calculateCandidates = true; }; _local3.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); }; }; removeFocusables(_local3); } private function sortByDepth(_arg1:InteractiveObject, _arg2:InteractiveObject):Number{ var _local3:String; var _local4:String; var _local5:int; var _local6:String; var _local7:String; var _local8:String; var _local9:DisplayObject; var _local10:DisplayObject; _local3 = ""; _local4 = ""; _local8 = "0000"; _local9 = DisplayObject(_arg1); _local10 = DisplayObject(_arg2); while (((!((_local9 == DisplayObject(form)))) && (_local9.parent))) { _local5 = getChildIndex(_local9.parent, _local9); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local3 = (_local7 + _local3); _local9 = _local9.parent; }; while (((!((_local10 == DisplayObject(form)))) && (_local10.parent))) { _local5 = getChildIndex(_local10.parent, _local10); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local4 = (_local7 + _local4); _local10 = _local10.parent; }; return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : 0); } public function get defaultButton():Button{ return (_defaultButton); } private function activateHandler(_arg1:Event):void{ var _local2:InteractiveObject; _local2 = InteractiveObject(_arg1.target); if (lastFocus){ if ((lastFocus is IFocusManagerComponent)){ IFocusManagerComponent(lastFocus).setFocus(); } else { form.stage.focus = lastFocus; }; }; lastAction = "ACTIVATE"; } public function showFocus():void{ } public function set defaultButtonEnabled(_arg1:Boolean):void{ _defaultButtonEnabled = _arg1; } public function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject{ var _local2:DisplayObject; var _local3:String; var _local4:int; var _local5:Boolean; var _local6:int; var _local7:int; var _local8:IFocusManagerGroup; if (!hasFocusableObjects()){ return (null); }; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; _local2 = form.stage.focus; _local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2))); _local3 = ""; if ((_local2 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local2); _local3 = _local8.groupName; }; _local4 = getIndexOfFocusedObject(_local2); _local5 = false; _local6 = _local4; if (_local4 == -1){ if (_arg1){ _local4 = focusableCandidates.length; }; _local5 = true; }; _local7 = getIndexOfNextObject(_local4, _arg1, _local5, _local3); return (findFocusManagerComponent(focusableCandidates[_local7])); } private function mouseDownHandler(_arg1:MouseEvent):void{ var _local2:InteractiveObject; if (_arg1.isDefaultPrevented()){ return; }; _local2 = getTopLevelFocusTarget(InteractiveObject(_arg1.target)); if (!_local2){ return; }; showFocusIndicator = false; if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){ setFocus(_local2); }; lastAction = "MOUSEDOWN"; } private function isTabVisible(_arg1:DisplayObject):Boolean{ var _local2:DisplayObjectContainer; _local2 = _arg1.parent; while (((((_local2) && (!((_local2 is Stage))))) && (!(((_local2.parent) && ((_local2.parent is Stage))))))) { if (!_local2.tabChildren){ return (false); }; _local2 = _local2.parent; }; return (true); } public function get nextTabIndex():int{ return (0); } private function keyDownHandler(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.TAB){ lastAction = "KEY"; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; }; if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){ sendDefaultButtonEvent(); }; } private function focusInHandler(_arg1:FocusEvent):void{ var _local2:InteractiveObject; var _local3:Button; _local2 = InteractiveObject(_arg1.target); if (form.contains(_local2)){ lastFocus = findFocusManagerComponent(InteractiveObject(_local2)); if ((lastFocus is Button)){ _local3 = Button(lastFocus); if (defButton){ defButton.emphasized = false; defButton = _local3; _local3.emphasized = true; }; } else { if (((defButton) && (!((defButton == _defaultButton))))){ defButton.emphasized = false; defButton = _defaultButton; _defaultButton.emphasized = true; }; }; }; } private function tabEnabledChangeHandler(_arg1:Event):void{ var _local2:InteractiveObject; var _local3:Boolean; calculateCandidates = true; _local2 = InteractiveObject(_arg1.target); _local3 = (focusableObjects[_local2] == true); if (_local2.tabEnabled){ if (((!(_local3)) && (isTabVisible(_local2)))){ if (!(_local2 is IFocusManagerComponent)){ _local2.focusRect = false; }; focusableObjects[_local2] = true; }; } else { if (_local3){ delete focusableObjects[_local2]; }; }; } public function set showFocusIndicator(_arg1:Boolean):void{ _showFocusIndicator = _arg1; } public function get form():DisplayObjectContainer{ return (_form); } private function sortByTabIndex(_arg1:InteractiveObject, _arg2:InteractiveObject):int{ return (((_arg1.tabIndex > _arg2.tabIndex)) ? 1 : ((_arg1.tabIndex < _arg2.tabIndex)) ? -1 : sortByDepth(_arg1, _arg2)); } public function activate():void{ if (activated){ return; }; form.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true); form.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true); form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true); form.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true); form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = true; if (lastFocus){ setFocus(lastFocus); }; } public function deactivate():void{ form.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler); form.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler); form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.removeEventListener(Event.ACTIVATE, activateHandler); form.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler); form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = false; } public function get defaultButtonEnabled():Boolean{ return (_defaultButtonEnabled); } } }//package fl.managers
Section 34
//IFocusManager (fl.managers.IFocusManager) package fl.managers { import fl.controls.*; import flash.display.*; public interface IFocusManager { function getFocus():InteractiveObject; function deactivate():void; function set defaultButton(_arg1:Button):void; function set showFocusIndicator(_arg1:Boolean):void; function get defaultButtonEnabled():Boolean; function get nextTabIndex():int; function get defaultButton():Button; function get showFocusIndicator():Boolean; function setFocus(_arg1:InteractiveObject):void; function activate():void; function showFocus():void; function set defaultButtonEnabled(_arg1:Boolean):void; function hideFocus():void; function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject; function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject; } }//package fl.managers
Section 35
//IFocusManagerComponent (fl.managers.IFocusManagerComponent) package fl.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 fl.managers
Section 36
//IFocusManagerGroup (fl.managers.IFocusManagerGroup) package fl.managers { public interface IFocusManagerGroup { function set groupName(_arg1:String):void; function set selected(_arg1:Boolean):void; function get groupName():String; function get selected():Boolean; } }//package fl.managers
Section 37
//StyleManager (fl.managers.StyleManager) package fl.managers { import fl.core.*; import flash.utils.*; import flash.text.*; public class StyleManager { private var globalStyles:Object; private var classToDefaultStylesDict:Dictionary; private var styleToClassesHash:Object; private var classToStylesDict:Dictionary; private var classToInstancesDict:Dictionary; private static var _instance:StyleManager; public function StyleManager(){ styleToClassesHash = {}; classToInstancesDict = new Dictionary(true); classToStylesDict = new Dictionary(true); classToDefaultStylesDict = new Dictionary(true); globalStyles = UIComponent.getStyleDefinition(); } public static function clearComponentStyle(_arg1:Object, _arg2:String):void{ var _local3:Class; var _local4:Object; _local3 = getClassDef(_arg1); _local4 = getInstance().classToStylesDict[_local3]; if (((!((_local4 == null))) && (!((_local4[_arg2] == null))))){ delete _local4[_arg2]; invalidateComponentStyle(_local3, _arg2); }; } private static function getClassDef(_arg1:Object):Class{ var component = _arg1; if ((component is Class)){ return ((component as Class)); }; try { return ((getDefinitionByName(getQualifiedClassName(component)) as Class)); } catch(e:Error) { if ((component is UIComponent)){ try { return ((component.loaderInfo.applicationDomain.getDefinition(getQualifiedClassName(component)) as Class)); } catch(e:Error) { }; }; }; return (null); } public static function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } public static function setComponentStyle(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Class; var _local5:Object; _local4 = getClassDef(_arg1); _local5 = getInstance().classToStylesDict[_local4]; if (_local5 == null){ _local5 = (getInstance().classToStylesDict[_local4] = {}); }; if (_local5 == _arg3){ return; }; _local5[_arg2] = _arg3; invalidateComponentStyle(_local4, _arg2); } private static function setSharedStyles(_arg1:UIComponent):void{ var _local2:StyleManager; var _local3:Class; var _local4:Object; var _local5:String; _local2 = getInstance(); _local3 = getClassDef(_arg1); _local4 = _local2.classToDefaultStylesDict[_local3]; for (_local5 in _local4) { _arg1.setSharedStyle(_local5, getSharedStyle(_arg1, _local5)); }; } public static function getComponentStyle(_arg1:Object, _arg2:String):Object{ var _local3:Class; var _local4:Object; _local3 = getClassDef(_arg1); _local4 = getInstance().classToStylesDict[_local3]; return (((_local4)==null) ? null : _local4[_arg2]); } private static function getInstance(){ if (_instance == null){ _instance = new (StyleManager); }; return (_instance); } private static function invalidateComponentStyle(_arg1:Class, _arg2:String):void{ var _local3:Dictionary; var _local4:Object; var _local5:UIComponent; _local3 = getInstance().classToInstancesDict[_arg1]; if (_local3 == null){ return; }; for (_local4 in _local3) { _local5 = (_local4 as UIComponent); if (_local5 == null){ } else { _local5.setSharedStyle(_arg2, getSharedStyle(_local5, _arg2)); }; }; } private static function invalidateStyle(_arg1:String):void{ var _local2:Dictionary; var _local3:Object; _local2 = getInstance().styleToClassesHash[_arg1]; if (_local2 == null){ return; }; for (_local3 in _local2) { invalidateComponentStyle(Class(_local3), _arg1); }; } public static function registerInstance(_arg1:UIComponent):void{ var inst:StyleManager; var classDef:Class; var target:Class; var defaultStyles:Object; var styleToClasses:Object; var n:String; var instance = _arg1; inst = getInstance(); classDef = getClassDef(instance); if (classDef == null){ return; }; if (inst.classToInstancesDict[classDef] == null){ inst.classToInstancesDict[classDef] = new Dictionary(true); target = classDef; while (defaultStyles == null) { if (target["getStyleDefinition"] != null){ defaultStyles = target["getStyleDefinition"](); break; }; try { target = (instance.loaderInfo.applicationDomain.getDefinition(getQualifiedSuperclassName(target)) as Class); } catch(err:Error) { try { target = (getDefinitionByName(getQualifiedSuperclassName(target)) as Class); } catch(e:Error) { defaultStyles = UIComponent.getStyleDefinition(); break; }; }; }; styleToClasses = inst.styleToClassesHash; for (n in defaultStyles) { if (styleToClasses[n] == null){ styleToClasses[n] = new Dictionary(true); }; styleToClasses[n][classDef] = true; }; inst.classToDefaultStylesDict[classDef] = defaultStyles; inst.classToStylesDict[classDef] = {}; }; inst.classToInstancesDict[classDef][instance] = true; setSharedStyles(instance); } public static function getStyle(_arg1:String):Object{ return (getInstance().globalStyles[_arg1]); } private static function getSharedStyle(_arg1:UIComponent, _arg2:String):Object{ var _local3:Class; var _local4:StyleManager; var _local5:Object; _local3 = getClassDef(_arg1); _local4 = getInstance(); _local5 = _local4.classToStylesDict[_local3][_arg2]; if (_local5 != null){ return (_local5); }; _local5 = _local4.globalStyles[_arg2]; if (_local5 != null){ return (_local5); }; return (_local4.classToDefaultStylesDict[_local3][_arg2]); } public static function setStyle(_arg1:String, _arg2:Object):void{ var _local3:Object; _local3 = getInstance().globalStyles; if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; _local3[_arg1] = _arg2; invalidateStyle(_arg1); } } }//package fl.managers
Section 38
//Button_Gender_Female (game.Button_Gender_Female) package game { import flash.display.*; public dynamic class Button_Gender_Female extends SimpleButton { } }//package game
Section 39
//Button_Gender_Male (game.Button_Gender_Male) package game { import flash.display.*; public dynamic class Button_Gender_Male extends SimpleButton { } }//package game
Section 40
//Button_Guest (game.Button_Guest) package game { import flash.display.*; public dynamic class Button_Guest extends SimpleButton { } }//package game
Section 41
//Button_Logo (game.Button_Logo) package game { import flash.display.*; public dynamic class Button_Logo extends SimpleButton { } }//package game
Section 42
//Button_SignUpBig (game.Button_SignUpBig) package game { import flash.display.*; public dynamic class Button_SignUpBig extends SimpleButton { } }//package game
Section 43
//DescBox_BuyMembership (game.DescBox_BuyMembership) package game { import flash.display.*; public dynamic class DescBox_BuyMembership extends MovieClip { public function DescBox_BuyMembership(){ addFrameScript(28, frame29); } function frame29(){ this.stop(); } } }//package game
Section 44
//DescBox_LockedMerits (game.DescBox_LockedMerits) package game { import flash.display.*; public dynamic class DescBox_LockedMerits extends MovieClip { public function DescBox_LockedMerits(){ addFrameScript(28, frame29); } function frame29(){ this.stop(); } } }//package game
Section 45
//DescBox_Tokens (game.DescBox_Tokens) package game { import flash.display.*; public dynamic class DescBox_Tokens extends MovieClip { public function DescBox_Tokens(){ addFrameScript(28, frame29); } function frame29(){ this.stop(); } } }//package game
Section 46
//Popup_Inform (game.Popup_Inform) package game { import flash.display.*; public dynamic class Popup_Inform extends MovieClip { public var mBtnCancel:SimpleButton; public var mBtnOk:SimpleButton; public var mHeader:MovieClip; public var mBtnEgoCity:SimpleButton; public var mBtnClose:SimpleButton; } }//package game
Section 47
//PrivacyOver (game.PrivacyOver) package game { import flash.display.*; public dynamic class PrivacyOver extends MovieClip { public function PrivacyOver(){ addFrameScript(9, frame10); } function frame10(){ stop(); } } }//package game
Section 48
//Constants (game2.Constants) package game2 { public class Constants { public static const STR_JACKET_COLOR:int = 498; public static const ACTION_HEADBANG = 126; public static const STR_PLAYUFO:int = 555; public static const ACTION_EXPERIMENT_LOSER = 146; public static const STR_LEVELUP_COLLEGE:int = 464; public static const STR_ACCOUNT_DELETE:int = 75; public static const ANIM_LOOP = 220; public static const ANIM_APPLAUD = 1; public static const STR_ROOM_ACCESS:int = 679; public static const STR_UNLOCK_GIFT:int = 472; public static const STR_THIEF:int = 349; public static const STR_SMACK:int = 366; public static const NEWACTION_SEXYLAUGH = 214; static const CUSTOMPARTS_DECALCOLOR:int = 19; public static const STR_TEST_QUESTION13:int = 104; public static const STR_TEST_QUESTION14:int = 105; public static const ANIM_MAKEOUTBEGINNING_BEGINNING = 111; public static const STR_TEST_QUESTION16:int = 107; public static const STR_TEST_QUESTION11:int = 102; public static const STR_TEST_QUESTION12:int = 103; public static const STR_TEST_QUESTION15:int = 106; public static const ANIM_IDOL_COUGH = 104; public static const STR_TEST_QUESTION10:int = 101; public static const STR_BUDDY_OPTIONS:int = 400; public static const NEWACTION_ADJUST = 217; public static const ACTION_FISTPOUND_END = 172; public static const STR_HELP_BUDDY_LIST:int = 192; public static const STR_SEND_INTERACTION:int = 404; public static const STR_SOCIAL_POINTS:int = 185; public static const STR_LOCAL_EGO:int = 756; public static const ANIM_THROWOBJECT = 192; public static const ANIM_COINEND = 18; public static const STR_JOURNAL_EMPTY:int = 591; public static const STR_SOCIAL_CIRCLE:int = 392; public static const STR_HELP_TOYS:int = 209; public static const ANIM_GIFT_ROCK = 83; public static const ACTION_STAND = 159; public static const STR_JOB:int = 585; public static const STR_EGO_DELETED:int = 91; public static const STR_JOURNALMOOD_CONTENT:int = 310; public static const ANIM_SHAKE_IDLE = 169; public static const ANIM_DEBATE_LOSER = 38; public static const ACTION_PUNCHED_INFACE = 99; public static const STR_VERSION:int = 0; public static const ANIM_MAKEOUTLOOP_RECIEVED = 115; public static const STR_GAMEPLAY:int = 86; public static const STR_TUTORIAL_10_0:int = 250; public static const STR_TUTORIAL_10_1:int = 251; public static const STR_TUTORIAL_10_2:int = 252; static const SIZE_CUSTOM_DECALCOLOR:int = 7; public static const ACTION_IDLE_1 = 188; public static const ACTION_IDLE_2 = 189; public static const ACTION_IDLE_3 = 190; public static const ANIM_PATHEAD = 121; public static const STR_HELP:int = 53; public static const ACTION_IDLE_0 = 187; public static const STR_ADD_BUDDY:int = 401; public static const STR_NONE:int = 695; public static const STR_LEVELUP_SUPREME:int = 467; public static const STR_GIFT_FLOWERS:int = 453; public static const ANIM_OVERLYHAPPY = 120; public static const STR_DISLIKE:int = 302; public static const STR_STATS:int = 175; public static const STR_LEVELUP_TOY:int = 461; public static const STR_UNMARK_PERMANENT:int = 711; public static const STR_INVALID_PASS:int = 719; public static const ANIM_DAPS_REJECTED = 35; public static const STR_CHAT_END_0:int = 727; public static const STR_TEST_ANSWER16_1:int = 166; public static const STR_TEST_ANSWER16_2:int = 167; public static const STR_TEST_ANSWER16_3:int = 168; public static const STR_HELP_STATS:int = 208; public static const STR_EGO_STATS:int = 379; public static const STR_BAN_REMOVE_0:int = 745; public static const STR_CHAT_END_1:int = 728; public static const STR_LIKE:int = 301; public static const ANIM_TITLE_SCREEN_UP_6_5 = 212; public static const ANIM_TITLE_SCREEN_DOWN_2_3 = 200; public static const ACTION_HUG_BACK = 164; public static const STR_SEX:int = 515; public static const STR_NATIVE_AMERICAN:int = 655; public static const STR_GIFT_GAUNTLET:int = 454; public static const STR_ASIAN:int = 649; public static const STR_SHOVE:int = 548; public static const NEWACTION_RAVER = 195; public static const ANIM_PLAY_JUGGLINGBALLS_LOOP = 127; public static const ANIM_POSEMALELOOP = 141; public static const STR_INVENTOR:int = 334; public static const STR_THINK:int = 558; public static const STR_TUTORIAL_7_0:int = 235; public static const STR_TUTORIAL_7_1:int = 236; static const CUSTOMPARTS_BACK:int = 0; public static const STR_TUTORIAL_7_3:int = 238; public static const STR_BEG:int = 602; public static const STR_TUTORIAL_7_2:int = 237; public static const ACTION_DUMMY = 0; public static const STR_HAVE_5_FRIENDS:int = 786; public static const STR_ENLIGHTENED:int = 435; public static const ACTION_PRAISED = 95; public static const STR_HAIR:int = 480; public static const ANIM_FIGHTINGPOSE_LOOP = 68; public static const ANIM_BORED = 9; static const CUSTOMPARTS_PANTSCOLOR:int = 18; public static const ACTION_TITLE_5_4 = 181; static const CUSTOMPARTS_BELT:int = 1; public static const ACTION_TITLE_5_6 = 179; public static const ANIM_ROCKOUTEND = 151; public static const STR_MED_STUDENT:int = 355; public static const ACTION_EAT_FRUIT = 27; public static const STR_NET_LOGIN:int = 446; public static const NEWACTION_PUNK = 196; public static const STR_CAREER:int = 434; public static const ANIM_TRIGGER = 222; public static const STR_SOCIAL:int = 600; public static const STR_RESTORE_EGO:int = 61; public static const ACTION_HANDSHAKE_BACK = 160; public static const STR_NEUTRAL:int = 303; public static const STR_THUG:int = 353; public static const ANIM_COMFORT = 20; public static const ACTION_SHOVE = 108; public static const STR_LEER:int = 526; public static const ANIM_MIRRORFLIRTFEMALE = 116; public static const STR_SHY:int = 607; public static const STR_HONOR_STUDENT:int = 362; public static const STR_NET_MENU:int = 375; public static const ACTION_THINK = 118; public static const STR_TEST_QUESTION1:int = 92; public static const STR_TEST_QUESTION2:int = 93; public static const STR_TEST_QUESTION3:int = 94; public static const STR_TEST_QUESTION4:int = 95; public static const STR_TEST_QUESTION5:int = 96; public static const STR_TEST_QUESTION6:int = 97; public static const STR_TEST_QUESTION7:int = 98; public static const STR_TEST_QUESTION8:int = 99; public static const STR_TEST_QUESTION9:int = 100; public static const STR_STATS_INTERACTIONS:int = 422; public static const STR_ACCOUNT_DELETED:int = 90; public static const STR_HEAD_TYPE:int = 306; public static const STR_PROFESSIONAL:int = 433; public static const STR_PART_SELECT:int = 519; public static const STR_LECTURE:int = 554; public static const ANIM_SHAKE_REJECTED = 171; static const CUSTOMFLAGS_ONLYHATDECAL:int = (1 << 4); public static const ANIM_HUG = 97; public static const STR_FLEX:int = 545; public static const ACTION_HUG_REJECTED = 67; public static const ANIM_SLAP = 178; static const SIZE_CUSTOM_BACK:int = 3; public static const ANIM_GIFT_CHOCOLATE = 75; public static const STR_BAN_LIST:int = 744; public static const STR_DISCONNECTED:int = 707; public static const ACTION_GODHAND = 149; static const CUSTOMINDEX_HAIRCOLOR:int = 71; public static const STR_ABOUT8_1:int = 10; public static const STR_ABOUT8_2:int = 11; public static const STR_ABOUT8_3:int = 12; public static const ACTION_PLAY_PUNCHINGBAG = 85; static const SIZE_CUSTOM_PANTSCOLOR:int = 7; public static const NEWACTION_CARESS = 223; static const SIZE_CUSTOM_BELT:int = 3; public static const STR_TEST_ANSWER12_1:int = 154; public static const STR_TEST_ANSWER12_2:int = 155; public static const STR_TEST_ANSWER12_3:int = 156; public static const STR_HELP_FOOD:int = 194; public static const STR_FOOD_ICECREAM:int = 272; public static const STR_HEAD_APPEARANCE:int = 474; public static const ANIM_TITLE_SCREEN_UP_2_1 = 208; public static const ACTION_TICKLE = 121; public static const STR_TOY_TENNIS:int = 289; static const CUSTOMPARTS_FEET:int = 13; static const CUSTOMPARTS_HATCOLOR:int = 16; public static const STR_BUDDY_REMOVED:int = 405; public static const ACTION_HANDSHAKE_END = 162; static const ITEMLOC_GLASSES:int = 0x0300; public static const NEWACTION_BODYSHOT = 209; public static const ANIM_GIFT_NEWSPAPER = 81; public static const STR_ARCHETYPES:int = 172; public static const STR_RESUME:int = 373; public static const STR_ATT_CHANGE:int = 384; public static const STR_ABOUT10:int = 14; public static const STR_ABOUT11:int = 15; public static const STR_ABOUT12:int = 16; public static const ANIM_PLAY_STATUE = 134; public static const STR_ABOUT14:int = 18; public static const STR_ABOUT15:int = 19; public static const STR_ABOUT16:int = 20; public static const STR_ABOUT17:int = 21; public static const ANIM_DUCK = 44; public static const STR_ABOUT13:int = 17; public static const ACTION_RPS_LOSER = 142; public static const STR_TORSO:int = 489; public static const STR_ABOUT18:int = 22; public static const STR_ABOUT19:int = 23; public static const STR_PAUSE:int = 372; public static const STR_TUTORIAL_3_1:int = 222; public static const STR_TUTORIAL_3_2:int = 223; public static const STR_NET_SWAP_REQUEST_RECEIVE:int = 415; public static const STR_TUTORIAL_3_0:int = 221; public static const ANIM_HUNGRY = 102; public static const STR_ABOUT20:int = 24; public static const STR_ABOUT21:int = 37; public static const STR_ABOUT22:int = 38; public static const STR_ABOUT23:int = 39; static const ITEMLOC_TORSO:int = 0x0B00; public static const NEWACTION_KARAOKE = 208; public static const STR_ABOUT26:int = 42; public static const STR_NEW_DOWNLOAD_0:int = 703; public static const STR_NEW_DOWNLOAD_1:int = 704; public static const STR_ABOUT25:int = 41; public static const STR_FOOD_BURGER:int = 266; public static const STR_ABOUT24:int = 40; public static const ACTION_TITLE_1_0 = 185; public static const ACTION_TITLE_1_2 = 175; public static const STR_LOCATION:int = 509; public static const NEWACTION_RUB = 218; public static const STR_JEWISH:int = 653; public static const STR_PREFS_TOY:int = 0x0101; public static const STR_HELP_SOCIAL_POINTS:int = 206; public static const STR_REL_DATING:int = 659; public static const STR_TEST_ANSWER6_1:int = 136; public static const NEWACTION_TANGO = 200; public static const ANIM_SHIVERINFEAR = 172; public static const STR_TEST_ANSWER6_2:int = 137; public static const ANIM_DANCE_FEMALE_BEGGINNING = 26; public static const ANIM_GUITAR = 88; public static const STR_DRAMA_STUDENT:int = 351; public static const STR_ABOUT3B:int = 3; static const SIZE_CUSTOM_HATCOLOR:int = 7; public static const ANIM_HIGHFIVE_BEGINNING = 93; public static const STR_NEW_DOWNLOAD_2:int = 705; public static const STR_HIGHSCHOOL:int = 431; public static const STR_ABOUT3C:int = 4; public static const NEWACTION_BITEFINGER = 216; public static const STR_BOW:int = 521; public static const STR_GREET_SELECT:int = 518; public static const ANIM_DANCE_MALE_BEGGINNING = 29; static const SIZE_CUSTOM_FEET:int = 2; public static const STR_REMOVE_BUDDY:int = 403; public static const ANIM_LOOPDONE = 221; public static const STR_FOOD_WINE:int = 267; public static const STR_ROOM:int = 683; public static const STR_INTRO:int = 350; public static const STR_TOY_POTION:int = 280; public static const STR_GREETING:int = 593; public static const STR_EGO_DETAILS:int = 383; public static const STR_ABOUT20_1:int = 25; public static const STR_ABOUT20_3:int = 27; public static const STR_ABOUT20_4:int = 28; public static const STR_ABOUT20_5:int = 29; public static const STR_ABOUT20_7:int = 31; public static const ANIM_STRETCH = 184; static const ITEMLOC_BACK:int = 0; public static const STR_LAUGH:int = 538; public static const STR_ABOUT20_6:int = 30; public static const STR_ABOUT20_8:int = 32; public static const STR_ABOUT20_9:int = 33; public static const STR_ABOUT20_2:int = 26; public static const ANIM_EAT_APPLE = 50; public static const STR_GROUP:int = 688; public static const STR_GOTH:int = 332; public static const STR_INPUT_RAPID:int = 642; static const SIZE_CUSTOM_HEADDECAL:int = 3; public static const STR_JACKET:int = 497; public static const ANIM_EATICECREAM = 46; public static const NEWACTION_EMBRACE = 226; public static const STR_JOURNAL:int = 589; public static const STR_PREPPY:int = 341; public static const STR_FOOD_ANGELCAKE:int = 269; static const ITEMLOC_BELT:int = 0x0100; public static const ACTION_FULL = 3; public static const STR_MAD_SCIENTIST:int = 337; public static const STR_GETTING_1_2:int = 791; public static const NEWACTION_WINK = 221; static const SIZE_CUSTOM_TORSO:int = 12; public static const STR_TELLJOKE:int = 539; public static const STR_PLAYCOOL:int = 608; public static const STR_TEXT_INCLUDE:int = 412; public static const ACTION_LAUGH = 70; static const ITEMLOC_HEADDECAL:int = 0x0700; public static const ANIM_EAT_WINE = 57; public static const STR_JOURNALMOOD_HAPPY:int = 309; public static const STR_FACIALHAIR:int = 481; public static const STR_PERSONALITY_ICONS:int = 182; public static const ACTION_DEBATE_FIRST = 17; public static const ANIM_SHAKECLAPSHOULDER = 163; public static const ACTION_END = 191; public static const ANIM_SHAKE_END = 168; public static const STR_EGO_CHANGE:int = 385; public static const ACTION_DEBATE_SECOND = 18; public static const ACTION_APPLAUD = 1; public static const STR_RESTORE_ACCOUNT_0:int = 697; public static const STR_RESTORE_ACCOUNT_1:int = 698; public static const STR_RESTORE_ACCOUNT_3:int = 700; public static const STR_RESTORE_ACCOUNT_4:int = 701; public static const STR_PHYSICAL:int = 599; public static const STR_BAN_DESC_0:int = 750; static const DATASIZE_ARCDATA:int = 8970; public static const STR_BAN_DESC_2:int = 752; static const CUSTOMINDEX_FACIALHAIR:int = 6; public static const STR_STATS_ARGUMENTS:int = 423; public static const STR_RESTORE_ACCOUNT_5:int = 702; public static const NEWACTION_DIRTYDANCE = 201; public static const STR_BAN_DESC_3:int = 753; static const CUSTOMPARTS_HEADDECAL:int = 7; public static const STR_INTENT_MENTAL:int = 299; public static const STR_TOY_COIN:int = 288; public static const ACTION_CLAPSHOULDER = 57; public static const STR_ABOUT20_12:int = 36; public static const STR_POST_IS_LOCKED:int = 782; public static const STR_WELCOME_TO_JOURNAL:int = 780; public static const NEWACTION_COLOGNE = 203; public static const STR_TEST_ANSWER2_1:int = 124; public static const STR_TEST_ANSWER2_2:int = 125; public static const ACTION_WAVE = 123; public static const STR_ABOUT20_11:int = 35; public static const STR_USER_NOT_FOUND:int = 407; public static const STR_ERROR_1:int = 793; public static const STR_ERROR_3:int = 795; public static const STR_ERROR_5:int = 797; public static const STR_TEST_ANSWER2_3:int = 126; public static const STR_ABOUT20_10:int = 34; static const ACTION_DATASIZE_ANIMLIST:int = 472; public static const STR_ERROR_2:int = 794; public static const STR_ERROR_4:int = 796; public static const STR_NET_FAILURE:int = 714; static const CUSTOMPARTS_TORSO:int = 11; static const SIZE_CUSTOM_FEETCOLOR:int = 7; public static const STR_RESTORE_ACCOUNT_2:int = 699; public static const STR_BAN_DESC_1:int = 751; public static const ANIM_CRINGE = 22; public static const ANIM_EAT_ANGELCAKE = 49; public static const STR_GET_JOURNAL_INFO:int = 757; public static const STR_GAY:int = 664; public static const ACTION_ESP_LOSE = 144; public static const ACTION_PLAY_TENNIS = 90; public static const STR_UNLOCK_FOOD:int = 471; public static const ACTION_CHAT = 9; public static const STR_FUNNY:int = 597; public static const ANIM_PUNCHFACE = 147; public static const STR_MODIFIERS:int = 173; public static const STR_FOOD_FRUIT:int = 263; public static const STR_SNEER:int = 530; public static const STR_QUIT:int = 377; public static const STR_ETHNICITY_FILTER:int = 648; public static const STR_HAT_COLOR:int = 485; public static const STR_ROOM_ACCESS_PRIV:int = 680; public static const ANIM_FLEX_02 = 69; public static const STR_DECAL:int = 478; public static const ACTION_EAT_SMOOTHIE = 33; public static const STR_SERVER_EGO:int = 755; public static const ANIM_VOODOODOLL = 213; public static const ACTION_PATHEAD = 76; public static const ACTION_DONE = 151; public static const ACTION_PUNCHED_STOMACH = 101; public static const STR_INFOR_6:int = 803; public static const STR_INFOR_7:int = 804; public static const STR_INFOR_1:int = 798; public static const STR_INFOR_3:int = 800; public static const STR_INFOR_5:int = 802; static const CUSTOMINDEX_TORSO:int = 51; public static const STR_INFOR_2:int = 799; public static const STR_INFOR_4:int = 801; static const CUSTOMPARTS_FEETCOLOR:int = 14; public static const ANIM_EXPERIMENT_WINNER = 65; public static const STR_GIFT_MAGAZINE:int = 452; public static const STR_CHAT_REQUEST:int = 576; public static const ACTION_PLAY_SKULL = 93; public static const ACTION_GIFT_CHOCOLATES = 51; public static const ANIM_SHAKEBACK = 162; public static const STR_POST_DELETE_LOCKED_2:int = 759; public static const STR_BUDDYREQUEST_SUCCESS:int = 406; public static const ANIM_FLIRTFEMALE = 70; public static const STR_SEARCH_SEX:int = 676; public static const ACTION_FISTPOUND_REJECT = 148; public static const STR_CHAT2:int = 749; public static const ACTION_SNEER = 114; public static const STR_ANGEL:int = 319; public static const ANIM_SHRUG = 176; public static const STR_ATTRIBUTES:int = 382; static const CUSTOMINDEX_HATCOLOR:int = 72; public static const STR_POST_DELETE_LOCKED_1:int = 758; public static const STR_HAVE_SH:int = 788; public static const STR_GIFT_FRYINGPAN:int = 459; public static const ANIM_TITLE_SCREEN_SELECT_1 = 206; static const CUSTOMINDEX_TORSOCOLOR:int = 79; public static const STR_SCOLDED:int = 609; public static const ACTION_PLAY_POTION = 89; public static const ANIM_HIGHFIVEREJECTEDEND = 90; public static const STR_DELETE_TEXT2:int = 68; public static const STR_DELETE_TEXT1:int = 67; static const ITEMLOC_FACIALHAIR:int = 0x0200; public static const STR_SKATER:int = 346; public static const ACTION_RPS_BEGINNING = 157; public static const ACTION_EAT_DOUGHNUT = 28; public static const STR_STATS_ARCHETYPE:int = 419; public static const STR_WAVE:int = 531; public static const STR_START_ACCOUNT_2:int = 627; public static const STR_DEBUGTEST:int = 44; public static const ACTION_PUNCHED_FACE = 98; public static const ACTION_EAT_WINE = 29; public static const STR_CREATE_TO_ACCESS:int = 620; public static const STR_NETWORK_ON:int = 723; public static const ACTION_SHIVER = 106; public static const ACTION_COMFORT = 10; public static const STR_NET_FAILED_1:int = 774; public static const ACTION_HIGHFIVE_BACK = 167; public static const STR_NET_FAILED_5:int = 778; public static const ACTION_DEBATEPOSE = 156; public static const STR_DELETE_TEXT3:int = 69; static const CUSTOMPARTS_NECK:int = 9; public static const STR_NET_FAILED_3:int = 776; public static const STR_UNLOCK_TOY:int = 470; public static const ACTION_GIFT_FLOWERS = 45; public static const STR_NET_FAILED_6:int = 779; public static const STR_START_ACCOUNT_1:int = 626; public static const STR_NET_FAILED_2:int = 775; public static const ACTION_HIGHFIVE_END = 169; public static const ANIM_RAGE = 149; public static const STR_FOLLOWUP_ANSWER_11:int = 123; public static const STR_HAVE_5_REVALS:int = 787; public static const STR_INTELLECT:int = 388; public static const ANIM_ROCKPAPERSCISSORS_SHOWHAND = 157; public static const ANIM_CURSE = 24; public static const STR_CHAT:int = 534; public static const ANIM_TITLE_SCREEN_DOWN_3_4 = 201; public static const STR_FOLLOWUP_ANSWER_10:int = 122; public static const STR_HELP_MODIFIERS:int = 198; public static const STR_TOY_MIRROR:int = 291; public static const ANIM_SULK = 188; public static const STR_ADD_TEXT:int = 667; public static const STR_PETS:int = 583; public static const STR_DEBATE:int = 552; public static const ANIM_STUDYEND = 186; public static const STR_INBOX_EMPTY:int = 573; public static const STR_NET_FAILED_4:int = 777; public static const ACTION_HANDSHAKE2 = 55; public static const STR_MENU_PROFILE_RELATIONSHIP_TITLE:int = 805; public static const STR_LOADING:int = 48; public static const STR_SKIN_COLOR:int = 488; public static const STR_TORSO_DECAL:int = 491; public static const STR_TUTORIAL_8_0:int = 239; public static const STR_BIKER:int = 322; public static const STR_TUTORIAL_8_1:int = 240; public static const ANIM_EATBURGER = 45; public static const NUM_ACTIONS = 192; public static const ANIM_PLAY_JUGGLINGBALLS_END = 126; public static const ACTION_NOD = 75; public static const ACTION_TITLE_6_5 = 180; public static const STR_GIVE_GIFT:int = 533; static const SIZE_CUSTOM_NECK:int = 3; public static const STR_SURFER:int = 348; static const CUSTOMFLAGS_ALWAYSGLASSES:int = (1 << 5); public static const STR_MEAN:int = 596; public static const STR_SOLDIER:int = 347; public static const STR_BI:int = 663; public static const STR_FEMALE:int = 0x0202; public static const ANIM_PLAY_BRUSH = 124; public static const NEWACTION_KISSBODY = 230; public static const STR_COLLEGE:int = 432; public static const STR_AI_EGO:int = 720; public static const ACTION_DOZE = 21; public static const ANIM_PLAY_SKULL = 133; public static const NEWACTION_LAPDANCE = 202; public static const STR_PROFILE_DESC_0:int = 504; public static const STR_PART:int = 520; public static const STR_VISIT_BUDDY:int = 588; public static const STR_PROFILE_DESC_1:int = 505; public static const STR_NET_BUDDY_ADD:int = 416; public static const STR_SKIP_LOGIN_2:int = 631; public static const STR_SKIP_LOGIN_3:int = 632; public static const STR_SKIP_LOGIN_4:int = 633; public static const NEWACTION_TIKI = 194; static const CUSTOMINDEX_HAIR:int = 12; public static const ANIM_SMACKHEAD = 179; public static const STR_WINETASTE:int = 559; public static const ANIM_BELLYLAUGHBEGINNING = 5; public static const STR_DEMO_INFO_3:int = 569; public static const STR_DEMO_INFO_4:int = 570; public static const STR_DEMO_INFO_1:int = 567; public static const STR_STATS_EXPERIMENTS:int = 430; public static const STR_DEMO_INFO_5:int = 571; public static const ACTION_MAKEOUT2 = 73; public static const STR_SOUND_ON:int = 56; public static const STR_FOOD_COFFEE:int = 273; public static const ACTION_GIFT_FRYINGPAN = 47; public static const STR_BODY_APPEARANCE2:int = 477; public static const STR_GO_HOME:int = 577; public static const STR_TOY_WEIGHTS:int = 277; public static const STR_SKIP_LOGIN_1:int = 630; public static const ANIM_HUG_REJECTED = 101; public static const STR_TEST_ANSWER13_2:int = 158; public static const STR_TEST_ANSWER13_3:int = 159; public static const STR_TEST_ANSWER13_1:int = 157; public static const STR_DEMO_INFO_2:int = 568; public static const ANIM_TITLE_SCREEN_UP_3_2 = 209; public static const STR_TICKLE:int = 368; public static const ANIM_SHOOAWAY = 173; public static const STR_AGE_FILTER:int = 671; public static const ANIM_PLAY_LITTLEEGO = 128; public static const ANIM_DAGGERS = 25; static const DATASIZE_ITEMLOCS:int = 0x0D00; public static const ANIM_DANCE_FEMALE_END = 27; public static const ACTION_STRETCH = 125; public static const ACTION_CLAPSHOULDER_START = 58; public static const STR_CHAT_DENY:int = 575; public static const ACTION_DEBATE_THIRD = 19; static const CUSTOMPARTS_TORSODECAL:int = 12; public static const STR_HIGHFIVE:int = 523; public static const STR_JOURNALMOOD_ANGRY:int = 313; public static const STR_TUTORIAL_4_0:int = 224; public static const STR_TUTORIAL_4_1:int = 225; public static const ANIM_GIFT_CRYSTALBALL = 76; public static const ANIM_TITLE_SCREEN_IDOL = 204; static const SIZE_PER_ARCHETYPE:int = 115; public static const STR_TUTORIAL_4_2:int = 226; public static const STR_NETWORK_PRIVATE:int = 394; public static const STR_JOURNAL_STATUS:int = 637; public static const ANIM_AASTOP = 0; public static const STR_FISTPOUND:int = 524; public static const ANIM_HUG_NEUTRAL = 100; public static const ACTION_TITLE_2_3 = 176; public static const ANIM_ESP_LOSER = 59; public static const ACTION_TITLE_2_1 = 184; static const ITEMLOC_JACKET:int = 0x0800; public static const STR_TOY_DARTGUN:int = 284; public static const STR_AGGRESSION:int = 387; public static const ACTION_EAT_POTION = 35; public static const STR_ACTOR:int = 318; public static const ACTION_WHISTLE = 124; public static const STR_TEST_ANSWER7_2:int = 140; public static const STR_TEST_ANSWER7_3:int = 141; static const ITEMLOC_NECK:int = 0x0900; public static const STR_TEST_ANSWER7_1:int = 139; public static const ANIM_ESP = 58; public static const ACTION_EXAMINE = 37; public static const STR_HELP_PERSONALITY_ICONS:int = 201; public static const STR_TOY_REMOTECAR:int = 282; public static const STR_STATS_DEBATES:int = 424; public static const STR_JOURNALMOOD_TIRED:int = 311; public static const STR_DELETE_EGO:int = 60; public static const NUM_ANIMS = 217; public static const STR_WORKOUT:int = 550; public static const STR_PREFS_ONLINE:int = 261; public static const STR_INTENT_SELECT:int = 532; public static const STR_PRAISED:int = 611; public static const STR_BACK:int = 47; public static const STR_LESS_10:int = 565; public static const STR_JOURNAL_WARNING_2:int = 726; public static const STR_JOURNAL_WARNING_0:int = 724; public static const STR_JOURNAL_WARNING_1:int = 725; static const SIZE_CUSTOM_TORSODECAL:int = 6; public static const STR_DOZE:int = 297; public static const STR_NET_DISABLED:int = 623; public static const STR_ADD_ENTRY:int = 590; public static const ACTION_CHECKWATCH = 131; public static const ANIM_SPANKED = 182; public static const ANIM_ARMPUMP = 2; public static const ACTION_HUNGRY = 5; public static const STR_BELT:int = 495; public static const STR_STATS_LEVEL:int = 420; public static const STR_HEADBANG:int = 619; public static const STR_NET_PASSWORD:int = 447; public static const ANIM_SHOVEAT = 174; public static const STR_CRY:int = 537; public static const ANIM_EATPIZZA = 47; public static const STR_CHAT_ACCEPT:int = 574; public static const STR_BAN_REQUEST_SUCCESS:int = 746; public static const ANIM_PUNCHSTOMACH = 148; public static const STR_PREFS_BACKGROUND:int = 260; static const CUSTOMINDEX_GLASSES:int = 8; public static const STR_NO:int = 63; public static const ACTION_GODHAND2 = 154; public static const ANIM_THREATEN = 191; public static const NEWACTION_WHIPPED = 210; public static const ANIM_PLAY_WIEGHTS = 135; public static const STR_OK:int = 748; public static const ANIM_POSEFEMALEEND = 137; public static const STR_LESS_50:int = 566; public static const ANIM_GODSHAND = 84; public static const STR_HELP_ARCHETYPE:int = 190; public static const ACTION_BEG = 2; public static const ACTION_CLAPSHOULDER_END = 163; public static const STR_BELCH:int = 616; public static const ACTION_HIGHFIVE_REJECT = 147; public static const STR_GAMESAVE:int = 187; public static const STR_HELP_ATTRIBUTES:int = 191; static const ACTION_DATASIZE_INFLUENCE:int = 2757; public static const ACTION_FLIRTYWINK = 137; public static const STR_TUTORIAL_0_1:int = 211; public static const STR_TUTORIAL_0_2:int = 212; public static const NEWACTION_BITELIP = 215; public static const STR_NULL:int = 43; public static const STR_MARTIAL_ARTIST:int = 338; public static const STR_PERSONAL_PROFILE:int = 181; static const CUSTOMINDEX_DECALCOLOR:int = 93; public static const STR_TUTORIAL_0_0:int = 210; public static const STR_TUTORIAL_0_3:int = 213; public static const STR_EXPERIMENT:int = 553; public static const ACTION_SHOVE_RECEIVE = 109; public static const ACTION_RUB_JAW = 104; public static const STR_ATTITUDE:int = 386; public static const ACTION_SHY = 111; public static const NEWACTION_HOLDHANDS = 222; public static const STR_FEET:int = 499; public static const ACTION_RPS_LOSE_HAND = 141; public static const ACTION_COMFORT_RECEIVE = 158; public static const STR_TEST_ANSWER3_1:int = 127; public static const STR_TEST_ANSWER3_2:int = 128; public static const STR_TEST_ANSWER3_3:int = 129; public static const ANIM_SHAKECLAPSHOULDER_END = 164; public static const ANIM_POSEFEMALELOOP = 138; public static const ANIM_DEBATE_FIRST = 37; public static const STR_LAW_STUDENT:int = 360; public static const STR_HANDSHAKE:int = 522; public static const ANIM_PUNCHED_INFACE = 146; public static const ACTION_FLIRT_F = 41; public static const ACTION_BELCH = 6; public static const ANIM_CHEERLEADER = 16; public static const ACTION_FLIRT_M = 42; public static const STR_HAT:int = 484; public static const STR_NO_ANSWER:int = 665; public static const STR_APPEARANCE:int = 171; public static const STR_MODEL:int = 357; public static const STR_FOOD_DEVILCAKE:int = 270; public static const STR_SHOULDERCLAP:int = 529; public static const ANIM_EAT_POTION = 55; public static const STR_PRAISE:int = 293; public static const STR_ENTER_CHAT:int = 713; public static const STR_TV:int = 592; public static const ANIM_NOD = 119; public static const STR_TOY_SKATEBOARD:int = 279; public static const ANIM_IDOL_BOB = 103; public static const STR_SOCIAL_LEVEL:int = 184; public static const STR_CUSTOMIZE:int = 807; public static const ACTION_JUMP_CHEER = 68; public static const ACTION_PUNCHEDOUT = 102; public static const ACTION_PUNCH_STOMACH = 97; public static const STR_MALE:int = 513; public static const STR_DELETE_USER_TEXT0:int = 70; public static const STR_DELETE_USER_TEXT1:int = 71; public static const STR_DELETE_USER_TEXT2:int = 72; public static const STR_DELETE_USER_TEXT3:int = 73; public static const STR_YES:int = 62; public static const STR_TOY_VICTIM:int = 290; public static const STR_EGO_2_DETAILS:int = 729; public static const ANIM_CRYING = 23; public static const ANIM_HUG_END = 99; public static const STR_ENABLE_NET_2:int = 625; static const SIZE_CUSTOM_HAT:int = 7; public static const STR_ENABLE_NET_1:int = 624; public static const STR_DELETE_USER_TEXT4:int = 74; public static const ANIM_CHECKWATCH = 14; public static const STR_TOY_PUNCHINGBAG:int = 281; public static const ACTION_PLAY_SKATEBOARD = 92; public static const STR_LATINO:int = 654; public static const ANIM_EXPERIMENT_MIXING = 64; public static const ACTION_CRINGE = 11; public static const ACTION_ESP_BATTLE = 36; public static const ANIM_EAT_SMOOTHIE = 56; public static const STR_LEVELUP_GIFT:int = 463; public static const STR_GIFT_PRESENT:int = 450; public static const STR_SECRET_AGENT:int = 344; public static const ANIM_STAND = 183; public static const STR_TALKTOHAND:int = 615; public static const STR_RANDOM_SOCIALIZE_2:int = 734; public static const STR_RANDOM_SOCIALIZE_0:int = 732; public static const ACTION_PLAY_CAR = 86; public static const STR_PANTS:int = 493; public static const STR_APPLAUD:int = 551; public static const STR_JSTATUS_LUNCH:int = 641; public static const STR_HELP_PERSONAL_PROFILE:int = 200; public static const ANIM_EAT_DEVILCAKE = 52; public static const ACTION_BOW = 8; public static const STR_GIFT_CHEMISTRY:int = 457; static const CUSTOMINDEX_PANTSCOLOR:int = 86; public static const STR_TOY_DOLL:int = 287; static const CUSTOMPARTS_HAT:int = 5; public static const ACTION_THREATEN = 119; public static const STR_RANDOM_SOCIALIZE_1:int = 733; public static const ANIM_FLIRTYWINK = 72; public static const STR_JSTATUS_AVAILABLE:int = 639; static const ITEMLOC_PANTS:int = 0x0A00; public static const STR_SEARCH_FILTER:int = 674; public static const ACTION_FISTPOUND_CONCEDE = 171; public static const ANIM_SHOVEDRECIVED = 175; public static const STR_ABOUT4:int = 5; public static const STR_ABOUT5:int = 6; public static const STR_ABOUT6:int = 7; public static const STR_ABOUT7:int = 8; public static const STR_ABOUT8:int = 9; public static const STR_ABOUT2:int = 1; public static const STR_ABOUT3:int = 2; public static const STR_FOOD_SMOOTHIE:int = 271; public static const STR_JOURNALMOOD_SAD:int = 312; public static const STR_AGE_DESC:int = 510; public static const STR_ABOUT9:int = 13; public static const ACTION_HIGH_FIVE = 60; public static const STR_CANCEL:int = 747; public static const ACTION_EXPERIMENT_START = 153; public static const ACTION_NO = 74; public static const ACTION_STOP = 152; public static const STR_SHIVER:int = 610; public static const STR_EGO_IS_BUSY:int = 784; public static const STR_GUMSHOE:int = 333; public static const STR_GIFT_ROCK:int = 451; public static const STR_SEARCH_GROUP:int = 689; public static const ANIM_TITLE_SCREEN_DOWN_4_5 = 202; public static const ACTION_HANDSHAKE_REJECTED = 56; public static const STR_DISABLED_SOC:int = 621; public static const STR_JOURNALMOOD_BEATUP:int = 314; public static const STR_PRAISE_SCOLD:int = 183; public static const STR_EGO_STATISTICS:int = 418; public static const STR_INTERACT:int = 292; public static const STR_BG_FOREST:int = 316; public static const ANIM_ESP_WINNER = 60; public static const STR_FIRST_ATT_CHANGE:int = 253; public static const ANIM_POSEMALEEND = 140; public static const STR_PATHEAD:int = 365; public static const ANIM_GIFT_FLOWERS = 77; public static const STR_TUTORIAL_9_2:int = 243; public static const STR_TUTORIAL_9_3:int = 245; public static const STR_TUTORIAL_9_4:int = 246; public static const STR_TUTORIAL_9_5:int = 247; public static const STR_TUTORIAL_9_6:int = 248; public static const ANIM_HIGHFIVE_END = 94; public static const STR_TUTORIAL_9_1:int = 242; public static const ACTION_SLAP = 112; public static const STR_INTENT_SOCIAL:int = 298; public static const STR_SOUND_OFF_1:int = 59; public static const STR_TUTORIAL_9_7:int = 249; public static const STR_TUTORIAL_9_0:int = 241; public static const ANIM_GODSHAND_END = 85; public static const STR_ORIENTATION:int = 661; public static const ANIM_DOSE_LOOP = 43; public static const STR_MEM_CHECK_0:int = 716; public static const STR_MEM_CHECK_1:int = 717; public static const STR_GLASSES:int = 487; public static const STR_EGO_MENU:int = 374; public static const STR_HELP_CHAT:int = 193; public static const STR_REQ_CREATE_ACC:int = 792; public static const ACTION_CLAPSHOULDER2 = 59; static const SIZE_CUSTOM_PANTS:int = 4; public static const STR_PROFILE_FILTERS:int = 180; public static const STR_TOY_STATUE:int = 285; public static const ACTION_THROWOBJECT = 120; public static const STR_BODY_APPEARANCE:int = 475; public static const STR_MAINMENU:int = 49; public static const ACTION_DAGGERS = 132; public static const STR_SET_SPECIAL_STATUS:int = 691; public static const ANIM_DARTGUN = 36; public static const STR_FOOD_DOUGHNUT:int = 264; public static const ANIM_GIFT_GAUNTLET = 79; static const CUSTOMFLAGS_ALWAYSDECAL2:int = (1 << 6); static const CUSTOMFLAGS_ALWAYSDECAL3:int = (1 << 7); public static const ACTION_DUCK = 22; public static const ANIM_MAKEOUTBEGINNING_END = 112; public static const STR_JOURNALMOOD_EXCITED:int = 308; public static const STR_CONTROLS:int = 77; public static const ACTION_EAT_ANGELFOOD = 31; public static const ANIM_LECTURE = 109; public static const ANIM_BEG = 3; public static const STR_ROOM_ACCESS_PUB:int = 681; public static const ANIM_COMFORT_RECIVED = 21; public static const STR_ARTIST:int = 320; public static const ANIM_GIFT_CHEMISTRYSET = 74; public static const STR_DELETE_MESSAGE:int = 712; public static const STR_PRIVATE:int = 685; public static const ANIM_LEER = 110; public static const ANIM_CHATTINGLOOP = 13; public static const STR_SEARCH_RADIUS:int = 675; public static const ACTION_GIFT_CHEMISTRY = 50; public static const STR_BUDDY_RIVAL:int = 693; public static const ANIM_PUNCHEDOUTRECOVERY = 145; public static const STR_REL_STATUS:int = 658; public static const ACTION_FISTPOUND_BACK = 170; public static const ACTION_PLAY_VICTIM = 78; static const CUSTOMPARTS_PANTS:int = 10; public static const STR_TEST_ANSWER14_3:int = 162; public static const ANIM_TICKLED_CURSOR = 195; public static const ACTION_MAKEOUT = 72; public static const STR_TEST_ANSWER14_1:int = 160; public static const STR_TEST_ANSWER14_2:int = 161; public static const STR_GIFTS:int = 177; public static const ANIM_SHY = 177; public static const STR_COMFORT:int = 536; public static const ANIM_CHEER = 15; public static const ANIM_TITLE_SCREEN_UP_4_3 = 210; public static const ANIM_TITLE_SCREEN_DOWN_0_1 = 198; public static const STR_VISIT:int = 586; public static const ANIM_EXPERIMENT_LOSER = 63; public static const STR_MARK_PERMANENT:int = 710; public static const STR_ADD_BUDDY_SUCCESS:int = 410; public static const STR_DISABLED_CHAT:int = 622; public static const ACTION_OVERLYHAPPY = 134; public static const STR_HELP_GIFTS:int = 196; public static const STR_CURRENT_STATUS:int = 638; public static const STR_TOY_GUITAR:int = 286; public static const STR_SERVER_MSG_SIZE:int = 708; public static const ACTION_ARMPUMP = 136; public static const NEWACTION_PERFUME = 204; public static const ACTION_RPS_WIN_HAND = 139; public static const STR_REBEL:int = 342; public static const ANIM_PLAY_SKATEBOARD = 132; public static const STR_BUDDY_REQUEST_RECEIVE:int = 409; public static const ANIM_DAPS_BEGGINNING = 32; public static const STR_NETWORK_PUBLIC:int = 393; public static const ANIM_ROCKOUTBEGINNING = 150; public static const STR_TUTORIAL_5_0:int = 227; public static const STR_TUTORIAL_5_1:int = 228; public static const STR_TUTORIAL_5_2:int = 229; public static const STR_HELP_SOCIAL_LEVEL:int = 205; public static const ACTION_BORED = 4; public static const ACTION_FIGHTPOSE = 155; public static const ANIM_POSEMALEBEGINNING = 139; public static const STR_CONTROLS_TEXT3:int = 80; public static const STR_CONTROLS_TEXT4:int = 81; public static const STR_CONTROLS_TEXT5:int = 82; public static const STR_CONTROLS_TEXT6:int = 83; public static const STR_CONTROLS_TEXT7:int = 84; public static const STR_CONTROLS_TEXT1:int = 78; public static const ACTION_HANDSHAKE_START = 54; public static const STR_COFFEE:int = 535; public static const STR_NECK:int = 496; public static const ACTION_TITLE_3_2 = 183; public static const ACTION_HUG_CONCEDE = 165; public static const ACTION_EAT_PIZZA = 26; public static const STR_CONTROLS_TEXT2:int = 79; public static const STR_CONNECTION:int = 722; static const CUSTOMINDEX_PANTS:int = 47; public static const ACTION_TITLE_3_4 = 177; public static const STR_CAUCASION:int = 651; public static const ANIM_DEBATE_THIRD = 40; public static const STR_CONTROLS_TEXT8:int = 85; static const SIZE_CUSTOM_HAIRCOLOR:int = 1; public static const ANIM_HUG_BEGINNING = 98; public static const STR_TEST_ANSWER8_1:int = 142; public static const NEWACTION_LEI = 205; public static const STR_TEST_ANSWER8_3:int = 144; public static const STR_HUG:int = 525; public static const STR_CHAT_ROOM_LOAD_ERROR:int = 587; public static const STR_HELP_APPEARANCE:int = 189; public static const STR_TEST_ANSWER8_2:int = 143; public static const STR_STATUS:int = 380; public static const STR_SOCIALIZE:int = 296; public static const STR_STUDY:int = 557; public static const STR_POSE:int = 546; public static const NEWACTION_FLASH = 219; public static const STR_SCOLD:int = 294; public static const STR_RETIRE:int = 468; public static const STR_FLIRT:int = 331; public static const STR_GIFT_NEWSPAPER:int = 456; public static const STR_EDIT_MESSAGE:int = 636; public static const NEWACTION_FRONTTOBACK = 227; public static const STR_NET_DISCONNECTED:int = 790; public static const STR_TEST_CONCLUSION1:int = 109; public static const STR_TEST_CONCLUSION3:int = 111; public static const STR_TEST_CONCLUSION4:int = 112; static const SIZE_CUSTOM_GLASSES:int = 4; public static const STR_TEST_CONCLUSION2:int = 110; public static const STR_PHYSIQUE:int = 390; public static const NEWACTION_CAMERAPHONE = 206; static const CUSTOMPARTS_HATDECAL:int = 6; public static const ANIM_EATRICEBOWL = 48; public static const STR_NET_UNAVAILABLE:int = 721; public static const ACTION_PLAY_BOOK = 77; public static const STR_OPTIONS:int = 52; static const CUSTOMPARTS_HAIRCOLOR:int = 15; public static const ANIM_IDOL_HEAVYBREATHING = 106; public static const STR_INTERACTION_SENT:int = 473; public static const STR_MUSIC:int = 579; public static const ANIM_DANCE_FEMALE_LOOP = 28; public static const ACTION_STUDY = 115; public static const STR_THROWPAN:int = 549; public static const STR_TEST_ANSWER10_1:int = 148; public static const STR_TEST_ANSWER10_2:int = 149; public static const STR_TEST_ANSWER10_3:int = 150; public static const STR_UNRETIRE:int = 469; public static const NEWACTION_SQUEEZE = 228; public static const ANIM_BOW = 10; public static const STR_PROFANITY_FILTER:int = 737; public static const ANIM_PLAY_REMOTE = 131; static const CUSTOMINDEX_BACK:int = 0; public static const ANIM_CHATTINGBEGINNING = 11; public static const STR_EXIT:int = 55; public static const STR_SEARCH_ORIENATION:int = 678; public static const ACTION_HANDSHAKE_CONCEDE = 161; public static const ANIM_SHAKECLAPSHOULDER_RECIEVED = 165; public static const STR_SEX_SYMBOL:int = 345; public static const ANIM_DANCE_MALE_END = 30; static const CUSTOMINDEX_BELT:int = 3; public static const STR_EXPLORER:int = 329; public static const STR_TUTORIAL_1_0:int = 214; public static const STR_TUTORIAL_1_1:int = 215; static const CUSTOMLIST_SIZE:int = 71; public static const STR_STATS_SPORTS:int = 429; public static const STR_TUTORIAL_1_2:int = 216; public static const STR_TUTORIAL_1_3:int = 217; static const CUSTOMPARTS_GLASSES:int = 3; public static const STR_MENU_PROFILE_ORIENTATION_TITLE:int = 806; static const ITEMLOC_HATDECAL:int = 0x0600; public static const ACTION_PLAY_STATUE = 94; public static const ANIM_TENNIS = 190; public static const STR_NET_LOGIN_0:int = 442; public static const STR_HELP_PRAISE_SCOLD:int = 202; public static const STR_NET_LOGIN_2:int = 444; public static const ACTION_HUG_END = 166; static const CUSTOMINDEX_HEADDECAL:int = 35; static const SIZE_CUSTOM_HATDECAL:int = 2; public static const STR_NET_LOGIN_1:int = 443; public static const STR_NET_LOGIN_3:int = 445; public static const ANIM_PUNCHEDGUT = 144; public static const STR_SEARCH_DESC_1:int = 563; public static const ACTION_TITLE_1 = 173; public static const ANIM_WAIT = 219; public static const STR_ADD_BUDDY_FAILURE:int = 411; public static const STR_TEST_ANSWER4_1:int = 130; public static const STR_TEST_ANSWER4_2:int = 131; public static const ANIM_PLAYCOOL = 122; static const CUSTOMINDEX_JACKET:int = 38; public static const ACTION_CROSSARMS = 12; public static const STR_TEST_ANSWER4_3:int = 132; public static const STR_DECAL_COLOR:int = 479; public static const STR_COMEDIAN:int = 354; public static const ANIM_TELLJOKE = 189; public static const ANIM_TICKLED = 194; public static const STR_LEAVE:int = 578; public static const NEWACTION_HIPHOP = 197; public static const STR_WHISTLE:int = 612; public static const ANIM_DOSE_BEGINNING = 41; public static const STR_CLASSCLOWN:int = 325; public static const STR_LEVELUP_FOOD:int = 462; public static const STR_DOCTOR:int = 327; public static const STR_PERFORMER:int = 356; public static const ANIM_POSEFEMALEBEGINNING = 136; public static const STR_CONFIRM_REMOVE:int = 402; public static const ANIM_DAPS_NEUTRAL = 34; public static const STR_HELP_SOCIALIZE:int = 207; public static const STR_FRIENDLY:int = 595; public static const STR_ENTER_JOURNAL:int = 635; public static const ANIM_STUDYLOOP = 187; public static const STR_NET_ENCOUNTER:int = 449; public static const STR_ADD_BAN:int = 743; public static const STR_STATS_ESPBATTLES:int = 425; public static const STR_TOY_PAINTBRUSH:int = 278; public static const NEWACTION_ACOUSTIC = 207; public static const STR_BAN_DELETE:int = 754; public static const ANIM_TITLE_SCREEN_1 = 197; public static const STR_DRAMATIC:int = 594; public static const ANIM_WALK = 214; public static const STR_SKINCOLOR:int = 305; public static const STR_OTHER:int = 657; public static const STR_STATS_MATURITY:int = 421; public static const ANIM_EXPERIMENT_BEGGINNING = 61; public static const ANIM_PLAY_PUNCHINGBAG = 130; public static const STR_EXAMINE:int = 605; public static const ACTION_GIFT_NEWSPAPER = 49; public static const ACTION_SHOO = 107; public static const STR_PRO_SKATER:int = 364; static const CUSTOMINDEX_FEET:int = 69; public static const STR_MY_ROOM:int = 178; public static const NEWACTION_BOOGIE = 193; public static const ACTION_PLAY_GUITAR = 81; public static const STR_GEEK:int = 361; public static const STR_FOOD_RICE:int = 265; public static const STR_TEST_ANSWER6_3A:int = 138; public static const STR_TEST_ANSWER6_3B:int = 169; static const CUSTOMINDEX_FEETCOLOR:int = 100; public static const STR_EAST_INDIAN:int = 652; public static const STR_NET_PASSWORD_1:int = 448; public static const ACTION_PLAY_PAINTBRUSH = 91; public static const ANIM_CHATTINGEND = 12; public static const STR_PROFANITY_ALLOW:int = 735; public static const STR_HELP_PROFILE_FILTERS:int = 203; public static const STR_BUDDYLIST:int = 378; public static const STR_NERD:int = 339; public static const STR_NETWORK_NONE_DESC:int = 399; public static const ANIM_SNUF = 181; public static const STR_PREFS_FOOD:int = 0x0100; public static const STR_NOT_CONFIRMED_AS_A_BUDDY:int = 785; public static const ANIM_COINBEGINNING = 17; public static const ANIM_SHAKE_NEUTRAL = 170; public static const NEWACTION_BEADS = 211; public static const STR_CRINGE:int = 603; public static const ANIM_KISS_END = 108; public static const ACTION_FLEX_F = 39; public static const ACTION_FLEX_M = 40; public static const STR_BG_SUBURB:int = 317; public static const STR_EXITCONF:int = 45; public static const ACTION_RAGE = 103; public static const ACTION_FISTPOUND = 62; public static const ANIM_TITLE_SCREEN = 196; public static const STR_DISCONNECT_WARNING:int = 706; public static const ANIM_SNEER = 180; public static const ANIM_ROCKPAPERSCISSORS_WINNER = 158; public static const ANIM_PLAY_POTION = 129; public static const STR_ZIP:int = 516; public static const STR_CREATE_PROFILE_0:int = 501; public static const NEWACTION_KISSLIPS = 229; public static const ACTION_HOLD_STOMACH = 64; public static const STR_ASSASSIN:int = 321; public static const STR_DANCE:int = 544; public static const ACTION_GIFT_PRESENT = 43; public static const ANIM_MAKEOUTLOOP = 114; public static const STR_NETWORK_PRIVATE_DESC:int = 398; public static const STR_READBOOK:int = 556; public static const ANIM_FULL = 73; public static const STR_HELP_MY_ROOM:int = 199; public static const STR_MENTAL:int = 598; public static const ANIM_DOSE_END = 42; public static const STR_EAT:int = 295; public static const STR_CREATE_PROFILE_1:int = 502; public static const ANIM_GIFT_MAGAZINE = 80; public static const NEWACTION_KISSHAND = 225; public static const STR_STATS_HEARTS:int = 428; public static const STR_PREFS_INTERACTION:int = 258; public static const STR_HAT_DECAL:int = 486; public static const ANIM_GOLFCLAP = 87; public static const ANIM_HIGHFIVE_NEUTRAL = 95; static const CUSTOMPARTS_HAIR:int = 4; public static const STR_FOOD_PIZZA:int = 262; public static const ACTION_CRY = 13; public static const STR_DEVIL:int = 326; public static const ACTION_PLAY_JUGGLING = 82; public static const ACTION_YAWN = 150; public static const STR_BLACK:int = 650; public static const ACTION_TITLE_SELECT = 186; public static const ANIM_FIGHTINGPOSE_END = 67; public static const STR_TOY_SKULL:int = 283; public static const ANIM_TITLE_SCREEN_DOWN_5_6 = 203; public static const ACTION_LECTURE = 71; public static const STR_PUBLIC:int = 684; public static const STR_SHRUG:int = 617; public static const STR_TOYS:int = 186; public static const ACTION_EAT_COFFEE = 34; public static const STR_INTERACTION_QUERY1:int = 413; static const SIZE_CUSTOM_JACKETCOLOR:int = 7; public static const ANIM_PLAY_BOOK = 123; public static const ANIM_GIFT_FRYINGPAN = 78; public static const STR_SHOO:int = 528; public static const STR_INTERACTION_QUERY2:int = 414; public static const ACTION_PLAYCOOL = 130; public static const ANIM_WAVE = 215; public static const ANIM_SCOLDED = 161; public static const STR_PROFANITY_OFF:int = 742; public static const ANIM_SHAKE_BEGINNING = 167; public static const ACTION_TELLJOKE = 117; public static const ACTION_GIFT_CRYSTALBALL = 48; public static const ACTION_DEBATE_LOSER = 20; public static const ACTION_GIFT_GAUNTLET = 46; public static const STR_FEET_COLOR:int = 500; static const CUSTOMPARTS_FACIALHAIR:int = 2; public static const STR_MUSICIAN:int = 358; public static const STR_SEARCH_RELATIONSHIP:int = 677; static const CUSTOMINDEX_FLAGS:int = 114; public static const STR_LOGIN_1:int = 628; public static const STR_LOGIN_2:int = 629; public static const ACTION_PUNCH_FACE = 96; public static const STR_PLAY:int = 50; public static const ANIM_FLIRTMALE = 71; public static const ACTION_SHRUG = 110; public static const ACTION_KISS = 69; public static const ANIM_EXPERIMENT_IDLE = 62; public static const STR_TORSO_COLOR:int = 490; public static const STR_GENDER:int = 370; static const SIZE_CUSTOM_HAIR:int = 14; public static const STR_MY_GROUP:int = 690; static const CUSTOMINDEX_TORSODECAL:int = 63; public static const STR_REACTION:int = 601; public static const STR_RAGE:int = 541; static const CUSTOMINDEX_HATDECAL:int = 33; public static const ACTION_HIGHFIVE_START = 61; public static const STR_BLOG_FULL:int = 709; public static const STR_CURSE:int = 604; public static const STR_CATS:int = 584; public static const STR_MEM_CHECK_FAIL:int = 715; public static const STR_SULK:int = 542; public static const STR_LEVELUP:int = 460; public static const STR_RECONCIL_0:int = 760; public static const STR_RECONCIL_1:int = 761; public static const STR_RECONCIL_3:int = 763; public static const STR_RECONCIL_4:int = 764; public static const STR_RECONCIL_5:int = 765; public static const ANIM_PUNCHEDFACE = 143; public static const STR_HEAD_APPEARANCE2:int = 476; public static const STR_RECONCIL_8:int = 0x0300; public static const STR_RECONCIL_2:int = 762; public static const ACTION_SHOVE_NO = 127; static const CUSTOMPARTS_JACKETCOLOR:int = 20; public static const STR_RECONCIL_9:int = 769; public static const ANIM_DONE = 218; public static const STR_RECONCIL_6:int = 766; public static const STR_RECONCIL_7:int = 767; public static const STR_BG_CITY:int = 315; public static const ACTION_EXPERIMENT_WINNER = 145; public static const STR_INTENT_PHYSICAL:int = 300; static const SIZE_CUSTOM_FACIALHAIR:int = 2; public static const STR_PRIVATE_ROOM_DESC:int = 686; public static const STR_TORSO_DECAL_COLOR:int = 492; public static const STR_PROFANITY_DESC_0:int = 738; public static const STR_PROFANITY_DESC_1:int = 739; public static const STR_PROFANITY_DESC_2:int = 740; public static const ACTION_HANDSHAKE = 53; static const CUSTOMINDEX_HAT:int = 26; static const CUSTOMPARTS_JACKET:int = 8; public static const NEWACTION_SMILE = 212; public static const STR_LOADING_1:int = 730; public static const STR_LOADING_2:int = 731; public static const ANIM_STUDYBEGINNING = 185; public static const ANIM_MAKEOUTEND = 113; public static const ANIM_RUBJAW = 160; public static const ACTION_CURSE = 14; public static const STR_EXIT_TEXT1:int = 64; public static const STR_EXIT_TEXT2:int = 65; public static const STR_EXIT_TEXT3:int = 66; public static const STR_TEST_ANSWER15_2:int = 164; public static const STR_TEST_ANSWER15_3:int = 165; public static const STR_GAMEPLAY_TEXT1:int = 87; public static const ANIM_HOLDSTOMACH = 96; public static const STR_GAMEPLAY_TEXT3:int = 89; public static const STR_BUDDY_REQUEST_SEND:int = 408; public static const STR_GAMEPLAY_TEXT2:int = 88; public static const ACTION_EAT_FLASK = 30; public static const ANIM_TITLE_SCREEN_UP_5_4 = 211; public static const ANIM_TITLE_SCREEN_DOWN_1_2 = 199; public static const STR_TEST_ANSWER15_1:int = 163; public static const ANIM_PLAY_JUGGLINGBALLS_BEGGINNING = 125; public static const STR_SOUND_OFF:int = 57; static const CUSTOMFLAGS_CHIN:int = (1 << 0); public static const ACTION_EAT_HAMBURGER = 23; public static const STR_PROFILE:int = 503; public static const ANIM_BLOWKISS = 8; public static const ANIM_GODSHAND_MIDDLE = 86; public static const STR_STRAIGHT:int = 662; public static const STR_TEST_FOLLOWUP:int = 108; public static const ACTION_EAT_ICECREAM = 24; public static const STR_PUNCH:int = 369; public static const STR_ATHLETE:int = 359; public static const ANIM_SHAKETOGETHER = 166; public static const STR_TUTORIAL_6_0:int = 230; public static const STR_TUTORIAL_6_1:int = 231; public static const STR_TUTORIAL_6_2:int = 232; public static const STR_TUTORIAL_6_3:int = 233; public static const STR_EMO:int = 328; public static const STR_SEX_DESC:int = 0x0200; public static const STR_REPASSWORD_0:int = 440; public static const ANIM_BELLYLAUGHLOOP = 7; public static const STR_TUTORIAL_6_4:int = 234; public static const STR_CHOSEN:int = 371; public static const STR_BUDDY_LIST:int = 174; public static const STR_REPASSWORD_1:int = 441; public static const STR_REJECT:int = 561; public static const ACTION_DANCE_F = 15; public static const STR_INVITE_SENT_1:int = 668; public static const STR_YAWN:int = 618; public static const STR_PUBLIC_ROOM_DESC:int = 687; public static const ACTION_DANCE_M = 16; public static const ACTION_TITLE_4_5 = 178; public static const STR_NET_CREATE_0:int = 436; static const SIZE_CUSTOM_JACKET:int = 6; public static const ACTION_TITLE_4_3 = 182; public static const ANIM_EAT_COFFEE = 51; public static const ACTION_GOLFCLAP = 138; public static const STR_ROCKSTAR:int = 343; public static const ACTION_EAT_DEVILFOOD = 32; public static const NEWACTION_JAZZ = 199; public static const STR_STATS_FIGHTS:int = 426; public static const ANIM_DAPS_END = 33; public static const STR_INVITE_SENT_2:int = 669; public static const ACTION_EXPERIMENT = 38; public static const STR_TEST_ANSWER9_1:int = 145; static const CUSTOMPARTS_TORSOCOLOR:int = 17; public static const STR_TEST_ANSWER9_3:int = 147; public static const ANIM_FIGHTINGPOSE_BEGGINNING = 66; public static const STR_STATS_GAMES:int = 427; static const ITEMLOC_HAIR:int = 0x0400; public static const STR_NET_CREATE_2:int = 438; public static const STR_NET_CREATE_3:int = 439; public static const STR_KISS:int = 547; public static const ANIM_DANCE_MALE_LOOP = 31; public static const STR_POST_DELETE_1:int = 645; public static const STR_TEST_ANSWER9_2:int = 146; public static const ANIM_HIGHFIVE = 89; public static const ACTION_HIGHFIVE_CONCEDE = 168; public static const ANIM_TICKLE = 193; public static const ACTION_PUNCH = 113; public static const STR_SEARCH_DESC:int = 562; public static const STR_FOOD:int = 176; public static const STR_POST_DELETE_2:int = 646; public static const ACTION_HUG_START = 66; public static const STR_NET_CREATE_1:int = 437; public static const STR_MSG_DETAIL:int = 781; public static const STR_ACCOUNT:int = 170; public static const STR_NETWORK:int = 179; public static const STR_PREFS_APPEARANCE:int = 259; public static const ANIM_KISS_BEGINNING = 107; static const ITEMLOC_TORSODECAL:int = 0x0C00; public static const STR_OPTIONS_MENU:int = 376; public static const STR_VERSION_MISMATCH:int = 773; public static const ANIM_ROCKPAPERSCISSORS_LOOP = 154; public static const STR_GIFT_CRYSTALBALL:int = 455; public static const STR_REL_SINGLE:int = 660; public static const STR_AGE:int = 511; public static const STR_BUDDIES:int = 718; public static const ACTION_PLAY_COIN = 79; static const CUSTOMINDEX_NECK:int = 44; public static const STR_BULLY:int = 324; public static const STR_MORALITY:int = 389; public static const STR_TUTORIAL:int = 808; public static const STR_GIFT_CHOCOLATES:int = 458; public static const STR_SOUND_ON_1:int = 58; public static const STR_JOCK:int = 335; public static const STR_FOLLOWUP_ANSWER_1:int = 113; public static const STR_FOLLOWUP_ANSWER_2:int = 114; public static const STR_FOLLOWUP_ANSWER_3:int = 115; public static const STR_FOLLOWUP_ANSWER_4:int = 116; public static const STR_FOLLOWUP_ANSWER_5:int = 117; public static const ANIM_PRAISED = 142; public static const STR_FOLLOWUP_ANSWER_7:int = 119; public static const STR_FOLLOWUP_ANSWER_8:int = 120; public static const STR_FOLLOWUP_ANSWER_9:int = 121; static const SIZE_CUSTOM_TORSOCOLOR:int = 7; public static const STR_FOLLOWUP_ANSWER_6:int = 118; public static const STR_PAC_ISLANDER:int = 656; public static const ACTION_TICKLED = 129; public static const ACTION_PLAY_MIRROR_F = 84; public static const STR_NO_ACCOUNT_TO_DEL:int = 783; public static const ACTION_PLAY_MIRROR_M = 83; public static const STR_TEST_ANSWER11_2:int = 152; public static const STR_TEST_ANSWER11_3:int = 153; public static const ACTION_PLAY_WEIGHTS = 88; public static const ACTION_SMACKED_HEAD = 100; public static const STR_SEARCH_AGE_MAX:int = 673; public static const ANIM_TITLE_SCREEN_UP_1_0 = 207; public static const ACTION_EAT_CHINESE = 25; public static const STR_TEST_ANSWER11_1:int = 151; public static const ANIM_IDOL_EYEBLINK = 105; public static const ANIM_MIRRORFLIRTMALE = 117; public static const ANIM_ROCKPAPERSCISSORS_WINNERFINAL = 159; public static const ACTION_GIFT_ROCK = 52; public static const ACTION_POSE_M = 135; public static const STR_PROFANITY_DENY:int = 736; public static const STR_ALL:int = 666; public static const ACTION_ESP_WIN = 143; public static const STR_NETWORK_NONE:int = 395; public static const NEWACTION_KISSCHEEK = 224; static const ITEMLOC_HAT:int = 0x0500; public static const ANIM_ROCKPAPERSCISSORS_LOSER = 155; public static const STR_TUTORIAL_2_0:int = 218; public static const STR_TUTORIAL_2_1:int = 219; public static const STR_TUTORIAL_2_2:int = 220; public static const STR_NETWORK_OFF:int = 391; public static const STR_HELP_ACCOUNT:int = 188; public static const STR_HELP_NETWORK:int = 204; public static const NUM_STRINGS:int = 809; public static const ANIM_EAT_DONUT = 53; public static const ACTION_TITLE_0_1 = 174; public static const STR_SPANK:int = 367; public static const STR_DAGGERS:int = 614; public static const STR_INPUT_ABC1:int = 643; public static const STR_ANY:int = 564; public static const ANIM_ROCKOUTLOOP = 152; public static const NEWACTION_FONDLE = 220; static const CUSTOMFLAGS_ALWAYSHAT:int = (1 << 1); public static const ACTION_PLAY_DARTGUN = 80; public static const STR_TEST_ANSWER5_1:int = 133; public static const STR_TEST_ANSWER5_2:int = 134; public static const STR_TEST_ANSWER5_3:int = 135; public static const STR_POLICEMAN:int = 340; public static const ANIM_NO = 118; public static const STR_THREATEN:int = 543; public static const STR_LEVELUP_CAREER:int = 466; public static const STR_BUDDY_BEST_FRIEND:int = 692; public static const STR_POST_MESSAGE:int = 634; public static const ACTION_TALKTOHAND = 116; public static const ANIM_BELLYLAUGHEND = 6; public static const STR_ACCOUNT_EXISTS:int = 76; public static const STR_INBOX:int = 572; public static const STR_TUTORIAL_9_2a:int = 244; public static const STR_RESTORING_ACCOUNT:int = 696; public static const ANIM_ROCKPAPERSCISSORS_BEGINNING = 153; public static const STR_NETWORK_PUBLIC_DESC:int = 397; public static const STR_NETWORK_SETTING:int = 396; public static const STR_LEVELUP_PROFESSIONAL:int = 465; public static const STR_HELP_INBOX:int = 197; public static const ACTION_BLOWKISS = 7; public static const STR_BOOKS:int = 581; public static const ANIM_BELCH = 4; public static const ACTION_SHY_KISS = 128; public static const ANIM_HIGHFIVEREJECTEDLOOP = 91; public static const STR_COLLECTIBLES:int = 417; public static const STR_PREFS:int = 381; public static const STR_SELECT:int = 46; public static const STR_GAMES:int = 582; public static const STR_BUDDY_SWEETHEART:int = 694; static const CUSTOMFLAGS_ALWAYSFACIALHAIR:int = (1 << 2); public static const STR_BODY_TYPE:int = 307; public static const STR_HELP_GAMESAVING:int = 195; public static const STR_ACCEPT:int = 560; public static const STR_JSTATUS_BUSY:int = 640; public static const STR_ART_STUDENT:int = 352; public static const STR_FIREMAN:int = 330; public static const ANIM_COINLOOP = 19; public static const NEWACTION_LONDONER = 198; public static const STR_SEARCH_AGE_MIN:int = 672; public static const ANIM_TITLE_SCREEN_SELECT = 205; public static const STR_FIRST_UNLOCK:int = 254; public static const STR_TOY_BALLS:int = 276; public static const STR_VIEW_PIC:int = 644; public static const ACTION_HUG = 65; public static const STR_BACK_TO_CANCEL:int = 670; public static const STR_HEAD_DECAL:int = 483; public static const ANIM_EAT_FLASK = 54; public static const STR_ADD_LINE:int = 580; public static const STR_PROFANITY_ON:int = 741; public static const STR_FOOD_POTION:int = 274; public static const STR_CLAPSHOULDER:int = 606; public static const STR_NOD:int = 527; public static const ACTION_GIFT_MAGAZINE = 44; public static const ICEBREAKER_ACTION1 = 500; public static const ANIM_HIGHFIVEREJECTED_BEGINNING = 92; public static const NEWACTION_PLAYHAIR = 213; public static const ICEBREAKER_ACTION2 = 501; public static const ICEBREAKER_ACTION3 = 502; public static const ACTION_SCOLDED = 105; public static const ACTION_PLAY_VOODOO = 87; public static const ACTION_RPS_WINNER = 140; public static const STR_PREFS_ARCH:int = 0xFF; public static const ACTION_WALK_NORMAL = 122; public static const STR_TEACHER:int = 363; public static const STR_SEARCH:int = 517; public static const STR_LOCATION_DESC_0:int = 506; public static const STR_LOCATION_DESC_1:int = 507; public static const STR_FOOD_FLASK:int = 268; public static const STR_HAIR_COLOR:int = 482; public static const STR_PERS_TEST:int = 51; public static const STR_LOCATION_DESC_2:int = 508; public static const STR_PLAYGUITAR:int = 540; public static const ANIM_ROCKPAPERSCISSORS_LOSERFINAL = 156; public static const STR_ETHNICITY:int = 647; public static const STR_CHECKWATCH:int = 613; public static const ANIM_WHISTLELOOP = 216; public static const STR_TOY_BOOK:int = 275; public static const STR_ABOUT:int = 54; public static const ACTION_FISTPOUND_START = 63; public static const STR_REQ_DL_0:int = 770; public static const STR_REQ_DL_1:int = 0x0303; public static const STR_REQ_DL_2:int = 772; public static const STR_ROOM_ACCESS_DESC:int = 682; public static const STR_PANTS_COLOR:int = 494; public static const ANIM_DEBATE_SECOND = 39; static const CUSTOMFLAGS_ALWAYSHEADDECAL:int = (1 << 3); static const CUSTOMINDEX_JACKETCOLOR:int = 107; public static const STR_PW_MISMATCH:int = 789; public static const STR_BOXER:int = 323; public static const ACTION_CHEERLEADER = 133; public static const STR_LAWYER:int = 336; public static const ANIM_GIFT_PRESENT = 82; public static const STR_UNKNOWN:int = 304; } }//package game2
Section 49
//Context (game2.Context) package game2 { import flash.events.*; import mlib2.core.*; import flash.net.*; import mlib2.utility.*; public class Context { public var mUserName:String;// = "" public var mActionListOwn:Array; public var mBoldFont:GraphicalFont; private var mStringsXML:XML; public var mJudgement:int; public var mNewEgo:Boolean; public var mTempGrowth:Array; public var mNormalFont:GraphicalFont; public var mPassword:String; public var mRetired:Boolean;// = false public var mLockedComps:Array; public var mIntroTest:Boolean;// = false public var mStats:Array; public var mImgEmotes:mlib2_Bitmap; public var mActionListTarget:Array; public var mLockedFoods:Array; public var mDW:int; public var mAnimsXML:XML; private var mStringsLoader:URLLoader; public var mDH:int; public var mReplayStats:Array; public var mLockedToys:Array; public var mBGx:Number;// = 0 public var mTempPhysicalGrowth:Array; public var mImgEmoteNums:mlib2_Bitmap; public var mLockedArchs:Array; public var mBlueFont:GraphicalFont; public var mTutorialStep:int;// = 43 public var mAnimList:Array; public var mGrayFont:GraphicalFont; public var mTempStats:Array; private var mLoadStep:int;// = 0 public var mImgCursorStrip:mlib2_Bitmap; public var mIsTutorial:Boolean;// = false public static const LIGHT_BLUE = 8758015; public static const WHITE = 0xFFFFFF; public static const NUM_TOYS = 17; public static const GAMEVIEW_VERSION = "VERS 1.0.14"; public static const STATS_GAMES_WON = 9; public static const STATS_ARGUMENTS_WON = 3; public static const DEBUG:Boolean = false; public static const CURSOR_HAND_LEFT = 1; public static const BODYCOLOR_BLUE1 = 13; public static const BODYCOLOR_BLUE2 = 14; public static const BODYCOLOR_BLUE3 = 15; public static const BODYCOLOR_BLUE4 = 16; public static const BODYCOLOR_BLUE5 = 17; public static const BODYCOLOR_BLUE6 = 18; public static const BODYCOLOR_BLUE7 = 19; public static const BODYCOLOR_BLUE8 = 20; public static const BODYCOLOR_BLUE9 = 21; public static const SKIN_COLOR0 = 0; public static const SKIN_COLOR1 = 1; public static const SKIN_COLOR2 = 2; public static const SKIN_COLOR3 = 3; public static const SKIN_COLOR4 = 4; public static const SKIN_COLOR5 = 5; public static const SKIN_COLOR6 = 6; public static const SKIN_COLOR7 = 7; public static const SKIN_COLOR8 = 8; public static const SKIN_COLOR9 = 9; public static const BLUE = 0xFF; public static const STATS_ESP_WON = 5; public static const STATS_INTERACTIONS = 2; public static const GRAY = 0x777777; public static const BODYCOLOR_ORANGE1 = 29; public static const BODYCOLOR_WHITE1 = 10; public static const BODYCOLOR_WHITE2 = 11; public static const BODYCOLOR_WHITE3 = 12; public static const BODYCOLOR_ORANGE2 = 30; public static const NUM_CURSOR_IMAGES = 16; public static const RED = 0xFF0000; public static const NUM_STATS = 10; public static const STATS_DEBATES_WON = 4; public static const YELLOW = 0xFFFF00; public static const BODYCOLOR_RED2 = 25; public static const BODYCOLOR_RED4 = 27; public static const WINDOW_MED_GRAY = 0xBFBFBF; public static const BODYCOLOR_RED3 = 26; public static const BODYCOLOR_RED5 = 28; public static const BODYCOLOR_RED1 = 24; public static const BUBBLE_CORNER_SIZE = 11; public static const STATS_FIGHTS_WON = 6; public static const BODYCOLOR_PURPLE1 = 39; public static const BODYCOLOR_PURPLE2 = 40; public static const BODYCOLOR_PURPLE3 = 41; public static const BODYCOLOR_PURPLE4 = 42; public static const BODYCOLOR_PURPLE5 = 43; public static const STATS_POINTS = 1; public static const NUM_ARCHS = 32; public static const NET_DATA_VERSION = 1015; public static const EGO_SAVE_FILE_VERSION = 1022; public static const CURSOR_HAND_RIGHT = 2; public static const CURSOR_DOT = 0; public static const BODYCOLOR_GREEN1 = 0; public static const BODYCOLOR_GREEN2 = 1; public static const BODYCOLOR_GREEN3 = 2; public static const BODYCOLOR_GREEN4 = 3; public static const BODYCOLOR_GREEN6 = 5; public static const BODYCOLOR_GREEN7 = 6; public static const BODYCOLOR_GREEN8 = 7; public static const BODYCOLOR_GREEN5 = 4; public static const GREEN = 0xFF00; public static const DEPLOY:Boolean = true; public static const STATS_EXPERIMENTS_WON = 8; public static const BODYCOLOR_OLIVE2 = 9; public static const BODYCOLOR_BROWN1 = 31; public static const BODYCOLOR_BROWN2 = 32; public static const BODYCOLOR_BROWN3 = 33; public static const BODYCOLOR_BROWN5 = 35; public static const BODYCOLOR_BROWN7 = 37; public static const BODYCOLOR_BROWN4 = 34; public static const BODYCOLOR_BROWN6 = 36; public static const BODYCOLOR_BROWN8 = 38; public static const BODYCOLOR_OLIVE1 = 8; public static const NUM_GIFTS = 9; public static const WINDOW_SHADE = 15199743; public static const BODYCOLOR_BLUE10 = 22; public static const BODYCOLOR_BLUE11 = 23; public static const NUM_SKIN_COLORS = 10; public static const WINDOW_TITLE = (1 << 1); public static const WINDOW_BLUE = 8758015; public static const BODYCOLOR_GRAY1 = 44; public static const BODYCOLOR_GRAY3 = 46; public static const BODYCOLOR_GRAY4 = 47; public static const BODYCOLOR_GRAY5 = 48; public static const BODYCOLOR_GRAY2 = 45; public static const BUBBLE_BUFFER = 5; public static const TUTORIALSTEP_DONE = 43; public static const CURSOR_HAND1 = 3; public static const CURSOR_HAND2 = 4; public static const CURSOR_HAND3 = 5; public static const CURSOR_HAND4 = 6; public static const CURSOR_HAND5 = 7; public static const CURSOR_HAND6 = 8; public static const CURSOR_HAND7 = 9; public static const CURSOR_HAND9 = 11; public static const WINDOW_CENTER = (1 << 0); public static const CURSOR_HAND8 = 10; public static const NUM_FOODS = 12; public static const STATS_LEVEL = 0; public static const WINDOW_LIGHT_GRAY = 0xDEDEDE; public static const NUM_ATTRIBUTES = 8; public static const CURSOR_HAND10 = 12; public static const CURSOR_HAND11 = 13; public static const CURSOR_HAND12 = 14; public static const CURSOR_HAND13 = 15; public static const BLACK = 0; public static const STATS_HEARTS_WON = 7; public static const WINDOW_DARK_GRAY = 0x717171; public function Context(_arg1:String=""){ var _local2:int; mBGx = 0; mUserName = ""; mTutorialStep = TUTORIALSTEP_DONE; mIsTutorial = false; mIntroTest = false; mLockedArchs = new Array(NUM_ARCHS); mLockedFoods = new Array(NUM_FOODS); mLockedToys = new Array(NUM_TOYS); mLockedComps = new Array(NUM_GIFTS); mStats = new Array(NUM_STATS); mTempStats = new Array(NUM_STATS); mReplayStats = new Array(NUM_STATS); mRetired = false; mTempGrowth = new Array(NUM_ATTRIBUTES); mTempPhysicalGrowth = new Array(3); mActionListOwn = new Array(); mActionListTarget = new Array(); mLoadStep = 0; super(); mUserName = _arg1; mImgCursorStrip = mlib2_Bitmap.createImage((Ego.RESOURCE_URL + "res/menus/cursor_strip.png"), false); mNormalFont = new GraphicalFont(this, (Ego.RESOURCE_URL + "res/menus/fonts/text_black.png"), (Ego.RESOURCE_URL + "res/menus/fonts/text_black.xml"), 0); mGrayFont = new GraphicalFont(this, (Ego.RESOURCE_URL + "res/menus/fonts/text_black.png"), (Ego.RESOURCE_URL + "res/menus/fonts/text_black.xml"), 0); mBlueFont = new GraphicalFont(this, (Ego.RESOURCE_URL + "res/menus/fonts/text_black.png"), (Ego.RESOURCE_URL + "res/menus/fonts/text_black.xml"), 0); mBoldFont = new GraphicalFont(this, (Ego.RESOURCE_URL + "res/menus/fonts/text_white_bold.png"), (Ego.RESOURCE_URL + "res/menus/fonts/text_white_bold.xml"), -1); mGrayFont.changeColor(65536, GRAY); mBlueFont.changeColor(65536, LIGHT_BLUE); _local2 = 0; while (_local2 < NUM_ATTRIBUTES) { mTempGrowth[_local2] = 0; _local2++; }; _local2 = 0; while (_local2 < 3) { mTempPhysicalGrowth[_local2] = 0; _local2++; }; loadActionLists(); resetTempStats(); } public function getString(_arg1:int):String{ return (ResData.STRINGS.string[_arg1].@value); } public function getSkinColorIndex(_arg1:int, _arg2:int):int{ switch (_arg1){ case -1: default: switch (_arg2){ case 0: return (11206223); case 1: return (8322873); case 2: return (5963273); case 3: return (0x1DF700); case 4: return (0x46C800); case 6: return (8257080); case 7: return (5897480); case 9: return (0x45C700); }; break; case SKIN_COLOR0: switch (_arg2){ case 0: return (15918295); case 1: return (15062215); case 2: return (14074293); case 3: return (13152420); case 4: return (12164755); }; break; case SKIN_COLOR1: switch (_arg2){ case 0: return (14929824); case 1: return (13350012); case 2: return (11771235); case 3: return (10455120); case 4: return (8744757); }; break; case SKIN_COLOR2: switch (_arg2){ case 0: return (14729628); case 1: return (13807757); case 2: return (12885119); case 3: return (11962479); case 4: return (11039581); }; break; case SKIN_COLOR3: switch (_arg2){ case 0: return (11833427); case 1: return (10647358); case 2: return (9463091); case 3: return (8018477); case 4: return (8016935); }; break; case SKIN_COLOR4: switch (_arg2){ case 0: return (10510909); case 1: return (8409377); case 2: return (6307585); case 3: return (0x633F00); case 4: return (0x4E3200); }; break; case SKIN_COLOR5: switch (_arg2){ case 0: return (6435858); case 1: return (5777415); case 2: return (4200193); case 3: return (2689025); case 4: return (2755585); }; break; case SKIN_COLOR6: switch (_arg2){ case 0: return (14940146); case 1: return (14216949); case 2: return (12705768); case 3: return (10602193); case 4: return (8694968); }; break; case SKIN_COLOR7: switch (_arg2){ case 0: return (16375037); case 1: return (16175356); case 2: return (15055586); case 3: return (14395107); case 4: return (13733580); }; break; case SKIN_COLOR8: switch (_arg2){ case 0: return (13709101); case 1: return (12460833); case 2: return (10162960); case 3: return (9047307); case 4: return (7799811); }; break; case SKIN_COLOR9: switch (_arg2){ case 0: return (13102684); case 1: return (11852882); case 2: return (11326285); case 3: return (8960050); case 4: return (5350664); }; break; }; return (0); } public function resetTempStats(){ var _local1:int; _local1 = 1; while (_local1 < NUM_STATS) { mTempStats[_local1] = 0; _local1++; }; _local1 = 0; while (_local1 < 3) { mTempGrowth[_local1] = 0; _local1++; }; } public function changeSkinColor(_arg1:mlib2_Bitmap, _arg2:int, _arg3:int){ _arg1.replacePaletteColor(getSkinColorIndex(_arg2, 0), getSkinColorIndex(_arg3, 0)); _arg1.replacePaletteColor(getSkinColorIndex(_arg2, 1), getSkinColorIndex(_arg3, 1)); _arg1.replacePaletteColor(getSkinColorIndex(_arg2, 2), getSkinColorIndex(_arg3, 2)); _arg1.replacePaletteColor(getSkinColorIndex(_arg2, 3), getSkinColorIndex(_arg3, 3)); _arg1.replacePaletteColor(getSkinColorIndex(_arg2, 4), getSkinColorIndex(_arg3, 4)); _arg1.replacePaletteColor(getSkinColorIndex(_arg2, 6), getSkinColorIndex(_arg3, 1)); _arg1.replacePaletteColor(getSkinColorIndex(_arg2, 7), getSkinColorIndex(_arg3, 2)); _arg1.replacePaletteColor(getSkinColorIndex(_arg2, 9), getSkinColorIndex(_arg3, 4)); } public function changeHairColor(_arg1:mlib2_Bitmap, _arg2:int, _arg3:int){ _arg1.replacePaletteColor(getHairColorIndex(_arg2, 0), getHairColorIndex(_arg3, 0)); _arg1.replacePaletteColor(getHairColorIndex(_arg2, 1), getHairColorIndex(_arg3, 1)); _arg1.replacePaletteColor(getHairColorIndex(_arg2, 2), getHairColorIndex(_arg3, 2)); _arg1.replacePaletteColor(getHairColorIndex(_arg2, 3), getHairColorIndex(_arg3, 3)); } public function resetStats(){ var _local1:int; _local1 = 0; while (_local1 < NUM_STATS) { mStats[_local1] = 0; _local1++; }; } public function getHairColorIndex(_arg1:int, _arg2:int):int{ switch (_arg1){ case -1: default: switch (_arg2){ case 0: return (0xFF0000); case 1: return (0xC80000); case 2: return (0xA00000); case 3: return (0x8C0000); }; break; case 0: switch (_arg2){ case 0: return (16577489); case 1: return (15719831); case 2: return (14207377); case 3: return (11243382); }; break; case 1: switch (_arg2){ case 0: return (15786666); case 1: return (15783273); case 2: return (14073438); case 3: return (11244870); }; break; case 2: switch (_arg2){ case 0: return (10913109); case 1: return (7955525); case 2: return (7034941); case 3: return (5982770); }; break; case 3: switch (_arg2){ case 0: return (14926223); case 1: return (14391112); case 2: return (12546877); case 3: return (8405792); }; break; case 4: switch (_arg2){ case 0: return (14258226); case 1: return (13592351); case 2: return (12731165); case 3: return (11214644); }; break; case 5: switch (_arg2){ case 0: return (5391935); case 1: return (3351588); case 2: return (2957601); case 3: return (0); }; break; case 6: switch (_arg2){ case 0: return (6123674); case 1: return (2966388); case 2: return (2636645); case 3: return (0); }; break; case 7: switch (_arg2){ case 0: return (16746491); case 1: return (13003203); case 2: return (5646694); case 3: return (0); }; break; }; return (0); } public function drawCursor(_arg1:mlib2_GL, _arg2:int, _arg3:int, _arg4:int, _arg5:int){ if (_arg2 == CURSOR_DOT){ _arg3 = (_arg3 + 19); }; if ((_arg5 & mlib2_GL.BOTTOM) > 0){ _arg4 = (_arg4 - 22); }; if ((_arg5 & mlib2_GL.VCENTER) > 0){ _arg4 = (_arg4 - 11); }; if ((_arg5 & mlib2_GL.HCENTER) > 0){ _arg3 = (_arg3 - 11); }; if ((_arg5 & mlib2_GL.RIGHT) > 0){ _arg3 = (_arg3 - 23); }; _arg5 = (mlib2_GL.TOP | mlib2_GL.LEFT); _arg1.setClip(_arg3, _arg4, 23, 22); _arg1.drawImage(mImgCursorStrip, (_arg3 - (23 * _arg2)), _arg4, _arg5); _arg1.resetClip(); } public function changeBodyColor(_arg1:mlib2_Bitmap, _arg2:int, _arg3:int){ _arg1.replacePaletteColor(getBodyColorIndex(_arg2, 0), getBodyColorIndex(_arg3, 0)); _arg1.replacePaletteColor(getBodyColorIndex(_arg2, 1), getBodyColorIndex(_arg3, 1)); _arg1.replacePaletteColor(getBodyColorIndex(_arg2, 2), getBodyColorIndex(_arg3, 2)); _arg1.replacePaletteColor(getBodyColorIndex(_arg2, 3), getBodyColorIndex(_arg3, 3)); _arg1.replacePaletteColor(getBodyColorIndex(_arg2, 4), getBodyColorIndex(_arg3, 0)); _arg1.replacePaletteColor(getBodyColorIndex(_arg2, 5), getBodyColorIndex(_arg3, 1)); _arg1.replacePaletteColor(getBodyColorIndex(_arg2, 6), getBodyColorIndex(_arg3, 2)); _arg1.replacePaletteColor(getBodyColorIndex(_arg2, 7), getBodyColorIndex(_arg3, 3)); } private function loadActionLists(){ var _local1:URLLoader; if (mLoadStep == 0){ _local1 = new URLLoader(new URLRequest((Ego.RESOURCE_URL + "/res/data/actionListOwn.txt"))); _local1.addEventListener(Event.COMPLETE, onCompleteActionData); } else { if (mLoadStep == 1){ _local1 = new URLLoader(new URLRequest((Ego.RESOURCE_URL + "/res/data/actionListTarget.txt"))); _local1.addEventListener(Event.COMPLETE, onCompleteActionData); }; }; } public function _drawCursor(_arg1:mlib2_GL, _arg2:int, _arg3:int, _arg4:int){ drawCursor(_arg1, _arg2, _arg3, _arg4, (mlib2_GL.TOP | mlib2_GL.LEFT)); } public function getRandom():int{ return (int((Math.random() * 100))); } private function onCompleteActionData(_arg1:Event){ var _local2:Array; var _local3:String; var _local4:int; var _local5:int; var _local6:String; var _local7:Array; _local6 = _arg1.target.data; _local7 = _local6.split("\n"); _local4 = 0; while (_local4 < _local7.length) { _local3 = _local7[_local4]; _local2 = _local3.split(","); if (mLoadStep == 0){ mActionListOwn[_local2[0]] = new Array(); _local5 = 1; while (_local5 < _local2.length) { mActionListOwn[_local2[0]].push(int(_local2[_local5])); _local5++; }; } else { if (mLoadStep == 1){ mActionListTarget[_local2[0]] = new Array(); _local5 = 1; while (_local5 < _local2.length) { mActionListTarget[_local2[0]].push(int(_local2[_local5])); _local5++; }; }; }; _local4++; }; mLoadStep++; loadActionLists(); } public function getBodyColorIndex(_arg1:int, _arg2:int){ switch (_arg1){ case -1: default: switch (_arg2){ case 0: return (0xFFFF); case 1: return (0xC8C8); case 2: return (0xA0A0); case 3: return (0x8C8C); case 4: return (0xFEFE); case 5: return (0xC7C7); case 6: return (0x9F9F); case 7: return (0x8B8B); }; break; case BODYCOLOR_GREEN1: switch (_arg2){ case 0: return (9300619); case 1: return (6536033); case 2: return (4626500); case 3: return (4155454); }; break; case BODYCOLOR_GREEN2: switch (_arg2){ case 0: return (10738850); case 1: return (6865511); case 2: return (89894227); case 3: return (3168569); }; break; case BODYCOLOR_GREEN3: switch (_arg2){ case 0: return (7909747); case 1: return (6720854); case 2: return (4546369); case 3: return (3167546); }; break; case BODYCOLOR_GREEN4: switch (_arg2){ case 0: return (32065); case 1: return (24113); case 2: return (17697); case 3: return (402950); }; break; case BODYCOLOR_GREEN5: switch (_arg2){ case 0: return (6457467); case 1: return (3887690); case 2: return (3097918); case 3: return (1579046); }; break; case BODYCOLOR_GREEN6: switch (_arg2){ case 0: return (7768950); case 1: return (7373168); case 2: return (6846312); case 3: return (6188126); }; break; case BODYCOLOR_GREEN7: switch (_arg2){ case 0: return (8356721); case 1: return (6843232); case 2: return (6053462); case 3: return (5001029); }; break; case BODYCOLOR_GREEN8: switch (_arg2){ case 0: return (8619390); case 1: return (6119001); case 2: return (4148546); case 3: return (1646106); }; break; case BODYCOLOR_OLIVE1: switch (_arg2){ case 0: return (10462049); case 1: return (7830084); case 2: return (0x424300); case 3: return (0x303000); }; break; case BODYCOLOR_OLIVE2: switch (_arg2){ case 0: return (10790517); case 1: return (8619352); case 2: return (7566664); case 3: return (4868909); }; break; case BODYCOLOR_WHITE1: switch (_arg2){ case 0: return (0xFFFFFF); case 1: return (13029861); case 2: return (12108226); case 3: return (6783414); }; break; case BODYCOLOR_WHITE2: switch (_arg2){ case 0: return (14936040); case 1: return (13227223); case 2: return (11518663); case 3: return (8494758); }; break; case BODYCOLOR_WHITE3: switch (_arg2){ case 0: return (16381403); case 1: return (14933694); case 2: return (13025961); case 3: return (12104597); }; break; case BODYCOLOR_BLUE1: switch (_arg2){ case 0: return (10348262); case 1: return (6800066); case 2: return (5479853); case 3: return (3168089); }; break; case BODYCOLOR_BLUE2: switch (_arg2){ case 0: return (8364233); case 1: return (6521769); case 2: return (6059153); case 3: return (4281193); }; break; case BODYCOLOR_BLUE3: switch (_arg2){ case 0: return (7632095); case 1: return (5592521); case 2: return (3427999); case 3: return (2506363); }; break; case BODYCOLOR_BLUE4: switch (_arg2){ case 0: return (7438306); case 1: return (5855654); case 2: return (4278111); case 3: return (3160149); }; break; case BODYCOLOR_BLUE5: switch (_arg2){ case 0: return (8163280); case 1: return (5992373); case 2: return (3690659); case 3: return (2438763); }; break; case BODYCOLOR_BLUE6: switch (_arg2){ case 0: return (6128559); case 1: return (4153994); case 2: return (3165808); case 3: return (3554880); }; break; case BODYCOLOR_BLUE7: switch (_arg2){ case 0: return (6060420); case 1: return (5269617); case 2: return (3689812); case 3: return (1579046); }; break; case BODYCOLOR_BLUE8: switch (_arg2){ case 0: return (4616071); case 1: return (2969185); case 2: return (14942); case 3: return (6956); }; break; case BODYCOLOR_BLUE9: switch (_arg2){ case 0: return (6457467); case 1: return (3887690); case 2: return (3097918); case 3: return (1579046); }; break; case BODYCOLOR_BLUE10: switch (_arg2){ case 0: return (5068447); case 1: return (3751791); case 2: return (3093593); case 3: return (2697780); }; break; case BODYCOLOR_BLUE11: switch (_arg2){ case 0: return (5592438); case 1: return (4079201); case 2: return (3487059); case 3: return (1579046); }; break; case BODYCOLOR_RED1: switch (_arg2){ case 0: return (13911365); case 1: return (12137010); case 2: return (9841708); case 3: return (8070694); }; break; case BODYCOLOR_RED2: switch (_arg2){ case 0: return (14102833); case 1: return (11807274); case 2: return (7083028); case 3: return (4066059); }; break; case BODYCOLOR_RED3: switch (_arg2){ case 0: return (13260888); case 1: return (8270386); case 2: return (6237742); case 3: return (2496536); }; break; case BODYCOLOR_RED4: switch (_arg2){ case 0: return (9659497); case 1: return (7423305); case 2: return (6242628); case 3: return (5582899); }; break; case BODYCOLOR_RED5: switch (_arg2){ case 0: return (13714308); case 1: return (10693217); case 2: return (9381205); case 3: return (7019584); }; break; case BODYCOLOR_ORANGE1: switch (_arg2){ case 0: return (15901341); case 1: return (14055538); case 2: return (12875337); case 3: return (8211511); }; break; case BODYCOLOR_ORANGE2: switch (_arg2){ case 0: return (16769951); case 1: return (16502366); case 2: return (16755243); case 3: return (14442534); }; break; case BODYCOLOR_BROWN1: switch (_arg2){ case 0: return (9991478); case 1: return (7756323); case 2: return (5849621); case 3: return (3878423); }; break; case BODYCOLOR_BROWN2: switch (_arg2){ case 0: return (9731395); case 1: return (7692072); case 2: return (6507291); case 3: return (4011277); }; break; case BODYCOLOR_BROWN3: switch (_arg2){ case 0: return (4011277); case 1: return (7101242); case 2: return (5852470); case 3: return (4799781); }; break; case BODYCOLOR_BROWN4: switch (_arg2){ case 0: return (7563840); case 1: return (5524776); case 2: return (4011277); case 3: return (3024645); }; break; case BODYCOLOR_BROWN5: switch (_arg2){ case 0: return (8871245); case 1: return (6175276); case 2: return (5059117); case 3: return (4005133); }; break; case BODYCOLOR_BROWN6: switch (_arg2){ case 0: return (10056557); case 1: return (8215382); case 2: return (6046528); case 3: return (0); }; break; case BODYCOLOR_BROWN7: switch (_arg2){ case 0: return (9602408); case 1: return (7432016); case 2: return (5523000); case 3: return (1579046); }; break; case BODYCOLOR_BROWN8: switch (_arg2){ case 0: return (11576709); case 1: return (8354152); case 2: return (5523000); case 3: return (5001029); }; break; case BODYCOLOR_PURPLE1: switch (_arg2){ case 0: return (14992868); case 1: return (13741521); case 2: return (12878777); case 3: return (4068165); }; break; case BODYCOLOR_PURPLE2: switch (_arg2){ case 0: return (14721760); case 1: return (14126551); case 2: return (13596879); case 3: return (10702996); }; break; case BODYCOLOR_PURPLE3: switch (_arg2){ case 0: return (13787619); case 1: return (11487167); case 2: return (9189785); case 3: return (4068165); }; break; case BODYCOLOR_PURPLE4: switch (_arg2){ case 0: return (11890649); case 1: return (9328555); case 2: return (7616915); case 3: return (6302843); }; break; case BODYCOLOR_PURPLE5: switch (_arg2){ case 0: return (6302843); case 1: return (3945062); case 2: return (3551309); case 3: return (2036810); }; break; case BODYCOLOR_GRAY1: switch (_arg2){ case 0: return (0xE0E0E0); case 1: return (0xC2C2C2); case 2: return (0xADADAD); case 3: return (0x595959); }; break; case BODYCOLOR_GRAY2: switch (_arg2){ case 0: return (9407885); case 1: return (0x717171); case 2: return (0x626262); case 3: return (0x5A5A5A); }; break; case BODYCOLOR_GRAY3: switch (_arg2){ case 0: return (9277842); case 1: return (6843501); case 2: return (4870740); case 3: return (1579046); }; break; case BODYCOLOR_GRAY4: switch (_arg2){ case 0: return (7631474); case 1: return (0x3C3C3C); case 2: return (3289653); case 3: return (1579046); }; break; case BODYCOLOR_GRAY5: switch (_arg2){ case 0: return (6250338); case 1: return (0x404040); case 2: return (3289653); case 3: return (1579046); }; break; }; } public function getInterestString(_arg1:Boolean, _arg2:String, _arg3:int):String{ var _local4:String; _local4 = ""; if (_arg1){ if (mActionListOwn[_arg2] == null){ trace("NO COMMAND IN OWN ACTION LIST"); return ("0:0:0"); }; _local4 = (_local4 + mActionListOwn[_arg2][_arg3]); _local4 = (_local4 + (":" + mActionListOwn[_arg2][(_arg3 + 4)])); _local4 = (_local4 + (":" + mActionListOwn[_arg2][(_arg3 + 8)])); } else { if (mActionListTarget[_arg2] == null){ trace(("NO COMMAND IN TARGET ACTION LIST " + _arg2)); return ("0:0:0"); }; _local4 = (_local4 + mActionListTarget[_arg2][_arg3]); _local4 = (_local4 + (":" + mActionListTarget[_arg2][(_arg3 + 4)])); _local4 = (_local4 + (":" + mActionListTarget[_arg2][(_arg3 + 8)])); }; return (_local4); } public function getCommandText(_arg1:String):String{ switch (_arg1){ case 0: break; }; return ("REPLY"); } } }//package game2
Section 50
//Curve (game2.Curve) package game2 { import game2.*; class Curve { public var mFrame:int; public var mContext:Context; public var mCurImage:int; public var mLastFrame:int; public var mX:Number; public var mY:Number; public var mShow:Boolean; public var mAnimTime:int; public var mP0y:int; public var mP3x:int; public var mFlags:int; public var mScaleX:Number; public var mScaleY:Number; public var mP1x:int; public var mP1y:int; public var mP0x:int; public var mPX:int; public var mBaseX:int; public var mBaseY:int; public var mNewCurve:Boolean; public var mPY:int; public var mYOff:int; public var mType:int; public var mP2x:int; public var mP2y:int; public var mFaceRight:Boolean; public var mWidth:int; public var mAnimList:XMLList; public var mLoopingCurve:Boolean; public var mNumFrames:int; public var mRender:Boolean; public var mXOff:int; public var mP3y:int; public var mSortPosition:int; var xPos:Array; public var mParent:Ego; public var mHeight:int; var yPos:Array; public var mStartFrame:int; public static const FLAG_SORT:int = (FLAG_SORT_FRONT | FLAG_SORT_BACK); public static const FLAG_GETBACKHAND2:int = (6 << 8); public static const FLAG_GETNONE:int = 0; public static const GROUND_Y:int = 205; public static const MOUTH:int = 5; public static const BODY:int = 2; public static const ANYFLAG:int = ((((FLAG_GETMASK | FLAG_ATTACH) | FLAG_NOSHOW) | FLAG_SORT) | FLAG_TRIGGER); public static const FLAG_GETBACKHAND:int = (2 << 8); public static const MISC1:int = 8; public static const MISC2:int = 9; public static const MISC3:int = 10; public static const MISC4:int = 11; public static const MISC5:int = 12; public static const MISC6:int = 13; public static const FLAG_TRIGGER:int = (1 << 15); public static const FLAG_GETBODY2:int = (4 << 8); public static const FLAG_GETHEAD2:int = (3 << 8); public static const FLAG_NON_LOOPING:int = (1 << 10); public static const BACKFOOT:int = 1; public static const BACKHAND:int = 0; public static const FLAG_SORT_FRONT:int = (1 << 13); public static const FLAG_SORT_BACK:int = (1 << 14); public static const NUM_CURVES:int = 14; public static const FLAG_GETMASK:int = (7 << 8); public static const HEAD:int = 3; public static const EYES:int = 4; public static const FLAG_GETFRONTHAND2:int = (5 << 8); public static const FLAG_NOSHOW:int = (1 << 12); public static const FLAG_GETFRONTHAND:int = (1 << 8); public static const FRONTHAND:int = 7; public static const FRONTFOOT:int = 6; public static const FLAG_ATTACH:int = (1 << 11); function Curve(_arg1:Context, _arg2:Ego, _arg3:int){ xPos = new Array(4); yPos = new Array(4); super(); mParent = _arg2; mContext = _arg1; mType = _arg3; mX = 0; mY = 0; mWidth = 0; mHeight = 0; mScaleX = 1; mScaleY = 1; mFaceRight = _arg2.mFacingRight; setPoints(0, 0, 0, 0, 0, 0, 0, 0); mNumFrames = 0; } public function setFrame(_arg1:int):int{ var _local2:int; var _local3:int; _local2 = 0; mLastFrame = mFrame; mFrame = mStartFrame; _local3 = mAnimList.frames.frame[mFrame].animTime; while (_arg1 > _local3) { _arg1 = (_arg1 - _local3); _local2++; if (_local2 >= mNumFrames){ _local2 = (mNumFrames - 1); _arg1 = _local3; break; }; mFrame = ((_local2 + mStartFrame) % mNumFrames); _local3 = mAnimList.frames.frame[mFrame].animTime; }; if (((!((mFrame == mLastFrame))) || (mNewCurve))){ mNewCurve = false; mSortPosition = sortPosition(); if (int((mAnimList.frames.frame[mFrame].imageNum & FLAG_TRIGGER)) > 0){ mParent.triggerAction(); }; }; return (_arg1); } public function round(_arg1:int):int{ return (((_arg1 >> 8) + (((_arg1 & 0xFF) > 128)) ? 1 : 0)); } public function getTotalTime():int{ var _local1:int; var _local2:int; var _local3:int; if (mLoopingCurve){ _local1 = mNumFrames; } else { _local1 = (mNumFrames - 1); }; _local2 = 0; _local3 = 0; while (_local3 < _local1) { _local2 = (_local2 + int(mAnimList.frames.frame[_local3].animTime)); _local3++; }; return (_local2); } public function computeSplinePosition(_arg1:int){ var _local2:int; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; _local6 = ((_arg1 * _arg1) >> 8); _local7 = ((_arg1 * _local6) >> 8); _local2 = ((mP1x << 1) << 8); _local3 = ((mP2x - mP0x) * _arg1); _local4 = (((((mP0x << 1) - (mP1x * 5)) + (mP2x << 2)) - mP3x) * _local6); _local5 = (((((mP1x * 3) - mP0x) - (mP2x * 3)) + mP3x) * _local7); mPX = ((((_local2 + _local3) + _local4) + _local5) >> 1); _local2 = ((mP1y << 1) << 8); _local3 = ((mP2y - mP0y) * _arg1); _local4 = (((((mP0y << 1) - (mP1y * 5)) + (mP2y << 2)) - mP3y) * _local6); _local5 = (((((mP1y * 3) - mP0y) - (mP2y * 3)) + mP3y) * _local7); mPY = ((((_local2 + _local3) + _local4) + _local5) >> 1); } public function computePosition(_arg1:int){ var _local2:Curve; var _local3:int; var _local4:int; var _local5:int; _local5 = 0; while (_local5 < 4) { _local3 = ((mFrame + _local5) - 1); if (mLoopingCurve){ _local3 = ((_local3 + mNumFrames) % mNumFrames); } else { if (_local3 < 0){ _local3 = 0; } else { if (_local3 >= mNumFrames){ _local3 = (mNumFrames - 1); }; }; }; _local4 = (int(mAnimList.frames.frame[_local3].imageNum) & FLAG_GETMASK); if (_local4 > 0){ if (_local4 == FLAG_GETFRONTHAND){ _local2 = mParent.mFrontHand; } else { if (_local4 == FLAG_GETBACKHAND){ _local2 = mParent.mBackHand; } else { if ((((_local4 == FLAG_GETHEAD2)) && (!((mParent.mOtherEgo == null))))){ _local2 = mParent.mOtherEgo.mHead; } else { if ((((_local4 == FLAG_GETBODY2)) && (!((mParent.mOtherEgo == null))))){ _local2 = mParent.mOtherEgo.mTorso; } else { if ((((_local4 == FLAG_GETFRONTHAND2)) && (!((mParent.mOtherEgo == null))))){ _local2 = mParent.mOtherEgo.mFrontHand; } else { if ((((_local4 == FLAG_GETBACKHAND2)) && (!((mParent.mOtherEgo == null))))){ _local2 = mParent.mOtherEgo.mBackHand; } else { _local2 = null; }; }; }; }; }; }; }; if (_local2 != null){ xPos[_local5] = (_local2.mX - mParent.mX); yPos[_local5] = (_local2.mY - mParent.mY); if (!mParent.mFacingRight){ xPos[_local5] = -(xPos[_local5]); }; xPos[_local5] = (xPos[_local5] - mContext.mBGx); } else { xPos[_local5] = ((mAnimList.frames.frame[_local3].x * mScaleX) + mBaseX); yPos[_local5] = ((mAnimList.frames.frame[_local3].y * mScaleY) + mBaseY); }; _local5++; }; setPoints(xPos[0], yPos[0], xPos[1], yPos[1], xPos[2], yPos[2], xPos[3], yPos[3]); if (int(mAnimList.frames.frame[mFrame].animTime) == 0){ computeSplinePosition(1); } else { computeSplinePosition(((_arg1 << 8) / int(mAnimList.frames.frame[mFrame].animTime))); }; } public function changeAnimParameters(){ mNumFrames = (mAnimList.numFrames & 0xFF); if (mNumFrames == 0){ return; }; mXOff = mAnimList.xOff; mYOff = mAnimList.yOff; mBaseX = (mAnimList.xOff * mScaleX); mBaseY = (mAnimList.yOff * mScaleY); mFlags = (mAnimList.numFrames & 0xFF00); if ((mFlags & FLAG_NON_LOOPING) > 0){ mLoopingCurve = false; } else { mLoopingCurve = true; }; mNewCurve = true; mFlags = (mFlags & ~(FLAG_NON_LOOPING)); } public function blend(_arg1:Curve){ mX = (mX + ((_arg1.mX - _arg1.mBaseX) - mParent.mX)); mY = (mY + ((_arg1.mY - _arg1.mBaseY) - mParent.mY)); if ((((((mType == FRONTFOOT)) || ((mType == BACKFOOT)))) && ((mY > mParent.mGroundY)))){ mY = mParent.mGroundY; }; } public function onTick(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ if (mNumFrames == 0){ return; }; _arg4 = setFrame(_arg4); setPosition(_arg1, _arg2, _arg3, _arg4); mCurImage = (int(mAnimList.frames.frame[mFrame].imageNum) & 0xFF); if ((((((mType == FRONTFOOT)) || ((mType == BACKFOOT)))) && ((mY > mParent.mGroundY)))){ mY = mParent.mGroundY; }; } public function setPosition(_arg1:int, _arg2:Number, _arg3:Number, _arg4:int){ var _local5:Curve; var _local6:int; if (mFlags > 0){ if (int((mFlags & FLAG_GETFRONTHAND)) > 0){ _local5 = mParent.mFrontHand; } else { _local5 = mParent.mBackHand; }; if (mFaceRight){ mX = (_local5.mX + int(mAnimList.frames.frame[mFrame].x)); } else { mX = (_local5.mX - int(mAnimList.frames.frame[mFrame].x)); }; mY = (_local5.mY + int(mAnimList.frames.frame[mFrame].y)); } else { if (int((mAnimList.frames.frame[mFrame].imageNum & FLAG_ATTACH)) > 0){ _local6 = mAnimList.frames.frame[mFrame].imageNum; _local6 = (_local6 & FLAG_GETMASK); if (_local6 > 0){ if (_local6 == FLAG_GETFRONTHAND){ _local5 = mParent.mFrontHand; } else { if (_local6 == FLAG_GETBACKHAND){ _local5 = mParent.mBackHand; } else { if ((((_local6 == FLAG_GETHEAD2)) && (!((mParent.mOtherEgo == null))))){ _local5 = mParent.mOtherEgo.mHead; } else { if ((((_local6 == FLAG_GETBODY2)) && (!((mParent.mOtherEgo == null))))){ _local5 = mParent.mOtherEgo.mTorso; } else { if ((((_local6 == FLAG_GETFRONTHAND2)) && (!((mParent.mOtherEgo == null))))){ _local5 = mParent.mOtherEgo.mFrontHand; } else { if ((((_local6 == FLAG_GETBACKHAND2)) && (!((mParent.mOtherEgo == null))))){ _local5 = mParent.mOtherEgo.mBackHand; } else { computePosition(_arg4); if (mFaceRight){ mX = (_arg2 + round(mPX)); } else { mX = (_arg2 - round(mPX)); }; mY = (_arg3 + round(mPY)); return; }; }; }; }; }; }; mX = (_local5.mX - mContext.mBGx); mY = _local5.mY; } else { return; }; } else { computePosition(_arg4); if (mFaceRight){ mX = (_arg2 + round(mPX)); } else { mX = (_arg2 - round(mPX)); }; mY = (_arg3 + round(mPY)); }; }; } public function setPoints(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int){ mP0x = _arg1; mP0y = _arg2; mP1x = _arg3; mP1y = _arg4; mP2x = _arg5; mP2y = _arg6; mP3x = _arg7; mP3y = _arg8; } public function sortPosition():int{ if ((((mAnimList == null)) || ((mAnimList.numFrames <= 0)))){ return (0); }; if (mFrame < 0){ return (0); }; if ((int(mAnimList.frames.frame[mFrame].imageNum) & FLAG_SORT_BACK) > 0){ return (-1); }; if ((int(mAnimList.frames.frame[mFrame].imageNum) & FLAG_SORT_FRONT) > 0){ return (1); }; return (0); } public function setCurveScale(_arg1:Number){ mScaleX = (mScaleY = _arg1); mBaseX = (mXOff * mScaleX); mBaseY = (mYOff * mScaleY); } public function changeAnim(_arg1:XML):int{ switch (mType){ case BACKHAND: mAnimList = _arg1.lefthand; break; case BACKFOOT: mAnimList = _arg1.leftfoot; break; case BODY: mAnimList = _arg1.torso; break; case HEAD: mAnimList = _arg1.egohead; break; case EYES: mAnimList = _arg1.eyes; break; case MOUTH: mAnimList = _arg1.mouth; break; case FRONTFOOT: mAnimList = _arg1.rightfoot; break; case FRONTHAND: mAnimList = _arg1.righthand; break; case MISC1: mAnimList = _arg1.misc1; break; case MISC2: mAnimList = _arg1.misc2; break; case MISC3: mAnimList = _arg1.misc3; break; case MISC4: mAnimList = _arg1.misc4; break; case MISC5: mAnimList = _arg1.misc5; break; case MISC6: mAnimList = _arg1.misc6; break; }; changeAnimParameters(); return (getTotalTime()); } } }//package game2
Section 51
//Ego (game2.Ego) package game2 { import flash.display.*; import flash.events.*; import mlib2.core.*; import flash.net.*; import mlib2.utility.*; import flash.geom.*; public class Ego extends MovieClip { public var mImgHatDecal:mlib2_Bitmap; public var mUserAnim:Boolean;// = false private var mCurBackFootIndex:int; public var mAnimTime:int; public var mGlassesX:int; private var mBackHandFrames:MovieClip; public var mBlendAnim:int; public var mJacketX:int; public var mJacketY:int; public var mHairIndex:int; public var mState:int; private var mBubbleText:Array;// = null public var mJournalMood:int; public var mImgJacket2:mlib2_Bitmap; public var mImgGlasses:mlib2_Bitmap; public var mColors:Array; public var mBeltX:int; public var mBeltY:int; public var mMouthOffX:int; private var mFrontHandItemFrames:MovieClip; public var mHairX:int; public var mFrontFoot:Curve; private var mEyeFrames:MovieClip; public var mFrontHand:Curve; public var mHairY:int; public var mMouth:Curve; public var mBack2Y:int; public var mBlendCursor:Curve; public var mSortHatBehind:Boolean; public var mJournalGreeting:String;// = "" public var mIsBodyGrouped:Boolean; public var mMouthOffY:int; public var mBack2X:int; public var mBlendTorso:Curve; public var mCatList:String;// = "" public var mCurrentAnim:int; public var mNumCloseArchs:int; public var mContext:Context; public var mUserName:String; public var mImgJacket:mlib2_Bitmap; public var mTrigger:Boolean; public var mHeadDecalX:int; public var mBeltIndex:int; public var mName:String; public var mHeadDecalY:int; private var mCurBackHandIndex:int; public var mArchetype:int; public var mGrowth:Array; public var mAttributeChangeEvent:Boolean; public var mLocState:String; public var mUid:int; private var mBackFootFrames:MovieClip; private var mFrontHandFrames:MovieClip; public var mBoredom:int; private var mCurEyeIndex:int; public var mScale:Number;// = 1 private var myLoader:URLLoader; public var mTVList:String;// = "" public var mCustomXML:XML; public var mFacialHairIndex:int; public var mImgHandsItems:mlib2_Bitmap; public var mImgFacialHair:mlib2_Bitmap; public var mAction:int; public var mHeadDecalIndex:int; public var mInfluence:int; public var mImgHair:mlib2_Bitmap; public var mShow:Boolean;// = true public var mStandAnim:XML; public var mItem:Curve; public var mUserInterest:Array; public var mIsMale:Boolean; public var mIsMainEgo:Boolean; public var mJobList:String;// = "" public var mReady:Boolean;// = true public var mGroupHead2XOff:int; public var mImgGroupBody:mlib2_Bitmap; public var mPetList:String;// = "" public var mReplayPhysicalGrowth:Array; public var mCurrentMood:int; public var mHighUserInterest:int;// = 0 public var mIntent:int; public var mAge:int; public var mGrowthChange:Array; public var mEgoLoadStep; public var mImgPants:mlib2_Bitmap; public var mGroupAffiliation:int; public var mBackFoot:Curve; public var mBackHand:Curve; private var mBodyMC:MovieClip; public var mImgChin:mlib2_Bitmap; public var mDestX:Number; public var mDestY:Number; public var mX:Number; public var mGender:int; public var mHunger:int; public var mY:Number; public var mTorso:Curve; private var mFrontFootFrames:MovieClip; public var mImgEyes:mlib2_Bitmap; public var mReplayGrowth:Array; public var mImgNeck:mlib2_Bitmap; private var mMouthFrames:MovieClip; public var mAttributes:Array; public var mDone:Boolean; public var mPhysChange:Array; public var mImgBandage:mlib2_Bitmap; public var mImgBack2:mlib2_Bitmap; public var mBlending:Boolean; public var mNetData:mlib2_DataOutput; public var mFacialHairBehind:Boolean; public var mGroupHead2YOff:int; public var mToy:int; public var mBlendTimer:Timers; public var mAnimTimer:Timers; public var mLevelUpEvent:Boolean; public var mNeckIndex:int; public var mPortraitName:String;// = "" public var mGroupHead1XOff:int; public var mFeetIndex:int; public var mAnimList:Array; public var mJacketIndex:int; public var mBlendBackFoot:Curve; public var mBlendBackHand:Curve; private var mCurrentLabel:String; public var mPrivateBirth:Boolean; public var mLevelStat:int; public var mOtherPhysicalGrowthChange:Array; public var mFlags:int; public var mImgBack:mlib2_Bitmap; public var mCommand:String;// = "" public var mImgBelt2:mlib2_Bitmap; public var mPassword:String; private var mAnimPlaying:Boolean;// = false public var mGroupHead1YOff:int; public var mImgHeadDecal:mlib2_Bitmap; public var mBackIndex:int; private var mHeadMC:MovieClip; private var mCurrentMovie:MovieClip; public var mImgDummy:mlib2_Bitmap; public var mImgBelt:mlib2_Bitmap; public var mImgTorsoDecal:mlib2_Bitmap; private var mCurFrontFootIndex:int; public var mImgMouth:mlib2_Bitmap; public var mIsInComponent:Boolean;// = false public var mPortraitID:String;// = "" public var mBlendEyes:Curve; public var mIsHeadGrouped:Boolean; public var mVelX:int; public var mVelY:int; public var mOtherEgo:Ego; public var mFood:int; public var mArchChangeEvent:Boolean; public var mEyes:Curve; public var mMusicList:String;// = "" private var myBlendLoader:URLLoader; public var mEmoteTime:int; public var mRole:int; public var mHatIndex:int; public var mGroundY:Number; public var mEnlightenEvent:Boolean; public var mSortBandageBehind:Boolean; public var mOtherGrowthChange:Array; public var mTriggerAction:int; public var mPantsIndex:int; public var mEthnicity:int; private var myXMLURL:URLRequest; public var mImgHat:mlib2_Bitmap; public var mBlendFrontFoot:Curve; public var mBlendFrontHand:Curve; public var mFirstAttChange:Boolean; public var mSetFaceOnLoad:Boolean; public var mHatDecalIndex:int; public var mBookList:String;// = "" public var mInterest:Array; public var mLoadingBlendAnim:Boolean;// = false public var mLoadingAnim:Boolean;// = false public var mPantsX:int; public var mPantsY:int; public var mGroupBodyXOff:int; public var mTopFriends:Array; public var mLover:String; public var mGlassesIndex:int; public var mTargetEgo:String; public var mHatDecalX:int; public var mHatDecalY:int; public var mPhysicalGrowthChange:Array; private var mRenderBubble:Boolean;// = false public var mImgFeet:mlib2_Bitmap; public var mLoopCount:int; private var mCurFrontHandIndex:int; public var mCurrentAnimString:String; public var mMessage:String; public var mTorsoIndex:int; public var mEncounterEvent:Boolean; public var mRivals:Array; public var mForceSleep:Boolean; public var mCustomData:Array; public var mUnlockEvent:int; public var mInterestLevel:Array; public var mItem2:Curve; public var mItem3:Curve; public var mItem4:Curve; public var mItem5:Curve; public var mItem6:Curve; public var mLevel:int; public var mHungerWait:int; public var mFacialHairY:int; public var mFacialHairX:int; public var mLikability:int; public var mGroupBodyYOff:int; public var mReplayAttributes:Array; public var mImgHead:mlib2_Bitmap; private var mAnimXML:XML; public var mHatY:int; public var mSimilarity:int; public var mOrientation:int; public var mGift:int; private var mCurMouthIndex:int; public var mHatX:int; public var mBlendMouth:Curve; public var mGameList:String;// = "" public var mWinner:Boolean; public var mJacket2Y:int; public var mPhysicalGrowth:Array; public var mJacket2X:int; public var mTorsoDecalIndex:int; public var mBirthdate:String; public var mJournalStatus:int; public var mNeckY:int; public var mImgHands:mlib2_Bitmap; public var mTorsoDecalY:int; private var mBubbleTimer:Timers; public var mTorsoDecalX:int; private var mBackHandItemFrames:MovieClip; public var mImgTorso:mlib2_Bitmap; public var mBelt2Y:int; public var mNextState:int; public var mZip:String; public var mBelt2X:int; public var mUserInterestLevel:Array; public var mTorsoBehindBelt:Boolean; private var mAnimQueue:Array; public var mRelationshipStatus:int; public var mWaitingFor:int;// = 0 public var mTorsoY:int; public var mLocCity:String; public var mTorsoX:int; public var mLoc:String; public var mBuddyStatus:int; public var mEgoLoadingParts:Boolean; public var mFacingRight:Boolean; public var mJournalPage:int; public var mNeckX:int; private var mBlendAnimXML:XML; public var mAttChange:Array; public var mImgGroupHead2:mlib2_Bitmap; public var mImgGroupHead1:mlib2_Bitmap; public var mSurveyResults:Array; public var mEyesOffY:int; public var mEyesOffX:int; public var mBlendHead:Curve; public var mBackY:int; public var mBackX:int; public var mNoReinforce:Boolean; public var mHead:Curve; public var mBoredomWait:int; public var mRPSImage:int; private var mHighInterest:int;// = 0 public var mGlassesY:int; public static const ARCHETYPE_REBEL:int = 24; public static const INTEREST_LEVEL0 = 0; public static const INTEREST_LEVEL2 = 40; public static const INTEREST_LEVEL1 = 10; public static const INTEREST_LEVEL3 = 100; public static const MOUTH_WIDTH:int = 30; public static const ANIMLIST_SIZE:int = 15; public static const INTEREST_ENEMY = 2; public static const INTENT_MIND = 1; public static const IMAGETYPE_TORSO = 4; public static const INTERESTLEVEL_XXX = 3; public static const INTERESTLEVEL_PINK = 1; public static const IMAGETYPE_HATDECAL = 12; public static const ROLE_STRANGER = 5; public static const WAITFOR_ANY = 2; public static const SET_CAREER = 3; public static const INFLUENCE_POSITIVE = 0; public static const HANDS_HEIGHT:int = 21; public static const HANDSITEMS_WIDTH:int = 47; public static const EGO_VEL = 1; public static const SET_ALL = 5; public static const IMAGETYPE_BELT = 1; public static const IMAGETYPE_PANTS = 5; public static const ARCHETYPE_NERD:int = 21; public static const STATE_PLAYING:int = 2; public static const ARCHETYPE_BOXER:int = 5; public static const STATE_INTERACT:int = 3; public static const MOUTH_OFFSET_Y:int = 20; public static const SET_SAD:int = 6; public static const MOUTH_OFFSET_X:int = 6; public static const INTERESTLEVEL_NORMAL = 0; public static const ARCHETYPE_ROCKSTAR:int = 25; public static const ARCHETYPE_BULLY:int = 6; public static const IMAGETYPE_HAT = 9; public static const FLAG_WAITING:int = (1 << 1); public static const SET_SHATTERED:int = 7; public static const INFLUENCE_NEGATIVE = 1; public static const ARCHETYPE_THIEF:int = 31; public static const ROLE_RIVAL = 6; public static const INFLUENCE_NONE = 2; public static const ROLE_COMPANION = 1; public static const HEAD_HEIGHT:int = 27; public static const HANDSITEMS_HEIGHT:int = 47; public static const EYE_IMAGES:int = 45; public static const ARCHETYPE_FLIRT:int = 13; public static const INTENT_SOCIAL = 0; public static const NUM_HATS:int = 48; public static const COLORINDEX_SKIN:int = 0; public static const FLAG_DONE:int = (1 << 2); public static const SET_COLLEGE = 1; public static const ARCHETYPE_ACTOR:int = 0; public static const NUM_ALL_ARCHETYPES:int = 39; public static const ARCHETYPE_DEVIL:int = 8; public static const ARCHETYPE_JOCK:int = 17; public static const NUM_ROLES = 8; public static const NUM_BACKDECALS:int = 20; public static const ROLE_FRIEND = 2; public static const COLORINDEX_TORSODECAL:int = 6; public static const ARCHETYPE_ANGEL:int = 1; public static const INDIFFERENT = 1; public static const NUM_INTRO_ARCHETYPES:int = 13; public static const ARCHETYPE_LAWYER:int = 18; public static const ARCHETYPE_ASSASSIN:int = 3; public static const BODY_GOOFY = 1; public static const NUM_BELTS:int = 19; public static const ARCHETYPE_TSHIRT:int = 35; public static const EYES_PER_ROW:int = 15; public static const BANDAGES_Y = 23; public static const COLORINDEX_FEET:int = 8; public static const ATT_SOCIAL1:int = 0; public static const ATT_SOCIAL2:int = 1; public static const HEAD_WIDTH:int = 34; public static const NUM_FACIALHAIR:int = 15; public static const ARCHETYPE_SECRET_AGENT:int = 26; public static const NUM_TORSODECALS:int = 40; public static const BANDAGES_X = 4; public static const ARCHETYPE_GUMSHOE:int = 15; public static const BODY_TOUGH = 0; public static const NUM_HEADDECALS:int = 20; public static const SET_WIMPY:int = 2; public static const BUBBLE_TIME = 6000; public static const IMAGETYPE_FEET = 13; public static const NUM_HANDSITEMS:int = 19; public static const COLORINDEX_HAIR:int = 2; public static const COLORINDEX_PANTS:int = 7; public static const ATT_MIND1:int = 3; public static const STATE_IDLE:int = 0; public static const IMAGETYPE_HEADDECAL = 11; public static const EGO_OFFSCREEN_RIGHT = 520; public static const NUM_FEET:int = 6; public static const ATT_MIND2:int = 4; public static const ROLE_BESTFRIEND = 0; public static const IMAGETYPE_HAIR = 7; public static const EYES_OFFSET_X:int = 5; public static const EYES_OFFSET_Y:int = 5; public static const COLORINDEX_TORSO:int = 5; public static const INTENT_GIFT = 3; public static const ARCHETYPE_INTRO:int = 32; public static const NUM_INTEREST_TYPES = 3; public static const SET_GRITTY:int = 1; public static const DISLIKE = 2; public static const SET_PROFESSIONAL = 2; public static const ARCHETYPE_POLICEMAN:int = 22; public static const MOUTH_IMAGES:int = 47; public static const ARCHETYPE_SKATER:int = 28; public static const NUM_HATDECALS:int = 14; public static const STATE_EATING:int = 1; public static const INTENT_PHYSICAL = 2; public static const NUM_HAIR:int = 105; public static const SET_PISSED:int = 3; public static const ARCHETYPE_SUIT:int = 34; public static const WAITFOR_TARGET = 1; public static const ROLE_ACQUAINTANCE = 4; public static const COLORINDEX_FACIALHAIR:int = 1; public static const NUM_GLASSES:int = 29; public static const INTERESTLEVEL_RED = 2; public static const ARCHETYPE_BIKER:int = 4; public static const ROLE_PEST = 7; public static const ARCHETYPE_SEX_SYMBOL:int = 27; public static const BODY_SEXY = 2; public static const INTEREST_FRIEND = 1; public static const ATT_EMOTION1:int = 5; public static const ATT_EMOTION2:int = 6; public static const ATT_EMOTION3:int = 7; public static const ARCHETYPE_MAD_SCIENTIST:int = 19; public static const ARCHETYPE_EXPLORER:int = 11; public static const SET_BC:int = 4; public static const IMAGETYPE_JACKET = 2; public static const IMAGETYPE_NECK = 3; public static const HANDS_WIDTH:int = 24; public static const SET_EXHAUSTED:int = 8; public static const ARCHETYPE_FIREMAN:int = 12; public static const SET_ANGRY:int = 5; public static const ARCHETYPE_GOTH:int = 14; public static const NUM_JACKETS:int = 43; public static const NUM_COLOR_PARTS:int = 9; public static const BODY_TYPES = 3; public static const SET_NORMAL:int = 0; public static const NUM_MOUTHS:int = 27; public static const NUM_ITEMS:int = 144; public static const EYES_WIDTH:int = 30; public static const INTEREST_SWEETHEART = 0; public static const ARCHETYPE_PREPPY:int = 23; public static const NUM_SETS:int = 10; public static const EMO_SCALE = 6; public static const ARCHETYPE_SOLDIER:int = 29; public static const LIKE = 0; public static const COLORINDEX_HAT:int = 3; public static const NUM_ARCHETYPES:int = 32; public static const ARCHETYPE_MARTIAL_ARTIST:int = 20; public static const SET_TIRED:int = 9; public static const NUM_PANTS:int = 27; public static const EYES_HEIGHT:int = 18; public static const WAITFOR_NONE = 0; public static const NUM_EYES:int = 17; public static const NUM_HANDS:int = 58; public static const SET_HIGHSCHOOL = 0; public static const ARCHETYPE_DOCTOR:int = 9; public static const ARCHETYPE_FUNKY:int = 33; public static const IMAGETYPE_FACIALHAIR = 8; public static const COLORINDEX_JACKET:int = 4; public static const MOUTH_HEIGHT:int = 30; public static const IMAGETYPE_DECAL = 6; public static const ROLE_LOVEINTEREST = 3; public static const IMAGETYPE_GLASSES = 10; public static const NUM_ATTRIBUTES:int = 8; public static const ARCHETYPE_EMO:int = 10; public static const ARCHETYPE_INVENTOR:int = 16; public static const ARCHETYPE_SURFER:int = 30; public static const EGO_OFFSCREEN_LEFT = -30; public static const ARCHETYPE_CLASS_CLOWN:int = 7; public static const ARCHETYPE_ARTIST:int = 2; public static const NUM_TORSOS:int = 90; public static const ATT_SCALE = 10; public static const IMAGETYPE_BACK = 0; public static const ARCHETYPE_CUSTOM_0:int = 36; public static const ARCHETYPE_CUSTOM_1:int = 37; public static const ARCHETYPE_CUSTOM_2:int = 38; public static const ATT_PHYSICAL1:int = 2; public static const NUM_NECKDECALS:int = 16; public static const SET_ENLIGHTENED = 4; private static var mArchData:Array; private static var mAnimData:Array; public static var mEyeSetLoader:URLLoader; public static var mOffsetTextLoader:URLLoader; private static var mInfluence:Array; public static var mArchDataLoader:URLLoader; public static var mImgItems:Array; private static var mEyeSet:Array; private static var mMouthSet:Array; public static var RESOURCE_URL:String = "http://www.ego-city.com/LoveLounge/"; public static var mMouthSetLoader:URLLoader; public function Ego(_arg1:Context, _arg2:Boolean=true, _arg3:Boolean=false){ var _local4:int; mAnimQueue = new Array(); mAnimPlaying = false; mHighInterest = 0; mHighUserInterest = 0; mUserAnim = false; mAttributes = new Array(NUM_ATTRIBUTES); mReplayAttributes = new Array(NUM_ATTRIBUTES); mGrowth = new Array(NUM_ATTRIBUTES); mGrowthChange = new Array(NUM_ATTRIBUTES); mOtherGrowthChange = new Array(NUM_ATTRIBUTES); mReplayGrowth = new Array(NUM_ATTRIBUTES); mPhysicalGrowth = new Array(BODY_TYPES); mPhysicalGrowthChange = new Array(BODY_TYPES); mOtherPhysicalGrowthChange = new Array(BODY_TYPES); mReplayPhysicalGrowth = new Array(BODY_TYPES); mIsInComponent = false; mBubbleText = null; mRenderBubble = false; mColors = new Array(); mScale = 1; mAnimList = new Array(ANIMLIST_SIZE); mAttChange = new Array(NUM_ATTRIBUTES); mPhysChange = new Array(3); mCommand = ""; mInterest = [0, 0, 0]; mInterestLevel = [0, 0, 0]; mUserInterest = [0, 0, 0]; mUserInterestLevel = [0, 0, 0]; mWaitingFor = 0; mShow = true; mReady = true; mLoadingAnim = false; mLoadingBlendAnim = false; mMusicList = ""; mGameList = ""; mBookList = ""; mPetList = ""; mCatList = ""; mTVList = ""; mJobList = ""; mPortraitID = ""; mPortraitName = ""; mJournalGreeting = ""; mSurveyResults = new Array([0, 0, 0, 0, 0, 0, 1, 2, 4, 3, 0, 4, 2, 2, 1, 1, 2, 3, 4, 0, 3, 1, 3, 2, 4]); super(); mOffsetTextLoader = new URLLoader(new URLRequest((RESOURCE_URL + "res/data/itemLocs.txt"))); mEyeSetLoader = new URLLoader(new URLRequest((RESOURCE_URL + "res/data/emotion_eye.txt"))); mEyeSetLoader.addEventListener(Event.COMPLETE, onCompleteEyeSet); mMouthSetLoader = new URLLoader(new URLRequest((RESOURCE_URL + "res/data/emotion_mouth.txt"))); mMouthSetLoader.addEventListener(Event.COMPLETE, onCompleteMouthSet); mArchDataLoader = new URLLoader(new URLRequest((RESOURCE_URL + "res/data/archetypeFlashData.txt"))); mArchDataLoader.addEventListener(Event.COMPLETE, onCompleteArchData); mContext = _arg1; mFacingRight = _arg2; mSetFaceOnLoad = mFacingRight; mIsInComponent = _arg3; mX = 40; if (mFacingRight){ mEyesOffX = (EYES_OFFSET_X - (EYES_WIDTH / 2)); mEyesOffY = (EYES_OFFSET_Y - (EYES_HEIGHT / 2)); mMouthOffX = (MOUTH_OFFSET_X - (MOUTH_WIDTH / 2)); mMouthOffY = (MOUTH_OFFSET_Y - (MOUTH_HEIGHT / 2)); } else { mEyesOffX = (-(EYES_OFFSET_X) - (EYES_WIDTH / 2)); mEyesOffY = (EYES_OFFSET_Y - (EYES_HEIGHT / 2)); mMouthOffX = (-(MOUTH_OFFSET_X) - (MOUTH_WIDTH / 2)); mMouthOffY = (MOUTH_OFFSET_Y - (MOUTH_HEIGHT / 2)); }; mHead = new Curve(mContext, this, Curve.HEAD); mEyes = new Curve(mContext, this, Curve.EYES); mMouth = new Curve(mContext, this, Curve.MOUTH); mTorso = new Curve(mContext, this, Curve.BODY); mBackHand = new Curve(mContext, this, Curve.BACKHAND); mFrontHand = new Curve(mContext, this, Curve.FRONTHAND); mBackFoot = new Curve(mContext, this, Curve.BACKFOOT); mFrontFoot = new Curve(mContext, this, Curve.FRONTFOOT); mItem = new Curve(mContext, this, Curve.MISC1); mItem2 = new Curve(mContext, this, Curve.MISC2); mItem3 = new Curve(mContext, this, Curve.MISC3); mItem4 = new Curve(mContext, this, Curve.MISC4); mItem5 = new Curve(mContext, this, Curve.MISC5); mItem6 = new Curve(mContext, this, Curve.MISC6); mBlendHead = new Curve(mContext, this, Curve.HEAD); mBlendHead = new Curve(mContext, this, Curve.EYES); mBlendMouth = new Curve(mContext, this, Curve.MOUTH); mBlendTorso = new Curve(mContext, this, Curve.BODY); mBlendBackHand = new Curve(mContext, this, Curve.BACKHAND); mBlendFrontHand = new Curve(mContext, this, Curve.FRONTHAND); mBlendBackFoot = new Curve(mContext, this, Curve.BACKFOOT); mBlendFrontFoot = new Curve(mContext, this, Curve.FRONTFOOT); mBlendCursor = new Curve(mContext, this, Curve.MISC1); mImgItems = new Array(NUM_ITEMS); mHead.setCurveScale(mScale); mTorso.setCurveScale(mScale); mBackHand.setCurveScale(mScale); mFrontHand.setCurveScale(mScale); mBackFoot.setCurveScale(mScale); mFrontFoot.setCurveScale(mScale); mItem.setCurveScale(mScale); mItem2.setCurveScale(mScale); mItem3.setCurveScale(mScale); mItem4.setCurveScale(mScale); mItem5.setCurveScale(mScale); mItem6.setCurveScale(mScale); mImgBandage = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/bandage.png"), !(mFacingRight)); mCurrentMovie = null; mCustomData = new Array(Constants.CUSTOMLIST_SIZE); mNetData = new mlib2_DataOutput(); mAnimData = ResData.ANIMLIST; _local4 = 0; while (_local4 < ANIMLIST_SIZE) { mAnimList[_local4] = Constants.ANIM_DONE; _local4++; }; mAnimTimer = new Timers(2500); mBlendTimer = new Timers(); mBubbleTimer = new Timers(BUBBLE_TIME); mAction = -1; mTopFriends = new Array(); mRivals = new Array(); mLover = ""; mName = ""; _local4 = 0; while (_local4 < NUM_COLOR_PARTS) { mColors.push({curColor:-1, newColor:-1, storedColor:-1}); _local4++; }; _local4 = 0; while (_local4 < NUM_ATTRIBUTES) { mGrowth[_local4] = 0; _local4++; }; _local4 = 0; while (_local4 < BODY_TYPES) { mPhysicalGrowth[_local4] = 0; _local4++; }; clearAttChange(); loadAnimByNumber(Constants.ANIM_STAND); } public function getEventValue(_arg1:int):int{ var _local2:int; var _local3:int; var _local4:int; var _local5:int; _local3 = 0; _local2 = -1; _local4 = -1; switch (_arg1){ default: return (-1); case IMAGETYPE_BACK: if (mBackIndex >= 0){ _local4 = ((Constants.CUSTOMINDEX_BACK * 8) + mBackIndex); }; break; case IMAGETYPE_BELT: if (mBeltIndex >= 0){ _local4 = ((Constants.CUSTOMINDEX_BELT * 8) + mBeltIndex); }; break; case IMAGETYPE_JACKET: if (mJacketIndex >= 0){ _local4 = ((Constants.CUSTOMINDEX_JACKET * 8) + mJacketIndex); }; break; case IMAGETYPE_NECK: if (mNeckIndex >= 0){ _local4 = ((Constants.CUSTOMINDEX_NECK * 8) + mNeckIndex); }; break; case IMAGETYPE_TORSO: if (mTorsoIndex >= 0){ _local4 = ((Constants.CUSTOMINDEX_TORSO * 8) + mTorsoIndex); }; break; case IMAGETYPE_PANTS: if (mPantsIndex >= 0){ _local4 = ((Constants.CUSTOMINDEX_PANTS * 8) + mPantsIndex); }; break; case IMAGETYPE_DECAL: if (mTorsoDecalIndex >= 0){ _local4 = ((Constants.CUSTOMINDEX_TORSODECAL * 8) + mTorsoDecalIndex); }; break; case IMAGETYPE_HAT: if (mHatIndex >= 0){ _local4 = ((Constants.CUSTOMINDEX_HAT * 8) + mHatIndex); }; break; case IMAGETYPE_GLASSES: if (mGlassesIndex >= 0){ _local4 = ((Constants.CUSTOMINDEX_GLASSES * 8) + mGlassesIndex); }; break; case IMAGETYPE_FEET: if (mFeetIndex >= 0){ _local4 = ((Constants.CUSTOMINDEX_FEET * 8) + mFeetIndex); }; break; }; if (_local4 == -1){ return (-1); }; _local5 = ResData.WARDROBE[_local4]; _local2 = (_local5 & 15); _local3 = (_local5 >> 4); if (_local2 == 0){ return (-1); }; return (((_local3 << 4) | _local2)); } public function resetAttributes(){ var _local1:int; _local1 = 0; while (_local1 < NUM_ATTRIBUTES) { if (_local1 < ATT_EMOTION1){ mGrowth[_local1] = (ATT_SCALE / 2); mAttributes[_local1] = 1; } else { mGrowth[_local1] = (EMO_SCALE / 2); mAttributes[_local1] = 2; }; mGrowthChange[_local1] = 0; _local1++; }; mPhysicalGrowth[0] = 0; mPhysicalGrowth[1] = 0; mPhysicalGrowth[2] = 0; } public function onTick(_arg1:int){ var _local2:Boolean; var _local3:Boolean; if (((!(mShow)) || (!(isLoaded())))){ return; }; if (mSetFaceOnLoad != mFacingRight){ setFacingRight(mSetFaceOnLoad); return; }; _local2 = mAnimTimer.onTick(_arg1); _local3 = mBlendTimer.onTick(_arg1); if (mRenderBubble){ mRenderBubble = !(mBubbleTimer.onTick(_arg1)); }; if (mLoadingAnim){ _local2 = false; }; tickParts(_arg1, mAnimTimer.getElapsed()); switch (mState){ case STATE_IDLE: case STATE_EATING: case STATE_PLAYING: if (_local2){ mCurrentAnim++; startNextAnimation(); if ((mFlags & FLAG_DONE) > 0){ initState(mNextState); }; }; break; case STATE_INTERACT: if ((mFlags & FLAG_WAITING) == 0){ if (_local2){ mCurrentAnim++; startNextAnimation(); if (mOtherEgo == null){ trace(("OTHER EGO NOT SET (INTERACT ONTICK) " + mUserName)); return; }; if (((((mFlags & FLAG_DONE) > 0)) && (((mOtherEgo.mFlags & FLAG_WAITING) > 0)))){ mOtherEgo.mFlags = (mOtherEgo.mFlags & ~(FLAG_WAITING)); mOtherEgo.mCurrentAnim++; mOtherEgo.startNextAnimation(); }; }; }; break; }; } public function setNetData(){ var _local1:int; mNetData.reset(); mNetData.writeLong(Context.NET_DATA_VERSION); _local1 = 0; while (_local1 < NUM_ATTRIBUTES) { mNetData.writeByte(mAttributes[_local1]); mNetData.writeLong(mGrowth[_local1]); _local1++; }; mNetData.writeLong(mPhysicalGrowth[0]); mNetData.writeLong(mPhysicalGrowth[1]); mNetData.writeLong(mPhysicalGrowth[2]); mNetData.writeLong(mHairIndex); mNetData.writeLong(mFacialHairIndex); mNetData.writeLong(mColors[Ego.COLORINDEX_HAIR].curColor); mNetData.writeLong(mHatIndex); mNetData.writeLong(mColors[Ego.COLORINDEX_HAT].curColor); mNetData.writeLong(mGlassesIndex); mNetData.writeLong(mHeadDecalIndex); mNetData.writeLong(mHatDecalIndex); mNetData.writeLong(mTorsoIndex); mNetData.writeLong(mColors[Ego.COLORINDEX_TORSO].curColor); mNetData.writeLong(mPantsIndex); mNetData.writeLong(mColors[Ego.COLORINDEX_PANTS].curColor); mNetData.writeLong(mTorsoDecalIndex); mNetData.writeLong(mColors[Ego.COLORINDEX_TORSODECAL].curColor); mNetData.writeLong(mBackIndex); mNetData.writeLong(mBeltIndex); mNetData.writeLong(mNeckIndex); mNetData.writeLong(mJacketIndex); mNetData.writeLong(mColors[Ego.COLORINDEX_JACKET].curColor); mNetData.writeLong(mFeetIndex); mNetData.writeLong(mColors[Ego.COLORINDEX_FEET].curColor); mNetData.writeLong(((mContext.mStats[Context.STATS_LEVEL] << 16) | mColors[Ego.COLORINDEX_SKIN].curColor)); mNetData.writeLong(mGift); mNetData.writeByte(mArchetype); if (mIsMale){ mNetData.writeByte(0); } else { mNetData.writeByte(1); }; if (mName != null){ mNetData.writeUTF(mName); } else { mNetData.writeUTF(""); }; mNetData.writeUTF(mLoc); mNetData.writeUTF(mMusicList); mNetData.writeUTF(mBookList); mNetData.writeUTF(mGameList); mNetData.writeUTF(mPetList); mNetData.writeUTF(mCatList); mNetData.writeUTF(mTVList); mNetData.writeUTF(mJobList); mNetData.writeUTF(mJournalGreeting); mNetData.writeLong(mJournalStatus); mNetData.writeShort(mTopFriends.length); _local1 = 0; while (_local1 < mTopFriends.length) { mNetData.writeUTF(mTopFriends[_local1]); _local1++; }; mNetData.writeShort(mRivals.length); _local1 = 0; while (_local1 < mRivals.length) { mNetData.writeUTF(mRivals[_local1]); _local1++; }; mNetData.writeUTF(mLover); mNetData.writeUTF(mZip); mNetData.writeLong(mAge); mNetData.writeLong(mEthnicity); mNetData.writeLong(mRelationshipStatus); mNetData.writeLong(mGender); mNetData.writeLong(mOrientation); mNetData.writeLong(mGroupAffiliation); mNetData.writeShort(0); } function isOverHead(_arg1:int, _arg2:int):Boolean{ var _local3:int; var _local4:int; var _local5:int; var _local6:int; _local3 = (mHead.mX - ((HEAD_WIDTH * mScale) / 2)); _local4 = (_local3 + (HEAD_WIDTH * mScale)); _local5 = (mHead.mY - ((HEAD_HEIGHT * mScale) / 2)); _local6 = (_local5 + (HEAD_HEIGHT * mScale)); if (_arg1 < _local3){ return (false); }; if (_arg1 > _local4){ return (false); }; if (_arg2 < _local5){ return (false); }; if (_arg2 > _local6){ return (false); }; return (true); } private function createBodyGroups(){ var bodyX:int; var bodyY:int; var dX:int; var dY:int; var w:int; var h:int; var minX:int; var minY:int; var rect:Rectangle; var pt:Point; var addImageDimensions:Function; addImageDimensions = function (_arg1:mlib2_Bitmap, _arg2:int, _arg3:int){ if ((((_arg1 == null)) || ((_arg1.bitmapData == null)))){ return; }; if (_arg2 < minX){ dX = (minX - _arg2); minX = _arg2; bodyX = (bodyX + dX); w = (w + dX); if (_arg1.bitmapData.width > w){ w = _arg1.bitmapData.width; }; } else { if (((bodyX + _arg2) + _arg1.bitmapData.width) > w){ w = ((bodyX + _arg2) + _arg1.bitmapData.width); }; }; if (_arg3 < minY){ dY = (minY - _arg3); minY = _arg3; bodyY = (bodyY + dY); h = (h + dY); if (_arg1.bitmapData.height > h){ h = _arg1.bitmapData.height; }; } else { if (((bodyY + _arg3) + _arg1.bitmapData.height) > h){ h = ((bodyY + _arg3) + _arg1.bitmapData.height); }; }; }; rect = new Rectangle(0, 0, 0, 0); pt = new Point(0, 0); var _local2:int; minY = _local2; minX = _local2; bodyX = 0; bodyY = 0; _local2 = 0; h = _local2; w = _local2; dX = 0; if (((!((mImgBack == null))) && (!((mImgBack.bitmapData == null))))){ addImageDimensions(mImgBack, mBackX, mBackY); }; if (((!((mImgBelt2 == null))) && (!((mImgBelt2.bitmapData == null))))){ addImageDimensions(mImgBelt2, mBelt2X, mBelt2Y); }; if (((!((mImgJacket2 == null))) && (!((mImgJacket2.bitmapData == null))))){ addImageDimensions(mImgJacket2, mJacket2X, mJacket2Y); }; if (((!((mImgPants == null))) && (!((mImgPants.bitmapData == null))))){ addImageDimensions(mImgPants, mPantsX, mPantsY); }; if (((((!((mImgTorso == null))) && (!((mImgTorso.bitmapData == null))))) && (mTorsoBehindBelt))){ addImageDimensions(mImgTorso, mTorsoX, mTorsoY); }; if (((!((mImgBelt == null))) && (!((mImgBelt.bitmapData == null))))){ addImageDimensions(mImgBelt, mBeltX, mBeltY); }; if (((((!((mImgTorso == null))) && (!((mImgTorso.bitmapData == null))))) && (!(mTorsoBehindBelt)))){ addImageDimensions(mImgTorso, mTorsoX, mTorsoY); }; if (((!((mImgTorsoDecal == null))) && (!((mImgTorsoDecal.bitmapData == null))))){ addImageDimensions(mImgTorsoDecal, mTorsoDecalX, mTorsoDecalY); }; if (((!((mImgNeck == null))) && (!((mImgNeck.bitmapData == null))))){ addImageDimensions(mImgNeck, mNeckX, mNeckY); }; if (((!((mImgBack2 == null))) && (!((mImgBack2.bitmapData == null))))){ addImageDimensions(mImgBack2, mBack2X, mBack2Y); }; if (((!((mImgJacket == null))) && (!((mImgJacket.bitmapData == null))))){ addImageDimensions(mImgJacket, mJacketX, mJacketY); }; mGroupBodyXOff = bodyX; mGroupBodyYOff = bodyY; mImgGroupBody = mlib2_Bitmap.createEmptyBitmap(w, h, mFacingRight); if (((!((mImgBack == null))) && (!((mImgBack.bitmapData == null))))){ drawToImage(mImgGroupBody, mImgBack, (bodyX + mBackX), (bodyY + mBackY)); }; if (((!((mImgBelt2 == null))) && (!((mImgBelt2.bitmapData == null))))){ drawToImage(mImgGroupBody, mImgBelt2, (bodyX + mBelt2X), (bodyY + mBelt2Y)); }; if (((!((mImgJacket2 == null))) && (!((mImgJacket2.bitmapData == null))))){ drawToImage(mImgGroupBody, mImgJacket2, (bodyX + mJacket2X), (bodyY + mJacket2Y)); }; if (((!((mImgPants == null))) && (!((mImgPants.bitmapData == null))))){ drawToImage(mImgGroupBody, mImgPants, (bodyX + mPantsX), (bodyY + mPantsY)); }; if (((((!((mImgTorso == null))) && (!((mImgTorso.bitmapData == null))))) && (mTorsoBehindBelt))){ drawToImage(mImgGroupBody, mImgTorso, (bodyX + mTorsoX), (bodyY + mTorsoY)); }; if (((!((mImgBelt == null))) && (!((mImgBelt.bitmapData == null))))){ drawToImage(mImgGroupBody, mImgBelt, (bodyX + mBeltX), (bodyY + mBeltY)); }; if (((((!((mImgTorso == null))) && (!((mImgTorso.bitmapData == null))))) && (!(mTorsoBehindBelt)))){ drawToImage(mImgGroupBody, mImgTorso, (bodyX + mTorsoX), (bodyY + mTorsoY)); }; if (((!((mImgTorsoDecal == null))) && (!((mImgTorsoDecal.bitmapData == null))))){ drawToImage(mImgGroupBody, mImgTorsoDecal, (bodyX + mTorsoDecalX), (bodyY + mTorsoDecalY)); }; if (((!((mImgNeck == null))) && (!((mImgNeck.bitmapData == null))))){ drawToImage(mImgGroupBody, mImgNeck, (bodyX + mNeckX), (bodyY + mNeckY)); }; if (((!((mImgBack2 == null))) && (!((mImgBack2.bitmapData == null))))){ drawToImage(mImgGroupBody, mImgBack2, (bodyX + mBack2X), (bodyY + mBack2Y)); }; if (((!((mImgJacket == null))) && (!((mImgJacket.bitmapData == null))))){ drawToImage(mImgGroupBody, mImgJacket, (bodyX + mJacketX), (bodyY + mJacketY)); }; mIsBodyGrouped = true; } private function isHeadGroupReady(){ if (((!((mHairIndex == -1))) && ((((mImgHair == null)) || (!(mImgHair.mIsLoaded)))))){ return (false); }; if (((!((mFacialHairIndex == -1))) && ((((mImgFacialHair == null)) || (!(mImgFacialHair.mIsLoaded)))))){ return (false); }; if (((!((mHatIndex == -1))) && ((((mImgHat == null)) || (!(mImgHat.mIsLoaded)))))){ return (false); }; if (((!((mGlassesIndex == -1))) && ((((mImgGlasses == null)) || (!(mImgGlasses.mIsLoaded)))))){ return (false); }; if (((!((mHeadDecalIndex == -1))) && ((((mImgHeadDecal == null)) || (!(mImgHeadDecal.mIsLoaded)))))){ return (false); }; if (((!((mHatDecalIndex == -1))) && ((((mImgHatDecal == null)) || (!(mImgHatDecal.mIsLoaded)))))){ return (false); }; return (true); } public function getNumParts(_arg1:int){ var _local2:Array; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; _local6 = 0; _local3 = 0; _local2 = mCustomData; switch (_arg1){ default: return (-1); case Constants.CUSTOMPARTS_HAIR: _local3 = Constants.CUSTOMINDEX_HAIR; _local4 = Constants.SIZE_CUSTOM_HAIR; break; case Constants.CUSTOMPARTS_FACIALHAIR: _local3 = Constants.CUSTOMINDEX_FACIALHAIR; _local4 = Constants.SIZE_CUSTOM_FACIALHAIR; _local6++; break; case Constants.CUSTOMPARTS_GLASSES: _local3 = Constants.CUSTOMINDEX_GLASSES; _local4 = Constants.SIZE_CUSTOM_GLASSES; _local6++; break; case Constants.CUSTOMPARTS_HAT: _local3 = Constants.CUSTOMINDEX_HAT; _local4 = Constants.SIZE_CUSTOM_HAT; _local6++; break; case Constants.CUSTOMPARTS_HATDECAL: _local5 = getArchetypeFromPart(Constants.CUSTOMPARTS_HAT, mHatIndex); if ((((mHatIndex == -1)) || ((_local5 == -1)))){ return (0); }; _local2 = mArchData; _local3 = ((_local5 * Constants.SIZE_PER_ARCHETYPE) + Constants.CUSTOMINDEX_HATDECAL); _local4 = Constants.SIZE_CUSTOM_HATDECAL; _local6++; break; case Constants.CUSTOMPARTS_HATCOLOR: _local5 = getArchetypeFromPart(Constants.CUSTOMPARTS_HAT, mHatIndex); if ((((((mHatIndex == -1)) || ((_local5 == -1)))) || ((mHatIndex == 32)))){ return (0); }; _local2 = mArchData; _local3 = ((_local5 * Constants.SIZE_PER_ARCHETYPE) + Constants.CUSTOMINDEX_HATCOLOR); _local4 = Constants.SIZE_CUSTOM_HATCOLOR; break; case Constants.CUSTOMPARTS_HEADDECAL: _local3 = Constants.CUSTOMINDEX_HEADDECAL; _local4 = Constants.SIZE_CUSTOM_HEADDECAL; _local6++; break; case Constants.CUSTOMPARTS_BACK: _local3 = Constants.CUSTOMINDEX_BACK; _local4 = Constants.SIZE_CUSTOM_BACK; _local6++; break; case Constants.CUSTOMPARTS_BELT: _local3 = Constants.CUSTOMINDEX_BELT; _local4 = Constants.SIZE_CUSTOM_BELT; _local6++; break; case Constants.CUSTOMPARTS_JACKET: _local3 = Constants.CUSTOMINDEX_JACKET; _local4 = Constants.SIZE_CUSTOM_JACKET; _local6++; break; case Constants.CUSTOMPARTS_NECK: _local3 = Constants.CUSTOMINDEX_NECK; _local4 = Constants.SIZE_CUSTOM_NECK; _local6++; break; case Constants.CUSTOMPARTS_TORSO: _local3 = Constants.CUSTOMINDEX_TORSO; _local4 = Constants.SIZE_CUSTOM_TORSO; break; case Constants.CUSTOMPARTS_PANTS: _local3 = Constants.CUSTOMINDEX_PANTS; _local4 = Constants.SIZE_CUSTOM_PANTS; break; case Constants.CUSTOMPARTS_TORSODECAL: _local3 = Constants.CUSTOMINDEX_TORSODECAL; _local4 = Constants.SIZE_CUSTOM_TORSODECAL; _local6++; break; case Constants.CUSTOMPARTS_TORSOCOLOR: _local5 = getArchetypeFromPart(_arg1, mTorsoIndex); if (_local5 == -1){ return (0); }; _local2 = mArchData; _local3 = ((_local5 * Constants.SIZE_PER_ARCHETYPE) + Constants.CUSTOMINDEX_TORSOCOLOR); _local4 = Constants.SIZE_CUSTOM_TORSOCOLOR; break; case Constants.CUSTOMPARTS_PANTSCOLOR: _local5 = getArchetypeFromPart(_arg1, mPantsIndex); if (_local5 == -1){ return (0); }; _local2 = mArchData; _local3 = ((_local5 * Constants.SIZE_PER_ARCHETYPE) + Constants.CUSTOMINDEX_PANTSCOLOR); _local4 = Constants.SIZE_CUSTOM_PANTSCOLOR; break; case Constants.CUSTOMPARTS_DECALCOLOR: _local5 = getArchetypeFromPart(_arg1, mTorsoDecalIndex); if ((((((_local5 == -1)) || ((mTorsoDecalIndex == -1)))) || ((mTorsoDecalIndex == 28)))){ return (0); }; _local2 = mArchData; _local3 = ((_local5 * Constants.SIZE_PER_ARCHETYPE) + Constants.CUSTOMINDEX_DECALCOLOR); _local4 = Constants.SIZE_CUSTOM_DECALCOLOR; break; case Constants.CUSTOMPARTS_JACKETCOLOR: _local5 = getArchetypeFromPart(_arg1, mJacketIndex); if ((((_local5 == -1)) || ((mJacketIndex == -1)))){ return (0); }; _local2 = mArchData; _local3 = ((_local5 * Constants.SIZE_PER_ARCHETYPE) + Constants.CUSTOMINDEX_JACKETCOLOR); _local4 = Constants.SIZE_CUSTOM_JACKETCOLOR; break; case Constants.CUSTOMPARTS_FEET: _local3 = Constants.CUSTOMINDEX_FEET; _local4 = Constants.SIZE_CUSTOM_FEET; _local6++; break; case Constants.CUSTOMPARTS_FEETCOLOR: _local5 = getArchetypeFromPart(Constants.CUSTOMPARTS_FEET, mFeetIndex); if (_local5 == -1){ return (0); }; _local3 = Constants.CUSTOMINDEX_FEET; _local4 = Constants.SIZE_CUSTOM_FEET; break; }; _local7 = 0; while (_local7 < (_local4 * 8)) { if (checkIndex(_local2, _local7, _local3)){ _local6++; }; _local7++; }; return (_local6); } public function getMouthIndex(_arg1:Boolean=false){ var _local2:int; var _local3:int; var _local4:String; var _local5:Array; if (_arg1){ _local3 = SET_NORMAL; } else { _local3 = mCurrentMood; }; if (mArchetype >= ARCHETYPE_INTRO){ _local2 = ((ARCHETYPE_PREPPY * NUM_SETS) + _local3); } else { _local2 = ((mArchetype * NUM_SETS) + _local3); }; _local4 = mMouthSet[_local2]; _local5 = _local4.split(",", NUM_MOUTHS); return (int(_local5[mMouth.mCurImage])); } public function unloadEgo(){ var _local1:int; mImgHead = null; mImgEyes = null; mImgMouth = null; mImgHands = null; mImgHandsItems = null; mImgHair = null; mImgFacialHair = null; mImgHat = null; mImgGlasses = null; mImgHeadDecal = null; mImgHatDecal = null; mImgTorso = null; mImgPants = null; mImgTorsoDecal = null; mImgBack = null; mImgBack2 = null; mImgBelt = null; mImgBelt2 = null; mImgNeck = null; mImgJacket = null; mImgJacket2 = null; mImgFeet = null; _local1 = 0; while (_local1 < NUM_COLOR_PARTS) { mColors[_local1].curColor = -1; mColors[_local1].newColor = -1; _local1++; }; } public function renderHead(_arg1:mlib2_GL){ var _local2:Number; var _local3:Number; var _local4:int; mImgGroupHead1.setImageScale(mScale); mImgGroupHead2.setImageScale(mScale); mImgEyes.setImageScale(mScale); mImgMouth.setImageScale(mScale); if (mFacingRight){ _arg1.drawImage(mImgGroupHead1, ((mHead.mX - ((HEAD_WIDTH * mScale) / 2)) - (mGroupHead1XOff * mScale)), ((mHead.mY - ((HEAD_HEIGHT * mScale) / 2)) - (mGroupHead1YOff * mScale))); } else { _arg1.drawImage(mImgGroupHead1, ((mHead.mX + ((HEAD_WIDTH * mScale) / 2)) + (mGroupHead1XOff * mScale)), ((mHead.mY - ((HEAD_HEIGHT * mScale) / 2)) - (mGroupHead1YOff * mScale)), (mlib2_GL.RIGHT | mlib2_GL.TOP)); }; _local4 = (getEyeIndex() - 1); if (mFacingRight){ _local2 = ((_local4 % EYES_PER_ROW) * (EYES_WIDTH * mScale)); } else { _local2 = (((EYES_PER_ROW - (_local4 % EYES_PER_ROW)) - 1) * (EYES_WIDTH * mScale)); }; _local3 = (int((_local4 / EYES_PER_ROW)) * (EYES_HEIGHT * mScale)); _arg1.setClip((mHead.mX + (mEyesOffX * mScale)), (mHead.mY + (mEyesOffY * mScale)), (EYES_WIDTH * mScale), (EYES_HEIGHT * mScale)); _arg1.drawImage(mImgEyes, ((mHead.mX + (mEyesOffX * mScale)) - _local2), ((mHead.mY + (mEyesOffY * mScale)) - _local3)); _local4 = (getMouthIndex() - 1); if (mFacingRight){ _local2 = (_local4 * (MOUTH_WIDTH * mScale)); } else { _local2 = (((MOUTH_IMAGES - _local4) - 1) * (MOUTH_WIDTH * mScale)); }; _local3 = 0; _arg1.setClip((mHead.mX + (mMouthOffX * mScale)), (mHead.mY + (mMouthOffY * mScale)), (MOUTH_WIDTH * mScale), (MOUTH_HEIGHT * mScale)); _arg1.drawImage(mImgMouth, ((mHead.mX + (mMouthOffX * mScale)) - _local2), ((mHead.mY + (mMouthOffY * mScale)) - _local3)); _arg1.resetClip(); if (mFacingRight){ _arg1.drawImage(mImgGroupHead2, ((mHead.mX - ((HEAD_WIDTH * mScale) / 2)) - (mGroupHead2XOff * mScale)), ((mHead.mY - ((HEAD_HEIGHT * mScale) / 2)) - (mGroupHead2YOff * mScale))); } else { _arg1.drawImage(mImgGroupHead2, ((mHead.mX + ((HEAD_WIDTH * mScale) / 2)) + (mGroupHead2XOff * mScale)), ((mHead.mY - ((HEAD_HEIGHT * mScale) / 2)) - (mGroupHead2YOff * mScale)), (mlib2_GL.RIGHT | mlib2_GL.TOP)); }; } public function loadHands(){ mImgHands = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/hands.png"), !(mFacingRight)); mImgHands.addCompleteCallback(onEgoPartLoad); } public function setFacingRight(_arg1:Boolean){ var _local2:int; if (mFacingRight == _arg1){ return; }; mSetFaceOnLoad = _arg1; if ((((((mImgGroupHead1 == null)) || ((mImgGroupHead2 == null)))) || ((mImgGroupBody == null)))){ return; }; if (mImgEyes != null){ mImgEyes.flipImage(); }; if (mImgMouth != null){ mImgMouth.flipImage(); }; if (mImgHands != null){ mImgHands.flipImage(); }; if (mImgHandsItems != null){ mImgHandsItems.flipImage(); }; if (mImgFeet != null){ mImgFeet.flipImage(); }; _local2 = 0; while (_local2 < NUM_ITEMS) { if (mImgItems[_local2] != null){ mImgItems[_local2].flipImage(); }; _local2++; }; mBackHand.mFaceRight = _arg1; mFrontHand.mFaceRight = _arg1; mBackFoot.mFaceRight = _arg1; mFrontFoot.mFaceRight = _arg1; mHead.mFaceRight = _arg1; mTorso.mFaceRight = _arg1; mItem.mFaceRight = _arg1; mItem2.mFaceRight = _arg1; mItem3.mFaceRight = _arg1; mItem4.mFaceRight = _arg1; mItem5.mFaceRight = _arg1; mItem6.mFaceRight = _arg1; if (_arg1){ mEyesOffX = (EYES_OFFSET_X - (EYES_WIDTH / 2)); mMouthOffX = (MOUTH_OFFSET_X - (MOUTH_WIDTH / 2)); } else { mEyesOffX = ((-(EYES_OFFSET_X) - (EYES_WIDTH / 2)) - 2); mMouthOffX = ((-(MOUTH_OFFSET_X) - (MOUTH_WIDTH / 2)) - 2); }; mFacingRight = _arg1; mSetFaceOnLoad = mFacingRight; } public function loadTorso(_arg1:int){ mImgTorso = null; if ((((_arg1 < 0)) || ((_arg1 >= NUM_TORSOS)))){ return; }; mColors[COLORINDEX_TORSO].curColor = -1; mImgTorso = mlib2_Bitmap.createImage(getFileString(8, _arg1), !(mFacingRight)); mImgTorso.addCompleteCallback(onEgoPartLoad); mTorsoX = getCustomizationOffset(8, _arg1, 0); mTorsoY = getCustomizationOffset(8, _arg1, 1); if (!mFacingRight){ mTorsoX = -(mTorsoX); }; mTorsoBehindBelt = torsoBehindBelt(_arg1); } public function loadCustomization(_arg1:XML){ var _local2:Boolean; var _local3:int; var _local4:int; _local2 = false; if ((((_arg1.Hat == "0")) && ((_arg1.HatDecal == "0")))){ return; }; mCustomXML = _arg1; mUserName = _arg1.user; mName = mUserName; mPassword = _arg1.password; mArchetype = int(_arg1.archetype.@value); _local3 = 0; while (_local3 < NUM_ATTRIBUTES) { mAttributes[_local3] = _arg1.attributes[_local3]; _local3++; }; setMood(); mIsMale = (int(_arg1.gender.@value) == 0); mHairIndex = int(_arg1.Hair); mFacialHairIndex = int(_arg1.FacialHair); mHatIndex = int(_arg1.Hat); mGlassesIndex = int(_arg1.Glasses); mHeadDecalIndex = int(_arg1.aHeadDecal); mHatDecalIndex = int(_arg1.HatDecal); mTorsoIndex = int(_arg1.Torso); mPantsIndex = int(_arg1.Pants); mTorsoDecalIndex = int(_arg1.Decal); mBackIndex = int(_arg1.Back); mBeltIndex = int(_arg1.Belt); mNeckIndex = int(_arg1.Neck); mJacketIndex = int(_arg1.Jacket); mFeetIndex = int(_arg1.Feet); mColors[COLORINDEX_SKIN].curColor = -1; mColors[COLORINDEX_SKIN].newColor = _arg1.Skin.@color; mColors[COLORINDEX_HAIR].newColor = _arg1.Hair.@color; mColors[COLORINDEX_FACIALHAIR].newColor = _arg1.Hair.@color; mColors[COLORINDEX_HAT].newColor = _arg1.Hat.@color; mColors[COLORINDEX_TORSO].newColor = _arg1.Torso.@color; mColors[COLORINDEX_TORSODECAL].newColor = _arg1.Decal.@color; mColors[COLORINDEX_PANTS].newColor = _arg1.Pants.@color; mColors[COLORINDEX_JACKET].newColor = _arg1.Jacket.@color; mColors[COLORINDEX_FEET].newColor = _arg1.Feet.@color; _local3 = 0; while (_local3 < _arg1.customData.length()) { mCustomData[_local3] = _arg1.customData[_local3]; _local3++; }; _local3 = 0; while (_local3 < Context.NUM_STATS) { mContext.mStats[_local3] = int(_arg1.stats[_local3].@value); mContext.mTempStats[_local3] = int(_arg1.tempstats[_local3]); _local3++; }; _local3 = 0; while (_local3 < Context.NUM_ARCHS) { mContext.mLockedArchs[_local3] = ((_arg1.lockedArchs[_local3])!=0) ? true : false; _local3++; }; _local3 = 0; while (_local3 < Context.NUM_FOODS) { mContext.mLockedFoods[_local3] = ((_arg1.lockedFoods[_local3])!=0) ? true : false; _local3++; }; _local3 = 0; while (_local3 < Context.NUM_TOYS) { mContext.mLockedToys[_local3] = ((_arg1.lockedToys[_local3])!=0) ? true : false; _local3++; }; _local3 = 0; while (_local3 < Context.NUM_GIFTS) { mContext.mLockedComps[_local3] = ((_arg1.lockedComps[_local3])!=0) ? true : false; _local3++; }; mZip = _arg1.zip; _local4 = int(_arg1.numBuddies); mAge = int(_arg1.age); mRelationshipStatus = int(_arg1.relationshipStatus); mEthnicity = int(_arg1.ethnicity); mGender = int(_arg1.gender.@value); mOrientation = int(_arg1.orientation); mGroupAffiliation = int(_arg1.groupAffiliation); mName = _arg1.name; mLoc = _arg1.loc; mLocState = _arg1.state; mLocCity = _arg1.city; mBirthdate = _arg1.dob; mPrivateBirth = (_arg1.privateBirth == 0); mLevel = _arg1.stats[0]; mBuddyStatus = int(_arg1.AddedBuddyStatus); mUid = int(_arg1.uid); mEgoLoadStep = 0; mEgoLoadingParts = true; loadEgoParts(); } public function changeToArchetype(_arg1:Boolean){ var _local2:int; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; var _local8:int; var _local9:int; var _local10:int; var _local11:int; var _local12:int; var _local13:int; var _local14:int; var _local15:int; var _local16:int; var _local17:int; var _local18:int; var _local19:int; var _local20:int; var _local21:int; var _local22:int; var _local23:int; var _local24:int; _local23 = ((mArchetype * Constants.SIZE_PER_ARCHETYPE) * 2); if (mIsMale){ _local23 = (_local23 + Constants.SIZE_PER_ARCHETYPE); }; _local24 = 0; _local24 = (_local23 + Constants.CUSTOMINDEX_TORSO); _local2 = getNextIndex(mArchData, 0, Constants.SIZE_CUSTOM_TORSO, 0, true, _local24); _local3 = getRandomColorIndex(Constants.CUSTOMPARTS_TORSOCOLOR, _local2); if (mArchetype == Ego.ARCHETYPE_INTRO){ _local3 = Context.BODYCOLOR_WHITE1; }; _local24 = (_local23 + Constants.CUSTOMINDEX_PANTS); _local4 = getNextIndex(mArchData, 0, Constants.SIZE_CUSTOM_PANTS, 0, true, _local24); _local5 = getRandomColorIndex(Constants.CUSTOMPARTS_PANTSCOLOR, _local4); if (mArchetype == Ego.ARCHETYPE_INTRO){ _local4 = 12; _local5 = Context.BODYCOLOR_BLUE3; }; _local24 = (_local23 + Constants.CUSTOMINDEX_TORSODECAL); _local6 = getNextIndex(mArchData, 0, Constants.SIZE_CUSTOM_TORSODECAL, -1, true, _local24); _local7 = getRandomColorIndex(Constants.CUSTOMPARTS_DECALCOLOR, _local6); _local24 = (_local23 + Constants.CUSTOMINDEX_JACKET); _local8 = getNextIndex(mArchData, 0, Constants.SIZE_CUSTOM_JACKET, -1, true, _local24); _local9 = getRandomColorIndex(Constants.CUSTOMPARTS_JACKETCOLOR, _local8); _local24 = (_local23 + Constants.CUSTOMINDEX_BACK); _local10 = getNextIndex(mArchData, 0, Constants.SIZE_CUSTOM_BACK, -1, true, _local24); _local24 = (_local23 + Constants.CUSTOMINDEX_BELT); _local11 = getNextIndex(mArchData, 0, Constants.SIZE_CUSTOM_BELT, -1, true, _local24); _local24 = (_local23 + Constants.CUSTOMINDEX_NECK); _local12 = getNextIndex(mArchData, 0, Constants.SIZE_CUSTOM_NECK, -1, true, _local24); _local24 = (_local23 + Constants.CUSTOMINDEX_HAIR); _local13 = getNextIndex(mArchData, 0, Constants.SIZE_CUSTOM_HAIR, 0, true, _local24); _local24 = (_local23 + Constants.CUSTOMINDEX_HAIRCOLOR); _local14 = getNextIndex(mArchData, 0, Constants.SIZE_CUSTOM_HAIRCOLOR, 0, true, _local24); _local24 = (_local23 + Constants.CUSTOMINDEX_HAT); _local15 = getNextIndex(mArchData, 0, Constants.SIZE_CUSTOM_HAT, -1, true, _local24); _local24 = (_local23 + Constants.CUSTOMINDEX_HATCOLOR); _local16 = getNextIndex(mArchData, 0, Constants.SIZE_CUSTOM_HATCOLOR, 0, true, _local24); _local24 = (_local23 + Constants.CUSTOMINDEX_FACIALHAIR); _local17 = getNextIndex(mArchData, 0, Constants.SIZE_CUSTOM_FACIALHAIR, -1, true, _local24); _local24 = (_local23 + Constants.CUSTOMINDEX_GLASSES); _local18 = getNextIndex(mArchData, 0, Constants.SIZE_CUSTOM_GLASSES, -1, true, _local24); _local24 = (_local23 + Constants.CUSTOMINDEX_HEADDECAL); _local19 = getNextIndex(mArchData, 0, Constants.SIZE_CUSTOM_HEADDECAL, -1, true, _local24); _local24 = (_local23 + Constants.CUSTOMINDEX_HATDECAL); _local20 = getNextIndex(mArchData, 0, Constants.SIZE_CUSTOM_HATDECAL, -1, true, _local24); _local24 = (_local23 + Constants.CUSTOMINDEX_FEET); _local21 = getNextIndex(mArchData, 0, Constants.SIZE_CUSTOM_FEET, 0, true, _local24); _local24 = (_local23 + Constants.CUSTOMINDEX_FEETCOLOR); _local22 = getNextIndex(mArchData, 0, Constants.SIZE_CUSTOM_FEETCOLOR, 0, true, _local24); if (mArchetype == Ego.ARCHETYPE_INTRO){ _local21 = 4; _local22 = Context.BODYCOLOR_BROWN1; }; if (_arg1){ mTorsoIndex = _local2; mPantsIndex = _local4; mTorsoDecalIndex = _local6; mJacketIndex = _local8; mBackIndex = _local10; mBeltIndex = _local11; mNeckIndex = _local12; mHairIndex = _local13; mHatIndex = _local15; mFacialHairIndex = _local17; mGlassesIndex = _local18; mHeadDecalIndex = _local19; mHatDecalIndex = _local20; mFeetIndex = _local21; mColors[COLORINDEX_TORSO].newColor = _local3; mColors[COLORINDEX_PANTS].newColor = _local5; mColors[COLORINDEX_TORSODECAL].newColor = _local7; mColors[COLORINDEX_JACKET].newColor = _local9; mColors[COLORINDEX_HAIR].newColor = _local14; mColors[COLORINDEX_FACIALHAIR].newColor = _local14; mColors[COLORINDEX_HAT].newColor = _local16; mColors[COLORINDEX_FEET].newColor = _local22; } else { mColors[COLORINDEX_TORSO].storedColor = mColors[COLORINDEX_TORSO].curColor; mColors[COLORINDEX_PANTS].storedColor = mColors[COLORINDEX_PANTS].curColor; mColors[COLORINDEX_TORSODECAL].storedColor = mColors[COLORINDEX_TORSODECAL].curColor; mColors[COLORINDEX_JACKET].storedColor = mColors[COLORINDEX_JACKET].curColor; mColors[COLORINDEX_HAIR].storedColor = mColors[COLORINDEX_HAIR].curColor; mColors[COLORINDEX_HAT].storedColor = mColors[COLORINDEX_HAT].curColor; mColors[COLORINDEX_FEET].storedColor = mColors[COLORINDEX_FEET].curColor; loadTorso(_local2); loadPants(_local4); loadTorsoDecal(_local6); loadJacket(_local8); loadBack(_local10); loadBelt(_local11); loadNeck(_local12); loadHair(_local13); loadHat(_local15); loadFacialHair(_local17); loadGlasses(_local18); loadHeadDecal(_local19); loadHatDecal(_local20); loadFeet(_local21); mColors[COLORINDEX_TORSO].newColor = _local3; mColors[COLORINDEX_PANTS].newColor = _local5; mColors[COLORINDEX_TORSODECAL].newColor = _local7; mColors[COLORINDEX_JACKET].newColor = _local9; mColors[COLORINDEX_HAIR].newColor = _local14; mColors[COLORINDEX_FACIALHAIR].newColor = _local14; mColors[COLORINDEX_HAT].newColor = _local16; mColors[COLORINDEX_FEET].newColor = _local22; }; } public function checkIndex(_arg1:Array, _arg2:int, _arg3:int=0):Boolean{ var _local4:int; var _local5:int; _local4 = _arg1[(_arg3 + int((_arg2 / 8)))]; _local5 = (_arg2 % 8); if ((((_arg2 == -1)) || (!(((_local4 & (1 << _local5)) == 0))))){ return (true); }; return (false); } public function startNextAnimation(){ var _local1:int; var _local2:int; if (mCurrentAnim >= (ANIMLIST_SIZE - 1)){ mCurrentAnim = (ANIMLIST_SIZE - 2); }; if (mAnimList[mCurrentAnim] == Constants.ANIM_TRIGGER){ if (mAction == Constants.ACTION_HUG_CONCEDE){ mOtherEgo.changeAction(Constants.ACTION_HUG_END, true, false); }; if (mAction == Constants.ACTION_HIGHFIVE_CONCEDE){ mOtherEgo.changeAction(Constants.ACTION_HIGHFIVE_END, true, false); }; if (mAction == Constants.ACTION_FISTPOUND_CONCEDE){ mOtherEgo.changeAction(Constants.ACTION_FISTPOUND_END, true, false); }; mCurrentAnim++; }; if (mAnimList[mCurrentAnim] == Constants.ANIM_LOOP){ if ((((mState == STATE_IDLE)) || ((mLoopCount > 0)))){ mLoopCount--; }; if ((((mLoopCount > 0)) || (!((mState == STATE_IDLE))))){ mCurrentAnim--; } else { mCurrentAnim++; }; }; if (mAnimList[(mCurrentAnim + 1)] == Constants.ANIM_LOOPDONE){ mFlags = (mFlags | FLAG_DONE); }; if (mAnimList[mCurrentAnim] == Constants.ANIM_LOOPDONE){ mCurrentAnim--; }; _local1 = mAnimList[mCurrentAnim]; if (_local1 == Constants.ANIM_DONE){ mFlags = (mFlags | FLAG_DONE); return; }; if (_local1 == Constants.ANIM_WAIT){ mFlags = (mFlags | FLAG_WAITING); if (mCurrentAnim > 0){ return; }; _local1 = Constants.ANIM_STAND; }; if (mStandAnim != null){ loadAnimXML(mStandAnim); }; } public function loadHatDecal(_arg1:int){ mImgHatDecal = null; if ((((_arg1 < 0)) || ((_arg1 >= NUM_HATDECALS)))){ return; }; mImgHatDecal = mlib2_Bitmap.createImage(getFileString(7, _arg1), !(mFacingRight)); mImgHatDecal.addCompleteCallback(onEgoPartLoad); mHatDecalX = getCustomizationOffset(7, _arg1, 0); mHatDecalY = getCustomizationOffset(7, _arg1, 1); if (!mFacingRight){ mHatDecalX = -(mHatDecalX); }; } public function getFileString(_arg1:int, _arg2:int):String{ var _local3:String; _local3 = ""; if (_arg2 == -1){ return (""); }; switch (_arg1){ case 0: _local3 = (RESOURCE_URL + "res/ego_custom/hair/img_"); break; case 1: _local3 = (RESOURCE_URL + "res/ego_custom/facial_hair/img_"); break; case 3: _local3 = (RESOURCE_URL + "res/ego_custom/hats/img_"); _arg2++; break; case 5: _local3 = (RESOURCE_URL + "res/ego_custom/glasses/img_"); break; case 6: _local3 = (RESOURCE_URL + "res/ego_custom/head_decals/img_"); break; case 7: _local3 = (RESOURCE_URL + "res/ego_custom/hat_decals/img_"); _arg2++; break; case 8: _local3 = (RESOURCE_URL + "res/ego_custom/torsos/img_"); _arg2++; break; case 10: _local3 = (RESOURCE_URL + "res/ego_custom/pants/img_"); _arg2++; break; case 12: _local3 = (RESOURCE_URL + "res/ego_custom/torso_decals/img_"); _arg2++; break; case 14: _local3 = (RESOURCE_URL + "res/ego_custom/back_decals/img_"); break; case 15: _local3 = (RESOURCE_URL + "res/ego_custom/belts/img_"); break; case 16: _local3 = (RESOURCE_URL + "res/ego_custom/neck_decals/img_"); _arg2++; break; case 17: _local3 = (RESOURCE_URL + "res/ego_custom/jackets/img_"); _arg2++; break; case 19: _local3 = (RESOURCE_URL + "res/ego_custom/feet/img_"); break; }; if (_arg2 < 10){ _local3 = (((_local3 + "0") + _arg2) + ".png"); } else { _local3 = ((_local3 + _arg2) + ".png"); }; return (_local3); } public function loadAnimXML(_arg1:XML){ var _local2:Array; var _local3:int; _local2 = new Array(); _local2.push(mHead.changeAnim(_arg1)); _local2.push(mEyes.changeAnim(_arg1)); _local2.push(mMouth.changeAnim(_arg1)); _local2.push(mTorso.changeAnim(_arg1)); _local2.push(mBackHand.changeAnim(_arg1)); _local2.push(mFrontHand.changeAnim(_arg1)); _local2.push(mBackFoot.changeAnim(_arg1)); _local2.push(mFrontFoot.changeAnim(_arg1)); _local2.push(mItem.changeAnim(_arg1)); _local2.push(mItem2.changeAnim(_arg1)); _local2.push(mItem3.changeAnim(_arg1)); _local2.push(mItem4.changeAnim(_arg1)); _local2.push(mItem5.changeAnim(_arg1)); _local2.push(mItem6.changeAnim(_arg1)); mAnimTime = 0; while (_local3 < _local2.length) { if (_local2[_local3] > mAnimTime){ mAnimTime = _local2[_local3]; }; _local3++; }; mAnimTimer.setExpiration(mAnimTime); mAnimTimer.reset(); tickParts(0, mAnimTimer.getElapsed()); mLoadingAnim = false; } public function getHatHair(_arg1:int):int{ var _local2:int; switch (_arg1){ default: _local2 = -2; break; case 0: _local2 = (mIsMale) ? 1 : 0; break; case 1: _local2 = (mIsMale) ? 5 : 4; break; case 2: _local2 = (mIsMale) ? 7 : 6; break; case 3: _local2 = (mIsMale) ? 12 : 9; break; case 4: _local2 = (mIsMale) ? 32 : 46; break; case 5: _local2 = (mIsMale) ? 63 : 3; break; case 6: _local2 = (mIsMale) ? 34 : 33; break; case 7: _local2 = (mIsMale) ? 28 : 8; break; case 8: _local2 = (mIsMale) ? 89 : 93; break; case 9: _local2 = (mIsMale) ? -1 : 46; break; case 10: _local2 = (mIsMale) ? 32 : 6; break; case 11: _local2 = (mIsMale) ? 19 : -1; break; case 12: _local2 = (mIsMale) ? 63 : 83; break; case 13: _local2 = (mIsMale) ? 32 : 46; break; case 14: _local2 = (mIsMale) ? 32 : 6; break; case 15: _local2 = (mIsMale) ? 32 : 6; break; case 16: _local2 = (mIsMale) ? 32 : 46; break; case 17: _local2 = (mIsMale) ? 11 : 13; break; case 18: _local2 = (mIsMale) ? -1 : -1; break; case 19: _local2 = (mIsMale) ? 32 : 46; break; case 20: _local2 = (mIsMale) ? 5 : 4; break; case 21: _local2 = (mIsMale) ? 5 : 4; break; case 22: _local2 = (mIsMale) ? -1 : 6; break; case 23: _local2 = (mIsMale) ? -1 : -1; break; case 24: _local2 = (mIsMale) ? 70 : 0; break; case 25: _local2 = (mIsMale) ? -1 : 84; break; case 26: _local2 = (mIsMale) ? -1 : -1; break; case 27: _local2 = (mIsMale) ? 35 : -1; break; case 28: _local2 = (mIsMale) ? -1 : -1; break; case 29: _local2 = (mIsMale) ? -2 : -2; break; case 30: _local2 = (mIsMale) ? -2 : -2; break; case 31: _local2 = (mIsMale) ? -2 : -2; break; case 32: _local2 = (mIsMale) ? -1 : -2; break; case 33: _local2 = (mIsMale) ? -2 : -2; break; case 34: _local2 = (mIsMale) ? -2 : -2; break; case 35: _local2 = (mIsMale) ? -2 : -2; break; case 36: _local2 = (mIsMale) ? -2 : -2; break; case 37: _local2 = (mIsMale) ? -1 : -1; break; case 38: _local2 = (mIsMale) ? -2 : -2; break; case 39: _local2 = (mIsMale) ? -1 : -1; break; case 40: _local2 = (mIsMale) ? -2 : -2; break; case 41: _local2 = (mIsMale) ? -2 : -2; break; case 42: _local2 = (mIsMale) ? -2 : -2; break; case 43: _local2 = (mIsMale) ? -1 : -1; break; case 44: _local2 = (mIsMale) ? -1 : -1; break; }; return (_local2); } public function renderSeperate(_arg1:mlib2_GL, _arg2:Boolean){ if (((!(mShow)) || (!(isLoaded())))){ return; }; renderWithSorting(_arg1, this, -1, _arg2); renderWithSorting(_arg1, this, 0, _arg2); renderWithSorting(_arg1, this, 1, _arg2); } public function setLikability(){ mLikability = 0; if (mIsMale == mOtherEgo.mIsMale){ if (compare(ATT_SOCIAL2) == 2){ mLikability = (mLikability - 1); }; if (compare(ATT_MIND1) == 0){ mLikability = (mLikability + 1); }; if (compare(ATT_MIND2) == 0){ mLikability = (mLikability + 1); }; } else { if (compare(ATT_SOCIAL2) == 2){ mLikability = (mLikability + 1); }; if (mOtherEgo.getAttributeValue(ATT_PHYSICAL1) == 1){ mLikability = (mLikability + 1); }; }; if (getAttributeValue(ATT_SOCIAL1) == 1){ mLikability = (mLikability + 1); }; if (mOtherEgo.getAttributeValue(ATT_SOCIAL1) == 1){ mLikability = (mLikability + 1); }; if (compare(ATT_MIND1) == 2){ mLikability = (mLikability - 1); }; if (compare(ATT_MIND2) == 2){ mLikability = (mLikability - 1); }; } public function compare(_arg1:int):int{ return (Math.abs((mAttributes[_arg1] - mOtherEgo.mAttributes[_arg1]))); } function xmlAnimLoaded(_arg1:Event){ mAnimXML = XML(myLoader.data); loadAnimXML(mAnimXML); mStandAnim = mAnimXML; } public function getHighestIndex(_arg1:Array, _arg2:int):int{ var _local3:int; var _local4:int; _local3 = 0; _local4 = 0; while (_local4 < _arg2) { if (_arg1[_local4] > _arg1[_local3]){ _local3 = _local4; }; _local4++; }; return (_local3); } public function dummyCallback(_arg1:Event, _arg2:String){ } public function setSimilarity(){ var _local1:int; var _local2:int; mSimilarity = 0; _local2 = 0; while (_local2 < NUM_ATTRIBUTES) { _local1 = compare(_local2); if (_local1 == 0){ mSimilarity++; } else { if (_local1 == 2){ mSimilarity--; }; }; _local2++; }; } public function setMainAttributes(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int){ var _local6:int; mAttributes[0] = (_arg1 + 1); mAttributes[1] = (_arg2 + 1); mAttributes[2] = (_arg3 + 1); mAttributes[3] = (_arg4 + 1); mAttributes[4] = (_arg5 + 1); _local6 = 0; while (_local6 < 5) { mGrowth[_local6] = (ATT_SCALE / 2); _local6++; }; mPhysicalGrowth[0] = 0; mPhysicalGrowth[1] = 0; mPhysicalGrowth[2] = 0; } public function setBubbleMessage(_arg1:String, _arg2:Boolean=false){ mBubbleText = mContext.mBlueFont.generateWordWrap(_arg1, 100); mBubbleTimer.reset(); mRenderBubble = true; } public function getAttributeValue(_arg1:int):int{ switch (_arg1){ case ATT_SOCIAL1: case ATT_SOCIAL2: case ATT_PHYSICAL1: case ATT_MIND1: case ATT_MIND2: default: return ((mAttributes[_arg1] - 1)); case ATT_EMOTION1: case ATT_EMOTION2: case ATT_EMOTION3: return ((mAttributes[_arg1] - 2)); }; } public function renderEgoHeadAvatar(_arg1:mlib2_GL, _arg2:int, _arg3:int){ var _local4:Number; var _local5:Number; var _local6:int; var _local7:int; mImgGroupHead1.setImageScale(1); mImgGroupHead2.setImageScale(1); mImgEyes.setImageScale(1); mImgMouth.setImageScale(1); if (mFacingRight){ _arg1.drawImage(mImgGroupHead1, ((_arg2 - (HEAD_WIDTH / 2)) - mGroupHead1XOff), ((_arg3 - (HEAD_HEIGHT / 2)) - mGroupHead1YOff)); } else { _arg1.drawImage(mImgGroupHead1, ((_arg2 + (HEAD_WIDTH / 2)) + mGroupHead1XOff), ((_arg3 - (HEAD_HEIGHT / 2)) - mGroupHead1YOff), (mlib2_GL.RIGHT | mlib2_GL.TOP)); }; _local7 = (getEyeIndex(true) - 1); if (mFacingRight){ _local4 = ((_local7 % EYES_PER_ROW) * EYES_WIDTH); } else { _local4 = (((EYES_PER_ROW - (_local7 % EYES_PER_ROW)) - 1) * EYES_WIDTH); }; _local5 = (int((_local7 / EYES_PER_ROW)) * EYES_HEIGHT); _arg1.setClip((_arg2 + mEyesOffX), (_arg3 + mEyesOffY), EYES_WIDTH, EYES_HEIGHT); _arg1.drawImage(mImgEyes, ((_arg2 + mEyesOffX) - _local4), ((_arg3 + mEyesOffY) - _local5)); _local7 = (getMouthIndex(true) - 1); if (mFacingRight){ _local4 = (_local7 * MOUTH_WIDTH); } else { _local4 = (((MOUTH_IMAGES - _local7) - 1) * MOUTH_WIDTH); }; _local5 = 0; _arg1.setClip((_arg2 + mMouthOffX), (_arg3 + mMouthOffY), MOUTH_WIDTH, MOUTH_HEIGHT); _arg1.drawImage(mImgMouth, ((_arg2 + mMouthOffX) - _local4), ((_arg3 + mMouthOffY) - _local5)); _arg1.resetClip(); if (mFacingRight){ _arg1.drawImage(mImgGroupHead2, ((_arg2 - (HEAD_WIDTH / 2)) - mGroupHead2XOff), ((_arg3 - (HEAD_HEIGHT / 2)) - mGroupHead2YOff)); } else { _arg1.drawImage(mImgGroupHead2, ((_arg2 + (HEAD_WIDTH / 2)) + mGroupHead2XOff), ((_arg3 - (HEAD_HEIGHT / 2)) - mGroupHead2YOff), (mlib2_GL.RIGHT | mlib2_GL.TOP)); }; } public function loadJacket(_arg1:int){ mImgJacket = null; mImgJacket2 = null; if ((((_arg1 < 0)) || ((_arg1 >= NUM_JACKETS)))){ return; }; mColors[COLORINDEX_JACKET].curColor = -1; mImgJacket = mlib2_Bitmap.createImage(getFileString(17, _arg1), !(mFacingRight)); mImgJacket.addCompleteCallback(onEgoPartLoad); mJacketX = getCustomizationOffset(17, _arg1, 0); mJacketY = getCustomizationOffset(17, _arg1, 1); if (!mFacingRight){ mJacketX = -(mJacketX); }; if (_arg1 != 36){ mImgJacket2 = mlib2_Bitmap.createImage(getFileString(17, (_arg1 + 1)), !(mFacingRight)); mJacket2X = getCustomizationOffset(17, (_arg1 + 1), 0); mJacket2Y = getCustomizationOffset(17, (_arg1 + 1), 1); if (!mFacingRight){ mJacket2X = -(mJacket2X); }; } else { mImgJacket2 = null; }; } public function initState(_arg1:int){ if (_arg1 <= STATE_PLAYING){ mFlags = 0; } else { mFlags = (mFlags & ~(FLAG_DONE)); }; switch (_arg1){ case STATE_IDLE: if (mAction == Constants.ACTION_WALK_NORMAL){ changeAction(mAction, false, false); } else { changeAction(Constants.ACTION_STAND, false, false); }; break; case STATE_INTERACT: break; }; mState = _arg1; mNextState = STATE_IDLE; } public function loadGlasses(_arg1:int){ mImgGlasses = null; if ((((_arg1 < 0)) || ((_arg1 >= NUM_GLASSES)))){ return; }; mImgGlasses = mlib2_Bitmap.createImage(getFileString(5, _arg1), !(mFacingRight)); mImgGlasses.addCompleteCallback(onEgoPartLoad); mGlassesX = getCustomizationOffset(5, _arg1, 0); mGlassesY = getCustomizationOffset(5, _arg1, 1); if (!mFacingRight){ mGlassesX = -(mGlassesX); }; } public function triggerBlend(_arg1:int){ mBlendAnim = _arg1; loadBlendAnimByNumber(_arg1); } private function isBodyGroupReady(){ if (((!((mTorsoIndex == -1))) && ((((mImgTorso == null)) || (!(mImgTorso.mIsLoaded)))))){ return (false); }; if (((!((mPantsIndex == -1))) && ((((mImgPants == null)) || (!(mImgPants.mIsLoaded)))))){ return (false); }; if (((!((mTorsoDecalIndex == -1))) && ((((mImgTorsoDecal == null)) || (!(mImgTorsoDecal.mIsLoaded)))))){ return (false); }; if (((!((mBackIndex == -1))) && ((((mImgBack == null)) || (!(mImgBack.mIsLoaded)))))){ return (false); }; if (((!((mBeltIndex == -1))) && ((((mImgBelt == null)) || (!(mImgBelt.mIsLoaded)))))){ return (false); }; if (((!((mNeckIndex == -1))) && ((((mImgNeck == null)) || (!(mImgNeck.mIsLoaded)))))){ return (false); }; if (((!((mJacketIndex == -1))) && ((((mImgJacket == null)) || (!(mImgJacket.mIsLoaded)))))){ return (false); }; if (((!((mFeetIndex == -1))) && ((((mImgFeet == null)) || (!(mImgFeet.mIsLoaded)))))){ return (false); }; return (true); } public function reload(){ if (!isLoaded()){ trace("RELOADING"); mImgHead = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/head.png"), !(mFacingRight)); mImgHands = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/hands.png"), !(mFacingRight)); mImgHandsItems = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/hands_items.png"), !(mFacingRight)); if (mIsMale){ mImgEyes = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/eyes_male.png"), !(mFacingRight)); mImgMouth = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/mouth_male.png"), !(mFacingRight)); mImgChin = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/chin_male.png"), !(mFacingRight)); } else { mImgEyes = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/eyes_female.png"), !(mFacingRight)); mImgMouth = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/mouth_female.png"), !(mFacingRight)); mImgChin = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/chin_female.png"), !(mFacingRight)); }; }; loadBack(mBackIndex); loadBelt(mBeltIndex); loadTorso(mTorsoIndex); loadPants(mPantsIndex); loadTorsoDecal(mTorsoDecalIndex); loadNeck(mNeckIndex); loadJacket(mJacketIndex); loadHair(mHairIndex); loadHat(mHatIndex); loadFacialHair(mFacialHairIndex); loadGlasses(mGlassesIndex); loadHeadDecal(mHeadDecalIndex); loadHatDecal(mHatDecalIndex); loadFeet(mFeetIndex); if (mColors[COLORINDEX_TORSO].storedColor != -1){ mColors[COLORINDEX_TORSO].newColor = mColors[COLORINDEX_TORSO].storedColor; }; if (mColors[COLORINDEX_PANTS].storedColor != -1){ mColors[COLORINDEX_PANTS].newColor = mColors[COLORINDEX_PANTS].storedColor; }; if (mColors[COLORINDEX_TORSODECAL].storedColor != -1){ mColors[COLORINDEX_TORSODECAL].newColor = mColors[COLORINDEX_TORSODECAL].storedColor; }; if (mColors[COLORINDEX_JACKET].storedColor != -1){ mColors[COLORINDEX_JACKET].newColor = mColors[COLORINDEX_JACKET].storedColor; }; if (mColors[COLORINDEX_HAIR].storedColor != -1){ mColors[COLORINDEX_HAIR].newColor = mColors[COLORINDEX_HAIR].storedColor; }; if (mColors[COLORINDEX_HAT].storedColor != -1){ mColors[COLORINDEX_HAT].newColor = mColors[COLORINDEX_HAT].storedColor; }; if (mColors[COLORINDEX_FEET].storedColor != -1){ mColors[COLORINDEX_FEET].newColor = mColors[COLORINDEX_FEET].storedColor; }; mColors[COLORINDEX_TORSO].storedColor = -1; mColors[COLORINDEX_PANTS].storedColor = -1; mColors[COLORINDEX_TORSODECAL].storedColor = -1; mColors[COLORINDEX_JACKET].storedColor = -1; mColors[COLORINDEX_HAIR].storedColor = -1; mColors[COLORINDEX_HAT].storedColor = -1; mColors[COLORINDEX_FEET].storedColor = -1; } public function getEventBonus(_arg1:int):int{ var _local2:int; var _local3:int; _local2 = 0; _local3 = getEventValue(IMAGETYPE_BACK); if ((_local3 >> 4) == _arg1){ _local2 = (_local2 + (_local3 & 15)); }; _local3 = getEventValue(IMAGETYPE_BELT); if ((_local3 >> 4) == _arg1){ _local2 = (_local2 + (_local3 & 15)); }; _local3 = getEventValue(IMAGETYPE_JACKET); if ((_local3 >> 4) == _arg1){ _local2 = (_local2 + (_local3 & 15)); }; _local3 = getEventValue(IMAGETYPE_NECK); if ((_local3 >> 4) == _arg1){ _local2 = (_local2 + (_local3 & 15)); }; _local3 = getEventValue(IMAGETYPE_TORSO); if ((_local3 >> 4) == _arg1){ _local2 = (_local2 + (_local3 & 15)); }; _local3 = getEventValue(IMAGETYPE_PANTS); if ((_local3 >> 4) == _arg1){ _local2 = (_local2 + (_local3 & 15)); }; _local3 = getEventValue(IMAGETYPE_DECAL); if ((_local3 >> 4) == _arg1){ _local2 = (_local2 + (_local3 & 15)); }; _local3 = getEventValue(IMAGETYPE_HAT); if ((_local3 >> 4) == _arg1){ _local2 = (_local2 + (_local3 & 15)); }; _local3 = getEventValue(IMAGETYPE_GLASSES); if ((_local3 >> 4) == _arg1){ _local2 = (_local2 + (_local3 & 15)); }; _local3 = getEventValue(IMAGETYPE_FEET); if ((_local3 >> 4) == _arg1){ _local2 = (_local2 + (_local3 & 15)); }; return (_local2); } private function onEnterAnimFrame(_arg1:Event){ var _local2:MovieClip; _local2 = MovieClip(_arg1.target); if (mFacingRight){ _local2.x = (mHead.mX - 25); _local2.scaleX = mScale; } else { _local2.x = (mHead.mX + 25); _local2.scaleX = -(mScale); }; _local2.y = (mHead.mY - 15); _local2.scaleY = mScale; if ((((mCurrentMovie == null)) || (!((_local2 == mCurrentMovie))))){ return; }; if (_local2.currentLabel != mCurrentLabel){ _local2.stop(); if (mCurrentLabel != "appear"){ _local2.visible = false; }; mAnimPlaying = false; mCurrentLabel = ""; }; } public function isLoaded():Boolean{ if (mEgoLoadingParts){ return (false); }; if ((((mImgHead == null)) || ((mImgHead.bitmapData == null)))){ return (false); }; if ((((mImgChin == null)) || ((mImgChin.bitmapData == null)))){ return (false); }; if ((((mImgEyes == null)) || ((mImgEyes.bitmapData == null)))){ return (false); }; if ((((mImgMouth == null)) || ((mImgMouth.bitmapData == null)))){ return (false); }; if ((((mImgHands == null)) || ((mImgHands.bitmapData == null)))){ return (false); }; if ((((mImgHandsItems == null)) || ((mImgHandsItems.bitmapData == null)))){ return (false); }; if ((((mImgTorso == null)) || ((mImgTorso.bitmapData == null)))){ return (false); }; if ((((mImgFeet == null)) || ((mImgFeet.bitmapData == null)))){ return (false); }; return (true); } public function renderItem(_arg1:mlib2_GL, _arg2:Curve){ if (_arg2 == null){ return; }; if (_arg2.mCurImage == 0xFF){ return; }; if (_arg2.mNumFrames <= 0){ return; }; if (mImgItems[_arg2.mCurImage] == null){ loadItemImage(_arg2.mCurImage); return; }; mImgItems[_arg2.mCurImage].setImageScale(mScale); _arg1.drawImage(mImgItems[_arg2.mCurImage], _arg2.mX, _arg2.mY, (mlib2_GL.HCENTER | mlib2_GL.VCENTER)); } private function drawToImage(_arg1:mlib2_Bitmap, _arg2:mlib2_Bitmap, _arg3:int, _arg4:int){ var _local5:Rectangle; var _local6:Point; _local5 = new Rectangle(0, 0, 0, 0); _local6 = new Point(0, 0); _local6.x = _arg3; _local6.y = _arg4; _local5.width = _arg2.bitmapData.width; _local5.height = _arg2.bitmapData.height; _arg1.bitmapData.copyPixels(_arg2.bitmapData, _local5, _local6, null, null, true); } public function loadEgoParts(){ var _local1:Boolean; var _local2:int; var _local3:Boolean; _local1 = false; switch (mEgoLoadStep){ case 0: loadHead(); break; case 1: loadChin(); break; case 2: loadHands(); break; case 3: loadHandsWithItems(); break; case 4: loadEyes(); break; case 5: loadMouth(); break; case 6: if (mHairIndex != -1){ loadHair(mHairIndex); } else { _local1 = true; }; break; case 7: if (mFacialHairIndex != -1){ loadFacialHair(mFacialHairIndex); } else { _local1 = true; }; break; case 8: if (mHatIndex != -1){ loadHat(mHatIndex); } else { _local1 = true; }; break; case 9: if (mGlassesIndex != -1){ loadGlasses(mGlassesIndex); } else { _local1 = true; }; break; case 10: if (mHeadDecalIndex != -1){ loadHeadDecal(mHeadDecalIndex); } else { _local1 = true; }; break; case 11: if (mHatDecalIndex != -1){ loadHatDecal(mHatDecalIndex); } else { _local1 = true; }; break; case 12: if (mTorsoIndex != -1){ loadTorso(mTorsoIndex); } else { _local1 = true; }; break; case 13: if (mPantsIndex != -1){ loadPants(mPantsIndex); } else { _local1 = true; }; break; case 14: if (mTorsoDecalIndex != -1){ loadTorsoDecal(mTorsoDecalIndex); } else { _local1 = true; }; break; case 15: if (mBackIndex != -1){ loadBack(mBackIndex); } else { _local1 = true; }; break; case 16: if (mBeltIndex != -1){ loadBelt(mBeltIndex); } else { _local1 = true; }; break; case 17: if (mNeckIndex != -1){ loadNeck(mNeckIndex); } else { _local1 = true; }; break; case 18: if (mJacketIndex != -1){ loadJacket(mJacketIndex); } else { _local1 = true; }; break; case 19: if (mFeetIndex != -1){ loadFeet(mFeetIndex); } else { _local1 = true; }; break; case 20: loadDummy(); break; case 21: _local2 = 0; while (_local2 < NUM_COLOR_PARTS) { if (mColors[_local2].curColor != mColors[_local2].newColor){ changeColor(_local2); }; _local2++; }; _local1 = true; break; case 22: createHeadGroups(); _local1 = true; break; case 23: _local3 = false; if (!mFacingRight){ setFacingRight(true); _local3 = true; }; createBodyGroups(); if (_local3){ setFacingRight(false); }; _local1 = true; break; case 24: loadEgoMovieClips(); _local1 = true; break; case 25: mEgoLoadingParts = false; break; }; mEgoLoadStep++; if (_local1){ loadEgoParts(); }; } public function loadFacialHair(_arg1:int){ mImgFacialHair = null; if ((((_arg1 < 0)) || ((_arg1 >= NUM_FACIALHAIR)))){ return; }; mColors[COLORINDEX_FACIALHAIR].curColor = -1; mColors[COLORINDEX_FACIALHAIR].newColor = mColors[COLORINDEX_HAIR].newColor; mImgFacialHair = mlib2_Bitmap.createImage(getFileString(1, _arg1), !(mFacingRight)); mImgFacialHair.addCompleteCallback(onEgoPartLoad); mFacialHairX = getCustomizationOffset(1, _arg1, 0); mFacialHairY = getCustomizationOffset(1, _arg1, 1); if (!mFacingRight){ mFacialHairX = -(mFacialHairX); }; if ((((_arg1 >= 0)) && ((_arg1 <= 3)))){ mFacialHairBehind = true; } else { mFacialHairBehind = false; }; } public function hurryState(){ mLoopCount = 0; } public function changeColor(_arg1:int){ switch (_arg1){ case COLORINDEX_SKIN: mContext.changeSkinColor(mImgHead, mColors[_arg1].curColor, mColors[_arg1].newColor); mContext.changeSkinColor(mImgChin, mColors[_arg1].curColor, mColors[_arg1].newColor); mContext.changeSkinColor(mImgEyes, mColors[_arg1].curColor, mColors[_arg1].newColor); mContext.changeSkinColor(mImgMouth, mColors[_arg1].curColor, mColors[_arg1].newColor); mContext.changeSkinColor(mImgHands, mColors[_arg1].curColor, mColors[_arg1].newColor); mContext.changeSkinColor(mImgHandsItems, mColors[_arg1].curColor, mColors[_arg1].newColor); mContext.changeSkinColor(mImgTorso, mColors[_arg1].curColor, mColors[_arg1].newColor); mContext.changeSkinColor(mImgFeet, mColors[_arg1].curColor, mColors[_arg1].newColor); if (((!((mImgHeadDecal == null))) && (!((mImgHeadDecal.bitmapData == null))))){ mContext.changeSkinColor(mImgHeadDecal, mColors[_arg1].curColor, mColors[_arg1].newColor); }; break; case COLORINDEX_FACIALHAIR: if ((((mImgFacialHair == null)) || ((mImgFacialHair.bitmapData == null)))){ return; }; mContext.changeHairColor(mImgFacialHair, mColors[_arg1].curColor, mColors[_arg1].newColor); break; case COLORINDEX_HAIR: if ((((mImgHair == null)) || ((mImgHair.bitmapData == null)))){ return; }; mContext.changeHairColor(mImgHair, mColors[_arg1].curColor, mColors[_arg1].newColor); break; case COLORINDEX_HAT: if ((((mImgHat == null)) || ((mImgHat.bitmapData == null)))){ return; }; mContext.changeBodyColor(mImgHat, mColors[_arg1].curColor, mColors[_arg1].newColor); if (((!((mImgHatDecal == null))) && (!((mImgHatDecal.bitmapData == null))))){ mContext.changeBodyColor(mImgHatDecal, mColors[_arg1].curColor, mColors[_arg1].newColor); }; break; case COLORINDEX_JACKET: if ((((mImgJacket == null)) || ((mImgJacket.bitmapData == null)))){ return; }; mContext.changeBodyColor(mImgJacket, mColors[_arg1].curColor, mColors[_arg1].newColor); if (((!((mImgJacket2 == null))) && (!((mImgJacket2.bitmapData == null))))){ mContext.changeBodyColor(mImgJacket2, mColors[_arg1].curColor, mColors[_arg1].newColor); }; break; case COLORINDEX_TORSO: if ((((mImgTorso == null)) || ((mImgTorso.bitmapData == null)))){ return; }; mContext.changeBodyColor(mImgTorso, mColors[_arg1].curColor, mColors[_arg1].newColor); mContext.changeSkinColor(mImgTorso, -1, mColors[COLORINDEX_SKIN].curColor); break; case COLORINDEX_TORSODECAL: if ((((mImgTorsoDecal == null)) || ((mImgTorsoDecal.bitmapData == null)))){ return; }; mContext.changeBodyColor(mImgTorsoDecal, mColors[_arg1].curColor, mColors[_arg1].newColor); break; case COLORINDEX_PANTS: if ((((mImgPants == null)) || ((mImgPants.bitmapData == null)))){ return; }; mContext.changeBodyColor(mImgPants, mColors[_arg1].curColor, mColors[_arg1].newColor); break; case COLORINDEX_FEET: if ((((mImgFeet == null)) || ((mImgFeet.bitmapData == null)))){ return; }; mContext.changeBodyColor(mImgFeet, mColors[_arg1].curColor, mColors[_arg1].newColor); mContext.changeSkinColor(mImgFeet, -1, mColors[COLORINDEX_SKIN].curColor); break; }; mColors[_arg1].curColor = mColors[_arg1].newColor; } public function loadHair(_arg1:int, _arg2:Boolean=false){ mImgHair = null; if ((((_arg1 < 0)) || ((_arg1 >= NUM_HAIR)))){ return; }; mColors[COLORINDEX_HAIR].curColor = -1; mImgHair = mlib2_Bitmap.createImage(getFileString(0, _arg1), !(mFacingRight)); if (_arg2){ mImgHair.addCompleteCallback(dummyCallback); } else { mImgHair.addCompleteCallback(onEgoPartLoad); }; mHairX = getCustomizationOffset(0, _arg1, 0); mHairY = getCustomizationOffset(0, _arg1, 1); if ((((((((((((((((((((((((_arg1 == 1)) || ((_arg1 == 3)))) || ((_arg1 == 21)))) || ((_arg1 == 27)))) || ((_arg1 == 30)))) || ((_arg1 == 48)))) || ((_arg1 == 56)))) || ((_arg1 == 59)))) || ((_arg1 == 77)))) || ((_arg1 == 89)))) || ((_arg1 == 91)))) || (!(mIsMale)))){ mSortBandageBehind = true; } else { mSortBandageBehind = false; }; if (!mFacingRight){ mHairX = -(mHairX); }; } private function createHeadGroups(){ var headX:int; var headY:int; var dX:int; var dY:int; var w:int; var h:int; var minX:int; var minY:int; var rect:Rectangle; var pt:Point; var addImageDimensions:Function; var oldHeadX:int; addImageDimensions = function (_arg1:mlib2_Bitmap, _arg2:int, _arg3:int){ if ((((_arg1 == null)) || ((_arg1.bitmapData == null)))){ return; }; if (_arg2 < minX){ dX = (minX - _arg2); minX = _arg2; headX = (headX + dX); w = (w + dX); if (_arg1.bitmapData.width > w){ w = _arg1.bitmapData.width; }; } else { if (((headX + _arg2) + _arg1.bitmapData.width) > w){ w = ((headX + _arg2) + _arg1.bitmapData.width); }; }; if (_arg3 < minY){ dY = (minY - _arg3); minY = _arg3; headY = (headY + dY); h = (h + dY); if (_arg1.bitmapData.height > h){ h = _arg1.bitmapData.height; }; } else { if (((headY + _arg3) + _arg1.bitmapData.height) > h){ h = ((headY + _arg3) + _arg1.bitmapData.height); }; }; }; rect = new Rectangle(0, 0, 0, 0); pt = new Point(0, 0); var _local2:int; minY = _local2; minX = _local2; headX = 0; headY = 0; w = mImgHead.bitmapData.width; h = (mImgHead.bitmapData.height + mImgChin.bitmapData.height); if (((!((mImgFacialHair == null))) && (mFacialHairBehind))){ addImageDimensions(mImgFacialHair, (headX + mFacialHairX), (headY + mFacialHairY)); }; if (((!((mImgHat == null))) && (mSortHatBehind))){ addImageDimensions(mImgHat, (headX + mHatX), (headY + mHatY)); }; mGroupHead1XOff = headX; mGroupHead1YOff = headY; mImgGroupHead1 = mlib2_Bitmap.createEmptyBitmap(w, h, mFacingRight); if (((!((mImgHat == null))) && (mSortHatBehind))){ drawToImage(mImgGroupHead1, mImgHat, (headX + mHatX), (headY + mHatY)); }; drawToImage(mImgGroupHead1, mImgHead, headX, headY); drawToImage(mImgGroupHead1, mImgChin, (headX + 1), (headY + HEAD_HEIGHT)); if (((!((mImgFacialHair == null))) && (mFacialHairBehind))){ drawToImage(mImgGroupHead1, mImgFacialHair, (headX + mFacialHairX), (headY + mFacialHairY)); }; _local2 = 0; h = _local2; w = _local2; headY = _local2; headX = _local2; _local2 = 0; minY = _local2; minX = _local2; oldHeadX = headX; if (mImgHair != null){ addImageDimensions(mImgHair, mHairX, mHairY); }; if (((!((mImgFacialHair == null))) && (!(mFacialHairBehind)))){ addImageDimensions(mImgFacialHair, mFacialHairX, mFacialHairY); }; if (((!((mAttributes[Ego.ATT_EMOTION3] == 2))) && (!(mSortBandageBehind)))){ addImageDimensions(mImgBandage, BANDAGES_X, BANDAGES_Y); }; if (((!((mImgHat == null))) && (!(mSortHatBehind)))){ addImageDimensions(mImgHat, mHatX, mHatY); }; if (mImgHatDecal != null){ addImageDimensions(mImgHatDecal, mHatDecalX, mHatDecalY); }; if (mImgGlasses != null){ addImageDimensions(mImgGlasses, mGlassesX, mGlassesY); }; if (mImgHeadDecal != null){ addImageDimensions(mImgHeadDecal, mHeadDecalX, mHeadDecalY); }; mGroupHead2XOff = headX; mGroupHead2YOff = headY; mImgGroupHead2 = mlib2_Bitmap.createEmptyBitmap(w, h, mFacingRight); if (mImgHair != null){ drawToImage(mImgGroupHead2, mImgHair, (headX + mHairX), (headY + mHairY)); }; if (((!((mImgFacialHair == null))) && (!(mFacialHairBehind)))){ drawToImage(mImgGroupHead2, mImgFacialHair, (headX + mFacialHairX), (headY + mFacialHairY)); }; if (((!((mAttributes[Ego.ATT_EMOTION3] == 2))) && (!(mSortBandageBehind)))){ drawToImage(mImgGroupHead2, mImgBandage, (headX + BANDAGES_X), (headY + BANDAGES_Y)); }; if (((!((mImgHat == null))) && (!(mSortHatBehind)))){ drawToImage(mImgGroupHead2, mImgHat, (headX + mHatX), (headY + mHatY)); }; if (mImgHatDecal != null){ drawToImage(mImgGroupHead2, mImgHatDecal, (headX + mHatDecalX), (headY + mHatDecalY)); }; if (mImgGlasses != null){ drawToImage(mImgGroupHead2, mImgGlasses, (headX + mGlassesX), (headY + mGlassesY)); }; if (mImgHeadDecal != null){ drawToImage(mImgGroupHead2, mImgHeadDecal, (headX + mHeadDecalX), (headY + mHeadDecalY)); }; mIsHeadGrouped = true; } public function clearAttChange(){ var _local1:int; _local1 = 0; while (_local1 <= ATT_MIND2) { mAttChange[_local1] = 0; _local1++; }; } public function renderTorso(_arg1:mlib2_GL){ var _local2:int; if (mTorso.mNumFrames <= 0){ return; }; mImgGroupBody.setImageScale(mScale); if (mFacingRight){ _arg1.drawImage(mImgGroupBody, (mTorso.mX - (mGroupBodyXOff * mScale)), (mTorso.mY - (mGroupBodyYOff * mScale))); } else { _arg1.drawImage(mImgGroupBody, (mTorso.mX + (mGroupBodyXOff * mScale)), (mTorso.mY - (mGroupBodyYOff * mScale)), (mlib2_GL.RIGHT | mlib2_GL.TOP)); }; } public function isInSet(_arg1:int, _arg2:int):Boolean{ if ((((_arg2 == ARCHETYPE_ANGEL)) || ((_arg2 == ARCHETYPE_DEVIL)))){ if (_arg1 == SET_ENLIGHTENED){ if ((((_arg2 == ARCHETYPE_ANGEL)) && ((mContext.mJudgement >= 0)))){ return (true); }; if ((((_arg2 == ARCHETYPE_DEVIL)) && ((mContext.mJudgement < 0)))){ return (true); }; return (false); } else { return (false); }; }; if (_arg1 >= SET_PROFESSIONAL){ return (true); }; if (_arg1 == SET_HIGHSCHOOL){ if ((((((((((((((((((((((((_arg2 == ARCHETYPE_ACTOR)) || ((_arg2 == ARCHETYPE_ARTIST)))) || ((_arg2 == ARCHETYPE_BULLY)))) || ((_arg2 == ARCHETYPE_CLASS_CLOWN)))) || ((_arg2 == ARCHETYPE_FLIRT)))) || ((_arg2 == ARCHETYPE_GOTH)))) || ((_arg2 == ARCHETYPE_JOCK)))) || ((_arg2 == ARCHETYPE_NERD)))) || ((_arg2 == ARCHETYPE_PREPPY)))) || ((_arg2 == ARCHETYPE_REBEL)))) || ((_arg2 == ARCHETYPE_SKATER)))) || ((_arg2 == ARCHETYPE_SURFER)))){ return (true); }; }; if (_arg1 == SET_COLLEGE){ if ((((((((((((((((((((((((((((((((((((((((((((((((((_arg2 == ARCHETYPE_ACTOR)) || ((_arg2 == ARCHETYPE_ARTIST)))) || ((_arg2 == ARCHETYPE_JOCK)))) || ((_arg2 == ARCHETYPE_BIKER)))) || ((_arg2 == ARCHETYPE_BOXER)))) || ((_arg2 == ARCHETYPE_BULLY)))) || ((_arg2 == ARCHETYPE_CLASS_CLOWN)))) || ((_arg2 == ARCHETYPE_DOCTOR)))) || ((_arg2 == ARCHETYPE_EMO)))) || ((_arg2 == ARCHETYPE_FIREMAN)))) || ((_arg2 == ARCHETYPE_FLIRT)))) || ((_arg2 == ARCHETYPE_GOTH)))) || ((_arg2 == ARCHETYPE_JOCK)))) || ((_arg2 == ARCHETYPE_LAWYER)))) || ((_arg2 == ARCHETYPE_MARTIAL_ARTIST)))) || ((_arg2 == ARCHETYPE_NERD)))) || ((_arg2 == ARCHETYPE_POLICEMAN)))) || ((_arg2 == ARCHETYPE_PREPPY)))) || ((_arg2 == ARCHETYPE_REBEL)))) || ((_arg2 == ARCHETYPE_ROCKSTAR)))) || ((_arg2 == ARCHETYPE_SEX_SYMBOL)))) || ((_arg2 == ARCHETYPE_SKATER)))) || ((_arg2 == ARCHETYPE_SOLDIER)))) || ((_arg2 == ARCHETYPE_SURFER)))) || ((_arg2 == ARCHETYPE_THIEF)))){ return (true); }; }; return (false); } public function checkLikability():int{ if (mLikability > 1){ return (LIKE); }; if (mLikability < 0){ return (DISLIKE); }; return (INDIFFERENT); } public function changeAction(_arg1:int, _arg2:Boolean, _arg3:Boolean){ var _local4:int; var _local5:int; var _local6:Boolean; var _local7:int; var _local8:int; var _local9:int; var _local10:int; _local6 = true; _local5 = 0; _arg1 = getSwapSexAction(_arg1); if (!_arg2){ _local9 = mCurrentAnim; _local10 = mAnimList[_local9]; while (((!((_local10 == Constants.ANIM_DONE))) && ((_local9 < ANIMLIST_SIZE)))) { if (((((!((_local10 == Constants.ANIM_LOOP))) && (!((_local10 == Constants.ANIM_LOOPDONE))))) && (!((_local10 == Constants.ANIM_STAND))))){ mAnimList[_local5] = _local10; _local5++; }; _local9++; _local10 = mAnimList[_local9]; }; if (_local5 > 0){ _local6 = false; }; }; if (_arg3){ mAnimList[_local5] = Constants.ANIM_WAIT; _local5++; }; if (_arg1 == (Constants.NUM_ACTIONS - 1)){ _local7 = (Constants.ACTION_DATASIZE_ANIMLIST - mAnimData[_arg1]); } else { _local7 = (mAnimData[(_arg1 + 1)] - mAnimData[_arg1]); }; _local8 = mAnimData[_arg1]; _local4 = 0; while (_local4 < _local7) { mAnimList[_local5] = mAnimData[(_local8 + _local4)]; _local5++; _local4++; }; _local4 = _local5; while (_local4 < ANIMLIST_SIZE) { mAnimList[_local4] = Constants.ANIM_DONE; _local4++; }; mCurrentAnim = 0; mAction = _arg1; if (_local6){ mFlags = 0; startNextAnimation(); }; } public function triggerAction(){ if (((!((mOtherEgo == null))) && (mOtherEgo.mShow))){ if (mOtherEgo.mTriggerAction != 0){ if (mAnimList[mCurrentAnim] != Constants.ANIM_STUDYLOOP){ mOtherEgo.changeAction(mOtherEgo.mTriggerAction, true, false); }; } else { switch (mAction){ case Constants.ACTION_SHOVE: case Constants.ACTION_SHOVE_NO: mOtherEgo.triggerBlend(Constants.ANIM_SHOVEDRECIVED); break; case Constants.ACTION_COMFORT: mOtherEgo.triggerBlend(Constants.ANIM_COMFORT_RECIVED); break; case Constants.ACTION_TICKLE: mOtherEgo.triggerBlend(Constants.ANIM_TICKLED); break; case Constants.ACTION_PUNCH: mOtherEgo.triggerBlend(Constants.ANIM_PUNCHED_INFACE); break; }; }; }; mTrigger = true; } public function changeSkinColor(_arg1:Boolean){ if (_arg1){ mColors[COLORINDEX_SKIN].newColor++; } else { mColors[COLORINDEX_SKIN].newColor--; }; if (mColors[COLORINDEX_SKIN].newColor >= Context.NUM_SKIN_COLORS){ mColors[COLORINDEX_SKIN].newColor = 0; }; if (mColors[COLORINDEX_SKIN].newColor < 0){ mColors[COLORINDEX_SKIN].newColor = (Context.NUM_SKIN_COLORS - 1); }; } public function loadChin(){ if (mIsMale){ mImgChin = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/chin_male.png"), !(mFacingRight)); } else { mImgChin = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/chin_female.png"), !(mFacingRight)); }; mImgChin.addCompleteCallback(onEgoPartLoad); } private function addBySortOrder(_arg1:int){ if (mBackHand.sortPosition() == _arg1){ addChild(mBackHandFrames); }; if (mBackFoot.sortPosition() == _arg1){ addChild(mBackFootFrames); }; if (mTorso.sortPosition() == _arg1){ addChild(mBodyMC); }; if (mHead.sortPosition() == _arg1){ addChild(mHeadMC); }; if (mFrontHand.sortPosition() == _arg1){ addChild(mFrontHandFrames); }; if (mFrontFoot.sortPosition() == _arg1){ addChild(mFrontFootFrames); }; } function isOverEgo(_arg1:int, _arg2:int):Boolean{ if (((isOverHead(_arg1, _arg2)) || (isOverTorso(_arg1, _arg2)))){ return (true); }; return (false); } public function loadNeck(_arg1:int){ mImgNeck = null; if ((((_arg1 < 0)) || ((_arg1 >= NUM_NECKDECALS)))){ return; }; mImgNeck = mlib2_Bitmap.createImage(getFileString(16, _arg1), !(mFacingRight)); mImgNeck.addCompleteCallback(onEgoPartLoad); mNeckX = getCustomizationOffset(16, _arg1, 0); mNeckY = getCustomizationOffset(16, _arg1, 1); if (!mFacingRight){ mNeckX = -(mNeckX); }; } public function renderWithSorting(_arg1:mlib2_GL, _arg2:Ego, _arg3:int, _arg4:Boolean){ if (_arg2.mItem.sortPosition() == _arg3){ _arg2.renderItem(_arg1, mItem); }; if (_arg2.mItem2.sortPosition() == _arg3){ _arg2.renderItem(_arg1, mItem2); }; if (_arg2.mItem3.sortPosition() == _arg3){ _arg2.renderItem(_arg1, mItem3); }; if (_arg2.mItem4.sortPosition() == _arg3){ _arg2.renderItem(_arg1, mItem4); }; if (_arg2.mItem5.sortPosition() == _arg3){ _arg2.renderItem(_arg1, mItem5); }; if (_arg2.mItem6.sortPosition() == _arg3){ _arg2.renderItem(_arg1, mItem6); }; } public function getSwapSexAction(_arg1:int):int{ if (!mIsMale){ if (_arg1 == Constants.ACTION_DANCE_M){ return (Constants.ACTION_DANCE_F); }; if (_arg1 == Constants.ACTION_FLEX_M){ return (Constants.ACTION_FLEX_F); }; if (_arg1 == Constants.ACTION_FLIRT_M){ return (Constants.ACTION_FLIRT_F); }; if (_arg1 == Constants.ACTION_PLAY_MIRROR_M){ return (Constants.ACTION_PLAY_MIRROR_F); }; if (_arg1 == Constants.ACTION_POSE_M){ return (Constants.ACTION_FLIRT_F); }; }; return (_arg1); } public function loadBlendAnimByNumber(_arg1:int){ var _local2:String; if (_arg1 < 10){ _local2 = (((RESOURCE_URL + "res/anims/400") + _arg1) + ".xml"); } else { if (_arg1 < 100){ _local2 = (((RESOURCE_URL + "res/anims/40") + _arg1) + ".xml"); } else { _local2 = (((RESOURCE_URL + "res/anims/4") + _arg1) + ".xml"); }; }; mLoadingBlendAnim = true; mBlendAnimXML = new XML(); myXMLURL = new URLRequest(_local2); myBlendLoader = new URLLoader(new URLRequest(_local2)); myBlendLoader.addEventListener("complete", xmlBlendAnimLoaded); } public function loadEyes(){ if (mIsMale){ mImgEyes = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/eyes_male.png"), !(mFacingRight)); } else { mImgEyes = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/eyes_female.png"), !(mFacingRight)); }; mImgEyes.addCompleteCallback(onEgoPartLoad); } public function getEyeIndex(_arg1:Boolean=false){ var _local2:int; var _local3:int; var _local4:String; var _local5:Array; if (mEyeSet == null){ return (0); }; if (_arg1){ _local3 = SET_NORMAL; } else { _local3 = mCurrentMood; }; if (mArchetype >= ARCHETYPE_INTRO){ _local2 = ((ARCHETYPE_PREPPY * NUM_SETS) + _local3); } else { _local2 = ((mArchetype * NUM_SETS) + _local3); }; _local4 = mEyeSet[_local2]; _local5 = _local4.split(",", NUM_EYES); return (int(_local5[mEyes.mCurImage])); } public function setMood(){ var _local1:int; var _local2:int; var _local3:int; _local1 = getAttributeValue(ATT_EMOTION1); _local2 = getAttributeValue(ATT_EMOTION2); _local3 = getAttributeValue(ATT_EMOTION3); if (_local3 == -2){ mCurrentMood = SET_BC; } else { if (_local3 == -1){ if (_local2 == -2){ mCurrentMood = SET_PISSED; } else { if (_local2 == -1){ mCurrentMood = SET_WIMPY; } else { if (_local2 == 0){ mCurrentMood = SET_GRITTY; }; }; }; } else { if (_local3 == 0){ if (_local2 == -2){ mCurrentMood = SET_ANGRY; } else { if (_local2 == -1){ if ((((_local1 == -2)) || ((_local1 == -1)))){ mCurrentMood = SET_SHATTERED; } else { if (_local1 == 0){ mCurrentMood = SET_SAD; }; }; } else { if (_local2 == 0){ if (_local1 == -2){ mCurrentMood = SET_EXHAUSTED; } else { if (_local1 == -1){ mCurrentMood = SET_TIRED; } else { if (_local1 == 0){ mCurrentMood = SET_NORMAL; }; }; }; }; }; }; }; }; }; } public function CancelLoad():void{ mEgoLoadingParts = false; mEgoLoadStep = 26; } public function resetCustomSet(){ var _local1:int; _local1 = 0; while (_local1 < Constants.CUSTOMLIST_SIZE) { mCustomData[_local1] = 0; _local1++; }; } public function loadEgoMovieClips(){ var _local1:Rectangle; var _local2:Point; var _local3:int; var _local4:Bitmap; var _local5:Bitmap; var _local6:Bitmap; var _local7:Bitmap; var _local8:Bitmap; while (numChildren > 0) { removeChildAt(0); }; mHeadMC = new MovieClip(); mBodyMC = new MovieClip(); mEyeFrames = new MovieClip(); mMouthFrames = new MovieClip(); mBackHandFrames = new MovieClip(); mBackHandItemFrames = new MovieClip(); mFrontHandFrames = new MovieClip(); mFrontHandItemFrames = new MovieClip(); mBackFootFrames = new MovieClip(); mFrontFootFrames = new MovieClip(); _local6 = new Bitmap(mImgGroupHead1.bitmapData); _local6.x = -(mGroupHead1XOff); _local6.y = -(mGroupHead1YOff); _local7 = new Bitmap(mImgGroupHead2.bitmapData); _local7.x = -(mGroupHead2XOff); _local7.y = -(mGroupHead2YOff); _local1 = new Rectangle(0, 0, EYES_WIDTH, EYES_HEIGHT); _local2 = new Point(0, 0); _local3 = 0; while (_local3 < EYE_IMAGES) { _local1.x = (int((_local3 % 15)) * EYES_WIDTH); _local1.y = (int((_local3 / 15)) * EYES_HEIGHT); _local4 = new Bitmap(new BitmapData(EYES_WIDTH, EYES_HEIGHT)); _local4.bitmapData.copyPixels(mImgEyes.bitmapData, _local1, _local2); _local4.visible = false; mEyeFrames.addChild(_local4); _local3++; }; mEyeFrames.x = (mEyesOffX + (HEAD_WIDTH / 2)); mEyeFrames.y = (mEyesOffY + (HEAD_HEIGHT / 2)); _local1.y = 0; _local1.width = MOUTH_WIDTH; _local1.height = MOUTH_HEIGHT; _local3 = 0; while (_local3 < MOUTH_IMAGES) { _local1.x = (_local3 * MOUTH_WIDTH); _local4 = new Bitmap(new BitmapData(MOUTH_WIDTH, MOUTH_HEIGHT)); _local4.bitmapData.copyPixels(mImgMouth.bitmapData, _local1, _local2); _local4.visible = false; mMouthFrames.addChild(_local4); _local3++; }; mMouthFrames.x = (mMouthOffX + (HEAD_WIDTH / 2)); mMouthFrames.y = (mMouthOffY + (HEAD_HEIGHT / 2)); _local8 = new Bitmap(mImgGroupBody.bitmapData); _local8.x = -(mGroupBodyXOff); _local8.y = -(mGroupBodyYOff); _local1.y = 0; _local1.width = HANDS_WIDTH; _local1.height = HANDS_HEIGHT; _local3 = 0; while (_local3 < NUM_HANDS) { _local1.x = (_local3 * HANDS_WIDTH); _local4 = new Bitmap(new BitmapData(HANDS_WIDTH, HANDS_HEIGHT)); _local5 = new Bitmap(new BitmapData(HANDS_WIDTH, HANDS_HEIGHT)); _local4.bitmapData.copyPixels(mImgHands.bitmapData, _local1, _local2); _local5.bitmapData.copyPixels(mImgHands.bitmapData, _local1, _local2); _local4.visible = false; _local5.visible = false; mBackHandFrames.addChild(_local4); mFrontHandFrames.addChild(_local5); _local3++; }; _local1.y = 0; _local1.width = HANDSITEMS_WIDTH; _local1.height = HANDSITEMS_HEIGHT; _local3 = 0; while (_local3 < NUM_HANDSITEMS) { _local1.x = (_local3 * HANDSITEMS_WIDTH); _local4 = new Bitmap(new BitmapData(HANDSITEMS_WIDTH, HANDSITEMS_HEIGHT)); _local5 = new Bitmap(new BitmapData(HANDSITEMS_WIDTH, HANDSITEMS_HEIGHT)); _local4.bitmapData.copyPixels(mImgHandsItems.bitmapData, _local1, _local2); _local5.bitmapData.copyPixels(mImgHandsItems.bitmapData, _local1, _local2); _local4.visible = false; _local5.visible = false; mBackHandItemFrames.addChild(_local4); mFrontHandItemFrames.addChild(_local5); _local3++; }; _local1.y = 0; _local1.width = int((mImgFeet.bitmapData.width / NUM_FEET)); _local1.height = mImgFeet.bitmapData.height; _local3 = 0; while (_local3 < NUM_FEET) { _local1.x = (_local3 * _local1.width); _local4 = new Bitmap(new BitmapData(_local1.width, mImgFeet.bitmapData.height)); _local5 = new Bitmap(new BitmapData(_local1.width, mImgFeet.bitmapData.height)); _local4.bitmapData.copyPixels(mImgFeet.bitmapData, _local1, _local2); _local5.bitmapData.copyPixels(mImgFeet.bitmapData, _local1, _local2); _local4.visible = false; _local5.visible = false; mBackFootFrames.addChild(_local4); mFrontFootFrames.addChild(_local5); _local3++; }; mHeadMC.addChild(_local6); mHeadMC.addChild(mEyeFrames); mHeadMC.addChild(mMouthFrames); mHeadMC.addChild(_local7); mHeadMC.visible = true; mBodyMC.addChild(_local8); mBodyMC.visible = true; addChild(mBackHandFrames); addChild(mBackFootFrames); addChild(mBodyMC); addChild(mHeadMC); addChild(mFrontFootFrames); addChild(mFrontHandFrames); } public function changeGender(){ var _local1:int; var _local2:int; var _local3:int; mIsMale = !(mIsMale); unloadEgo(); _local1 = 0; if (mIsMale){ _local1 = ((mArchetype * 2) + 1); } else { _local1 = (mArchetype * 2); }; _local2 = (_local1 * Constants.SIZE_PER_ARCHETYPE); _local3 = 0; while (_local3 < Constants.CUSTOMLIST_SIZE) { mCustomData[_local3] = mArchData[(_local2 + _local3)]; _local3++; }; mHairIndex = 0; getNextPartIndex(Constants.CUSTOMPARTS_HAIR, true); getNextColorIndex(Constants.CUSTOMPARTS_HAIRCOLOR, true); mTorsoIndex = 0; getNextPartIndex(Constants.CUSTOMPARTS_TORSO, true); mColors[COLORINDEX_TORSO].newColor = Context.BODYCOLOR_WHITE1; mPantsIndex = 10; getNextPartIndex(Constants.CUSTOMPARTS_PANTS, true); mColors[COLORINDEX_PANTS].newColor = Context.BODYCOLOR_BLUE3; mFeetIndex = 3; getNextPartIndex(Constants.CUSTOMPARTS_FEET, true); mColors[COLORINDEX_FEET].newColor = Context.BODYCOLOR_BROWN1; reload(); } public function getHandItemImage(_arg1:int, _arg2:int):int{ if (_arg2 == Curve.BACKHAND){ switch (_arg1){ case 20: return (1); case 21: return (2); case 22: return (3); case 23: return (4); case 24: return (5); case 26: return (6); }; } else { switch (_arg1){ case 32: return (7); case 33: return (8); case 34: return (9); case 35: return (10); case 36: return (11); case 37: return (12); case 38: return (13); case 39: return (14); case 43: return (15); case 44: return (16); case 45: return (17); case 47: return (6); }; }; return (-1); } public function loadPants(_arg1:int){ mImgPants = null; if ((((_arg1 < 0)) || ((_arg1 >= NUM_PANTS)))){ return; }; mColors[COLORINDEX_PANTS].curColor = -1; mImgPants = mlib2_Bitmap.createImage(getFileString(10, _arg1), !(mFacingRight)); mImgPants.addCompleteCallback(onEgoPartLoad); mPantsX = getCustomizationOffset(10, _arg1, 0); mPantsY = getCustomizationOffset(10, _arg1, 1); if (!mFacingRight){ mPantsX = -(mPantsX); }; } public function addArchetype(_arg1:Boolean){ var _local2:int; var _local3:Array; var _local4:int; var _local5:int; _local2 = 0; _local3 = null; if (mArchetype <= ARCHETYPE_CUSTOM_2){ if (mIsMale){ _local2 = ((mArchetype * 2) + 1); } else { _local2 = (mArchetype * 2); }; _local4 = (_local2 * Constants.SIZE_PER_ARCHETYPE); _local5 = 0; while (_local5 < Constants.CUSTOMLIST_SIZE) { mCustomData[_local5] = (mCustomData[_local5] | mArchData[(_local4 + _local5)]); _local5++; }; reload(); }; } public function adjustScale(_arg1:Number){ mScale = _arg1; mHead.setCurveScale(mScale); mTorso.setCurveScale(mScale); mBackHand.setCurveScale(mScale); mFrontHand.setCurveScale(mScale); mBackFoot.setCurveScale(mScale); mFrontFoot.setCurveScale(mScale); mItem.setCurveScale(mScale); mItem2.setCurveScale(mScale); mItem3.setCurveScale(mScale); mItem4.setCurveScale(mScale); mItem5.setCurveScale(mScale); mItem6.setCurveScale(mScale); } public function getCustomizationOffset(_arg1:int, _arg2:int, _arg3:int):int{ var _local4:int; var _local5:String; var _local6:Array; var _local7:String; var _local8:Array; if ((((_arg2 == -1)) || ((mOffsetTextLoader.data == null)))){ return (-1); }; switch (_arg1){ default: return (0); case 0: _local4 = (128 * 4); break; case 1: _local4 = (128 * 2); break; case 3: _local4 = (128 * 5); break; case 5: _local4 = (128 * 3); break; case 6: _local4 = (128 * 7); break; case 7: _local4 = (128 * 6); break; case 8: _local4 = (128 * 11); break; case 10: _local4 = (128 * 10); break; case 12: _local4 = (128 * 12); break; case 14: _local4 = (128 * 0); break; case 15: _local4 = (128 * 1); break; case 16: _local4 = (128 * 9); break; case 17: _local4 = (128 * 8); break; }; _local4 = (_local4 + _arg2); if (_local4 > 1664){ return (0); }; _local5 = mOffsetTextLoader.data; _local6 = _local5.split("\n"); _local7 = _local6[_local4]; _local8 = _local7.split(",", 2); return (int(_local8[_arg3])); } public function loadBack(_arg1:int){ mImgBack = null; mImgBack2 = null; if ((((_arg1 < 0)) || ((_arg1 >= NUM_BACKDECALS)))){ return; }; mImgBack = mlib2_Bitmap.createImage(getFileString(14, _arg1), !(mFacingRight)); mImgBack.addCompleteCallback(onEgoPartLoad); mBackX = getCustomizationOffset(14, _arg1, 0); mBackY = getCustomizationOffset(14, _arg1, 1); if (!mFacingRight){ mBackX = -(mBackX); }; if ((((_arg1 >= 2)) && ((_arg1 <= 12)))){ mImgBack2 = mlib2_Bitmap.createImage(getFileString(14, (_arg1 + 1)), !(mFacingRight)); mBack2X = getCustomizationOffset(14, (_arg1 + 1), 0); mBack2Y = getCustomizationOffset(14, (_arg1 + 1), 1); if (!mFacingRight){ mBack2X = -(mBack2X); }; }; } public function renderHand(_arg1:mlib2_GL, _arg2:Curve){ var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:int; if (_arg2.mNumFrames <= 0){ return; }; _local8 = getHandImage(_arg2.mCurImage, _arg2.mType); if (_local8 == -1){ _local8 = getHandItemImage(_arg2.mCurImage, _arg2.mType); if (_local8 == -1){ return; }; mImgHandsItems.setImageScale(mScale); _local6 = (HANDSITEMS_WIDTH * mScale); _local7 = (HANDSITEMS_HEIGHT * mScale); if (mFacingRight){ _local5 = (_local8 * _local6); } else { _local5 = (((NUM_HANDSITEMS - _local8) - 1) * _local6); }; _local3 = (_arg2.mX - (_local6 / 2)); _local4 = (_arg2.mY - (_local7 / 2)); _arg1.setClip(_local3, _local4, _local6, _local7); _arg1.drawImage(mImgHandsItems, (_local3 - _local5), _local4); _arg1.resetClip(); } else { _local6 = (HANDS_WIDTH * mScale); _local7 = (HANDS_HEIGHT * mScale); mImgHands.setImageScale(mScale); if (mFacingRight){ _local5 = (_local8 * _local6); } else { _local5 = (((NUM_HANDS - _local8) - 1) * _local6); }; _arg1.setClip((_arg2.mX - (_local6 / 2)), (_arg2.mY - (_local7 / 2)), _local6, _local7); _arg1.drawImage(mImgHands, ((_arg2.mX - (_local6 / 2)) - _local5), (_arg2.mY - (_local7 / 2))); _arg1.resetClip(); }; } public function getNextIndex(_arg1:Array, _arg2:int, _arg3:int, _arg4:int, _arg5:Boolean, _arg6:int=0):int{ var _local7:int; _local7 = _arg2; do { if (_arg5){ _local7++; } else { _local7--; }; if (_local7 < _arg4){ _local7 = ((_arg3 * 8) - 1); }; if (_local7 >= (_arg3 * 8)){ _local7 = _arg4; }; } while (((((!(checkIndex(_arg1, _local7, _arg6))) && (!((_local7 == _arg2))))) && (!((_local7 == -1))))); return (_local7); } public function loadBlendAnimXML(_arg1:XML){ var _local2:Array; var _local3:int; _local2 = new Array(); _local2.push(mBlendHead.changeAnim(_arg1)); _local2.push(mBlendEyes.changeAnim(_arg1)); _local2.push(mBlendMouth.changeAnim(_arg1)); _local2.push(mBlendTorso.changeAnim(_arg1)); _local2.push(mBlendBackHand.changeAnim(_arg1)); _local2.push(mBlendFrontHand.changeAnim(_arg1)); _local2.push(mBlendBackFoot.changeAnim(_arg1)); _local2.push(mBlendFrontFoot.changeAnim(_arg1)); _local2.push(mBlendCursor.changeAnim(_arg1)); mAnimTime = 0; while (_local3 < _local2.length) { if (_local2[_local3] > mAnimTime){ mAnimTime = _local2[_local3]; }; _local3++; }; mBlendTimer.setExpiration(mAnimTime); mBlendTimer.reset(); tickParts(0, mAnimTimer.getElapsed()); mBlending = true; mLoadingBlendAnim = false; } public function onEgoPartLoad(_arg1:Event, _arg2:String=""){ loadEgoParts(); } public function getNextPartIndex(_arg1:int, _arg2:Boolean){ var _local3:Array; var _local4:int; _local3 = mCustomData; _local4 = 0; switch (_arg1){ default: return; case Constants.CUSTOMPARTS_HAIR: _local4 = Constants.CUSTOMINDEX_HAIR; if (getHatHair(mHatIndex) != -2){ return; }; mHairIndex = getNextIndex(_local3, mHairIndex, Constants.SIZE_CUSTOM_HAIR, 0, _arg2, _local4); loadHair(mHairIndex); break; case Constants.CUSTOMPARTS_FACIALHAIR: _local4 = Constants.CUSTOMINDEX_FACIALHAIR; mFacialHairIndex = getNextIndex(_local3, mFacialHairIndex, Constants.SIZE_CUSTOM_FACIALHAIR, -1, _arg2, _local4); loadFacialHair(mFacialHairIndex); break; case Constants.CUSTOMPARTS_GLASSES: _local4 = Constants.CUSTOMINDEX_GLASSES; mGlassesIndex = getNextIndex(_local3, mGlassesIndex, Constants.SIZE_CUSTOM_GLASSES, -1, _arg2, _local4); loadGlasses(mGlassesIndex); break; case Constants.CUSTOMPARTS_HAT: _local4 = Constants.CUSTOMINDEX_HAT; mHatIndex = getNextIndex(_local3, mHatIndex, Constants.SIZE_CUSTOM_HAT, -1, _arg2, _local4); loadHat(mHatIndex); getNextColorIndex(Constants.CUSTOMPARTS_HATCOLOR, true); break; case Constants.CUSTOMPARTS_HEADDECAL: _local4 = Constants.CUSTOMINDEX_HEADDECAL; mHeadDecalIndex = getNextIndex(_local3, mHeadDecalIndex, Constants.SIZE_CUSTOM_HEADDECAL, -1, _arg2, _local4); loadHeadDecal(mHeadDecalIndex); break; case Constants.CUSTOMPARTS_HATDECAL: _local4 = Constants.CUSTOMINDEX_HATDECAL; mHatDecalIndex = getNextIndex(_local3, mHatDecalIndex, Constants.SIZE_CUSTOM_HATDECAL, -1, _arg2, _local4); loadHatDecal(mHatDecalIndex); break; case Constants.CUSTOMPARTS_BACK: _local4 = Constants.CUSTOMINDEX_BACK; mBackIndex = getNextIndex(_local3, mBackIndex, Constants.SIZE_CUSTOM_BACK, -1, _arg2, _local4); loadBack(mBackIndex); break; case Constants.CUSTOMPARTS_BELT: _local4 = Constants.CUSTOMINDEX_BELT; mBeltIndex = getNextIndex(_local3, mBeltIndex, Constants.SIZE_CUSTOM_BELT, -1, _arg2, _local4); loadBelt(mBeltIndex); break; case Constants.CUSTOMPARTS_JACKET: _local4 = Constants.CUSTOMINDEX_JACKET; mJacketIndex = getNextIndex(_local3, mJacketIndex, Constants.SIZE_CUSTOM_JACKET, -1, _arg2, _local4); loadJacket(mJacketIndex); getNextColorIndex(Constants.CUSTOMPARTS_JACKETCOLOR, true); break; case Constants.CUSTOMPARTS_NECK: _local4 = Constants.CUSTOMINDEX_NECK; mNeckIndex = getNextIndex(_local3, mNeckIndex, Constants.SIZE_CUSTOM_NECK, -1, _arg2, _local4); loadNeck(mNeckIndex); break; case Constants.CUSTOMPARTS_TORSO: _local4 = Constants.CUSTOMINDEX_TORSO; mTorsoIndex = getNextIndex(_local3, mTorsoIndex, Constants.SIZE_CUSTOM_TORSO, 0, _arg2, _local4); loadTorso(mTorsoIndex); getNextColorIndex(Constants.CUSTOMPARTS_TORSOCOLOR, true); break; case Constants.CUSTOMPARTS_PANTS: _local4 = Constants.CUSTOMINDEX_PANTS; mPantsIndex = getNextIndex(_local3, mPantsIndex, Constants.SIZE_CUSTOM_PANTS, 0, _arg2, _local4); loadPants(mPantsIndex); getNextColorIndex(Constants.CUSTOMPARTS_PANTSCOLOR, true); break; case Constants.CUSTOMPARTS_TORSODECAL: _local4 = Constants.CUSTOMINDEX_TORSODECAL; mTorsoDecalIndex = getNextIndex(_local3, mTorsoDecalIndex, Constants.SIZE_CUSTOM_TORSODECAL, -1, _arg2, _local4); loadTorsoDecal(mTorsoDecalIndex); getNextColorIndex(Constants.CUSTOMPARTS_DECALCOLOR, true); break; case Constants.CUSTOMPARTS_FEET: _local4 = Constants.CUSTOMINDEX_FEET; mFeetIndex = getNextIndex(_local3, mFeetIndex, Constants.SIZE_CUSTOM_FEET, 0, _arg2, _local4); loadFeet(mFeetIndex); break; }; } public function renderFoot(_arg1:mlib2_GL, _arg2:Curve){ var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; if (_arg2.mNumFrames <= 0){ return; }; if (((!((mImgFeet == null))) && (!((mImgFeet.bitmapData == null))))){ _local3 = ((mImgFeet.bitmapData.width / 6) * mScale); _local4 = (mImgFeet.bitmapData.height * mScale); mImgFeet.setImageScale(mScale); _local6 = 0; if (mFacingRight){ _local5 = (_arg2.mCurImage * _local3); } else { _local5 = (((NUM_FEET - _arg2.mCurImage) - 1) * _local3); }; _arg1.setClip((_arg2.mX - (_local3 / 2)), ((_arg2.mY - (_local4 / 2)) + _local6), _local3, _local4); _arg1.drawImage(mImgFeet, ((_arg2.mX - (_local3 / 2)) - _local5), ((_arg2.mY - (_local4 / 2)) + _local6)); _arg1.resetClip(); }; } public function setAttributes(_arg1:XML){ var _local2:int; if ((((_arg1.Hat == "0")) && ((_arg1.HatDecal == "0")))){ return; }; mUserName = _arg1.user; mName = mUserName; mPassword = _arg1.password; mArchetype = int(_arg1.archetype.@value); _local2 = 0; while (_local2 < NUM_ATTRIBUTES) { mAttributes[_local2] = _arg1.attributes[_local2]; _local2++; }; setMood(); mImgHead = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/head.png"), !(mFacingRight)); mImgHands = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/hands.png"), !(mFacingRight)); mImgHandsItems = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/hands_items.png"), !(mFacingRight)); if (int(_arg1.gender.@value) == 0){ mIsMale = true; mImgChin = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/chin_male.png"), !(mFacingRight)); mImgEyes = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/eyes_male.png"), !(mFacingRight)); mImgMouth = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/mouth_male.png"), !(mFacingRight)); } else { mIsMale = false; mImgChin = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/chin_female.png"), !(mFacingRight)); mImgEyes = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/eyes_female.png"), !(mFacingRight)); mImgMouth = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/mouth_female.png"), !(mFacingRight)); }; if (_arg1.Hair != "-1"){ loadHair(int(_arg1.Hair)); }; if (_arg1.FacialHair != "-1"){ loadFacialHair(int(_arg1.FacialHair)); }; if (_arg1.Hat != "-1"){ loadHat(int(_arg1.Hat)); }; if (_arg1.Glasses != "-1"){ loadGlasses(int(_arg1.Glasses)); }; if (_arg1.aHeadDecal != "-1"){ loadHeadDecal(int(_arg1.aHeadDecal)); }; if (_arg1.HatDecal != "-1"){ loadHatDecal(int(_arg1.HatDecal)); }; if (_arg1.Torso != "-1"){ loadTorso(int(_arg1.Torso)); }; if (_arg1.Pants != "-1"){ loadPants(int(_arg1.Pants)); }; if (_arg1.Decal != "-1"){ loadTorsoDecal(int(_arg1.Decal)); }; if (_arg1.Back != "-1"){ loadBack(int(_arg1.Back)); }; if (_arg1.Belt != "-1"){ loadBelt(int(_arg1.Belt)); }; if (_arg1.Neck != "-1"){ loadNeck(int(_arg1.Neck)); }; if (_arg1.Jacket != "-1"){ loadJacket(int(_arg1.Jacket)); }; if (_arg1.Feet != "-1"){ loadFeet(int(_arg1.Feet)); }; mHairIndex = int(_arg1.Hair); mFacialHairIndex = int(_arg1.FacialHair); mHatIndex = int(_arg1.Hat); mGlassesIndex = int(_arg1.Glasses); mHeadDecalIndex = int(_arg1.aHeadDecal); mHatDecalIndex = int(_arg1.HatDecal); mTorsoIndex = int(_arg1.Torso); mPantsIndex = int(_arg1.Pants); mTorsoDecalIndex = int(_arg1.Decal); mBackIndex = int(_arg1.Back); mBeltIndex = int(_arg1.Belt); mNeckIndex = int(_arg1.Neck); mJacketIndex = int(_arg1.Jacket); mFeetIndex = int(_arg1.Feet); mColors[COLORINDEX_SKIN].curColor = -1; mColors[COLORINDEX_SKIN].newColor = _arg1.Skin.@color; mColors[COLORINDEX_HAIR].newColor = _arg1.Hair.@color; mColors[COLORINDEX_FACIALHAIR].newColor = _arg1.Hair.@color; mColors[COLORINDEX_HAT].newColor = _arg1.Hat.@color; mColors[COLORINDEX_TORSO].newColor = _arg1.Torso.@color; mColors[COLORINDEX_TORSODECAL].newColor = _arg1.Decal.@color; mColors[COLORINDEX_PANTS].newColor = _arg1.Pants.@color; mColors[COLORINDEX_JACKET].newColor = _arg1.Jacket.@color; mColors[COLORINDEX_FEET].newColor = _arg1.Feet.@color; _local2 = 0; while (_local2 < _arg1.customData.length()) { mCustomData[_local2] = _arg1.customData[_local2]; _local2++; }; mZip = _arg1.zip; mAge = int(_arg1.age); mRelationshipStatus = int(_arg1.relationshipStatus); mEthnicity = int(_arg1.ethnicity); mGender = int(_arg1.gender); mOrientation = int(_arg1.orientation); mGroupAffiliation = int(_arg1.groupAffiliation); mName = _arg1.name; mLoc = _arg1.loc; } public function loadTorsoDecal(_arg1:int){ mImgTorsoDecal = null; if ((((_arg1 < 0)) || ((_arg1 >= NUM_TORSODECALS)))){ return; }; mColors[COLORINDEX_TORSODECAL].curColor = -1; mImgTorsoDecal = mlib2_Bitmap.createImage(getFileString(12, _arg1), !(mFacingRight)); mImgTorsoDecal.addCompleteCallback(onEgoPartLoad); mTorsoDecalX = getCustomizationOffset(12, _arg1, 0); mTorsoDecalY = getCustomizationOffset(12, _arg1, 1); if (!mFacingRight){ mTorsoDecalX = -(mTorsoDecalX); }; } public function tickParts(_arg1:int, _arg2:int){ var _local3:Number; var _local4:Number; var _local5:int; var _local6:Bitmap; var _local7:Number; var _local8:Number; if (mIsInComponent){ _local3 = mX; } else { _local3 = (mX - mContext.mBGx); }; _local4 = mY; if ((((mHeadMC == null)) || ((mBodyMC == null)))){ return; }; if (mFacingRight){ mBackHand.onTick(_arg1, (_local3 + (mScale * 6)), (_local4 - (mScale * 3)), _arg2); mBackFoot.onTick(_arg1, (_local3 + (mScale * 10)), _local4, _arg2); mTorso.onTick(_arg1, _local3, _local4, _arg2); mHead.onTick(_arg1, _local3, _local4, _arg2); mHeadMC.x = (mHead.mX - ((HEAD_WIDTH * mScale) / 2)); mHeadMC.y = (mHead.mY - ((HEAD_HEIGHT * mScale) / 2)); mHeadMC.scaleX = mScale; mHeadMC.scaleY = mScale; mBodyMC.x = mTorso.mX; mBodyMC.y = mTorso.mY; mBodyMC.scaleX = mScale; mBodyMC.scaleY = mScale; mEyes.onTick(_arg1, _local3, _local4, _arg2); mMouth.onTick(_arg1, _local3, _local4, _arg2); mFrontHand.onTick(_arg1, (_local3 - (mScale * 4)), _local4, _arg2); mFrontFoot.onTick(_arg1, _local3, _local4, _arg2); mItem.onTick(_arg1, _local3, _local4, _arg2); mItem2.onTick(_arg1, _local3, _local4, _arg2); mItem3.onTick(_arg1, _local3, _local4, _arg2); mItem4.onTick(_arg1, _local3, _local4, _arg2); mItem5.onTick(_arg1, _local3, _local4, _arg2); mItem6.onTick(_arg1, _local3, _local4, _arg2); } else { mBackHand.onTick(_arg1, (_local3 - (mScale * 6)), (_local4 - (mScale * 3)), _arg2); mBackFoot.onTick(_arg1, (_local3 - (mScale * 10)), _local4, _arg2); mTorso.onTick(_arg1, _local3, _local4, _arg2); mHead.onTick(_arg1, _local3, _local4, _arg2); mHeadMC.x = (mHead.mX + ((HEAD_WIDTH * mScale) / 2)); mHeadMC.y = (mHead.mY - ((HEAD_HEIGHT * mScale) / 2)); mHeadMC.scaleX = -(mScale); mHeadMC.scaleY = mScale; mBodyMC.x = mTorso.mX; mBodyMC.y = mTorso.mY; mBodyMC.scaleX = -(mScale); mBodyMC.scaleY = mScale; mEyes.onTick(_arg1, _local3, _local4, _arg2); mMouth.onTick(_arg1, _local3, _local4, _arg2); mFrontHand.onTick(_arg1, (_local3 + (mScale * 4)), _local4, _arg2); mFrontFoot.onTick(_arg1, _local3, _local4, _arg2); mItem.onTick(_arg1, _local3, _local4, _arg2); mItem2.onTick(_arg1, _local3, _local4, _arg2); mItem3.onTick(_arg1, _local3, _local4, _arg2); mItem4.onTick(_arg1, _local3, _local4, _arg2); mItem5.onTick(_arg1, _local3, _local4, _arg2); mItem6.onTick(_arg1, _local3, _local4, _arg2); }; mEyeFrames.getChildAt(mCurEyeIndex).visible = false; mCurEyeIndex = (getEyeIndex() - 1); mEyeFrames.getChildAt(mCurEyeIndex).visible = true; mMouthFrames.getChildAt(mCurMouthIndex).visible = false; mCurMouthIndex = (getMouthIndex() - 1); mMouthFrames.getChildAt(mCurMouthIndex).visible = true; mBackHandFrames.getChildAt(mCurBackHandIndex).visible = false; mCurBackHandIndex = getHandImage(mBackHand.mCurImage, mBackHand.mType); mBackHandFrames.getChildAt(mCurBackHandIndex).visible = true; if (mFacingRight){ mBackHandFrames.x = (mBackHand.mX - (HANDS_WIDTH / 2)); } else { mBackHandFrames.x = (mBackHand.mX + (HANDS_WIDTH / 2)); }; mBackHandFrames.y = (mBackHand.mY - (HANDS_HEIGHT / 2)); mBackHandFrames.scaleX = (mFacingRight) ? mScale : -(mScale); mBackHandFrames.scaleY = mScale; mFrontHandFrames.getChildAt(mCurFrontHandIndex).visible = false; mCurFrontHandIndex = getHandImage(mFrontHand.mCurImage, mFrontHand.mType); mFrontHandFrames.getChildAt(mCurFrontHandIndex).visible = true; if (mFacingRight){ mFrontHandFrames.x = (mFrontHand.mX - (HANDS_WIDTH / 2)); } else { mFrontHandFrames.x = (mFrontHand.mX + (HANDS_WIDTH / 2)); }; mFrontHandFrames.y = (mFrontHand.mY - (HANDS_HEIGHT / 2)); mFrontHandFrames.scaleX = (mFacingRight) ? mScale : -(mScale); mFrontHandFrames.scaleY = mScale; _local7 = ((mImgFeet.bitmapData.width / 6) * mScale); _local8 = (mImgFeet.bitmapData.height * mScale); mBackFootFrames.getChildAt(mCurBackFootIndex).visible = false; mCurBackFootIndex = mBackFoot.mCurImage; mBackFootFrames.getChildAt(mCurBackFootIndex).visible = true; if (mFacingRight){ mBackFootFrames.x = (mBackFoot.mX - (_local7 / 2)); } else { mBackFootFrames.x = (mBackFoot.mX + (_local7 / 2)); }; mBackFootFrames.y = (mBackFoot.mY - (_local8 / 2)); mBackFootFrames.scaleX = (mFacingRight) ? mScale : -(mScale); mBackFootFrames.scaleY = mScale; mFrontFootFrames.getChildAt(mCurFrontFootIndex).visible = false; mCurFrontFootIndex = mFrontFoot.mCurImage; mFrontFootFrames.getChildAt(mCurFrontFootIndex).visible = true; if (mFacingRight){ mFrontFootFrames.x = (mFrontFoot.mX - (_local7 / 2)); } else { mFrontFootFrames.x = (mFrontFoot.mX + (_local7 / 2)); }; mFrontFootFrames.y = (mFrontFoot.mY - (_local8 / 2)); mFrontFootFrames.scaleX = (mFacingRight) ? mScale : -(mScale); mFrontFootFrames.scaleY = mScale; if (mBlending){ _arg2 = mBlendTimer.getElapsed(); mBlendHead.onTick(_arg1, _local3, _local4, _arg2); mBlendEyes.onTick(_arg1, _local3, _local4, _arg2); mBlendMouth.onTick(_arg1, _local3, _local4, _arg2); mBlendTorso.onTick(_arg1, _local3, _local4, _arg2); mBlendFrontFoot.onTick(_arg1, _local3, _local4, _arg2); mBlendCursor.onTick(_arg1, _local3, _local4, _arg2); mBlendFrontHand.onTick(_arg1, _local3, _local4, _arg2); mBlendBackHand.onTick(_arg1, _local3, _local4, _arg2); mBlendBackFoot.onTick(_arg1, _local3, _local4, _arg2); mHead.blend(mBlendHead); mTorso.blend(mBlendTorso); mFrontHand.blend(mBlendFrontHand); mBackHand.blend(mBlendBackHand); mFrontFoot.blend(mBlendFrontFoot); mBackFoot.blend(mBlendBackFoot); mEyes.mCurImage = mBlendEyes.mCurImage; mMouth.mCurImage = mBlendMouth.mCurImage; }; sortParts(); } public function loadHeadDecal(_arg1:int){ mImgHeadDecal = null; if ((((_arg1 < 0)) || ((_arg1 >= NUM_HEADDECALS)))){ return; }; mImgHeadDecal = mlib2_Bitmap.createImage(getFileString(6, _arg1), !(mFacingRight)); mImgHeadDecal.addCompleteCallback(onEgoPartLoad); mHeadDecalX = getCustomizationOffset(6, _arg1, 0); mHeadDecalY = getCustomizationOffset(6, _arg1, 1); if (!mFacingRight){ mHeadDecalX = -(mHeadDecalX); }; } public function loadDummy(){ if (mIsMale){ mImgDummy = mlib2_Bitmap.createImage((RESOURCE_URL + "res/cursor_hand.png"), !(mFacingRight)); } else { mImgDummy = mlib2_Bitmap.createImage((RESOURCE_URL + "res/cursor_hand.png"), !(mFacingRight)); }; mImgDummy.addCompleteCallback(onEgoPartLoad); } function isOverTorso(_arg1:int, _arg2:int):Boolean{ var _local3:int; var _local4:int; var _local5:int; var _local6:int; if ((((mImgGroupBody == null)) || ((mImgGroupBody.bitmapData == null)))){ return (false); }; if (mFacingRight){ _local3 = (mTorso.mX - (mGroupBodyXOff * mScale)); _local4 = (_local3 + (mImgGroupBody.bitmapData.width * mScale)); } else { _local3 = ((mTorso.mX + (mGroupBodyXOff * mScale)) - mImgGroupBody.bitmapData.width); _local4 = (_local3 + (mImgGroupBody.bitmapData.width * mScale)); }; _local5 = (mTorso.mY - (mGroupBodyYOff * mScale)); _local6 = (_local5 + (mImgGroupBody.bitmapData.height * mScale)); if (_arg1 < _local3){ return (false); }; if (_arg1 > _local4){ return (false); }; if (_arg2 < _local5){ return (false); }; if (_arg2 > _local6){ return (false); }; return (true); } public function getHandImage(_arg1:int, _arg2:int):int{ if (_arg2 == Curve.BACKHAND){ if (_arg1 < 16){ return (_arg1); }; switch (_arg1){ default: return (-1); case 17: case 18: case 19: return ((_arg1 - 1)); case 25: return (19); case 27: return (20); case 28: return (54); case 29: return (57); }; } else { if (_arg1 < 32){ return ((_arg1 + 21)); }; switch (_arg1){ default: return (-1); case 40: return (53); case 41: return (54); case 42: return (55); case 46: return (56); }; }; return (-1); } public function getNextColorIndex(_arg1:int, _arg2:Boolean){ var _local3:int; var _local4:Array; var _local5:int; switch (_arg1){ default: return; case Constants.CUSTOMPARTS_HAIRCOLOR: _local3 = ((Ego.NUM_ARCHETYPES * 2) + 1); break; case Constants.CUSTOMPARTS_HATCOLOR: _local3 = getArchetypeFromPart(Constants.CUSTOMPARTS_HAT, mHatIndex); break; case Constants.CUSTOMPARTS_HATDECAL: _local3 = getArchetypeFromPart(Constants.CUSTOMPARTS_HAT, mHatIndex); break; case Constants.CUSTOMPARTS_TORSOCOLOR: _local3 = getArchetypeFromPart(Constants.CUSTOMPARTS_TORSO, mTorsoIndex); break; case Constants.CUSTOMPARTS_PANTSCOLOR: _local3 = getArchetypeFromPart(Constants.CUSTOMPARTS_PANTS, mPantsIndex); break; case Constants.CUSTOMPARTS_DECALCOLOR: _local3 = getArchetypeFromPart(Constants.CUSTOMPARTS_TORSODECAL, mTorsoDecalIndex); break; case Constants.CUSTOMPARTS_JACKETCOLOR: _local3 = getArchetypeFromPart(Constants.CUSTOMPARTS_JACKET, mJacketIndex); break; case Constants.CUSTOMPARTS_FEETCOLOR: _local3 = getArchetypeFromPart(Constants.CUSTOMPARTS_FEET, mFeetIndex); break; }; _local4 = mArchData; _local5 = (_local3 * Constants.SIZE_PER_ARCHETYPE); switch (_arg1){ default: return; case Constants.CUSTOMPARTS_HAIRCOLOR: _local5 = (_local5 + Constants.CUSTOMINDEX_HAIRCOLOR); mColors[COLORINDEX_HAIR].newColor = getNextIndex(_local4, mColors[COLORINDEX_HAIR].curColor, Constants.SIZE_CUSTOM_HAIRCOLOR, 0, _arg2, _local5); if (mFacialHairIndex != -1){ mColors[COLORINDEX_FACIALHAIR].newColor = mColors[COLORINDEX_HAIR].newColor; }; break; case Constants.CUSTOMPARTS_HATCOLOR: _local5 = (_local5 + Constants.CUSTOMINDEX_HATCOLOR); if (mColors[COLORINDEX_HAT].curColor == -1){ mColors[COLORINDEX_HAT].newColor = getNextIndex(_local4, 0, Constants.SIZE_CUSTOM_HATCOLOR, 0, _arg2, _local5); } else { mColors[COLORINDEX_HAT].newColor = getNextIndex(_local4, mColors[COLORINDEX_HAT].curColor, Constants.SIZE_CUSTOM_HATCOLOR, 0, _arg2, _local5); }; break; case Constants.CUSTOMPARTS_HATDECAL: _local5 = (_local5 + Constants.CUSTOMINDEX_HATDECAL); mHatDecalIndex = getNextIndex(_local4, mHatDecalIndex, Constants.SIZE_CUSTOM_HATDECAL, -1, _arg2, _local5); loadHatDecal(mHatDecalIndex); break; case Constants.CUSTOMPARTS_TORSOCOLOR: _local5 = (_local5 + Constants.CUSTOMINDEX_TORSOCOLOR); mColors[COLORINDEX_TORSO].newColor = getNextIndex(_local4, mColors[COLORINDEX_TORSO].curColor, Constants.SIZE_CUSTOM_TORSOCOLOR, 0, _arg2, _local5); break; case Constants.CUSTOMPARTS_PANTSCOLOR: _local5 = (_local5 + Constants.CUSTOMINDEX_PANTSCOLOR); mColors[COLORINDEX_PANTS].newColor = getNextIndex(_local4, mColors[COLORINDEX_PANTS].curColor, Constants.SIZE_CUSTOM_PANTSCOLOR, 0, _arg2, _local5); break; case Constants.CUSTOMPARTS_DECALCOLOR: _local5 = (_local5 + Constants.CUSTOMINDEX_DECALCOLOR); if (mColors[COLORINDEX_TORSODECAL].curColor == -1){ mColors[COLORINDEX_TORSODECAL].newColor = getNextIndex(_local4, 0, Constants.SIZE_CUSTOM_DECALCOLOR, 0, _arg2, _local5); } else { mColors[COLORINDEX_TORSODECAL].newColor = getNextIndex(_local4, mColors[COLORINDEX_TORSODECAL].curColor, Constants.SIZE_CUSTOM_DECALCOLOR, 0, _arg2, _local5); }; break; case Constants.CUSTOMPARTS_JACKETCOLOR: _local5 = (_local5 + Constants.CUSTOMINDEX_JACKETCOLOR); mColors[COLORINDEX_JACKET].newColor = getNextIndex(_local4, mColors[COLORINDEX_JACKET].curColor, Constants.SIZE_CUSTOM_JACKETCOLOR, 0, _arg2, _local5); break; case Constants.CUSTOMPARTS_FEETCOLOR: _local5 = (_local5 + Constants.CUSTOMINDEX_FEETCOLOR); mColors[COLORINDEX_FEET].newColor = getNextIndex(_local4, mColors[COLORINDEX_FEET].curColor, Constants.SIZE_CUSTOM_FEETCOLOR, 0, _arg2, _local5); break; }; } public function loadBelt(_arg1:int){ mImgBelt = null; mImgBelt2 = null; if ((((_arg1 < 0)) || ((_arg1 >= NUM_BELTS)))){ return; }; mImgBelt = mlib2_Bitmap.createImage(getFileString(15, _arg1), !(mFacingRight)); mImgBelt.addCompleteCallback(onEgoPartLoad); mBeltX = getCustomizationOffset(15, _arg1, 0); mBeltY = getCustomizationOffset(15, _arg1, 1); if (!mFacingRight){ mBeltX = -(mBeltX); }; if (_arg1 == 0){ mImgBelt2 = mlib2_Bitmap.createImage(getFileString(15, (_arg1 + 1)), !(mFacingRight)); mBelt2X = getCustomizationOffset(15, (_arg1 + 1), 0); mBelt2Y = getCustomizationOffset(15, (_arg1 + 1), 1); if (!mFacingRight){ mBelt2X = -(mBelt2X); }; }; } public function loadHandsWithItems(){ mImgHandsItems = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/hands_items.png"), !(mFacingRight)); mImgHandsItems.addCompleteCallback(onEgoPartLoad); } function xmlBlendAnimLoaded(_arg1:Event){ mBlendAnimXML = XML(myBlendLoader.data); loadAnimXML(mBlendAnimXML); } public function loadMouth(){ if (mIsMale){ mImgMouth = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/mouth_male.png"), !(mFacingRight)); } else { mImgMouth = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/mouth_female.png"), !(mFacingRight)); }; mImgMouth.addCompleteCallback(onEgoPartLoad); } public function loadDefaultEgo(){ var _local1:int; mArchetype = Ego.ARCHETYPE_INTRO; resetAttributes(); mIsMale = true; mColors[COLORINDEX_SKIN].newColor = Context.SKIN_COLOR2; changeToArchetype(true); mContext.resetTempStats(); mContext.resetStats(); _local1 = 0; while (_local1 < Context.NUM_ARCHS) { mContext.mLockedArchs[_local1] = true; _local1++; }; _local1 = 0; while (_local1 < Context.NUM_FOODS) { mContext.mLockedFoods[_local1] = true; _local1++; }; _local1 = 0; while (_local1 < Context.NUM_TOYS) { mContext.mLockedToys[_local1] = true; _local1++; }; _local1 = 0; while (_local1 < Context.NUM_GIFTS) { mContext.mLockedComps[_local1] = true; _local1++; }; mContext.mNewEgo = false; mContext.mRetired = false; mContext.mJudgement = 0; mFirstAttChange = true; } public function loadFeet(_arg1:int){ mImgFeet = mlib2_Bitmap.createImage(getFileString(19, _arg1), !(mFacingRight)); mImgFeet.addCompleteCallback(onEgoPartLoad); mColors[COLORINDEX_FEET].curColor = -1; } public function resetReplayGrowth():void{ var _local1:int; _local1 = 0; while (_local1 < NUM_ATTRIBUTES) { mReplayGrowth[_local1] = 0; _local1++; }; mReplayPhysicalGrowth[0] = 0; mReplayPhysicalGrowth[1] = 0; mReplayPhysicalGrowth[2] = 0; } public function getArchetypeFromPart(_arg1:int, _arg2:int):int{ var _local3:Array; var _local4:int; var _local5:int; var _local6:int; var _local7:int; if ((((((mArchetype == ARCHETYPE_FUNKY)) || ((mArchetype == ARCHETYPE_TSHIRT)))) || ((mArchetype == ARCHETYPE_SUIT)))){ _local7 = (mArchetype * 2); if (mIsMale){ return ((_local7 + 1)); }; return (_local7); }; switch (_arg1){ default: return (-1); case Constants.CUSTOMPARTS_HAIR: _local5 = Constants.CUSTOMINDEX_HAIR; _local4 = Constants.SIZE_CUSTOM_HAIR; break; case Constants.CUSTOMPARTS_FACIALHAIR: _local5 = Constants.CUSTOMINDEX_FACIALHAIR; _local4 = Constants.SIZE_CUSTOM_FACIALHAIR; break; case Constants.CUSTOMPARTS_GLASSES: _local5 = Constants.CUSTOMINDEX_GLASSES; _local4 = Constants.SIZE_CUSTOM_GLASSES; break; case Constants.CUSTOMPARTS_HAT: _local5 = Constants.CUSTOMINDEX_HAT; _local4 = Constants.SIZE_CUSTOM_HAT; break; case Constants.CUSTOMPARTS_HEADDECAL: _local5 = Constants.CUSTOMINDEX_HEADDECAL; _local4 = Constants.SIZE_CUSTOM_HEADDECAL; break; case Constants.CUSTOMPARTS_HATDECAL: _local5 = Constants.CUSTOMINDEX_HATDECAL; _local4 = Constants.SIZE_CUSTOM_HATDECAL; break; case Constants.CUSTOMPARTS_BACK: _local5 = Constants.CUSTOMINDEX_BACK; _local4 = Constants.SIZE_CUSTOM_BACK; break; case Constants.CUSTOMPARTS_BELT: _local5 = Constants.CUSTOMINDEX_BELT; _local4 = Constants.SIZE_CUSTOM_BELT; break; case Constants.CUSTOMPARTS_JACKET: case Constants.CUSTOMPARTS_JACKETCOLOR: _local5 = Constants.CUSTOMINDEX_JACKET; _local4 = Constants.SIZE_CUSTOM_JACKET; break; case Constants.CUSTOMPARTS_NECK: _local5 = Constants.CUSTOMINDEX_NECK; _local4 = Constants.SIZE_CUSTOM_NECK; break; case Constants.CUSTOMPARTS_TORSO: case Constants.CUSTOMPARTS_TORSOCOLOR: _local5 = Constants.CUSTOMINDEX_TORSO; _local4 = Constants.SIZE_CUSTOM_TORSO; break; case Constants.CUSTOMPARTS_PANTS: case Constants.CUSTOMPARTS_PANTSCOLOR: _local5 = Constants.CUSTOMINDEX_PANTS; _local4 = Constants.SIZE_CUSTOM_PANTS; break; case Constants.CUSTOMPARTS_TORSODECAL: case Constants.CUSTOMPARTS_DECALCOLOR: _local5 = Constants.CUSTOMINDEX_TORSODECAL; _local4 = Constants.SIZE_CUSTOM_TORSODECAL; break; case Constants.CUSTOMPARTS_FEET: _local5 = Constants.CUSTOMINDEX_FEET; _local4 = Constants.SIZE_CUSTOM_FEET; break; }; _local6 = 0; while (_local6 <= (Ego.NUM_ALL_ARCHETYPES * 2)) { if (checkIndex(mArchData, _arg2, _local5)){ return (_local6); }; _local5 = (_local5 + Constants.SIZE_PER_ARCHETYPE); _local6++; }; return (-1); } public function loadAnimByNumber(_arg1:int){ var _local2:String; if (_arg1 < 10){ _local2 = (((RESOURCE_URL + "res/anims/400") + _arg1) + ".xml"); } else { if (_arg1 < 100){ _local2 = (((RESOURCE_URL + "res/anims/40") + _arg1) + ".xml"); } else { _local2 = (((RESOURCE_URL + "res/anims/4") + _arg1) + ".xml"); }; }; mLoadingAnim = true; mAnimXML = new XML(); myXMLURL = new URLRequest(_local2); myLoader = new URLLoader(myXMLURL); myLoader.addEventListener("complete", xmlAnimLoaded); } public function checkSimilar():Boolean{ if (mSimilarity >= 2){ return (true); }; return (false); } public function torsoBehindBelt(_arg1:int):Boolean{ switch (_arg1){ default: return (true); case 6: case 7: case 18: case 19: case 25: case 26: case 27: case 28: case 30: case 31: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 53: case 54: case 58: case 59: case 60: case 63: case 65: case 69: case 70: case 73: case 75: case 79: case 80: case 81: case 83: return (false); }; } public function loadHat(_arg1:int){ var _local2:int; mImgHat = null; if ((((_arg1 < 0)) || ((_arg1 >= NUM_HATS)))){ return; }; mColors[COLORINDEX_HAT].curColor = -1; if ((((_arg1 == 29)) || ((_arg1 == 30)))){ mSortHatBehind = true; } else { mSortHatBehind = false; }; mImgHat = mlib2_Bitmap.createImage(getFileString(3, _arg1), !(mFacingRight)); mImgHat.addCompleteCallback(onEgoPartLoad); mHatX = getCustomizationOffset(3, _arg1, 0); mHatY = getCustomizationOffset(3, _arg1, 1); if (!mFacingRight){ mHatX = -(mHatX); }; _local2 = getHatHair(_arg1); if (_local2 != -2){ loadHair(_local2, true); }; } public function getRandomColorIndex(_arg1:int, _arg2:int):int{ var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; var _local8:int; var _local9:int; _local7 = getArchetypeFromPart(_arg1, _arg2); _local8 = (_local7 * Constants.SIZE_PER_ARCHETYPE); _local9 = getNumParts(_arg1); if (_local9 <= 0){ return (0); }; _local4 = ((mContext.getRandom() % _local9) + 1); switch (_arg1){ default: return (0); case Constants.CUSTOMPARTS_TORSOCOLOR: _local8 = (_local8 + Constants.CUSTOMINDEX_TORSOCOLOR); _local5 = Constants.SIZE_CUSTOM_TORSOCOLOR; _local3 = mColors[COLORINDEX_TORSO].curColor; break; case Constants.CUSTOMPARTS_PANTSCOLOR: _local8 = (_local8 + Constants.CUSTOMINDEX_PANTSCOLOR); _local5 = Constants.SIZE_CUSTOM_PANTSCOLOR; _local3 = mColors[COLORINDEX_PANTS].curColor; break; case Constants.CUSTOMPARTS_DECALCOLOR: _local8 = (_local8 + Constants.CUSTOMINDEX_DECALCOLOR); _local5 = Constants.SIZE_CUSTOM_DECALCOLOR; _local3 = mColors[COLORINDEX_TORSODECAL].curColor; break; case Constants.CUSTOMPARTS_JACKETCOLOR: _local8 = (_local8 + Constants.CUSTOMINDEX_JACKETCOLOR); _local5 = Constants.SIZE_CUSTOM_JACKETCOLOR; _local3 = mColors[COLORINDEX_JACKET].curColor; break; }; if (_local3 == -1){ _local3 = 0; }; _local6 = 0; while (_local6 < _local4) { _local3 = getNextIndex(mArchData, _local3, _local5, 0, true, _local8); _local6++; }; return (_local3); } private function sortParts(){ while (numChildren > 0) { removeChildAt(0); }; addBySortOrder(-1); addBySortOrder(0); addBySortOrder(1); } public function loadItemImage(_arg1:int){ var _local2:String; if (_arg1 < 10){ _local2 = (((RESOURCE_URL + "res/items/img_00") + _arg1) + ".png"); } else { if (_arg1 < 100){ _local2 = (((RESOURCE_URL + "res/items/img_0") + _arg1) + ".png"); } else { _local2 = (((RESOURCE_URL + "res/items/img_") + _arg1) + ".png"); }; }; mImgItems[_arg1] = mlib2_Bitmap.createImage(_local2, !(mFacingRight)); } public function loadHead(){ mImgHead = mlib2_Bitmap.createImage((RESOURCE_URL + "res/ego_base/head.png"), !(mFacingRight)); mImgHead.addCompleteCallback(onEgoPartLoad); } private static function onCompleteMouthSet(_arg1:Event){ var _local2:String; _local2 = mMouthSetLoader.data; mMouthSet = _local2.split("\n"); } public static function onCompleteEyeSet(_arg1:Event){ var _local2:String; _local2 = mEyeSetLoader.data; mEyeSet = _local2.split("\n"); } private static function onCompleteArchData(_arg1:Event){ var _local2:String; var _local3:int; _local2 = mArchDataLoader.data; mArchData = _local2.split(","); _local3 = 0; while (_local3 < mArchData.length) { mArchData[_local3] = int(mArchData[_local3]); _local3++; }; } } }//package game2
Section 52
//GraphicalFont (game2.GraphicalFont) package game2 { import flash.events.*; import mlib2.core.*; import flash.net.*; public class GraphicalFont { private var mTotalChars:int; private var fontXML:XML; private var mOldColor:int; private var mOffsets:Array; private var mSpacing:int; private var myLoader:URLLoader; private var myXMLURL:URLRequest; private var mImage:mlib2_Bitmap; private var mNewColor:int; private var mHeight:int; private var mNumOfCharacter:int; private var mWidths:Array; public function GraphicalFont(_arg1:Context, _arg2:String, _arg3:String, _arg4:int){ mWidths = new Array(); mOffsets = new Array(); super(); mImage = mlib2_Bitmap.createImage(_arg2, false); mSpacing = _arg4; mHeight = -1; fontXML = new XML(); myXMLURL = new URLRequest(_arg3); myLoader = new URLLoader(myXMLURL); myLoader.addEventListener("complete", xmlLoaded); mOldColor = (mNewColor = -1); } public function drawString(_arg1:mlib2_GL, _arg2:String, _arg3:int, _arg4:int, _arg5:int=0){ var _local6:int; var _local7:int; var _local8:int; if ((((mImage == null)) || ((mImage.bitmapData == null)))){ return; }; if (mOldColor != mNewColor){ mImage.replacePaletteColor(mOldColor, mNewColor); mOldColor = mNewColor; }; _local6 = mImage.bitmapData.height; _arg2 = _arg2.toUpperCase(); if (_arg5 != 0){ if ((_arg5 & mlib2_GL.HCENTER) != 0){ _arg3 = (_arg3 - (getWidth(_arg2) >> 1)); } else { if ((_arg5 & mlib2_GL.RIGHT) != 0){ _arg3 = (_arg3 - getWidth(_arg2)); }; }; if ((_arg5 & mlib2_GL.VCENTER) != 0){ _arg4 = (_arg4 - (_local6 >> 1)); } else { if ((_arg5 & mlib2_GL.BOTTOM) != 0){ _arg4 = (_arg4 - _local6); }; }; }; _local7 = 0; while (_local7 < _arg2.length) { _local8 = int(_arg2.charCodeAt(_local7)); if (_local8 < mTotalChars){ if (mOffsets[_local8] != -1){ _arg1.setClip(_arg3, _arg4, mWidths[_local8], _local6); _arg1.drawImage(mImage, (_arg3 - mOffsets[_local8]), _arg4); _arg3 = (_arg3 + (mWidths[_local8] + mSpacing)); } else { _arg3 = (_arg3 + 2); }; }; _local7++; }; _arg1.resetClip(); } public function isWhitespace(_arg1:String):Boolean{ return ((((_arg1 == " ")) || ((_arg1 == "\n")))); } public function getWidth(_arg1:String, _arg2:int=0, _arg3:int=-1):int{ var _local4:int; var _local5:int; var _local6:int; if (_arg1 == null){ return (0); }; if (_arg3 == -1){ _arg3 = (_arg1.length - 1); }; _arg1 = _arg1.toUpperCase(); _local4 = 0; _local6 = _arg2; while ((((_local6 < _arg1.length)) && ((_local6 <= _arg3)))) { _local5 = _arg1.charCodeAt(_local6); if (_local5 < mTotalChars){ if (mOffsets[_local5] != -1){ _local4 = (_local4 + (mWidths[_local5] + mSpacing)); } else { _local4 = (_local4 + 2); }; }; _local6++; }; return (_local4); } public function generateWordWrap(_arg1:String, _arg2:int):Array{ var _local3:Array; var _local4:int; var _local5:int; var _local6:Boolean; var _local7:int; var _local8:int; var _local9:int; var _local10:int; var _local11:String; var _local12:int; var _local13:Boolean; var _local14:*; var _local15:*; _local3 = new Array(); _local4 = _arg1.length; _local5 = 0; while (_local5 < _local4) { _local7 = _local5; _local8 = _local5; _local6 = false; while ((((_local5 < _local4)) && (!(isWhitespace(_arg1.charAt(_local5)))))) { if (getSubstringWidth(_arg1, _local7, _local5) > _arg2){ _local5--; _local6 = true; break; }; _local5++; }; _local9 = getSubstringWidth(_arg1, _local7, _local5); _local10 = _local5; if (_local9 > _arg2){ _local12 = 0; do { _local5--; _local12 = getSubstringWidth(_arg1, _local5, _local10); } while (_local12 < (_local9 - _arg2)); _local8 = _local5; } else { _local13 = false; do { _local14 = _local5; while ((((_local5 < _local4)) && ((_arg1.charAt(_local5) == " ")))) { _local5++; }; if (_local5 == _local4){ _local8 = _local5; _local13 = true; } else { _local15 = _arg1.charAt(_local5); switch (_local15){ case "\n": case "|": _local8 = _local14; _local5++; _local13 = true; break; default: if (getSubstringWidth(_arg1, _local7, _local5) > _arg2){ _local8 = _local14; _local13 = true; }; break; }; }; if (!_local13){ _local14 = _local5; do { _local5++; } while ((((_local5 < _local4)) && (!(isWhitespace(_arg1.charAt(_local5)))))); if (getSubstringWidth(_arg1, _local7, _local5) > _arg2){ _local8 = _local14; _local5 = _local14; _local13 = true; }; }; } while (!(_local13)); }; _local11 = _arg1.substr(_local7, (_local8 - _local7)); if (_local6){ _local11.concat("-"); }; _local3.push(_local11); }; return (_local3); } public function getCharWidth(_arg1:String):int{ if (int(_arg1) < mTotalChars){ return (mWidths[_arg1]); }; return (0); } public function setColor(_arg1:Array, _arg2:int){ } public function changeColor(_arg1:int, _arg2:int){ mOldColor = _arg1; mNewColor = _arg2; } public function drawWordWrap(_arg1:mlib2_GL, _arg2:Array, _arg3:int, _arg4:int, _arg5:int, _arg6:int):int{ var _local7:*; var _local8:*; var _local9:String; var _local10:int; _local7 = _arg3; _local8 = _arg4; _local10 = 0; while (_local10 < _arg2.length) { _local9 = _arg2[_local10]; drawString(_arg1, _local9, _local7, _local8, _arg6); _local8 = (_local8 + _arg5); _local10++; }; return (((_arg2.length * getHeight()) + ((_arg2.length - 1) * (_arg5 - getHeight())))); } public function getSubstringWidth(_arg1:String, _arg2:int, _arg3:int):int{ var _local4:int; var _local5:int; var _local6:int; var _local7:int; if (_arg1 == null){ return (0); }; _local4 = 0; _local5 = _arg1.length; _local6 = _arg2; while ((((_local6 < _local5)) && ((_local6 <= _arg3)))) { _local7 = _arg1.charCodeAt(_local6); if ((((_local7 >= "a".charCodeAt(0))) && ((_local7 <= "z".charCodeAt(0))))){ _local7 = (_local7 + ("Z".charCodeAt(0) - "z".charCodeAt(0))); }; if ((((_local7 >= mNumOfCharacter)) || ((_local7 < 0)))){ _local4 = (_local4 + mWidths["I".charCodeAt(0)]); } else { if (mOffsets[_local7] != -1){ _local4 = ((_local4 + mWidths[_local7]) + mSpacing); } else { _local4 = (_local4 + mWidths["I".charCodeAt(0)]); }; }; _local6++; }; return (_local4); } public function getHeight():int{ if ((((mHeight == -1)) && (!((mImage.bitmapData == null))))){ mHeight = mImage.bitmapData.height; }; return (mHeight); } function xmlLoaded(_arg1:Event){ var _local2:int; fontXML = XML(myLoader.data); mTotalChars = fontXML.fontSize; mWidths = new Array(mTotalChars); mOffsets = new Array(mTotalChars); _local2 = 0; while (_local2 < mTotalChars) { mWidths[_local2] = int(fontXML.fontChar[_local2].@width); mOffsets[_local2] = int(fontXML.fontChar[_local2].@pos); _local2++; }; mNumOfCharacter = mTotalChars; } } }//package game2
Section 53
//ResData (game2.ResData) package game2 { public class ResData { public static const mPIRTable:Array = new Array(0, 8, 10, 8, 8, 8, 0, 0, 0, 0, 0, 0, 10, 10, 0, 10, 8, 10, 0, 10, 10, 10, 0, 0, 0, 10, 10, 10, 0, 8, 10, 8, 8, 8, 0, 0, 0, 0, 0, 0, 10, 10, 0, 10, 8, 10, 0, 10, 10, 10, 0, 0, 0, 10, 10, 10, 8, 8, 10, 8, 10, 8, 0, 0, 0, 8, 8, 0, 8, 10, 10, 8, 8, 8, 10, 8, 0, 0, 0, 10, 10, 0, 0, 8, 10, 8, 8, 0, 10, 10, 0, 0, 10, 10, 10, 0, 0, 0, 10, 8, 10, 0, 10, 0, 0, 0, 10, 10, 10, 0, 0, 0, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 8, 10, 10, 10, 10, 8, 10, 10, 10, 0, 0, 204, 201, 204, 0, 201, 0, 204, 0, 0, 0, 201, 0, 204, 204, 201, 0, 201, 201, 201, 201, 201, 0, 201, 204, 0, 0, 201, 201, 0, 201, 204, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 204, 0, 204, 204, 0, 0, 0, 201, 204, 0, 0, 0, 0, 0, 0, 0, 204, 0, 0, 204, 204, 0, 204, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 201, 0, 204, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 204, 0, 0, 0, 0, 201, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 10, 0, 8, 10, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 10, 10, 0, 10, 0, 0, 0, 0, 10, 10, 0, 0, 0, 0, 0, 0, 10, 10, 10, 0, 10, 0, 0, 0, 10, 10, 0, 10, 0, 0, 0, 0, 10, 10, 0, 0, 0, 0, 10, 10, 0, 0, 0, 0, 0, 0, 10, 10, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 10, 0, 10, 0, 0, 0, 0, 10, 10, 0, 10, 0, 0, 0, 0, 10); public static const mSMOTable:Array = new Array(204, 201, 201, 201, 204, 201, 201, 201, 204, 204, 201, 201, 204, 201, 201, 201); public static const mSIITable:Array = new Array(10, 8, 8, 10, 0, 10, 8, 0, 8, 0, 10, 8, 10, 10, 10, 8, 8, 0, 8, 0, 10, 10, 8, 0, 0, 8, 10, 0, 0, 0, 8, 8, 0, 0, 10, 0, 8, 0, 0, 0, 10, 8, 0, 0, 0, 8, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 10, 8, 10, 0, 0, 0, 0, 0, 0, 0, 10, 8, 10, 201, 204, 201, 201, 0, 201, 0, 204, 0, 204, 0, 0, 0, 204, 201, 0, 201, 201, 204, 201, 0, 0, 201, 201, 201, 201, 0, 0, 0, 204, 201, 201, 0, 0, 0, 204, 0, 0, 0, 0, 0, 0, 201, 0, 204, 0, 0, 0, 0, 204, 0, 204, 201, 204, 0, 201, 201, 201, 204, 0, 0, 0, 201, 204, 201, 201, 0, 204, 201, 0, 0, 0, 0, 201, 201, 201, 0, 204, 204, 0); public static const mMIMTable:Array = new Array(100, -100, -100, -100, 0, 10, 10, 0, 0, 10, 10, 0, 0, 5, 10, 0, 0, 5, 10, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, -5, 5, 10, 0, -5, 5, 10, 0, 204, 201, 204, 0, 204, 201, 204, 0, 204, 201, 201, 0, 204, 201, 201, 0, 204, 201, 201, 0, 204, 201, 201, 0, 201, 0, 204, 0, 201, 0, 204, 0, 0, 201, 201, 0, 0, 201, 201); public static const mSIMTable:Array = new Array(100, -100, -100, -100, -100, 0, 5, 10, 5, -10, 0, 5, 10, 5, -10, 0, 5, 0, 0, 10, 0, 5, 0, 0, 10, 0, 5, 0, 0, -10, 0, 5, 0, 0, -10, 0, 0, -5, 10, -10, 0, 0, -5, 10, -10); public static const mMIITable:Array = new Array(8, 8, 0, 8, 8, 10, 8, 0, 6, 0, 6, 8, 8, 10, 8, 8, 10, 8, 8, 10, 8, 0, 6, 0, 6, 8, 8, 10, 8, 8, 10, 8, 8, 10, 8, 0, 0, 0, 8, 10, 8, 0, 8, 10, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 201, 0, 0, 201, 204, 0, 201, 0, 201, 201, 0, 0, 204, 0, 0, 0, 0, 0, 0, 0, 201, 204, 201, 0, 0, 201, 201, 0, 201, 0, 204, 201, 0, 0, 0, 0, 201, 0, 0, 204, 0, 0, 201, 0, 204, 204, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); public static const mRecoverTable:Array = new Array(0, 0, 0, 201, 0, 0, 0, 0, 204, 0, 0, 201, 0, 0, 201, 0, 204, 0, 0, 201, 0, 0, 204, 0, 0, 0, 0, 201, 0, 204, 205, 204, 204, 204, 204, 204, 204, 205, 205, 205, 204, 204, 204, 204, 204, 204, 205, 205); public static const mArchetypeTable:Array = new Array(1, 1, 1, 1, 1, 2, 2, 2, 2, 66, 1, 0, 1, 66, 1, 72, 65, 0, 1, 128, 1, 1, 136, 0, 1, 0, 66, 68, 1, 1, 72, 130, 72, 72, 136, 66, 1, 65, 1, 8, 0, 2, 2, 2, 72, 1, 2, 1, 66, 2, 72, 128, 65, 1, 1, 1, 66, 68, 1, 2, 2, 65, 5, 0, 66, 66, 9, 70, 1, 72, 72, 1, 1, 2, 72, 0, 65, 0, 66, 1, 0, 1, 1, 130, 66, 65, 2, 70, 0, 1, 72, 2, 1, 66, 1, 72, 66, 1, 130, 128, 1, 72, 68, 66, 1, 0, 72, 129, 66, 2, 1, 66, 1, 1, 2, 2, 1, 66, 1, 66, 8, 1, 128, 0, 1, 2, 1, 2, 0, 72, 1, 65, 70, 66, 73, 2, 72, 130, 72, 72, 1, 66, 1, 0, 1, 72, 66, 0, 1, 2, 66, 0, 2, 72, 1, 73, 0, 1, 1, 128); public static const mMMOTable:Array = new Array(204, 0, 0, 201, 201, 0, 204, 0, 0, 201, 201, 201, 204, 0, 0, 201, 201, 201, 204, 201, 201, 201, 0, 0); public static const mSIRTable:Array = new Array(0, 10, 8, 10, 8, 6, 8, 0, 8, 0, 10, 10, 10, 6, 8, 0, 10, 8, 10, 8, 6, 10, 8, 8, 10, 10, 10, 10, 0, 8, 6, 10, 10, 8, 6, 6, 8, 0, 8, 0, 8, 8, 8, 6, 8, 0, 10, 8, 10, 6, 4, 10, 10, 10, 10, 10, 10, 10, 4, 6, 6, 8, 10, 8, 6, 8, 8, 0, 8, 0, 8, 10, 8, 6, 6, 6, 8, 6, 8, 8, 8, 8, 0, 8, 0, 8, 10, 8, 8, 8, 8, 6, 8, 0, 0, 10, 8, 0, 8, 0, 6, 8, 8, 10, 8, 8, 0, 6, 0, 8, 10, 0, 0, 0, 0, 8, 6, 6, 10, 10, 0, 201, 0, 201, 0, 204, 201, 201, 204, 0, 201, 0, 0, 204, 0, 0, 0, 0, 0, 204, 201, 0, 0, 0, 201, 0, 0, 204, 201, 204, 0, 0, 0, 0, 201, 0, 201, 0, 204, 0, 0, 0, 0, 204, 201, 204, 201, 0, 0, 0, 0, 0, 0, 204, 0, 0, 0, 0, 204, 204, 204, 0, 0, 201, 0, 0, 0, 0, 0, 204, 0, 0, 201, 204, 204, 204, 0, 204, 0, 0, 0, 201, 0, 201, 0, 0, 0, 0, 201, 204, 0, 204, 0, 0, 204, 204, 0, 201, 0, 0, 201, 201, 204, 204, 0, 0, 0, 0, 0, 204, 0, 0, 201, 0, 201, 0, 0, 204, 0, 204, 8, 10, 8, 0, 0, 8, 0, 8, 0, 0, 8, 0, 0, 6, 8, 6, 8, 10, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 10, 6, 0, 6, 0, 0, 0, 10, 0, 6, 8, 6, 8, 0, 10, 8, 6, 0, 0, 0, 0, 6, 0, 0, 0, 8, 4, 6, 0, 0, 4, 6, 8, 10, 0, 10, 8, 8, 0, 6, 6, 6, 8, 0, 6, 6, 6, 0, 6, 0, 0, 10, 0, 0, 6, 6, 8, 0, 0, 0, 0, 0, 10, 8, 10, 6, 6, 8, 0, 0, 8, 0, 6, 0, 8, 8, 10, 0, 0, 0, 0, 0, 0, 10, 8, 10, 6, 10, 6, 10, 6, 6, 6, 6, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 10, 10, 0, 0, 0, 0, 0, 0, 10, 10, 8); public static const mGreetRespTable:Array = new Array(0, 1, 0, 0, 0, 0, 2, 3, 5, 6, 0, 0, 7, 0, 0, 4, 10, 0, 0, 10, 0, 0, 0, 10, 10, 10, 0, 0, 10, 0, 0, 0, 10, 0, 0, 10, 10, 10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 10, 0, 10, 0, 0, 0, 0, 10, 10, 10, 10, 10, 0, 10, 0, 0, 10, 10, 0, 0, 10, 10, 10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 10, 0, 10, 0, 10, 0, 0, 10, 10, 10, 10, 10, 0, 0, 10, 0, 10, 0, 10, 10, 10, 0, 0, 10, 8, 0, 0, 10, 0, 0, 0, 10, 10, 0, 10, 10, 10, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 10, 10, 0, 0, 10, 0, 0, 0, 10, 10, 0, 0, 0, 0, 0, 204, 204, 204, 0, 0, 0, 204, 201, 201, 0, 204, 201, 0, 204, 0, 204, 0, 204, 201, 201, 201, 0, 0, 0, 0, 204, 201, 201, 204, 0, 0, 201, 0, 0, 0, 204, 201, 0, 204, 0, 201, 0, 0, 204, 0, 204, 0, 0, 201, 0, 0, 204, 0, 0, 0, 204, 0, 0, 0, 0, 0, 201, 0, 0, 0, 0, 204, 204, 204, 0, 0, 0, 0, 0, 204, 0, 201, 204, 201, 204, 0, 0, 0, 0, 0, 0, 0, 201, 0, 204, 0, 0, 0, 0, 0, 0, 0, 0, 204, 201, 201, 0, 0, 201, 204, 0, 204, 0, 0, 204, 0, 204, 0, 0, 0, 0, 201, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 10, 0, 10, 0, 0, 10, 10, 0, 0, 0, 10, 10, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 10, 10, 0, 10, 0, 0, 10, 0, 0, 0, 0, 0, 10, 10, 0, 10, 10, 0, 0, 0, 10, 0, 10, 0, 0, 0, 0, 0, 10, 0, 0, 10, 10, 0, 0, 10, 0, 0, 10, 10, 0, 0, 0, 10, 0, 0, 10, 0, 10, 0, 10, 0, 0, 0, 0, 10, 0, 10, 10, 0, 0, 0, 0, 0, 10, 0, 10, 0, 0, 0, 10, 0, 0, 10, 0, 0, 10, 0, 10, 10, 0, 0, 0, 10, 10, 10, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 0, 10, 0, 10, 10, 0, 10, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 0, 0, 10, 0, 0, 10, 0, 0, 10, 10, 10, 10, 10, 10, 10, 0, 10, 0, 10, 10); public static const mMIRTable:Array = new Array(10, 10, 0, 10, 8, 0, 10, 10, 10, 0, 8, 10, 8, 10, 10, 0, 10, 8, 0, 10, 10, 10, 0, 8, 10, 10, 10, 10, 0, 10, 10, 0, 10, 10, 10, 0, 8, 10, 8, 10, 10, 0, 10, 8, 0, 10, 10, 10, 0, 8, 10, 10, 8, 10, 8, 10, 10, 8, 10, 10, 8, 0, 10, 10, 8, 8, 10, 8, 8, 10, 8, 8, 8, 8, 8, 10, 10, 8, 0, 10, 8, 10, 8, 8, 8, 6, 6, 8, 0, 6, 6, 0, 8, 8, 6, 10, 10, 0, 0, 0, 10, 0, 0, 0, 201, 0, 0, 204, 204, 204, 0, 0, 0, 0, 0, 204, 0, 0, 201, 0, 201, 201, 0, 0, 0, 204, 201, 204, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 204, 0, 0, 0, 0, 201, 204, 0, 201, 0, 0, 201, 0, 204, 204, 201, 0, 201, 0, 204, 0, 204, 0, 0, 0, 0, 204, 0, 0, 0, 0, 0, 204, 201, 0, 0, 0, 0, 0, 0, 0, 204, 0, 201, 0, 0, 0, 204, 204, 0, 0, 0, 204, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 201, 0, 0, 0, 8, 8, 0, 0, 8, 0, 10, 0, 8, 0, 10, 10, 0, 8, 0, 8, 10, 8, 8, 0, 10, 0, 0, 8, 8, 0, 0, 10, 8, 0, 0, 10, 0, 0, 10, 8, 10, 10, 0, 10, 0, 8, 0, 9, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 8, 10, 10, 0, 0, 10, 0, 0, 0, 10, 8, 0, 10, 8, 0, 10, 0, 0, 10, 0, 0, 10, 0, 0, 0, 0, 0, 0, 8, 0, 0, 8, 0, 0, 8, 8, 10); public static const mInfluenceTable:Array = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 101, 0, 0, 0, 0, 103, 0, 0, 0, 202, 0, 0, 0, 0, 103, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 103, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 101, 0, 0, 0, 3, 0, 0, 0, 0, 101, 0, 0, 103, 0, 101, 1, 0, 65, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 1, 101, 0, 0, 0, 1, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 2, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 201, 0, 0, 201, 0, 0, 201, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 5, 5, 1, 102, 0, 0, 0, 0, 0, 105, 0, 101, 101, 0, 0, 0, 0, 0, 103, 0, 101, 0, 101, 0, 0, 0, 102, 105, 0, 0, 101, 0, 0, 0, 0, 101, 103, 0, 101, 0, 102, 0, 0, 0, 105, 5, 0, 1, 0, 101, 0, 0, 0, 102, 103, 0, 0, 0, 0, 0, 0, 102, 0, 5, 3, 0, 0, 0, 0, 101, 101, 0, 103, 0, 101, 0, 0, 66, 0, 0, 102, 5, 0, 1, 1, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 66, 0, 0, 102, 5, 0, 1, 1, 0, 0, 0, 0, 0, 3, 0, 0, 101, 0, 0, 1, 0, 101, 0, 0, 0, 0, 201, 0, 201, 201, 0, 0, 0, 0, 101, 0, 0, 1, 0, 101, 0, 0, 0, 0, 201, 0, 201, 201, 0, 0, 0, 0, 0, 1, 0, 2, 0, 101, 0, 0, 0, 0, 201, 0, 201, 201, 0, 0, 0, 0, 0, 101, 0, 1, 0, 101, 0, 0, 0, 0, 201, 0, 201, 201, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 5, 3, 0, 0, 0, 0, 0, 0, 105, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 35, 0, 0, 0, 10, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 34, 0, 0, 0, 5, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 65, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 34, 101, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 102, 0, 0, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 65, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 65, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 66, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 103, 103, 101, 101, 0, 1, 0, 0, 102, 0, 3, 0, 1, 0, 0, 65, 0, 101, 0, 0, 0, 0, 102, 0, 0, 2, 0, 103, 0, 0, 0, 101, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 65, 101, 101, 0, 0, 0, 0, 0, 0, 0, 101, 101, 0, 3, 0, 0, 0, 1, 1, 101, 0, 0, 0, 0, 0, 0, 1, 0, 101, 0, 0, 3, 0, 0, 0, 0, 65, 0, 101, 0, 0, 0, 1, 0, 0, 65, 0, 101, 0, 3, 0, 1, 0, 0, 65, 0, 101, 0, 0, 0, 1, 0, 0, 65, 0, 101, 0, 3, 0, 1, 2, 0, 0, 0, 2, 0, 3, 0, 1, 1, 0, 0, 0, 1, 0, 5, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 3, 0, 1, 1, 0, 0, 0, 0, 0, 5, 0, 2, 0, 2, 0, 101, 0, 0, 0, 0, 101, 0, 1, 0, 101, 0, 0, 0, 0, 102, 0, 2, 0, 101, 0, 0, 0, 0, 101, 0, 1, 0, 101, 0, 0, 0, 0, 102, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 102, 0, 0, 2, 0, 0, 3, 0, 1, 0, 0, 0, 1, 0, 0, 3, 0, 2, 0, 2, 66, 0, 102, 0, 5, 0, 2, 0, 1, 65, 0, 101, 0, 5, 0, 4, 0, 0, 33, 0, 0, 0, 3, 0, 0, 0, 0, 33, 0, 0, 0, 3, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 103, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 3, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0, 0, 2, 0, 0, 0, 1, 0, 3, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 101, 0, 0, 3, 0, 0, 1, 0, 0, 101, 0, 0, 3, 0, 1, 2, 0, 0, 101, 0, 0, 3, 0, 0, 1, 0, 0, 101, 0, 0, 3, 0, 1, 102, 0, 1, 0, 0, 0, 2, 0, 0, 101, 0, 0, 0, 0, 0, 2, 0, 1, 102, 0, 1, 0, 0, 0, 2, 0, 0, 101, 0, 0, 0, 0, 0, 2, 0, 1, 0, 0, 1, 0, 0, 0, 102, 103, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 3, 0, 1, 0, 0, 0, 0, 1, 0, 3, 2, 0, 2, 0, 0, 0, 1, 0, 3, 0, 1, 0, 0, 0, 0, 1, 0, 3, 2, 0, 0, 0, 0, 0, 0, 0, 103, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 1, 0, 0, 0, 0, 0, 0, 3, 0, 1, 0, 0, 65, 0, 0, 0, 3, 0, 1, 0, 0, 65, 0, 0, 0, 3, 0, 0, 2, 0, 0, 0, 0, 101, 3, 0, 0, 2, 0, 0, 0, 0, 0, 3, 0, 0, 0, 1, 0, 101, 0, 101, 0, 0, 0, 101, 0, 0, 0, 0, 0, 103, 0, 101, 0, 0, 0, 0, 102, 102, 5, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 102, 102, 5, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 1, 0, 101, 0, 0, 101, 0, 0, 101, 0, 0, 0, 0, 0, 103, 0, 101, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 1, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 102, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 65, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 34, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 101, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 101, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 104, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 34, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 0, 0, 102, 0, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 66, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 34, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 102, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 101, 0, 101, 0, 0, 0, 0, 0, 1, 0, 0, 0, 101, 103, 101, 0, 1, 0, 101, 0, 101, 0, 0, 0, 0, 0, 1, 0, 0, 102, 101, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 103, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 102, 105, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 0, 0, 0, 103, 5, 0, 0, 101, 101, 0, 0, 0, 0, 105, 0, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 102, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 101, 0, 0, 102, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 0, 101, 102, 0, 0, 0, 101, 101, 0, 0, 0, 0, 0, 105, 0, 102, 101, 2, 0, 0, 101, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 103, 0, 101, 0, 201, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 101, 0, 102, 0, 0, 0, 0, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 102, 0, 102, 0, 101, 0, 1, 0, 0, 0, 0, 105, 101, 101, 0, 1, 0, 0, 101, 0, 101, 0, 101, 0, 0, 1, 0, 0, 0, 101, 103, 102, 102, 1, 0, 0, 101, 0, 0, 0, 101, 101, 0, 0, 101, 0, 0, 103, 0, 101, 101, 0, 0, 2, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 102, 101, 0, 0, 0, 101, 101, 1, 0, 0, 0, 0, 103, 0, 102, 2, 0, 34, 0, 101, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 3, 0, 1, 0, 0, 0, 2, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 101, 0, 0, 0, 101, 101, 101, 0, 0, 0, 0, 103, 0, 101, 0, 1, 0, 101, 0, 0, 102, 0, 101, 0, 0, 0, 0, 0, 0, 105, 103, 102, 2, 0, 0, 0, 101, 0, 3, 0, 1, 2, 0, 0, 0, 101, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0, 1, 1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 3, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 102, 101, 0, 5, 0, 1, 0, 0, 0, 101, 0, 0, 3, 0, 1, 101, 2, 0, 0, 101, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 103, 0, 101, 0, 101, 65, 0, 0, 0, 3, 0, 1, 0, 0, 0, 0, 0, 0, 3, 0, 0, 1, 0, 0, 0, 0, 0, 3, 0, 1, 1, 0, 0, 0, 0, 0, 2, 0, 1, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 0, 0, 0, 0, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 1, 0, 0, 101, 0, 0, 0, 101, 101, 0, 0, 101, 0, 0, 103, 0, 101, 2, 0, 0, 0, 2, 0, 5, 0, 1, 1, 0, 0, 0, 1, 0, 3, 0, 1, 2, 0, 0, 0, 2, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 1, 1, 101, 0, 0, 0, 0, 0, 0, 1, 0, 101, 0, 0, 3, 0, 0, 0, 0, 2, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 65, 0, 101, 0, 0, 0, 1, 0, 0, 65, 0, 101, 0, 3, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 2, 0, 0, 0, 0, 0, 0, 103, 0, 0, 101); public static const mPIMTable:Array = new Array(100, -100, -100, -100, -100, 0, 5, -10, -10, 5, 0, 5, -10, -10, 5, 0, 5, 5, -10, -10, 0, 5, 5, -10, -10, 0, 0, -10, -10, 0, 0, 0, -10, -10, 0, 0, -10, -10, 0, 5, 0, -10, -10, 0, 5, 0, 10, -10, -10, 10, 0, 10, 10, 10, -10, 0, 201, 201, 204, 204, 0, 201, 201, 204, 204, 0, 201, 201, 204, 204, 0, 201, 201, 204, 204, 0, 201, 201, 204, 204, 0, 201, 201, 204, 204, 0, 201, 201, 204, 204, 0, 201, 201, 204, 204); public static const mGreetInitTable:Array = new Array(1, 2, 5, 3, 6, 0, 0, 0, 7, 0, 4, 0, 0, 10, 10, 8, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 8, 7, 8, 8, 8, 0, 0, 0, 8, 0, 7, 0, 0, 0, 0, 8, 10, 0, 0, 0, 0, 0, 10, 10, 0, 8, 0, 0, 8, 0, 0, 0, 10, 8, 8, 0, 0, 0, 0, 10, 0, 0, 0, 7, 8, 8, 0, 0, 0, 0, 7, 7, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 8, 0, 204, 0, 201, 204, 201, 0, 0, 0, 201, 204, 201, 0, 0, 201, 201, 0, 201, 204, 201, 201, 0, 0, 0, 0, 0, 204, 201, 201, 0, 0, 204, 0, 0, 201, 0, 204, 204, 0, 204, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 204, 0, 204, 0, 0, 201, 0, 0, 201, 0, 0, 0, 204, 0, 0, 0, 0, 0, 0, 201, 0, 204, 201, 0, 204, 201, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); public static const mPIITable:Array = new Array(8, 0, 0, 0, 0, 8, 10, 10, 10, 10, 0, 0, 10, 10, 8, 0, 0, 0, 0, 8, 10, 10, 10, 10, 0, 0, 10, 8, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 8, 0, 0, 0, 10, 0, 10, 10, 0, 0, 0, 0, 0, 10, 10, 0, 0, 8, 10, 10, 10, 10, 10, 10, 10, 8, 10, 8, 8, 10, 10, 201, 0, 0, 0, 0, 201, 0, 0, 201, 201, 201, 201, 0, 0, 0, 204, 201, 204, 0, 0, 0, 0, 0, 0, 0, 204, 0, 0, 0, 0, 204, 204, 0, 201, 0, 201, 0, 0, 201, 0, 0, 201, 0, 0, 0, 204, 204, 201, 204, 0, 0, 201, 201, 0, 0, 201); public static const mIdleTable:Array = new Array(0, 204, 204, 204, 0, 204, 0, 204, 204); public static const ANIMLIST:Array = new Array(192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 204, 205, 206, 207, 208, 209, 214, 219, 222, 225, 226, 227, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 251, 254, 0xFF, 0x0100, 0x0101, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 278, 279, 280, 282, 283, 284, 286, 288, 292, 293, 297, 301, 302, 303, 304, 305, 306, 310, 311, 312, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 331, 334, 337, 338, 339, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 356, 357, 360, 361, 362, 365, 366, 367, 368, 370, 371, 374, 375, 380, 382, 384, 385, 386, 387, 388, 389, 390, 393, 394, 395, 396, 400, 404, 408, 412, 413, 414, 415, 416, 419, 420, 421, 422, 423, 424, 427, 429, 432, 435, 436, 437, 438, 439, 440, 441, 442, 443, 446, 447, 448, 451, 452, 453, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 183, 1, 3, 73, 9, 102, 4, 8, 10, 11, 13, 12, 20, 22, 188, 23, 24, 26, 28, 28, 28, 27, 29, 31, 31, 31, 30, 37, 187, 221, 39, 187, 221, 40, 38, 41, 43, 43, 43, 42, 191, 45, 46, 48, 47, 50, 53, 57, 54, 49, 52, 56, 51, 55, 58, 110, 64, 62, 221, 136, 138, 137, 69, 70, 71, 82, 80, 77, 79, 78, 76, 81, 74, 75, 83, 166, 167, 162, 171, 163, 167, 165, 89, 93, 32, 33, 32, 191, 98, 99, 98, 101, 15, 15, 107, 108, 5, 7, 7, 6, 109, 111, 112, 114, 113, 111, 112, 115, 113, 118, 119, 121, 123, 128, 17, 19, 19, 18, 36, 88, 125, 127, 126, 117, 116, 130, 131, 213, 135, 129, 190, 124, 132, 133, 134, 142, 147, 68, 221, 148, 68, 221, 143, 68, 221, 146, 179, 144, 68, 221, 145, 149, 160, 161, 172, 173, 174, 175, 176, 177, 178, 66, 147, 67, 180, 185, 187, 186, 181, 189, 185, 187, 186, 191, 191, 193, 214, 220, 215, 216, 216, 216, 184, 150, 152, 152, 152, 151, 174, 118, 177, 8, 194, 122, 14, 25, 191, 120, 139, 141, 140, 2, 72, 87, 154, 154, 157, 158, 154, 154, 157, 159, 154, 154, 157, 155, 154, 154, 157, 156, 60, 59, 65, 63, 92, 91, 90, 35, 84, 184, 183, 0, 61, 62, 221, 86, 85, 66, 68, 221, 185, 187, 221, 153, 21, 183, 170, 162, 168, 164, 100, 98, 222, 99, 99, 95, 93, 222, 94, 94, 34, 32, 222, 33, 33, 94, 94, 94, 94, 94, 94, 203, 212, 94, 94, 94, 94, 94, 94, 104, 105, 106, 103, 183); public static const mPMOTable:Array = new Array(204, 0, 201, 201, 206, 203, 0, 201, 204, 204, 203, 203, 204, 201, 203, 203); public static const STRINGS:XML = <string_table> <string id="STR_VERSION" value="EGO v0.4.61"/> <string id="STR_ABOUT2" value="(c) 2007 Punch Entertainment, Inc."/> <string id="STR_ABOUT3" value="For support and additional"/> <string id="STR_ABOUT3B" value="features, please visit"/> <string id="STR_ABOUT3C" value="www.ego-city.com"/> <string id="STR_ABOUT4" value="Creative Director:"/> <string id="STR_ABOUT5" value="Steve Nix"/> <string id="STR_ABOUT6" value="Engineers:"/> <string id="STR_ABOUT7" value="Brent Patterson"/> <string id="STR_ABOUT8" value="Naoki Ogishi"/> <string id="STR_ABOUT8_1" value="Tuan Bui"/> <string id="STR_ABOUT8_2" value="Nhung Ngo"/> <string id="STR_ABOUT8_3" value="Huy Nguyen"/> <string id="STR_ABOUT9" value="Artists:"/> <string id="STR_ABOUT10" value="Scott Watanabe"/> <string id="STR_ABOUT11" value="Forrest Schehl"/> <string id="STR_ABOUT12" value="Kevin Messer"/> <string id="STR_ABOUT13" value="QA:"/> <string id="STR_ABOUT14" value="Ram Fenster"/> <string id="STR_ABOUT15" value="Andrew Banegas"/> <string id="STR_ABOUT16" value="Erick Caceres"/> <string id="STR_ABOUT17" value="Edwin Chu"/> <string id="STR_ABOUT18" value="Long Do"/> <string id="STR_ABOUT19" value="Rudy Pham"/> <string id="STR_ABOUT20" value="Dennis Shin"/> <string id="STR_ABOUT20_1" value="Thuy Au"/> <string id="STR_ABOUT20_2" value="Trang Tran"/> <string id="STR_ABOUT20_3" value="Uyen Dinh"/> <string id="STR_ABOUT20_4" value="Huyen Nguyen"/> <string id="STR_ABOUT20_5" value="Trang Nguyen"/> <string id="STR_ABOUT20_6" value="Loan Nguyen"/> <string id="STR_ABOUT20_7" value="Thanh Khuong"/> <string id="STR_ABOUT20_8" value="Thuy Nguyen"/> <string id="STR_ABOUT20_9" value="Minh Le"/> <string id="STR_ABOUT20_10" value="Nha Cao"/> <string id="STR_ABOUT20_11" value="Hien Nguyen"/> <string id="STR_ABOUT20_12" value="Lien Le"/> <string id="STR_ABOUT21" value="Special Thanks:"/> <string id="STR_ABOUT22" value="Tobin Lent"/> <string id="STR_ABOUT23" value="Martin Geiger"/> <string id="STR_ABOUT24" value="Mike Williams"/> <string id="STR_ABOUT25" value="Son Bui"/> <string id="STR_ABOUT26" value="Spencer Chi"/> <string id="STR_NULL" value=""/> <string id="STR_DEBUGTEST" value="t"/> <string id="STR_EXITCONF" value="Exit?"/> <string id="STR_SELECT" value="Select"/> <string id="STR_BACK" value="Back"/> <string id="STR_LOADING" value="Loading..."/> <string id="STR_MAINMENU" value="Main Menu"/> <string id="STR_PLAY" value="Play"/> <string id="STR_PERS_TEST" value="Ego Test"/> <string id="STR_OPTIONS" value="Options"/> <string id="STR_HELP" value="Help"/> <string id="STR_ABOUT" value="About"/> <string id="STR_EXIT" value="Exit"/> <string id="STR_SOUND_ON" value="Sound: On"/> <string id="STR_SOUND_OFF" value="Sound: Off"/> <string id="STR_SOUND_ON_1" value="Sound On"/> <string id="STR_SOUND_OFF_1" value="Sound Off"/> <string id="STR_DELETE_EGO" value="Delete Ego"/> <string id="STR_RESTORE_EGO" value="Restore Ego"/> <string id="STR_YES" value="Yes"/> <string id="STR_NO" value="No"/> <string id="STR_EXIT_TEXT1" value="Are you sure"/> <string id="STR_EXIT_TEXT2" value="you want to"/> <string id="STR_EXIT_TEXT3" value="exit the game?"/> <string id="STR_DELETE_TEXT1" value="Are you sure"/> <string id="STR_DELETE_TEXT2" value="you want to"/> <string id="STR_DELETE_TEXT3" value="delete your ego?"/> <string id="STR_DELETE_USER_TEXT0" value="Are you sure you want "/> <string id="STR_DELETE_USER_TEXT1" value="to delete your account?"/> <string id="STR_DELETE_USER_TEXT2" value="All data including buddies,"/> <string id="STR_DELETE_USER_TEXT3" value="blog posts, and progress"/> <string id="STR_DELETE_USER_TEXT4" value="will be lost."/> <string id="STR_ACCOUNT_DELETE" value="Delete request sent to server."/> <string id="STR_ACCOUNT_EXISTS" value="This account already exists. Restored data from old account. If you were trying to create a new account, please delete the account first from main menu options."/> <string id="STR_CONTROLS" value="Controls"/> <string id="STR_CONTROLS_TEXT1" value="Dpad Up/Down/Left/Right:"/> <string id="STR_CONTROLS_TEXT2" value="Move Hand Cursor"/> <string id="STR_CONTROLS_TEXT3" value="OK or Right Soft Key:"/> <string id="STR_CONTROLS_TEXT4" value="Trigger current selection"/> <string id="STR_CONTROLS_TEXT5" value="CLR or Left Soft Key:"/> <string id="STR_CONTROLS_TEXT6" value="Move back through menus"/> <string id="STR_CONTROLS_TEXT7" value="Number Keys:"/> <string id="STR_CONTROLS_TEXT8" value="Text entry"/> <string id="STR_GAMEPLAY" value="Gameplay"/> <string id="STR_GAMEPLAY_TEXT1" value="Live a fantasy lifestyle or explore your own personality traits using your Ego as a guide."/> <string id="STR_GAMEPLAY_TEXT2" value="Meet and socialize with other player Egos over the network world to make new buddies and keep in touch with old friends."/> <string id="STR_GAMEPLAY_TEXT3" value="For more explanation of the game elements, select the question mark icon in game to look up specific details."/> <string id="STR_ACCOUNT_DELETED" value="Account deleted."/> <string id="STR_EGO_DELETED" value="Ego deleted."/> <string id="STR_TEST_QUESTION1" value="Your Gender is...?"/> <string id="STR_TEST_QUESTION2" value="You feel most comfortable wearing...?"/> <string id="STR_TEST_QUESTION3" value="Of these food choices, which would you prefer?"/> <string id="STR_TEST_QUESTION4" value="Your favorite subject in school was...?"/> <string id="STR_TEST_QUESTION5" value="Of these hobbies, which would you prefer?"/> <string id="STR_TEST_QUESTION6" value="How do you greet a friend?"/> <string id="STR_TEST_QUESTION7" value="When around your peers, you tend to be...?"/> <string id="STR_TEST_QUESTION8" value="For exercise, you would prefer?"/> <string id="STR_TEST_QUESTION9" value="You would most likely win a battle of...?"/> <string id="STR_TEST_QUESTION10" value="If someone shoved you, how would you respond?"/> <string id="STR_TEST_QUESTION11" value="While waiting in line, you tend to be...?"/> <string id="STR_TEST_QUESTION12" value="When giving gifts, you tend to be...?"/> <string id="STR_TEST_QUESTION13" value="After being lectured, you tend to...?"/> <string id="STR_TEST_QUESTION14" value="To pass the time, which of these things would you prefer to have?"/> <string id="STR_TEST_QUESTION15" value="When around the opposite sex, you tend to be...?"/> <string id="STR_TEST_QUESTION16" value="For fun, you would go to a...?"/> <string id="STR_TEST_FOLLOWUP" value="Of these choices, which describes you best?"/> <string id="STR_TEST_CONCLUSION1" value="From your answers, it has been determined that the Ego archetype you most resemble is a..."/> <string id="STR_TEST_CONCLUSION2" value="We hope you enjoyed taking this test and discovering your inner Ego."/> <string id="STR_TEST_CONCLUSION3" value="When playing the actual game, you will be able to customize your Ego and continue to evolve as you meet other players online."/> <string id="STR_TEST_CONCLUSION4" value="Take the test again if you would like to experiment with different answers to uncover other Ego archetypes."/> <string id="STR_FOLLOWUP_ANSWER_1" value="Serious"/> <string id="STR_FOLLOWUP_ANSWER_2" value="Friendly"/> <string id="STR_FOLLOWUP_ANSWER_3" value="Passive"/> <string id="STR_FOLLOWUP_ANSWER_4" value="Aggressive"/> <string id="STR_FOLLOWUP_ANSWER_5" value="Tough"/> <string id="STR_FOLLOWUP_ANSWER_6" value="Out of shape"/> <string id="STR_FOLLOWUP_ANSWER_7" value="Sexy"/> <string id="STR_FOLLOWUP_ANSWER_8" value="Simple"/> <string id="STR_FOLLOWUP_ANSWER_9" value="Smart"/> <string id="STR_FOLLOWUP_ANSWER_10" value="Naughty"/> <string id="STR_FOLLOWUP_ANSWER_11" value="Nice"/> <string id="STR_TEST_ANSWER2_1" value="Dark Solids"/> <string id="STR_TEST_ANSWER2_2" value="T-Shirt Prints"/> <string id="STR_TEST_ANSWER2_3" value="Bright Colors"/> <string id="STR_TEST_ANSWER3_1" value="Hamburger"/> <string id="STR_TEST_ANSWER3_2" value="Doughnut"/> <string id="STR_TEST_ANSWER3_3" value="Fruit"/> <string id="STR_TEST_ANSWER4_1" value="Gym"/> <string id="STR_TEST_ANSWER4_2" value="Drama"/> <string id="STR_TEST_ANSWER4_3" value="Math and Science"/> <string id="STR_TEST_ANSWER5_1" value="RC Toy"/> <string id="STR_TEST_ANSWER5_2" value="Tennis"/> <string id="STR_TEST_ANSWER5_3" value="Skateboarding"/> <string id="STR_TEST_ANSWER6_1" value="Handshake"/> <string id="STR_TEST_ANSWER6_2" value="Nod"/> <string id="STR_TEST_ANSWER6_3A" value="High Five"/> <string id="STR_TEST_ANSWER7_1" value="Bossy"/> <string id="STR_TEST_ANSWER7_2" value="Funny"/> <string id="STR_TEST_ANSWER7_3" value="Complimentary"/> <string id="STR_TEST_ANSWER8_1" value="Punching Bag"/> <string id="STR_TEST_ANSWER8_2" value="Juggling Balls"/> <string id="STR_TEST_ANSWER8_3" value="Weights"/> <string id="STR_TEST_ANSWER9_1" value="Strength"/> <string id="STR_TEST_ANSWER9_2" value="Luck"/> <string id="STR_TEST_ANSWER9_3" value="Words"/> <string id="STR_TEST_ANSWER10_1" value="Cry"/> <string id="STR_TEST_ANSWER10_2" value="Curse"/> <string id="STR_TEST_ANSWER10_3" value="Punch"/> <string id="STR_TEST_ANSWER11_1" value="Anxious"/> <string id="STR_TEST_ANSWER11_2" value="Restless"/> <string id="STR_TEST_ANSWER11_3" value="Patient"/> <string id="STR_TEST_ANSWER12_1" value="Stingy"/> <string id="STR_TEST_ANSWER12_2" value="Practical"/> <string id="STR_TEST_ANSWER12_3" value="Generous"/> <string id="STR_TEST_ANSWER13_1" value="Sulk"/> <string id="STR_TEST_ANSWER13_2" value="Think"/> <string id="STR_TEST_ANSWER13_3" value="Rage"/> <string id="STR_TEST_ANSWER14_1" value="Mirror"/> <string id="STR_TEST_ANSWER14_2" value="Guitar"/> <string id="STR_TEST_ANSWER14_3" value="Book"/> <string id="STR_TEST_ANSWER15_1" value="Flirty"/> <string id="STR_TEST_ANSWER15_2" value="Chatty"/> <string id="STR_TEST_ANSWER15_3" value="Comforting"/> <string id="STR_TEST_ANSWER16_1" value="Sports Bar"/> <string id="STR_TEST_ANSWER16_2" value="Coffee Shop"/> <string id="STR_TEST_ANSWER16_3" value="Dance Club"/> <string id="STR_TEST_ANSWER6_3B" value="Hug"/> <string id="STR_ACCOUNT" value="Account"/> <string id="STR_APPEARANCE" value="Appearance"/> <string id="STR_ARCHETYPES" value="Archetypes"/> <string id="STR_MODIFIERS" value="Modifiers"/> <string id="STR_BUDDY_LIST" value="Buddy List"/> <string id="STR_STATS" value="Stats"/> <string id="STR_FOOD" value="Food"/> <string id="STR_GIFTS" value="Gifts"/> <string id="STR_MY_ROOM" value="My Room"/> <string id="STR_NETWORK" value="Network"/> <string id="STR_PROFILE_FILTERS" value="Profile Filters"/> <string id="STR_PERSONAL_PROFILE" value="Personal Profile"/> <string id="STR_PERSONALITY_ICONS" value="Personality Icons"/> <string id="STR_PRAISE_SCOLD" value="Praise/Scold"/> <string id="STR_SOCIAL_LEVEL" value="Social Level"/> <string id="STR_SOCIAL_POINTS" value="Social Points"/> <string id="STR_TOYS" value="Toys"/> <string id="STR_GAMESAVE" value="Game Saving"/> <string id="STR_HELP_ACCOUNT" value="For network play, a unique account name is required to identify your Ego. At your option, you may also provide your zip code to make finding new friends in your area easier."/> <string id="STR_HELP_APPEARANCE" value="New visual elements will become available when you unlock a new Ego Archetype. Some appearance elements provide modifiers to Ego Competitions."/> <string id="STR_HELP_ARCHETYPE" value="Ego Archetypes are the classifications of your Ego's personality. When your Ego's Personality Attributes change, the Archetypes are compared to determine a best match."/> <string id="STR_HELP_ATTRIBUTES" value="Your Ego's Attributes reflect the current state of his/her personality and physique. Every action performed by or to your Ego modifies these Attributes, the direction of the change displayed by Personality Icons."/> <string id="STR_HELP_BUDDY_LIST" value="For network play, adding another Ego to your Buddy List will inform you of his/her online status (Green for online, Yellow for awaiting Buddy confirmation, Red for offline), enable Chat, and allow each other access to your Rooms."/> <string id="STR_HELP_CHAT" value="Chat is only available between Buddies. It creates a private chat session allowing for extended messaging and animation exchanges."/> <string id="STR_HELP_FOOD" value="Eating Food often restores health and can alter the mood of your Ego. It also has a large effect on your Ego's physique. Food choices are unlocked by gaining Social Levels."/> <string id="STR_HELP_GAMESAVING" value="Your Ego's progress will be saved automatically. If you are playing the game offline, the next time you connect to the server you may be asked to choose which version of your Ego is most up to date between the game server and your local device."/> <string id="STR_HELP_GIFTS" value="Giving another Ego a gift most often triggers a specific Competition. The exception is the Present which gives the receiver a Social Point bonus. Gift choices are unlocked by gaining Social Levels."/> <string id="STR_HELP_INBOX" value="When other players Socialize with your Ego, a video log of the exchange is recorded and sent to your Inbox for later viewing. The Personality Icons triggered by the exchange will then affect your Ego."/> <string id="STR_HELP_MODIFIERS" value="Modifiers are bonuses or penalties to specific Ego Competitions. They are determined by an Ego's current Attributes and Wardrobe being worn."/> <string id="STR_HELP_MY_ROOM" value="Rooms are places Egos can decorate with information about themselves, show their Buddy List, and maintain Journals. Access to rooms is provided through the 'Visit Buddy' command or by jumping to another Ego's room through his/her Buddy List. If a room is marked Private, only Egos on the owner's Buddy List may enter."/> <string id="STR_HELP_PERSONAL_PROFILE" value="In order to find other Ego players that share your own interests, you have the option of filling out your Personal Profile. This information is used with the Profile Filters system to sort random social encounters between Egos when they use the 'Socialize' command."/> <string id="STR_HELP_PERSONALITY_ICONS" value="Modification to your Ego's personality is shown with Personality Icons, images indicating the direction of the change to their Attributes. Continued modification in the same direction will result in an Attribute change."/> <string id="STR_HELP_PRAISE_SCOLD" value="Direct interaction with your Ego is possible using the 'Praise' and 'Scold' commands, resulting in small changes to your Ego's personality and mood."/> <string id="STR_HELP_PROFILE_FILTERS" value="To find other Ego players to interact with that suit your personal interest, use the Profile Filters to set values that match what you seek. When you use the 'Socialize' command, the filters will sort through the Egos based on their own Personal Profile information to find someone you are looking to meet."/> <string id="STR_HELP_NETWORK" value="This setting determines who will socialize with your Ego when using the 'Socialize' command. World - allows all Ego players in the game; Buddies - allows only the Ego players on your Buddy List; None - prevents all Ego players and only allows NPC Egos to interact with your Ego."/> <string id="STR_HELP_SOCIAL_LEVEL" value="Your Ego's Social Level is a measure of how much time you have spent with your Ego and is used as a modifier in Competitions. Gaining Social Levels unlocks new Archetype options, Food, Toys, and Gifts."/> <string id="STR_HELP_SOCIAL_POINTS" value="Social Points are earned by interacting with your Ego and from socializing with other Egos. A bonus is earned for victories in Ego Competitions. Earning Social Points raises your Ego Social Level."/> <string id="STR_HELP_SOCIALIZE" value="'Socialize' is a short exchange between Egos. You will be asked to choose a style of Greeting, an activity, and a Parting. The choices you make will influence the Egos' moods and may modify their personalities."/> <string id="STR_HELP_STATS" value="Ego Stats track the history of your Ego. It displays your Archetype, Social and Maturity Levels, and Competition victories with their current modifiers."/> <string id="STR_HELP_TOYS" value="Playing with Toys often improves the mood of your Ego. It also has an effect on your Ego's Attributes. Toy choices are unlocked by gaining Social Levels."/> <string id="STR_TUTORIAL_0_0" value="Welcome to the world of Ego!"/> <string id="STR_TUTORIAL_0_1" value="Ego is a game of social exploration. The choices you make, from what you wear to how you interact, determine your Ego's personality attributes."/> <string id="STR_TUTORIAL_0_2" value="Your selections also determine your Ego's starting Archetype. What's an archetype? It's a role, job, iconic figure, or memorable image of your Ego."/> <string id="STR_TUTORIAL_0_3" value="Want to create your very own Ego? Take the following steps."/> <string id="STR_TUTORIAL_1_0" value="This is the Ego Customization screen."/> <string id="STR_TUTORIAL_1_1" value="Your Ego can be customized in many ways. You start with a few basic options."/> <string id="STR_TUTORIAL_1_2" value="As the game goes on, your Ego will acquire new Archetypes - unlocking new characteristics, activities and other appearance choices."/> <string id="STR_TUTORIAL_1_3" value="Create a whole look for your Ego. You can change its appearance any time via the Ego Customization screen."/> <string id="STR_TUTORIAL_2_0" value="On the far left are your Ego's Personality Icons."/> <string id="STR_TUTORIAL_2_1" value="They display changes to your Ego's attributes."/> <string id="STR_TUTORIAL_2_2" value="Your Ego is now ready to interact with other Egos!"/> <string id="STR_TUTORIAL_3_0" value="Why Praise or Scold your Ego?"/> <string id="STR_TUTORIAL_3_1" value="To give feedback for your Ego's behavior, or to alter your Ego's mood."/> <string id="STR_TUTORIAL_3_2" value="Select one now and check out how your Ego reacts."/> <string id="STR_TUTORIAL_4_0" value="Your Ego can also play with toys."/> <string id="STR_TUTORIAL_4_1" value="As you gain social levels, you unlock a greater variety."/> <string id="STR_TUTORIAL_4_2" value="Go ahead - grab a toy now."/> <string id="STR_TUTORIAL_5_0" value="Hungry? Your Ego can dine on a variety of lip-smacking treats."/> <string id="STR_TUTORIAL_5_1" value="Gain social levels to unlock more delectable courses."/> <string id="STR_TUTORIAL_5_2" value="Choose your favorite food now."/> <string id="STR_TUTORIAL_6_0" value="What's the most important selection in the game? Easy - 'Socialize'."/> <string id="STR_TUTORIAL_6_1" value="'Socialize' enables your Ego to interact with other Egos and rack up major points."/> <string id="STR_TUTORIAL_6_2" value="Click 'Socialize' now - and choose how you'd like your Ego to behave."/> <string id="STR_TUTORIAL_6_3" value="While socializing, some Personality Icons travel from one Ego to the other. Why? People influence each other when they socialize, right? So do Egos."/> <string id="STR_TUTORIAL_6_4" value="When you part, your Ego receives Social Points - advancing your Ego to higher social levels."/> <string id="STR_TUTORIAL_7_0" value="Choose 'Socialize' again. After the initial Greeting, choose a Gift."/> <string id="STR_TUTORIAL_7_1" value="Giving another Ego a Gift triggers an Ego Competition between the two."/> <string id="STR_TUTORIAL_7_2" value="The winner is awarded Social Points. Victories are tracked on the Ego Stats screen. The winner is determined by each Ego's Attributes, current mood, and what each Ego is wearing."/> <string id="STR_TUTORIAL_7_3" value="Earning new Archetypes for your Ego provides more clothing varieties for competition bonuses."/> <string id="STR_TUTORIAL_8_0" value="Your interaction choices have determined your Ego's Personality Attributes. Your starting Archetype is..."/> <string id="STR_TUTORIAL_8_1" value="Adding new Archetypes unlocks unique visual elements - and possibly new Ego Commands. Use the Ego Customization screen whenever you'd like to change how your Ego looks."/> <string id="STR_TUTORIAL_9_0" value="The final step: Set up your account. Input a unique name and password. You may also enter other information - making it easy to meet Ego players you're compatible with."/> <string id="STR_TUTORIAL_9_1" value="You may play Ego without an account, but all online features and interaction with other Ego players will be disabled."/> <string id="STR_TUTORIAL_9_2" value="Congrats! Your account is activated. You're ready to start meeting other Ego players!"/> <string id="STR_TUTORIAL_9_2a" value="Since you skipped the account setup, you will only be able to interact with AI Egos."/> <string id="STR_TUTORIAL_9_3" value="When a player chooses 'Socialize', he or she will interact with another Ego player currently online."/> <string id="STR_TUTORIAL_9_4" value="The initiating player may control his/her Ego's behavior via the Command Wheel. The other player's Ego will respond according to his/her Personality Attributes."/> <string id="STR_TUTORIAL_9_5" value="A video log of the interaction will be sent to the non-initiating player's Inbox."/> <string id="STR_TUTORIAL_9_6" value="Someone sent you a message! Use the Dpad to move your cursor to the blinking Inbox icon. Press OK to see your messages."/> <string id="STR_TUTORIAL_9_7" value="Sweet! You got social points and advanced! Your Ego is now at High School level."/> <string id="STR_TUTORIAL_10_0" value="Your Ego is ready and raring to go!"/> <string id="STR_TUTORIAL_10_1" value="When you encounter something new, more Help text will appear. To learn more about particular game topics, you can also use the Help Menu."/> <string id="STR_TUTORIAL_10_2" value="Time to get out there and meet new friends!"/> <string id="STR_FIRST_ATT_CHANGE" value="Your Ego has undergone its first attribute change. Examine your Ego's attributes by clicking on the blinking Stats icon in the menu bar."/> <string id="STR_FIRST_UNLOCK" value="You may now lock your EGO's attributes at any time using the Lock icon in the menu bar. Use the lock to keep your EGO as a favorite archetype, or keep it unlocked and continue to change."/> <string id="STR_PREFS_ARCH" value="Archetype"/> <string id="STR_PREFS_FOOD" value="Food"/> <string id="STR_PREFS_TOY" value="Toy"/> <string id="STR_PREFS_INTERACTION" value="Interaction"/> <string id="STR_PREFS_APPEARANCE" value="Appearance"/> <string id="STR_PREFS_BACKGROUND" value="Background"/> <string id="STR_PREFS_ONLINE" value="Online"/> <string id="STR_FOOD_PIZZA" value="Pizza"/> <string id="STR_FOOD_FRUIT" value="Fruit"/> <string id="STR_FOOD_DOUGHNUT" value="Doughnut"/> <string id="STR_FOOD_RICE" value="Rice"/> <string id="STR_FOOD_BURGER" value="Hamburger"/> <string id="STR_FOOD_WINE" value="Wine"/> <string id="STR_FOOD_FLASK" value="Flask"/> <string id="STR_FOOD_ANGELCAKE" value="Angel Cake"/> <string id="STR_FOOD_DEVILCAKE" value="Devil Cake"/> <string id="STR_FOOD_SMOOTHIE" value="Smoothie"/> <string id="STR_FOOD_ICECREAM" value="Ice Cream"/> <string id="STR_FOOD_COFFEE" value="Coffee"/> <string id="STR_FOOD_POTION" value="Potion"/> <string id="STR_TOY_BOOK" value="Book"/> <string id="STR_TOY_BALLS" value="Juggling Balls"/> <string id="STR_TOY_WEIGHTS" value="Weights"/> <string id="STR_TOY_PAINTBRUSH" value="Paintbrush"/> <string id="STR_TOY_SKATEBOARD" value="Skateboard"/> <string id="STR_TOY_POTION" value="Chemistry Set"/> <string id="STR_TOY_PUNCHINGBAG" value="Punching Bag"/> <string id="STR_TOY_REMOTECAR" value="RC Toy"/> <string id="STR_TOY_SKULL" value="Skull"/> <string id="STR_TOY_DARTGUN" value="Dart gun"/> <string id="STR_TOY_STATUE" value="Relic"/> <string id="STR_TOY_GUITAR" value="Guitar"/> <string id="STR_TOY_DOLL" value="Voodoo"/> <string id="STR_TOY_COIN" value="Coin"/> <string id="STR_TOY_TENNIS" value="Tennis"/> <string id="STR_TOY_VICTIM" value="Peon"/> <string id="STR_TOY_MIRROR" value="Mirror"/> <string id="STR_INTERACT" value="Interact"/> <string id="STR_PRAISE" value="Praise"/> <string id="STR_SCOLD" value="Scold"/> <string id="STR_EAT" value="Eat"/> <string id="STR_SOCIALIZE" value="Socialize"/> <string id="STR_DOZE" value="Doze"/> <string id="STR_INTENT_SOCIAL" value="Express Yourself"/> <string id="STR_INTENT_MENTAL" value="Be Brainy"/> <string id="STR_INTENT_PHYSICAL" value="Get Physical"/> <string id="STR_LIKE" value="Like"/> <string id="STR_DISLIKE" value="Dislike"/> <string id="STR_NEUTRAL" value="Neutral"/> <string id="STR_UNKNOWN" value="Unknown"/> <string id="STR_SKINCOLOR" value="Skin Color"/> <string id="STR_HEAD_TYPE" value="Head Type"/> <string id="STR_BODY_TYPE" value="Body Type"/> <string id="STR_JOURNALMOOD_EXCITED" value="Mood: Excited"/> <string id="STR_JOURNALMOOD_HAPPY" value="Mood: Happy"/> <string id="STR_JOURNALMOOD_CONTENT" value="Mood: Content"/> <string id="STR_JOURNALMOOD_TIRED" value="Mood: Tired"/> <string id="STR_JOURNALMOOD_SAD" value="Mood: Sad"/> <string id="STR_JOURNALMOOD_ANGRY" value="Mood: Angry"/> <string id="STR_JOURNALMOOD_BEATUP" value="Mood: Beat up"/> <string id="STR_BG_CITY" value="City"/> <string id="STR_BG_FOREST" value="Forest"/> <string id="STR_BG_SUBURB" value="Suburb"/> <string id="STR_ACTOR" value="Actor"/> <string id="STR_ANGEL" value="Angel"/> <string id="STR_ARTIST" value="Artist"/> <string id="STR_ASSASSIN" value="Assassin"/> <string id="STR_BIKER" value="Biker"/> <string id="STR_BOXER" value="Boxer"/> <string id="STR_BULLY" value="Bully"/> <string id="STR_CLASSCLOWN" value="Class Clown"/> <string id="STR_DEVIL" value="Devil"/> <string id="STR_DOCTOR" value="Doctor"/> <string id="STR_EMO" value="Emo"/> <string id="STR_EXPLORER" value="Explorer"/> <string id="STR_FIREMAN" value="Fireman"/> <string id="STR_FLIRT" value="Flirt"/> <string id="STR_GOTH" value="Goth"/> <string id="STR_GUMSHOE" value="Gumshoe"/> <string id="STR_INVENTOR" value="Inventor"/> <string id="STR_JOCK" value="Jock"/> <string id="STR_LAWYER" value="Lawyer"/> <string id="STR_MAD_SCIENTIST" value="Mad Scientist"/> <string id="STR_MARTIAL_ARTIST" value="Martial Artist"/> <string id="STR_NERD" value="Nerd"/> <string id="STR_POLICEMAN" value="Policeman"/> <string id="STR_PREPPY" value="Preppy"/> <string id="STR_REBEL" value="Rebel"/> <string id="STR_ROCKSTAR" value="Rockstar"/> <string id="STR_SECRET_AGENT" value="Secret Agent"/> <string id="STR_SEX_SYMBOL" value="Sex Symbol"/> <string id="STR_SKATER" value="Skater"/> <string id="STR_SOLDIER" value="Soldier"/> <string id="STR_SURFER" value="Surfer"/> <string id="STR_THIEF" value="Thief"/> <string id="STR_INTRO" value="Average Joe"/> <string id="STR_DRAMA_STUDENT" value="Drama Student"/> <string id="STR_ART_STUDENT" value="Art Student"/> <string id="STR_THUG" value="Thug"/> <string id="STR_COMEDIAN" value="Comedian"/> <string id="STR_MED_STUDENT" value="Med Student"/> <string id="STR_PERFORMER" value="Performer"/> <string id="STR_MODEL" value="Model"/> <string id="STR_MUSICIAN" value="Musician"/> <string id="STR_ATHLETE" value="Athlete"/> <string id="STR_LAW_STUDENT" value="Law Student"/> <string id="STR_GEEK" value="Geek"/> <string id="STR_HONOR_STUDENT" value="Honor Student"/> <string id="STR_TEACHER" value="Teacher"/> <string id="STR_PRO_SKATER" value="Pro Skater"/> <string id="STR_PATHEAD" value="Pat Head"/> <string id="STR_SMACK" value="Smack"/> <string id="STR_SPANK" value="Spank"/> <string id="STR_TICKLE" value="Tickle"/> <string id="STR_PUNCH" value="Punch"/> <string id="STR_GENDER" value="Gender"/> <string id="STR_CHOSEN" value="You have chosen:"/> <string id="STR_PAUSE" value="Pause"/> <string id="STR_RESUME" value="Resume"/> <string id="STR_EGO_MENU" value="Ego Menu"/> <string id="STR_NET_MENU" value="Network Menu"/> <string id="STR_OPTIONS_MENU" value="Options Menu"/> <string id="STR_QUIT" value="Quit"/> <string id="STR_BUDDYLIST" value="Buddy List"/> <string id="STR_EGO_STATS" value="Ego Stats"/> <string id="STR_STATUS" value="Status"/> <string id="STR_PREFS" value="Prefs"/> <string id="STR_ATTRIBUTES" value="Attributes"/> <string id="STR_EGO_DETAILS" value="Ego Details"/> <string id="STR_ATT_CHANGE" value="Attribute Change"/> <string id="STR_EGO_CHANGE" value="Your new archetype is:"/> <string id="STR_ATTITUDE" value="Attitude:"/> <string id="STR_AGGRESSION" value="Aggression:"/> <string id="STR_INTELLECT" value="Intellect:"/> <string id="STR_MORALITY" value="Morality:"/> <string id="STR_PHYSIQUE" value="Physique:"/> <string id="STR_NETWORK_OFF" value="Network: Off"/> <string id="STR_SOCIAL_CIRCLE" value="Social Circle"/> <string id="STR_NETWORK_PUBLIC" value="Social Circle: World"/> <string id="STR_NETWORK_PRIVATE" value="Social Circle: Buddies"/> <string id="STR_NETWORK_NONE" value="Social Circle: None"/> <string id="STR_NETWORK_SETTING" value="Network Setting"/> <string id="STR_NETWORK_PUBLIC_DESC" value="Socialize with all players."/> <string id="STR_NETWORK_PRIVATE_DESC" value="Socialize only with your buddies."/> <string id="STR_NETWORK_NONE_DESC" value="Socialize with no one on the network."/> <string id="STR_BUDDY_OPTIONS" value="Buddy Options"/> <string id="STR_ADD_BUDDY" value="Add Buddy"/> <string id="STR_CONFIRM_REMOVE" value="Confirm removal."/> <string id="STR_REMOVE_BUDDY" value="Remove From List"/> <string id="STR_SEND_INTERACTION" value="Send Interaction"/> <string id="STR_BUDDY_REMOVED" value="Buddy has been removed."/> <string id="STR_BUDDYREQUEST_SUCCESS" value="Buddy request sent."/> <string id="STR_USER_NOT_FOUND" value="That user name does not exist."/> <string id="STR_BUDDY_REQUEST_SEND" value=" has been sent a buddy request to be added to your buddy list."/> <string id="STR_BUDDY_REQUEST_RECEIVE" value=" wants to be your buddy."/> <string id="STR_ADD_BUDDY_SUCCESS" value=" has been added to your Buddy List."/> <string id="STR_ADD_BUDDY_FAILURE" value=" has rejected you as a buddy."/> <string id="STR_TEXT_INCLUDE" value="Include a short message?"/> <string id="STR_INTERACTION_QUERY1" value="What type of interaction"/> <string id="STR_INTERACTION_QUERY2" value="does your ego seek?"/> <string id="STR_NET_SWAP_REQUEST_RECEIVE" value=" requests interaction."/> <string id="STR_NET_BUDDY_ADD" value=" Add ego to buddy list?"/> <string id="STR_COLLECTIBLES" value="Collectibles"/> <string id="STR_EGO_STATISTICS" value="EGO STATISTICS"/> <string id="STR_STATS_ARCHETYPE" value="ARCHETYPE:"/> <string id="STR_STATS_LEVEL" value="Level:"/> <string id="STR_STATS_MATURITY" value="Maturity:"/> <string id="STR_STATS_INTERACTIONS" value="EGO COMPETITIONS: "/> <string id="STR_STATS_ARGUMENTS" value="ARGUMENTS WON:"/> <string id="STR_STATS_DEBATES" value="DEBATES WON:"/> <string id="STR_STATS_ESPBATTLES" value="ESP BATTLES WON:"/> <string id="STR_STATS_FIGHTS" value="FIGHTS WON:"/> <string id="STR_STATS_GAMES" value="ROSHAMBOS WON:"/> <string id="STR_STATS_HEARTS" value="HEARTS WON:"/> <string id="STR_STATS_SPORTS" value="SPORTS WON:"/> <string id="STR_STATS_EXPERIMENTS" value="EXPERIMENTS WON:"/> <string id="STR_HIGHSCHOOL" value="High school"/> <string id="STR_COLLEGE" value="College"/> <string id="STR_PROFESSIONAL" value="Professional"/> <string id="STR_CAREER" value="Career"/> <string id="STR_ENLIGHTENED" value="Enlightened"/> <string id="STR_NET_CREATE_0" value="Account Creation."/> <string id="STR_NET_CREATE_1" value="Please enter a unique"/> <string id="STR_NET_CREATE_2" value="user name and password"/> <string id="STR_NET_CREATE_3" value="to create your account."/> <string id="STR_REPASSWORD_0" value="We need to reconfirm"/> <string id="STR_REPASSWORD_1" value="your password to login."/> <string id="STR_NET_LOGIN_0" value="Server Connect."/> <string id="STR_NET_LOGIN_1" value="Press ok to log in to"/> <string id="STR_NET_LOGIN_2" value="server with existing"/> <string id="STR_NET_LOGIN_3" value="credentials."/> <string id="STR_NET_LOGIN" value="Enter your user name:"/> <string id="STR_NET_PASSWORD" value="Enter your password:"/> <string id="STR_NET_PASSWORD_1" value="Confirm your password:"/> <string id="STR_NET_ENCOUNTER" value="Network encounter"/> <string id="STR_GIFT_PRESENT" value="Present"/> <string id="STR_GIFT_ROCK" value="Rock"/> <string id="STR_GIFT_MAGAZINE" value="Magazine"/> <string id="STR_GIFT_FLOWERS" value="Flowers"/> <string id="STR_GIFT_GAUNTLET" value="Gauntlet"/> <string id="STR_GIFT_CRYSTALBALL" value="Crystal Ball"/> <string id="STR_GIFT_NEWSPAPER" value="Newspaper"/> <string id="STR_GIFT_CHEMISTRY" value="Chemistry"/> <string id="STR_GIFT_CHOCOLATES" value="Chocolate"/> <string id="STR_GIFT_FRYINGPAN" value="Frying Pan"/> <string id="STR_LEVELUP" value="Level Up!!!"/> <string id="STR_LEVELUP_TOY" value="Level Up!!! Unlock a new toy!"/> <string id="STR_LEVELUP_FOOD" value="Level Up!!! Unlock new food!"/> <string id="STR_LEVELUP_GIFT" value="Level Up!!! Unlock a new gift!"/> <string id="STR_LEVELUP_COLLEGE" value="Level Up!!! Your ego has reached college status."/> <string id="STR_LEVELUP_PROFESSIONAL" value="Level Up!!! Your ego has reached proffesional status."/> <string id="STR_LEVELUP_CAREER" value="Level Up!!! Your ego has reached career status."/> <string id="STR_LEVELUP_SUPREME" value="Level Up!!! Congratulations! Your EGO has reached the final maturity level and is now Enlightened!"/> <string id="STR_RETIRE" value="Would you like to lock your attributes at your current Ego Archetype? You will continue to change emotionally, but your Archetype will be fixed."/> <string id="STR_UNRETIRE" value="Would you like to unlock your attributes so that your Ego may continue to change through the course of play?"/> <string id="STR_UNLOCK_TOY" value="Unlock a new toy!"/> <string id="STR_UNLOCK_FOOD" value="Unlock new food!"/> <string id="STR_UNLOCK_GIFT" value="Unlock a new gift!"/> <string id="STR_INTERACTION_SENT" value="Interaction Sent."/> <string id="STR_HEAD_APPEARANCE" value="Head appearance"/> <string id="STR_BODY_APPEARANCE" value="Body appearance"/> <string id="STR_HEAD_APPEARANCE2" value="Head"/> <string id="STR_BODY_APPEARANCE2" value="Body"/> <string id="STR_DECAL" value="Decal"/> <string id="STR_DECAL_COLOR" value="Decal Color"/> <string id="STR_HAIR" value="Hair"/> <string id="STR_FACIALHAIR" value="Facial Hair"/> <string id="STR_HAIR_COLOR" value="Hair Color"/> <string id="STR_HEAD_DECAL" value="Head Decal"/> <string id="STR_HAT" value="Hat"/> <string id="STR_HAT_COLOR" value="Hat Color"/> <string id="STR_HAT_DECAL" value="Hat Decal"/> <string id="STR_GLASSES" value="Glasses"/> <string id="STR_SKIN_COLOR" value="Skin Color"/> <string id="STR_TORSO" value="Torso"/> <string id="STR_TORSO_COLOR" value="Torso Color"/> <string id="STR_TORSO_DECAL" value="Torso Decal"/> <string id="STR_TORSO_DECAL_COLOR" value="Torso Decal Color"/> <string id="STR_PANTS" value="Pants"/> <string id="STR_PANTS_COLOR" value="Pants Color"/> <string id="STR_BELT" value="Belt"/> <string id="STR_NECK" value="Neck"/> <string id="STR_JACKET" value="Jacket"/> <string id="STR_JACKET_COLOR" value="Jacket Color"/> <string id="STR_FEET" value="Feet"/> <string id="STR_FEET_COLOR" value="Feet Color"/> <string id="STR_CREATE_PROFILE_0" value="Would you like to create"/> <string id="STR_CREATE_PROFILE_1" value="an online profile?"/> <string id="STR_PROFILE" value="Personal Profile"/> <string id="STR_PROFILE_DESC_0" value="Press OK on any of the "/> <string id="STR_PROFILE_DESC_1" value="options to modify."/> <string id="STR_LOCATION_DESC_0" value="Enter Zip Code."/> <string id="STR_LOCATION_DESC_1" value="e.g. 94043"/> <string id="STR_LOCATION_DESC_2" value="Leave empty to skip."/> <string id="STR_LOCATION" value="Zip: "/> <string id="STR_AGE_DESC" value="Enter age."/> <string id="STR_AGE" value="Age:"/> <string id="STR_SEX_DESC" value="Select your gender."/> <string id="STR_MALE" value="Male"/> <string id="STR_FEMALE" value="Female"/> <string id="STR_SEX" value="Gender: "/> <string id="STR_ZIP" value="Zip: "/> <string id="STR_SEARCH" value="Search"/> <string id="STR_GREET_SELECT" value="Select Greeting"/> <string id="STR_PART_SELECT" value="Select Parting"/> <string id="STR_PART" value="Part"/> <string id="STR_BOW" value="Bow"/> <string id="STR_HANDSHAKE" value="Handshake"/> <string id="STR_HIGHFIVE" value="High Five"/> <string id="STR_FISTPOUND" value="Fist Pound"/> <string id="STR_HUG" value="Hug"/> <string id="STR_LEER" value="Leer"/> <string id="STR_NOD" value="Nod"/> <string id="STR_SHOO" value="Shoo"/> <string id="STR_SHOULDERCLAP" value="Shoulder Clap"/> <string id="STR_SNEER" value="Sneer"/> <string id="STR_WAVE" value="Wave"/> <string id="STR_INTENT_SELECT" value="Select Intent"/> <string id="STR_GIVE_GIFT" value="Gift"/> <string id="STR_CHAT" value="Chat"/> <string id="STR_COFFEE" value="Get Coffee"/> <string id="STR_COMFORT" value="Comfort"/> <string id="STR_CRY" value="Cry"/> <string id="STR_LAUGH" value="Laugh"/> <string id="STR_TELLJOKE" value="Tell joke"/> <string id="STR_PLAYGUITAR" value="Play guitar"/> <string id="STR_RAGE" value="Rage"/> <string id="STR_SULK" value="Sulk"/> <string id="STR_THREATEN" value="Threaten"/> <string id="STR_DANCE" value="Dance"/> <string id="STR_FLEX" value="Flex"/> <string id="STR_POSE" value="Pose"/> <string id="STR_KISS" value="Kiss"/> <string id="STR_SHOVE" value="Shove"/> <string id="STR_THROWPAN" value="Throw Pan"/> <string id="STR_WORKOUT" value="Workout"/> <string id="STR_APPLAUD" value="Applaud"/> <string id="STR_DEBATE" value="Debate"/> <string id="STR_EXPERIMENT" value="Experiment"/> <string id="STR_LECTURE" value="Lecture"/> <string id="STR_PLAYUFO" value="RC Toy"/> <string id="STR_READBOOK" value="Book Club"/> <string id="STR_STUDY" value="Study"/> <string id="STR_THINK" value="Brainstorm"/> <string id="STR_WINETASTE" value="Wine tasting"/> <string id="STR_ACCEPT" value="Accept"/> <string id="STR_REJECT" value="Reject"/> <string id="STR_SEARCH_DESC" value="Set search radius (miles)"/> <string id="STR_SEARCH_DESC_1" value="for socializations."/> <string id="STR_ANY" value="Any"/> <string id="STR_LESS_10" value="Less than 10 miles"/> <string id="STR_LESS_50" value="Less than 50 miles"/> <string id="STR_DEMO_INFO_1" value="Keep this information safe "/> <string id="STR_DEMO_INFO_2" value="as you will need it to "/> <string id="STR_DEMO_INFO_3" value="access additional web features"/> <string id="STR_DEMO_INFO_4" value="and account maintenance."/> <string id="STR_DEMO_INFO_5" value=""/> <string id="STR_INBOX" value="Inbox"/> <string id="STR_INBOX_EMPTY" value="Inbox is empty."/> <string id="STR_CHAT_ACCEPT" value=" accepts chat."/> <string id="STR_CHAT_DENY" value=" is busy."/> <string id="STR_CHAT_REQUEST" value="requests to chat."/> <string id="STR_GO_HOME" value="Go Home"/> <string id="STR_LEAVE" value="Leave"/> <string id="STR_MUSIC" value="I'm listening to..."/> <string id="STR_ADD_LINE" value="Add Line"/> <string id="STR_BOOKS" value="I'm reading... "/> <string id="STR_GAMES" value="I'm playing... "/> <string id="STR_PETS" value="My Dog... "/> <string id="STR_CATS" value="My Cat... "/> <string id="STR_JOB" value="I am... "/> <string id="STR_VISIT" value="Visit"/> <string id="STR_CHAT_ROOM_LOAD_ERROR" value="Error unable to load chat room."/> <string id="STR_VISIT_BUDDY" value="Visit Buddy"/> <string id="STR_JOURNAL" value="Journal"/> <string id="STR_ADD_ENTRY" value="Add Entry"/> <string id="STR_JOURNAL_EMPTY" value="Journal Empty"/> <string id="STR_TV" value="I'm watching..."/> <string id="STR_GREETING" value="Greeting"/> <string id="STR_DRAMATIC" value="Dramatic Action"/> <string id="STR_FRIENDLY" value="Friendly Action"/> <string id="STR_MEAN" value="Mean Action"/> <string id="STR_FUNNY" value="Funny Action"/> <string id="STR_MENTAL" value="Mental Action"/> <string id="STR_PHYSICAL" value="Physical Action"/> <string id="STR_SOCIAL" value="Social Action"/> <string id="STR_REACTION" value="Reaction"/> <string id="STR_BEG" value="Beg"/> <string id="STR_CRINGE" value="Cringe"/> <string id="STR_CURSE" value="Curse"/> <string id="STR_EXAMINE" value="Examine"/> <string id="STR_CLAPSHOULDER" value="Shoulder Clap"/> <string id="STR_SHY" value="Shy"/> <string id="STR_PLAYCOOL" value="Play Cool"/> <string id="STR_SCOLDED" value="Scolded"/> <string id="STR_SHIVER" value="Shiver"/> <string id="STR_PRAISED" value="Praised"/> <string id="STR_WHISTLE" value="Whistle"/> <string id="STR_CHECKWATCH" value="Check Watch"/> <string id="STR_DAGGERS" value="Daggers"/> <string id="STR_TALKTOHAND" value="Talk to the Hand"/> <string id="STR_BELCH" value="Belch"/> <string id="STR_SHRUG" value="Shrug"/> <string id="STR_YAWN" value="Yawn"/> <string id="STR_HEADBANG" value="Head Bang"/> <string id="STR_CREATE_TO_ACCESS" value="Create your online account to access this feature."/> <string id="STR_DISABLED_SOC" value="Disabled during socialization."/> <string id="STR_DISABLED_CHAT" value="Disabled while waiting for a buddy or during chat."/> <string id="STR_NET_DISABLED" value="Enable networking to use this feature."/> <string id="STR_ENABLE_NET_1" value="This is a network only"/> <string id="STR_ENABLE_NET_2" value="feature. Connect to server?"/> <string id="STR_START_ACCOUNT_1" value="Begin the online account"/> <string id="STR_START_ACCOUNT_2" value="creation process now?"/> <string id="STR_LOGIN_1" value="Login to server and"/> <string id="STR_LOGIN_2" value="create/verify account?"/> <string id="STR_SKIP_LOGIN_1" value="You may create or verify "/> <string id="STR_SKIP_LOGIN_2" value="your account at any time "/> <string id="STR_SKIP_LOGIN_3" value="by turning on networking "/> <string id="STR_SKIP_LOGIN_4" value="in the network options menu."/> <string id="STR_POST_MESSAGE" value="Post to server now?"/> <string id="STR_ENTER_JOURNAL" value="Enter journal"/> <string id="STR_EDIT_MESSAGE" value="Edit greeting"/> <string id="STR_JOURNAL_STATUS" value="Change status"/> <string id="STR_CURRENT_STATUS" value="Current Status:"/> <string id="STR_JSTATUS_AVAILABLE" value="Available"/> <string id="STR_JSTATUS_BUSY" value="Busy"/> <string id="STR_JSTATUS_LUNCH" value="Out to lunch"/> <string id="STR_INPUT_RAPID" value="Text Entry: Rapid"/> <string id="STR_INPUT_ABC1" value="Text Entry: Normal"/> <string id="STR_VIEW_PIC" value="View Picture"/> <string id="STR_POST_DELETE_1" value="Delete this post"/> <string id="STR_POST_DELETE_2" value="from server?"/> <string id="STR_ETHNICITY" value="Ethnicity"/> <string id="STR_ETHNICITY_FILTER" value="Ethnicity filter."/> <string id="STR_ASIAN" value="Asian"/> <string id="STR_BLACK" value="Black or Af. Am."/> <string id="STR_CAUCASION" value="Caucasian"/> <string id="STR_EAST_INDIAN" value="East Indian"/> <string id="STR_JEWISH" value="Jewish"/> <string id="STR_LATINO" value="Latino / Hispanic"/> <string id="STR_NATIVE_AMERICAN" value="Native American"/> <string id="STR_PAC_ISLANDER" value="Pacific Islander"/> <string id="STR_OTHER" value="Other"/> <string id="STR_REL_STATUS" value="Rel. Status"/> <string id="STR_REL_DATING" value="Committed"/> <string id="STR_REL_SINGLE" value="Single"/> <string id="STR_ORIENTATION" value="Orientation"/> <string id="STR_STRAIGHT" value="Straight"/> <string id="STR_BI" value="Bi"/> <string id="STR_GAY" value="Gay"/> <string id="STR_NO_ANSWER" value="No Answer"/> <string id="STR_ALL" value="All"/> <string id="STR_ADD_TEXT" value="Add text here"/> <string id="STR_INVITE_SENT_1" value="Invite is sent. Press"/> <string id="STR_INVITE_SENT_2" value="OK or BACK to cancel."/> <string id="STR_BACK_TO_CANCEL" value="Press BACK to cancel."/> <string id="STR_AGE_FILTER" value="Age Filter"/> <string id="STR_SEARCH_AGE_MIN" value="Set Minimum Age."/> <string id="STR_SEARCH_AGE_MAX" value="Set Maximum Age."/> <string id="STR_SEARCH_FILTER" value="Profile Filters"/> <string id="STR_SEARCH_RADIUS" value="Search Radius"/> <string id="STR_SEARCH_SEX" value="Gender Filter."/> <string id="STR_SEARCH_RELATIONSHIP" value="RELATIONSHIP FILTER."/> <string id="STR_SEARCH_ORIENATION" value="ORIENTATION FILTER."/> <string id="STR_ROOM_ACCESS" value="MY ROOM ACCESS"/> <string id="STR_ROOM_ACCESS_PRIV" value="MY ROOM ACCESS: PRIVATE"/> <string id="STR_ROOM_ACCESS_PUB" value="MY ROOM ACCESS: PUBLIC"/> <string id="STR_ROOM_ACCESS_DESC" value="Set access level for my room."/> <string id="STR_ROOM" value="ROOM"/> <string id="STR_PUBLIC" value="PUBLIC"/> <string id="STR_PRIVATE" value="PRIVATE"/> <string id="STR_PRIVATE_ROOM_DESC" value="Private Room - Only egos on my buddylist can enter my room."/> <string id="STR_PUBLIC_ROOM_DESC" value="Public Room - Buddies of buddies can enter my room."/> <string id="STR_GROUP" value="Group"/> <string id="STR_SEARCH_GROUP" value="Group Filter."/> <string id="STR_MY_GROUP" value="My Group."/> <string id="STR_SET_SPECIAL_STATUS" value="Mark Special"/> <string id="STR_BUDDY_BEST_FRIEND" value="Best Friend"/> <string id="STR_BUDDY_RIVAL" value="Rival"/> <string id="STR_BUDDY_SWEETHEART" value="Sweetheart"/> <string id="STR_NONE" value="None"/> <string id="STR_RESTORING_ACCOUNT" value="Requesting data from server."/> <string id="STR_RESTORE_ACCOUNT_0" value="Would you like to"/> <string id="STR_RESTORE_ACCOUNT_1" value="restore your account"/> <string id="STR_RESTORE_ACCOUNT_2" value="data from the server?"/> <string id="STR_RESTORE_ACCOUNT_3" value="Any downloaded messages"/> <string id="STR_RESTORE_ACCOUNT_4" value="in your inbox will be "/> <string id="STR_RESTORE_ACCOUNT_5" value="deleted. "/> <string id="STR_NEW_DOWNLOAD_0" value="There is a new outfit"/> <string id="STR_NEW_DOWNLOAD_1" value="available. Would you like"/> <string id="STR_NEW_DOWNLOAD_2" value="to download now?"/> <string id="STR_DISCONNECT_WARNING" value="Warning: You will be disconnected in 30 more seconds of inactivity."/> <string id="STR_DISCONNECTED" value="Disconnected due to inactivity. Game is in offline mode."/> <string id="STR_SERVER_MSG_SIZE" value="# Messages On Server: "/> <string id="STR_BLOG_FULL" value="This journal is full. Owner has too many permanent messages."/> <string id="STR_MARK_PERMANENT" value="MARK PERMANENT"/> <string id="STR_UNMARK_PERMANENT" value="UNMARK PERMANENT"/> <string id="STR_DELETE_MESSAGE" value="DELETE MESSAGE"/> <string id="STR_ENTER_CHAT" value="Enter message here"/> <string id="STR_NET_FAILURE " value="An unexpected error occurred while connecting. Please try again later."/> <string id="STR_MEM_CHECK_FAIL" value="There isn't enough space to continue. Press any key to quit."/> <string id="STR_MEM_CHECK_0" value="Checking for free"/> <string id="STR_MEM_CHECK_1" value="file space..."/> <string id="STR_BUDDIES" value="Buddies"/> <string id="STR_INVALID_PASS" value="Invalid. No spaces and 3-12 characters."/> <string id="STR_AI_EGO" value="This Ego is a NPC"/> <string id="STR_NET_UNAVAILABLE" value="Network Unavailable"/> <string id="STR_CONNECTION" value="Connection"/> <string id="STR_NETWORK_ON" value="Network: On"/> <string id="STR_JOURNAL_WARNING_0" value="Exiting will erase "/> <string id="STR_JOURNAL_WARNING_1" value="your unsent journal"/> <string id="STR_JOURNAL_WARNING_2" value="post. Exit anyway?"/> <string id="STR_CHAT_END_0" value="CHAT HAS ENDED"/> <string id="STR_CHAT_END_1" value="PRESS OK TO CLOSE"/> <string id="STR_EGO_2_DETAILS" value="EGO DETAILS"/> <string id="STR_LOADING_1" value="PRESS BACK TO CANCEL"/> <string id="STR_LOADING_2" value="REQUEST TO SERVER."/> <string id="STR_RANDOM_SOCIALIZE_0" value="REQUEST TO SERVER"/> <string id="STR_RANDOM_SOCIALIZE_1" value="SENT. PRESS BACK"/> <string id="STR_RANDOM_SOCIALIZE_2" value="TO CANCEL."/> <string id="STR_PROFANITY_ALLOW" value="DISABLE FILTER"/> <string id="STR_PROFANITY_DENY" value="ENABLE FILTER"/> <string id="STR_PROFANITY_FILTER" value="Profanity Filter"/> <string id="STR_PROFANITY_DESC_0" value="When enabled, server"/> <string id="STR_PROFANITY_DESC_1" value="will filter incoming"/> <string id="STR_PROFANITY_DESC_2" value="text."/> <string id="STR_PROFANITY_ON" value="PROFANITY FILTER: ON"/> <string id="STR_PROFANITY_OFF" value="PROFANITY FILTER: OFF"/> <string id="STR_ADD_BAN" value="ADD BAN"/> <string id="STR_BAN_LIST" value="BANNED LIST"/> <string id="STR_BAN_REMOVE_0" value="CONFIRM REMOVAL"/> <string id="STR_BAN_REQUEST_SUCCESS" value="BAN REQUEST SENT."/> <string id="STR_CANCEL" value="CANCEL"/> <string id="STR_OK" value="OK"/> <string id="STR_CHAT2" value="Chat2"/> <string id="STR_BAN_DESC_0" value="Ban and delete will "/> <string id="STR_BAN_DESC_1" value="ban the ego and delete"/> <string id="STR_BAN_DESC_2" value="all their posts "/> <string id="STR_BAN_DESC_3" value="from your journal."/> <string id="STR_BAN_DELETE" value="BAN AND DELETE "/> <string id="STR_SERVER_EGO" value="SERVER EGO"/> <string id="STR_LOCAL_EGO" value="CURRENT EGO"/> <string id="STR_GET_JOURNAL_INFO" value="Getting journal information"/> <string id="STR_POST_DELETE_LOCKED_1" value="Post is locked,"/> <string id="STR_POST_DELETE_LOCKED_2" value="delete anyway?"/> <string id="STR_RECONCIL_0" value="Last time you logged in"/> <string id="STR_RECONCIL_1" value="was from another"/> <string id="STR_RECONCIL_2" value="device. You will be"/> <string id="STR_RECONCIL_3" value="presented with two "/> <string id="STR_RECONCIL_4" value="versions of your ego."/> <string id="STR_RECONCIL_5" value="Local ego is the "/> <string id="STR_RECONCIL_6" value="ego on your device."/> <string id="STR_RECONCIL_7" value="Server ego is the ego "/> <string id="STR_RECONCIL_8" value="last saved to the server"/> <string id="STR_RECONCIL_9" value="by the other device."/> <string id="STR_REQ_DL_0" value="To play this game you must"/> <string id="STR_REQ_DL_1" value="download the 50KB update."/> <string id="STR_REQ_DL_2" value="Download now?"/> <!--newly added --> <string id="STR_VERSION_MISMATCH" value="version mismatch, interaction fails"/> <string id="STR_NET_FAILED_1" value="Socialization Request Timed Out."/> <string id="STR_NET_FAILED_2" value="Error: Network Request Timed Out."/> <string id="STR_NET_FAILED_3" value="Reconciliation cancelled. Connection closed."/> <string id="STR_NET_FAILED_4" value="Reconciliation ended due to disconnection."/> <string id="STR_NET_FAILED_5" value="Network Error: Unable to access user's room."/> <string id="STR_NET_FAILED_6" value="SERVER: Chat has ended. Press OK to close window."/> <string id="STR_WELCOME_TO_JOURNAL" value="Welcome to my journal!"/> <string id="STR_MSG_DETAIL" value="Message Detail"/> <string id="STR_POST_IS_LOCKED" value="Post is locked, you cannot delete."/> <string id="STR_NO_ACCOUNT_TO_DEL" value="NO ACCOUNT TO DELETE ON SERVER, LOCAL DATA CLEARED."/> <string id="STR_EGO_IS_BUSY" value="Not Available, your ego is busy!"/> <string id="STR_NOT_CONFIRMED_AS_A_BUDDY" value="Other user has not confirmed you as a buddy."/> <string id="STR_HAVE_5_FRIENDS" value="You already have 5 best friends."/> <string id="STR_HAVE_5_REVALS" value="You already have 5 rivals."/> <string id="STR_HAVE_SH" value="You already have a sweetheart!"/> <string id="STR_PW_MISMATCH" value="Password does not match."/> <string id="STR_NET_DISCONNECTED" value="No longer connected to server."/> <string id="STR_GETTING_1_2" value="Getting File 1 of 2. Press BACK to cancel."/> <string id="STR_REQ_CREATE_ACC" value="You must create an online account to access this feature."/> <string id="STR_ERROR_1" value="Zip must be 5 digits."/> <string id="STR_ERROR_2" value="Invalid Number, try again."/> <string id="STR_ERROR_3" value="Max must not be less than min."/> <string id="STR_ERROR_4" value="Invalid username."/> <string id="STR_ERROR_5" value="Cannot ban yourself."/> <string id="STR_INFOR_1" value="Removal requested."/> <string id="STR_INFOR_2" value="Ban and Delete Requested."/> <string id="STR_INFOR_3" value="deleting post."/> <string id="STR_INFOR_4" value="Changing Lock."/> <string id="STR_INFOR_5" value="Getting File 2 of 2."/> <string id="STR_INFOR_6" value=" Press BACK to cancel."/> <string id="STR_INFOR_7" value="Search criteria changed."/> <!--added by NguyenHoang--> <string id="STR_MENU_PROFILE_RELATIONSHIP_TITLE" value="Rel. Status."/> <string id="STR_MENU_PROFILE_ORIENTATION_TITLE" value="Orientation."/> <string id="STR_CUSTOMIZE" value="Customize"/> <string id="STR_TUTORIAL" value="Tutorial"/> <!--end--> </string_table> ; public static const WARDROBE:Array = new Array(0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 161, 0, 0, 0, 83, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 82, 0, 0, 0, 82, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 145, 0, 145, 0, 0, 0, 0, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 161, 129, 0, 0, 65, 0, 145, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 97, 81, 81, 0, 161, 81, 0, 0, 0, 0, 130, 82, 97, 81, 81, 82, 0, 49, 0, 0, 0, 0, 0, 0, 145, 65, 81, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 0, 0, 130, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 81, 0, 81, 0, 130, 0, 147, 0, 0, 0, 0, 0, 0, 0, 0, 0, 147, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 65, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 82, 65, 0, 0, 97, 97, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 97, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 81, 81, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 98, 65, 65, 0, 0, 97, 0, 81, 81, 0, 0, 50, 50, 0, 66, 98, 65, 65, 146, 146, 97, 97, 145, 145, 49, 49, 0, 0, 0, 0, 0, 0, 83, 83, 0, 0, 0, 0, 0, 0, 65, 0, 0, 65, 0, 0, 97, 0, 0, 97, 98, 65, 0, 65, 0, 0, 0, 0, 65, 82, 65, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 82, 0, 82, 82, 81, 0, 0, 0, 0, 0, 82, 82, 97, 97, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 81, 97, 145, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 0, 0); } }//package game2
Section 54
//mlib2_Bitmap (mlib2.core.mlib2_Bitmap) package mlib2.core { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.net.*; public class mlib2_Bitmap extends EventDispatcher { public var mLoadFlip:Boolean; public var mCallback:Object;// = null public var loader:Loader; public var mScaleX:Number;// = 1 public var mIsLoaded:Boolean;// = false public var mName:String;// = "" public var mScaleY:Number;// = 1 public var bitmapData:BitmapData; public static const LOAD_RESOURCE_FROM_SWF:Boolean = false; public function mlib2_Bitmap(_arg1:String, _arg2:Boolean){ var _local3:URLRequest; var _local4:String; var _local5:RegExp; var _local6:Class; mCallback = null; mIsLoaded = false; mScaleX = 1; mScaleY = 1; mName = ""; super(); if (_arg1 == ""){ return; }; bitmapData = null; mLoadFlip = _arg2; if (LOAD_RESOURCE_FROM_SWF){ if (_arg1.length > 4){ _local4 = _arg1.substring(4, (_arg1.length - 4)); _local5 = /\//g; _local4 = ("classDefs." + _local4.replace(_local5, ".")); _local6 = (getDefinitionByName(_local4) as Class); bitmapData = new (_local6); if (mLoadFlip){ flipImage(); }; return; }; }; loader = new Loader(); configureListeners(loader.contentLoaderInfo); _local3 = new URLRequest(_arg1); loader.load(_local3); } private function configureListeners(_arg1:IEventDispatcher):void{ _arg1.addEventListener(Event.COMPLETE, completeHandler); } public function unload(){ loader.unload(); } private function completeHandler(_arg1:Event):void{ var _local2:Bitmap; _local2 = Bitmap(loader.content); bitmapData = _local2.bitmapData; if (mLoadFlip){ flipImage(); }; mIsLoaded = true; if (mCallback != null){ mCallback(_arg1, mName); }; loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, completeHandler); } private function ioErrorHandler(_arg1:IOErrorEvent):void{ trace(("Unable to load image " + _arg1)); } private function unLoadHandler(_arg1:Event):void{ trace(("unLoadHandler: " + _arg1)); loader = null; } public function addCompleteCallback(_arg1:Object, _arg2:String=""){ mCallback = _arg1; mName = _arg2; } public function setImageScale(_arg1:Number){ mScaleX = _arg1; mScaleY = _arg1; } public function flipImage(){ var _local1:Bitmap; var _local2:int; var _local3:int; _local1 = new Bitmap(bitmapData.clone()); _local2 = 0; while (_local2 < bitmapData.width) { _local3 = 0; while (_local3 < bitmapData.height) { bitmapData.setPixel32(_local2, _local3, _local1.bitmapData.getPixel32(((bitmapData.width - _local2) - 1), _local3)); _local3++; }; _local2++; }; } public function replacePaletteColor(_arg1:int, _arg2:int){ var _local3:int; var _local4:int; if (bitmapData == null){ return; }; _local3 = 0; while (_local3 < bitmapData.width) { _local4 = 0; while (_local4 < bitmapData.height) { if ((bitmapData.getPixel(_local3, _local4) & 0xFFFFFF) == _arg1){ bitmapData.setPixel(_local3, _local4, _arg2); }; _local4++; }; _local3++; }; } public static function createEmptyBitmap(_arg1:int, _arg2:int, _arg3:Boolean=false):mlib2_Bitmap{ var _local4:mlib2_Bitmap; _local4 = new mlib2_Bitmap("", _arg3); _local4.bitmapData = new BitmapData(_arg1, _arg2, true, 0xFFFFFF); return (_local4); } public static function createImage(_arg1:String, _arg2:Boolean=false):mlib2_Bitmap{ var _local3:mlib2_Bitmap; _local3 = new mlib2_Bitmap(_arg1, _arg2); return (_local3); } } }//package mlib2.core
Section 55
//mlib2_DataOutput (mlib2.core.mlib2_DataOutput) package mlib2.core { import flash.utils.*; public class mlib2_DataOutput extends ByteArray { public function writeLong(_arg1:int):void{ writeInt(_arg1); } public function size():int{ return (length); } public function reset():void{ position = 0; length = 0; } public function write(_arg1:ByteArray, _arg2:uint=0, _arg3:uint=0):void{ writeBytes(_arg1, _arg2, _arg3); } } }//package mlib2.core
Section 56
//mlib2_GL (mlib2.core.mlib2_GL) package mlib2.core { import flash.display.*; import flash.geom.*; public class mlib2_GL { private var mClipY1:Number;// = 0 private var mClipY2:Number;// = 9999 public var mGraphics:Sprite; private var mDisplayHeight:int; private var mDisplayWidth:int; private var mClipX1:Number;// = 0 private var mClipX2:Number;// = 9999 public static const LEFT:int = 4; public static const BOTTOM:int = 32; public static const VCENTER:int = 2; public static const TOP:int = 16; public static const RIGHT:int = 8; public static const HCENTER:int = 1; private static var mColor:int; private static var mAlpha:Number = 1; private static var mGL:mlib2_GL = new (mlib2_GL); ; private static var mNoClip:Boolean; public function mlib2_GL(){ mClipX1 = 0; mClipY1 = 0; mClipX2 = 9999; mClipY2 = 9999; super(); mGraphics = new Sprite(); } public function drawRect(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ mGraphics.graphics.beginFill(mColor, mAlpha); mGraphics.graphics.drawRect(_arg1, _arg2, _arg3, _arg4); mGraphics.graphics.endFill(); } public function clear(){ while (mGraphics.numChildren > 0) { mGraphics.removeChildAt(0); }; } public function fillRect(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ mGraphics.graphics.beginFill(mColor, mAlpha); mGraphics.graphics.drawRect(_arg1, _arg2, _arg3, _arg4); mGraphics.graphics.endFill(); } public function setClip(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){ mClipX1 = _arg1; mClipY1 = _arg2; mClipX2 = (_arg1 + _arg3); mClipY2 = (_arg2 + _arg4); mNoClip = false; } public function getDisplayHeight():int{ return (mDisplayHeight); } public function drawLine(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ mGraphics.graphics.moveTo(_arg1, _arg2); mGraphics.graphics.lineTo(_arg3, _arg4); } public function getDisplayWidth():int{ return (mDisplayWidth); } public function drawHorizontalLine(_arg1:int, _arg2:int, _arg3:int){ mGraphics.graphics.moveTo(_arg1, _arg2); mGraphics.graphics.lineTo((_arg1 + _arg3), _arg2); } public function setColor(_arg1:int){ mColor = _arg1; mAlpha = ((mColor >>> 24) / 0xFF); if (mAlpha == 0){ mAlpha = 1; }; mGraphics.graphics.lineStyle(0, mColor, mAlpha, false, "normal", null, null, 3); } public function setDisplayWidth(_arg1:int){ mDisplayWidth = _arg1; } public function setDisplayHeight(_arg1:int){ mDisplayHeight = _arg1; } public function getColor():int{ return (mColor); } public function drawVerticalLine(_arg1:int, _arg2:int, _arg3:int){ mGraphics.graphics.moveTo(_arg1, _arg2); mGraphics.graphics.lineTo(_arg1, (_arg2 + _arg3)); } public function fillCircle(_arg1:int, _arg2:int, _arg3:int){ mGraphics.graphics.beginFill(mColor, mAlpha); mGraphics.graphics.drawCircle(_arg1, _arg2, _arg3); mGraphics.graphics.endFill(); } public function drawImage(_arg1:mlib2_Bitmap, _arg2:Number, _arg3:Number, _arg4:int=20){ var _local5:Matrix; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; if (((!((_arg1 == null))) && (!((_arg1.bitmapData == null))))){ _local5 = new Matrix(); _local6 = _arg1.mScaleX; _local7 = _arg1.mScaleY; if ((_arg4 & RIGHT) == RIGHT){ _arg2 = (_arg2 - (_arg1.bitmapData.width * _local6)); } else { if ((_arg4 & HCENTER) == HCENTER){ _arg2 = (_arg2 - ((_arg1.bitmapData.width * _local6) / 2)); }; }; if ((_arg4 & BOTTOM) == BOTTOM){ _arg3 = (_arg3 - (_arg1.bitmapData.height * _local7)); } else { if ((_arg4 & VCENTER) == VCENTER){ _arg3 = (_arg3 - ((_arg1.bitmapData.height * _local7) / 2)); }; }; _local5.translate((_arg2 * (1 / _local6)), (_arg3 * (1 / _local7))); _local5.scale(_local6, _local7); mGraphics.graphics.lineStyle(0, 0, 0); if (mNoClip){ _local8 = _arg2; _local10 = _arg3; _local9 = (_arg2 + (_arg1.bitmapData.width * _local6)); _local11 = (_arg3 + (_arg1.bitmapData.height * _local7)); } else { _local8 = ((_arg2)<mClipX1) ? mClipX1 : _arg2; _local10 = ((_arg3)<mClipY1) ? mClipY1 : _arg3; _local9 = (((_arg2 + (_arg1.bitmapData.width * _local6)))>mClipX2) ? mClipX2 : (_arg2 + (_arg1.bitmapData.width * _local6)); _local11 = (((_arg3 + (_arg1.bitmapData.height * _local7)))>mClipY2) ? mClipY2 : (_arg3 + (_arg1.bitmapData.height * _local7)); if (_local9 < _local8){ _local9 = _local8; }; if (_local11 < _local10){ _local11 = _local10; }; }; mGraphics.graphics.beginBitmapFill(_arg1.bitmapData, _local5, false, true); mGraphics.graphics.moveTo(_local8, _local10); mGraphics.graphics.lineTo(_local8, _local11); mGraphics.graphics.lineTo(_local9, _local11); mGraphics.graphics.lineTo(_local9, _local10); mGraphics.graphics.lineTo(_local8, _local10); mGraphics.graphics.endFill(); }; } public function resetClip(){ mNoClip = true; } public static function getGL():mlib2_GL{ return (mGL); } } }//package mlib2.core
Section 57
//Timers (mlib2.utility.Timers) package mlib2.utility { public class Timers { private var mElapsedMilliseconds:int; private var mExpirationMilliseconds:int; public function Timers(_arg1:int=0){ mElapsedMilliseconds = 0; mExpirationMilliseconds = _arg1; } public function getElapsed():int{ return (mElapsedMilliseconds); } public function reset(){ mElapsedMilliseconds = 0; } public function setExpiration(_arg1:int){ mExpirationMilliseconds = _arg1; } public function isExpired():Boolean{ return ((mElapsedMilliseconds >= mExpirationMilliseconds)); } public function onTick(_arg1:int):Boolean{ mElapsedMilliseconds = (mElapsedMilliseconds + _arg1); return ((mElapsedMilliseconds >= mExpirationMilliseconds)); } } }//package mlib2.utility
Section 58
//Ads_7 (SKU_PK_fla.Ads_7) package SKU_PK_fla { import flash.display.*; import game.*; public dynamic class Ads_7 extends MovieClip { public var mGuest:Button_Guest; public var mWebLinkBig:MovieClip; } }//package SKU_PK_fla
Section 59
//captcha_199 (SKU_PK_fla.captcha_199) package SKU_PK_fla { import flash.display.*; import flash.text.*; public dynamic class captcha_199 extends MovieClip { public var mText:TextField; } }//package SKU_PK_fla
Section 60
//Creation_Overlay_213 (SKU_PK_fla.Creation_Overlay_213) package SKU_PK_fla { import flash.display.*; public dynamic class Creation_Overlay_213 extends MovieClip { public var mSureButton:SimpleButton; public var mCancelButton:SimpleButton; } }//package SKU_PK_fla
Section 61
//FemalePersonality_127 (SKU_PK_fla.FemalePersonality_127) package SKU_PK_fla { import flash.display.*; public dynamic class FemalePersonality_127 extends MovieClip { public var mFFlirt:SimpleButton; public var mFActor:SimpleButton; public var mFSurfer:SimpleButton; public var mFArtist:SimpleButton; public var mFSkater:SimpleButton; public var mFGoth:SimpleButton; public var mFNerd:SimpleButton; public var mFClown:SimpleButton; public var mFJock:SimpleButton; public var mFRebel:SimpleButton; public var mFBully:SimpleButton; public var mFPreppy:SimpleButton; } }//package SKU_PK_fla
Section 62
//GenderOver_25 (SKU_PK_fla.GenderOver_25) package SKU_PK_fla { import flash.display.*; public dynamic class GenderOver_25 extends MovieClip { public function GenderOver_25(){ addFrameScript(4, frame5); } function frame5(){ stop(); } } }//package SKU_PK_fla
Section 63
//HairColorOver_31 (SKU_PK_fla.HairColorOver_31) package SKU_PK_fla { import flash.display.*; public dynamic class HairColorOver_31 extends MovieClip { public function HairColorOver_31(){ addFrameScript(4, frame5); } function frame5(){ stop(); } } }//package SKU_PK_fla
Section 64
//HairStyleOver_29 (SKU_PK_fla.HairStyleOver_29) package SKU_PK_fla { import flash.display.*; public dynamic class HairStyleOver_29 extends MovieClip { public function HairStyleOver_29(){ addFrameScript(4, frame5); } function frame5(){ stop(); } } }//package SKU_PK_fla
Section 65
//Layout_DesignEgo_22 (SKU_PK_fla.Layout_DesignEgo_22) package SKU_PK_fla { import flash.display.*; public dynamic class Layout_DesignEgo_22 extends MovieClip { public var mHairStyle:SimpleButton; public var mGender:SimpleButton; public var mDesignEgo:MovieClip; public var mHairColor:SimpleButton; public var mPersonality:SimpleButton; public var mSkinColor:SimpleButton; } }//package SKU_PK_fla
Section 66
//Layout_FemaleHair_74 (SKU_PK_fla.Layout_FemaleHair_74) package SKU_PK_fla { import flash.display.*; public dynamic class Layout_FemaleHair_74 extends MovieClip { public var mFHair2:SimpleButton; public var mFHair3:SimpleButton; public var mFHair4:SimpleButton; public var mFHair5:SimpleButton; public var mFHair1:SimpleButton; } }//package SKU_PK_fla
Section 67
//Layout_Gender_37 (SKU_PK_fla.Layout_Gender_37) package SKU_PK_fla { import flash.display.*; public dynamic class Layout_Gender_37 extends MovieClip { public var mMale:SimpleButton; public var mFemale:SimpleButton; } }//package SKU_PK_fla
Section 68
//Layout_HairColor_85 (SKU_PK_fla.Layout_HairColor_85) package SKU_PK_fla { import flash.display.*; public dynamic class Layout_HairColor_85 extends MovieClip { public var mColor6:SimpleButton; public var mColor3:SimpleButton; public var mColor4:SimpleButton; public var mColor5:SimpleButton; public var mColor7:SimpleButton; public var mColor2:SimpleButton; public var mColor8:SimpleButton; public var mColor1:SimpleButton; } }//package SKU_PK_fla
Section 69
//Layout_MaleHair_63 (SKU_PK_fla.Layout_MaleHair_63) package SKU_PK_fla { import flash.display.*; public dynamic class Layout_MaleHair_63 extends MovieClip { public var mMHair5:SimpleButton; public var mMHair1:SimpleButton; public var mMHair3:SimpleButton; public var mMHair4:SimpleButton; public var mMHair2:SimpleButton; } }//package SKU_PK_fla
Section 70
//Layout_SkinColor_42 (SKU_PK_fla.Layout_SkinColor_42) package SKU_PK_fla { import flash.display.*; public dynamic class Layout_SkinColor_42 extends MovieClip { public var mSkin6:SimpleButton; public var mSkin5:SimpleButton; public var mSkin10:SimpleButton; public var mSkin2:SimpleButton; public var mSkin3:SimpleButton; public var mSkin7:SimpleButton; public var mSkin8:SimpleButton; public var mSkin9:SimpleButton; public var mSkin4:SimpleButton; public var mSkin1:SimpleButton; } }//package SKU_PK_fla
Section 71
//MainTimeline (SKU_PK_fla.MainTimeline) package SKU_PK_fla { import fl.controls.*; import flash.display.*; import flash.events.*; import com.adobe.serialization.json.*; import game2.*; import fl.data.*; import flash.utils.*; import fl.events.*; import flash.text.*; import flash.net.*; import game.*; import flash.geom.*; import flash.ui.*; import flash.system.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.media.*; import flash.printing.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public const EGO_YPOS = 230; public const EGO1_XPOS = 330; public const FIGHTCLUB:int = 0; public const MINIGAMES:int = 3; public const FORGOT_PASSWORD_URL:String = "/sendlostpassword/display"; public const MOBILE_SIGNUP_URL:String = "/flashlanding/createmobile"; public const EGO_GROUNDY = 47; public const SIGNUP_URL:String = "/flashlanding/create "; public const LOVELOUNGE:int = 1; public const LOGIN_URL:String = "/flashlanding/login"; public const POKER:int = 4; public var mSignUp:MovieClip; public var SKU_VIEW_WIDTH:int; public var loader:URLLoader; public var SIGNUP_BUTTON_Y_ELL:int; public var SIGNUP_BUTTON_Y_EMG:int; public var mCreationOverlay:MovieClip; public var mDirectToSignup:Boolean; public var clubloader:Loader; public var mEgo:Ego; public var mUsername:String; public var i:int; public var mXML:XML; public var mStepPart:int; public var PORTAL:String; public var SIGNUP_BUTTON_Y_OFFSET:int; public var mContext:Context; public var mBtnPokerBuyMembership:SimpleButton; public var SIGNUP_BUTTON_Y_EPK:int; public var mOverlayUserIncentives:Popup_Inform; public var SIGNUP_BUTTON_X_ELL:int; public var mSavedStepButtonState:DisplayObject; public var SIGNUP_BUTTON_X_EMG:int; public var mBtnPokerTokens:SimpleButton; public var START_XPOS:int; public var mStep:int; public var mSmoke:MovieClip; public var mSavedPartButtonState:DisplayObject; public var NUM_HAIR_COLORS:int; public var START_YPOS:int; public var SIGNUP_BUTTON_X_EPK:int; public var paramObj:Object; public var mIsMale:Boolean; public var MINISKU:Boolean; public var mCaptcha:String; public var mLoader2:MovieClip; public var dpMonth:DataProvider; public var mError:TextField; public var my_so:SharedObject; public var rnum:int; public var mClubSignUp:SimpleButton; public var mLiveSite:String; public var ARCH_URL:String; public var mHair:int; public var mLastTime:int; public var DELAY_TIMER_LOAD:int; public var mPassword:String; public var HAIR_FEMALE_MAP:Array; public var mEgoDisplayDelay:int; public var signupLayout:MovieClip; public var mVScrollBar:UIScrollBar; public var previousUpdate:uint; public var SCROLLBAR_SIZE:int; public var SKU_HEIGHT:int; public var mHairColor:int; public var mNavBar:MovieClip; public var mSavedPartButton:SimpleButton; public var mClub:int; public var mHScrollBar:UIScrollBar; public var mLoader:MovieClip; public var mSavedStepButton:SimpleButton; public var dpYear:DataProvider; public var valueStr:String; public var NUM_SKIN_COLORS:int; public var ver_path:String; public var keyStr:String; public var NUM_BODY_COLORS:int; public var SIGNUP_BUTTON_Y_EFC:int; public var dpDay:DataProvider; public var mLogo2:MovieClip; public var SKIN_MAP:Array; public var app_path:String; public var mSkin:int; public var mStateOverlay:Boolean; public var mVersionString:String; public var SIGNUP_BUTTON_X_OFFSET:int; public var DELAY_TIMER_DISPLAY:int; public var mVersionLoader:URLLoader; public var mEgoLoadDelay:int; public var mLogo:MovieClip; public var mPersonality:int; public var HAIR_MALE_MAP:Array; public var SKU_VIEW_HEIGHT:int; public var SIGNUP_BUTTON_X_EFC:int; public var mMobileUser:Boolean; public var mBtnPokerLockedMerits:SimpleButton; public var SKU_WIDTH:int; public var mClubObject; public function MainTimeline(){ addFrameScript(1, frame2, 5, frame6, 6, frame7, 15, frame16, 16, frame17, 24, frame25, 25, frame26, 34, frame35); } public function clickSkin10(_arg1:MouseEvent){ mSkin = 10; updateEgo(); } public function checkedLogin(_arg1:int, _arg2:String=""):void{ var _local3:URLRequest; var _local4:URLVariables; trace(("CHECKED, DATA = " + _arg1)); if (_arg1 == 0){ this.mNavBar.mInvalidUsername.visible = false; this.mNavBar.mInvalidPassword.visible = false; mUsername = this.mNavBar.mTextUsername.text; mUsername.toUpperCase(); this.gotoAndStop("club"); } else { if (_arg1 == 1){ this.mNavBar.mInvalidUsername.visible = true; this.mNavBar.mInvalidPassword.visible = false; } else { if (_arg1 == 2){ this.mNavBar.mInvalidUsername.visible = false; this.mNavBar.mInvalidPassword.visible = true; }; }; }; } public function GoToEGOCity(_arg1:MouseEvent):void{ navigateToURL(new URLRequest("http://www.ego-city.com/"), "_blank"); } public function onHorizontalScroll(_arg1:ScrollEvent){ if ((((mClub == MINIGAMES)) || ((mClub == POKER)))){ return; }; mClubObject.x = (0 - mHScrollBar.scrollPosition); mClubSignUp.x = (mClubObject.x + SIGNUP_BUTTON_X_OFFSET); mClubObject.setOffsets(-(mClubObject.x), -(mClubObject.y)); } public function PL_COMPLETE(_arg1:Event):void{ trace("done!"); this.gotoAndStop("landingPage"); this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, PL_LOADING); } public function onLoginComplete(_arg1:Event){ var loader:URLLoader; var resultObject:Object; var event = _arg1; trace("LOGIN COMPLETE"); try { loader = URLLoader(event.target); resultObject = this.deserialize(loader.data); checkedLogin(resultObject.errorCode, resultObject.data); } catch(error:Error) { trace(("error in onLoginComplete" + loader.data)); }; } public function onTick(_arg1:Event){ var now:uint; var dTime:uint; var event = _arg1; if (mStateOverlay){ return; }; now = getTimer(); if (mLastTime == -1){ mLastTime = now; }; dTime = (now - mLastTime); if (((!(mEgo.visible)) && (mEgo.isLoaded()))){ mEgoDisplayDelay = (mEgoDisplayDelay + dTime); if (mEgoDisplayDelay > DELAY_TIMER_DISPLAY){ trace("EGO Loaded and Delayed. Prepare to display."); mEgo.visible = true; mSmoke.gotoAndPlay(2); mEgoDisplayDelay = 0; }; } else { if (!mEgo.isLoaded()){ mEgoLoadDelay = (mEgoLoadDelay + dTime); if (mEgoLoadDelay > DELAY_TIMER_LOAD){ trace("EGO Load Failure. Reloading EGO."); mEgoLoadDelay = 0; updateEgo(); }; }; }; try { mEgo.onTick(dTime); } catch(e:Error) { trace(("caught error: " + e.toString())); trace(e.getStackTrace()); }; mLastTime = now; } public function mobilesignup(){ var _local1:URLLoader; var _local2:URLVariables; var _local3:URLRequest; _local1 = new URLLoader(); _local1.dataFormat = URLLoaderDataFormat.TEXT; _local1.addEventListener(Event.COMPLETE, onMobileSignUpComplete); _local2 = new URLVariables(); _local2.username = mUsername; _local2.email = this.signupLayout.UserInfoMobile.mEmailAddress.text; _local2.birthMonth = this.signupLayout.UserInfoMobile.mMonth.selectedLabel; _local2.birthDay = this.signupLayout.UserInfoMobile.mDay.selectedLabel; _local2.birthYear = this.signupLayout.UserInfoMobile.mYear.selectedLabel; _local2.alerts = this.signupLayout.UserInfoMobile.mCheckBoxEmailAlerts.selected; _local3 = new URLRequest((mLiveSite + MOBILE_SIGNUP_URL)); _local3.data = _local2; _local3.method = URLRequestMethod.POST; _local1.load(_local3); } public function onCompleteMainEgo(_arg1:Event){ var loader:URLLoader; var externalXML:XML; var event = _arg1; try { loader = (event.target as URLLoader); externalXML = new XML(loader.data); trace("Finished loading"); mEgo.loadCustomization(externalXML); } catch(e:Error) { trace("*** caught error in onCompleteMainEgo"); }; mEgo.changeAction(Constants.ACTION_STAND, true, false); mEgo.mName = "Ego"; mSmoke.gotoAndPlay(2); } public function normarsignup(){ var _local1:URLLoader; var _local2:URLVariables; var _local3:URLRequest; _local1 = new URLLoader(); _local1.dataFormat = URLLoaderDataFormat.TEXT; _local1.addEventListener(Event.COMPLETE, onSignUpComplete); _local2 = new URLVariables(); mUsername = this.signupLayout.UserInfo.mUsername.text; mPassword = this.signupLayout.UserInfo.mPassword.text.toUpperCase(); _local2.username = this.signupLayout.UserInfo.mUsername.text; _local2.password = this.signupLayout.UserInfo.mPassword.text.toUpperCase(); _local2.email = this.signupLayout.UserInfo.mEmailAddress.text; _local2.isMale = mIsMale; _local2.birthMonth = this.signupLayout.UserInfo.mMonth.selectedLabel; _local2.birthDay = this.signupLayout.UserInfo.mDay.selectedLabel; _local2.birthYear = this.signupLayout.UserInfo.mYear.selectedLabel; _local2.alerts = this.signupLayout.UserInfo.mCheckBoxEmailAlerts.selected; _local2.archetype = mEgo.mArchetype; _local2.skin = mEgo.mColors[Ego.COLORINDEX_SKIN].curColor; _local2.hair = mEgo.mHairIndex; _local2.hairColor = mEgo.mColors[Ego.COLORINDEX_HAIR].curColor; _local2.pants = mEgo.mPantsIndex; _local2.pantsColor = mEgo.mColors[Ego.COLORINDEX_PANTS].curColor; _local2.torso = mEgo.mTorsoIndex; _local2.torsoColor = mEgo.mColors[Ego.COLORINDEX_TORSO].curColor; _local2.torsoDecal = mEgo.mTorsoDecalIndex; _local2.torsoDecalColor = mEgo.mColors[Ego.COLORINDEX_TORSODECAL].curColor; _local2.jacket = mEgo.mJacketIndex; _local2.jacketColor = mEgo.mColors[Ego.COLORINDEX_JACKET].curColor; _local2.back = mEgo.mBackIndex; _local2.belt = mEgo.mBeltIndex; _local2.neck = mEgo.mNeckIndex; _local2.hat = mEgo.mHatIndex; _local2.hatColor = mEgo.mColors[Ego.COLORINDEX_HAT].curColor; _local2.glasses = mEgo.mGlassesIndex; _local2.headDecal = mEgo.mHeadDecalIndex; _local2.hatDecal = mEgo.mHatDecalIndex; _local2.facialHair = mEgo.mFacialHairIndex; _local2.facialHairColor = mEgo.mColors[Ego.COLORINDEX_FACIALHAIR].curColor; _local2.feet = mEgo.mFeetIndex; _local2.feetColor = mEgo.mColors[Ego.COLORINDEX_FEET].curColor; _local3 = new URLRequest((mLiveSite + SIGNUP_URL)); _local3.data = _local2; _local3.method = URLRequestMethod.POST; _local1.load(_local3); } public function showProgress(_arg1:ProgressEvent){ var _local2:Number; _local2 = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100); this.mLoader2.gotoAndStop(Math.round((_local2 / 2))); this.mLoader2.mPercent.text = ("" + int(_local2)); } public function onMobileSignUpComplete(_arg1:Event){ var loader:URLLoader; var resultObject:Object; var event = _arg1; try { loader = URLLoader(event.target); resultObject = this.deserialize(loader.data); createdAccount(resultObject.errorCode, resultObject.errorMessage); } catch(error:Error) { trace(("error in onLoginComplete" + loader.data)); }; } function frame16(){ stop(); } function frame17(){ mSkin = 1; mHair = 1; mHairColor = 1; mPersonality = 0; mCaptcha = ""; mIsMale = true; mMobileUser = false; mContext = new Context(); mEgo = new Ego(mContext); mEgo.mX = 0; mEgo.mY = 0; mEgo.x = 140; mEgo.y = 400; mEgo.mGroundY = (mEgo.mY + EGO_GROUNDY); if ((((mClub == MINIGAMES)) || ((mClub == POKER)))){ this.signupLayout.mLayoutGender.width = (this.signupLayout.mLayoutGender.width * 1.2); mEgo.x = 75; mEgo.y = 325; mSmoke.x = 75; mSmoke.y = 325; }; this.addChild(mEgo); this.swapChildren(mEgo, mSmoke); mEgo.resetAttributes(); mEgo.changeAction(Constants.ACTION_STAND, false, false); mEgo.onTick(100); mStateOverlay = true; this.mCreationOverlay.visible = true; this.signupLayout.visible = false; this.mEgo.visible = false; this.mSmoke.visible = false; this.mCreationOverlay.mSureButton.addEventListener(MouseEvent.CLICK, proceedToSignup); this.mCreationOverlay.mCancelButton.addEventListener(MouseEvent.CLICK, revertToGuestPlay); this.signupLayout.UserInfo.mPrivacyOver.visible = false; this.signupLayout.UserInfo.mQuestionOver.addEventListener(MouseEvent.MOUSE_OVER, DisplayPrivacyText); this.signupLayout.UserInfo.mQuestionOver.addEventListener(MouseEvent.MOUSE_OUT, HidePrivacyText); this.signupLayout.mPlayNow.mPlayNow_EGOCityLink.addEventListener(MouseEvent.CLICK, GoToEGOCity); if ((((mClub == MINIGAMES)) || ((mClub == POKER)))){ this.signupLayout.x = -8; this.signupLayout.y = 45; this.signupLayout.UserInfo.width = (this.signupLayout.UserInfo.width * 1.15); this.signupLayout.UserInfo.x = (this.signupLayout.UserInfo.x - 30); this.signupLayout.UserInfo.mSignUp.x = (this.signupLayout.UserInfo.mSignUp.x - 120); this.signupLayout.UserInfo.mErrorMsg.x = (this.signupLayout.UserInfo.mErrorMsg.x - 50); } else { if ((((mClub == FIGHTCLUB)) || ((mClub == LOVELOUNGE)))){ this.signupLayout.x = 35; this.signupLayout.y = 126; this.mCreationOverlay.x = 115; this.mCreationOverlay.y = 150; }; }; hideAll(); if (mMobileUser == true){ updateStep(2, 1); this.signupLayout.m1.visible = false; this.signupLayout.m2.visible = false; this.signupLayout.m3.visible = false; this.signupLayout.UserInfoMobile.mName.text = mUsername; } else { updateStep(1, 1); }; this.signupLayout.m1.addEventListener(MouseEvent.CLICK, clickStep1); this.signupLayout.m2.addEventListener(MouseEvent.CLICK, clickStep2); this.signupLayout.m3.enabled = false; this.signupLayout.m3.addEventListener(MouseEvent.CLICK, clickStep3); this.signupLayout.mRightArrow.addEventListener(MouseEvent.CLICK, clickRightArrow); this.signupLayout.mLeftArrow.addEventListener(MouseEvent.CLICK, clickLeftArrow); this.signupLayout.mLayoutDesignEgo.mGender.addEventListener(MouseEvent.CLICK, clickGender); this.signupLayout.mLayoutDesignEgo.mHairColor.addEventListener(MouseEvent.CLICK, clickHairColor); this.signupLayout.mLayoutDesignEgo.mHairStyle.addEventListener(MouseEvent.CLICK, clickHairStyle); this.signupLayout.mLayoutDesignEgo.mPersonality.addEventListener(MouseEvent.CLICK, clickPersonality); this.signupLayout.mLayoutDesignEgo.mSkinColor.addEventListener(MouseEvent.CLICK, clickSkinColor); this.signupLayout.mLayoutGender.mMale.addEventListener(MouseEvent.CLICK, clickMale); this.signupLayout.mLayoutGender.mFemale.addEventListener(MouseEvent.CLICK, clickFemale); this.signupLayout.mLayoutSkinColor.mSkin1.addEventListener(MouseEvent.CLICK, clickSkin1); this.signupLayout.mLayoutSkinColor.mSkin2.addEventListener(MouseEvent.CLICK, clickSkin2); this.signupLayout.mLayoutSkinColor.mSkin3.addEventListener(MouseEvent.CLICK, clickSkin3); this.signupLayout.mLayoutSkinColor.mSkin4.addEventListener(MouseEvent.CLICK, clickSkin4); this.signupLayout.mLayoutSkinColor.mSkin5.addEventListener(MouseEvent.CLICK, clickSkin5); this.signupLayout.mLayoutSkinColor.mSkin6.addEventListener(MouseEvent.CLICK, clickSkin6); this.signupLayout.mLayoutSkinColor.mSkin7.addEventListener(MouseEvent.CLICK, clickSkin7); this.signupLayout.mLayoutSkinColor.mSkin8.addEventListener(MouseEvent.CLICK, clickSkin8); this.signupLayout.mLayoutSkinColor.mSkin9.addEventListener(MouseEvent.CLICK, clickSkin9); this.signupLayout.mLayoutSkinColor.mSkin10.addEventListener(MouseEvent.CLICK, clickSkin10); this.signupLayout.mRandomize.addEventListener(MouseEvent.CLICK, clickRandomize); this.signupLayout.mLayoutMHair.mMHair1.addEventListener(MouseEvent.CLICK, clickHair1); this.signupLayout.mLayoutMHair.mMHair2.addEventListener(MouseEvent.CLICK, clickHair2); this.signupLayout.mLayoutMHair.mMHair3.addEventListener(MouseEvent.CLICK, clickHair3); this.signupLayout.mLayoutMHair.mMHair4.addEventListener(MouseEvent.CLICK, clickHair4); this.signupLayout.mLayoutMHair.mMHair5.addEventListener(MouseEvent.CLICK, clickHair5); this.signupLayout.mLayoutFHair.mFHair1.addEventListener(MouseEvent.CLICK, clickHair1); this.signupLayout.mLayoutFHair.mFHair2.addEventListener(MouseEvent.CLICK, clickHair2); this.signupLayout.mLayoutFHair.mFHair3.addEventListener(MouseEvent.CLICK, clickHair3); this.signupLayout.mLayoutFHair.mFHair4.addEventListener(MouseEvent.CLICK, clickHair4); this.signupLayout.mLayoutFHair.mFHair5.addEventListener(MouseEvent.CLICK, clickHair5); this.signupLayout.mLayoutHairColor.mColor1.addEventListener(MouseEvent.CLICK, clickHairColor1); this.signupLayout.mLayoutHairColor.mColor2.addEventListener(MouseEvent.CLICK, clickHairColor2); this.signupLayout.mLayoutHairColor.mColor3.addEventListener(MouseEvent.CLICK, clickHairColor3); this.signupLayout.mLayoutHairColor.mColor4.addEventListener(MouseEvent.CLICK, clickHairColor4); this.signupLayout.mLayoutHairColor.mColor5.addEventListener(MouseEvent.CLICK, clickHairColor5); this.signupLayout.mLayoutHairColor.mColor6.addEventListener(MouseEvent.CLICK, clickHairColor6); this.signupLayout.mLayoutHairColor.mColor7.addEventListener(MouseEvent.CLICK, clickHairColor7); this.signupLayout.mLayoutHairColor.mColor8.addEventListener(MouseEvent.CLICK, clickHairColor8); this.signupLayout.mFPersonality.mFActor.addEventListener(MouseEvent.CLICK, clickPersonalityActor); this.signupLayout.mFPersonality.mFArtist.addEventListener(MouseEvent.CLICK, clickPersonalityArtist); this.signupLayout.mFPersonality.mFBully.addEventListener(MouseEvent.CLICK, clickPersonalityBully); this.signupLayout.mFPersonality.mFClown.addEventListener(MouseEvent.CLICK, clickPersonalityClown); this.signupLayout.mFPersonality.mFFlirt.addEventListener(MouseEvent.CLICK, clickPersonalityFlirt); this.signupLayout.mFPersonality.mFGoth.addEventListener(MouseEvent.CLICK, clickPersonalityGoth); this.signupLayout.mFPersonality.mFJock.addEventListener(MouseEvent.CLICK, clickPersonalityJock); this.signupLayout.mFPersonality.mFNerd.addEventListener(MouseEvent.CLICK, clickPersonalityNerd); this.signupLayout.mFPersonality.mFPreppy.addEventListener(MouseEvent.CLICK, clickPersonalityPreppy); this.signupLayout.mFPersonality.mFRebel.addEventListener(MouseEvent.CLICK, clickPersonalityRebel); this.signupLayout.mFPersonality.mFSkater.addEventListener(MouseEvent.CLICK, clickPersonalitySkater); this.signupLayout.mFPersonality.mFSurfer.addEventListener(MouseEvent.CLICK, clickPersonalitySurfer); this.signupLayout.mMPersonality.mMActor.addEventListener(MouseEvent.CLICK, clickPersonalityActor); this.signupLayout.mMPersonality.mMArtist.addEventListener(MouseEvent.CLICK, clickPersonalityArtist); this.signupLayout.mMPersonality.mMBully.addEventListener(MouseEvent.CLICK, clickPersonalityBully); this.signupLayout.mMPersonality.mMClown.addEventListener(MouseEvent.CLICK, clickPersonalityClown); this.signupLayout.mMPersonality.mMFlirt.addEventListener(MouseEvent.CLICK, clickPersonalityFlirt); this.signupLayout.mMPersonality.mMGoth.addEventListener(MouseEvent.CLICK, clickPersonalityGoth); this.signupLayout.mMPersonality.mMJock.addEventListener(MouseEvent.CLICK, clickPersonalityJock); this.signupLayout.mMPersonality.mMNerd.addEventListener(MouseEvent.CLICK, clickPersonalityNerd); this.signupLayout.mMPersonality.mMPreppy.addEventListener(MouseEvent.CLICK, clickPersonalityPreppy); this.signupLayout.mMPersonality.mMRebel.addEventListener(MouseEvent.CLICK, clickPersonalityRebel); this.signupLayout.mMPersonality.mMSkater.addEventListener(MouseEvent.CLICK, clickPersonalitySkater); this.signupLayout.mMPersonality.mMSurfer.addEventListener(MouseEvent.CLICK, clickPersonalitySurfer); this.signupLayout.mPlayNow.mPlay.addEventListener(MouseEvent.CLICK, clickPlay); this.signupLayout.UserInfo.mSignUp.addEventListener(MouseEvent.CLICK, clickSignUp); this.signupLayout.UserInfoMobile.mSignUp.addEventListener(MouseEvent.CLICK, clickSignUpMobile); this.signupLayout.UserInfo.mTerms.addEventListener(MouseEvent.CLICK, gotoTerms); this.signupLayout.UserInfoMobile.mTerms.addEventListener(MouseEvent.CLICK, gotoTerms); dpDay = new DataProvider(); i = 1; while (i < 32) { dpDay.addItem({label:("" + i)}); i++; }; this.signupLayout.UserInfo.mDay.dataProvider = dpDay; this.signupLayout.UserInfo.mDay.rowCount = 10; this.signupLayout.UserInfoMobile.mDay.dataProvider = dpDay; this.signupLayout.UserInfoMobile.mDay.rowCount = 10; dpMonth = new DataProvider(); dpMonth.addItem({label:"Jan"}); dpMonth.addItem({label:"Feb"}); dpMonth.addItem({label:"Mar"}); dpMonth.addItem({label:"Apr"}); dpMonth.addItem({label:"May"}); dpMonth.addItem({label:"Jun"}); dpMonth.addItem({label:"Jul"}); dpMonth.addItem({label:"Aug"}); dpMonth.addItem({label:"Sep"}); dpMonth.addItem({label:"Oct"}); dpMonth.addItem({label:"Nov"}); dpMonth.addItem({label:"Dec"}); this.signupLayout.UserInfo.mMonth.dataProvider = dpMonth; this.signupLayout.UserInfo.mMonth.rowCount = 12; this.signupLayout.UserInfoMobile.mMonth.dataProvider = dpMonth; this.signupLayout.UserInfoMobile.mMonth.rowCount = 12; dpYear = new DataProvider(); i = 2008; while (i > 1900) { dpYear.addItem({label:("" + i)}); i--; }; this.signupLayout.UserInfo.mYear.dataProvider = dpYear; this.signupLayout.UserInfo.mYear.rowCount = 10; this.signupLayout.UserInfoMobile.mYear.dataProvider = dpYear; this.signupLayout.UserInfoMobile.mYear.rowCount = 10; this.signupLayout.UserInfoMobile.mYear.selectedIndex = 18; this.signupLayout.UserInfo.mYear.selectedIndex = 18; ARCH_URL = "http://www.ego-city.com/LoveLounge/egoScript.php?task=archFull&username="; SKIN_MAP = [0, 0, 1, 2, 3, 8, 4, 5, 6, 7, 9]; HAIR_MALE_MAP = [0, 12, 19, 5, 22, 37]; HAIR_FEMALE_MAP = [0, 13, 4, 38, 18, 47]; if (mMobileUser == true){ loader = null; loader = new URLLoader(new URLRequest((ARCH_URL + mUsername))); loader.addEventListener(Event.COMPLETE, onCompleteMainEgo); } else { updateEgo(); }; DELAY_TIMER_DISPLAY = 1500; DELAY_TIMER_LOAD = 1500; mLastTime = getTimer(); mEgoDisplayDelay = 0; mEgoLoadDelay = 0; } public function gotoSignup(_arg1:MouseEvent):void{ this.gotoAndStop("signup"); } public function clickPersonalityPreppy(_arg1:MouseEvent):void{ mPersonality = 9; updateEgo(); } function frame2(){ mNavBar.visible = false; mClub = POKER; MINISKU = false; mUsername = ""; mPassword = ""; my_so = SharedObject.getLocal("egoweb"); if (((!((my_so.data.username == null))) && (!((my_so.data.username == ""))))){ this.mNavBar.mTextUsername.text = my_so.data.username; this.mNavBar.mTextPassword.text = my_so.data.password; }; mLiveSite = "http://www.ego-city.com"; paramObj = LoaderInfo(this.root.loaderInfo).parameters; try { for (keyStr in paramObj) { valueStr = String(paramObj[keyStr]); if (keyStr == "liveSite"){ mLiveSite = valueStr; }; }; } catch(err:Error) { trace(err.toString()); }; trace(("navBar::LiveSite:" + mLiveSite)); this.mNavBar.mLogIn.addEventListener(MouseEvent.CLICK, gotoLogin); this.mNavBar.mTextPassword.addEventListener(KeyboardEvent.KEY_UP, onKeyUpEvent); this.mNavBar.mInvalidUsername.visible = false; this.mNavBar.mInvalidPassword.visible = false; } public function revertToGuestPlay(_arg1:MouseEvent):void{ mDirectToSignup = false; PlayAsGuest(); } function frame6(){ mNavBar.visible = false; this.stop(); this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, PL_LOADING); this.loaderInfo.addEventListener(Event.COMPLETE, PL_COMPLETE); if ((((((root.loaderInfo.bytesLoaded >= root.loaderInfo.bytesTotal)) && ((root.loaderInfo.bytesTotal > 0)))) || ((((root.loaderInfo.bytesTotal == 0)) && ((root.loaderInfo.bytesLoaded > 0)))))){ this.gotoAndStop("landingPage"); }; } function frame7(){ mNavBar.visible = true; this.mSignUp.mWebLinkBig.buttonMode = true; this.mSignUp.mWebLinkBig.useHandCursor = true; this.mSignUp.mWebLinkBig.addEventListener(MouseEvent.CLICK, gotoMainSite); this.mSignUp.mGuest.addEventListener(MouseEvent.CLICK, guestPlay); NUM_SKIN_COLORS = 10; NUM_BODY_COLORS = 49; NUM_HAIR_COLORS = 8; switch (mClub){ case FIGHTCLUB: mXML = <avatar> <attributes>1</attributes> <attributes>1</attributes> <attributes>1</attributes> <attributes>1</attributes> <attributes>1</attributes> <attributes>2</attributes> <attributes>2</attributes> <attributes>2</attributes> <archetype value="0"/> <gender value="0"/> <Hair color="0">7</Hair> <FacialHair>-1</FacialHair> <Hat color="6">-1</Hat> <Glasses>-1</Glasses> <aHeadDecal>-1</aHeadDecal> <HatDecal>-1</HatDecal> <Torso color="7">6</Torso> <Pants color="10">11</Pants> <Decal color="0">-1</Decal> <Back>-1</Back> <Belt>-1</Belt> <Neck>-1</Neck> <Jacket color="10">-1</Jacket> <Feet color="31">4</Feet> <Skin color="2"/> </avatar> ; break; case LOVELOUNGE: mXML = <avatar> <attributes>1</attributes> <attributes>1</attributes> <attributes>1</attributes> <attributes>1</attributes> <attributes>1</attributes> <attributes>2</attributes> <attributes>2</attributes> <attributes>2</attributes> <archetype value="0"/> <gender value="0"/> <Hair color="0">19</Hair> <FacialHair>-1</FacialHair> <Hat color="6">-1</Hat> <Glasses>-1</Glasses> <aHeadDecal>-1</aHeadDecal> <HatDecal>-1</HatDecal> <Torso color="7">25</Torso> <Pants color="10">11</Pants> <Decal color="0">-1</Decal> <Back>-1</Back> <Belt>-1</Belt> <Neck>-1</Neck> <Jacket color="10">-1</Jacket> <Feet color="31">4</Feet> <Skin color="2"/> </avatar> ; break; case MINIGAMES: rnum = int((Math.random() * 2)); switch (rnum){ case 0: mXML = <avatar> <attributes>0</attributes> <attributes>0</attributes> <attributes>1</attributes> <attributes>2</attributes> <attributes>2</attributes> <attributes>2</attributes> <attributes>2</attributes> <attributes>2</attributes> <archetype value="21"/> <gender value="0"/> <Hair color="2">45</Hair> <FacialHair>-1</FacialHair> <Hat color="6">-1</Hat> <Glasses>4</Glasses> <aHeadDecal>-1</aHeadDecal> <HatDecal>-1</HatDecal> <Torso color="10">33</Torso> <Pants color="34">11</Pants> <Decal color="0">-1</Decal> <Back>-1</Back> <Belt>-1</Belt> <Neck>-1</Neck> <Jacket color="0">-1</Jacket> <Feet color="32">4</Feet> <Skin color="2"/> </avatar> ; break; case 1: mXML = <avatar> <attributes>1</attributes> <attributes>2</attributes> <attributes>2</attributes> <attributes>0</attributes> <attributes>1</attributes> <attributes>2</attributes> <attributes>2</attributes> <attributes>2</attributes> <archetype value="17"/> <gender value="0"/> <Hair color="1">35</Hair> <FacialHair>-1</FacialHair> <Hat color="30">28</Hat> <Glasses>-1</Glasses> <aHeadDecal>-1</aHeadDecal> <HatDecal>-1</HatDecal> <Torso color="30">75</Torso> <Pants color="30">4</Pants> <Decal color="0">-1</Decal> <Back>-1</Back> <Belt>-1</Belt> <Neck>-1</Neck> <Jacket color="0">-1</Jacket> <Feet color="48">4</Feet> <Skin color="2"/> </avatar> ; break; default: break; }; break; case POKER: mXML = <avatar> <attributes>1</attributes> <attributes>1</attributes> <attributes>1</attributes> <attributes>1</attributes> <attributes>1</attributes> <attributes>2</attributes> <attributes>2</attributes> <attributes>2</attributes> <archetype value="0"/> <gender value="0"/> <Hair color="0">7</Hair> <FacialHair>-1</FacialHair> <Hat color="6">-1</Hat> <Glasses>-1</Glasses> <aHeadDecal>-1</aHeadDecal> <HatDecal>-1</HatDecal> <Torso color="7">6</Torso> <Pants color="10">11</Pants> <Decal color="0">-1</Decal> <Back>-1</Back> <Belt>-1</Belt> <Neck>-1</Neck> <Jacket color="10">-1</Jacket> <Feet color="31">4</Feet> <Skin color="2"/> </avatar> ; break; default: break; }; if (mDirectToSignup){ this.mNavBar.visible = false; this.gotoAndStop("signup"); }; } public function hideUserIncentives(_arg1:MouseEvent):void{ mOverlayUserIncentives.visible = false; if (((((((mClubObject.contains(mClubObject.mPopup_Inform)) && ((mClubObject.mPopup_Inform.currentFrame == 4)))) && ((mClubObject.mPopup_Inform.mHeader.currentFrame == 13)))) && (mClubObject.mPopup_Inform.mBtnEgoCity.visible))){ mClubObject.removeChild(mClubObject.mPopup_Inform); }; } function frame25(){ stop(); } function frame26(){ PORTAL = "newgrounds"; mClubSignUp.visible = false; mClubSignUp.addEventListener(MouseEvent.CLICK, backToSignUp); if (mClub == POKER){ mBtnPokerTokens.visible = false; mBtnPokerTokens.addEventListener(MouseEvent.CLICK, displayUserIncentives); mBtnPokerBuyMembership.visible = false; mBtnPokerBuyMembership.addEventListener(MouseEvent.CLICK, displayUserIncentives); mBtnPokerLockedMerits.visible = false; mBtnPokerLockedMerits.addEventListener(MouseEvent.CLICK, displayUserIncentives); mOverlayUserIncentives.visible = false; mOverlayUserIncentives.mBtnEgoCity.addEventListener(MouseEvent.CLICK, gotoMainSite); }; SIGNUP_BUTTON_X_EFC = 760; SIGNUP_BUTTON_Y_EFC = 625; SIGNUP_BUTTON_X_ELL = 760; SIGNUP_BUTTON_Y_ELL = 625; SIGNUP_BUTTON_X_EMG = 520; SIGNUP_BUTTON_Y_EMG = 480; SIGNUP_BUTTON_X_EPK = 520; SIGNUP_BUTTON_Y_EPK = 480; if (MINISKU){ SIGNUP_BUTTON_X_ELL = 725; SIGNUP_BUTTON_Y_ELL = 605; SIGNUP_BUTTON_X_EMG = 480; SIGNUP_BUTTON_Y_EMG = 460; SIGNUP_BUTTON_X_EPK = 480; SIGNUP_BUTTON_Y_EPK = 460; }; SIGNUP_BUTTON_X_OFFSET = 0; SIGNUP_BUTTON_Y_OFFSET = 0; SCROLLBAR_SIZE = 15; switch (mClub){ case FIGHTCLUB: app_path = "http://www.ego-city.com/FightClub/FightClub.swf"; ver_path = ""; SIGNUP_BUTTON_X_OFFSET = SIGNUP_BUTTON_X_EFC; SIGNUP_BUTTON_Y_OFFSET = SIGNUP_BUTTON_Y_EFC; SKU_WIDTH = 1064; SKU_VIEW_WIDTH = 800; SKU_HEIGHT = 804; SKU_VIEW_HEIGHT = 700; break; case LOVELOUNGE: app_path = "http://www.ego-city.com/LoveLounge/LoveLounge.swf"; ver_path = ""; SIGNUP_BUTTON_X_OFFSET = SIGNUP_BUTTON_X_ELL; SIGNUP_BUTTON_Y_OFFSET = SIGNUP_BUTTON_Y_ELL; SKU_WIDTH = 1064; SKU_VIEW_WIDTH = 800; SKU_HEIGHT = 804; SKU_VIEW_HEIGHT = 700; break; case MINIGAMES: app_path = "http://www.ego-city.com/MiniGames/MiniGames.swf"; ver_path = ""; SIGNUP_BUTTON_X_OFFSET = SIGNUP_BUTTON_X_EMG; SIGNUP_BUTTON_Y_OFFSET = SIGNUP_BUTTON_Y_EMG; SKU_WIDTH = 600; SKU_VIEW_WIDTH = 600; SKU_HEIGHT = 600; SKU_VIEW_HEIGHT = 600; break; case POKER: app_path = "http://www2.ego-city.com/flashes/EgoPoker.swf"; ver_path = "http://www.ego-city.com/EgoPoker/version_epk.txt"; SIGNUP_BUTTON_X_OFFSET = SIGNUP_BUTTON_X_EPK; SIGNUP_BUTTON_Y_OFFSET = SIGNUP_BUTTON_Y_EPK; SKU_WIDTH = 600; SKU_VIEW_WIDTH = 600; SKU_HEIGHT = 600; SKU_VIEW_HEIGHT = 600; break; }; if (MINISKU){ trace("This is being treated as a MiniSKU"); SKU_VIEW_WIDTH = 600; SKU_VIEW_HEIGHT = 600; } else { trace("This is not being treated as a MiniSKU"); }; START_XPOS = (((SKU_WIDTH - SKU_VIEW_WIDTH) >> 1) + 15); START_YPOS = 0; mVersionString = ""; getVersion(); } function frame35(){ stop(); } public function onKeyUpEvent(_arg1:KeyboardEvent){ if ((((_arg1.keyCode == 10)) || ((_arg1.keyCode == 13)))){ verifyLogin(); }; } public function gotoPrivacy(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://www.ego-city.com/privacy.php"); navigateToURL(_local2, "_blank"); } public function getVersion():void{ if (ver_path != ""){ mVersionLoader = null; mVersionLoader = new URLLoader(new URLRequest(ver_path)); mVersionLoader.addEventListener(Event.COMPLETE, onCompleteGetVersion, false, 0, true); mVersionLoader.addEventListener(IOErrorEvent.IO_ERROR, onVersionLoadError); } else { onCompleteGetVersion(null); }; } public function clickPlay(_arg1:MouseEvent):void{ CreateSessionForNewUser(); } public function clickSignUp(_arg1:MouseEvent):void{ var _local2:Boolean; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; this.signupLayout.UserInfo.mErrorUsername.visible = false; this.signupLayout.UserInfo.mErrorEmail1.visible = false; this.signupLayout.UserInfo.mErrorEmail2.visible = false; this.signupLayout.UserInfo.mErrorPassword1.visible = false; this.signupLayout.UserInfo.mErrorPassword2.visible = false; this.signupLayout.UserInfo.mErrorCaptcha.visible = false; this.signupLayout.UserInfo.mErrorTerms.visible = false; this.signupLayout.UserInfo.mErrorMsg.visible = false; this.signupLayout.UserInfo.mErrorBirthdate.visible = false; _local2 = true; if (this.signupLayout.UserInfo.mSecurity.text != mCaptcha){ updateStep(mStep, mStepPart); if (this.signupLayout.UserInfo.mErrorMsg.visible == false){ this.signupLayout.UserInfo.mErrorMsg.text = "Error: Incorrect verification text"; }; this.signupLayout.UserInfo.mErrorMsg.visible = true; this.signupLayout.UserInfo.mErrorCaptcha.visible = true; this.signupLayout.UserInfo.mSecurity.text = ""; _local2 = false; }; if (this.signupLayout.UserInfo.mUsername.text == ""){ if (this.signupLayout.UserInfo.mErrorMsg.visible == false){ this.signupLayout.UserInfo.mErrorMsg.text = "Error: Please enter a username"; }; this.signupLayout.UserInfo.mErrorMsg.visible = true; this.signupLayout.UserInfo.mErrorUsername.visible = true; _local2 = false; }; if ((((this.signupLayout.UserInfo.mUsername.text.length < 3)) || ((this.signupLayout.UserInfo.mUsername.text.length > 12)))){ if (this.signupLayout.UserInfo.mErrorMsg.visible == false){ this.signupLayout.UserInfo.mErrorMsg.text = "Error: Username must be between 3-12 characters"; }; this.signupLayout.UserInfo.mErrorMsg.visible = true; this.signupLayout.UserInfo.mErrorUsername.visible = true; _local2 = false; }; this.signupLayout.UserInfo.mUsername.text = this.signupLayout.UserInfo.mUsername.text.toUpperCase(); _local3 = 0; while (_local3 < this.signupLayout.UserInfo.mUsername.text.length) { _local7 = this.signupLayout.UserInfo.mUsername.text.charCodeAt(_local3); if (!(((((_local7 > 47)) && ((_local7 < 58)))) || ((((_local7 > 64)) && ((_local7 < 91)))))){ if (this.signupLayout.UserInfo.mErrorMsg.visible == false){ this.signupLayout.UserInfo.mErrorMsg.text = "Error: Username must contain only letters and numbers"; }; this.signupLayout.UserInfo.mErrorMsg.visible = true; this.signupLayout.UserInfo.mErrorUsername.visible = true; _local2 = false; break; }; _local3++; }; if (this.signupLayout.UserInfo.mEmailAddress.text == ""){ if (this.signupLayout.UserInfo.mErrorMsg.visible == false){ this.signupLayout.UserInfo.mErrorMsg.text = "Error: Please enter your email address"; }; this.signupLayout.UserInfo.mErrorMsg.visible = true; this.signupLayout.UserInfo.mErrorEmail1.visible = true; _local2 = false; }; if (this.signupLayout.UserInfo.mPassword.text == ""){ if (this.signupLayout.UserInfo.mErrorMsg.visible == false){ this.signupLayout.UserInfo.mErrorMsg.text = "Error: Please enter a password"; }; this.signupLayout.UserInfo.mErrorMsg.visible = true; this.signupLayout.UserInfo.mErrorPassword1.visible = true; _local2 = false; }; if ((((this.signupLayout.UserInfo.mPassword.text.length < 3)) || ((this.signupLayout.UserInfo.mPassword.text.length > 12)))){ if (this.signupLayout.UserInfo.mErrorMsg.visible == false){ this.signupLayout.UserInfo.mErrorMsg.text = "Error: Password must be between 3-12 characters"; }; this.signupLayout.UserInfo.mErrorMsg.visible = true; this.signupLayout.UserInfo.mErrorPassword1.visible = true; _local2 = false; }; if (this.signupLayout.UserInfo.mEmailAddress.text != this.signupLayout.UserInfo.mConfirmEmailAddress.text){ if (this.signupLayout.UserInfo.mErrorMsg.visible == false){ this.signupLayout.UserInfo.mErrorMsg.text = "Error: Email addresses do not match"; }; this.signupLayout.UserInfo.mErrorMsg.visible = true; this.signupLayout.UserInfo.mErrorEmail2.visible = true; _local2 = false; }; if (this.signupLayout.UserInfo.mPassword.text != this.signupLayout.UserInfo.mConfirmPassword.text){ if (this.signupLayout.UserInfo.mErrorMsg.visible == false){ this.signupLayout.UserInfo.mErrorMsg.text = "Error: Passwords do not match"; }; this.signupLayout.UserInfo.mErrorMsg.visible = true; this.signupLayout.UserInfo.mErrorPassword2.visible = true; _local2 = false; }; _local4 = parseInt(this.signupLayout.UserInfo.mDay.selectedLabel); _local5 = (this.signupLayout.UserInfo.mMonth.selectedIndex + 1); _local6 = parseInt(this.signupLayout.UserInfo.mYear.selectedLabel); if (!birthdayIsValid(_local4, _local5, _local6)){ this.signupLayout.UserInfo.mErrorMsg.text = "Error: Please select a valid Date of Birth"; this.signupLayout.UserInfo.mErrorMsg.visible = true; this.signupLayout.UserInfo.mErrorBirthdate.visible = true; _local2 = false; }; if (this.signupLayout.UserInfo.mCheckBoxTermsOfUse.selected == false){ if (this.signupLayout.UserInfo.mErrorMsg.visible == false){ this.signupLayout.UserInfo.mErrorMsg.text = "Error: You must agree to the Terms"; }; this.signupLayout.UserInfo.mErrorMsg.visible = true; this.signupLayout.UserInfo.mErrorTerms.visible = true; _local2 = false; }; if (_local2 == true){ normarsignup(); }; } public function hideAll(){ this.signupLayout.mFPersonality.visible = false; this.signupLayout.mLayoutFHair.visible = false; this.signupLayout.mLayoutGender.visible = false; this.signupLayout.mLayoutHairColor.visible = false; this.signupLayout.mLayoutMHair.visible = false; this.signupLayout.mLayoutSkinColor.visible = false; this.signupLayout.mMPersonality.visible = false; this.signupLayout.UserInfo.visible = false; this.signupLayout.UserInfoMobile.visible = false; this.signupLayout.mPlayNow.visible = false; this.signupLayout.mRandomize.visible = false; this.signupLayout.mLeftArrow.visible = false; this.signupLayout.mRightArrow.visible = false; this.signupLayout.mLayoutDesignEgo.visible = false; this.signupLayout.UserInfo.mErrorUsername.visible = false; this.signupLayout.UserInfo.mErrorEmail1.visible = false; this.signupLayout.UserInfo.mErrorEmail2.visible = false; this.signupLayout.UserInfo.mErrorPassword1.visible = false; this.signupLayout.UserInfo.mErrorPassword2.visible = false; this.signupLayout.UserInfo.mErrorCaptcha.visible = false; this.signupLayout.UserInfo.mErrorTerms.visible = false; this.signupLayout.UserInfo.mErrorMsg.visible = false; this.signupLayout.UserInfo.mErrorBirthdate.visible = false; this.signupLayout.UserInfoMobile.mErrorEmail1.visible = false; this.signupLayout.UserInfoMobile.mErrorEmail2.visible = false; this.signupLayout.UserInfoMobile.mErrorCaptcha.visible = false; this.signupLayout.UserInfoMobile.mErrorTerms.visible = false; this.signupLayout.UserInfoMobile.mErrorMsg.visible = false; this.signupLayout.UserInfoMobile.mErrorBirthdate.visible = false; } public function clickRandomize(_arg1:MouseEvent){ mSkin = (((Math.random() * 1000) % 10) + 1); mHair = (((Math.random() * 1000) % 5) + 1); mHairColor = (((Math.random() * 1000) % 8) + 1); mPersonality = (((Math.random() * 1000) % 12) + 1); updateEgo(); } public function setScrollBars(){ if ((((mClub == MINIGAMES)) || ((mClub == POKER)))){ mHScrollBar.visible = false; mVScrollBar.visible = false; return; }; mHScrollBar.maxScrollPosition = ((SKU_WIDTH - SKU_VIEW_WIDTH) + SCROLLBAR_SIZE); mVScrollBar.maxScrollPosition = ((SKU_HEIGHT - SKU_VIEW_HEIGHT) + SCROLLBAR_SIZE); mHScrollBar.addEventListener(ScrollEvent.SCROLL, onHorizontalScroll, false, 0, true); mVScrollBar.addEventListener(ScrollEvent.SCROLL, onVerticalScroll, false, 0, true); mHScrollBar.pageSize = mHScrollBar.maxScrollPosition; mVScrollBar.pageSize = mVScrollBar.maxScrollPosition; mHScrollBar.validateNow(); mVScrollBar.validateNow(); mHScrollBar.scrollPosition = START_XPOS; mVScrollBar.scrollPosition = START_YPOS; } public function guestPlay(_arg1:Event){ PlayAsGuest(); } public function clickPersonalityRebel(_arg1:MouseEvent):void{ mPersonality = 10; updateEgo(); } public function clickPersonalityJock(_arg1:MouseEvent):void{ mPersonality = 7; updateEgo(); } public function gotoPunch(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://www.punch-entertainment.com/"); navigateToURL(_local2, "_blank"); } public function backToSignUp(_arg1:Event){ var event = _arg1; this.removeEventListener(Event.ENTER_FRAME, onClubTick); mClubSignUp.visible = false; if (mClub == POKER){ mOverlayUserIncentives.visible = false; mOverlayUserIncentives.mBtnClose.removeEventListener(MouseEvent.CLICK, hideUserIncentives); mOverlayUserIncentives.mBtnCancel.removeEventListener(MouseEvent.CLICK, hideUserIncentives); mOverlayUserIncentives.mBtnOk.removeEventListener(MouseEvent.CLICK, backToSignUp); mBtnPokerTokens.visible = false; mBtnPokerBuyMembership.visible = false; mBtnPokerLockedMerits.visible = false; }; if (MINISKU){ navigateToURL(new URLRequest("http://www.ego-city.com/flashlanding/signup"), "_blank"); } else { mDirectToSignup = true; }; if (mClubObject != null){ if (mClub == POKER){ try { mClubObject.mSoundManager.setActive(false); if (mClubObject.mGameScreen != null){ mClubObject.mGameScreen.doLeaveGame(); }; } catch(e:Error) { }; } else { mClubObject.leaveRoom(); mClubObject.turnOffMusic(); mClubObject.mServer.disconnect(); }; mClubObject = null; }; while (numChildren > 0) { removeChildAt(0); }; gotoAndPlay(1); } public function clickPersonalityBully(_arg1:MouseEvent):void{ mPersonality = 3; updateEgo(); } public function clickSignUpMobile(_arg1:MouseEvent):void{ var _local2:Boolean; var _local3:int; var _local4:int; var _local5:int; this.signupLayout.UserInfoMobile.mErrorEmail1.visible = false; this.signupLayout.UserInfoMobile.mErrorEmail2.visible = false; this.signupLayout.UserInfoMobile.mErrorCaptcha.visible = false; this.signupLayout.UserInfoMobile.mErrorTerms.visible = false; this.signupLayout.UserInfoMobile.mErrorMsg.visible = false; this.signupLayout.UserInfoMobile.mErrorBirthdate.visible = false; _local2 = true; if (this.signupLayout.UserInfoMobile.mSecurity.text != mCaptcha){ updateStep(mStep, mStepPart); if (this.signupLayout.UserInfoMobile.mErrorMsg.visible == false){ this.signupLayout.UserInfoMobile.mErrorMsg.text = "Error: Incorrect verification text"; }; this.signupLayout.UserInfoMobile.mErrorMsg.visible = true; this.signupLayout.UserInfoMobile.mErrorCaptcha.visible = true; this.signupLayout.UserInfoMobile.mSecurity.text = ""; _local2 = false; }; if (this.signupLayout.UserInfoMobile.mEmailAddress.text == ""){ if (this.signupLayout.UserInfoMobile.mErrorMsg.visible == false){ this.signupLayout.UserInfoMobile.mErrorMsg.text = "Error: Please enter your email address"; }; this.signupLayout.UserInfoMobile.mErrorMsg.visible = true; this.signupLayout.UserInfoMobile.mErrorEmail1.visible = true; _local2 = false; }; if (this.signupLayout.UserInfoMobile.mEmailAddress.text != this.signupLayout.UserInfoMobile.mConfirmEmailAddress.text){ if (this.signupLayout.UserInfoMobile.mErrorMsg.visible == false){ this.signupLayout.UserInfoMobile.mErrorMsg.text = "Error: Email addresses do not match"; }; this.signupLayout.UserInfoMobile.mErrorMsg.visible = true; this.signupLayout.UserInfoMobile.mErrorEmail2.visible = true; _local2 = false; }; if (this.signupLayout.UserInfoMobile.mCheckBoxTermsOfUse.selected == false){ if (this.signupLayout.UserInfoMobile.mErrorMsg.visible == false){ this.signupLayout.UserInfoMobile.mErrorMsg.text = "Error: You must agree to the Terms"; }; this.signupLayout.UserInfoMobile.mErrorMsg.visible = true; this.signupLayout.UserInfoMobile.mErrorTerms.visible = true; _local2 = false; }; _local3 = parseInt(this.signupLayout.UserInfoMobile.mDay.selectedLabel); _local4 = (this.signupLayout.UserInfoMobile.mMonth.selectedIndex + 1); _local5 = parseInt(this.signupLayout.UserInfoMobile.mYear.selectedLabel); if (!birthdayIsValid(_local3, _local4, _local5)){ this.signupLayout.UserInfoMobile.mErrorMsg.text = "Error: Please select a valid Date of Birth"; this.signupLayout.UserInfoMobile.mErrorMsg.visible = true; this.signupLayout.UserInfoMobile.mErrorBirthdate.visible = true; _local2 = false; }; if (_local2 == true){ mobilesignup(); }; } public function onVerticalScroll(_arg1:ScrollEvent){ if ((((mClub == MINIGAMES)) || ((mClub == POKER)))){ return; }; mClubObject.y = (0 - mVScrollBar.scrollPosition); mClubSignUp.y = (mClubObject.y + SIGNUP_BUTTON_Y_OFFSET); mClubObject.setOffsets(-(mClubObject.x), -(mClubObject.y)); } public function clickSkin1(_arg1:MouseEvent){ mSkin = 1; updateEgo(); } public function clickSkin2(_arg1:MouseEvent){ mSkin = 2; updateEgo(); } public function clickSkin3(_arg1:MouseEvent){ mSkin = 3; updateEgo(); } public function clickSkin4(_arg1:MouseEvent){ mSkin = 4; updateEgo(); } public function clickSkin6(_arg1:MouseEvent){ mSkin = 6; updateEgo(); } public function clickSkin8(_arg1:MouseEvent){ mSkin = 8; updateEgo(); } public function clickSkin9(_arg1:MouseEvent){ mSkin = 9; updateEgo(); } public function clickSkin5(_arg1:MouseEvent){ mSkin = 5; updateEgo(); } public function clickSkin7(_arg1:MouseEvent){ mSkin = 7; updateEgo(); } public function gotoMail(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("mailto:support@ego-city.com"); navigateToURL(_local2, "_blank"); } public function clickPersonalityFlirt(_arg1:MouseEvent):void{ mPersonality = 5; updateEgo(); } public function clickPersonalityActor(_arg1:MouseEvent):void{ mPersonality = 1; updateEgo(); } public function PL_LOADING(_arg1:ProgressEvent):void{ var _local2:Number; _local2 = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100); this.mLoader.gotoAndStop(Math.round((_local2 / 2))); this.mLoader.mPercent.text = ("" + int(_local2)); trace(int(_local2)); } public function clickPersonalitySkater(_arg1:MouseEvent):void{ mPersonality = 11; updateEgo(); } public function gotoTerms(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://www.ego-city.com/termofuse.php"); navigateToURL(_local2, "_blank"); } public function CreateSessionForNewUser():void{ var _local1:URLLoader; var _local2:URLVariables; var _local3:URLRequest; _local1 = new URLLoader(); _local1.addEventListener(Event.COMPLETE, LoginNewUser); _local2 = new URLVariables(); _local2.username = this.signupLayout.UserInfo.mUsername.text; _local2.password = this.signupLayout.UserInfo.mPassword.text; _local3 = new URLRequest((mLiveSite + LOGIN_URL)); _local3.data = _local2; _local3.method = URLRequestMethod.POST; _local1.load(_local3); } public function LoginNewUser(_arg1:Event):void{ mUsername = this.signupLayout.UserInfo.mUsername.text; mUsername.toUpperCase(); this.gotoAndStop("club"); } public function HidePrivacyText(_arg1:MouseEvent):void{ this.signupLayout.UserInfo.mPrivacyOver.visible = false; this.signupLayout.UserInfo.mPrivacyOver.gotoAndStop(0); } public function createdAccount(_arg1:int, _arg2:String):void{ var _local3:MovieClip; var _local4:URLLoader; if (mMobileUser == true){ _local3 = this.signupLayout.UserInfoMobile; } else { _local3 = this.signupLayout.UserInfo; }; if (_arg1 == 0){ updateStep((mStep + 1), mStepPart); this.signupLayout.m3.enabled = false; this.signupLayout.m1.visible = false; this.signupLayout.m2.visible = false; } else { if (_arg1 == 1){ _local3.mErrorMsg.text = "Error: Please choose another username"; _local3.mErrorMsg.visible = true; _local3.mErrorUsername.visible = true; } else { if (_arg1 == 2){ _local3.mErrorMsg.text = "Error: Username must contain no vulgar words"; _local3.mErrorMsg.visible = true; _local3.mErrorUsername.visible = true; } else { if (_arg1 == 3){ _local3.mErrorMsg.text = "Error: Password must contain only letters and numbers"; _local3.mErrorMsg.visible = true; _local3.mErrorPassword1.visible = true; } else { if (_arg1 == 4){ if ((((_arg2 == null)) || ((_arg2.length == 0)))){ _local3.mErrorMsg.text = "Error: This is not a valid email address"; } else { _local3.mErrorMsg.text = ("Error: " + _arg2); }; _local3.mErrorMsg.visible = true; _local3.mErrorEmail1.visible = true; } else { if (_arg1 == 5){ _local3.mErrorMsg.text = "Error: This email has already been used"; _local3.mErrorMsg.visible = true; _local3.mErrorEmail1.visible = true; } else { if (_arg1 == 6){ mMobileUser = true; mUsername = this.signupLayout.UserInfo.mUsername.text; mPassword = this.signupLayout.UserInfo.mPassword.text; this.signupLayout.UserInfoMobile.mName.text = mUsername; this.signupLayout.UserInfoMobile.mEmailAddress.text = this.signupLayout.UserInfo.mEmailAddress.text; this.signupLayout.UserInfoMobile.mConfirmEmailAddress.text = this.signupLayout.UserInfo.mConfirmEmailAddress.text; this.signupLayout.UserInfoMobile.mMonth.selectedIndex = this.signupLayout.UserInfo.mMonth.selectedIndex; this.signupLayout.UserInfoMobile.mDay.selectedIndex = this.signupLayout.UserInfo.mDay.selectedIndex; this.signupLayout.UserInfoMobile.mYear.selectedIndex = this.signupLayout.UserInfo.mYear.selectedIndex; this.signupLayout.UserInfoMobile.mCheckBoxEmailAlerts.selected = this.signupLayout.UserInfo.mCheckBoxEmailAlerts.selected; updateStep(2, 1); _local4 = null; _local4 = new URLLoader(new URLRequest((ARCH_URL + mUsername))); _local4.addEventListener(Event.COMPLETE, onCompleteMainEgo); this.signupLayout.m1.visible = false; this.signupLayout.m2.visible = false; this.signupLayout.m3.visible = false; } else { if (_arg1 == 7){ _local3.mErrorMsg.text = "Error: IP was blocked"; _local3.mErrorMsg.visible = true; } else { if (_arg1 == 8){ _local3.mErrorMsg.text = "Error: You must be 13 to access this site"; _local3.mErrorMsg.visible = true; } else { _local3.mErrorMsg.text = "Error: There was an unknown error with your data"; _local3.mErrorMsg.visible = true; }; }; }; }; }; }; }; }; }; } public function clickStep2(_arg1:MouseEvent):void{ updateStep(2, mStepPart); } public function clickStep3(_arg1:MouseEvent):void{ if (this.signupLayout.m3.enabled == true){ updateStep(3, mStepPart); }; } public function clickStep1(_arg1:MouseEvent):void{ updateStep(1, mStepPart); } public function clickPersonalityGoth(_arg1:MouseEvent):void{ mPersonality = 6; updateEgo(); } public function proceedToSignup(_arg1:MouseEvent):void{ mStateOverlay = false; mDirectToSignup = false; this.mCreationOverlay.visible = false; this.signupLayout.visible = true; this.addEventListener(Event.ENTER_FRAME, onTick); this.mSmoke.visible = true; this.mSmoke.gotoAndPlay(2); } public function clickHairStyle(_arg1:MouseEvent):void{ updateStep(1, 3); } public function clickPersonalityClown(_arg1:MouseEvent):void{ mPersonality = 4; updateEgo(); } public function onSignUpComplete(_arg1:Event){ var loader:URLLoader; var resultObject:Object; var event = _arg1; try { loader = URLLoader(event.target); resultObject = this.deserialize(loader.data); createdAccount(resultObject.errorCode, resultObject.errorMessage); } catch(error:Error) { trace(("error in onLoginComplete" + loader.data)); }; } public function clickGender(_arg1:MouseEvent):void{ updateStep(1, 1); } public function verifyLogin():void{ var _local1:URLLoader; var _local2:URLVariables; var _local3:URLRequest; trace("VERIFY"); _local1 = new URLLoader(); _local1.addEventListener(Event.COMPLETE, onLoginComplete); _local2 = new URLVariables(); _local2.username = this.mNavBar.mTextUsername.text; _local2.password = this.mNavBar.mTextPassword.text; _local3 = new URLRequest((mLiveSite + LOGIN_URL)); _local3.data = _local2; _local3.method = URLRequestMethod.POST; _local1.load(_local3); } public function onClubTick(_arg1:Event):void{ var _local2:Boolean; if (mClubObject != null){ if (mClub == POKER){ if (mClubObject.mUserName.indexOf("(G)") == 0){ _local2 = false; if (((((!((mClubObject.mGameScreen == null))) && (!((mClubObject.mGameScreen.mHelpScreen == null))))) && (mClubObject.mGameScreen.mHelpScreen.visible))){ _local2 = true; }; if (((!((mClubObject.mTableMamanger == null))) && ((mClubObject.mTableMamanger.getMainTable() > 0)))){ mClubSignUp.visible = true; if (((((((mClubObject.contains(mClubObject.mPopup_Inform)) && ((mClubObject.mPopup_Inform.currentFrame == 4)))) && ((mClubObject.mPopup_Inform.mHeader.currentFrame == 13)))) && (mClubObject.mPopup_Inform.mBtnEgoCity.visible))){ displayUserIncentives(null); mClubObject.removeChild(mClubObject.mPopup_Inform); }; if (!_local2){ mBtnPokerTokens.visible = true; mBtnPokerBuyMembership.visible = true; mBtnPokerLockedMerits.visible = true; } else { mBtnPokerTokens.visible = false; mBtnPokerBuyMembership.visible = false; mBtnPokerLockedMerits.visible = false; }; } else { mClubSignUp.visible = false; mBtnPokerTokens.visible = false; mBtnPokerBuyMembership.visible = false; mBtnPokerLockedMerits.visible = false; }; }; } else { if (mClub == MINIGAMES){ if (mClubObject.IsRoomSelected()){ mClubSignUp.visible = true; } else { mClubSignUp.visible = false; }; }; }; } else { trace("Error accessing mClubOject (null). Loader may have failed. Aborting ping operation."); this.removeEventListener(Event.ENTER_FRAME, onClubTick); }; } public function updateEgo(){ if (mEgo.mEgoLoadingParts){ if ((getTimer() - previousUpdate) < 3000){ return; }; }; previousUpdate = getTimer(); updateEGO(); } public function updateEGO(){ var _local1:int; mEgo.unloadEgo(); mEgo.mIsMale = mIsMale; mEgo.mFacialHairIndex = -1; mEgo.mHatIndex = -1; mEgo.mGlassesIndex = -1; mEgo.mHeadDecalIndex = -1; mEgo.mHatDecalIndex = -1; mEgo.mTorsoIndex = 6; mEgo.mPantsIndex = 12; mEgo.mTorsoDecalIndex = -1; mEgo.mBackIndex = -1; mEgo.mBeltIndex = -1; mEgo.mNeckIndex = -1; mEgo.mJacketIndex = -1; mEgo.mFeetIndex = -1; if (mPersonality == 0){ if (mIsMale == true){ mEgo.mTorsoIndex = 6; mEgo.mColors[Ego.COLORINDEX_TORSO].newColor = 10; mEgo.mPantsIndex = 12; mEgo.mColors[Ego.COLORINDEX_PANTS].newColor = 15; mEgo.mFeetIndex = 4; mEgo.mColors[Ego.COLORINDEX_FEET].newColor = 31; } else { mEgo.mTorsoIndex = 7; mEgo.mColors[Ego.COLORINDEX_TORSO].newColor = 10; mEgo.mPantsIndex = 11; mEgo.mColors[Ego.COLORINDEX_PANTS].newColor = 15; mEgo.mFeetIndex = 1; mEgo.mColors[Ego.COLORINDEX_FEET].newColor = 31; }; } else { if (mPersonality == 1){ mEgo.mArchetype = Ego.ARCHETYPE_ACTOR; mEgo.changeToArchetype(true); } else { if (mPersonality == 2){ mEgo.mArchetype = Ego.ARCHETYPE_ARTIST; mEgo.changeToArchetype(true); } else { if (mPersonality == 3){ mEgo.mArchetype = Ego.ARCHETYPE_BULLY; mEgo.changeToArchetype(true); } else { if (mPersonality == 4){ mEgo.mArchetype = Ego.ARCHETYPE_CLASS_CLOWN; mEgo.changeToArchetype(true); } else { if (mPersonality == 5){ mEgo.mArchetype = Ego.ARCHETYPE_FLIRT; mEgo.changeToArchetype(true); } else { if (mPersonality == 6){ mEgo.mArchetype = Ego.ARCHETYPE_GOTH; mEgo.changeToArchetype(true); } else { if (mPersonality == 7){ mEgo.mArchetype = Ego.ARCHETYPE_JOCK; mEgo.changeToArchetype(true); } else { if (mPersonality == 8){ mEgo.mArchetype = Ego.ARCHETYPE_NERD; mEgo.changeToArchetype(true); } else { if (mPersonality == 9){ mEgo.mArchetype = Ego.ARCHETYPE_PREPPY; mEgo.changeToArchetype(true); } else { if (mPersonality == 10){ mEgo.mArchetype = Ego.ARCHETYPE_REBEL; mEgo.changeToArchetype(true); } else { if (mPersonality == 11){ mEgo.mArchetype = Ego.ARCHETYPE_SKATER; mEgo.changeToArchetype(true); } else { if (mPersonality == 12){ mEgo.mArchetype = Ego.ARCHETYPE_SURFER; mEgo.changeToArchetype(true); }; }; }; }; }; }; }; }; }; }; }; }; }; mEgo.mColors[Ego.COLORINDEX_SKIN].curColor = -1; mEgo.mColors[Ego.COLORINDEX_SKIN].newColor = SKIN_MAP[mSkin]; mEgo.mColors[Ego.COLORINDEX_HAIR].newColor = (mHairColor - 1); if (mIsMale == true){ mEgo.mHairIndex = HAIR_MALE_MAP[mHair]; } else { mEgo.mHairIndex = HAIR_FEMALE_MAP[mHair]; }; _local1 = -2; if (mEgo.mHatIndex != -1){ _local1 = mEgo.getHatHair(mEgo.mHatIndex); }; if (_local1 != -2){ this.signupLayout.mLayoutMHair.mMHair1.enabled = false; this.signupLayout.mLayoutMHair.mMHair2.enabled = false; this.signupLayout.mLayoutMHair.mMHair3.enabled = false; this.signupLayout.mLayoutMHair.mMHair4.enabled = false; this.signupLayout.mLayoutMHair.mMHair5.enabled = false; this.signupLayout.mLayoutFHair.mFHair1.enabled = false; this.signupLayout.mLayoutFHair.mFHair2.enabled = false; this.signupLayout.mLayoutFHair.mFHair3.enabled = false; this.signupLayout.mLayoutFHair.mFHair4.enabled = false; this.signupLayout.mLayoutFHair.mFHair5.enabled = false; } else { this.signupLayout.mLayoutMHair.mMHair1.enabled = true; this.signupLayout.mLayoutMHair.mMHair2.enabled = true; this.signupLayout.mLayoutMHair.mMHair3.enabled = true; this.signupLayout.mLayoutMHair.mMHair4.enabled = true; this.signupLayout.mLayoutMHair.mMHair5.enabled = true; this.signupLayout.mLayoutFHair.mFHair1.enabled = true; this.signupLayout.mLayoutFHair.mFHair2.enabled = true; this.signupLayout.mLayoutFHair.mFHair3.enabled = true; this.signupLayout.mLayoutFHair.mFHair4.enabled = true; this.signupLayout.mLayoutFHair.mFHair5.enabled = true; }; mEgo.mEgoLoadStep = 0; mEgo.mEgoLoadingParts = true; mEgo.loadEgoParts(); mSmoke.gotoAndPlay(2); } public function clickPersonalitySurfer(_arg1:MouseEvent):void{ mPersonality = 12; updateEgo(); } public function clickPersonalityArtist(_arg1:MouseEvent):void{ mPersonality = 2; updateEgo(); } public function onVersionLoadError(_arg1:Event):void{ var _local2:Number; mVersionLoader.removeEventListener(Event.COMPLETE, onCompleteGetVersion); mVersionLoader.removeEventListener(IOErrorEvent.IO_ERROR, onVersionLoadError); _local2 = int((Math.random() * 100)); trace(("Error Loading Version File. Generate random version to refresh cache... " + _local2)); mVersionString = ("E.0." + String(_local2)); launchAppLoader(((app_path + "?version=") + mVersionString)); } public function PlayAsGuest():void{ var _local1:int; _local1 = int((Math.random() * 10000)); mUsername = ("(G)JOE_" + _local1); mXML = mXML; mXML.Skin.@color = int((Math.random() * NUM_SKIN_COLORS)); mXML.Hair.@color = int((Math.random() * NUM_HAIR_COLORS)); mXML.Torso.@color = int((Math.random() * NUM_BODY_COLORS)); mXML.Pants.@color = int((Math.random() * NUM_BODY_COLORS)); this.gotoAndStop("club"); } public function DisplayPrivacyText(_arg1:MouseEvent):void{ this.signupLayout.UserInfo.mPrivacyOver.visible = true; this.signupLayout.UserInfo.mPrivacyOver.gotoAndPlay(0); } public function clickRightArrow(_arg1:MouseEvent):void{ if (mStepPart == 5){ updateStep((mStep + 1), mStepPart); } else { updateStep(mStep, (mStepPart + 1)); }; } public function clickFemale(_arg1:MouseEvent){ if (mIsMale == true){ mIsMale = false; updateEgo(); }; } public function onCompleteGetVersion(_arg1:Event):void{ var _local2:String; var _local3:String; mVersionLoader.removeEventListener(Event.COMPLETE, onCompleteGetVersion); mVersionLoader.removeEventListener(IOErrorEvent.IO_ERROR, onVersionLoadError); _local2 = ""; if (ver_path != ""){ _local2 = "?version="; mVersionString = mVersionLoader.data; trace(("Current Version Loaded: v." + mVersionString)); }; _local3 = ((app_path + _local2) + mVersionString); launchAppLoader(_local3); } public function clickPersonalityNerd(_arg1:MouseEvent):void{ mPersonality = 8; updateEgo(); } public function launchAppLoader(_arg1:String):void{ var _local2:URLRequest; var _local3:LoaderContext; clubloader = new Loader(); _local2 = new URLRequest(_arg1); _local3 = new LoaderContext(false, ApplicationDomain.currentDomain); clubloader.load(_local2, _local3); clubloader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress, false, 0, true); clubloader.contentLoaderInfo.addEventListener(Event.COMPLETE, showLoadResult, false, 0, true); } public function gotoMainSite(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest(mLiveSite); navigateToURL(_local2, "_blank"); } public function updateStep(_arg1:int, _arg2:int){ var _local3:Array; var _local4:int; var _local5:int; var _local6:int; hideAll(); if (_arg1 != mStep){ if (mSavedStepButton != null){ mSavedStepButton.upState = mSavedStepButtonState; }; mSavedStepButton = null; if (_arg1 == 1){ mSavedStepButton = this.signupLayout.m1; mSavedStepButtonState = this.signupLayout.m1.upState; this.signupLayout.m1.upState = this.signupLayout.m1.overState; } else { if (_arg1 == 2){ mSavedStepButton = this.signupLayout.m2; mSavedStepButtonState = this.signupLayout.m2.upState; this.signupLayout.m2.upState = this.signupLayout.m2.overState; } else { if (_arg1 == 3){ mSavedStepButton = this.signupLayout.m3; mSavedStepButtonState = this.signupLayout.m3.upState; this.signupLayout.m3.upState = this.signupLayout.m3.overState; }; }; }; }; if (((!((_arg2 == mStepPart))) && (!((mSavedPartButton == null))))){ mSavedPartButton.upState = mSavedPartButtonState; mSavedPartButton = null; }; if (_arg1 == 1){ this.signupLayout.mRightArrow.visible = true; this.signupLayout.mLayoutDesignEgo.visible = true; this.signupLayout.mRandomize.visible = true; this.signupLayout.mLeftArrow.visible = true; if (_arg2 == 1){ this.signupLayout.mLayoutGender.visible = true; if (_arg2 != mStepPart){ mSavedPartButton = this.signupLayout.mLayoutDesignEgo.mGender; mSavedPartButtonState = this.signupLayout.mLayoutDesignEgo.mGender.upState; this.signupLayout.mLayoutDesignEgo.mGender.upState = this.signupLayout.mLayoutDesignEgo.mGender.overState; }; } else { if (_arg2 == 2){ this.signupLayout.mLayoutSkinColor.visible = true; if (_arg2 != mStepPart){ mSavedPartButton = this.signupLayout.mLayoutDesignEgo.mSkinColor; mSavedPartButtonState = this.signupLayout.mLayoutDesignEgo.mSkinColor.upState; this.signupLayout.mLayoutDesignEgo.mSkinColor.upState = this.signupLayout.mLayoutDesignEgo.mSkinColor.overState; }; } else { if (_arg2 == 3){ if (mIsMale == true){ this.signupLayout.mLayoutMHair.visible = true; } else { this.signupLayout.mLayoutFHair.visible = true; }; if (_arg2 != mStepPart){ mSavedPartButton = this.signupLayout.mLayoutDesignEgo.mHairStyle; mSavedPartButtonState = this.signupLayout.mLayoutDesignEgo.mHairStyle.upState; this.signupLayout.mLayoutDesignEgo.mHairStyle.upState = this.signupLayout.mLayoutDesignEgo.mHairStyle.overState; }; } else { if (_arg2 == 4){ this.signupLayout.mLayoutHairColor.visible = true; if (_arg2 != mStepPart){ mSavedPartButton = this.signupLayout.mLayoutDesignEgo.mHairColor; mSavedPartButtonState = this.signupLayout.mLayoutDesignEgo.mHairColor.upState; this.signupLayout.mLayoutDesignEgo.mHairColor.upState = this.signupLayout.mLayoutDesignEgo.mHairColor.overState; }; } else { if (_arg2 == 5){ if (mIsMale == true){ this.signupLayout.mMPersonality.visible = true; } else { this.signupLayout.mFPersonality.visible = true; }; if (_arg2 != mStepPart){ mSavedPartButton = this.signupLayout.mLayoutDesignEgo.mPersonality; mSavedPartButtonState = this.signupLayout.mLayoutDesignEgo.mPersonality.upState; this.signupLayout.mLayoutDesignEgo.mPersonality.upState = this.signupLayout.mLayoutDesignEgo.mPersonality.overState; }; }; }; }; }; }; } else { if (_arg1 == 2){ if (mMobileUser == true){ this.signupLayout.UserInfoMobile.visible = true; } else { this.signupLayout.mLeftArrow.visible = true; this.signupLayout.mRandomize.visible = true; this.signupLayout.UserInfo.visible = true; }; mCaptcha = ""; _local3 = ["a", "b", "c", "d", "e", "f", "g", "h", "j", "k", "p", "r", "x", "3", "4", "6", "7", "8", "9"]; _local4 = (5 + ((Math.random() * 1000) % 3)); _local5 = 0; while (_local5 < _local4) { _local6 = ((Math.random() * 1000) % 18); mCaptcha = mCaptcha.concat(_local3[_local6]); _local5++; }; this.signupLayout.UserInfo.mCaptcha.mText.text = mCaptcha; this.signupLayout.UserInfo.mSecurity.text = ""; this.signupLayout.UserInfoMobile.mCaptcha.mText.text = mCaptcha; this.signupLayout.UserInfoMobile.mSecurity.text = ""; if ((Math.random() * 1000) > 500){ this.signupLayout.UserInfo.mCaptcha.rotation = -(this.signupLayout.UserInfo.mCaptcha.rotation); this.signupLayout.UserInfoMobile.mCaptcha.rotation = -(this.signupLayout.UserInfoMobile.mCaptcha.rotation); }; } else { if (_arg1 == 3){ this.signupLayout.mPlayNow.visible = true; }; }; }; mStep = _arg1; mStepPart = _arg2; } public function gotoLanding(_arg1:MouseEvent):void{ this.gotoAndStop("landingPage"); } public function clickSkinColor(_arg1:MouseEvent):void{ updateStep(1, 2); } public function clickHairColor1(_arg1:MouseEvent):void{ mHairColor = 1; updateEgo(); } public function clickHairColor3(_arg1:MouseEvent):void{ mHairColor = 3; updateEgo(); } public function clickHairColor4(_arg1:MouseEvent):void{ mHairColor = 4; updateEgo(); } public function clickHairColor6(_arg1:MouseEvent):void{ mHairColor = 6; updateEgo(); } public function clickHairColor7(_arg1:MouseEvent):void{ mHairColor = 7; updateEgo(); } public function clickHairColor8(_arg1:MouseEvent):void{ mHairColor = 8; updateEgo(); } public function clickHairColor2(_arg1:MouseEvent):void{ mHairColor = 2; updateEgo(); } public function clickHairColor5(_arg1:MouseEvent):void{ mHairColor = 5; updateEgo(); } public function deserialize(_arg1:String){ var _local2:JSONDecoder; _local2 = new JSONDecoder(_arg1); return (_local2.getValue()); } public function showLoadResult(_arg1:Event){ var _local2:String; var _local3:URLLoader; Security.allowDomain("*"); mClubObject = _arg1.target.content; addChildAt(mClubObject, getChildIndex(mClubSignUp)); setScrollBars(); clubloader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, showProgress); clubloader.contentLoaderInfo.removeEventListener(Event.COMPLETE, showLoadResult); this.mLoader2.visible = false; this.mLogo2.stop(); this.mLogo2.visible = false; if (mClub != POKER){ mClubObject.startClub(mUsername.toUpperCase(), 1, mXML); } else { mClubObject.startClub("http://www.ego-city.com", "http://www2.ego-city.com/flashes", "http://www2.ego-city.com/fcgi/heads/", "74.54.86.228", 8443, "poker", mVersionString, 30000, 4, true); }; if (mUsername.indexOf("(G)") == 0){ mClubSignUp.x = (-(START_XPOS) + SIGNUP_BUTTON_X_OFFSET); mClubSignUp.y = (-(START_YPOS) + SIGNUP_BUTTON_Y_OFFSET); if (mClub == POKER){ _local2 = "http://www.ego-city.com/MiniGames/egoScript.php?task=logguest"; _local2 = (_local2 + ("&g=" + mUsername.toUpperCase())); _local2 = (_local2 + ("&c=" + "Poker")); _local2 = (_local2 + ("&p=" + PORTAL)); _local3 = new URLLoader(new URLRequest(_local2)); } else { mClubObject.logGuest(PORTAL); }; if ((((mClub == MINIGAMES)) || ((mClub == POKER)))){ this.addEventListener(Event.ENTER_FRAME, onClubTick); } else { mClubSignUp.visible = true; }; }; } public function clickLeftArrow(_arg1:MouseEvent):void{ if (mStepPart == 1){ revertToOverlay(); } else { if (mStep > 1){ updateStep((mStep - 1), 5); } else { updateStep(mStep, (mStepPart - 1)); }; }; } public function clickMale(_arg1:MouseEvent){ if (mIsMale == false){ mIsMale = true; updateEgo(); }; } public function birthdayIsValid(_arg1:int, _arg2:int, _arg3:int):Boolean{ var _local4:int; _local4 = 29; if (_arg2 == 2){ if (((((_arg3 % 4) == 0)) && (((!(((_arg3 % 100) == 0))) || (((_arg3 % 400) == 0)))))){ _local4 = 29; } else { _local4 = 28; }; } else { _local4 = 31; if ((((((((_arg2 == 4)) || ((_arg2 == 6)))) || ((_arg2 == 9)))) || ((_arg2 == 11)))){ _local4 = 30; }; }; if (_arg1 > _local4){ return (false); }; return (true); } public function gotoLogin(_arg1:MouseEvent):void{ var _local2:SharedObject; trace("GOTO LOGIN"); _local2 = SharedObject.getLocal("egoweb"); _local2.data.username = this.mNavBar.mTextUsername.text; _local2.data.password = this.mNavBar.mTextPassword.text; _local2.flush(); verifyLogin(); } public function clickPersonality(_arg1:MouseEvent):void{ updateStep(1, 5); } public function revertToOverlay():void{ mStateOverlay = true; mDirectToSignup = false; this.removeEventListener(Event.ENTER_FRAME, onTick); mEgo.visible = false; mSmoke.visible = false; this.mCreationOverlay.visible = true; this.signupLayout.visible = false; } public function clickHair1(_arg1:MouseEvent):void{ if (((!(signupLayout.mLayoutMHair.mMHair1.enabled)) && (!(this.signupLayout.mLayoutFHair.mFHair1.enabled)))){ return; }; mHair = 1; updateEgo(); } public function clickHair2(_arg1:MouseEvent):void{ if (((!(signupLayout.mLayoutMHair.mMHair2.enabled)) && (!(this.signupLayout.mLayoutFHair.mFHair2.enabled)))){ return; }; mHair = 2; updateEgo(); } public function clickHair3(_arg1:MouseEvent):void{ if (((!(signupLayout.mLayoutMHair.mMHair3.enabled)) && (!(this.signupLayout.mLayoutFHair.mFHair3.enabled)))){ return; }; mHair = 3; updateEgo(); } public function clickHair5(_arg1:MouseEvent):void{ if (((!(signupLayout.mLayoutMHair.mMHair5.enabled)) && (!(this.signupLayout.mLayoutFHair.mFHair5.enabled)))){ return; }; mHair = 5; updateEgo(); } public function clickHair4(_arg1:MouseEvent):void{ if (((!(signupLayout.mLayoutMHair.mMHair4.enabled)) && (!(this.signupLayout.mLayoutFHair.mFHair4.enabled)))){ return; }; mHair = 4; updateEgo(); } public function displayUserIncentives(_arg1:MouseEvent):void{ mOverlayUserIncentives.visible = true; mOverlayUserIncentives.mBtnClose.addEventListener(MouseEvent.CLICK, hideUserIncentives); mOverlayUserIncentives.mBtnCancel.addEventListener(MouseEvent.CLICK, hideUserIncentives); mOverlayUserIncentives.mBtnOk.addEventListener(MouseEvent.CLICK, backToSignUp); } public function clickHairColor(_arg1:MouseEvent):void{ updateStep(1, 4); } } }//package SKU_PK_fla
Section 72
//MalePersonality_102 (SKU_PK_fla.MalePersonality_102) package SKU_PK_fla { import flash.display.*; public dynamic class MalePersonality_102 extends MovieClip { public var mMSurfer:SimpleButton; public var mMGoth:SimpleButton; public var mMJock:SimpleButton; public var mMBully:SimpleButton; public var mMSkater:SimpleButton; public var mMFlirt:SimpleButton; public var mMActor:SimpleButton; public var mMPreppy:SimpleButton; public var mMNerd:SimpleButton; public var mMRebel:SimpleButton; public var mMClown:SimpleButton; public var mMArtist:SimpleButton; } }//package SKU_PK_fla
Section 73
//MC_4 (SKU_PK_fla.MC_4) package SKU_PK_fla { import flash.display.*; import flash.text.*; public dynamic class MC_4 extends MovieClip { public var mPercent:TextField; public function MC_4(){ addFrameScript(49, frame50); } function frame50(){ stop(); } } }//package SKU_PK_fla
Section 74
//NavBar_Top_1 (SKU_PK_fla.NavBar_Top_1) package SKU_PK_fla { import flash.display.*; import flash.text.*; public dynamic class NavBar_Top_1 extends MovieClip { public var mTextPassword:TextField; public var mLogIn:SimpleButton; public var mTextUsername:TextField; public var mInvalidPassword:TextField; public var mInvalidUsername:TextField; } }//package SKU_PK_fla
Section 75
//PersonalityOver_33 (SKU_PK_fla.PersonalityOver_33) package SKU_PK_fla { import flash.display.*; public dynamic class PersonalityOver_33 extends MovieClip { public function PersonalityOver_33(){ addFrameScript(4, frame5); } function frame5(){ stop(); } } }//package SKU_PK_fla
Section 76
//PlayNow_209 (SKU_PK_fla.PlayNow_209) package SKU_PK_fla { import flash.display.*; public dynamic class PlayNow_209 extends MovieClip { public var mPlay:SimpleButton; public var mPlayNow_EGOCityLink:SimpleButton; } }//package SKU_PK_fla
Section 77
//PlayOver_211 (SKU_PK_fla.PlayOver_211) package SKU_PK_fla { import flash.display.*; public dynamic class PlayOver_211 extends MovieClip { public function PlayOver_211(){ addFrameScript(2, frame3); } function frame3(){ stop(); } } }//package SKU_PK_fla
Section 78
//RandomizeOver_36 (SKU_PK_fla.RandomizeOver_36) package SKU_PK_fla { import flash.display.*; public dynamic class RandomizeOver_36 extends MovieClip { public function RandomizeOver_36(){ addFrameScript(2, frame3); } function frame3(){ stop(); } } }//package SKU_PK_fla
Section 79
//SignUpLayout_11 (SKU_PK_fla.SignUpLayout_11) package SKU_PK_fla { import flash.display.*; public dynamic class SignUpLayout_11 extends MovieClip { public var mFPersonality:MovieClip; public var mLayoutMHair:MovieClip; public var mLayoutDesignEgo:MovieClip; public var UserInfo:MovieClip; public var UserInfoMobile:MovieClip; public var m3:SimpleButton; public var m1:SimpleButton; public var mLeftArrow:SimpleButton; public var mLayoutHairColor:MovieClip; public var m2:SimpleButton; public var mLayoutGender:MovieClip; public var mRightArrow:SimpleButton; public var mLayoutSkinColor:MovieClip; public var mLayoutFHair:MovieClip; public var mMPersonality:MovieClip; public var mRandomize:SimpleButton; public var mPlayNow:MovieClip; } }//package SKU_PK_fla
Section 80
//SignUpSmallOver_203 (SKU_PK_fla.SignUpSmallOver_203) package SKU_PK_fla { import flash.display.*; public dynamic class SignUpSmallOver_203 extends MovieClip { public function SignUpSmallOver_203(){ addFrameScript(2, frame3); } function frame3(){ stop(); } } }//package SKU_PK_fla
Section 81
//SkinOver_27 (SKU_PK_fla.SkinOver_27) package SKU_PK_fla { import flash.display.*; public dynamic class SkinOver_27 extends MovieClip { public function SkinOver_27(){ addFrameScript(4, frame5); } function frame5(){ stop(); } } }//package SKU_PK_fla
Section 82
//SmokeEffect_218 (SKU_PK_fla.SmokeEffect_218) package SKU_PK_fla { import flash.display.*; public dynamic class SmokeEffect_218 extends MovieClip { public function SmokeEffect_218(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package SKU_PK_fla
Section 83
//UserInfo_152 (SKU_PK_fla.UserInfo_152) package SKU_PK_fla { import fl.controls.*; import flash.display.*; import flash.text.*; import game.*; public dynamic class UserInfo_152 extends MovieClip { public var mSignUp:SimpleButton; public var mConfirmEmailAddress:TextField; public var mCheckBoxEmailAlerts:CheckBox; public var mTerms:SimpleButton; public var mMonth:ComboBox; public var mCheckBoxTermsOfUse:CheckBox; public var mConfirmPassword:TextField; public var mErrorCaptcha:MovieClip; public var mUsername:TextField; public var mYear:ComboBox; public var mPassword:TextField; public var mErrorEmail1:MovieClip; public var mErrorEmail2:MovieClip; public var mErrorUsername:MovieClip; public var mErrorBirthdate:MovieClip; public var mCaptcha:MovieClip; public var mErrorTerms:MovieClip; public var mErrorPassword1:MovieClip; public var mEmailAddress:TextField; public var mSecurity:TextField; public var mPrivacyOver:PrivacyOver; public var mErrorMsg:TextField; public var mQuestionOver:SimpleButton; public var mDay:ComboBox; public var mErrorPassword2:MovieClip; } }//package SKU_PK_fla
Section 84
//userinfo_mobile1_208 (SKU_PK_fla.userinfo_mobile1_208) package SKU_PK_fla { import fl.controls.*; import flash.display.*; import flash.text.*; public dynamic class userinfo_mobile1_208 extends MovieClip { public var mSignUp:SimpleButton; public var mConfirmEmailAddress:TextField; public var mCheckBoxEmailAlerts:CheckBox; public var mTerms:SimpleButton; public var mMonth:ComboBox; public var mCheckBoxTermsOfUse:CheckBox; public var mErrorCaptcha:MovieClip; public var mYear:ComboBox; public var mPrivacyQuestion:SimpleButton; public var mErrorEmail1:MovieClip; public var mErrorEmail2:MovieClip; public var mName:TextField; public var mErrorBirthdate:MovieClip; public var mCaptcha:MovieClip; public var mErrorTerms:MovieClip; public var mEmailAddress:TextField; public var mSecurity:TextField; public var mErrorMsg:TextField; public var mDay:ComboBox; } }//package SKU_PK_fla
Section 85
//Button_disabledSkin (Button_disabledSkin) package { import flash.display.*; public dynamic class Button_disabledSkin extends MovieClip { } }//package
Section 86
//Button_downSkin (Button_downSkin) package { import flash.display.*; public dynamic class Button_downSkin extends MovieClip { } }//package
Section 87
//Button_emphasizedSkin (Button_emphasizedSkin) package { import flash.display.*; public dynamic class Button_emphasizedSkin extends MovieClip { } }//package
Section 88
//Button_overSkin (Button_overSkin) package { import flash.display.*; public dynamic class Button_overSkin extends MovieClip { } }//package
Section 89
//Button_selectedDisabledSkin (Button_selectedDisabledSkin) package { import flash.display.*; public dynamic class Button_selectedDisabledSkin extends MovieClip { } }//package
Section 90
//Button_selectedDownSkin (Button_selectedDownSkin) package { import flash.display.*; public dynamic class Button_selectedDownSkin extends MovieClip { } }//package
Section 91
//Button_selectedOverSkin (Button_selectedOverSkin) package { import flash.display.*; public dynamic class Button_selectedOverSkin extends MovieClip { } }//package
Section 92
//Button_selectedUpSkin (Button_selectedUpSkin) package { import flash.display.*; public dynamic class Button_selectedUpSkin extends MovieClip { } }//package
Section 93
//Button_upSkin (Button_upSkin) package { import flash.display.*; public dynamic class Button_upSkin extends MovieClip { } }//package
Section 94
//CellRenderer_disabledSkin (CellRenderer_disabledSkin) package { import flash.display.*; public dynamic class CellRenderer_disabledSkin extends MovieClip { } }//package
Section 95
//CellRenderer_downSkin (CellRenderer_downSkin) package { import flash.display.*; public dynamic class CellRenderer_downSkin extends MovieClip { } }//package
Section 96
//CellRenderer_overSkin (CellRenderer_overSkin) package { import flash.display.*; public dynamic class CellRenderer_overSkin extends MovieClip { } }//package
Section 97
//CellRenderer_selectedDisabledSkin (CellRenderer_selectedDisabledSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedDisabledSkin extends MovieClip { } }//package
Section 98
//CellRenderer_selectedDownSkin (CellRenderer_selectedDownSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedDownSkin extends MovieClip { } }//package
Section 99
//CellRenderer_selectedOverSkin (CellRenderer_selectedOverSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedOverSkin extends MovieClip { } }//package
Section 100
//CellRenderer_selectedUpSkin (CellRenderer_selectedUpSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedUpSkin extends MovieClip { } }//package
Section 101
//CellRenderer_upSkin (CellRenderer_upSkin) package { import flash.display.*; public dynamic class CellRenderer_upSkin extends MovieClip { } }//package
Section 102
//CheckBox_disabledIcon (CheckBox_disabledIcon) package { import flash.display.*; public dynamic class CheckBox_disabledIcon extends MovieClip { } }//package
Section 103
//CheckBox_downIcon (CheckBox_downIcon) package { import flash.display.*; public dynamic class CheckBox_downIcon extends MovieClip { } }//package
Section 104
//CheckBox_overIcon (CheckBox_overIcon) package { import flash.display.*; public dynamic class CheckBox_overIcon extends MovieClip { } }//package
Section 105
//CheckBox_selectedDisabledIcon (CheckBox_selectedDisabledIcon) package { import flash.display.*; public dynamic class CheckBox_selectedDisabledIcon extends MovieClip { } }//package
Section 106
//CheckBox_selectedDownIcon (CheckBox_selectedDownIcon) package { import flash.display.*; public dynamic class CheckBox_selectedDownIcon extends MovieClip { } }//package
Section 107
//CheckBox_selectedOverIcon (CheckBox_selectedOverIcon) package { import flash.display.*; public dynamic class CheckBox_selectedOverIcon extends MovieClip { } }//package
Section 108
//CheckBox_selectedUpIcon (CheckBox_selectedUpIcon) package { import flash.display.*; public dynamic class CheckBox_selectedUpIcon extends MovieClip { } }//package
Section 109
//CheckBox_upIcon (CheckBox_upIcon) package { import flash.display.*; public dynamic class CheckBox_upIcon extends MovieClip { } }//package
Section 110
//ComboBox_disabledSkin (ComboBox_disabledSkin) package { import flash.display.*; public dynamic class ComboBox_disabledSkin extends MovieClip { } }//package
Section 111
//ComboBox_downSkin (ComboBox_downSkin) package { import flash.display.*; public dynamic class ComboBox_downSkin extends MovieClip { } }//package
Section 112
//ComboBox_overSkin (ComboBox_overSkin) package { import flash.display.*; public dynamic class ComboBox_overSkin extends MovieClip { } }//package
Section 113
//ComboBox_upSkin (ComboBox_upSkin) package { import flash.display.*; public dynamic class ComboBox_upSkin extends MovieClip { } }//package
Section 114
//Description_CreateCharacter_Anim (Description_CreateCharacter_Anim) package { import flash.display.*; public dynamic class Description_CreateCharacter_Anim extends MovieClip { public function Description_CreateCharacter_Anim(){ addFrameScript(5, frame6); } function frame6(){ stop(); } } }//package
Section 115
//focusRectSkin (focusRectSkin) package { import flash.display.*; public dynamic class focusRectSkin extends MovieClip { } }//package
Section 116
//List_skin (List_skin) package { import flash.display.*; public dynamic class List_skin extends MovieClip { } }//package
Section 117
//ScrollArrowDown_disabledSkin (ScrollArrowDown_disabledSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_disabledSkin extends MovieClip { } }//package
Section 118
//ScrollArrowDown_downSkin (ScrollArrowDown_downSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_downSkin extends MovieClip { } }//package
Section 119
//ScrollArrowDown_overSkin (ScrollArrowDown_overSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_overSkin extends MovieClip { } }//package
Section 120
//ScrollArrowDown_upSkin (ScrollArrowDown_upSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_upSkin extends MovieClip { } }//package
Section 121
//ScrollArrowUp_disabledSkin (ScrollArrowUp_disabledSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_disabledSkin extends MovieClip { } }//package
Section 122
//ScrollArrowUp_downSkin (ScrollArrowUp_downSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_downSkin extends MovieClip { } }//package
Section 123
//ScrollArrowUp_overSkin (ScrollArrowUp_overSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_overSkin extends MovieClip { } }//package
Section 124
//ScrollArrowUp_upSkin (ScrollArrowUp_upSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_upSkin extends MovieClip { } }//package
Section 125
//ScrollBar_thumbIcon (ScrollBar_thumbIcon) package { import flash.display.*; public dynamic class ScrollBar_thumbIcon extends MovieClip { } }//package
Section 126
//ScrollThumb_downSkin (ScrollThumb_downSkin) package { import flash.display.*; public dynamic class ScrollThumb_downSkin extends MovieClip { } }//package
Section 127
//ScrollThumb_overSkin (ScrollThumb_overSkin) package { import flash.display.*; public dynamic class ScrollThumb_overSkin extends MovieClip { } }//package
Section 128
//ScrollThumb_upSkin (ScrollThumb_upSkin) package { import flash.display.*; public dynamic class ScrollThumb_upSkin extends MovieClip { } }//package
Section 129
//ScrollTrack_skin (ScrollTrack_skin) package { import flash.display.*; public dynamic class ScrollTrack_skin extends MovieClip { } }//package
Section 130
//TextInput_disabledSkin (TextInput_disabledSkin) package { import flash.display.*; public dynamic class TextInput_disabledSkin extends MovieClip { } }//package
Section 131
//TextInput_upSkin (TextInput_upSkin) package { import flash.display.*; public dynamic class TextInput_upSkin extends MovieClip { } }//package

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:24 118 144 149 158
Symbol 3 MovieClip {fl.core.ComponentShim}Used by:24 118 142 143 144 149 158 183
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClip {Button_disabledSkin}Uses:4Used by:24
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClip {Button_downSkin}Uses:6Used by:24
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClip {Button_emphasizedSkin}Uses:8Used by:24
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClip {Button_overSkin}Uses:10Used by:24
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClip {Button_selectedDisabledSkin}Uses:12Used by:24
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClip {Button_selectedDownSkin}Uses:14Used by:24
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClip {Button_selectedOverSkin}Uses:16Used by:24
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClip {Button_selectedUpSkin}Uses:18Used by:24
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClip {Button_upSkin}Uses:20Used by:24
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClip {focusRectSkin}Uses:22Used by:24 118 143 144 149 158 183
Symbol 24 MovieClip {fl.controls.Button}Uses:2 3 5 7 9 11 13 15 17 19 21 23
Symbol 25 BitmapUsed by:26
Symbol 26 GraphicUses:25Used by:27 28
Symbol 27 MovieClipUses:26Used by:28
Symbol 28 Button {game.Button_SignUpBig}Uses:27 26
Symbol 29 BitmapUsed by:30
Symbol 30 GraphicUses:29Used by:31 32
Symbol 31 MovieClipUses:30Used by:32
Symbol 32 Button {game.Button_Gender_Male}Uses:31 30
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:35 36
Symbol 35 MovieClipUses:34Used by:36
Symbol 36 Button {game.Button_Gender_Female}Uses:35 34
Symbol 37 BitmapUsed by:38
Symbol 38 GraphicUses:37Used by:39 40
Symbol 39 MovieClipUses:38Used by:40
Symbol 40 Button {game.Button_Logo}Uses:39 38
Symbol 41 BitmapUsed by:42
Symbol 42 GraphicUses:41Used by:77
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:45
Symbol 45 MovieClipUses:44Used by:77
Symbol 46 FontUsed by:47 48 51 52 65 201
Symbol 47 TextUses:46Used by:77
Symbol 48 TextUses:46Used by:49 50
Symbol 49 MovieClipUses:48Used by:50
Symbol 50 ButtonUses:49 48Used by:77
Symbol 51 TextUses:46Used by:77
Symbol 52 TextUses:46Used by:77
Symbol 53 BitmapUsed by:54
Symbol 54 GraphicUses:53Used by:59
Symbol 55 BitmapUsed by:56
Symbol 56 GraphicUses:55Used by:59
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:59
Symbol 59 ButtonUses:54 56 58Used by:77
Symbol 60 BitmapUsed by:61
Symbol 61 GraphicUses:60Used by:70
Symbol 62 BitmapUsed by:63
Symbol 63 GraphicUses:62Used by:70
Symbol 64 GraphicUsed by:66
Symbol 65 TextUses:46Used by:66
Symbol 66 MovieClipUses:64 65Used by:67
Symbol 67 MovieClip {Description_CreateCharacter_Anim}Uses:66Used by:70 591
Symbol 68 BitmapUsed by:69
Symbol 69 GraphicUses:68Used by:70
Symbol 70 ButtonUses:61 63 67 69Used by:77
Symbol 71 BitmapUsed by:72
Symbol 72 GraphicUses:71Used by:76
Symbol 73 BitmapUsed by:74
Symbol 74 GraphicUses:73Used by:75 76
Symbol 75 MovieClipUses:74Used by:76
Symbol 76 ButtonUses:72 75 74Used by:77
Symbol 77 MovieClip {game.Popup_Inform}Uses:42 45 47 50 51 52 59 70 76Used by:Timeline
Symbol 78 BitmapUsed by:79
Symbol 79 GraphicUses:78Used by:80
Symbol 80 MovieClipUses:79Used by:81
Symbol 81 MovieClip {game.DescBox_LockedMerits}Uses:80Used by:613
Symbol 82 BitmapUsed by:83
Symbol 83 GraphicUses:82Used by:84
Symbol 84 MovieClipUses:83Used by:85
Symbol 85 MovieClip {game.DescBox_BuyMembership}Uses:84Used by:606
Symbol 86 BitmapUsed by:87
Symbol 87 GraphicUses:86Used by:88
Symbol 88 MovieClipUses:87Used by:89
Symbol 89 MovieClip {game.DescBox_Tokens}Uses:88Used by:599
Symbol 90 GraphicUsed by:91
Symbol 91 MovieClip {ScrollTrack_skin}Uses:90Used by:118 143
Symbol 92 GraphicUsed by:95
Symbol 93 GraphicUsed by:94 97 101 111
Symbol 94 MovieClipUses:93Used by:95 105 107
Symbol 95 MovieClip {ScrollArrowUp_downSkin}Uses:92 94Used by:118 143
Symbol 96 GraphicUsed by:97
Symbol 97 MovieClip {ScrollArrowDown_downSkin}Uses:96 93Used by:118 143
Symbol 98 GraphicUsed by:99
Symbol 99 MovieClip {ScrollThumb_downSkin}Uses:98Used by:118 143
Symbol 100 GraphicUsed by:101
Symbol 101 MovieClip {ScrollArrowDown_overSkin}Uses:100 93Used by:118 143
Symbol 102 GraphicUsed by:103
Symbol 103 MovieClip {ScrollThumb_overSkin}Uses:102Used by:118 143
Symbol 104 GraphicUsed by:105
Symbol 105 MovieClip {ScrollArrowUp_overSkin}Uses:104 94Used by:118 143
Symbol 106 GraphicUsed by:107
Symbol 107 MovieClip {ScrollArrowUp_upSkin}Uses:106 94Used by:118 143
Symbol 108 GraphicUsed by:109
Symbol 109 MovieClip {ScrollThumb_upSkin}Uses:108Used by:118 143
Symbol 110 GraphicUsed by:111
Symbol 111 MovieClip {ScrollArrowDown_upSkin}Uses:110 93Used by:118 143
Symbol 112 GraphicUsed by:113
Symbol 113 MovieClip {ScrollArrowDown_disabledSkin}Uses:112Used by:118 143
Symbol 114 GraphicUsed by:115
Symbol 115 MovieClip {ScrollArrowUp_disabledSkin}Uses:114Used by:118 143
Symbol 116 GraphicUsed by:117
Symbol 117 MovieClip {ScrollBar_thumbIcon}Uses:116Used by:118 143
Symbol 118 MovieClip {fl.controls.UIScrollBar}Uses:2 3 23 91 95 97 99 101 103 105 107 109 111 113 115 117Used by:Timeline
Symbol 119 GraphicUsed by:122
Symbol 120 FontUsed by:121 194 195 196 197 220 221 225 226 231 232 247 253 259 265 271 273 288 289 512 513 514 515 516 517 521 522 539 540 541 542 543 544 556
Symbol 121 EditableTextUses:120Used by:122
Symbol 122 MovieClipUses:119 121Used by:123
Symbol 123 MovieClip {game.PrivacyOver}Uses:122Used by:536
Symbol 124 GraphicUsed by:125
Symbol 125 MovieClip {List_skin}Uses:124Used by:144
Symbol 126 GraphicUsed by:127
Symbol 127 MovieClip {CellRenderer_upSkin}Uses:126Used by:142
Symbol 128 GraphicUsed by:129
Symbol 129 MovieClip {CellRenderer_disabledSkin}Uses:128Used by:142
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClip {CellRenderer_downSkin}Uses:130Used by:142
Symbol 132 GraphicUsed by:133
Symbol 133 MovieClip {CellRenderer_overSkin}Uses:132Used by:142
Symbol 134 GraphicUsed by:135
Symbol 135 MovieClip {CellRenderer_selectedDisabledSkin}Uses:134Used by:142
Symbol 136 GraphicUsed by:137
Symbol 137 MovieClip {CellRenderer_selectedDownSkin}Uses:136Used by:142
Symbol 138 GraphicUsed by:139
Symbol 139 MovieClip {CellRenderer_selectedOverSkin}Uses:138Used by:142
Symbol 140 GraphicUsed by:141
Symbol 141 MovieClip {CellRenderer_selectedUpSkin}Uses:140Used by:142
Symbol 142 MovieClip {fl.controls.listClasses.CellRenderer}Uses:127 3 129 131 133 135 137 139 141Used by:144
Symbol 143 MovieClip {fl.controls.ScrollBar}Uses:91 3 23 95 97 99 101 103 105 107 109 111 113 115 117Used by:144
Symbol 144 MovieClip {fl.controls.List}Uses:2 3 125 142 23 143Used by:158
Symbol 145 GraphicUsed by:146
Symbol 146 MovieClip {TextInput_disabledSkin}Uses:145Used by:149
Symbol 147 GraphicUsed by:148
Symbol 148 MovieClip {TextInput_upSkin}Uses:147Used by:149
Symbol 149 MovieClip {fl.controls.TextInput}Uses:2 3 146 148 23Used by:158
Symbol 150 GraphicUsed by:151
Symbol 151 MovieClip {ComboBox_upSkin}Uses:150Used by:158
Symbol 152 GraphicUsed by:153
Symbol 153 MovieClip {ComboBox_disabledSkin}Uses:152Used by:158
Symbol 154 GraphicUsed by:155
Symbol 155 MovieClip {ComboBox_overSkin}Uses:154Used by:158
Symbol 156 GraphicUsed by:157
Symbol 157 MovieClip {ComboBox_downSkin}Uses:156Used by:158
Symbol 158 MovieClip {fl.controls.ComboBox}Uses:2 3 23 151 153 155 157 149 144Used by:536 545
Symbol 159 BitmapUsed by:160
Symbol 160 GraphicUses:159Used by:161
Symbol 161 MovieClip {CheckBox_upIcon}Uses:160Used by:183
Symbol 162 BitmapUsed by:163
Symbol 163 GraphicUses:162Used by:164
Symbol 164 MovieClip {CheckBox_overIcon}Uses:163Used by:183
Symbol 165 BitmapUsed by:166
Symbol 166 GraphicUses:165Used by:167
Symbol 167 MovieClip {CheckBox_downIcon}Uses:166Used by:183
Symbol 168 BitmapUsed by:169
Symbol 169 GraphicUses:168Used by:170
Symbol 170 MovieClip {CheckBox_disabledIcon}Uses:169Used by:183
Symbol 171 BitmapUsed by:172
Symbol 172 GraphicUses:171Used by:173
Symbol 173 MovieClip {CheckBox_selectedUpIcon}Uses:172Used by:183
Symbol 174 BitmapUsed by:175
Symbol 175 GraphicUses:174Used by:176
Symbol 176 MovieClip {CheckBox_selectedOverIcon}Uses:175Used by:183
Symbol 177 BitmapUsed by:178
Symbol 178 GraphicUses:177Used by:179
Symbol 179 MovieClip {CheckBox_selectedDownIcon}Uses:178Used by:183
Symbol 180 BitmapUsed by:181
Symbol 181 GraphicUses:180Used by:182
Symbol 182 MovieClip {CheckBox_selectedDisabledIcon}Uses:181Used by:183
Symbol 183 MovieClip {fl.controls.CheckBox}Uses:3 161 164 167 170 173 176 179 182 23Used by:536 545
Symbol 184 BitmapUsed by:185
Symbol 185 GraphicUses:184Used by:186 187
Symbol 186 MovieClipUses:185Used by:187
Symbol 187 Button {game.Button_Guest}Uses:186 185Used by:215
Symbol 188 BitmapUsed by:189
Symbol 189 GraphicUses:188Used by:190 191
Symbol 190 MovieClipUses:189Used by:191
Symbol 191 ButtonUses:190 189Used by:200
Symbol 192 BitmapUsed by:193
Symbol 193 GraphicUses:192Used by:200
Symbol 194 EditableTextUses:120Used by:200
Symbol 195 EditableTextUses:120Used by:200
Symbol 196 EditableTextUses:120Used by:200
Symbol 197 EditableTextUses:120Used by:200
Symbol 198 FontUsed by:199 201 210 212 241 531 554
Symbol 199 TextUses:198Used by:200
Symbol 200 MovieClip {SKU_PK_fla.NavBar_Top_1}Uses:191 193 194 195 196 197 199Used by:Timeline
Symbol 201 EditableTextUses:46 198Used by:204
Symbol 202 GraphicUsed by:203
Symbol 203 MovieClipUses:202Used by:204
Symbol 204 MovieClip {SKU_PK_fla.MC_4}Uses:201 203Used by:Timeline
Symbol 205 BitmapUsed by:206
Symbol 206 GraphicUses:205Used by:207
Symbol 207 MovieClipUses:206Used by:Timeline
Symbol 208 BitmapUsed by:209
Symbol 209 GraphicUses:208Used by:215
Symbol 210 TextUses:198Used by:211
Symbol 211 MovieClipUses:210Used by:215
Symbol 212 TextUses:198Used by:215
Symbol 213 BitmapUsed by:214
Symbol 214 GraphicUses:213Used by:215
Symbol 215 MovieClip {SKU_PK_fla.Ads_7}Uses:209 187 211 212 214Used by:Timeline
Symbol 216 BitmapUsed by:217
Symbol 217 GraphicUses:216Used by:560
Symbol 218 BitmapUsed by:219 224
Symbol 219 GraphicUses:218Used by:222 223
Symbol 220 TextUses:120Used by:222 223
Symbol 221 TextUses:120Used by:222 223
Symbol 222 MovieClipUses:219 220 221Used by:223
Symbol 223 ButtonUses:222 219 220 221Used by:560
Symbol 224 GraphicUses:218Used by:227 230 233 234
Symbol 225 TextUses:120Used by:227 230
Symbol 226 TextUses:120Used by:227 230
Symbol 227 MovieClipUses:224 225 226Used by:230
Symbol 228 GraphicUsed by:230
Symbol 229 GraphicUsed by:230
Symbol 230 ButtonUses:227 228 229 224 225 226Used by:560
Symbol 231 TextUses:120Used by:233 234
Symbol 232 TextUses:120Used by:233 234
Symbol 233 MovieClipUses:224 231 232Used by:234
Symbol 234 ButtonUses:233 224 231 232Used by:560
Symbol 235 GraphicUsed by:236 237
Symbol 236 MovieClipUses:235Used by:237
Symbol 237 ButtonUses:236 235Used by:560
Symbol 238 GraphicUsed by:239 240
Symbol 239 MovieClipUses:238Used by:240
Symbol 240 ButtonUses:239 238Used by:560
Symbol 241 TextUses:198Used by:242
Symbol 242 MovieClipUses:241Used by:274
Symbol 243 BitmapUsed by:244
Symbol 244 GraphicUses:243Used by:245
Symbol 245 MovieClip {SKU_PK_fla.GenderOver_25}Uses:244Used by:248
Symbol 246 GraphicUsed by:248
Symbol 247 TextUses:120Used by:248
Symbol 248 ButtonUses:245 246 247Used by:274
Symbol 249 BitmapUsed by:250
Symbol 250 GraphicUses:249Used by:251
Symbol 251 MovieClip {SKU_PK_fla.SkinOver_27}Uses:250Used by:254
Symbol 252 GraphicUsed by:254
Symbol 253 TextUses:120Used by:254
Symbol 254 ButtonUses:251 252 253Used by:274
Symbol 255 BitmapUsed by:256
Symbol 256 GraphicUses:255Used by:257
Symbol 257 MovieClip {SKU_PK_fla.HairStyleOver_29}Uses:256Used by:260
Symbol 258 GraphicUsed by:260
Symbol 259 TextUses:120Used by:260
Symbol 260 ButtonUses:257 258 259Used by:274
Symbol 261 BitmapUsed by:262
Symbol 262 GraphicUses:261Used by:263
Symbol 263 MovieClip {SKU_PK_fla.HairColorOver_31}Uses:262Used by:266
Symbol 264 GraphicUsed by:266
Symbol 265 TextUses:120Used by:266
Symbol 266 ButtonUses:263 264 265Used by:274
Symbol 267 BitmapUsed by:268
Symbol 268 GraphicUses:267Used by:269
Symbol 269 MovieClip {SKU_PK_fla.PersonalityOver_33}Uses:268Used by:272
Symbol 270 GraphicUsed by:272
Symbol 271 TextUses:120Used by:272
Symbol 272 ButtonUses:269 270 271Used by:274
Symbol 273 TextUses:120Used by:274
Symbol 274 MovieClip {SKU_PK_fla.Layout_DesignEgo_22}Uses:242 248 254 260 266 272 273Used by:560
Symbol 275 BitmapUsed by:276
Symbol 276 GraphicUses:275Used by:277 278 279
Symbol 277 MovieClipUses:276Used by:279
Symbol 278 MovieClip {SKU_PK_fla.RandomizeOver_36}Uses:276Used by:279
Symbol 279 ButtonUses:277 278 276Used by:560
Symbol 280 BitmapUsed by:281
Symbol 281 GraphicUses:280Used by:282 283
Symbol 282 MovieClipUses:281Used by:283
Symbol 283 ButtonUses:282 281Used by:290
Symbol 284 BitmapUsed by:285
Symbol 285 GraphicUses:284Used by:286 287
Symbol 286 MovieClipUses:285Used by:287
Symbol 287 ButtonUses:286 285Used by:290
Symbol 288 EditableTextUses:120Used by:290
Symbol 289 EditableTextUses:120Used by:290
Symbol 290 MovieClip {SKU_PK_fla.Layout_Gender_37}Uses:283 287 288 289Used by:560
Symbol 291 BitmapUsed by:292
Symbol 292 GraphicUses:291Used by:293 294
Symbol 293 MovieClipUses:292Used by:294
Symbol 294 ButtonUses:293 292Used by:331
Symbol 295 BitmapUsed by:296
Symbol 296 GraphicUses:295Used by:297 298
Symbol 297 MovieClipUses:296Used by:298
Symbol 298 ButtonUses:297 296Used by:331
Symbol 299 BitmapUsed by:300
Symbol 300 GraphicUses:299Used by:301 302
Symbol 301 MovieClipUses:300Used by:302
Symbol 302 ButtonUses:301 300Used by:331
Symbol 303 BitmapUsed by:304
Symbol 304 GraphicUses:303Used by:305 306
Symbol 305 MovieClipUses:304Used by:306
Symbol 306 ButtonUses:305 304Used by:331
Symbol 307 BitmapUsed by:308
Symbol 308 GraphicUses:307Used by:309 310
Symbol 309 MovieClipUses:308Used by:310
Symbol 310 ButtonUses:309 308Used by:331
Symbol 311 BitmapUsed by:312
Symbol 312 GraphicUses:311Used by:313 314
Symbol 313 MovieClipUses:312Used by:314
Symbol 314 ButtonUses:313 312Used by:331
Symbol 315 BitmapUsed by:316
Symbol 316 GraphicUses:315Used by:317 318
Symbol 317 MovieClipUses:316Used by:318
Symbol 318 ButtonUses:317 316Used by:331
Symbol 319 BitmapUsed by:320
Symbol 320 GraphicUses:319Used by:321 322
Symbol 321 MovieClipUses:320Used by:322
Symbol 322 ButtonUses:321 320Used by:331
Symbol 323 BitmapUsed by:324
Symbol 324 GraphicUses:323Used by:325 326
Symbol 325 MovieClipUses:324Used by:326
Symbol 326 ButtonUses:325 324Used by:331
Symbol 327 BitmapUsed by:328
Symbol 328 GraphicUses:327Used by:329 330
Symbol 329 MovieClipUses:328Used by:330
Symbol 330 ButtonUses:329 328Used by:331
Symbol 331 MovieClip {SKU_PK_fla.Layout_SkinColor_42}Uses:294 298 302 306 310 314 318 322 326 330Used by:560
Symbol 332 BitmapUsed by:333
Symbol 333 GraphicUses:332Used by:334 335
Symbol 334 MovieClipUses:333Used by:335
Symbol 335 ButtonUses:334 333Used by:352
Symbol 336 BitmapUsed by:337
Symbol 337 GraphicUses:336Used by:338 339
Symbol 338 MovieClipUses:337Used by:339
Symbol 339 ButtonUses:338 337Used by:352
Symbol 340 BitmapUsed by:341
Symbol 341 GraphicUses:340Used by:342 343
Symbol 342 MovieClipUses:341Used by:343
Symbol 343 ButtonUses:342 341Used by:352
Symbol 344 BitmapUsed by:345
Symbol 345 GraphicUses:344Used by:346 347
Symbol 346 MovieClipUses:345Used by:347
Symbol 347 ButtonUses:346 345Used by:352
Symbol 348 BitmapUsed by:349
Symbol 349 GraphicUses:348Used by:350 351
Symbol 350 MovieClipUses:349Used by:351
Symbol 351 ButtonUses:350 349Used by:352
Symbol 352 MovieClip {SKU_PK_fla.Layout_MaleHair_63}Uses:335 339 343 347 351Used by:560
Symbol 353 BitmapUsed by:354
Symbol 354 GraphicUses:353Used by:355 356
Symbol 355 MovieClipUses:354Used by:356
Symbol 356 ButtonUses:355 354Used by:373
Symbol 357 BitmapUsed by:358
Symbol 358 GraphicUses:357Used by:359 360
Symbol 359 MovieClipUses:358Used by:360
Symbol 360 ButtonUses:359 358Used by:373
Symbol 361 BitmapUsed by:362
Symbol 362 GraphicUses:361Used by:363 364
Symbol 363 MovieClipUses:362Used by:364
Symbol 364 ButtonUses:363 362Used by:373
Symbol 365 BitmapUsed by:366
Symbol 366 GraphicUses:365Used by:367 368
Symbol 367 MovieClipUses:366Used by:368
Symbol 368 ButtonUses:367 366Used by:373
Symbol 369 BitmapUsed by:370
Symbol 370 GraphicUses:369Used by:371 372
Symbol 371 MovieClipUses:370Used by:372
Symbol 372 ButtonUses:371 370Used by:373
Symbol 373 MovieClip {SKU_PK_fla.Layout_FemaleHair_74}Uses:356 360 364 368 372Used by:560
Symbol 374 BitmapUsed by:375
Symbol 375 GraphicUses:374Used by:376 377
Symbol 376 MovieClipUses:375Used by:377
Symbol 377 ButtonUses:376 375Used by:406
Symbol 378 BitmapUsed by:379
Symbol 379 GraphicUses:378Used by:380 381
Symbol 380 MovieClipUses:379Used by:381
Symbol 381 ButtonUses:380 379Used by:406
Symbol 382 BitmapUsed by:383
Symbol 383 GraphicUses:382Used by:384 385
Symbol 384 MovieClipUses:383Used by:385
Symbol 385 ButtonUses:384 383Used by:406
Symbol 386 BitmapUsed by:387
Symbol 387 GraphicUses:386Used by:388 389
Symbol 388 MovieClipUses:387Used by:389
Symbol 389 ButtonUses:388 387Used by:406
Symbol 390 BitmapUsed by:391
Symbol 391 GraphicUses:390Used by:392 393
Symbol 392 MovieClipUses:391Used by:393
Symbol 393 ButtonUses:392 391Used by:406
Symbol 394 BitmapUsed by:395
Symbol 395 GraphicUses:394Used by:396 397
Symbol 396 MovieClipUses:395Used by:397
Symbol 397 ButtonUses:396 395Used by:406
Symbol 398 BitmapUsed by:399
Symbol 399 GraphicUses:398Used by:400 401
Symbol 400 MovieClipUses:399Used by:401
Symbol 401 ButtonUses:400 399Used by:406
Symbol 402 BitmapUsed by:403
Symbol 403 GraphicUses:402Used by:404 405
Symbol 404 MovieClipUses:403Used by:405
Symbol 405 ButtonUses:404 403Used by:406
Symbol 406 MovieClip {SKU_PK_fla.Layout_HairColor_85}Uses:377 381 385 389 393 397 401 405Used by:560
Symbol 407 BitmapUsed by:408
Symbol 408 GraphicUses:407Used by:409 410
Symbol 409 MovieClipUses:408Used by:410
Symbol 410 ButtonUses:409 408Used by:458
Symbol 411 BitmapUsed by:412
Symbol 412 GraphicUses:411Used by:413 414
Symbol 413 MovieClipUses:412Used by:414
Symbol 414 ButtonUses:413 412Used by:458
Symbol 415 BitmapUsed by:416
Symbol 416 GraphicUses:415Used by:417 418
Symbol 417 MovieClipUses:416Used by:418
Symbol 418 ButtonUses:417 416Used by:458
Symbol 419 BitmapUsed by:420
Symbol 420 GraphicUses:419Used by:421 422
Symbol 421 MovieClipUses:420Used by:422
Symbol 422 ButtonUses:421 420Used by:458
Symbol 423 BitmapUsed by:424
Symbol 424 GraphicUses:423Used by:425 426
Symbol 425 MovieClipUses:424Used by:426
Symbol 426 ButtonUses:425 424Used by:458
Symbol 427 BitmapUsed by:428
Symbol 428 GraphicUses:427Used by:429 430
Symbol 429 MovieClipUses:428Used by:430
Symbol 430 ButtonUses:429 428Used by:458
Symbol 431 BitmapUsed by:432
Symbol 432 GraphicUses:431Used by:433 434
Symbol 433 MovieClipUses:432Used by:434
Symbol 434 ButtonUses:433 432Used by:458
Symbol 435 BitmapUsed by:436
Symbol 436 GraphicUses:435Used by:437 438
Symbol 437 MovieClipUses:436Used by:438
Symbol 438 ButtonUses:437 436Used by:458
Symbol 439 BitmapUsed by:440
Symbol 440 GraphicUses:439Used by:441 442
Symbol 441 MovieClipUses:440Used by:442
Symbol 442 ButtonUses:441 440Used by:458
Symbol 443 BitmapUsed by:444
Symbol 444 GraphicUses:443Used by:445 446
Symbol 445 MovieClipUses:444Used by:446
Symbol 446 ButtonUses:445 444Used by:458
Symbol 447 BitmapUsed by:448
Symbol 448 GraphicUses:447Used by:449 450
Symbol 449 MovieClipUses:448Used by:450
Symbol 450 ButtonUses:449 448Used by:458
Symbol 451 BitmapUsed by:452
Symbol 452 GraphicUses:451Used by:453 454
Symbol 453 MovieClipUses:452Used by:454
Symbol 454 ButtonUses:453 452Used by:458
Symbol 455 FontUsed by:456 457 507 508
Symbol 456 EditableTextUses:455Used by:458
Symbol 457 EditableTextUses:455Used by:458
Symbol 458 MovieClip {SKU_PK_fla.MalePersonality_102}Uses:410 414 418 422 426 430 434 438 442 446 450 454 456 457Used by:560
Symbol 459 BitmapUsed by:460
Symbol 460 GraphicUses:459Used by:461 462
Symbol 461 MovieClipUses:460Used by:462
Symbol 462 ButtonUses:461 460Used by:509
Symbol 463 BitmapUsed by:464
Symbol 464 GraphicUses:463Used by:465 466
Symbol 465 MovieClipUses:464Used by:466
Symbol 466 ButtonUses:465 464Used by:509
Symbol 467 BitmapUsed by:468
Symbol 468 GraphicUses:467Used by:469 470
Symbol 469 MovieClipUses:468Used by:470
Symbol 470 ButtonUses:469 468Used by:509
Symbol 471 BitmapUsed by:472
Symbol 472 GraphicUses:471Used by:473 474
Symbol 473 MovieClipUses:472Used by:474
Symbol 474 ButtonUses:473 472Used by:509
Symbol 475 BitmapUsed by:476
Symbol 476 GraphicUses:475Used by:477 478
Symbol 477 MovieClipUses:476Used by:478
Symbol 478 ButtonUses:477 476Used by:509
Symbol 479 BitmapUsed by:480
Symbol 480 GraphicUses:479Used by:481 482
Symbol 481 MovieClipUses:480Used by:482
Symbol 482 ButtonUses:481 480Used by:509
Symbol 483 BitmapUsed by:484
Symbol 484 GraphicUses:483Used by:485 486
Symbol 485 MovieClipUses:484Used by:486
Symbol 486 ButtonUses:485 484Used by:509
Symbol 487 BitmapUsed by:488
Symbol 488 GraphicUses:487Used by:489 490
Symbol 489 MovieClipUses:488Used by:490
Symbol 490 ButtonUses:489 488Used by:509
Symbol 491 BitmapUsed by:492
Symbol 492 GraphicUses:491Used by:493 494
Symbol 493 MovieClipUses:492Used by:494
Symbol 494 ButtonUses:493 492Used by:509
Symbol 495 BitmapUsed by:496
Symbol 496 GraphicUses:495Used by:497 498
Symbol 497 MovieClipUses:496Used by:498
Symbol 498 ButtonUses:497 496Used by:509
Symbol 499 BitmapUsed by:500
Symbol 500 GraphicUses:499Used by:501 502
Symbol 501 MovieClipUses:500Used by:502
Symbol 502 ButtonUses:501 500Used by:509
Symbol 503 BitmapUsed by:504
Symbol 504 GraphicUses:503Used by:505 506
Symbol 505 MovieClipUses:504Used by:506
Symbol 506 ButtonUses:505 504Used by:509
Symbol 507 EditableTextUses:455Used by:509
Symbol 508 EditableTextUses:455Used by:509
Symbol 509 MovieClip {SKU_PK_fla.FemalePersonality_127}Uses:462 466 470 474 478 482 486 490 494 498 502 506 507 508Used by:560
Symbol 510 BitmapUsed by:511
Symbol 511 GraphicUses:510Used by:536
Symbol 512 EditableTextUses:120Used by:536
Symbol 513 EditableTextUses:120Used by:536
Symbol 514 EditableTextUses:120Used by:536
Symbol 515 EditableTextUses:120Used by:536
Symbol 516 EditableTextUses:120Used by:536
Symbol 517 EditableTextUses:120Used by:536
Symbol 518 BitmapUsed by:519
Symbol 519 GraphicUses:518Used by:520
Symbol 520 MovieClipUses:519Used by:536 545
Symbol 521 EditableTextUses:120Used by:536
Symbol 522 EditableTextUses:120Used by:523
Symbol 523 MovieClip {SKU_PK_fla.captcha_199}Uses:522Used by:536 545
Symbol 524 GraphicUsed by:525
Symbol 525 ButtonUses:524Used by:536 545
Symbol 526 BitmapUsed by:527
Symbol 527 GraphicUses:526Used by:528 529 530
Symbol 528 MovieClipUses:527Used by:530
Symbol 529 MovieClip {SKU_PK_fla.SignUpSmallOver_203}Uses:527Used by:530
Symbol 530 ButtonUses:528 529 527Used by:536 545
Symbol 531 TextUses:198Used by:536
Symbol 532 BitmapUsed by:533
Symbol 533 GraphicUses:532Used by:534 535
Symbol 534 MovieClipUses:533Used by:535
Symbol 535 ButtonUses:534 533Used by:536 545
Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152}Uses:511 183 512 513 514 515 516 517 158 520 521 523 525 530 531 123 535Used by:560
Symbol 537 BitmapUsed by:538
Symbol 538 GraphicUses:537Used by:545
Symbol 539 EditableTextUses:120Used by:545
Symbol 540 EditableTextUses:120Used by:545
Symbol 541 EditableTextUses:120Used by:545
Symbol 542 TextUses:120Used by:545
Symbol 543 EditableTextUses:120Used by:545
Symbol 544 EditableTextUses:120Used by:545
Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208}Uses:538 539 540 541 158 520 523 542 543 183 525 544 530 535Used by:560
Symbol 546 BitmapUsed by:547
Symbol 547 GraphicUses:546Used by:559
Symbol 548 BitmapUsed by:549
Symbol 549 GraphicUses:548Used by:550
Symbol 550 MovieClip {SKU_PK_fla.PlayOver_211}Uses:549Used by:553
Symbol 551 BitmapUsed by:552
Symbol 552 GraphicUses:551Used by:553
Symbol 553 ButtonUses:550 552Used by:559
Symbol 554 TextUses:198Used by:559
Symbol 555 FontUsed by:556
Symbol 556 TextUses:120 555Used by:559
Symbol 557 GraphicUsed by:558
Symbol 558 ButtonUses:557Used by:559
Symbol 559 MovieClip {SKU_PK_fla.PlayNow_209}Uses:547 553 554 556 558Used by:560
Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11}Uses:217 223 230 234 237 240 274 279 290 331 352 373 406 458 509 536 545 559Used by:Timeline
Symbol 561 BitmapUsed by:562
Symbol 562 GraphicUses:561Used by:571
Symbol 563 BitmapUsed by:564
Symbol 564 GraphicUses:563Used by:565 566
Symbol 565 MovieClipUses:564Used by:566
Symbol 566 ButtonUses:565 564Used by:571
Symbol 567 BitmapUsed by:568
Symbol 568 GraphicUses:567Used by:569 570
Symbol 569 MovieClipUses:568Used by:570
Symbol 570 ButtonUses:569 568Used by:571
Symbol 571 MovieClip {SKU_PK_fla.Creation_Overlay_213}Uses:562 566 570Used by:Timeline
Symbol 572 BitmapUsed by:573
Symbol 573 GraphicUses:572Used by:586
Symbol 574 BitmapUsed by:575
Symbol 575 GraphicUses:574Used by:586
Symbol 576 BitmapUsed by:577
Symbol 577 GraphicUses:576Used by:586
Symbol 578 BitmapUsed by:579
Symbol 579 GraphicUses:578Used by:586
Symbol 580 BitmapUsed by:581
Symbol 581 GraphicUses:580Used by:586
Symbol 582 BitmapUsed by:583
Symbol 583 GraphicUses:582Used by:586
Symbol 584 BitmapUsed by:585
Symbol 585 GraphicUses:584Used by:586
Symbol 586 MovieClipUses:573 575 577 579 581 583 585Used by:587
Symbol 587 MovieClip {SKU_PK_fla.SmokeEffect_218}Uses:586Used by:Timeline
Symbol 588 BitmapUsed by:589
Symbol 589 GraphicUses:588Used by:590 591
Symbol 590 MovieClipUses:589Used by:591
Symbol 591 ButtonUses:590 67 589Used by:Timeline
Symbol 592 GraphicUsed by:Timeline
Symbol 593 BitmapUsed by:594
Symbol 594 GraphicUses:593Used by:599
Symbol 595 BitmapUsed by:596
Symbol 596 GraphicUses:595Used by:599
Symbol 597 BitmapUsed by:598
Symbol 598 GraphicUses:597Used by:599
Symbol 599 ButtonUses:594 596 89 598Used by:Timeline
Symbol 600 BitmapUsed by:601
Symbol 601 GraphicUses:600Used by:606
Symbol 602 BitmapUsed by:603
Symbol 603 GraphicUses:602Used by:606
Symbol 604 BitmapUsed by:605
Symbol 605 GraphicUses:604Used by:606
Symbol 606 ButtonUses:601 603 85 605Used by:Timeline
Symbol 607 BitmapUsed by:608
Symbol 608 GraphicUses:607Used by:613
Symbol 609 BitmapUsed by:610
Symbol 610 GraphicUses:609Used by:613
Symbol 611 BitmapUsed by:612
Symbol 612 GraphicUses:611Used by:613
Symbol 613 ButtonUses:608 610 81 612Used by:Timeline

Instance Names

"mNavBar"Frame 2Symbol 200 MovieClip {SKU_PK_fla.NavBar_Top_1}
"mLoader"Frame 6Symbol 204 MovieClip {SKU_PK_fla.MC_4}
"mLogo"Frame 6Symbol 207 MovieClip
"mSignUp"Frame 7Symbol 215 MovieClip {SKU_PK_fla.Ads_7}
"signupLayout"Frame 17Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11}
"mCreationOverlay"Frame 17Symbol 571 MovieClip {SKU_PK_fla.Creation_Overlay_213}
"mSmoke"Frame 17Symbol 587 MovieClip {SKU_PK_fla.SmokeEffect_218}
"mLoader2"Frame 26Symbol 204 MovieClip {SKU_PK_fla.MC_4}
"mLogo2"Frame 26Symbol 207 MovieClip
"mClubSignUp"Frame 26Symbol 591 Button
"mVScrollBar"Frame 26Symbol 118 MovieClip {fl.controls.UIScrollBar}
"mHScrollBar"Frame 26Symbol 118 MovieClip {fl.controls.UIScrollBar}
"mBtnPokerTokens"Frame 26Symbol 599 Button
"mBtnPokerBuyMembership"Frame 26Symbol 606 Button
"mBtnPokerLockedMerits"Frame 26Symbol 613 Button
"mOverlayUserIncentives"Frame 26Symbol 77 MovieClip {game.Popup_Inform}
"mHeader"Symbol 77 MovieClip {game.Popup_Inform} Frame 1Symbol 45 MovieClip
"mBtnEgoCity"Symbol 77 MovieClip {game.Popup_Inform} Frame 1Symbol 50 Button
"mBtnCancel"Symbol 77 MovieClip {game.Popup_Inform} Frame 1Symbol 59 Button
"mBtnOk"Symbol 77 MovieClip {game.Popup_Inform} Frame 1Symbol 70 Button
"mBtnClose"Symbol 77 MovieClip {game.Popup_Inform} Frame 1Symbol 76 Button
"mLogIn"Symbol 200 MovieClip {SKU_PK_fla.NavBar_Top_1} Frame 1Symbol 191 Button
"mInvalidUsername"Symbol 200 MovieClip {SKU_PK_fla.NavBar_Top_1} Frame 1Symbol 194 EditableText
"mInvalidPassword"Symbol 200 MovieClip {SKU_PK_fla.NavBar_Top_1} Frame 1Symbol 195 EditableText
"mTextUsername"Symbol 200 MovieClip {SKU_PK_fla.NavBar_Top_1} Frame 1Symbol 196 EditableText
"mTextPassword"Symbol 200 MovieClip {SKU_PK_fla.NavBar_Top_1} Frame 1Symbol 197 EditableText
"mPercent"Symbol 204 MovieClip {SKU_PK_fla.MC_4} Frame 1Symbol 201 EditableText
"mGuest"Symbol 215 MovieClip {SKU_PK_fla.Ads_7} Frame 1Symbol 187 Button {game.Button_Guest}
"mWebLinkBig"Symbol 215 MovieClip {SKU_PK_fla.Ads_7} Frame 1Symbol 211 MovieClip
"mDesignEgo"Symbol 274 MovieClip {SKU_PK_fla.Layout_DesignEgo_22} Frame 1Symbol 242 MovieClip
"mGender"Symbol 274 MovieClip {SKU_PK_fla.Layout_DesignEgo_22} Frame 1Symbol 248 Button
"mSkinColor"Symbol 274 MovieClip {SKU_PK_fla.Layout_DesignEgo_22} Frame 1Symbol 254 Button
"mHairStyle"Symbol 274 MovieClip {SKU_PK_fla.Layout_DesignEgo_22} Frame 1Symbol 260 Button
"mHairColor"Symbol 274 MovieClip {SKU_PK_fla.Layout_DesignEgo_22} Frame 1Symbol 266 Button
"mPersonality"Symbol 274 MovieClip {SKU_PK_fla.Layout_DesignEgo_22} Frame 1Symbol 272 Button
"mMale"Symbol 290 MovieClip {SKU_PK_fla.Layout_Gender_37} Frame 1Symbol 283 Button
"mFemale"Symbol 290 MovieClip {SKU_PK_fla.Layout_Gender_37} Frame 1Symbol 287 Button
"mSkin1"Symbol 331 MovieClip {SKU_PK_fla.Layout_SkinColor_42} Frame 1Symbol 294 Button
"mSkin2"Symbol 331 MovieClip {SKU_PK_fla.Layout_SkinColor_42} Frame 1Symbol 298 Button
"mSkin3"Symbol 331 MovieClip {SKU_PK_fla.Layout_SkinColor_42} Frame 1Symbol 302 Button
"mSkin4"Symbol 331 MovieClip {SKU_PK_fla.Layout_SkinColor_42} Frame 1Symbol 306 Button
"mSkin5"Symbol 331 MovieClip {SKU_PK_fla.Layout_SkinColor_42} Frame 1Symbol 310 Button
"mSkin6"Symbol 331 MovieClip {SKU_PK_fla.Layout_SkinColor_42} Frame 1Symbol 314 Button
"mSkin7"Symbol 331 MovieClip {SKU_PK_fla.Layout_SkinColor_42} Frame 1Symbol 318 Button
"mSkin8"Symbol 331 MovieClip {SKU_PK_fla.Layout_SkinColor_42} Frame 1Symbol 322 Button
"mSkin9"Symbol 331 MovieClip {SKU_PK_fla.Layout_SkinColor_42} Frame 1Symbol 326 Button
"mSkin10"Symbol 331 MovieClip {SKU_PK_fla.Layout_SkinColor_42} Frame 1Symbol 330 Button
"mMHair1"Symbol 352 MovieClip {SKU_PK_fla.Layout_MaleHair_63} Frame 1Symbol 335 Button
"mMHair2"Symbol 352 MovieClip {SKU_PK_fla.Layout_MaleHair_63} Frame 1Symbol 339 Button
"mMHair3"Symbol 352 MovieClip {SKU_PK_fla.Layout_MaleHair_63} Frame 1Symbol 343 Button
"mMHair4"Symbol 352 MovieClip {SKU_PK_fla.Layout_MaleHair_63} Frame 1Symbol 347 Button
"mMHair5"Symbol 352 MovieClip {SKU_PK_fla.Layout_MaleHair_63} Frame 1Symbol 351 Button
"mFHair1"Symbol 373 MovieClip {SKU_PK_fla.Layout_FemaleHair_74} Frame 1Symbol 356 Button
"mFHair2"Symbol 373 MovieClip {SKU_PK_fla.Layout_FemaleHair_74} Frame 1Symbol 360 Button
"mFHair3"Symbol 373 MovieClip {SKU_PK_fla.Layout_FemaleHair_74} Frame 1Symbol 364 Button
"mFHair4"Symbol 373 MovieClip {SKU_PK_fla.Layout_FemaleHair_74} Frame 1Symbol 368 Button
"mFHair5"Symbol 373 MovieClip {SKU_PK_fla.Layout_FemaleHair_74} Frame 1Symbol 372 Button
"mColor1"Symbol 406 MovieClip {SKU_PK_fla.Layout_HairColor_85} Frame 1Symbol 377 Button
"mColor2"Symbol 406 MovieClip {SKU_PK_fla.Layout_HairColor_85} Frame 1Symbol 381 Button
"mColor3"Symbol 406 MovieClip {SKU_PK_fla.Layout_HairColor_85} Frame 1Symbol 385 Button
"mColor4"Symbol 406 MovieClip {SKU_PK_fla.Layout_HairColor_85} Frame 1Symbol 389 Button
"mColor5"Symbol 406 MovieClip {SKU_PK_fla.Layout_HairColor_85} Frame 1Symbol 393 Button
"mColor6"Symbol 406 MovieClip {SKU_PK_fla.Layout_HairColor_85} Frame 1Symbol 397 Button
"mColor7"Symbol 406 MovieClip {SKU_PK_fla.Layout_HairColor_85} Frame 1Symbol 401 Button
"mColor8"Symbol 406 MovieClip {SKU_PK_fla.Layout_HairColor_85} Frame 1Symbol 405 Button
"mMActor"Symbol 458 MovieClip {SKU_PK_fla.MalePersonality_102} Frame 1Symbol 410 Button
"mMArtist"Symbol 458 MovieClip {SKU_PK_fla.MalePersonality_102} Frame 1Symbol 414 Button
"mMBully"Symbol 458 MovieClip {SKU_PK_fla.MalePersonality_102} Frame 1Symbol 418 Button
"mMClown"Symbol 458 MovieClip {SKU_PK_fla.MalePersonality_102} Frame 1Symbol 422 Button
"mMFlirt"Symbol 458 MovieClip {SKU_PK_fla.MalePersonality_102} Frame 1Symbol 426 Button
"mMGoth"Symbol 458 MovieClip {SKU_PK_fla.MalePersonality_102} Frame 1Symbol 430 Button
"mMJock"Symbol 458 MovieClip {SKU_PK_fla.MalePersonality_102} Frame 1Symbol 434 Button
"mMNerd"Symbol 458 MovieClip {SKU_PK_fla.MalePersonality_102} Frame 1Symbol 438 Button
"mMPreppy"Symbol 458 MovieClip {SKU_PK_fla.MalePersonality_102} Frame 1Symbol 442 Button
"mMRebel"Symbol 458 MovieClip {SKU_PK_fla.MalePersonality_102} Frame 1Symbol 446 Button
"mMSkater"Symbol 458 MovieClip {SKU_PK_fla.MalePersonality_102} Frame 1Symbol 450 Button
"mMSurfer"Symbol 458 MovieClip {SKU_PK_fla.MalePersonality_102} Frame 1Symbol 454 Button
"mFActor"Symbol 509 MovieClip {SKU_PK_fla.FemalePersonality_127} Frame 1Symbol 462 Button
"mFGoth"Symbol 509 MovieClip {SKU_PK_fla.FemalePersonality_127} Frame 1Symbol 466 Button
"mFFlirt"Symbol 509 MovieClip {SKU_PK_fla.FemalePersonality_127} Frame 1Symbol 470 Button
"mFClown"Symbol 509 MovieClip {SKU_PK_fla.FemalePersonality_127} Frame 1Symbol 474 Button
"mFBully"Symbol 509 MovieClip {SKU_PK_fla.FemalePersonality_127} Frame 1Symbol 478 Button
"mFArtist"Symbol 509 MovieClip {SKU_PK_fla.FemalePersonality_127} Frame 1Symbol 482 Button
"mFSurfer"Symbol 509 MovieClip {SKU_PK_fla.FemalePersonality_127} Frame 1Symbol 486 Button
"mFSkater"Symbol 509 MovieClip {SKU_PK_fla.FemalePersonality_127} Frame 1Symbol 490 Button
"mFRebel"Symbol 509 MovieClip {SKU_PK_fla.FemalePersonality_127} Frame 1Symbol 494 Button
"mFPreppy"Symbol 509 MovieClip {SKU_PK_fla.FemalePersonality_127} Frame 1Symbol 498 Button
"mFNerd"Symbol 509 MovieClip {SKU_PK_fla.FemalePersonality_127} Frame 1Symbol 502 Button
"mFJock"Symbol 509 MovieClip {SKU_PK_fla.FemalePersonality_127} Frame 1Symbol 506 Button
"mText"Symbol 523 MovieClip {SKU_PK_fla.captcha_199} Frame 1Symbol 522 EditableText
"mCheckBoxTermsOfUse"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 183 MovieClip {fl.controls.CheckBox}
"mCheckBoxEmailAlerts"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 183 MovieClip {fl.controls.CheckBox}
"mUsername"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 512 EditableText
"mEmailAddress"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 513 EditableText
"mConfirmEmailAddress"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 514 EditableText
"mPassword"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 515 EditableText
"mConfirmPassword"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 516 EditableText
"mSecurity"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 517 EditableText
"mMonth"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 158 MovieClip {fl.controls.ComboBox}
"mDay"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 158 MovieClip {fl.controls.ComboBox}
"mYear"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 158 MovieClip {fl.controls.ComboBox}
"mErrorUsername"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 520 MovieClip
"mErrorEmail1"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 520 MovieClip
"mErrorEmail2"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 520 MovieClip
"mErrorPassword1"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 520 MovieClip
"mErrorPassword2"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 520 MovieClip
"mErrorCaptcha"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 520 MovieClip
"mErrorTerms"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 520 MovieClip
"mErrorMsg"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 521 EditableText
"mCaptcha"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 523 MovieClip {SKU_PK_fla.captcha_199}
"mErrorBirthdate"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 520 MovieClip
"mTerms"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 525 Button
"mSignUp"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 530 Button
"mPrivacyOver"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 123 MovieClip {game.PrivacyOver}
"mQuestionOver"Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152} Frame 1Symbol 535 Button
"mEmailAddress"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 539 EditableText
"mConfirmEmailAddress"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 540 EditableText
"mSecurity"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 541 EditableText
"mMonth"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 158 MovieClip {fl.controls.ComboBox}
"mDay"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 158 MovieClip {fl.controls.ComboBox}
"mYear"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 158 MovieClip {fl.controls.ComboBox}
"mErrorEmail1"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 520 MovieClip
"mErrorEmail2"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 520 MovieClip
"mErrorCaptcha"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 520 MovieClip
"mErrorTerms"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 520 MovieClip
"mCaptcha"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 523 MovieClip {SKU_PK_fla.captcha_199}
"mErrorBirthdate"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 520 MovieClip
"mErrorMsg"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 543 EditableText
"mCheckBoxTermsOfUse"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 183 MovieClip {fl.controls.CheckBox}
"mCheckBoxEmailAlerts"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 183 MovieClip {fl.controls.CheckBox}
"mTerms"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 525 Button
"mName"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 544 EditableText
"mSignUp"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 530 Button
"mPrivacyQuestion"Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208} Frame 1Symbol 535 Button
"mPlay"Symbol 559 MovieClip {SKU_PK_fla.PlayNow_209} Frame 1Symbol 553 Button
"mPlayNow_EGOCityLink"Symbol 559 MovieClip {SKU_PK_fla.PlayNow_209} Frame 1Symbol 558 Button
"m1"Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11} Frame 1Symbol 223 Button
"m2"Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11} Frame 1Symbol 230 Button
"m3"Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11} Frame 1Symbol 234 Button
"mLeftArrow"Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11} Frame 1Symbol 237 Button
"mRightArrow"Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11} Frame 1Symbol 240 Button
"mLayoutDesignEgo"Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11} Frame 1Symbol 274 MovieClip {SKU_PK_fla.Layout_DesignEgo_22}
"mRandomize"Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11} Frame 1Symbol 279 Button
"mLayoutGender"Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11} Frame 1Symbol 290 MovieClip {SKU_PK_fla.Layout_Gender_37}
"mLayoutSkinColor"Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11} Frame 1Symbol 331 MovieClip {SKU_PK_fla.Layout_SkinColor_42}
"mLayoutMHair"Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11} Frame 1Symbol 352 MovieClip {SKU_PK_fla.Layout_MaleHair_63}
"mLayoutFHair"Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11} Frame 1Symbol 373 MovieClip {SKU_PK_fla.Layout_FemaleHair_74}
"mLayoutHairColor"Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11} Frame 1Symbol 406 MovieClip {SKU_PK_fla.Layout_HairColor_85}
"mMPersonality"Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11} Frame 1Symbol 458 MovieClip {SKU_PK_fla.MalePersonality_102}
"mFPersonality"Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11} Frame 1Symbol 509 MovieClip {SKU_PK_fla.FemalePersonality_127}
"UserInfo"Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11} Frame 1Symbol 536 MovieClip {SKU_PK_fla.UserInfo_152}
"UserInfoMobile"Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11} Frame 1Symbol 545 MovieClip {SKU_PK_fla.userinfo_mobile1_208}
"mPlayNow"Symbol 560 MovieClip {SKU_PK_fla.SignUpLayout_11} Frame 1Symbol 559 MovieClip {SKU_PK_fla.PlayNow_209}
"mCancelButton"Symbol 571 MovieClip {SKU_PK_fla.Creation_Overlay_213} Frame 1Symbol 566 Button
"mSureButton"Symbol 571 MovieClip {SKU_PK_fla.Creation_Overlay_213} Frame 1Symbol 570 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.

Labels

"landingPage"Frame 7
"signup"Frame 17
"club"Frame 26




http://swfchan.com/14/67851/info.shtml
Created: 11/4 -2019 08:24:13 Last modified: 11/4 -2019 08:24:13 Server time: 22/12 -2024 16:05:48