How can I stop streaming of a sound?

Hello,
after asking in another Forum without getting an answer, I'm
now posting here:
I have a Sound var and some buttons (mc's with eventhandlers)
on the stage.
I have an array including URLs of some mp3 files.
For every mp3 there is one button.
When a button is pressed, a "loadSound" starts with the URL
of the pressed button. (streaming is on)
Now I tried the whole thing with the Bandwithprofiler, where
You see the streaming and its process.
When I hit one button twice (or more, the number doesn't
matter) the swf streams the SAME soundfile twice!
This is not very good, becaus if someone hit the button a
hundred times, the performance would become very low.
So how can i get rid of this multiple streaming of sounds?
One answer I already got, was to load a soundfile that
doesn't exist what should kill the streaming process, but this
didn't work.
sorry for my bad English, I hope you understood it.

use an if-statement to force execution of your loadSound(),
at most, once.

Similar Messages

  • I want to listen to itunes through my 5.1 amp on apple tv but sound stops when tv is switched off how can I stop this?

    I want to listen to itunes through my 5.1 amp thru apple tv but the sound stops when when my television is switched off how can I stop this?
    All I want to be on is my PC and my amp connected thru ATV via optical linkl

    Welcome to the Apple Community.
    Yes there have been a number of reports posted about this, it seems different people experience different results here with some finding the same as you, some finding that it won't work at all with the TV turned off and some finding that if music is sent from iTunes on the mac/pc that as long as the TV is on when the stream starts, the TV can be turned off afterwards.
    My assumption here is that it depends on the TV itself, although that probably doesn't help all that much.

  • When I record an audio track, there is a waveform. When I stop recording, the waveform disappears and becomes a straight line. It also disappears from the track edit window. But the sound is there. How can I stop the waveform from disappearing?

    When I record an audio track using Logic Pro X, there is a visible waveform which appears as I record. When I stop recording, the waveform disappears and becomes a straight line. It also disappears from the track edit window. But the sound is still there. How can I stop the waveform from disappearing? And can I do something to view it after it has disappeared? Anyone know the anser?

    In Logic:
    Preferences/Audio Set Recording Delay to 0 <zero>
    This should always be set to zero unless a specific set of circumstances exist and you're audio drivers do not report position correctly.
    On occasion, usually when importing a Logic 9 project, Logic-X randomly changes this to a negative/positive number.  It's actually a bug in Logic, as it should always display the waveform.

  • I purchased an I pad giving my macbook to my husband.  His photo stream doesn't work but mine still goes onto macbook .  How can I stop that ?

    I purchased an I pad giving my macbook to my husband.  His photo stream doesn't work but mine still goes onto macbook .  How can I stop that ?

    Another item to consider is do you and your husband have your own iTunes accounts?  If so then log out of iTunes on your old Macbook and log back in with your husbands ID and password.  If not this post will self destruct in 10, 9, 8, ......
    OT

  • How can I stop random photos showing up in photo stream?

    I keep getting photos of houses and pictures of women in my photo stream!
    My iPod Touch is 4th generation and it's secondhand.
    I have just deleted like at least 100 photos that I never took.
    How can I stop the photos from being synced into my iPod?

    Turn off PhotoStream.
    There are three ways that photos can get into your PhotoStream:
    - You take photos with your camera or save photos like email attachment on the iPod
    - You are sharing someone else's PhtooStream. Go to Settings>iCloud>PhotoStream>Shared PhotoSteams
    - You are adding photos to the folder on your computer that you have associated with PhotoStream.Go to your iCloud control panel on your computer and turn off PhotoStream

  • HT5295 How can I stop the auto play feature automatically playing/streaming the next podcast?

    How can I stop the auto play feature automatically playing/streaming the next podcast?

    Hi there.
    I listened to podcast there were two things I found that helped me out. Both we're in the podcast app itself.
    Firstly change the default sorting order. When looking at the list off episodes a available on your ios device tap on the description part at the top, this will bring up the settings for that podcast (subscribe mark as played etc) scroll to the Bottom and select oldest first. This will mean that if you are listening to the latest download it will stop at the end as there will be no more to play.
    Secondly, and useful if listening to older podcasts in the list, you can use the timer to stop once the current episode has ended. To do this when you are in the podcast playback screen slide the "album artwork" up, revealing the playback options and nifty tape playing animation this is where you adjust playback speed and set a timer. The timer has a number of options to set playback to stop after set amount of time. However one of these options is to stop once the current episode you are listening to ends. This can also be current chapter if the podcast you are listening to supports chapters.
    Hope this helps, if not clear let me know

  • How can I stop iPhone mirroring when it's not activated on AirPlay settings and I'm streaming music?

    I'm streaming Soundcloud from iPhone 6 plus and when I'm browsing other apps like photos the mirroring function automatically activates on my tv.
    How can I stop this?
    Mirroring is not activated on my phone.
    Thanks

    '''Scan for Malware'''
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try some of the following programs to scan for malware:
    * [http://www.malwarebytes.org/mbam.php MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://windows.microsoft.com/MSE Microsoft Security Essentials] (A good permanent anti-virus if you don't already have one)
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    '''Update Firefox'''
    [[Update Firefox to the latest version]]
    '''Reset Firefox'''
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • How can I stop my photo stream from sharing with my other devices?

    My mom and I both have iphones and whenever one of my friends or I set up a photo stream she gets it too. How can I stop this from happening?

    To fix this you need to be on a separate iCloud account (when you share and account, you share your photo stream).  To migrate your phone to a separate account, start by saving any photos not in your camera roll to your camera roll by opening your my photo stream album, tapping Select, tap the photos, tap the share icon (box with upward pointing arrow), then tapping Save to Camera Roll.
    Then go to Settings>iCloud, tap Delete Account, choose Keep on My iPhone when prompted, then sign back in with a separate Apple ID to create your new account and choose Merge to upload your data.  (Deleting the account only deletes it from your phone, not from iCloud.  Your mom's phone wont be effected by this.  Also, you can continue to share the same ID for iTunes and App Store purchasing, it doesn't need to be the same as your iCloud ID.)  Once you are on a different account, your photo stream will be no longer be merged with your mother's.

  • How can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,-

    how can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,…"

    It sounds like if you open Preferences in Word there will be a place where you can specify where to store autorecover files. Right now it sounds like it's pointing to somewhere that doesn't exist.

  • I have verified my new email address as my Apple ID but my IOS devices keep asking me to sign in to my previous email/Apple ID but have no access to it.  How can I stop or change this?

    I have verified my new email address as my Apple ID but my IOS devices keep asking me to sign in to my previous email/Apple ID but have no access to it.  How can I stop or change this?

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use.  When you do this you may find that the password for your old ID isn't accepted.  If this should happen, and if your old ID is an earlier version of your current ID, you need to temporarily recreate your old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  You can now use your current password to turn off Find My iDevice on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • How can i stop firefox from asking "Choose A Network Connection" when i'm offline and using my saved pages

    How can i stop Firefox from asking "Choose A Network Connection" when i'm offline and using my saved pages
    i use Firefox 22.0 on windows 7
    it's about one week that it ask for "Network Connections" when i'm offline and disconnected from the internet even when i don't open a save page and just opening Firefox with a blank page
    Image of the Error:
    http://home.sums.ac.ir/~rowshansh/firefox.png
    http://www.sums.ac.ir/~rowshansh/firefox.png

    Did you check the network setting?
    Sounds that you have set to connect automatically when a connection is not available.
    *http://kb.mozillazine.org/Autoconnect
    *http://kb.mozillazine.org/Browser_attempts_to_connect_when_already_connected

  • I uploaded to Maverick and now my mail always cc's me on every email I send out. I have checked Preferences and the Composing Automatically CC button is unclicked. How can I stop this?

    I uploaded to Maverick and now my mail always cc's me on every email I send out. I have checked Preferences and the Composing Automatically CC button is unclicked. How can I stop this?

    Sounds like your phone has the jitters.
    This is sometimes caused when a DLL fle is missing when you restore, so the ipsw pacakge wasn't installed corectly.
    You could back up and restore, but if it doesn't help go to http://www.felixbruns.de/iPod/firmware/ and then download the same firmware your on.
    Open up iTunes and hold Shift+Restore and select that firmware, you can't use anoy ther firmwares though.
    Hope this helped

  • Doing a 30 minute video created 15 Gigabyte of Internet usage. Why? And how can I stop this!

    Created a small, simple 30 minute video. Burned a few CDs. Downloaded one (1) sound track (a few MB). Internet usage soared to an unbelievable 15 GB!
    All data, files, etc on my PC, yet Premiere Elements used the Internet constantly, especially when burning CDs.
    Why? There was nothing to upload or download (except 1 sound track). This maxed my Internet allowance, and has cost me a lot of cash for extra capacity.
    How can I stop this data gluttony.
    Or do I have to junk a new, expensive program? (Premiere Elements 13.

    Contacted support.
    They say that this is 'impossible'!!!
    Went for Option 2. Accept one-time waste of Internet capacity. Write it off to painful experience. Junked Premiere Elements 13.
    Problem solved.

  • How can I stop the recent and favorites from show on the screen of my i-phone and i-pad, this is a new feature of iso 8

    How can I stop the recent and favorites from show on the screen of my i-phone and i-pad, this is a new feature of iso 8

    Hi AppleLove78,
    I'm sorry to hear you are having issues with your new iPhone 6. If you continue to have audio or call quality issues, you may find the information and troubleshooting steps outlined in the following article helpful:
    If you can't hear a person on a call or voicemail or if the sound quality is poor on iPhone - Apple Support
    Regards,
    - Brenden

  • I have an Iphone 4S, when I am on the phone and I get a new message my phone vibrates and rings. How can I stop this from happening when I am on the phone

    I have an Iphone $S, when I am on the phone and I get a new message my phone vibrates and rings, How can I stop this from happneing when I am on the phone

    Flip the Ring/Silent switch. Make sure Vibrate when silent is off in Settings>Sound.

Maybe you are looking for

  • Itunes failing to find msvcr80.dll

    Ran the update for the latest version of iTunes on Windows Vista.  After install completes, it returns the error  "This applicatio has failed to start because MSCVCR80.dll was not found.  Re-installing the application may fixe the problem." Tried rei

  • [HELP] Advanced Video FX bug?

    Hi guys. Hope someone can help me. I have he creative Webcam Live! with latest drivers installed.Now i've downloaded the "Advanced Video FX" software.But when i clink on it, i cant select my webcam. Actually, it shows NO webcams to select.Can anybody

  • Calibrating a 23" ACD

    I just attempted to calibrate my year-old 23" ACD using a Spyder2Pro. The resulting profile looked much brighter and redder than any of the other profiles such as Apple RGB, Adobe RGB (1998), Generic Monitor, NTSC (1953), etc. In fact, clicking throu

  • CR Dev XI Installation Error - "Installation Suspended, Incomplete"

    Post Author: Phoenix17 CA Forum: Deployment I am attempting to do an unattended installation of CR Dev XI using the installation parameters defined in the user documentation. What I am running into is a consistant error message "Crystal Reports Setup

  • HT1688 How do I change my AppleID on my iPhone?

    I am trying to change my Apple ID on my iCloud backup