Flash preload HELP!
- Started
- Last post
- 35 Responses
- bug1
heres my problem:
i have a huge audio file(a voice over that's about 2min long) i want to preload like the first 30sec. or so, then start the movie while the rest of the audio and screen grabs load in the background so the user doesn't have to wait for a HUGE initial preload.
Make sense? Is there anyway to make this work?
Please help...Thanks in advance.
- F_EddyShears0
Flaskkit.com look to preloaders and loading external swf's...
- bug10
thanks for replying...
this is all one movie,
it runs straight through from beginning to end...i'm not loading anything external...
make sense?
- F_EddyShears0
yup, so what you need to do is set it up in 2 different swf files. Loading can then be seperated with basic preloaders. thats the most basic way. there is some advanced AS you can use to do this a different way, if you're up for that?
- sauerbraten0
you can easily set the preloader to begin playing whatever without the file being 100% loaded, if you know how to make a preloader with percentages etc. you can easily set it to play when the percent loaded it say 70% or whatever.
- bug10
at this point i feel like i can't wrap my brain around it...
if you feel like explaining, i'm down for tryin' this project is really important but i didn't expect audio that is a couple MEGS along with 800x600 screen grabs...
i do know flash to a certain extent so if you want can you explain how YOU would go about it?
i appreciate this...
- F_EddyShears0
sauerbraten is right, easy to play at any percentage. However this can be slow sometimes, I do find that splitting the 2 or 3 or however many items up tends to have less playback issues. But thats just me.
I can email you a simple preloader (can apply to bar and/or have percentage, etc.) that you can do as sauerbraten mentioned, to play based on percentage loaded. Let me know, I'll hit ya
- bug10
that would be sweet...
so in the script i can just change it from 100% to whatever percent i wish so once i reach that percent it sends the play head to frame 1 where the movie starts to play while the rest loads in the "background"...
oh, what do you mean:
"I do find that splitting the 2 or 3 or however many items up tends to have less playback issues. But thats just me"
- shellie0
a couple megs? damn.. is it in full stereo or what? compress that shit boy.
- F_EddyShears0
Was just noting that I find dividing content into seperate swf's and preloading them while doing other things is easier and tends to playback easier, but thats just for me and the code I am using.
I sent you en email with a simple preloader in it as mentioned previously.
- bug10
yup just got it...
im off to see if i can do this.
thanks for yer help...it's much appreciated.shellie: i hear ya girl! :)
- unknown0
Sounds like you need to read this:
Really extensive stuff, works miracles for all your sound problems.
:)
- bug10
cool, thanks macaso!
hey F_EddyShears, if yer still here...I can get that preloader to load my first graphics at 5% of the total, but it doesn't play the audio?
- F_EddyShears0
yeah, what do you need, the audio to begin playing while the rest loads? that is trickier if thats the answer
- bug10
yup...am i pushing my luck now :)
sorry if i'm being a pain in the ass...i don't do much with audio...
- F_EddyShears0
you're going to have to check actionscript.org or flashkit. I can find it by tomorrow morning, but cant remember off hand.
- bug10
werd. i owe you big time if this all gets figured out...i'll be tryin on my side. thanks. i love NT.
- bug10
still tryin...
F_EddyShears...where you at homie?!
- F_EddyShears0
Yo, I'm here. Ok, explain to me exactly what you need to happen, so we dont miss anything.
- bug10
thanks man, i'm stressin'
let's start fresh:
I have a fairly large audio file( a 2-3min voice over, for a site tour demo)
plus 800x600 screen grabs of the site...I would like to preload the beginning part of the movie(screen grab + audio)
and then start the movie(after say, 15% of the movie is loaded)
while the remainder of the screen grabs and the rest of the audio load in the
background...so there isn't a huge initial preload.
- F_EddyShears0
ok, there is no great solution to do what you want to do (as far as I've seen).
You can preload your movie with the script I passed and tell it to play once 15% is loaded. However, if it starts to play, the rest of the movie, that needs loading, is dependent on the users processor. you could run into trouble this way.
I would suggest preloading the whole thing (If your user needs this, they'll wait) perhaps making an interesting or useful preloader.
Or, you could divide the movie into seperate sfws, preloading them at different times as per your needs.
Or, you could break into sections and perhaps give the user the option to preload the whole movie and watch it, or preload asection ad watch it.
Of course this is all dependent on thecontent, but these are my suggestions. If you preload a small portion of the movie and begin to play it, if it gets to parts that aren't loaded and plays, its going to get slow and glitchy.