Section 1
//_61f2766c5f65174560e389faf24131a00c5a385c8f63862a0c82f37b45f5e5d8_flash_display_Sprite (_61f2766c5f65174560e389faf24131a00c5a385c8f63862a0c82f37b45f5e5d8_flash_display_Sprite)
package {
import flash.system.*;
import flash.display.*;
public class _61f2766c5f65174560e389faf24131a00c5a385c8f63862a0c82f37b45f5e5d8_flash_display_Sprite extends Sprite {
public function allowDomainInRSL(... _args):void{
Security.allowDomain.apply(null, _args);
}
public function allowInsecureDomainInRSL(... _args):void{
Security.allowInsecureDomain.apply(null, _args);
}
}
}//package
Section 2
//_9b1af44ab8a3d4383da87d780b2b8562e3a32552e54bb666c4f98c34363a3cc5_flash_display_Sprite (_9b1af44ab8a3d4383da87d780b2b8562e3a32552e54bb666c4f98c34363a3cc5_flash_display_Sprite)
package {
import flash.system.*;
import flash.display.*;
public class _9b1af44ab8a3d4383da87d780b2b8562e3a32552e54bb666c4f98c34363a3cc5_flash_display_Sprite extends Sprite {
public function allowDomainInRSL(... _args):void{
Security.allowDomain.apply(null, _args);
}
public function allowInsecureDomainInRSL(... _args):void{
Security.allowInsecureDomain.apply(null, _args);
}
}
}//package
Section 3
//FGLAds (FGLAds)
package {
import flash.display.*;
import flash.system.*;
import flash.net.*;
import flash.events.*;
public class FGLAds extends Sprite {
private var _status:String;// = "Loading"
private var _loaded:Boolean;// = false
private var _stageWidth:Number;// = 550
private var _stageHeight:Number;// = 400
private var _inUse:Boolean;// = false
private var _referer:String;// = ""
private var _loader:Loader;
private var _context:LoaderContext;
private var _request:URLRequest;
private var _evt_NetworkingError:Function;// = null
private var _evt_ApiReady:Function;// = null
private var _evt_AdLoaded:Function;// = null
private var _evt_AdShown:Function;// = null
private var _evt_AdClicked:Function;// = null
private var _evt_AdClosed:Function;// = null
private var _evt_AdLoadingError:Function;// = null
private var _fglAds:Object;
private var _stage:Stage;
private var _storedGameID:String;// = ""
public static var version:String = "01";
protected static var _instance:FGLAds;
public static var EVT_NETWORKING_ERROR:String = "networking_error";
public static var EVT_API_READY:String = "api_ready";
public static var EVT_AD_LOADED:String = "ad_loaded";
public static var EVT_AD_SHOWN:String = "ad_shown";
public static var EVT_AD_CLOSED:String = "ad_closed";
public static var EVT_AD_CLICKED:String = "ad_clicked";
public static var EVT_AD_LOADING_ERROR:String = "ad_loading_error";
public static var FORMAT_300x250:String = "300x250";
public static var FORMAT_90x90:String = "90x90";
public function FGLAds(_arg1, _arg2:String):void{
var parent = _arg1;
var gameID = _arg2;
this._loader = new Loader();
this._context = new LoaderContext(true);
this._request = new URLRequest((("http://ads.fgl.com/swf/FGLAds." + version) + ".swf"));
super();
if (_instance == null){
_instance = this;
} else {
trace("FGLAds: Instance Error: The FGLAds class is a singleton and should only be constructed once. Use FGLAds.api to access it after it has been constructed.");
return;
};
this._storedGameID = gameID;
Security.allowDomain("*");
Security.allowInsecureDomain("*");
this._context.applicationDomain = ApplicationDomain.currentDomain;
this._status = "Downloading";
try {
this._loader.load(this._request, this._context);
this._loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, this.onLoadingError);
this._loader.contentLoaderInfo.addEventListener(Event.COMPLETE, this.onLoadingComplete);
} catch(e:Error) {
_status = "Failed";
trace("FGLAds: SecurityError: cannot load client library");
_loader = null;
};
addEventListener(Event.ADDED_TO_STAGE, this.setupStage);
if ((((((parent is Sprite)) || ((parent is MovieClip)))) || ((parent is Stage)))){
parent.addChild(this);
} else {
trace("FGLAds: Incompatible parent!");
};
}
public function showAdPopup(_arg1:String="300x250", _arg2:Number=3000, _arg3:Number=0):void{
if (this._loaded == false){
return;
};
this._fglAds.showAdPopup(_arg1, _arg2, _arg3);
}
public function get status():String{
return (this._status);
}
public function disable():void{
if (this._status == "Ready"){
this._status = "Disabled";
this._loaded = false;
};
}
public function enable():void{
if (this._status == "Disabled"){
this._status = "Ready";
this._loaded = true;
};
}
public function set onNetworkingError(_arg1:Function):void{
this._evt_NetworkingError = _arg1;
}
public function get onNetworkingError():Function{
return (this._evt_NetworkingError);
}
private function e_onNetworkingError(_arg1:Event):void{
if (this._evt_NetworkingError != null){
this._evt_NetworkingError();
};
dispatchEvent(_arg1);
}
public function set onApiReady(_arg1:Function):void{
this._evt_ApiReady = _arg1;
}
public function get onApiReady():Function{
return (this._evt_ApiReady);
}
private function e_onApiReady(_arg1:Event):void{
if (this._evt_ApiReady != null){
this._evt_ApiReady();
};
dispatchEvent(_arg1);
}
public function set onAdLoaded(_arg1:Function):void{
this._evt_AdLoaded = _arg1;
}
public function get onAdLoaded():Function{
return (this._evt_AdLoaded);
}
private function e_onAdLoaded(_arg1:Event):void{
if (this._evt_AdLoaded != null){
this._evt_AdLoaded();
};
dispatchEvent(_arg1);
}
public function set onAdShown(_arg1:Function):void{
this._evt_AdShown = _arg1;
}
public function get onAdShown():Function{
return (this._evt_AdShown);
}
private function e_onAdShown(_arg1:Event):void{
if (this._evt_AdShown != null){
this._evt_AdShown();
};
dispatchEvent(_arg1);
}
public function set onAdClicked(_arg1:Function):void{
this._evt_AdClicked = _arg1;
}
public function get onAdClicked():Function{
return (this._evt_AdClicked);
}
private function e_onAdClicked(_arg1:Event):void{
if (this._evt_AdClicked != null){
this._evt_AdClicked();
};
dispatchEvent(_arg1);
}
public function set onAdClosed(_arg1:Function):void{
this._evt_AdClosed = _arg1;
}
public function get onAdClosed():Function{
return (this._evt_AdClosed);
}
private function e_onAdClosed(_arg1:Event):void{
if (this._evt_AdClosed != null){
this._evt_AdClosed();
};
dispatchEvent(_arg1);
}
public function set onAdLoadingError(_arg1:Function):void{
this._evt_AdLoadingError = _arg1;
}
public function get onAdLoadingError():Function{
return (this._evt_AdLoadingError);
}
private function e_onAdLoadingError(_arg1:Event):void{
if (this._evt_AdLoadingError != null){
this._evt_AdLoadingError();
};
dispatchEvent(_arg1);
}
private function resizeStage(_arg1:Event):void{
if (this._loaded == false){
return;
};
this._stageWidth = this._stage.stageWidth;
this._stageHeight = this._stage.stageHeight;
this._fglAds.componentWidth = this._stageWidth;
this._fglAds.componentHeight = this._stageHeight;
}
private function setupStage(_arg1:Event):void{
if (stage == null){
return;
};
this._stage = stage;
this._stage.addEventListener(Event.RESIZE, this.resizeStage);
this._stageWidth = stage.stageWidth;
this._stageHeight = stage.stageHeight;
if (root != null){
this._referer = root.loaderInfo.loaderURL;
};
if (this._loaded){
this._fglAds.componentWidth = this._stageWidth;
this._fglAds.componentHeight = this._stageHeight;
this._stage.addChild((this._fglAds as Sprite));
};
}
private function onLoadingComplete(_arg1:Event):void{
this._status = "Ready";
this._loaded = true;
this._fglAds = (this._loader.content as Object);
this._fglAds.componentWidth = this._stageWidth;
this._fglAds.componentHeight = this._stageHeight;
this._fglAds.addEventListener(EVT_NETWORKING_ERROR, this.e_onNetworkingError);
this._fglAds.addEventListener(EVT_API_READY, this.e_onApiReady);
this._fglAds.addEventListener(EVT_AD_LOADED, this.e_onAdLoaded);
this._fglAds.addEventListener(EVT_AD_SHOWN, this.e_onAdShown);
this._fglAds.addEventListener(EVT_AD_CLICKED, this.e_onAdClicked);
this._fglAds.addEventListener(EVT_AD_CLOSED, this.e_onAdClosed);
this._fglAds.addEventListener(EVT_AD_LOADING_ERROR, this.e_onAdLoadingError);
if (this._stage != null){
this._stage.addChild((this._fglAds as Sprite));
};
if (root != null){
this._referer = root.loaderInfo.loaderURL;
};
this._fglAds.init(this._stage, this._referer, this._storedGameID);
}
private function onLoadingError(_arg1:IOErrorEvent):void{
this._loaded = false;
this._status = "Failed";
trace("Failed to load FGL Ads");
}
public static function get api():FGLAds{
if (_instance == null){
trace("FGL Ads: Instance Error: Attempted to get instance before construction.");
return (null);
};
return (_instance);
}
public static function get apiLoaded():Boolean{
return (!((_instance == null)));
}
}
}//package
Section 4
//GamerSafe (GamerSafe)
package {
import flash.display.*;
import flash.system.*;
import flash.net.*;
import flash.geom.*;
import flash.events.*;
import flash.utils.*;
public class GamerSafe extends Sprite {
private var _status:String;// = "Loading"
private var _loaded:Boolean;// = false
private var _stageWidth:Number;// = 550
private var _stageHeight:Number;// = 400
private var _inUse:Boolean;// = false
private var _tmpSkin:Object;
private var _tmpAchievementSkin:Object;
private var _levelVaultTempAttributes:Object;
private var _levelVaultLastError:String;// = ""
private var _referrer:String;// = ""
private var _loader:Loader;
private var _context:LoaderContext;
private var _request:URLRequest;
private var _evt_networkingError:Function;// = null
private var _evt_accountChange:Function;// = null
private var _evt_login:Function;// = null
private var _evt_loginFailed:Function;// = null
private var _evt_autoLoginFailed:Function;// = null
private var _evt_beginSession:Function;// = null
private var _evt_beginSessionFailed:Function;// = null
private var _evt_itemPurchase:Function;// = null
private var _evt_itemPurchaseCanceled:Function;// = null
private var _evt_itemPurchaseFailed:Function;// = null
private var _evt_apiReady:Function;// = null
private var _evt_confYes:Function;// = null
private var _evt_confNo:Function;// = null
private var _evt_useStarted:Function;// = null
private var _evt_useEnded:Function;// = null
private var _evt_useChanged:Function;// = null
private var _evt_onScoreboardError:Function;// = null
private var _evt_onScoreboardRecieved:Function;// = null
private var _evt_onScoreSubmitted:Function;// = null
private var _evt_onUnregisteredName:Function;// = null
private var _evt_onConsumptionCompleted:Function;// = null
private var _evt_onRegistrationFormClosed:Function;// = null
private var _evt_onLoginFormClosed:Function;// = null
private var _evt_onOtherGameProfileReceived:Function;// = null
private var _evt_onBridgeSuccess:Function;// = null
private var _evt_onBridgeError:Function;// = null
private var _evt_onPaymentPanelShown:Function;// = null
private var _evt_onPaymentPanelHidden:Function;// = null
private var _evt_onStatusBarMouseOver:Function;// = null
private var _evt_onStatusBarMouseOut:Function;// = null
private var _evt_onLevelVaultGotLevel:Function;// = null
private var _evt_onLevelVaultGotLevels:Function;// = null
private var _evt_onLevelVaultGotIndex:Function;// = null
private var _evt_onLevelVaultGotNumLevels:Function;// = null
private var _evt_onLevelVaultGotLevelRanking:Function;// = null
private var _evt_onLevelVaultLevelAttributesChanged:Function;// = null
private var _evt_onLevelVaultLevelCreated:Function;// = null
private var _evt_onLevelVaultLevelEdited:Function;// = null
private var _evt_onLevelVaultLevelDeleted:Function;// = null
private var _evt_onLevelVaultLevelFlagged:Function;// = null
private var _evt_onLevelVaultLevelRated:Function;// = null
private var _evt_onLevelVaultLevelNumericsIncremented:Function;// = null
private var _evt_onLevelVaultLevelNumericsSet:Function;// = null
private var _evt_onLevelVaultLevelStringsSet:Function;// = null
private var _evt_onFacebookConnected:Function;// = null
private var _evt_onFacebookGotFriends:Function;// = null
private var _evt_onFacebookGotLocalUser:Function;// = null
private var _evt_onFacebookLoginFailed:Function;// = null
private var _evt_onFacebookWallPostSuccess:Function;// = null
private var _evt_onFacebookWallPostFailed:Function;// = null
private var _evt_onFacebookPromptClosed:Function;// = null
private var _evt_onTwitterConnected:Function;// = null
private var _evt_onTwitterLoginFailed:Function;// = null
private var _evt_onTwitterGotUser:Function;// = null
private var _evt_onTwitterPostSuccess:Function;// = null
private var _evt_onTwitterPostFailed:Function;// = null
private var _evt_onTwitterPromptClosed:Function;// = null
private var _gamerSafe:Object;// = null
private var _stage:Stage;
private var _dialogsOpen:uint;// = 0
private var _storedHashseed:String;// = "641e7f6d79bf6dfef47b0ccba6beee80d7eadbd7"
private var _storedPasscode:String;// = "G1230e1752fad2581732479ab4ae06ee23b10833b8:1396126443"
public static var version:String = "01";
protected static var _instance:GamerSafe = null;
public static var EVT_NETWORKING_ERROR:String = "networking_error";
public static var EVT_ACCOUNT_CHANGE:String = "account_change";
public static var EVT_LOGIN:String = "login";
public static var EVT_LOGIN_FAILED:String = "login_failed";
public static var EVT_AUTO_LOGIN_FAILED:String = "auto_login_failed";
public static var EVT_BEGIN_SESSION:String = "begin_session";
public static var EVT_BEGIN_SESSION_FAILED:String = "begin_session_failed";
public static var EVT_ITEM_PURCHASE:String = "item_purchase";
public static var EVT_ITEM_PURCHASE_CANCELED:String = "item_purchase_canceled";
public static var EVT_ITEM_PURCHASE_FAILED:String = "item_purchase_failed";
public static var EVT_SCOREBOARD_ENTRIES_RECEIVED:String = "scoreboard_entries_received";
public static var EVT_SCOREBOARD_ENTRIES_ERROR:String = "scoreboard_entries_error";
public static var EVT_SCOREBOARD_ENTRY_SUBMITTED:String = "scoreboard_entry_submitted";
public static var EVT_OTHER_GAME_PROFILE_RECEIVED:String = "other_game_profile_received";
public static var EVT_UNREGISTERED_NAME:String = "unregistered_name";
public static var EVT_CONSUMPTION_COMPLETED:String = "consumption_completed";
public static var EVT_REGISTRATION_FORM_CLOSED:String = "register_close";
public static var EVT_LOGIN_FORM_CLOSED:String = "login_close";
public static var EVT_BRIDGE_SUCCESS:String = "bridge_success";
public static var EVT_BRIDGE_ERROR:String = "bridge_error";
public static var EVT_PAYMENT_PANEL_SHOWN:String = "payment_panel_shown";
public static var EVT_PAYMENT_PANEL_HIDDEN:String = "payment_panel_hidden";
public static var EVT_USERNAME_FETCHED:String = "username_fetched";
public static var EVT_AVATAR_FETCHED:String = "avatar_fetched";
public static var EVT_INUSE_STARTED:String = "inUseStarted";
public static var EVT_INUSE_ENDED:String = "inUseEnded";
public static var EVT_INUSE_CHANGED:String = "inUseChanged";
public static var EVT_STATUSBAR_MOUSEOVER:String = "statusbar_mouseover";
public static var EVT_STATUSBAR_MOUSEOUT:String = "statusbar_mouseout";
public static var EVT_LEVELVAULT_LEVEL_CREATED:String = "level_created";
public static var EVT_LEVELVAULT_LEVEL_EDITED:String = "level_edited";
public static var EVT_LEVELVAULT_LEVEL_NUMERICS_SET:String = "level_numerics_set";
public static var EVT_LEVELVAULT_LEVEL_STRINGS_SET:String = "level_strings_set";
public static var EVT_LEVELVAULT_LEVEL_RATED:String = "level_rated";
public static var EVT_LEVELVAULT_LEVEL_NUMERICS_INCREMENTED:String = "level_numerics_incremented";
public static var EVT_LEVELVAULT_LEVEL_FLAGGED:String = "level_flagged";
public static var EVT_LEVELVAULT_LEVEL_DELETED:String = "level_deleted";
public static var EVT_LEVELVAULT_GOT_SINGLE_LEVEL:String = "got_level";
public static var EVT_LEVELVAULT_GOT_LEVELS:String = "got_levels";
public static var EVT_LEVELVAULT_GOT_NUM_LEVELS:String = "got_num_levels";
public static var EVT_LEVELVAULT_GOT_LEVEL_RANKING:String = "got_level_ranking";
public static var EVT_LEVELVAULT_GOT_INDEX:String = "got_index";
public static var EVT_FACEBOOK_CONNECTED:String = "fb_connected";
public static var EVT_FACEBOOK_LOGIN_FAILED:String = "fb_login_failed";
public static var EVT_FACEBOOK_GOT_USER:String = "fb_got_user";
public static var EVT_FACEBOOK_GOT_FRIENDS:String = "fb_got_friends";
public static var EVT_FACEBOOK_WALL_POST_SUCCESS:String = "fb_wallpost_success";
public static var EVT_FACEBOOK_WALL_POST_FAILED:String = "fb_wallpost_fail";
public static var EVT_FACEBOOK_PROMPT_CLOSED:String = "fb_prompt_closed";
public static var EVT_TWITTER_CONNECTED:String = "twit_connected";
public static var EVT_TWITTER_LOGIN_FAILED:String = "twit_login_failed";
public static var EVT_TWITTER_GOT_USER:String = "twit_got_user";
public static var EVT_TWITTER_POST_SUCCESS:String = "twit_post_success";
public static var EVT_TWITTER_POST_FAILED:String = "twit_post_fail";
public function GamerSafe(_arg1, _arg2:String=null, _arg3:String=null, _arg4:Boolean=false){
var parent = _arg1;
var passcode = _arg2;
var hashseed = _arg3;
var isAir = _arg4;
this._tmpSkin = {};
this._tmpAchievementSkin = {};
this._levelVaultTempAttributes = {};
this._loader = new Loader();
this._context = new LoaderContext(true);
this._request = new URLRequest((("http://components.gamersafe.com/GamerSafe." + version) + ".swf"));
super();
if (_instance == null){
_instance = this;
} else {
trace("GamerSafe: Instance Error: The GamerSafe class is a singleton and should only be constructed once. Use Gamersafe.instance instead.");
return;
};
if (passcode != null){
this._storedPasscode = passcode;
};
if (hashseed != null){
this._storedHashseed = hashseed;
};
if (!(isAir)){
Security.allowDomain("*");
Security.allowInsecureDomain("*");
this._context.applicationDomain = ApplicationDomain.currentDomain;
this._status = "Downloading";
try {
this._loader.load(this._request, this._context);
this._loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, this.onLoadingError);
this._loader.contentLoaderInfo.addEventListener(Event.COMPLETE, this.onLoadingComplete);
} catch(s:SecurityError) {
_status = "Failed";
trace("Security error - GamerSafe library cannot load");
_loader = null;
};
} else {
this._status = "Downloading";
try {
this._loader.load(this._request, this._context);
this._loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, this.onLoadingError);
this._loader.contentLoaderInfo.addEventListener(Event.COMPLETE, this.onLoadingCompleteAir);
} catch(s:SecurityError) {
_status = "Failed";
trace("Security error - GamerSafe library cannot load");
_loader = null;
};
};
addEventListener(Event.ADDED_TO_STAGE, this.setupStage);
if ((((((parent is Sprite)) || ((parent is MovieClip)))) || ((parent is Stage)))){
parent.addChild(this);
} else {
trace("Incompatible parent!");
};
}
public function get applicationDomain():ApplicationDomain{
return (this._loader.contentLoaderInfo.applicationDomain);
}
public function get loaded():Boolean{
return (this._loaded);
}
public function get status():String{
return (this._status);
}
private function get sprite():Sprite{
if (this._loaded == false){
return (null);
};
return (this._gamerSafe.sprite);
}
public function get inSession():Boolean{
if (this._loaded == false){
return (false);
};
return (this._gamerSafe.inSession);
}
public function get failed():Boolean{
if (this._loaded == false){
return (false);
};
return (this._gamerSafe.failed);
}
public function get loggedIn():Boolean{
if (this._loaded == false){
return (false);
};
return (this._gamerSafe.loggedIn);
}
public function get username():String{
if (this._loaded == false){
return ("GamerSafe");
};
return (this._gamerSafe.username);
}
public function get account():Object{
if (this._loaded == false){
return (null);
};
return (this._gamerSafe.account);
}
public function get gamerGold():uint{
if (this._loaded == false){
return (0);
};
return (this._gamerSafe.gamerGold);
}
public function get gamerPoints():uint{
if (this._loaded == false){
return (0);
};
return (this._gamerSafe.gamerPoints);
}
public function get gamerXP():uint{
if (this._loaded == false){
return (0);
};
return (this._gamerSafe.gamerXP);
}
public function get gamerTestMode():Boolean{
if (this._loaded == false){
return (false);
};
return (this._gamerSafe.gamerTestMode);
}
public function get autoLogin():Boolean{
if (this._loaded == false){
return (false);
};
return (this._gamerSafe.autoLogin);
}
public function set autoLogin(_arg1:Boolean):void{
if (this._loaded == false){
return;
};
this._gamerSafe.autoLogin = _arg1;
}
public function get unregisteredName():String{
if (this._loaded == false){
return ("");
};
return (this._gamerSafe.unregisteredName);
}
private function beginSession(_arg1:String, _arg2:String):Boolean{
if (this._loaded == false){
return (false);
};
this._gamerSafe.beginSession(_arg1, _arg2, this._referrer);
return (true);
}
public function bestowAchievement(_arg1:uint):Boolean{
if (this._loaded == false){
return (false);
};
this._gamerSafe.bestowAchievement(_arg1);
return (true);
}
public function bestowFreeItem(_arg1:int):Boolean{
if (this._loaded == false){
return (false);
};
this._gamerSafe.bestowFreeItem(_arg1);
return (true);
}
public function purchaseItem(_arg1:int, _arg2:int=0):Boolean{
if (this._loaded == false){
return (false);
};
return (this._gamerSafe.purchaseItem(_arg1, _arg2));
}
public function flashBar():void{
if (this._loaded == false){
return;
};
this._gamerSafe.flashBar();
}
public function showAchievements(_arg1:Object=null):void{
if (this._loaded == false){
return;
};
this._gamerSafe.showAchievements(_arg1);
}
public function set achievementPopupPosition(_arg1:Point):void{
if (this._loaded == false){
return;
};
this._gamerSafe.achievementPopupPosition = _arg1;
}
public function get achievementPopupPosition():Point{
if (this._loaded == false){
return (new Point(0, 0));
};
return (this._gamerSafe.achievementPopupPosition);
}
public function showLogin(_arg1:Object=null):void{
if (this._loaded == false){
return;
};
this._gamerSafe.showLogin(_arg1);
}
public function login(_arg1:String, _arg2:String, _arg3:Boolean=false):void{
if (this._loaded == false){
return;
};
this._gamerSafe.login(_arg1, _arg2, _arg3);
}
public function showRegistrationForm():void{
if (this._loaded == false){
return;
};
this._gamerSafe.showRegistrationForm();
}
public function logout():void{
if (this._loaded == false){
return;
};
this._gamerSafe.logout();
}
public function showShop(_arg1:Object=null):void{
if (this._loaded == false){
return;
};
this._gamerSafe.showShop(_arg1);
}
public function hideShopButton(_arg1:Boolean=true):void{
if (this._loaded == false){
return;
};
this._gamerSafe.hideShopButton(_arg1);
}
public function closeShop():void{
if (this._loaded == false){
return;
};
this._gamerSafe.closeShop();
}
public function setShopCategoryVisible(_arg1:int, _arg2:Boolean):void{
if (this._loaded == false){
return;
};
this._gamerSafe.setShopCategoryVisible(_arg1, _arg2);
}
public function showPopup(_arg1:String, _arg2:Object=null):void{
if (this._loaded == false){
return;
};
this._gamerSafe.showPopup(_arg1, _arg2);
}
public function showStatusBar(_arg1:Object=null):void{
if (this._loaded == false){
return;
};
this._gamerSafe.showStatusBar(_arg1);
}
public function hideStatusBar():void{
if (this._loaded == false){
return;
};
this._gamerSafe.hideStatusBar();
}
public function tryAutoLogin():void{
if (this._loaded == false){
return;
};
if (this.inSession == false){
return;
};
this._gamerSafe.tryAutoLogin();
}
public function set savedGame(_arg1:String):void{
if (this._loaded == false){
return;
};
this._gamerSafe.savedGame = _arg1;
}
public function get savedGame():String{
if (this._loaded == false){
return ("");
};
if (this._gamerSafe.savedGame == null){
return ("");
};
return (this._gamerSafe.savedGame);
}
public function getSavedGame(_arg1:int=0):String{
if (this._loaded == false){
return (null);
};
return (this._gamerSafe.getSavedGame(_arg1));
}
public function setSavedGame(_arg1:String, _arg2:int=0):void{
if (this._loaded == false){
return;
};
this._gamerSafe.setSavedGame(_arg1, _arg2);
}
public function hasAchievement(_arg1:int):Boolean{
if (this._loaded == false){
return (false);
};
if (this.inSession == false){
return (false);
};
return (this._gamerSafe.hasAchievement(_arg1));
}
public function hasItem(_arg1:int):Boolean{
if (this._loaded == false){
return (false);
};
if (this.inSession == false){
return (false);
};
return (this._gamerSafe.hasItem(_arg1));
}
public function get highScore():Number{
if (this._loaded == false){
return (0);
};
if (this.inSession == false){
return (0);
};
return (this._gamerSafe.highScore);
}
public function set highScore(_arg1:Number):void{
if (this._loaded == false){
return;
};
if (this.inSession == false){
return;
};
this._gamerSafe.highScore = _arg1;
}
public function get countryCode():String{
if (this._loaded == false){
return ("");
};
if (this.inSession == false){
return ("");
};
return (this._gamerSafe.countryCode);
}
public function get startingTime():Date{
if (this._loaded == false){
return (null);
};
if (this.inSession == false){
return (null);
};
return (this._gamerSafe.startingTime);
}
public function get achievements():Array{
if (this._loaded == false){
return ([]);
};
if (this.inSession == false){
return ([]);
};
return (this._gamerSafe.achievementList);
}
public function get items():Array{
if (this._loaded == false){
return ([]);
};
if (this.inSession == false){
return ([]);
};
return (this._gamerSafe.itemList);
}
public function getItemById(_arg1:int):Object{
var _local3:Object;
if (this._loaded == false){
return (null);
};
if (this.inSession == false){
return (null);
};
var _local2:Array = this.items;
for each (_local3 in _local2) {
if (_local3.id == _arg1){
return (_local3);
};
};
return (null);
}
public function get iconUrl():String{
if (this._loaded == false){
return ("");
};
return (this._gamerSafe.iconUrl);
}
public function get signupUrl():String{
if (this._loaded == false){
return ("");
};
return (this._gamerSafe.signupUrl);
}
public function get paymentUrl():String{
if (this._loaded == false){
return ("");
};
return (this._gamerSafe.paymentUrl);
}
public function get FAQUrl():String{
if (this._loaded == false){
return ("");
};
return (this._gamerSafe.FAQUrl);
}
public function get wantsNewsletter():Boolean{
if (this._loaded == false){
return (false);
};
return (this._gamerSafe.wantsNewsletter);
}
public function set wantsNewsletter(_arg1:Boolean):void{
if (this._loaded == true){
this._gamerSafe.wantsNewsletter = _arg1;
};
}
public function get isGamerGoldPurchaseDisabled():Boolean{
if (this._loaded == false){
return (true);
};
return (this._gamerSafe.isGamerGoldPurchaseDisabled);
}
public function showMessageBox(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
if (this._loaded == false){
return;
};
this._gamerSafe.messageBox(_arg1, _arg2, _arg3);
}
public function get inUse():Boolean{
return (this._inUse);
}
public function get latestItemPurchaseInfo():Object{
if (this._loaded == false){
return (null);
};
return (this._gamerSafe.getLatestItemPurchaseInfo());
}
public function get latestItemConsumptionInfo():Object{
if (this._loaded == false){
return (null);
};
return (this._gamerSafe.getLatestItemConsumptionInfo());
}
public function get latestOtherGameProfile():Object{
if (this._loaded == false){
return (null);
};
return (this._gamerSafe.getLatestOtherGameProfile());
}
public function showScoreboard(_arg1:int=-1):void{
if (this._loaded == false){
return;
};
if (this.inSession == false){
return;
};
this._gamerSafe.showScoreboard(_arg1);
}
public function showFriendsScoreboard(_arg1:int=-1):void{
if (this._loaded == false){
return;
};
if (this.inSession == false){
return;
};
this._gamerSafe.showFriendsScoreboard(_arg1);
}
public function showSmallScoreboard(_arg1:int=-1):void{
if (this._loaded == false){
return;
};
if (this.inSession == false){
return;
};
this._gamerSafe.showSmallScoreboard(_arg1);
}
public function closeScoreboard():void{
if (this._loaded == false){
return;
};
if (this.inSession == false){
return;
};
this._gamerSafe.closeScoreboard();
}
public function saveToScoreboard(_arg1:Number, _arg2:String, _arg3:int=-1, _arg4:String=""):void{
if (this._loaded == false){
return;
};
if (this.inSession == false){
return;
};
this._gamerSafe.saveToScoreboard(_arg1, _arg2, _arg3, _arg4);
}
public function showScoreSubmit(_arg1:Number, _arg2:String, _arg3:Boolean=false, _arg4:int=-1):void{
if (this._loaded == false){
return;
};
if (this.inSession == false){
return;
};
this._gamerSafe.showScoreSubmitPrompt(_arg1, _arg2, _arg4, _arg3);
}
public function showSmallScoreSubmit(_arg1:Number, _arg2:String, _arg3:Boolean=false, _arg4:int=-1):void{
if (this._loaded == false){
return;
};
if (this.inSession == false){
return;
};
this._gamerSafe.showSmallScoreSubmitPrompt(_arg1, _arg2, _arg4, _arg3);
}
public function requestScoreboardEntries(_arg1:int=-1):void{
if (this._loaded == false){
return;
};
if (this.inSession == false){
return;
};
this._gamerSafe.requestScoreboardEntries(_arg1);
}
public function get latestScoreboardEntries():Object{
if (this._loaded == false){
return (null);
};
return (this._gamerSafe.getLatestScoreboardEntries());
}
public function purchaseItemInterface(_arg1:int, _arg2:int=0):void{
if (this._loaded == false){
return;
};
if (this.inSession == false){
return;
};
this._gamerSafe.purchaseItemInterface(_arg1, _arg2);
}
public function closeItemInterface():void{
if (this._loaded == false){
return;
};
if (this.inSession == false){
return;
};
this._gamerSafe.closeItemInterface();
}
public function setStyle(_arg1:String, _arg2):void{
if (this._loaded == false){
this._tmpSkin[_arg1] = _arg2;
return;
};
var _local3:Object = new Object();
_local3[_arg1] = _arg2;
this._gamerSafe.setSkin(_local3);
}
public function getSkin():Object{
if (this._loaded == false){
return (null);
};
return (this._gamerSafe.getSkin());
}
public function setAchievementStyle(_arg1:String, _arg2):void{
if (this._loaded == false){
this._tmpAchievementSkin[_arg1] = _arg2;
return;
};
var _local3:Object = new Object();
_local3[_arg1] = _arg2;
this._gamerSafe.setAchievementSkin(_local3);
}
public function getAchievementSkin():Object{
if (this._loaded == false){
return (null);
};
return (this._gamerSafe.getAchievementSkin());
}
public function requestUnregisteredName():void{
if (this._loaded == false){
return;
};
if (this.inSession == false){
return;
};
this._gamerSafe.requestUnregisteredUserName();
}
public function set partner(_arg1:String):void{
if (this._loaded == false){
return;
};
this._gamerSafe.setPartner(_arg1);
}
public function getConsumptionsAvailable(_arg1:int):int{
if (this._loaded == false){
return (0);
};
if (this.inSession == false){
return (0);
};
return (this._gamerSafe.getConsumptionsAvailable(_arg1));
}
public function consumeItem(_arg1:int, _arg2:int):void{
if (this._loaded == false){
return;
};
if (this.inSession == false){
return;
};
this._gamerSafe.consumeItem(_arg1, _arg2);
}
public function requestOtherGameProfile(_arg1:String):void{
if (this._loaded == false){
return;
};
if (this.inSession == false){
return;
};
this._gamerSafe.requestOtherGameProfile(_arg1);
}
public function hideInterface():void{
if (this._loaded == false){
return;
};
this._gamerSafe.visible = false;
}
public function showInterface():void{
if (this._loaded == false){
return;
};
this._gamerSafe.visible = true;
}
public function setRegistrationDefaults(_arg1:Object):void{
if (this._loaded == false){
return;
};
this._gamerSafe.setRegisterDefaults(_arg1);
}
public function get userAuthKey():String{
if (this._loaded == false){
return (null);
};
return (this._gamerSafe.userAuthKey);
}
public function get gameAuthCode():String{
if (this._loaded == false){
return (null);
};
return (this._gamerSafe.gameAuthCode);
}
public function facebookConnect(_arg1:Boolean=false):void{
if (this._loaded == false){
return;
};
this._gamerSafe.facebookConnect(_arg1);
}
public function get facebookLoggedIn():Boolean{
if (this._loaded == false){
return (false);
};
return (this._gamerSafe.facebookLoggedIn);
}
public function get facebookFriends():Array{
if (this._loaded == false){
return ([]);
};
return (this._gamerSafe.facebookFriends);
}
public function get facebookLocalUser():Object{
if (this._loaded == false){
return ({});
};
return (this._gamerSafe.facebookLocalUser);
}
public function get facebookLocalUserId():int{
if (this._loaded == false){
return (0);
};
return (this._gamerSafe.facebookLocalUserId);
}
public function facebookWallPost(_arg1:String, _arg2:String="me"):void{
if (this._loaded == false){
return;
};
this._gamerSafe.facebookWallPost(_arg1, _arg2);
}
public function facebookConfigureAttachment(_arg1:String, _arg2:String=null, _arg3:String=null, _arg4:String=null, _arg5:String=null):void{
if (this._loaded == false){
return;
};
this._gamerSafe.facebookConfigureAttachment(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function facebookGetPicture(_arg1:String="me"):URLRequest{
if (this._loaded == false){
return (null);
};
return (this._gamerSafe.facebookGetPicture(_arg1));
}
public function showFriendsList(_arg1:int, _arg2:int, _arg3:int=400, _arg4:int=350):void{
if (this._loaded == false){
return;
};
this._gamerSafe.facebookShowFriendsList(_arg1, _arg2, _arg3, _arg4);
}
public function hideFriendsList():void{
if (this._loaded == false){
return;
};
this._gamerSafe.facebookHideFriendsList();
}
public function showPublisher(_arg1:int, _arg2:int, _arg3:Array=null, _arg4:int=400, _arg5:int=350):void{
var _local6:Array;
if (this._loaded == false){
return;
};
if (_arg3 != null){
this._gamerSafe.facebookShowPublisher(_arg3, _arg1, _arg2, _arg4, _arg5);
} else {
_local6 = [{id:"me"}];
this._gamerSafe.facebookShowPublisher(_local6, _arg1, _arg2, _arg4, _arg5);
};
}
public function hidePublisher():void{
if (this._loaded == false){
return;
};
this._gamerSafe.facebookHidePublisher();
}
public function showFriendsPanel(_arg1:int=400, _arg2:int=350):void{
if (this._loaded == false){
return;
};
this._gamerSafe.facebookShowFriendsPanel(_arg1, _arg2);
}
public function showPublisherPanel(_arg1:Array=null, _arg2:int=400, _arg3:int=350):void{
var _local4:Array;
if (this._loaded == false){
return;
};
if (_arg1 != null){
this._gamerSafe.facebookShowPublisherPanel(_arg1, _arg2, _arg3);
} else {
_local4 = [{id:"me"}];
this._gamerSafe.facebookShowPublisherPanel(_local4, _arg2, _arg3);
};
}
public function twitterConnect():void{
if (this._loaded == false){
return;
};
this._gamerSafe.twitterConnect();
}
public function get twitterLoggedIn():Boolean{
if (this._loaded == false){
return (false);
};
return (this._gamerSafe.twitterLoggedIn);
}
public function get twitterUser():XML{
if (this._loaded == false){
return (null);
};
return (this._gamerSafe.twitterUser);
}
public function twitterPost(_arg1:String, _arg2:Boolean=false):void{
if (this._loaded == false){
return;
};
this._gamerSafe.twitterPost(_arg1, _arg2);
}
public function twitterConfigure(_arg1:String, _arg2:String):void{
if (this._loaded == false){
return;
};
this._gamerSafe.twitterConfigure(_arg1, _arg2);
}
public function showTwitterPublisher(_arg1:int, _arg2:int, _arg3:int=400, _arg4:int=230):void{
if (this._loaded == false){
return;
};
this._gamerSafe.twitterShowPublisher(_arg1, _arg2, _arg3, _arg4);
}
public function hideTwitterPublisher():void{
if (this._loaded == false){
return;
};
this._gamerSafe.twitterHidePublisher();
}
public function showTwitterPublisherPanel(_arg1:int=400, _arg2:int=350):void{
if (this._loaded == false){
return;
};
this._gamerSafe.twitterShowPublisherPanel(_arg1, _arg2);
}
public function fetchUsernames(_arg1:Array=null):Array{
if (this._loaded == false){
return (null);
};
return (this._gamerSafe.fetchUsernames(_arg1));
}
public function getUsername(_arg1:uint):String{
if (this._loaded == false){
return (null);
};
return (this._gamerSafe.getUsername(_arg1));
}
public function fetchAvatars(_arg1:Array=null):Array{
if (this._loaded == false){
return (null);
};
return (this._gamerSafe.fetchAvatars(_arg1));
}
public function getAvatar(_arg1:uint):String{
if (this._loaded == false){
return (null);
};
return (this._gamerSafe.getAvatar(_arg1));
}
public function configureView(_arg1:Object):void{
if (this._loaded == false){
return;
};
this._gamerSafe.configureView(_arg1);
}
protected function levelVaultFail(_arg1:String, _arg2=false){
trace("[ LevelVault Error:", _arg1, "]");
this._levelVaultLastError = _arg1;
return (_arg2);
}
public function get levelVaultLastError():String{
return (this._levelVaultLastError);
}
public function get levelVaultReady():Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultReady);
}
private function get levelVaultEventObject():EventDispatcher{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", null));
};
return (this._gamerSafe.levelVaultEventObject);
}
public function levelVaultCreateLevel(_arg1):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
if ((_arg1 is ByteArray)){
return (this.levelVaultCreateLevelFromBytes(_arg1));
};
return (this.levelVaultCreateLevelFromObject(_arg1));
}
public function levelVaultCreateLevelFromBytes(_arg1:ByteArray):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultCreateLevel(_arg1));
}
public function levelVaultCreateLevelFromObject(_arg1:Object):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultCreateLevelFromObject(_arg1));
}
public function levelVaultCreateLevelWithAttributes(_arg1, _arg2:Object):Boolean{
if (this.levelVaultCreateLevel(_arg1)){
this._levelVaultTempAttributes = _arg2;
addEventListener(_slot1.EVT_LEVELVAULT_LEVEL_CREATED, this.levelVaultSetTempAttributes);
return (true);
};
return (this.levelVaultFail(this._levelVaultLastError));
}
private function levelVaultSetTempAttributes(_arg1:Event):void{
removeEventListener(_slot1.EVT_LEVELVAULT_LEVEL_CREATED, this.levelVaultSetTempAttributes);
this.levelVaultSetAttributes(this.levelVaultLastCreatedLevelID, this._levelVaultTempAttributes);
this._levelVaultTempAttributes = {};
}
public function get levelVaultLastCreatedLevelID():uint{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", 0));
};
return (this._gamerSafe.levelVaultGetLastCreatedLevelID());
}
public function levelVaultEditLevel(_arg1, _arg2:ByteArray):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultEditLevel(_arg1, _arg2));
}
public function get levelVaultLastEditedLevelID():uint{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", 0));
};
return (this._gamerSafe.levelVaultGetLastEditedLevelID());
}
public function levelVaultGetLastSelectedLevel():Object{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", null));
};
return (this._gamerSafe.levelVaultGetLastSelectedLevel());
}
public function levelVaultGetNumLevels():uint{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", 0));
};
return (this._gamerSafe.levelVaultGetNumLevels());
}
public function levelVaultGetLastNumLevels():int{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", 0));
};
return (this._gamerSafe.levelVaultGetLastNumLevels());
}
public function levelVaultGetLastSelectedLevels():Array{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", []));
};
return (this._gamerSafe.levelVaultGetLastSelectedLevels());
}
public function levelVaultGetLastIndex():Array{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", []));
};
return (this._gamerSafe.levelVaultGetLastIndex());
}
public function levelVaultGetLastRanking():int{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", -1));
};
return (this._gamerSafe.levelVaultGetLastRanking());
}
public function levelVaultGetLevelAttributes(_arg1:Object=null):Array{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", []));
};
return (this._gamerSafe.levelVaultGetLevelAttributes(_arg1));
}
public function levelVaultGetLevelData(_arg1:Object=null):ByteArray{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", null));
};
return (this._gamerSafe.levelVaultGetLevelData(_arg1));
}
public function levelVaultGetLevelID(_arg1:Object=null):uint{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", null));
};
return (this._gamerSafe.levelVaultGetLevelID(_arg1));
}
public function levelVaultGetLevelRating(_arg1:Object=null):Number{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", 0));
};
return (this._gamerSafe.levelVaultGetLevelRating(_arg1));
}
public function levelVaultGetLevelNumRatings(_arg1:Object=null):int{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", 0));
};
return (this._gamerSafe.levelVaultGetLevelNumRatings(_arg1));
}
public function levelVaultSetNumericAttribute(_arg1, _arg2:String, _arg3:Number):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultSetNumericAttribute(_arg1, _arg2, _arg3));
}
public function levelVaultSetNumericAttributes(_arg1, _arg2:Array, _arg3:Array):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultSetNumericAttributes(_arg1, _arg2, _arg3));
}
public function levelVaultSetExpiringNumericAttribute(_arg1, _arg2:String, _arg3:Number, _arg4:String):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this.levelVaultSetExpiringNumericAttributes(_arg1, [_arg2], [_arg3], [_arg4]));
}
public function levelVaultSetExpiringNumericAttributes(_arg1, _arg2:Array, _arg3:Array, _arg4:Array):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultSetExpiringNumericAttributes(_arg1, _arg2, _arg3, _arg4));
}
public function levelVaultSetStringAttribute(_arg1, _arg2:String, _arg3:String):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultSetStringAttribute(_arg1, _arg2, _arg3));
}
public function levelVaultSetStringAttributes(_arg1, _arg2:Array, _arg3:Array):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultSetStringAttributes(_arg1, _arg2, _arg3));
}
public function levelVaultSetExpiringStringAttribute(_arg1, _arg2:String, _arg3:String, _arg4:String):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this.levelVaultSetExpiringStringAttributes(_arg1, [_arg2], [_arg3], [_arg4]));
}
public function levelVaultSetExpiringStringAttributes(_arg1, _arg2:Array, _arg3:Array, _arg4:Array):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultSetExpiringStringAttributes(_arg1, _arg2, _arg3, _arg4));
}
public function levelVaultIncrementNumeric(_arg1, _arg2:String):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultIncrementNumeric(_arg1, _arg2));
}
public function levelVaultIncrementNumerics(_arg1, _arg2:Array):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultIncrementNumerics(_arg1, _arg2));
}
public function levelVaultFlagLevel(_arg1):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultFlagLevel(_arg1));
}
public function levelVaultRateLevel(_arg1, _arg2:uint):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultRateLevel(_arg1, _arg2));
}
public function levelVaultDeleteLevel(_arg1):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultDeleteLevel(_arg1));
}
public function levelVaultSetAttributes(_arg1, _arg2:Object):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultSetAttributes(_arg1, _arg2));
}
public function levelVaultGetLevelAsObject(_arg1:Object=null):Object{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", null));
};
return (this._gamerSafe.levelVaultGetLevelAsObject(_arg1));
}
public function levelVaultGetLevelAsCustomObject(_arg1:Class, _arg2:Object=null){
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", null));
};
return (this._gamerSafe.levelVaultGetLevelAsCustomObject(_arg1, _arg2));
}
public function levelVaultGetLevelRanking(_arg1:int, _arg2:String, _arg3:Boolean=false):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultGetLevelRanking(_arg1, _arg2, _arg3));
}
public function levelVaultGetAttributeRanking(_arg1:int, _arg2:String, _arg3:Boolean=false):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultGetAttributeRanking(_arg1, _arg2, _arg3));
}
public function levelVaultFetchLevelByID(_arg1:int):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded"));
};
return (this._gamerSafe.levelVaultFetchLevelByID(_arg1));
}
public function levelVaultGetLevelsByDateCreated(_arg1:String, _arg2:String, _arg3:Boolean=true, _arg4:uint=20, _arg5:uint=0):int{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", 0));
};
return (this._gamerSafe.levelVaultGetLevelsByDateCreated(_arg1, _arg2, _arg3, _arg4, _arg5));
}
public function levelVaultGetLevelsByDateModified(_arg1:String, _arg2:String, _arg3:Boolean=true, _arg4:uint=20, _arg5:uint=0):int{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", 0));
};
return (this._gamerSafe.levelVaultGetLevelsByDateModified(_arg1, _arg2, _arg3, _arg4, _arg5));
}
public function levelVaultGetLevelsByRating(_arg1:Number, _arg2:Number, _arg3:Boolean=true, _arg4:uint=20, _arg5:uint=0):int{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", 0));
};
return (this._gamerSafe.levelVaultGetLevelsByRating(_arg1, _arg2, _arg3, _arg4, _arg5));
}
public function levelVaultGetAllLevels(_arg1:Boolean=true, _arg2:uint=20, _arg3:uint=0):int{
return (this.levelVaultGetLevelsByRating(0, 10, _arg1, _arg2, _arg3));
}
public function levelVaultGetLevelsRandom(_arg1:uint):int{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", 0));
};
return (this._gamerSafe.levelVaultGetLevelsRandom(_arg1));
}
public function levelVaultGetLevelsByNumericData(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=true, _arg5:uint=20, _arg6:uint=0):int{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", 0));
};
return (this._gamerSafe.levelVaultGetLevelsByNumericData(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6));
}
public function levelVaultGetLevelsByStringData(_arg1:String, _arg2:String, _arg3:Boolean=true, _arg4:uint=20, _arg5:uint=0):int{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", 0));
};
return (this._gamerSafe.levelVaultGetLevelsByStringData(_arg1, _arg2, _arg3, _arg4, _arg5));
}
public function levelVaultGetLevelsLike(_arg1:String, _arg2:String, _arg3:Boolean=true, _arg4:uint=20, _arg5:uint=0):int{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", 0));
};
return (this._gamerSafe.levelVaultGetLevelsLike(_arg1, _arg2, _arg3, _arg4, _arg5));
}
public function levelVaultGetLevelsAdvanced(_arg1:Array, _arg2:Array, _arg3:uint=20, _arg4:uint=0):int{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", 0));
};
return (this._gamerSafe.levelVaultGetLevelsAdvanced(_arg1, _arg2, _arg3, _arg4));
}
public function levelVaultGetIndexAdvanced(_arg1:Array, _arg2:Array, _arg3:uint=20, _arg4:uint=0):int{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", 0));
};
return (this._gamerSafe.levelVaultGetIndexAdvanced(_arg1, _arg2, _arg3, _arg4));
}
public function levelVaultGetNumLevelsAdvanced(_arg1:Array):int{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", 0));
};
return (this._gamerSafe.levelVaultGetNumLevelsAdvanced(_arg1));
}
public function get levelVaultLastSelectedLevelsReceipt():int{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", 0));
};
return (this._gamerSafe.levelVaultLastSelectedLevelsReceipt);
}
public function get levelVaultShareCookie():String{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", null));
};
return (this._gamerSafe.levelVaultShareCookie);
}
public function levelVaultSwitchGame(_arg1:String=""):Boolean{
if (this._loaded == false){
return (this.levelVaultFail("API not yet loaded", null));
};
return (this._gamerSafe.levelVaultSwitchGame(_arg1));
}
public function levelVaultRegisterCallback(_arg1:Function, ... _args):void{
var _local4:*;
if (this._gamerSafe == null){
trace("GamerSafe is not ready to register the LV Callback! Please wait for BeginSession.");
return;
};
var _local3:Array = [];
_local3.push(_arg1);
for each (_local4 in _args) {
_local3.push(_local4);
};
(this._gamerSafe.levelVaultRegisterCallback as Function).apply(this, _local3);
}
public function levelVaultRegisterErrorCallback(_arg1:Function, ... _args):void{
var _local4:*;
if (this._gamerSafe == null){
trace("GamerSafe is not ready to register the Error Callback! Please wait for BeginSession.");
return;
};
var _local3:Array = [];
_local3.push(_arg1);
for each (_local4 in _args) {
_local3.push(_local4);
};
(this._gamerSafe.levelVaultRegisterErrorCallback as Function).apply(this, _local3);
}
public function levelVaultRegisterPersistentErrorCallback(_arg1:Function, ... _args):void{
var _local4:*;
if (this._gamerSafe == null){
trace("GamerSafe is not ready to register the Persistent Error Callback! Please wait for BeginSession.");
return;
};
var _local3:Array = [];
_local3.push(_arg1);
for each (_local4 in _args) {
_local3.push(_local4);
};
(this._gamerSafe.levelVaultRegisterPersistentErrorCallback as Function).apply(this, _local3);
}
public function set onNetworkingError(_arg1:Function):void{
this._evt_networkingError = _arg1;
}
public function get onNetworkingError():Function{
return (this._evt_networkingError);
}
private function e_onNetworkingError(_arg1:Event):void{
if (this._evt_networkingError != null){
this._evt_networkingError();
};
dispatchEvent(_arg1);
}
public function set onAccountChange(_arg1:Function):void{
this._evt_accountChange = _arg1;
}
public function get onAccountChange():Function{
return (this._evt_accountChange);
}
private function e_onAccountChange(_arg1:Event):void{
if (this._evt_accountChange != null){
this._evt_accountChange();
};
dispatchEvent(_arg1);
}
public function set onLogin(_arg1:Function):void{
this._evt_login = _arg1;
}
public function get onLogin():Function{
return (this._evt_login);
}
private function e_onLogin(_arg1:Event):void{
if (this._evt_login != null){
this._evt_login();
};
this.flashBar();
dispatchEvent(_arg1);
}
public function set onLoginFailed(_arg1:Function):void{
this._evt_loginFailed = _arg1;
}
public function get onLoginFailed():Function{
return (this._evt_loginFailed);
}
private function e_onLoginFailed(_arg1:Event):void{
if (this._evt_loginFailed != null){
this._evt_loginFailed();
};
dispatchEvent(_arg1);
}
public function set onAutoLoginFailed(_arg1:Function):void{
this._evt_autoLoginFailed = _arg1;
}
public function get onAutoLoginFailed():Function{
return (this._evt_autoLoginFailed);
}
private function e_onAutoLoginFailed(_arg1:Event):void{
if (this._evt_autoLoginFailed != null){
this._evt_autoLoginFailed();
};
dispatchEvent(_arg1);
}
public function set onOtherGameProfileReceived(_arg1:Function):void{
this._evt_onOtherGameProfileReceived = _arg1;
}
public function get onOtherGameProfileReceived():Function{
return (this._evt_onOtherGameProfileReceived);
}
private function e_onOtherGameProfileReceived(_arg1:Event):void{
if (this._evt_onOtherGameProfileReceived != null){
this._evt_onOtherGameProfileReceived();
};
dispatchEvent(_arg1);
}
public function set onBeginSession(_arg1:Function):void{
this._evt_beginSession = _arg1;
}
public function get onBeginSession():Function{
return (this._evt_beginSession);
}
private function e_onBeginSession(_arg1:Event):void{
if (this._evt_beginSession != null){
this._evt_beginSession();
};
dispatchEvent(_arg1);
}
public function set onBeginSessionFailed(_arg1:Function):void{
this._evt_beginSessionFailed = _arg1;
}
public function get onBeginSessionFailed():Function{
return (this._evt_beginSessionFailed);
}
private function e_onBeginSessionFailed(_arg1:Event):void{
if (this._evt_beginSessionFailed != null){
this._evt_beginSessionFailed();
};
dispatchEvent(_arg1);
}
public function set onItemPurchase(_arg1:Function):void{
this._evt_itemPurchase = _arg1;
}
public function get onItemPurchase():Function{
return (this._evt_itemPurchase);
}
private function e_onItemPurchase(_arg1:Event):void{
if (this._evt_itemPurchase != null){
this._evt_itemPurchase();
};
dispatchEvent(_arg1);
}
public function set onItemPurchaseCanceled(_arg1:Function):void{
this._evt_itemPurchaseCanceled = _arg1;
}
public function get onItemPurchaseCanceled():Function{
return (this._evt_itemPurchaseCanceled);
}
private function e_onItemPurchaseCanceled(_arg1:Event):void{
if (this._evt_itemPurchaseCanceled != null){
this._evt_itemPurchaseCanceled();
};
dispatchEvent(_arg1);
}
public function set onItemPurchaseFailed(_arg1:Function):void{
this._evt_itemPurchaseFailed = _arg1;
}
public function get onItemPurchaseFailed():Function{
return (this._evt_itemPurchaseFailed);
}
private function e_onItemPurchaseFailed(_arg1:Event):void{
if (this._evt_itemPurchaseFailed != null){
this._evt_itemPurchaseFailed();
};
dispatchEvent(_arg1);
}
public function set onApiReady(_arg1:Function):void{
this._evt_apiReady = _arg1;
}
public function get onApiReady():Function{
return (this._evt_apiReady);
}
private function e_onApiReady(_arg1:Event):void{
if (this._evt_apiReady != null){
this._evt_apiReady();
};
dispatchEvent(_arg1);
}
public function set onConfirmYes(_arg1:Function):void{
this._evt_confYes = _arg1;
}
public function get onConfirmYes():Function{
return (this._evt_confYes);
}
private function e_onConfirmYes(_arg1:Event):void{
if (this._evt_confYes != null){
this._evt_confYes();
};
dispatchEvent(new Event("confirmedYes"));
}
public function set onConfirmNo(_arg1:Function):void{
this._evt_confNo = _arg1;
}
public function get onConfirmNo():Function{
return (this._evt_confNo);
}
private function e_onConfirmNo(_arg1:Event):void{
if (this._evt_confNo != null){
this._evt_confNo();
};
dispatchEvent(new Event("confirmedNo"));
}
public function get dialogsOpen():uint{
return (this._dialogsOpen);
}
public function set onUseChanged(_arg1:Function):void{
this._evt_useChanged = _arg1;
}
public function get onUseChanged():Function{
return (this._evt_useChanged);
}
public function set onUseStarted(_arg1:Function):void{
this._evt_useStarted = _arg1;
}
public function get onUseStarted():Function{
return (this._evt_useStarted);
}
private function e_onUseStarted(_arg1):void{
this._dialogsOpen++;
if (this._dialogsOpen > 1){
return;
};
this._inUse = true;
if (this._evt_useChanged != null){
this._evt_useChanged();
};
if (this._evt_useStarted != null){
this._evt_useStarted();
};
dispatchEvent(new Event(EVT_INUSE_STARTED));
dispatchEvent(new Event(EVT_INUSE_CHANGED));
}
public function set onUseEnded(_arg1:Function):void{
this._evt_useEnded = _arg1;
}
public function get onUseEnded():Function{
return (this._evt_useEnded);
}
private function e_onUseEnded(_arg1):void{
this._dialogsOpen--;
if (this._dialogsOpen > 0){
return;
};
this._inUse = false;
if (this._evt_useChanged != null){
this._evt_useChanged();
};
if (this._evt_useEnded != null){
this._evt_useEnded();
};
dispatchEvent(new Event(EVT_INUSE_ENDED));
dispatchEvent(new Event(EVT_INUSE_CHANGED));
}
public function set onScoreboardError(_arg1:Function):void{
this._evt_onScoreboardError = _arg1;
}
public function get onScoreboardError():Function{
return (this._evt_onScoreboardError);
}
private function e_onScoreboardError(_arg1:Event):void{
if (this._evt_onScoreboardError != null){
this._evt_onScoreboardError();
};
dispatchEvent(_arg1);
}
public function set onScoreboardRecieved(_arg1:Function):void{
this._evt_onScoreboardRecieved = _arg1;
}
public function get onScoreboardRecieved():Function{
return (this._evt_onScoreboardRecieved);
}
private function e_onScoreboardRecieved(_arg1:Event):void{
if (this._evt_onScoreboardRecieved != null){
this._evt_onScoreboardRecieved();
};
dispatchEvent(_arg1);
}
public function set onScoreSubmitted(_arg1:Function):void{
this._evt_onScoreSubmitted = _arg1;
}
public function get onScoreSubmitted():Function{
return (this._evt_onScoreSubmitted);
}
private function e_onScoreSubmitted(_arg1:Event):void{
if (this._evt_onScoreSubmitted != null){
this._evt_onScoreSubmitted();
};
dispatchEvent(_arg1);
}
public function set onUnregisteredName(_arg1:Function):void{
this._evt_onUnregisteredName = _arg1;
}
public function get onUnregisteredName():Function{
return (this._evt_onUnregisteredName);
}
private function e_onUnregisteredName(_arg1:Event):void{
if (this._evt_onUnregisteredName != null){
this._evt_onUnregisteredName();
};
dispatchEvent(_arg1);
}
public function set onConsumptionCompleted(_arg1:Function):void{
this._evt_onConsumptionCompleted = _arg1;
}
public function get onConsumptionCompleted():Function{
return (this._evt_onConsumptionCompleted);
}
private function e_onConsumptionCompleted(_arg1:Event):void{
if (this._evt_onConsumptionCompleted != null){
this._evt_onConsumptionCompleted();
};
dispatchEvent(_arg1);
}
public function set onRegistrationFormClosed(_arg1:Function):void{
this._evt_onRegistrationFormClosed = _arg1;
}
public function get onRegistrationFormClosed():Function{
return (this._evt_onRegistrationFormClosed);
}
private function e_onRegistrationFormClosed(_arg1:Event):void{
if (this._evt_onRegistrationFormClosed != null){
this._evt_onRegistrationFormClosed();
};
dispatchEvent(_arg1);
}
public function set onLoginFormClosed(_arg1:Function):void{
this._evt_onLoginFormClosed = _arg1;
}
public function get onLoginFormClosed():Function{
return (this._evt_onLoginFormClosed);
}
private function e_onLoginFormClosed(_arg1:Event):void{
if (this._evt_onLoginFormClosed != null){
this._evt_onLoginFormClosed();
};
dispatchEvent(_arg1);
}
public function set onBridgeSuccess(_arg1:Function):void{
this._evt_onBridgeSuccess = _arg1;
}
public function get onBridgeSuccess():Function{
return (this._evt_onBridgeSuccess);
}
private function e_onBridgeSuccess(_arg1:Event):void{
if (this._evt_onBridgeSuccess != null){
this._evt_onBridgeSuccess();
};
dispatchEvent(_arg1);
}
public function set onBridgeError(_arg1:Function):void{
this._evt_onBridgeError = _arg1;
}
public function get onBridgeError():Function{
return (this._evt_onBridgeError);
}
private function e_onBridgeError(_arg1:Event):void{
if (this._evt_onBridgeError != null){
this._evt_onBridgeError();
};
dispatchEvent(_arg1);
}
public function set onPaymentPanelShown(_arg1:Function):void{
this._evt_onPaymentPanelShown = _arg1;
}
public function get onPaymentPanelShown():Function{
return (this._evt_onPaymentPanelShown);
}
private function e_onPaymentPanelShown(_arg1:Event):void{
if (this._evt_onPaymentPanelShown != null){
this._evt_onPaymentPanelShown();
};
dispatchEvent(_arg1);
}
public function set onPaymentPanelHidden(_arg1:Function):void{
this._evt_onPaymentPanelHidden = _arg1;
}
public function get onPaymentPanelHidden():Function{
return (this._evt_onPaymentPanelHidden);
}
private function e_onPaymentPanelHidden(_arg1:Event):void{
if (this._evt_onPaymentPanelHidden != null){
this._evt_onPaymentPanelHidden();
};
dispatchEvent(_arg1);
}
public function set onStatusBarMouseOver(_arg1:Function):void{
this._evt_onStatusBarMouseOver = _arg1;
}
public function get onStatusBarMouseOver():Function{
return (this._evt_onStatusBarMouseOver);
}
private function e_onStatusBarMouseOver(_arg1:Event):void{
if (this._evt_onStatusBarMouseOver != null){
this._evt_onStatusBarMouseOver();
};
dispatchEvent(_arg1);
}
public function set onStatusBarMouseOut(_arg1:Function):void{
this._evt_onStatusBarMouseOut = _arg1;
}
public function get onStatusBarMouseOut():Function{
return (this._evt_onStatusBarMouseOut);
}
private function e_onStatusBarMouseOut(_arg1:Event):void{
if (this._evt_onStatusBarMouseOut != null){
this._evt_onStatusBarMouseOut();
};
dispatchEvent(_arg1);
}
public function set onLevelVaultGotLevels(_arg1:Function):void{
this._evt_onLevelVaultGotLevels = _arg1;
}
public function get onLevelVaultGotLevels():Function{
return (this._evt_onLevelVaultGotLevels);
}
private function e_onLevelVaultGotLevels(_arg1:Event):void{
if (this._evt_onLevelVaultGotLevels != null){
this._evt_onLevelVaultGotLevels();
};
dispatchEvent(_arg1);
}
public function set onLevelVaultGotIndex(_arg1:Function):void{
this._evt_onLevelVaultGotIndex = _arg1;
}
public function get onLevelVaultGotIndex():Function{
return (this._evt_onLevelVaultGotIndex);
}
private function e_onLevelVaultGotIndex(_arg1:Event):void{
if (this._evt_onLevelVaultGotIndex != null){
this._evt_onLevelVaultGotIndex();
};
dispatchEvent(_arg1);
}
public function set onLevelVaultGotLevel(_arg1:Function):void{
this._evt_onLevelVaultGotLevel = _arg1;
}
public function get onLevelVaultGotLevel():Function{
return (this._evt_onLevelVaultGotLevel);
}
private function e_onLevelVaultGotLevel(_arg1:Event):void{
if (this._evt_onLevelVaultGotLevel != null){
this._evt_onLevelVaultGotLevel();
};
dispatchEvent(_arg1);
}
public function set onLevelVaultGotNumLevels(_arg1:Function):void{
this._evt_onLevelVaultGotNumLevels = _arg1;
}
public function get onLevelVaultGotNumLevels():Function{
return (this._evt_onLevelVaultGotNumLevels);
}
private function e_onLevelVaultGotNumLevels(_arg1:Event):void{
if (this._evt_onLevelVaultGotNumLevels != null){
this._evt_onLevelVaultGotNumLevels();
};
dispatchEvent(_arg1);
}
public function set onLevelVaultGotLevelRanking(_arg1:Function):void{
this._evt_onLevelVaultGotLevelRanking = _arg1;
}
public function get onLevelVaultGotLevelRanking():Function{
return (this._evt_onLevelVaultGotLevelRanking);
}
private function e_onLevelVaultGotLevelRanking(_arg1:Event):void{
if (this._evt_onLevelVaultGotLevelRanking != null){
this._evt_onLevelVaultGotLevelRanking();
};
dispatchEvent(_arg1);
}
public function set onLevelVaultLevelCreated(_arg1:Function):void{
this._evt_onLevelVaultLevelCreated = _arg1;
}
public function get onLevelVaultLevelCreated():Function{
return (this._evt_onLevelVaultLevelCreated);
}
private function e_onLevelVaultLevelCreated(_arg1:Event):void{
if (this._evt_onLevelVaultLevelCreated != null){
this._evt_onLevelVaultLevelCreated();
};
dispatchEvent(_arg1);
}
public function set onLevelVaultLevelAttributesChanged(_arg1:Function):void{
this._evt_onLevelVaultLevelAttributesChanged = _arg1;
}
public function get onLevelVaultLevelAttributesChanged():Function{
return (this._evt_onLevelVaultLevelAttributesChanged);
}
private function e_onLevelVaultLevelAttributesChanged(_arg1:Event):void{
if (this._evt_onLevelVaultLevelAttributesChanged != null){
this._evt_onLevelVaultLevelAttributesChanged();
};
dispatchEvent(_arg1);
}
public function set onLevelVaultLevelDeleted(_arg1:Function):void{
this._evt_onLevelVaultLevelDeleted = _arg1;
}
public function get onLevelVaultLevelDeleted():Function{
return (this._evt_onLevelVaultLevelDeleted);
}
private function e_onLevelVaultLevelDeleted(_arg1:Event):void{
if (this._evt_onLevelVaultLevelDeleted != null){
this._evt_onLevelVaultLevelDeleted();
};
dispatchEvent(_arg1);
}
public function set onLevelVaultLevelEdited(_arg1:Function):void{
this._evt_onLevelVaultLevelEdited = _arg1;
}
public function get onLevelVaultLevelEdited():Function{
return (this._evt_onLevelVaultLevelEdited);
}
private function e_onLevelVaultLevelEdited(_arg1:Event):void{
if (this._evt_onLevelVaultLevelEdited != null){
this._evt_onLevelVaultLevelEdited();
};
dispatchEvent(_arg1);
}
public function set onLevelVaultLevelFlagged(_arg1:Function):void{
this._evt_onLevelVaultLevelFlagged = _arg1;
}
public function get onLevelVaultLevelFlagged():Function{
return (this._evt_onLevelVaultLevelFlagged);
}
private function e_onLevelVaultLevelFlagged(_arg1:Event):void{
if (this._evt_onLevelVaultLevelFlagged != null){
this._evt_onLevelVaultLevelFlagged();
};
dispatchEvent(_arg1);
}
public function set onLevelVaultLevelNumericsIncremented(_arg1:Function):void{
this._evt_onLevelVaultLevelNumericsIncremented = _arg1;
}
public function get onLevelVaultLevelNumericsIncremented():Function{
return (this._evt_onLevelVaultLevelNumericsIncremented);
}
private function e_onLevelVaultLevelNumericsIncremented(_arg1:Event):void{
if (this._evt_onLevelVaultLevelNumericsIncremented != null){
this._evt_onLevelVaultLevelNumericsIncremented();
};
dispatchEvent(_arg1);
}
public function set onLevelVaultLevelNumericsSet(_arg1:Function):void{
this._evt_onLevelVaultLevelNumericsSet = _arg1;
}
public function get onLevelVaultLevelNumericsSet():Function{
return (this._evt_onLevelVaultLevelNumericsSet);
}
private function e_onLevelVaultLevelNumericsSet(_arg1:Event):void{
if (this._evt_onLevelVaultLevelNumericsSet != null){
this._evt_onLevelVaultLevelNumericsSet();
};
dispatchEvent(_arg1);
}
public function set onLevelVaultLevelRated(_arg1:Function):void{
this._evt_onLevelVaultLevelRated = _arg1;
}
public function get onLevelVaultLevelRated():Function{
return (this._evt_onLevelVaultLevelRated);
}
private function e_onLevelVaultLevelRated(_arg1:Event):void{
if (this._evt_onLevelVaultLevelStringsSet != null){
this._evt_onLevelVaultLevelStringsSet();
};
dispatchEvent(_arg1);
}
public function set onLevelVaultLevelStringsSet(_arg1:Function):void{
this._evt_onLevelVaultLevelStringsSet = _arg1;
}
public function get onLevelVaultLevelStringsSet():Function{
return (this._evt_onLevelVaultLevelStringsSet);
}
private function e_onLevelVaultLevelStringsSet(_arg1:Event):void{
if (this._evt_onLevelVaultLevelStringsSet != null){
this._evt_onLevelVaultLevelStringsSet();
};
dispatchEvent(_arg1);
}
public function set onFacebookConnected(_arg1:Function):void{
this._evt_onFacebookConnected = _arg1;
}
public function get onFacebookConnected():Function{
return (this._evt_onFacebookConnected);
}
private function e_onFacebookConnected(_arg1:Event):void{
if (this._evt_onFacebookConnected != null){
this._evt_onFacebookConnected();
};
dispatchEvent(_arg1);
}
public function set onFacebookLoginFailed(_arg1:Function):void{
this._evt_onFacebookLoginFailed = _arg1;
}
public function get onFacebookLoginFailed():Function{
return (this._evt_onFacebookLoginFailed);
}
private function e_onFacebookLoginFailed(_arg1:Event):void{
if (this._evt_onFacebookLoginFailed != null){
this._evt_onFacebookLoginFailed();
};
dispatchEvent(_arg1);
}
public function set onFacebookGotLocalUser(_arg1:Function):void{
this._evt_onFacebookGotLocalUser = _arg1;
}
public function get onFacebookGotLocalUser():Function{
return (this._evt_onFacebookGotLocalUser);
}
private function e_onFacebookGotLocalUser(_arg1:Event):void{
if (this._evt_onFacebookGotLocalUser != null){
this._evt_onFacebookGotLocalUser();
};
dispatchEvent(_arg1);
}
public function set onFacebookGotFriends(_arg1:Function):void{
this._evt_onFacebookGotFriends = _arg1;
}
public function get onFacebookGotFriends():Function{
return (this._evt_onFacebookGotFriends);
}
private function e_onFacebookGotFriends(_arg1:Event):void{
if (this._evt_onFacebookGotFriends != null){
this._evt_onFacebookGotFriends();
};
dispatchEvent(_arg1);
}
public function set onFacebookWallPostSuccess(_arg1:Function):void{
this._evt_onFacebookWallPostSuccess = _arg1;
}
public function get onFacebookWallPostSuccess():Function{
return (this._evt_onFacebookWallPostSuccess);
}
private function e_onFacebookWallPostSuccess(_arg1:Event):void{
if (this._evt_onFacebookWallPostSuccess != null){
this._evt_onFacebookWallPostSuccess();
};
dispatchEvent(_arg1);
}
public function set onFacebookWallPostFailed(_arg1:Function):void{
this._evt_onFacebookWallPostFailed = _arg1;
}
public function get onFacebookWallPostFailed():Function{
return (this._evt_onFacebookWallPostFailed);
}
private function e_onFacebookWallPostFailed(_arg1:Event):void{
if (this._evt_onFacebookWallPostFailed != null){
this._evt_onFacebookWallPostFailed();
};
dispatchEvent(_arg1);
}
public function set onFacebookPromptClosed(_arg1:Function):void{
this._evt_onFacebookPromptClosed = _arg1;
}
public function get onFacebookPromptClosed():Function{
return (this._evt_onFacebookPromptClosed);
}
private function e_onFacebookPromptClosed(_arg1:Event):void{
if (this._evt_onFacebookPromptClosed != null){
this._evt_onFacebookPromptClosed();
};
dispatchEvent(_arg1);
}
public function set onTwitterConnected(_arg1:Function):void{
this._evt_onTwitterConnected = _arg1;
}
public function get onTwitterConnected():Function{
return (this._evt_onTwitterConnected);
}
private function e_onTwitterConnected(_arg1:Event):void{
if (this._evt_onTwitterConnected != null){
this._evt_onTwitterConnected();
};
dispatchEvent(_arg1);
}
public function set onTwitterLoginFailed(_arg1:Function):void{
this._evt_onTwitterLoginFailed = _arg1;
}
public function get onTwitterLoginFailed():Function{
return (this._evt_onTwitterLoginFailed);
}
private function e_onTwitterLoginFailed(_arg1:Event):void{
if (this._evt_onTwitterLoginFailed != null){
this._evt_onTwitterLoginFailed();
};
dispatchEvent(_arg1);
}
public function set onTwitterGotUser(_arg1:Function):void{
this._evt_onTwitterGotUser = _arg1;
}
public function get onTwitterGotUser():Function{
return (this._evt_onTwitterGotUser);
}
private function e_onTwitterGotUser(_arg1:Event):void{
if (this._evt_onTwitterGotUser != null){
this._evt_onTwitterGotUser();
};
dispatchEvent(_arg1);
}
public function set onTwitterPostSuccess(_arg1:Function):void{
this._evt_onTwitterPostSuccess = _arg1;
}
public function get onTwitterPostSuccess():Function{
return (this._evt_onTwitterPostSuccess);
}
private function e_onTwitterPostSuccess(_arg1:Event):void{
if (this._evt_onTwitterPostSuccess != null){
this._evt_onTwitterPostSuccess();
};
dispatchEvent(_arg1);
}
public function set onTwitterPostFailed(_arg1:Function):void{
this._evt_onTwitterPostFailed = _arg1;
}
public function get onTwitterPostFailed():Function{
return (this._evt_onTwitterPostFailed);
}
private function e_onTwitterPostFailed(_arg1:Event):void{
if (this._evt_onTwitterPostFailed != null){
this._evt_onTwitterPostFailed();
};
dispatchEvent(_arg1);
}
public function set onTwitterPromptClosed(_arg1:Function):void{
this._evt_onTwitterPromptClosed = _arg1;
}
public function get onTwitterPromptClosed():Function{
return (this._evt_onTwitterPromptClosed);
}
private function e_onTwitterPromptClosed(_arg1:Event):void{
if (this._evt_onTwitterPromptClosed != null){
this._evt_onTwitterPromptClosed();
};
dispatchEvent(_arg1);
}
public function disable():void{
if (this._status == "Ready"){
this._status = "Disabled";
this._loaded = false;
};
}
public function enable():void{
if (this._status == "Disabled"){
this._status = "Ready";
this._loaded = true;
};
}
private function resizeStage(_arg1:Event):void{
if (this.loaded == false){
return;
};
this._stageWidth = this._stage.stageWidth;
this._stageHeight = this._stage.stageHeight;
this._gamerSafe.componentWidth = this._stageWidth;
this._gamerSafe.componentHeight = this._stageHeight;
}
private function setupStage(_arg1:Event):void{
if (stage == null){
return;
};
this._stage = stage;
this._stage.addEventListener(Event.RESIZE, this.resizeStage);
this._stageWidth = stage.stageWidth;
this._stageHeight = stage.stageHeight;
if (root != null){
this._referrer = root.loaderInfo.loaderURL;
};
if (this.loaded){
this._gamerSafe.componentWidth = this._stageWidth;
this._gamerSafe.componentHeight = this._stageHeight;
this._stage.addChild((this._gamerSafe as Sprite));
};
}
private function onLoadingCompleteAir(_arg1:Event):void{
this._status = "Loading";
var _local2:LoaderContext = new LoaderContext();
if (("allowLoadBytesCodeExecution" in _local2)){
_local2["allowLoadBytesCodeExecution"] = true;
};
this._loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, this.onLoadingCompleteAir);
this._loader.contentLoaderInfo.addEventListener(Event.COMPLETE, this.onLoadingComplete);
this._loader.loadBytes(this._loader.contentLoaderInfo.bytes, _local2);
}
private function onLoadingComplete(_arg1:Event):void{
this._status = "Ready";
this._loaded = true;
this._gamerSafe = (this._loader.content as Object);
this._gamerSafe.componentWidth = this._stageWidth;
this._gamerSafe.componentHeight = this._stageHeight;
this._gamerSafe.setSkin(this._tmpSkin);
this._gamerSafe.setAchievementSkin(this._tmpAchievementSkin);
this._gamerSafe.addEventListener(EVT_NETWORKING_ERROR, this.e_onNetworkingError);
this._gamerSafe.addEventListener(EVT_ACCOUNT_CHANGE, this.e_onAccountChange);
this._gamerSafe.addEventListener("account_refresh", this.e_onAccountChange);
this._gamerSafe.addEventListener(EVT_LOGIN, this.e_onLogin);
this._gamerSafe.addEventListener(EVT_LOGIN_FAILED, this.e_onLoginFailed);
this._gamerSafe.addEventListener(EVT_AUTO_LOGIN_FAILED, this.e_onAutoLoginFailed);
this._gamerSafe.addEventListener(EVT_BEGIN_SESSION, this.e_onBeginSession);
this._gamerSafe.addEventListener(EVT_BEGIN_SESSION_FAILED, this.e_onBeginSessionFailed);
this._gamerSafe.addEventListener(EVT_ITEM_PURCHASE, this.e_onItemPurchase);
this._gamerSafe.addEventListener(EVT_ITEM_PURCHASE_CANCELED, this.e_onItemPurchaseCanceled);
this._gamerSafe.addEventListener(EVT_ITEM_PURCHASE_FAILED, this.e_onItemPurchaseFailed);
this._gamerSafe.addEventListener("yes", this.e_onConfirmYes);
this._gamerSafe.addEventListener("no", this.e_onConfirmNo);
this._gamerSafe.addEventListener("dialog_begin", this.e_onUseStarted);
this._gamerSafe.addEventListener("dialog_end", this.e_onUseEnded);
this._gamerSafe.addEventListener(EVT_SCOREBOARD_ENTRIES_ERROR, this.e_onScoreboardError);
this._gamerSafe.addEventListener(EVT_SCOREBOARD_ENTRIES_RECEIVED, this.e_onScoreboardRecieved);
this._gamerSafe.addEventListener(EVT_SCOREBOARD_ENTRY_SUBMITTED, this.e_onScoreSubmitted);
this._gamerSafe.addEventListener(EVT_UNREGISTERED_NAME, this.e_onUnregisteredName);
this._gamerSafe.addEventListener(EVT_CONSUMPTION_COMPLETED, this.e_onConsumptionCompleted);
this._gamerSafe.addEventListener(EVT_REGISTRATION_FORM_CLOSED, this.e_onRegistrationFormClosed);
this._gamerSafe.addEventListener(EVT_LOGIN_FORM_CLOSED, this.e_onLoginFormClosed);
this._gamerSafe.addEventListener(EVT_OTHER_GAME_PROFILE_RECEIVED, this.e_onOtherGameProfileReceived);
this._gamerSafe.addEventListener(EVT_BRIDGE_SUCCESS, this.e_onBridgeSuccess);
this._gamerSafe.addEventListener(EVT_BRIDGE_ERROR, this.e_onBridgeError);
this._gamerSafe.addEventListener(EVT_PAYMENT_PANEL_SHOWN, this.e_onPaymentPanelShown);
this._gamerSafe.addEventListener(EVT_PAYMENT_PANEL_HIDDEN, this.e_onPaymentPanelHidden);
this._gamerSafe.addEventListener(EVT_STATUSBAR_MOUSEOVER, this.e_onStatusBarMouseOver);
this._gamerSafe.addEventListener(EVT_STATUSBAR_MOUSEOUT, this.e_onStatusBarMouseOut);
var _local2:EventDispatcher = this.levelVaultEventObject;
_local2.addEventListener(EVT_LEVELVAULT_GOT_LEVELS, this.e_onLevelVaultGotLevels);
_local2.addEventListener(EVT_LEVELVAULT_GOT_NUM_LEVELS, this.e_onLevelVaultGotNumLevels);
_local2.addEventListener(EVT_LEVELVAULT_GOT_SINGLE_LEVEL, this.e_onLevelVaultGotLevel);
_local2.addEventListener(EVT_LEVELVAULT_GOT_LEVEL_RANKING, this.e_onLevelVaultGotLevelRanking);
_local2.addEventListener(EVT_LEVELVAULT_GOT_INDEX, this.e_onLevelVaultGotIndex);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_CREATED, this.e_onLevelVaultLevelCreated);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_DELETED, this.e_onLevelVaultLevelDeleted);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_EDITED, this.e_onLevelVaultLevelEdited);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_FLAGGED, this.e_onLevelVaultLevelFlagged);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_RATED, this.e_onLevelVaultLevelRated);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_NUMERICS_SET, this.e_onLevelVaultLevelNumericsSet);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_STRINGS_SET, this.e_onLevelVaultLevelStringsSet);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_NUMERICS_INCREMENTED, this.e_onLevelVaultLevelNumericsIncremented);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_NUMERICS_SET, this.e_onLevelVaultLevelAttributesChanged);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_STRINGS_SET, this.e_onLevelVaultLevelAttributesChanged);
_local2.addEventListener(EVT_LEVELVAULT_LEVEL_NUMERICS_INCREMENTED, this.e_onLevelVaultLevelAttributesChanged);
this._gamerSafe.addEventListener(EVT_FACEBOOK_CONNECTED, this.e_onFacebookConnected);
this._gamerSafe.addEventListener(EVT_FACEBOOK_LOGIN_FAILED, this.e_onFacebookLoginFailed);
this._gamerSafe.addEventListener(EVT_FACEBOOK_GOT_USER, this.e_onFacebookGotLocalUser);
this._gamerSafe.addEventListener(EVT_FACEBOOK_GOT_FRIENDS, this.e_onFacebookGotFriends);
this._gamerSafe.addEventListener(EVT_FACEBOOK_WALL_POST_SUCCESS, this.e_onFacebookWallPostSuccess);
this._gamerSafe.addEventListener(EVT_FACEBOOK_WALL_POST_FAILED, this.e_onFacebookWallPostFailed);
this._gamerSafe.addEventListener(EVT_FACEBOOK_PROMPT_CLOSED, this.e_onFacebookPromptClosed);
this._gamerSafe.addEventListener(EVT_TWITTER_CONNECTED, this.e_onTwitterConnected);
this._gamerSafe.addEventListener(EVT_TWITTER_LOGIN_FAILED, this.e_onTwitterLoginFailed);
this._gamerSafe.addEventListener(EVT_TWITTER_GOT_USER, this.e_onTwitterGotUser);
this._gamerSafe.addEventListener(EVT_TWITTER_POST_SUCCESS, this.e_onTwitterPostSuccess);
this._gamerSafe.addEventListener(EVT_TWITTER_POST_FAILED, this.e_onTwitterPostFailed);
if (this._stage != null){
this._stage.addChild((this._gamerSafe as Sprite));
};
if (root != null){
this._referrer = root.loaderInfo.loaderURL;
};
if (this._storedPasscode != ""){
this.beginSession(this._storedPasscode, this._storedHashseed);
};
this.showStatusBar();
this.e_onApiReady(new Event("apiReady"));
}
private function onLoadingError(_arg1:IOErrorEvent):void{
this._loaded = false;
this._status = "Failed";
trace("Failed to load GamerSafe");
}
public static function get api():GamerSafe{
if (_instance == null){
trace("GamerSafe: Instance Error: Attempted to get instance before initial construction.");
return (null);
};
return (_instance);
}
public static function get apiLoaded():Boolean{
return (!((_instance == null)));
}
}
}//package