http://www.neteclipse.com/kirupa/tv.html
What i am doing is loading the flv with AS (using an xml file) and then using a function to advance to the next FLV. It works but when i load the next FLV, the sound cuts out until i move the volume control.
I have a workaround by increasing the volume by 1 each time but it’s a weird way to do it. Anybody know how to get around this?
function nextImage() {
if (p<(total)) {
p++;
if (loaded == filesize) {
nowplaying.htmlText = tvTitle[p-1];
channel.htmlText = p;
//trace(sContent[p-1]);
this.attachMovie("FLVPlayback", "my_FLVPlybk", 10, {width:360, height:240, x:100, y:100});
my_FLVPlybk.contentPath = tvPath[p-1];
trace(tvPath[p-1]);
volumeTrigger();
}
}
}
function prevImage() {
if (p>1) {
p--;
nowplaying.htmlText = tvTitle[p-1];
channel.htmlText = p;
this.attachMovie("FLVPlayback", "my_FLVPlybk", 10, {width:360, height:240, x:100, y:100});
my_FLVPlybk.contentPath = tvPath[p-1];
trace(tvPath[p-1]);
volumeTrigger();
}
}
function volumeTrigger(){
v++
my_FLVPlybk.volume = v;
trace("pause");
}