diff --git a/src/TUvod.mxml b/src/TUvod.mxml index eba8238..422a7f2 100644 --- a/src/TUvod.mxml +++ b/src/TUvod.mxml @@ -1,8 +1,176 @@ - - - - - - - + + + 0) { + tvSyncVid.y = ((300 - info.height)/2); + } + else { + tvVid.y = 0; + } + */ + //tvOverlay.y = tvSyncVid.y + (tvSyncVid.height - 29); + /* + if ((400 - info.width) > 0) { + tvVid.x = ((400 - info.width)/2); + } + else { + tvVid.x = 0; + } + */ + //tvOverlay.x = tvSyncVid.x + (tvSyncVid.width - 31); + } + + public function tvNetStatus(e:NetStatusEvent):void { + if (e.info.code == "NetConnection.Connect.Success") { + if (tvST != null) + tvST = null; + + if (tvNS != null) + tvNS = null; + + tvNS = new NetStream(tvNC); + tvNS.client = this; + tvVid.attachNetStream(tvNS); + tvNS.close(); + tvST = tvNS.soundTransform; + tvNS.addEventListener(NetStatusEvent.NET_STATUS, tvNetStatus,false,0,true); + //masterObject.updateVolume(); + /* + if (tvSyncFailed == true) { + masterObject.chatWindow.htmlText += "

[" + fmtdDate() + "] RTMP: Successfully Reconnected To Streaming Service.

"; + if (myCount > 0) + tvSyncNS.play(curSong,tvTotal - myCount); + tvSyncFailed = false; + } + */ + } + } + + private function securityErrorHandler(event:SecurityErrorEvent):void { + Alert.show("securityError: " + event.text); + } + + public function onPlayStatus(info:Object):void { + if (info.code == "NetStream.Play.Complete") { + playList.removeItemAt(0); + if (playList.length >= 1) + tvNS.play(playList[0].file,0); + } + } + private function addSong():void { + playList.addItem({file:sList.selectedItem.file,videoTitle:sList.selectedItem.artist + " - " + sList.selectedItem.title}); + if (playList.length == 1) + tvNS.play(playList[0].file,0); + } + private function delSong():void { + if (pList.selectedIndex == 0) + if (playList.length > 1) + tvNS.play(playList[0].file,0); + playList.removeItemAt(pList.selectedIndex); + } + private function skipVideo():void { + tvNS.close(); + playList.removeItemAt(0); + if (playList.length >= 1) + tvNS.play(playList[0].file,0); + } + ]]> +
+ + + + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/src/searchRow.mxml b/src/searchRow.mxml new file mode 100644 index 0000000..2e3d222 --- /dev/null +++ b/src/searchRow.mxml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + \ No newline at end of file