Hi I have this code as a preloader for flvplayback and it work ok
ActionScript Code:
mcfilm.flvplayer.progressInterval = 001;
mcfilm.flvplayer.contentPath = "sakerhet350.flv";
var listenerObject:Object = new Object();
listenerObject.progress = function(eventObject:Object):Void {
BytesTotal = eventObject.bytesTotal;
if(eventObject.bytesLoaded >= eventObject.bytesTotal/10){
mcladdar._visible=false;
mcfilm.flvplayer.play();
}
}
mcfilm.flvplayer.addEventListener("progress", listenerObject);
I have the flvplayback (flvplayer) inside a movieclip (mcfilm)
all this I have in a function so I can easy call it when I need the movie to run.
The problem is that it run the first time but if I stop it with a button and want to play it again, nothing happend, it just say loading (the mcladdar show)