How to stop a sound from loading ? my_sound.unload or something ?

I want the sound to stop loading when I press the stop
button, I have:
var my_sound:Sound = new Sound(_root);
my_sound.onLoad = function() {
my_sound.start();
preload_btn.onRelease = function() {
my_sound.loadSound("some_sound.mp3", false);
stop_btn.onRelease = function() {
my_sound.stop();
Say I click the "load" button, the sound starts loading, when
I press the "stop" button the sound should stop playing but I also
want it to stop loading, the sound keeps loading from given URL, it
loads in background and making network traffic. I can only fix this
by giving my sound an empty sound file to load, but it must be some
other way, right? Something like my_sound.unload ?
Thank you.
Adrian.

"adrianTNT" <[email protected]> wrote in message
news:e6aitv$hkm$[email protected]..
>
quote:
Originally posted by:
kglad
> you're welcome. with your solution loading another mp3,
are you sure it stops
> the download of the first mp3?
> Yes, it seems to work fine, it loads another sound in
same sound (my_sound)
> and it seems to replace loaded progress with the empty
sound I gave and stops
> previous loading.
> I look at traffic icons on task bar and I see that there
is no network traffic
> after I click "stop" before this I could see continuous
traffic while sound was
> loading in background.
Yeah, I remember someone posted that solution a long time
ago. It seems if you load a file with the same name the cache
doesn't
know any better and adjusts the download size to the smaller
one. Maybe it's a good way to do it! Could it be a way to remove an
mp3 from someone's cache after it plays? hmmmm Will have to
do more testing.
tralfaz

Similar Messages

  • How to stop a page from loading?

    Does anyone know if there's a way to stop a webpage from loading (i.e. before it finishes)..? This page, for example:
    http://sportsillustrated.cnn.com/baseball/mlb/gameflash/2011/06/04/36460_recap.h tml
    When I click on the "X" (or type Cmd+period) i want to cease ALL communication with whatever website is in the address bar. I don't want periodic updates, i dont' want animated ads to finish loading, i don't want my screen rearranged.... nothing. I WANT TO TERMINATE ALL CONTACT WITH THAT WEBSITE until such time that i might click on "reload".  And i should be able to do this without having to yank out my ethernet cable.
    This may be a more general problem that applies to Firefox as well. 

    Huh, i didn't realize the escape key did something different than Cmd+period. It seems to work but i'll have to try it with some of the peskier websites.... Thanks.

  • How to stop ipod classic from loading in compatibal mode from an older version of Microsoft

    Error message upon opening my iTunes
    iTunes.exe has ben set to run in compatibility mode for an older version of Windows.
    For best results, turn off campatibility mode for iTunes before you open it.
    HOW IS THIS DONE???
    NEED sone guidence.
    Thank you from ELF13

    You SOLVED a headache for me !!!
    You "ROCK"
    Thank youy
    ELF13

  • How do you stop mobile sites from loading in safari automatically on my iPad? I can't log into mobile me because of this.

    How do you stop mobile sites from loading in safari automatically on my iPad? I can't log into mobile me because of this.

    The me.com website is not designed for or intended to be accessed by iOS devices. Apple provides support in iOS or seperate Apps for accessing all aspects of MobileMe except for the Accounts section.
    Use MobielMe as intended and you'll have no problems.
    See: http://support.apple.com/kb/ts1673
    Even if you use a different browser to get access to me.com on iOS, you'll find most of it is unusable.
    Other websites that present you with the mobile version have been programmed to do so by their developers. They specifically look for users accessing from 'mobile' devices and switch to the mobile site. Many such sites provide a link to go back to the 'full' site, if not, there's not a lot you can do except use a browser that can pretend not to be a mobile browser.

  • How do you stop top sites from loading in safari

    I have tried for days to stop "Top Sites" from loading in Safari 7.0
    In my ~Library I have locked the:
    Safari db
    metadata db
    etc.
    There is no way I can find to stop these crap top sites from loading!!!!!!!!!:(
    Anyone found a way to fix this?

    Never mind, I found out how to do it. However, you can't get rid of all the sites because in Safari 7.0, in the Preferences>General Tab, you can only change Top Sites to a minimum of six. So, you can't entirely get rid of them.

  • How do you stop game center from loading, How do you stop game center from loading

    iPhone 4 _ iOS7
    I have never used Game Center. However, most times when I open a solitaire game that I purchased on iTunes having 0 to do with Game Center, Game Center (obnoxiously) loads and asks that I join or login or whatever. Altough I hit cancel, that is not sufficient. I have found no means in Tools to disable Game Center.
    Is there no way to stop Game Center from loading??? (behavior same in both OS 6 & 7)
    Mark

    The me.com website is not designed for or intended to be accessed by iOS devices. Apple provides support in iOS or seperate Apps for accessing all aspects of MobileMe except for the Accounts section.
    Use MobielMe as intended and you'll have no problems.
    See: http://support.apple.com/kb/ts1673
    Even if you use a different browser to get access to me.com on iOS, you'll find most of it is unusable.
    Other websites that present you with the mobile version have been programmed to do so by their developers. They specifically look for users accessing from 'mobile' devices and switch to the mobile site. Many such sites provide a link to go back to the 'full' site, if not, there's not a lot you can do except use a browser that can pretend not to be a mobile browser.

  • Stopping Genius Data from loading

    I don't view Genius lists so how do I stop the data from loading?

    Good Morning Vietnam!
    OK soldier, give me 20 (push-ups) & read the following:
    http://support.apple.com/kb/PH12142
    Do you have a problem with that?
    Well, I do... it's dated Nov. 5, 2013. iTunes was updated to 11.2.2 after that date wasn't it? Like in June, 2014, correct? Fuhgeddaboutit!
    So I marked it as not being helpful - whatever.
    ARE WE HAVING FUN YET?   Fasten your safety harness, cause we have some real exciting, mundane stuff comin' right at cha next.
    Next I need to know if you are the only user with Admin privs for the iTunes Account; iTunes can be finicky when there several users and more than one and only one has Admin privs. You can share media but if someone whose name we won't mention thinks that they can be an Admin too, you'll have to straighten that out behind closed doors.   I know, I know... this is probably is not the case. This is just boilerplate stuff we have to get out of the way... just because.
    Next we have the 'safe boot' approach. That's when you shut down completely and then start the machine up while holding down the shift key until you finally get to Safe Mode (it takes longer to start up doing this because the system is clearing certain caches & making sure some other things are ok). But once you get there, it usually indicates that (in red letters) right on your sign-in screen.
    So after you sign in, you simply try to open iTunes. No wait! LOL! There is no sound in Safe Mode but what we are doing by starting up iTunes - in addition to the aforementioned, is trying to rule-out any conflicts with any 3rd part software that may be interfering with iTunes.But the good news is that if iTunes starts which it probably will - albeit w/ no sound, then at least you know what the problem isn't.
    FYI, that's how a differential diagnosis is done. Just ask this guy:
    Go ahead say it... "Murph... cut to the chase will ya?!
    To be honest, if none of this helps, you're best bet is checking out the iTunes threads... especially if Chris CA is around cause he's the top gun (for iTunes) & pose the question via a new thread like, "Why won't Genius go away?" He solves problems like this - bada bing bada boom.
    Catch ya later, curly; thanks for the thank yous.

  • Stop Verizon Cloud from loading automatically

    How do I stop Verizon Cloud from loading automatically whenever I turn on my desktop computer? I seldom need to use it and I don't need it hogging memory, as my computer is old and slow enough as it is. The program itself does not seem to have an option to prevent automatic loading, nor do I see it listed in msconfig when I run that. BTW, I have a Dell PC running Windows Vista.
    I don't want to flat-out delete the program, as I do use it occasionally; I just don't want it loading every day.
    Thanks!

    I don't think there is a built-in option to restore a session but not load the last active tab in each window...
    What if you switch Firefox to "Work Offline" before restoring the session? On the classic menu bar:
    File menu > Work Offline
    To display the classic menu bar temporarily if you ordinarily use the compact menu (orange Firefox button), you can tap the Alt key or press F10.
    Of course, even if that works, it doesn't help with closing a tab and getting the deferred load of the next tab you view. Hmmm. Maybe there's an add-on for this.

  • How can I get sound from tv or stereo when watching netflix on MacBook Air?

    I have my macbook air hooked up to my tv and want to watch netflix but the only sound is from my macbook.  How can I get sound from other sources ie tv or stereo?

    Check with Netflix for their system requirements.

  • How to stop Time Machine from backing up Temp Files?

    Hi folks!
    I am trying to find out how to stop Time Machine from constantly backing up 'useless' temporary files accumulated from web browsing? Although I don't change or add large files to my HD, Time Machine backs up hundreds of MBs every hour. Those file amounts make sense when I consider that I browse a lot to YouTube, SoundCloud, etc to watch videos or listen to music - I just don't want them to be backed up.
    Under Time Machine Options I already excluded the following items from backups:
    ~/Library/Caches
    /Library/Caches
    ~/Downloads
    But even though I did this weeks ago, Time Machine stills finds large files to be backed up every hour and my only guess is that I am still missing a location where either Safari or Firefox - the two web browsers I use - store temporary files.
    Can you help?
    Thanks a lot in advance!

    oas2103 wrote:
    they come from my anti-virus software
    Are you sure you need that? There are no viruses that run on OSX. None. Zip. Zero.
    If you're running Windoze on your Mac, that's the same as running it on a PC, so it needs all the same anti-everything stuff you'd use on a PC.
    There is some "malware," such as Trojans, for Macs, though. But (unlike viruses that can get onto your system without your knowledge), you must approve their installation (via your Admin password) and/or operation (via the "This application was downloaded from the internet ..." prompt).
    Appropriately enough, some of these Trojans are included in pirated versions of Apple software, such as iWork!
    For the gory details, see Thomas Reed's [Mac Virus Guide|http://www.reedcorner.net/thomas/guides/macvirus].
    Thanks a lot again!
    You're quite welcome, and thanks for posting back.

  • How to stop the Dialog from being dragged

    I was hoping that someone could tell me when calling a Dialog from Jframe, a how to stop the Dialog from being dragged
    while a dialog is showing.
    When it is visible I can still click and drag the Dialog
    I want to set it so you can not drag it until the dialog has be closed.

    If you don't have access to the parent frame, a "hack" that usually works:
    Frame frame = Frame.getFrames()[0];
    if (null != frame && frame instanceof JFrame){
    JFrame jf = (JFrame)frame;
    JDialog jd = new JDialog(jf, "title");
    ... code here ...
    As each JFrame (or Frame) is opened, its stored in the array of Frames that you can get. Same thing with Dialog.getDialogs(). Almost always, at least so far for me I've never had this problem, the [0] index is the main window opened, or the parent/top frame. I'd put the check in there to be safe and make sure its a JFrame and usually you'll only have the one JFrame.

  • How to stop the Browser from caching my web pages

    Hi There
    Can anyone tell how to stop the browser from caching my jsp pages
    I am using
    <%response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0);
    %>
    but this does not work anduser is able to go back to the previous page
    which i dont want and i want the browser to display the message the page has expired
    Help appreciated
    Thanks
    Mumtaz

    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Pragma", "no-cache");
    response.setDateHeader("max-age", 0);
    response.setDateHeader("Expires", 0);
    I have cut paste the code from my jsp which is working. There is one additional line. I do not know if that is the cause but there is no harm in trying that out.
    Srinivasan Ranganathan

  • How to stop  the users from changing the Decimal in SAP

    How  to stop  the users from changing User Profile

    Hai,
    It is not possible to restrict SU3 to display, because it has only S_TCODE has the authorization object.
    If you really want to restrict users from changing their profile you have to remove the SU3 access and give SU1 or SU2 which gives access only to Personnel details and Parameters.
    Hope this helps.
    Regards,
    Yoganand.V

  • How to stop the Calendar from editing your input?

    How to stop the Calendar from editing your input?

    I am constantly finding that Calendar Version 8.0 thinks it knows what I want to type but it incorrectly takes numbers and days and times out of my input and changes my appointments. I hate this new supposedly "smart" feature. Even when I edit my event correctly a second or third time it rewrites my input incorrectly again. I have to use my iPhone to override the annoying editing on my mac. I am ready to find a new calendar program unless Apple allows users to input what they want without their information being incorrectly edited.

  • How to stop the dock from showing all hidden images when hiding then showing applications

    How to stop the dock from showing all hidden images when hiding then showing applications

    It's not really something to snap a screen shot of. I believe it would need to be a video clip. For instance, when I am working on multiple images in Photoshop, I often need many images open at the same time, but I only have one image viewable and active. The hero image is active on screen while I hide the other images in the dock by hitting the yellow - button on the images. Then I "Hide" Photoshop to do something in the Finder. When I go back to Photoshop, every image that is hidden in the dock will pop open again in the active window, not just the image I was currently working on. I want these images to stay in the dock until I need them, no matter how many times I Hide the Show Photoshop.

Maybe you are looking for