anyone can explain me how to do a load bar for video, equal to that used on praystation.com web site. I can do a preload bar, but i want it to play the movie while downloading, and to insert a stop and a play button on it too.
go to the praystation.com website on news scroll until finf I SEE U ON 3D, chose project information and on the content area chose video, there you can see what i was trying to do
other than that, i guess you can build a little bar that tweens from frame one to the end of your movie while the movie streams in (if you mean a bar that shows how much content is still loading while they start watching your swf, sort of like the bandwidth profiler “show streaming” when testing in flash). now that would be neatoBurrito! anyone know how to do that?
calculate the total bytes, calculate download speed and scale a bar
I saw the videos you are referring to. To me I can’t tell whether they are avi/mpeg/mov videos that are controlled by flash or if it is just animations built in flash. The file size leads me to believe it is video converted to a flash swf.
I didnt find the componant that link was referring to.
Anyway just a few questions.
I want to create a flash page with a dynamic menu to access several different video files.
I’ve tried importing quicktime files but they all seem to have obscene compression, small movies seem very large, greater than a few megs its seems.
Can I stream Realplayer files into the movie? how?
If not the mpegs that I could possibly import into such movies would they have relative compression rates to thier sizes or would they be made really large by the quicktime compression process.
Not sure about the Real Player files. I did see some talk about that on Flashkit, but I can’t remember what was said.
Below is a link that uses the above component. The video was a 40-50mb quicktime video that I got off the Counting Crows CD. I imported it into flash MX. Put the video on its own layer and the video component on another layer. This video is a 5MB swf that streams fairly well over a DSL/Cable or greater connection.
You are correct a 5mb swf would be very hard to stream over a dialup modem. You could use a preloader to just preload say 10-20% and then play the movie. That might give you enough of a head start to stream the entire video.
Flash can basically stream anything you want video or audio. The point is you have to control the quality of the video and audio when you encode the swf so that it will stream properly on the desired connection (broadband or dialup). For example:
<b>Broadband</b>
swf file size: 5,242 kb
video size: 240 x 180 (pixel size of video)
video data rate: 168kbs (controls video quality)
video frame rate: 12fps
audio compress: 80kbs (controls audio quality)
Encoded with Sorenson Squeeze http://www.thadandrews.com/AmericanGirlsBroadband.htm
<b>56k Modem</b>
swf file size: 1,423 kb
video size: 160 x 120
video data rate: 24kbs
video frame rate: 12fps
audio compress: 24kbs
Encoded with Sorenson Squeeze http://www.thadandrews.com/AmericanGirlsModem.htm
Hope this helps answer your question. I have used a program called Sorenson Squeeze to do this example. Flash MX also has a cheap version of Sorenson built in that you can play with. The quality value is the key on controlling file size and then also the publish setting of your audio.
More info about Real Player files in Flash. Did not find anything on Kirupa about it (I looked 1st, did not want to promote another site - Kirupa rules), but check out these threads.
I would convert a quicktime movie to Flash swf by using Sorenson Squeeze. Sure, it’s a commercial product (retailing for $99?) but it beats a straight conversion in Flash by tenfold at least.
If you have more of those projects and tasks, check this out:
Once you have the swf file you can name it with a sequence at the end, like movie1.swf. To answer the random load of that swf file, simply write a script that does a load movie with the random number attached to it.
Needless to say, you can control the movie file just like any other timeline in Flash.
It describes perhaps a possible way to allow the flash buttons talk to javascript, and i believe the java script can then control the actions of the mpeg. Its a bit too complex for my brain though and i dont know much about javascript.
Does anyone know what the code would look like to get these 3 different parts talking : a flash stop button : the javascript : mpeg movie.