Solved

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

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
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…
Learn the basics of inputting and editing your text components in Prezi. We will cover how to set styles, position, and group your text components. In your Prezi editor, click anywhere on the canvas to add text: A flashing cursor informs you that yo…
Learn how to use the remote presentation tool in Prezi to allow you to harness the power of this cloud based presentation platform. You can show your presentation with a remote audience using this free tool.

821 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