This content has been marked as final.
Show 12 replies
-
1. Re: sound loads/plays too soon
Shandy Elliott Jan 13, 2007 1:12 PM (in response to dkmiles)I can't tell if frames were dropped because I hear music and see animation right away. Is the audio in your library, or are you trying to load the audio externally? -
2. Re: sound loads/plays too soon
cmorrissey Jan 13, 2007 1:13 PM (in response to dkmiles)You should start the audio once the rest of the swf is loaded using the onLoad or loaded functions to find when your swf graphics are loaded and use the .play() on your audio. You will also need to turn off the autoPlay on the audio. -
3. Re: sound loads/plays too soon
dkmiles Jan 13, 2007 1:14 PM (in response to Shandy Elliott)the audio is in the library. -
4. Re: sound loads/plays too soon
dkmiles Jan 13, 2007 1:17 PM (in response to cmorrissey)thanks for the responses... for the quasi-Luddite here, can you provide any more specifics on exactly how to set up the onLoad and the .play() on the audio?
thanks! -
5. Re: sound loads/plays too soon
Shandy Elliott Jan 13, 2007 1:31 PM (in response to cmorrissey)quote:
Originally posted by: cmorrissey
You should start the audio once the rest of the swf is loaded using the onLoad or loaded functions to find when your swf graphics are loaded and use the .play() on your audio. You will also need to turn off the autoPlay on the audio.
What??
First, there is no .play() for audio. If you setup the audio using new Sound(), it's called .start().
Second, I don't believe the graphics are loaded externally, so to check if everything is loaded before you start your audio, you would either check if all the frames are loaded or use getBytesLoaded().
-
6. Re: sound loads/plays too soon
dkmiles Jan 13, 2007 1:37 PM (in response to Shandy Elliott)I'm sorry, you guys have lost me. Do you know of any tutorials on this subject out there?
thanks! -
7. Re: sound loads/plays too soon
Shandy Elliott Jan 13, 2007 1:49 PM (in response to dkmiles)It isn't a matter of looking for a tutorial. It's about structure and AS and best practices. Post your FLA somewhere and I will look at it. -
-
9. Re: sound loads/plays too soon
cmorrissey Jan 13, 2007 2:06 PM (in response to dkmiles)Shan,
Because I don't know how his clip is set up I gave him some possible functions he can use.
If i was doing this i would be loading everything from external files and using the playback component and not the Sound() functions as these functions severely limit your ability to control the sound in the project, unless you find that the panning functions are something you really need.
Please help by being constructive.
-----------
DK,
Heres what you will want to do. I believe you are using the loader component correct ? ok now since you are using this you can use the below action script with some adjustments to tell your audio to start by using the Sound functions or the playback component functions since I am not sure what you are using.
If you are not using the loader component to load your pictures please let me know what you are using so I can get you on the right track, thanks.
-
10. sound loads/plays too soon
Shandy Elliott Jan 13, 2007 2:36 PM (in response to dkmiles)It's just a simple set of tweened animation synced with audio. No need to go so far as to load anything externally.
I altered your flash file and got rid of needing that external loader flash file.
http://www.shan-dysigns.com/flashexamples/openSplash.fla
Of course you can change the preloader up a little to make it prettier if you want. -
11. Re: sound loads/plays too soon
dkmiles Jan 13, 2007 2:48 PM (in response to Shandy Elliott)Shan -- this is so cool of you to fix it for me! I'm only a humble band parent trying to help out on the weekends, so many thanks! I'll try to decipher what you did for future reference.
CM -- thank you for the code! I'm still not quite sure how I would implement it, but I'll spend some time trying to understand. (Although I think this action script is for rocket scientists)
You guys... and this forum ... are both really terrific. -
12. Re: sound loads/plays too soon
Newsgroup_User Jan 14, 2007 3:05 PM (in response to Shandy Elliott)Try www,gotoandlearn.com


