Solved

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

Posted on 2007-12-05
1
1,857 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

803 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