Solved

How do I stop sound loop in a movieclip (FLASH)

Posted on 2007-12-05
1
1,855 Views
Last Modified: 2008-02-01
Hello everyone..
I'm gonna make this very understandable.

I'm designing a huge monster FLASH-page with 8 buttons in the menu.
Let's say one button is "BIRD" and if you click it you go to a page where is a bird singing.
Let's say the bird and the song is in a movieclip on the timeline and the birdsong is a 3 sec mp3-file
looping forever as long as you are viewing the bird.

Ok, now you click on "DOG" and then you would go to a page where you see a dog, but
the bird is still singing... how do I let the birdsong-loop stop when you click something else?

Note: the bird and the dog would be in two seperated movieclips on the timeline. And stop all sound
does not work where there is a music-player on the whole page wich would go mute.

So the point is.. stop all sound in one movieclip when you leave it to another place in the timeline.

Anyone have a clue?
0
Comment
Question by:rrenderman
1 Comment
 
LVL 1

Accepted Solution

by:
sandy_ybx earned 125 total points
ID: 20416620
You  could use the following script.


mySound = new Sound();

mySound .attachSound("mySound");

mySound .start();
 

// mySound .stop();

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
Add visuals to your Prezi to keep your audience engaged. Learn how to embed images, edit them, and more in this video micro tutorial. Select "Insert" from the top menu in your Prezi editor: Select "Image": A toolbar will pop in from the right …
Not only does Prezi allow you to create non-linear presentations, it also makes it easy to apply transition animations between your frames. Learn how to apply a fade-in transition to select items and entire frames in this tutorial Select "Edit Path"…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now