Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Sound Won't Stop In Flash



I've been working with adobe flash for about half a year now. I recently upgraded my computer to Windows vista. I've experienced no problems until tonight. I recently imported some new sound to the library (a narration), and it isn't working like it should. Instead of stopping and starting when I click on the time line, it just keeps going. It keeps freezing the program, and making it extremely slow. It's driving me bananas. I've tried deleting and re-importing the sound, inserting the sound in a new scene, and it just does the same thing each time. The rest of the scenes are working fine. What's going wrong? I'm going to go crazy! Please help



Adobe > Flash General Discussion
Posted on: 10/01/2008 04:40:59 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Can You Help Me Stop This Sound ? Flash 8
Hey guys i'm a real noob to flash,

I have a basic audio player with play,stop and load functions. I use this player on my site to stream audio but now I need to attach a sound file to the player too.

I've added the sound so that it only starts when the play button is clicked but I cant figure out how to get it to stop when I click stop.

I'm attaching the FLA file, in hopes that someone can show me what i'm doing wrong. I've tried using stop(); but it doesnt seem to work?

Please help! this is driving me crazy!

Flash 4 - Stop Sound For Good?
This is a quick question, I hope.
Here's the deal - I'm trying to set a global variable "nosound" so that a pause/play clip on the main timeline can reference its value and stop sounds if necessary.

Maybe there's even a better way to make sure pause/play doesn't restart sound?


Can anyone help?

Thanks a lot!

Sound Won't Stop In Flash MX 2004
Hello,

I want to stop fade in/out the sound on a flash movie and it's not doing it. When I preview the movie the "output box" appears with the following lines:


100
_root.soundstatus -
_root.soundstatus - on


I click the button to stop the sound and it won't stop..the song just keeps playing in the movie. I already check the code it self and I don't see nothing wrong. Please let me know what I'm doing wrong

Thanks

Play And Stop With Sound In Flash?
Hey guys I am new to to flash I can only create basics animations and stuff but I have been reading books and trying to create a play and stop file using flash but I can't so I found this site which I think is great!!!....and if any of you can help me I would appreciate it so much....by the way I am Matias Bulox from Argentina.
Ok I guess I have explained my problem....I'll wait for somebody to response.

Check my 2 sites
http://www.clearealty.com
http://www.books-softwares-online.com

I am still working on both of them but I need your help!!! please.

Bye and have a nice day!!!
and Merry Christmas for everybody !!!!!

Matias Bulox

How Do You Stop Sound In Flash During Authoring
I am incorporating sound in Flash for the first time and most of it is pretty straighforward, but if I play the sound file via the timeline (hit enter), it will not stop. Worse, if I go to frame 1 and hit enter again, the sound file begins again and plays on top of the first instance of it. I got out the so-called "control" palette, but it does not stop sound. I have about 5 minutes of audio to synchronize with animation - I sure hope there is a means for me to start and stop the audio during authoring time...

Never mind, I got it. lynda.com has a tutorial under their Flash 8 Essential Training about putting sound on buttons; in there the instructor spoke about the sound event type, (accessed from the properties palette) which controls how the sound is handled by Flash. The default sound type is "event" which is used for short sound clips and generally used for things like button presses. This type of sound event allows for the sound to play repeatedly on top of itself (for example, if the user keeps pressing the button). By switching the sound event type to "streaming" - used for longer sound files - it keeps that from happening, and now the sound starts and stops with the playhead while authoring the movie (whew!)

How Do I Stop A Sound From Looping In Flash ?
my flash document loops but I want the sound to play only once    when the .swf is first loaded

Will someone help on this?

Using Flash MX

I imported the sound to the stage

in properties

sync: event,repeat,0



Mp3 Player In Flash - Stop Sound Actionsccript?
Hi there!

I have a flash website with a mp3 player in one of the frames within a movieclip - called content. The player loads mp3's through xml.

All works ok enough, until you click on navigation buttons...like "about" contact" - the player unloads - but the music keeps playing.

have a look at
www.dieskim.com/SKIM SITE-NEW-FINAL.swf

click on "musiek" button..


what can I do to stop the sound.....tried this on my button:
on (press) {
MySound.stop();
_root.content.gotoAndStop("2");
}


does nothing....

please can someone help!!

How To Stop Flash Sound When Wmv File Plays?
I have a background sound file that plays in a flash file.(With manual on/off switch)
There are wmv video clips on the page that the user can watch when clicking on links.
How can I get the flash sound to stop when the user launches the wmv files?

thanks,
A Plesek

Flash 8: Stop Mc At Frame & Control Sound
Hello,

