Stopping a currently playing sound?

I will try to make this quick and painless and hopefully
someone knows a solutions...
I am making a kiosk based on another designers layout where I
work... I am not going to get in the details, but the work seems
sort of an unorthadox way of using flash - anyways...
It is basically an interactive slide show... play, pause,
previous slide, next slide...
Each SWF that is loaded in is around 15000 frames in lenght
(right under that magical 16000 number) - the audio voice overs are
on the time line one after another... so when the slide changes the
voice over matches the slide current slide... there are 31 slide
JPGs and 31 mp3 files that are divided between 8 SWFs.
The issue I am having is that when you are one the first
"SWF" (slides 1-5)... and you move from slide 1 to 2 before the
audio is done playing... it will keep playing the audio from slide
one and then start the audio from slide to ... so on and so forth
until you get to slide 6 - which is a new SWF that is loaded...
I know that I need to use a stop sound script somehow... on
the first frame of each of the following slides so that it stops
the currently playing sound... if it hasn't already finished...
if you let the presentation go it works fine... but when you
move forward and back... the sound gets garbled....
can someone please help me rig this to stop the currently
playinh sound when you advance to the next slide...
I know this is a horrible way of doing this... I would have
loaded averything in at the begining and called it when needed...
but to go into details of why I had to do it this way would be too
long... let's just say the client is always right...

I'd use:
var snd:Sound = new Sound();
snd.attachSound("likageID");
snd.start();
It looks like you attempt to attach the sound to the
movieClip instead
of the soundObject which won't work.
HTH,
Manno
DigitalElemental wrote:
> Ok I am trying to get the sound off of the time line...
i have a feeling the
> way this other guy did it is going to put me in a world
of pain...
>
> I put this code at the begingin:
>
> var snd:Sound = new Sound();
> slide001.attachSound("slide001");
> slide002.attachSound("slide002");
> slide003.attachSound("slide003");
> slide004.attachSound("slide004");
> slide005.attachSound("slide005");
> slide006.attachSound("slide006");
> slide007.attachSound("slide007");
> slide008.attachSound("slide008");
>
> then I try calling the sound to start at the specified
frame I need it with:
>
> slide001.start()
>
> I can't get the sound to play though... can someone tell
me what I am doing
> wrong here? I have set the linkage for all the sound
files...
>
> Thanks
>
Manno Bult
http://www.aloft.nl

