diff --git a/src/imWindow.mxml b/src/imWindow.mxml index ff677ad..0fe8d0b 100644 --- a/src/imWindow.mxml +++ b/src/imWindow.mxml @@ -4,7 +4,7 @@ $Id$ --> - + - + - + \ No newline at end of file diff --git a/src/listWindow.mxml b/src/listWindow.mxml index 5620ac7..53b376f 100644 --- a/src/listWindow.mxml +++ b/src/listWindow.mxml @@ -4,7 +4,7 @@ $Id$ --> - + - + + \ No newline at end of file diff --git a/src/tuveNetwork.as b/src/tuveNetwork.as index 30d4a72..1416521 100644 --- a/src/tuveNetwork.as +++ b/src/tuveNetwork.as @@ -65,7 +65,7 @@ tvSocket.flush(); attempts = 0; - tvMaster.masterObject.chatWindow.htmlText += "

[" + tvMaster.fmtdDate() + "] TUveD: Connected to server.

"; + tvMaster.masterObject.chatWindow.htmlText += "

[" + tvMaster.fmtdDate() + "] Connected to server.

"; } @@ -109,7 +109,7 @@ } else { if (dataArray[1] == "TUveD") - tvMaster.masterObject.chatWindow.htmlText += "

[" + tvMaster.fmtdDate() + "] " + dataArray[1] + ": " + tmpString + "

"; + tvMaster.masterObject.chatWindow.htmlText += "

[" + tvMaster.fmtdDate() + "] " + tmpString + "

"; else tvMaster.masterObject.chatWindow.htmlText += "

[" + tvMaster.fmtdDate() + "] " + dataArray[1] + ": " + tmpString + "

"; } @@ -150,7 +150,7 @@ tvMaster.userList += new XML(""); if (tvMaster.userName == tmpString) { - tvMaster.masterObject.chatWindow.htmlText += "

[" + tvMaster.fmtdDate() + "] TUveD: You Are Now Talking In: " + dataArray[1] + "

"; + tvMaster.masterObject.chatWindow.htmlText += "

[" + tvMaster.fmtdDate() + "] You Are Now Talking In: " + dataArray[1] + "