I'm new to actionscript/flash. I have on different layers: action, lilypad, frog_mc, button, water mask and sound. What I'd like is if the button is released, for the frog_mc (frog jumping off the lilypad) to play just once, and the water mask to move, and the sound to occur.

On the action layer I have:
//stop the movie clip when page loads
animated_mc.stop();
//when home button is pressed, play the movie clip
home_btn.onPress = function(){
animated_mc.play()}

The last frame of the frog layer: animated_mc.stop();

The first frame of the sound layer, which is close towards the end of the frog layer:
var water_splash = new Sound();
water_splash.attachSound("water");
if (home_btn.onRelease == true){
water.play}

The movie clip plays when the button is pressed, but the frog continuously jumps, and the sound, and water mask do not work.

I'll be making several of these buttons to incorporate into a dreamweaver css file. Will I be making different swf files for each button?

Thanks for any help on this.
Janis

Stop Specific Sound File In Flash
Hi guys,

I am using three different sound in my flash presentation.

1. Sound1.wav
2. Sound2.wav
3. Sound3.wav

I am using these sound file Know i wanted to stop a "sound2.wav" and wanted to start sound3.wav after stopping sound2.wav.

Any body now how to s specific sound file in flash with file name.

I try so many different ways but i couldn't succeed.
Plz help me

Thanks
Kaleem.

Making Sound Stop And Play In Flash
How do you make sound "STOP" and "PLAY" in flash. Like when you have sound in the background in your flash movie and some people don't like to here sound and they can turn it off. or turn it on

How To Stop Current Sound When Going From One Slide To Another In Flash Slideshow
Hi,

I am trying to find a solution to a problem with sound in flash slideshow I'm making.

It will have 31 slides, and almost all slides will have one or more sounds (narrations) in it...

When I play the slideshow and let it go all is good, but when I want to go to next slide before the current slide sound finishes, that sounds keeps on playing and the sound from the next slide also starts so they overlap, when I press space again and go to third slide it's sound starts as well and now three sounds overlap...

Please help me with this one, I need a quick solution. So I need all the sounds in the current slide to stop when moving on to the next slide.


Thank you very much.

How Stop Sound On Flash Movie When Page Reloads?
CLICK HERE TO VIEW THE SITE

The problem is obvious. The flash banner has sound. Whenver you go to ANY page the page reloads and the sound replays.

This template only allows you to use one header, so I cannot make 1 with sound and 1 without sound.

Any ideas how I can handle this? Not sure if frames will work in this case. Your ideas????

How To Stop Current Sound When Going From One Slide To Another In Flash Slideshow
Hi,

I am trying to find a solution to a problem with sound in flash slideshow I'm making.
I am attaching what I have so far...


It will have 31 slides, and almost all slides will have one or more sounds (narrations) in it...

When I play the slideshow and let it go all is good, but when I want to go to next slide before the current slide sound finishes, that sounds keeps on playing and the sound from the next slide also starts so they overlap, when I press space again and go to third slide it's sound starts as well and now three sounds overlap...

Please help me with this one, I need a quick solution. So I need all the sounds in the current slide to stop when moving on to the next slide.


Thank you very much.

Attach Sound, Play Sound & Stop Sound.
Hey there,

I was wondering if any of you could help me please.

I want to play a song which I have named "rundmc" The file extension is ".mp3"

I want a button to play this mp3 which I read you need to attach that sound, then play it and I want to a button to stop that sound, or preferably the play button to change into a stop button.

I've read the help files, but none of it works and I've changed the linkage for the mp3 to export for action script, but nothing works!!!

Please help,

NK.

.stop() For Sound Object Stopping Embedded Video Sound
I have a problem where the stop funtion for a sound object is stopping the audio in an embedded video. Has anyone ever encountered this? Ihave poured over my code and there is no cross-linked intance names, so I do not have a clue what is happening.

Stop Sound File Early (using Sound Object)
I know I can use the play() method of the Sound object to offset the beginning of a sound. Ex:

mySound.play(2000) - plays the sound beginning at 2 seconds

Is there a way to get a sound to stop early? For example, if it is a 20-second sound, can I get it to stop at 18 seconds? Thanks!

On Press Play Sound On Release Stop Sound
I have a button that is inside a movie clip 'forward'.
When you press the button it plays another movie clip 'time' forwards

on (press) {
forward = "1";
}
on (release, rollOut, dragOut) {
forward = "0";
}

on the button and:

if (forward eq "1") {
tellTarget ("/time") {
nextFrame();
}
}

on the first frame of the 'forward' movie