Similar Messages

  • Play sound in specified duration and desired file when reading data with VISA functions ?

    Hi.
    I read data with VISA read function and then I use functions like multiple for showing data on Chart. every thing is OK.
    now I want play a specified sound (like a 3s song in my desired folder) when signal amplitude cross over from specified value. then after desired time, it will be wait for new cross over from specified value and this procedure repeat again until I stop the program. 
    Data comes from MCU and it doesn't stop when system play sound and when system play sound, incoming data for this part (play sound) will be ignore them until specified expired.
    I use this VI for reading data and mentioned part which is sound part is empty and I don't know what I must done ?
    altougth I use another while loop for sound apart because I want save CPU time.
    Thanks.
    Solved!
    Go to Solution.

    I would recommend making the data type of the notifier a cluster that contains a path and a numeric (double).  The path tells the player which file to play.  The numeric is the duration.
    Now for a slightly complicated, but really neat, way to stop your second loop.  Do not use a second notifier.  Instead, send the normal notification but use Not A Path for the path in the cluster.  Your second loop can do a check for the Not A Path and stop when that is recieved.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • IPhone randomly stops playing sound out of iPod docks?

    I recently plugged my iPhone 4 iOS6.0.1 (the new update recently put out by apple) and it has stopped playing sound out of any iPod dock I plug it into.
    It plays sound normally out of the speakers and charges while on the dock. Has anyone had any problems similar and any solutions?
    Also I have restored my whole iPhone this morning and it still has the same problem. My husband doesn't have this problem and he has the iPhone 3.
    Is this a bug with the new iOS6.0.1 and is Apple going to put out a new update anytime soon to fix it? Or do I need to send my phone away.
    Thank you.

    It can't be 3 years old since the 5G iPod was first introduced in Oct 2012
    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so. There is a little switch in the headphone jack that disconnects the speaker when the headphone jack is inserted.
    Try the following to rule out a software problem
    - Reset the iOS device. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    If not under warranty Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

  • For certain songs on my iPhone 4s with iOS7 some songs stop playing audio but continue playing the song almost as if it were muted. Where can I fix this? Say "Stronger" by Kanye West stops playing sound after 2:25 but it is 5 minutes long.

    Basically it is just like it says. Certain songs stop playing sound after a certain point in the song but the song continues playing and ticking down like it normally would. Does anyone else have this problem?

    Hi I found the answer from another post. So far everything is working find. I been trying to fix this since march,
    from
    Mike N. (nahyun...
    Posts: 2,814
    From: New York, NY
    Registered: Oct 1, 2003
    Re: itune application and itune folder
    Posted: Jun 27, 2007 7:16 AM in response to: Austin Smith2
    Solved
    Reply Email
    Deleting the application rarely solves anything on Macs. A better starting point is normally to delete the preference file for the application (in Users/~/Library/Preferences/com.apple.itunes.plist) or see if you have the same problem in another user account on the computer.
    PM MDD(1.25GHz 1.25G-RAM 320G-HD) Mac OS X (10.4.10) 20"ACD USB2Connect MacBook (2.0 White)-2GB Report this post
    Austin Smith2
    Posts: 118
    Registered: Oct 31, 2001
    Re: itune application and itune folder
    Posted: Jun 27, 2007 12:51 PM in response to: Mike N. (nahyun...
    Reply Email
    Mike, deleting the preferences did the trick, but I don't know why. Itunes downloaded 5 days of podcast! Hurray!! Thank you!!!!!!!!!

  • HT201401 Hi my 4s has all of a sudden stopped playing sound.

    Hi my 4s has all of a sudden stopped playing sound. I have a ringtone but no sound for music/movies etc. tried turning on and of and letting bat go flat then recharging. Sound came back for a while then went again. I noticed this started soon after I upgraded to 5.1.1 . Ive also looked at the error reports the phone generates for apple and there are a few memory low notes.  Any help would be appreciated.

    We have a WHOLE discussion about the issue over here:
    Re: IOS 5.1.1. update bug (Volume Control)
    So far Apple is not doing anything to fix the bug with 5.1.1 It's really annoying!

  • I can not STOP THE MUSIC that is currently playing.

    I can not STOP THE MUSIC that is currently playing  Looking for a music app or a way to let me stop the music that is playing. I have asked this over and over all over the internet and no one has an answer. I enjoy my music for a while but when it is time to STOP THE MUSIC I have found but one way - Turn off or power down the device. This is so annoying I have stopped playing and stopped purchasing any and all music of any type. If I can not find a way to do so I will remove all music from my devices until I may hear of how to STOP THE MUSIC. I have seen it is done on Android devices but no Apple devices. If there proves to never be a way to STOP THE MUSIC I will surely sell all 5 of my iPhones, iPads and iPad Minis and finally give up on Apple ever truly caring about their users.

    Wwell, maybe it is just me. I have been using and have bought 7 Apple devices just over the past 3-5 years. Having supported, programmed, configured and taught college level courses for MS based and super computer hardware and software configurations for almost 20 years I am apparently ignorant of differential operations. Previously I had 5 choices on any hardware or software when playing anything like music, video, DVDs or anything similar. I had 'Play' 'Fast Forward' 'Fast Rewind' 'Pause'  a n d  'STOP'. Perhaps Apple has found the STOP unnecessary but I thoro enjoyed knowing whatever I was playing had STOPped and could not continue unless I chose to go back to the program or equipment and chose any of the 5 choices except STOP again since I could not STOP a STOP. As I said perhaps I need to reconsider my choices and obvious ignorance. Thanks for all the help.

  • Why won't videos play on my new iPad 2 14gb? They either constantly buffer, stop and I have to press play again, play sound only etc.

    Why won't videos play on my new iPad 2 14gb? They either constantly buffer, stop and I have to press play again, play sound only etc.

    Thanks .Ralph.  The problem is only on the iPad 2only.  I have an iPad 1 as well and it never had the problem.  The only videos that I have tried are you tube and the tutorials on apple.com.  I have absolutely no problem on either of my laptops or desktop PC's.  Only the iPad 2.    I am a new Apple user, so not very familiar yet with the product, but this is an absolute deal breaker for me.  With Apple's reputation I was not expecting any such problems and it is beyond my skill set to solve it.  Very frustrating.  Again, no problem with you tube videos.  I don't watch movies, so am not a Netflix member and haven't tried that yet, only you tube videos and apple.com tutorial videos.  I have to watch those on my laptop.  Again, I found a fix to the you tube problem.  It was a link to a site.  www.youtube/html5.  html5 video player trial that you click on and once done, the videos on the you tube app started working great.  They were doing the same thing as the tutorial videos prior to that.  No such luck with the other web videos, at least the ones that i have tried. Hope this is enough info and understandable. You might check out the html5 site.  I didn't thoroughly understand why, but it worked.  You may understand it better.  I am a proficient user, but far from an I.t. Pro.  I have read Many posts with similar problems, but no simple solutions and the ones I did try didn't work.  Speed tested well.  Channel is set to auto and always different than neighboring networks, usually channel 11.  Tried disabling QOS as suggested....no good.   I am completely stumped.   Any help is greatly appreciated.  Thanks very much for you time and helpful info.
    David

  • My iPad 3 iOS 8.3 suddenly stopped playing sound on its speakers while on Spotify. Volume max. Side switch not on mute. Tried rebooting thrice. Sounds won't work on other apps. Works with earpods.

    My iPad 3 iOS 8.3 suddenly stopped playing sound on its speakers while I was listening on Spotify. Volume was maxxed out. Side switch not on mute. Tried rebooting thrice. Sounds won't work on other apps (Soundcloud, NPR, Clash of Clans). There are sounds when I attached my earpods. I tried the switch to mono solution on the other threads, didn't help either.
    My iPad is generally muted because of classes, but when I un-mute it it works fine. It just stopped after one song, and now I can't get it to work. Any thoughts? Thanks.

    Hi!
    I've the same issue after updating to iOS 8.3. on iPad 3.
    sound is working properly only with headphones attached.
    when I tap on AirPlay button it says "Docking connector" while it should "iPad"
    when i play with sound settings and try to change e.g. some alert sounds, sound is played and volume slider in control center magically appears.
    any other app can't play sound.
    is there any fix for that?
    Thanks

  • IPod stopped playing sound out of speakers

    I have an iPod touch 5th Gen which is around 3 years old and today it suddenly stopped playing sound out of the speakers. If i put headphones in sound plays fine out of them but as soon as I take them out no sound comes out even if there is something playing.
    The speakers were working fine around 20-30 minutes before I realized they weren't working and my iPod has been doing nothing but sitting on my desk in that time. I tried restarting my iPod but this didn't fix the issue.

    It can't be 3 years old since the 5G iPod was first introduced in Oct 2012
    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so. There is a little switch in the headphone jack that disconnects the speaker when the headphone jack is inserted.
    Try the following to rule out a software problem
    - Reset the iOS device. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    If not under warranty Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

  • HDMI Stopped playing sound through tv?

    I've been using my HDMI 12 months and its aways worked perfectly but today, it stopped playing sound through the tv. I have gone onto the sound play back options as suggested on this sight but the HDMI option isn't showing and when I go on the speakers and headphones option it won't let me click the set default option. I haven't done anything new to my lap top, so not sure why its all of a sudden stopped working. Any advice on how I can get the sound back ?

    Nope  not yet. I have looked at other simular questions on here and their solutions won't work for me. only put it up today so fingers crossed, some one with have a answer. 

  • Stop itunes from skipping back to song currently playing

    I have a messy library right now and need to work on it quite a bit! I was curious if there is some way to set itunes to stop skipping back to the song currently playing when I am working on renaming or organizing in a different part of my library?

    That bugs me too when I'm working on tags or artwork. So I decide on some songs or an album I want to hear, and drag them into a regular (blue icon) playlist I've named "Now playing".
    I start that "Now Playing" list to playing, and then go to back to the main library to do other stuff, or look in the itunes store or at podcasts, etc.

  • My macbook pro has stop playing sounds

    I have a relatively new macbook pro and the sound isn't working there is no supposed "red light" problem that most seemed to have, the volume icon shows at full and nothing plays, I went into system preferences under sound to check if everything was alright and it was.. my mac is only less than month and hasn't been dropped or damaged in any way...? any help

    try to reset the SMC
    - turn the computer off and make sure the power is plugged in
    - then on the left side of the keyboard, hold down the shift, control, and option keys
    - while they are held down, press the power button.
    - the computer should not turn on if this is performed correctly.
    - after that, let go of everything and turn the computer back on
    - also, what applications are you trying to play sound through? Make sure the sound within the app or player is turned up

  • My iphone 4s just randomly stopped playing sounds or any audio without the use of headphone

    Phone will just not play sounds not matter what quick fix i try unless i am using siri which seems to work

    Thanks, I tried that. However, this is what I did and what worked!! I saw this technique on a previous message on this site.
    I blew air into the headphone output with a camera cleaning blowy bulb, and put in my headphones, turned them around, and pulled them out  several times.
    My headphone output my have been compromised with dust or dirt !
    Thank you again for your reply.
    PS I called Apple support and the fellow had no idea how to fix this.

  • Why did my mac stop playing sound?

    Anybody know why my laptop isn't playing sound anymore? I have check the audio in settings and everything looks normal minus the master volume. It won't let me touch that and adjust it...ideas?

    What version of OS X are you running? Which MacBook Pro model do you have (e.g., 15" late 2011)?
    Have you tried going to System Preferences>Sound and selecting your internal speakers for output? Can you get sound by using headphones?
    Just need some more information.
    Clinton

  • Ask before you stop song that is currently playing.

    I am at a party, a song is playing from my ipad. I pick up my ipad to search for another song and touch the screen by mistake which stops the song I am playing. It should have a pop up that asks if you would like to navigate or stop what is playing. It can kill a mood.

    Updated: 2015-07-27Hello!
    Your idea has been submitted a while ago but unfortunately hasn't gathered enough kudos (25 per year). In order to keep an overview of the active ideas in this forum, we will close this idea for now. However this does not mean that your idea has been declined by Spotify.
    If you still feel strongly about your request, we encourage you to post your idea in a little different form again! Maybe now is the right time to receive the support of our community for your suggestion! ;)
    Do you have any further questions on how the idea exchange is managed? Just click here!

Maybe you are looking for

  • Problems with my Time Capsule since updated to Mountain Lion

    Since I have updated my MacBook Air (late 2010 model) to OS X Mountain Lion, I am experiencing problems connecting my Macbook Air to Time Capsule and experiencing problems in Time Machine copies to the Time Capsule: 1.- When I turn on my computer, Ti

  • Extract layer with alpha channel or with whole layer size?

    First of all.Sorry about my English.But I'll try my best to describe what I mean. The text with transform: The extract window of text: Is any possible make the extract given whold layer size result ? What I except:

  • REPORT 10G ERROR WITH DESTYPE=PRINTER

    I try to pass the DESNAME with the name of a printer mapped in the net ex:desname='\\192.168.1.3\epson_lx300' , occours an error ora-01403. If i pass the local printer, work's fine!!

  • Can't import projects to GB on IPad which are exported by GB on IPad

    I have recorded over 110 songs on the IPad with Garageband. Lately GB started to react kind of leggy, which makes sense because GB was taking up the bulk of the memory on the IPad. Now you can export complete GB projects files and delete the original

  • Creating a custom or random sort order

    I would like to be able to drag and drop my images in any given order, and then rename them sequentially. This is useful for creating albums, etc. Will Lightroom enable me to do this? If so, HOW? I have not seen this topic, nor does it appear possibl