"; tvMaster.currentChannel = dataArray[1]; fc = false; @@ -208,8 +208,14 @@ tvMaster.myTimer.repeatCount = tvMaster.myCount; tvMaster.myTimer.start(); tvMaster.tvSyncNS.play(tvMaster.curSong,0); - - tvMaster.masterObject.songTitle.text = "Now Playing: " + dataArray[4]; + + + if (dataArray[4].length > 45) + tvMaster.masterObject.mainPanel.title = "ubChattin is playin " + dataArray[4].substr(0,45) + "..."; + else + tvMaster.masterObject.mainPanel.title = "ubChattin is playin " + dataArray[4]; + + tvMaster.vid = Number(dataArray[6]); } /* End CURPOS */ else if (data.indexOf("KICK") == 0) { @@ -290,8 +296,8 @@ for (i=3;dataArray[i] != null;i++) tmpString += ":" + dataArray[i]; - if (tmpString.length > 67) - tvMaster.masterObject.chtPnl.title = tmpString.substr(0,67) + "..."; + if (tmpString.length > 63) + tvMaster.masterObject.chtPnl.title = tmpString.substr(0,63) + "..."; else tvMaster.masterObject.chtPnl.title = tmpString; diff --git a/src/tvWindow.as b/src/tvWindow.as index 3b0bf60..040f6c1 100644 --- a/src/tvWindow.as +++ b/src/tvWindow.as @@ -95,7 +95,6 @@ private var oldY:Number = 0; private var oldWidth:Number = 0; private var oldHeight:Number = 0; - private var pwButtonVisible:Boolean = false; private var pwAttached:Boolean = false; public var sW:Boolean = false; @@ -103,39 +102,18 @@ public function tvWindow() { super(); this.addEventListener(FlexEvent.CREATION_COMPLETE, pwInit); - /* - this.setStyle("borderThicknessTop",0); - this.setStyle("borderThicknessBottom",0); - this.setStyle("borderThicknessLeft",0); - this.setStyle("borderThicknessRight",0); - this.setStyle("headerHeight",20); - this.setStyle("borderAlpha",.75); - this.setStyle("borderColor","#808080"); - */ } /* end Pod Window */ /****************************************************** * Handlers Section * ******************************************************/ - /* - private function pwMouseOver(event:MouseEvent):void { - pwShowButtons(); - } - - private function pwMouseOut(event:MouseEvent):void { - pwHideButtons(); - } - */ - private function pwInit(event:FlexEvent):void { if (sW == false) { this.addEventListener(MouseEvent.MOUSE_DOWN, mouseClickHandler, false); this.addEventListener(MouseEvent.MOUSE_MOVE, oMouseMove, false); this.addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler,true); - //titleBar.addEventListener(MouseEvent.MOUSE_OVER, pwMouseOver,false,0,true); - //titleBar.addEventListener(MouseEvent.MOUSE_OUT, pwMouseOut,false,0,true); - pwShowButtons(); + pwAttachButtons(); } } @@ -146,16 +124,10 @@ public function pwAttachButtons():void { var nC:Boolean = false; - /* - if (myPod != null) - nC = myPod.podzMaster.podzManager.nC; - */ - if ((closeButton == null) && (nC == false)) { closeButton = new Button(); closeButton.width=10; closeButton.height=10; - closeButton.focusEnabled=false; closeButton.setStyle("upSkin", closeButtonUp); closeButton.setStyle("overSkin", closeButtonOver); closeButton.setStyle("downSkin", closeButtonDown); @@ -172,7 +144,6 @@ maxButton = new Button(); maxButton.width=10; maxButton.height=10; - maxButton.focusEnabled=false; maxButton.setStyle("upSkin", maxButtonUp); maxButton.setStyle("overSkin", maxButtonOver); maxButton.setStyle("downSkin", maxButtonDown); @@ -184,7 +155,6 @@ minButton = new Button(); minButton.width=10; minButton.height=10; - minButton.focusEnabled=false; minButton.setStyle("upSkin", minButtonUp); minButton.setStyle("overSkin", minButtonOver); minButton.setStyle("downSkin", minButtonDown); @@ -390,38 +360,6 @@ * Private functions to the new container class * *****************************************************/ - /* - public function pwHideButtons():void { - - if (closeButton != null) - closeButton.visible = false; - - if (maxButton != null) - maxButton.visible = false; - - if (minButton != null) - minButton.visible = false; - - pwButtonVisible = false; - } - */ - - public function pwShowButtons():void { - if (pwAttached == false) - pwAttachButtons(); - - if (closeButton != null) - closeButton.visible = true; - - if (maxButton != null) - maxButton.visible = true; - - if (minButton != null) - minButton.visible = true; - - pwButtonVisible = true; - } - private function alignButtons():void { var bcnt:Number = 1; @@ -437,14 +375,6 @@ minButton.move(titleBar.width - (bcnt * 16), (titleBar.height - 10) / 2); bcnt++; } - - - if (pwButtonVisible == true) - pwShowButtons(); - /* - else - pwHideButtons(); - */ } /*************/ diff --git a/src/ubChattin.mxml b/src/ubChattin.mxml index 36c332a..9ebef8a 100644 --- a/src/ubChattin.mxml +++ b/src/ubChattin.mxml @@ -98,6 +98,7 @@ volume.value = Number(tvMaster.tvSO.data.volume); this.setChildIndex(selChan,this.numChildren-1); + this.setChildIndex(volBox,this.numChildren-1); mainPanel.height -= 4; } @@ -183,10 +184,20 @@ private function doNav():void { if (mainNav.selectedIndex == 1) nP.getInfo(tvMaster.vid); - } + } + + private function goToURL(url:String):void { + var webPageURL:URLRequest = new URLRequest(url); + navigateToURL(webPageURL, '_new'); + } ]]> + + + + + @@ -194,22 +205,18 @@ - - - + + + - - - - - - - - + + + +