hi guys. i need help. i have flv videos that should play at the beginning of every scene in my flash movie. my problem is to preload it before it starts without setBuffering it because yea, it preloads the vid but its actually playing the main timeline which jumps to the next event(particular frame) before the video even finishes. I NEED to have the video play and end ON TIME so the event right after that video plays ON TIME(no jumping in between).i could only think of using preloader just
right before the flv starts so it will run smoothly and end ON TIME. now my question is, how to preload a video using the netstream method in my case? i was thinking if
i could preload the video on frame1 then the NetStream.play(“blah.flv”) should be placed in frame2 but i’m not really good in building syntax.can you guys help
me out?
you can check my newly uploaded (buggy) site to check:
http://www.theanimeister.com/PRIME
*there is s splash page. after that, the video should start loading.
thank you guys for your time. i hope u can help me out.
EDIT**
SO, i decided to use FLV Playback instead so i can get it to detect when the flv finish playing using addEventListener this time. i was also able to get a kinda working preloader for the flvplayback component but i want to put a text displaying the progress(bytes loaded) please help. thanks.
my script so far (at firstframe)
import mx.video.*;
var listenerObject:Object = new Object();
my_FLVPlybk.progressInterval = 001;
my_FLVPlybk.autoPlay = false;
listenerObject.progress = function(eventObject:Object) :Void {
var perc = Math.floor(eventObject.bytesLoaded * 100 / eventObject.bytesTotal);
this.loading_mc.load_txt.text = perc + “% loaded.”;
if(perc == 100)
my_FLVPlybk.play();
}
var listenerObject2:Object = new Object();
listenerObject2.complete = function(eventObject:Object):Void {
_root.gotoAndPlay(“menu”);
// or
// _root.gotoAndPlay(3);
};
my_FLVPlybk.addEventListener(“progress”, listenerObject);
my_FLVPlybk.addEventListener(“complete”, listenerObject2);
my_FLVPlybk.contentPath = “flv/intro.flv”;