dear all expert,
i need a help on this coding ...
i actually want to play the next flv file after the other 1 finish with out selected the flv by the use the problem i hav now is the 1st flv can play but for the 2nd , 3rd and so on will skip the screen is like jumping jumping...
here is my source file pelase click to download
thank you
Jikey
Quote:
/**
Requires:
- FLVPlayback component on the Stage with an instance name of my_FLVPlybk
- this case, my_FLVPlybk is "display"
*/
import mx.video.*;
//my_FLVPlybk.contentPath = "discodance.flv";
var listenerObject:Object = new Object();
// listen for complete event; play new FLV
listenerObject.complete = function(eventObject:Object):Void {
if (my_FLVPlybk.contentPath == "discodance.flv") {
my_FLVPlybk.play("fish.flv");
}else if (my_FLVPlybk.contentPath == "fish.flv") {
my_FLVPlybk.play("fluff_hammer.flv");
}else if (my_FLVPlybk.contentPath == "fluff_hammer.flv") {
my_FLVPlybk.play("trike_final.flv");
}
};
listenerObject.playheadUpdate = function(eventObject:Object):Void {
var myPlayhead = my_FLVPlybk.playheadTime;
myPlayhead1 = int(myPlayhead/60);
myPlayheadsec = int(myPlayhead - int(myPlayhead/60) * 60);
var strSecond = myPlayheadsec.toString();
if (strSecond.length == 1) {
strSecond = '0' + strSecond;
}
myPlayhead2 = strSecond ;
};
my_FLVPlybk.addEventListener("complete",listenerOb ject);
my_FLVPlybk.addEventListener("playheadUpdate", listenerObject);
time = (my_FLVPlybk.state +" "+ myPlayhead1 + ":" + myPlayhead2 + " of 10sec");
play();
|