diff --git a/src/Login.mxml b/src/Login.mxml index ff5219f..4e8a529 100644 --- a/src/Login.mxml +++ b/src/Login.mxml @@ -29,6 +29,13 @@ } } } + + if ((tvMaster.guestUser == "true") && (username.text == null)) { + var rndID:String; + rndID = new Date().getTime().toString(); + username.text = "Guest" + rndID.substr(rndID.length-4,rndID.length); + doAuth(); + } } public function doAuth():void { diff --git a/src/Master.as b/src/Master.as index ff7dbe7..a336252 100644 --- a/src/Master.as +++ b/src/Master.as @@ -84,6 +84,8 @@ public var fwClosable:Boolean = false; public var login:Login; public var tuveTW:tipsWindow; + + public var guestUser:String; /* Initialization Routine */ public function init(mO:Object):Boolean { @@ -486,7 +488,8 @@ public function authSuccess():void { PopUpManager.removePopUp(login); login = null; - masterObject.updateVolume(); + if (tvSyncNS != null) + masterObject.updateVolume(); } /* End authSuccess() */ /* End Authentication Functions */ diff --git a/src/tipsWindow.mxml b/src/tipsWindow.mxml index e89535b..39993d5 100644 --- a/src/tipsWindow.mxml +++ b/src/tipsWindow.mxml @@ -10,6 +10,7 @@ public var tvMaster:Master; private var tips:Array = new Array( + "/nick NewNick Will change your nickname.", "/list Will show you all the current channels and current videos.", "If you know any Unicorns, send them our way.", "Double clicking on someone or /msg someone msg, Will start an IM with them.", diff --git a/src/ubChattin.mxml b/src/ubChattin.mxml index 2a171fd..36c332a 100644 --- a/src/ubChattin.mxml +++ b/src/ubChattin.mxml @@ -77,6 +77,7 @@ /* Get Global Variables */ tvMaster.chanSpec = Application.application.parameters.channel; + tvMaster.guestUser = Application.application.parameters.guestuser; /* Fetch Register Channel Lust */ tvMaster.tuveGetChans();