Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

My sounds are all over the place..... 2

Status
Not open for further replies.

simonWMC

Programmer
Dec 2, 2002
180
GB
Hi guys

I have two keyframes both with movie clips in.
Eash of these movie clips has an MP3 that plays on entering the clip.
Also within the clip is a button which takes them back to another frame on the main timeline.

The problem is Flash plays the MP3's when it shouldn't.
Even though the MP3's sit in a movie clip on one frame, they can be triggered in other frames !

Any one have any idea what may be going on here ???

thanx
 
Unfortunatly, I work in a very secure environment, and have no way of Posting the .fla

I have played with the StopAllSounds () command, which is fine for doing exactly what it says. Therefore, solving the problem of sounds being played when they shouldn't. However, it doesn't help with stopping mulitiple sounds when you have only expected one.

Is ther a way of stopping individual sounds ?
I have tried creating varibales for the sound and trying to call them straight from the library rather than put them on the timeline, bu to no avail.
This is what I tried

var randy = new Sound() ;
randy_001.attachSound("Randy_001");
randy.start();

I put this on the first frame of the movie clip but nothing happened. I had clicked the linkage in the library...

Any ideas........

cheers
 
randy = new sound();
randy.attachSound("Randy_001"); //must be linkage name
randy.play();



to get rid off it

randy.removeSound("randy_001");
 
should linkage name include the .mp3 ? #

I have tried both, but neither work
 
no the linkage name is just a string

right click sound in library...linkage...identifier (enter name you will use for sound here) ....export for actionscript...first frame.

make sure you use the identifier label you gave the sound to target it.
 
thsnks Bill, but it still doesn't work.

The script has no errors
The linkage identifiers match

Am I putting the script in the wrong place ? It is currently on the first frame of the MC where I want it to PLay

 
i cant tell what wrong....if you cant put it up then you can email it and i will have a look....hp_sauce46@yahoo.com
 
Check How to control independent sound objects simultaneously, here...


Regards,

cubalibre2.gif
 
Thanks guys

I have sort of cheated to get round the problem.
I have put the MP3's into nested movie clips and then call them using a tellTarget.
I know it's not the best way, but it works

Unfortunatly, due to security issues I am not able to post anything

thanks anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top