diff --git a/src/TUvod.mxml b/src/TUvod.mxml index 299b5c4..00011fb 100644 --- a/src/TUvod.mxml +++ b/src/TUvod.mxml @@ -1,18 +1,47 @@ - + + + + Panel { + borderAlpha: 1; + borderThicknessLeft: 0; + borderThicknessTop: 0; + borderThicknessBottom: 0; + borderThicknessRight: 0; + roundedBottomCorners: true; + cornerRadius: 8; + headerHeight: 23; + highlightAlphas: 0, 0.12; + headerColors: #2e2e2e, #8F8C8C; + footerColors: #4e84df, #0f6cc3; + titleStyleName: "myPanelTitle"; + } + .myPanelTitle { + color: #ffffff; + fontSize: 11; + fontWeight:normal; + } + ControlBar { + paddingTop:2px; + paddingBottom:2px; + height:15px; + } + = 1) - tvNS.play(playList[0].file,0); - } + if (info.code == "NetStream.Play.Complete") + if (playList.length >= 1) { + tvNS.play(playList[0].file,0); + vidContainer.title = playList[0].videoTitle; + playList.removeItemAt(0); + } + else + tvPlaying = false; } + private function addSong():void { playList.addItem({file:sList.selectedItem.file,videoTitle:sList.selectedItem.artist + " - " + sList.selectedItem.title}); - if (playList.length == 1) + if ((playList.length == 1) && (tvPlaying == false)) { tvNS.play(playList[0].file,0); + vidContainer.title = playList[0].videoTitle; + playList.removeItemAt(0); + tvPlaying = true; + } } + 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) + if (playList.length >= 1) { tvNS.play(playList[0].file,0); + vidContainer.title = playList[0].videoTitle; + playList.removeItemAt(0); + } } public function updateVolume():void { var st:SoundTransform = tvNS.soundTransform; st.volume = (volume.value) * .01; tvNS.soundTransform = st; - //tvMaster.tvSO.data.volume = volume.value; } /* End updateVolume */ ]]> - + - + - + @@ -207,13 +247,13 @@ - + - +