I want to do the same thing that you have done by preloading 25% of my streaming video because my streaming video also stalls at several point until it is fully loaded.
Being bran new to this flash stuff I seem to be missing some important points. I downloaded your 25%_preload fla and then built a new flash doc the same as your’s. I assumed that where you have layer 3 that this should be where I place my streaming video. However, I believe that this is not what you are doing because it didn’t work.
How do you tell the preloader to load the video and where do you put the video? In other words, do you create a new scene and place the video there or do you create a new fla and place the video there?
I didn’t actually get the 25% preloader working - still haven’t fully figured that one out. At first I thought it was working until I posted it online. However, what I did do is base it on frames - then start playing, here is the code:
onEnterFrame = function () {
if (_framesloaded>=400) {
gotoAndPlay(5);
delete this.onEnterFrame;
} else {
gotoAndPlay(1);
}
};
Frame 5 is where my flv starts, it is like 1600 frames and it waits till 400 frames have loaded, then plays on 5. Hope this helps.
I did finally get my streaming video to work without stalling and without having to use a preloader. I had originally edited the video within my Pinnacle Studio 8 program and set its frame rate from 29.97 fps to 14.985 fps and exported it as a wmv file and then converted it to a flv in flash. It’s at 6,752Kb and plays for 3 minutes 29 seconds. My error was that within the MediaDisplay Component Inspector I hadn’t set the FPS to 14.985 fps. Instead it was still at the default of 30 fps. This was causing the video to load faster than it was streaming.
I’m going to try setting it back to the original 29.97 fps and see if it gives me a smoother play back, but I don’t know if the Internet can handle this frame rate. If that doesn’t work I’m going to try your script.
If you would like to take a look at it in its present state of 14.985 fps click Rome’ University . But if it stalls please let me know.