I would like sound to happen when you press the button and stop when you realease the button

but I not sure how any help would be gratefully excepted

How To Stop MC At Same Time As Sound Stop?
Hi and thanx for u trieing to help me.
I have used this code to play a sound from the library.

with (song_link) {
sound1 = new Sound(song_link);
sound1.attachSound("inga");
sound1.setVolume(100);
sound1.start(0, 0);
}

and when the sound stops i would like to stop a MC that loops.

if there is any way to have an if command in the MC that waits for a variable to be sended and then stops.

or to set some kind of countdown when u start to play the sound that tells the MC to stop.

i would be very glad if u could help me!

Stop Movie - Don't Stop Sound
Hello,
I'm making a intro for somebody's site. The intro plays a loop. At the last frame I made a stop script. But I want to the muis (a loop) to play on and on. So the music won't stop when the movie stops.
Can somebody help me?
Tnx & greetz, Big_Boss_Man

If I Stop The Sound I Want To Play It From Where Is Stop :)
hi all

i want a button if i cilck on it the sound will stop and another button if i click on it the sound will continue from where it is stoped is it possible in flash or not

and the sound where is the best place i place it ( movie clip - main frame - action ????


thanks

if any one can give me an open file to be clear or the code

Rollover W/sound , Stop Sound On Rollout
HI,

I've got rollovers w/sound, that are close to each other. When i roll over them, they ALL play...How do I stop sound on rollout WITHOUT stopping my Background sounds?

Help Appreciated, Thx

Rollover Sound On - Rolver Sound Stop
I am new to Flash but would like a little more control over a button sound than I currently understand. I would like a sound to play on rollover of a button but as soon as the mouse is outside that button, I would like the sound to stop. Is there an easy way to achieve this?

Thanks

Need Start And Stop Sound Help ON AND OFF BUTTONS FOR SOUND PLZ
ok I have a Flash site iM making with BG music but I need a START and STOP Button and a Next and Prev button for the music so PLEASE help me out with this is u can I need FULL instructions

Sound.getbytesload And Sound.stop() MXPRO2004
I've figured out a workaround for this, but was just posting to see if anyone has a better way to do this.
What I want to create is a streaming player that shows a bar of how much of the sound is loaded and an indicator on the bar of where the sound is currently at while playing. I would also like the sound to start loading as soon as the movie is loaded, but not start playing until the user presses the play button.
The problem I run into is if I stop the sound, the loading of the sound stops too. So, the only way to have the sound load is to also play it. The workaround I'm using is as follows:

When the sound first starts loading, I set the soundvolume to 0. If the user presses the play button, I begin playing the sound from the beginning. If the user presses the pause button, I record the duration of the sound into a variable, but instead of using mySound.stop(), I turn the volume to 0 and let the sound continue to play. If the user then unpauses the sound I start play from the duration number where it was last paused.

I'd like to be able to use sound.stop() on this, but I don't think it's going to work. Any ideas?

HELP Sound Object Stop Kills Flv Sound Too
code:
if (!firstTime) {
_root.introMusic = new Sound();
_root.introMusic.attachSound("music");
_root.introMusic.setVolume(50);
_root.introMusic.start(0, 1);
firstTime = true;
}

music_btn.onRelease = function() {
if (!rockNow) {
_root.introMusic.setVolume(0);
this.gotoAndStop(2);
rockNow = true;
} else {
_root.introMusic.setVolume(50);
this.gotoAndStop(1);
rockNow = false;
}
};
stop();


This script for my "music on/off" btn kills ALL audio and not just the sounds object audio. It also pauses FLV playback (I'm using the FLVplayback component). Any insite?

I've tried modifying the above AS not using the "_root." to target the obj and also stop() and start() on the obj instead of just volume control. HELP!!!

Thanks,
1M.

Play Sound/stop Sound Button
i want to make a single button to play a sound, and if pressed again, stop the sound. and if pressed again, play the sound, and so on...
i know it has to be made with a boolean variable, true/false, but i just can't figure out how.
any help?
thank you very much.

Sound.stop Is OK, Sound.start ?
I create a button that stop sound, but i do not know how to create a button that will start to play that sound again.
I try with sound.start but does not work, pleas help?

Stop Sound On A Specific Sound
I have a main timeline with 3 frames. Each frame has a different movieclip but with the same background music. In frame 2 of the main timeline, I have a movieclip that also has sound. If they hit the next frame button from the
main timeline in while in frame2, the sound continues onto frame 3 of the main timeline. I want to stop the sound from the movieclip in frame 2 but not the background music which continues from 1 through 3.

In frame 2 I have a lightning flash - the wav file has linkage as lightning ----

_root.l = new Sound();
_root.l.attachSound("lightning");
_root.l.setVolume(85);

I start frame 3 of the main timeline with this but it kills the music as well ---
_root.l.setVolume(0);

PLAY Sound And STOP Sound
I have no clue how to play and stop sound. I tried everything but I guess I am doing it wrong!
basically...... the name of the clip i want to play is
sound1

i have a little play button and a little stop button
i need the code so that it will play sound1 when clicked on
and the stop button i just put stop all sounds so i guess that should take care of it..but if that is wrong then please let me know, lol
thanks

xox marqi

Sound Stop And Sound Start
Hi There.

I have the follwoing problem. I have this play/pause button that toggles. This works. When clicking it the movie freezes and when clicking it again it runs. I have now added sound to the timeline, and what I want is that when clicking the pause button the movie freezes but also the sound freezes. Clicking the pause button again should start the movie and the sound again.

I have written the follwoing actionscript to the button:


Code:
isPaused = true;
allSounds=new Sound();

this.movieClip.play_btn.onRelease = function() {
isPaused = !isPaused;
movieClip.gotoAndStop(isPaused ? 1 : 5);
stop();
_root.allSounds.stop();
if (isPaused==true) {
play();
trace("We are rolling");
trace("and this is frame "+_root._currentFrame);
_root.allSounds.start(0,99);
}
}
It does half of it good. When I now click the button, the movies freezes and the music stops. When I click again the movie starts again, except that I do not hear any sound anymore. I am sure it is just some simple error, but any tips would be welcome!

Thnx!

How To Make A Sound Stop Only That Sound...
i think my problem is simple but i just am not getting a certain code. ok i have a radio in my flash mx vid. when i click it once. it plays music. when i click it again, it stops it all sounds. how do i make it just stop THAT sound?


{Radio} <---- movie clip

Sound Object - Specifying Only Certain Sound To Stop
Hi everyone. I'll try to make this as brief as possible. I am creating a flash project which contains video on a few pages. The project also contains background music which loops contiuously.

The goal is to have the background music stop whenever the user is on a page containing video and for the music to play again when the user leaves said page.

The script I created works to stop the music, but it also stops the audio contained within the video and causes the video player (by proxxus) to lock up.

The solution is probably a simple one, but I'm having difficulty figuring it out.
If anybody can see where I've gone wrong, your help would be greatly appreciated. Here's the setup:

Library:
music.wav - linkage = "myMusic01"

Main Timeline:

Code:
//-- create a variable to determine if the current movie contains video
var currMovie:String = "notVideo";
//-- start playing sound object
myMusicMc.myMusic.start(0, 999);
myMusicMc (residing on main timeline)
frame 1

Code:
//-- set up sound object
myMusic=new Sound();
myMusic.attachSound("myMusic01");
frame 2

Code:
//-- check the variable "currMovie"
if (_root.currMovie == "Video") {
_root.myMusicMc.myMusic.stop();
} else {
_root.myMusicMc.myMusic.play();
}
frame 3

Code:
//-- create a loop to continuously check the variable
gotoAndPlay(2);
on the actions layer of the movie clip containing my navigation controls
snippet of the callback used

Code:
videoLink_mc.onRelease = function() {
_parent.prodDetail_mc.gotoAndPlay("video");
_root.currMovie="Video";
}
on all the other buttons currMovie is set to "notVideo"

Stop Sound To Start Another Sound
I have a movie -a read aloud ebook for kids-with a main soundfile, and buttons with soundfiles (definition of the word in the text). I need to be able to click on the word definition button, stop the main soundfile, listen to the word definition button soundfile, then return to the main soundfile. Everything in the movie works perfectly except that with the code below (on each button), on rollOver ALL sounds are stopped, and I can't work out how else to do it. Can anyone show me how to do this without the onRollover please?

on (rollOver) {
stopAllSounds();
}
on (press) {
_root.play();
}
on (release) {
_root.stop();
_root.btnStopPlay.attachMovie("mcButtonPlay", "btnPlay", 1);
}

How To Make A Sound Stop Only That Sound...
i think my problem is simple but i just am not getting a certain code. ok i have a radio in my flash mx vid. when i click it once. it plays music. when i click it again, it stops it all sounds. how do i make it just stop THAT sound?


{Radio} <---- movie clip

Cannot Stop A Sound
I am having trouble with sounds. I thought that the way to do it was to add the sound to a MC in frame 1, put it on the stage, and give it an instance name (sound34) and on a button to stop it put

on (release) {
sound34.stop();
}


But it doesn't work? Am I missing something important?

Thanks
Emily

Stop ALL Sound
how do I stop all the sound in a movie. I use the stopallsound action but is don't work.

Stop ONE Sound
Hi.

I'm trying to get ONE particular sound to stop playing when a skip inro button is released. I do not want to stop all sounds.
I have placed the sound, on its own in a movie clip on the root level. I think I found this Script, in a Macromedia Tech Note, but I can't get it to work...... The note called for the Sound "ID" I assumed (although I may be very wrong) that the name of sound effect would work within the brackets. This is the ActionScript that I have attached to the button:

on(release){
gotoAndPlay(205);
_root.mysound.stop(["Savage 2.aif"]);
playing = false

}

Thanks for your help

Stop Sound From MC
Hi

I have a movie loop playing on the main timeline.

I am trying to stop the sound on the main timeline from a button inside an
MC.
I have tried these three scripts, but they did not work: -

on (release) {
stopAllSounds ();
}

on (release) {
_root.stopAllSounds ();
}

on (release) {
_level0.stopAllSounds ();
}

Any suggestions?

HELP Stop Sound
I need to stop a single sound, and not all of the sound playing

Stop ALL Sound?
hi, i know how stop a particular sound with the .stop() command,

but i have a button which i wish to script to disable ALL sound events in the whole movie. so even though there will be commands saying soundX.start(); i wish to do this without using an if statement on each and every sound to see if the instance is on.

is this possible, its a bit like a button you find on flash web pages which disables sound so im sure its possible..

How To Stop A Sound?
How do I stop a sound from one scene to the next? I have a crowd sound effect in the background of Scene 1 in my movie and when I cut to the scene 2 which is not where there should be crowd the sound keeps playing until the clip runs out. How do I make it stop at the end of a scene?


__________________
-Mike
http://www.animationinsider.com

Stop After Last Sound?
Hello,

I'm using this AS code to play a serie of sound clip:

onClipEvent(load) {
songArray = ["first", "second", "third", "fourth", "sixth", "seventh", "eighth", "nineth"];
index = 0;
thisSound = new Sound(this);
thisSound.attachSound(songArray[index]);
thisSound.setVolume (80);
thisSound.start();
}
onClipEvent(enterFrame) {
percentPlayed = thisSound.position / thisSound.duration;
if (percentPlayed == 1.0) {
index = (index < songArray.length - 1) ? index + 1 :0 ;
thisSound.attachSound(songArray[index]);
thisSound.start();
}
}



I would like the sound to stop after the last sound clip! I've try modified the code, but my limited knowledge got me stock!
Thanks

chris

How To Stop Sound
Hello friends,

I am using a sound as a movieclip. I want to stop the sound when I click the stopsound button. But it is not working. I don't want to use stopAllsound because it will stop all the sounds in the movie. I want to stop a particular sound.

Suppose there are different scene and every scene has different sound and when I click on the next scene button the previous sound doesn't stop.

I have attached a sample fla file. Please help me with this.

Thanks in advance
Salim

Stop One Sound Instead Of Everything
Ok, In flash 2004, I have a button playing a sound for as long as the viewer holds down the button. I also have a stream event playing in the background for the entire duration. Now the stream plays but as soon as the user clicks on the button it stops the stream. In the button this is the code I have to stop the sound

my_sound.stop();

I didn't use stopallsounds, but I have no idea why its stoping the .aif in the background

SOUND WON't STOP
Ok i ahve my flash site setup so that then main screen opens up and a want a sound to like a door is opening, but its a 17 second sound file and I want the sound to stop on frame 15 and I right mouse clicked the frame and puyt stop all sounds in the actionscript but it keeps going... what do I do..... and after that I want a swoosing sound cuz the main table slides sideways then have the bg music start playing...? how?

Stop Sound
I'M SORRY ON MY ENGLISH

HI I HAVE A QUSTION

HOW CAN I STOP THE SOUND WHENEVER I WANT ,
FOR EXEMPLE: IF THE SOUND TRACK IS 20 SEC AND I WANT IT TO STOP IN THE 17th SEC.

PLEASE HELP
TANKS

Stop All Sound Help
hi everybody!
i have a prob:
in the main movie i put a "stop all sound on realease" as, but it doesn't apply on the externalmovie loaded.
can i know why?
how can i do?
thank u

How Do I Get The Sound FX To Stop.....
How do I get the Sound FX to stop playing
when the user leaves a certain page ?

Copyright © 2005-08 www.BigResource.com, All rights reserved