Solved

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

Posted on 2007-12-05
1
1,860 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Learn how to set up basic frames and paths in Prezi and understand the open space that Prezi allows you to create presentations in.

617 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