Solved

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

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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…
In addition to being a great web-based presentation tool, Prezi also makes it easy to save your presentation as a PDF to share with others as well. Learn how in this tutorial. Select the share icon from the top menu in your Prezi editor: Select "D…

743 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