This content has been marked as final. Show 3 replies
how is your sound linked? have you dragged it onto your timeline or are you referencing it with actionscript by its linkage identifier? its just that there will be two different answers depending on which direction you're going...
As i stated its been linked, sorry if it confused you in some manner. But yea its done through linkage.
1. i've attached some code that will fade out a sound. call the fade function like so:
where your_sound is your sound object, and x is the number of seconds you want the fade to take.
2. flash does load the sound first, because you have the default setting in your linkage properties "Export in first frame".
two ways to get around this -
option 1. probably the simplest option is create your loader in a separate file.
option 2. uncheck export in first frame. drag your sound file to a frame AFTER your preloader and BEFORE the rest of your content. If it doesn't automatically, set the sound's sync to event rather than stream. insert a blank frame after it. ensure that the playhead does not play this frame with the sound. your preloader should work and you should be able to call the sound.