BKewl
09-14-2006, 02:33 AM
I'm trying to play several .flv files in a row using FLVPlayback (Flash MX Pro), but after about the second one, it gets stuck in the loading phase (that is, it gets stuck loading the third one) and never recovers. All of the videos are local, and all of the file names are valid. If I play the first and ninth videos and then try the third, the third won't play. However, if I retest the movie and play the first and then third videos and then the ninth, this time the ninth fails and the other two are fine.
My loading code looks like this:
function loadAMovie(path:String) {
if (myFLV.contentPath != path) {
myFLV.load(path);
myFLV.seek(0);
if (isPlaying) {
myFLV.play();
}
}
}
The best solution I could find online was basically deleting and recreating the player, which seems like a hugely inefficient way to go about fixing the problem. Any ideas for other solutions?
My loading code looks like this:
function loadAMovie(path:String) {
if (myFLV.contentPath != path) {
myFLV.load(path);
myFLV.seek(0);
if (isPlaying) {
myFLV.play();
}
}
}
The best solution I could find online was basically deleting and recreating the player, which seems like a hugely inefficient way to go about fixing the problem. Any ideas for other solutions?