[" + 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);
+ }
+ ]]>
+