Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MC ignoring stop all sounds

Status
Not open for further replies.

PantherRun

Technical User
May 18, 2004
100
US
hey out there;

I have 16 movieclips attached to a root timeline. Each of the mcs have a forward and back button allowing them to jump back and forth through the clips (after returning to the root timeline).

I have 3 songs (set at START not EVENT) that make up a soundtrack for the movie. Track 1 is triggered in say, mc 1, track 2, in say mc5 when track 1 runs out.

problem - when you use the back button now track 1 WILL ALWAYS be triggered again and again. When i had everything on just the root timeline this never happened. The sound track acted truely independant of back button input. How do i regain the 'Event quality' back into my soundtrack?


thanks
hoss
 
You should use soundObjects, or create a music only external movie and load it up on another level of your main movie.
 
hey there;
okay i read up on soundobjects and can now make them - but none of my books or the online tutorials tell me why they are useful, so i find myself leaning toward investigating further your external movie idea. Here I have a simple question - did you mean put the soundtrack in a movieclip? Or actually create a whole new flash movie that only consists of the soundtrack and if so, then what, use the loadmovie command?
 
That's right - start a new movie; add the sound to the timeline (adding enough frames for the whole waveform to be displayed); put a stop() action in the last frame so that it doesn't loop (unless you want it to loop of course) and then publish the .swf - you can set compression options on the soundfile too in the library.

Then use loadMovie to bring the .swf into your main movie. I tend to load it on a highlevel so that it doesn't get cut off by changing scenes etc on _level0.

To be honest Sound() objects are a better way to go because you have more control over their playback. If, as you say, you need one track to start when another ends then the onSoundComplete method of the object will be a valuable tool.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top