Killing sound on page exit

I have a .swf that plays audio clips on top of the animation
in a web page and everything works fine as far as the swf is
concerned. However, if the user clicks the navigation buttons ON
THE WEB BROWSER the sound continues to play to completion.
How do I stop sounds when the user leaves the page?
Thanks!

look at the Sound classes events.
Better yet, look at the events for MovieClip.
I'm thinking you can define an onUnload event for _root.
In that method you could manually stop your SOund class.
Basically you need a way to know when the SWF is being
"unloaded," or left by the user.
bh

Similar Messages

  • Sound on Page exit

    I am trying to figure out a way to play a sound once you
    leave the swf of exit the swf. I do not want to create an exit
    button with the sound playing once you exit.
    It needs to play once you exit the browser window or exit the
    page.
    Is this possible?

    You would need to use ExternalInterface and javascript
    You can use JavaScript to detect the onbeforeunload event of
    the browser.
    Read:
    http://www.webreference.com/dhtml/diner/beforeunload/bunload4.html
    Once detected you can use the Javascript to call a function
    in your Actionscript that will play your sound. Or, you can simply
    play a sound directly from the Javascript, whichever you
    prefer.

  • Flash updates kills sound

    I have a Mac 10.6.8 which on the last Adobe Flash update killed my sound.
    I know nothing of computers - it is a glorified typewriter to me, so please advise how to remedy this in simple terms.
    Technical terms are the death for me!

    Hi,
    Could you please let us know some more details?
    Please go to the following page and let us know the Flash Player version and browser you use: http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html#main_Find_the_Flash_ Player_version_installed_on_your_machine
    Do you mean to say you don't hear any sound at all?
    Thanks,
    Sunil

  • Exporting sounds in Pages document to PC users

    Is it possible to export a Pages document with sound clips embedded, to a PC user?
    I tried exporting as a PDF but even when I opened this on my iMac with Preview or Adobe Reader, the sound clip icon was missing.
    I exported as a Word document (which created the .doc file and a folder with the media files in it) and when I moved these to a PC and tried opening the .doc in Word general formatting was intact and there was an icon for the sound clip, but I couldn't seem to click or double click and get the sounds to play.
    I tried exporting as an HTML and while the sounds would play, the general formatting was lost.
    Any hope of doing this? (My intention would be to email someone with a PC with the document (and perhaps media files) attached.

    Thanks for the reply, Magnus.
    I guess I have to accept this, but one thing that puzzles me about your reply:
    "In theory both Word and PDF should take embedded sounds, but Apple has not implemented the feature"
    This implies it is the Apple software that is the weak link. Yet in a Pages document I can clearly have the imbedded audio. So is it in their implementation of their export features where the audio is stripped out or is it the inability of the 3rd party products I tried (Adobe Reader and Word) to handle what might really be imbedded?

  • Help setting up sounds effect page for ipad

    Hello,
    For the past few years I've maintained a fun webpage (made in DW) that plays sounds on click.  I use it to accent certain moments in my class and sometimes I run several sounds at once to create a mood during stories.  This year our students are using ipad's and this sound page does not work the same way.  It does not play certain sounds, and opens others (wav, mp4 on a separate page) one at a time.  Here is a sample line of code that works on Macbooks, but will not play at all on ipads.
    Here is the code:
      <embed name="CS1345392109055" src="rimshot.mp4" loop="false" autostart="false" hidden="true" width="0" height="0" enablejavascript="true"></embed>
    Found on this page:   http://gr8writers.com/soundtest2.html
    It plays on a laptop, but no sound on an ipad.
    This next sound plays, but opens up a separate page - also not what I need to happen:
    <embed name="CS1345400314623" src="creepyorgan.mp4" loop="False" autostart="False" hidden="True" width="0" height="0 enablejavascript="true"></embed>
    Found on this page:   http://gr8writers.com/soundtest2.html
    What I need to be able to do is have these sounds play on click without opening a separate window.  Thanks if you can help!

    Use an HTML5 doc type with the <audio> player tags.
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 Audio Demo</title>
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    </head>
    <body>
    <p>This works in all modern browsers.
    The .ogg file type supports Mozilla and Gecko browsers.
    MP3 audio is supported by the rest.</p>
    <audio controls>
    <source src="path/yourSong.ogg" type="audio/ogg">
    <source src="path/yourSong.mp3" type="audio/mp3">
    </audio>
    </body>
    </html>
    Nancy O.

  • All tests print out fine, but all other print jobs get caught in printer as the page exits printer

    I have a HP Photosmart D110 printer.  Can't print out anything - except tests - without the page getting chewed up on left corner as it exits the printer.
    JoanP

    Hi you can try the steps on this video
    http://h30460.www3.hp.com/?rf=sitemap&fr_story=0d22534555a7583162469f89904ab9e0345bf9ca&jumpid=reg_R...
    its a general solution but if after this the issue persist contact HP for a warranty replacement just take note on the steps that you performed so you will not have to do them again

  • Sound On Page Enter Stutters A Few Times...

    I made a page transition thing with Tween and added sound. I
    used this script to make it play the tween when I enter any page..
    The problem is that when I enter a page I want the tween to
    start on frame 70. It plays the sound but somtimes it sort of
    sounds like its playing 2 or 3 of the sounds at the same time (
    only for a few milliseconds though. It sort of stutters for the
    first .2 seconds ) then plays through fine. This problem dosnt
    happen on all pages. I made sure i am not playing the sound
    anywhere else at any time when you click on that frame but i cant
    find whats causing it. Also, this dosnt happen every time, if I
    click the home link it will do it, then if I click it again it
    might not... Another problem is sound inconsistency, somtimes when
    I click on a link it plays the sound much louder then it did before
    and this also seems to be on a random basis.
    Also, my tween works fine. If I just play the tween its
    exactly as I want it ( also it plays the tween from frame 70 every
    page but it dosnt stutter on some ).
    And yes i did the "stop();" in the first frame.
    Whats wrong? Thanks

    I sort of know whats going on but i cant fix it. I have the
    motion and the sound all in one tween. For some reason when I put
    the tween onto the frame and remark out my code that says to play
    it. It dosnt play the motion but it STILL plays the sound... So the
    reason its studdering is because its playing the sound when it gets
    to the frame, then its playing it AGAIN when i actually code it to
    play the tween. I searched ALL of my layers and such for anything
    that may be making this sound play but i have no idea why its
    playing. Why is it automatically playing one part of the tween when
    im NOT even calling it? Thanks

  • Sound on page

    Is there a way to imbed a sound file on a page? So that it plays automatically when you go to the page?
    G5 2.3 DP   Mac OS X (10.4.4)   2 x 250Gb internal HD's

    Hi Lawrence Spencer,
    Welcome to Apple Discussions
    I believe you are going to have to turn it into a .mov file in Quicktime and then edit the tags of the file. Here is a past thread that might point you in the right direction.
    I hope that helps,
    Jon
    PS I don't know if all the effort is worth it.

  • Alchemy Killed sound in Vis

    OK Part of this is my fault but not all... I was trying to get the EAX working and reading about Alchemy here..http://connect.creativelabs.com/alchemy/ Along the top of that page it shows "Beta Drivers - Windows" So I click on that and see a download for Sound Blaster X-Fi Audigy Beta Driver 200707No I have an older Audigy card but the link looks like its for both so I download and try to install.
    Vista gave me a warning about not being signed but kept going... untill installed stopped...
    Seemed to grind away forever and then rebooted...
    Now No sound at all
    Tried to uninstall Alchemy but it doens't exist (Probably due to the failed install)
    I removed the card from devi've manager, deleted all drivers that I could find, and uninstalled anything sound or creative oriented.
    Tried rolling back to restore point - nothing
    Tried reinstalling just the audigy drivers about 6 times and nothing......
    Started poking around and discovered that there is a sepereate di'ver for the Audigy series for $0 which I don't have a problem paying for but I don't want to waste the money if it doesn't work.
    Any ideas on how to get basic sound back first
    I have wasted the better part of /2 a day on this already and don't want to continue wasting time.
    Would I be better off going back to onboard sound and removing the audigy card all together
    Thanks
    Todd

    Windows sound is already cranked.... and I messed with the system setups over oand over.... Tried system restore - no go...Beta Alchemy - no go is for xfi onlyTried the other version of the Audigy Driver that the link was posted to above - no goCleanedTried the Official Creative Labs Driver again still no go It's really wierd because sound can be heard other places just fineParticularily No Sound for the menus and suchStrating Vista, Shutting Down, etc Thats all enabled in the sound settings as wellEven tried selecting no sounds, rebooting, went in and changed to default, rebooted and nothing. Then had a friend zip his windows/media/ folder (Where the system sounds are) and tried those - no change.... Is it possible that a diffenert codec overwrote a deafult setting for .wav files or something What should the default association be for those any idea

  • AutoSubmit kills validation on page

    Hi....
    I have a jspx page which has required inputtexts and buttons...
    one of these inputtext has autosubmit=true attribute...and a outputtext after this inputtext which has partialtrigger=this inputtext.....
    The problem is....While required inputtext's value is empty and in red color because of the validator, if the value of autosubmitted button changes and autosubmit invokes,
    then, the error on the required inputtext disables, because of no validation...
    This problem also occurs in Adf Rich Client Demo too..
    What is the solution of this problem?
    Regards, İslam...

    Hi,
    Here is my definitions of these inputtextes...
    <af:inputText value="#{bindings.Servisadi.inputValue}"
    label="#{bindings.Servisadi.label}" columns="50"
    binding="#{backing_hastatakip_sbttnm_servis.fit2}"
    id="fit2" required="#{bindings.Servisadi.mandatory}" showRequired="true">
    <f:validator binding="#{bindings.Servisadi.validator}"/>
    </af:inputText>
    <af:panelLabelAndMessage label="#{bindings.Bagliserviskodu.label}"
    binding="#{backing_hastatakip_sbttnm_servis.panelLabelAndMessage1}"
    id="panelLabelAndMessage1"
    for="inputText4">
    <f:facet name="end">
    <af:group binding="#{backing_hastatakip_sbttnm_servis.group2}"
    id="group2">
    <af:outputText value="#{bindings.Servisadi1.inputValue}"
    binding="#{backing_hastatakip_sbttnm_servis.inputText6}"
    id="inputText6" partialTriggers="inputText4"/>
    <af:commandButton binding="#{backing_hastatakip_sbttnm_servis.lbinputText4}"
    id="lbinputText4" action="dialog:lservis"
    useWindow="true" windowHeight="420"
    windowWidth="400"
    returnListener="#{backing_hastatakip_sbttnm_servis.servisdonen}"
    partialSubmit="true" text="Ara">
    <af:clientListener method="ftiklandi" type="action"/>
    </af:commandButton>
    </af:group>
    </f:facet>
    <af:inputText value="#{bindings.Bagliserviskodu.inputValue}"
    required="#{bindings.Bagliserviskodu.mandatory}"
    columns="#{bindings.Bagliserviskodu.displayWidth}"
    binding="#{backing_hastatakip_sbttnm_servis.inputText4}"
    id="inputText4"
    partialTriggers="lbinputText4"
    simple="true" immediate="true" autoSubmit="true">
    <f:validator binding="#{bindings.Bagliserviskodu.validator}"/>
    <af:clientListener method="tet" type="valueChange"/>
    </af:inputText>
    </af:panelLabelAndMessage>

  • Upgrade kills sound

    I upgraded to Leopard 10.5.7. Now I have no sound except the usual startup hum sound. My sound indicator shows that everything is muted, but the mute check box is greyed out and not uncheckable. I have tried system sounds and YouTube videos to see if anything makes noise; no joy.
    The time coincidence makes me almost certain that this sudden sound disappearance is related to the upgrade, but that's about where my savvy ends. Any ideas? thanks very much.

    This is a very common update issue with G5s and Intel Macs:
    http://docs.info.apple.com/article.html?artnum=300832
    Sometimes zapping the PRAM can also help:
    http://docs.info.apple.com/article.html?artnum=2238
    If neither helps, you create another user in Apple menu -> System Preferences -> Accounts and login to that user and see if the issue persists there. That would tell you at least if it is a system wide issue, or a user specific issue. Let us know your findings please?

  • Killing me Larry-PAGES

    I just bought iwork 06 and keynote and pages will not open?!? Can someone tell me why? I have loaded the Apple updates for both programs---but still nothing.

    Hey Dennis---
    I have just installed the program. It has never worked. When I launch Pages the menu bar comes up but the application does not appear. On Keynote, after launch it just says...unexpectedly quit. It is not this particular disc, this is the 2nd time I've tried. I returned the first software and exchanged it for this. SO frustrating.
    Doug

  • Ios7 update killed sound

    Hi.
    After ios7 udate i lost the sound when making phoncalls. I can´t hear anything, but the one i call can hear me. When turning on loudspeaker it works fine, also with airpods and bluetooth.
    Has anyone experienced this? More important; has anyone any solution?

    Hi kjellsagt,
    Thanks for using Apple Support Communities.  This article has some steps you can try when you're unable to hear through the receiver:
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/TS1630
    Cheers,
    - Ari

  • Connexant drivers killed sound, downloaded patch, now what?[SOLVED]

    I installed the conexant drivers for my modem and my sound stopped working. I knew this might happen. I went to www.linuxant.com/alsa-driver and downloaded a patch, and I don't know how to apply it.
    Any help. This is probably simple.
    Last edited by Raccoon1400 (2008-07-02 00:20:41)

    Fixed. All I needed to do was re-add the volume control to the panel and unmute it.

  • [SOLVED] gnome update killed sound on kde 4.9.2 system

    the recent gnome-updates in testing seem to have broken my sound on kde 4.9.2. My sound system relied on pulseaudio, phonon-gstreeamer and gstreamer0.10. Since the update there ist only a 'dummy' entry in my soundmixer and no sound anymore. Did anybody experience the same?
    Edit: Just downgraded with pacman -Syuu with all testing repos disabled. Sound is there again. This IS an update problem.
    Harvey
    Last edited by Harey (2012-11-08 08:40:19)

    dolby wrote:Can you post a list of packages you upgraded to/downgraded from testing?
    I deleted pacman.log after a lot of testing, removing and up- and downgrading because it was quite unreadable at that time.
    But if I enable the testing repos again, pacman -Syu wants to upgrade these packages:
    Pakete (40): at-spi2-atk-2.6.1-1  at-spi2-core-2.6.1-1  atk-2.6.0-1  cairo-1.12.4-1  clementine-1.1.0rc1-1  colord-0.1.23-1  dconf-0.14.0-1       
                 device-mapper-2.02.98-1  e2fsprogs-1.42.6-1  farstream-0.2.1-1  gdk-pixbuf2-2.26.4-1  glib-networking-2.34.0-1  glib2-2.34.1-1       
                 glibmm-2.33.14-1  gnome-icon-theme-3.6.0-1  gnome-icon-theme-symbolic-3.6.0-1  gsettings-desktop-schemas-3.6.0-1  gtk3-3.6.1-1       
                 gvfs-1.14.0-1  iproute2-3.6.0-2  iptables-1.4.16.2-1  iputils-20121011-1  kdebase-workspace-4.9.2-5  libcroco-0.6.7-1                 
                 libgnome-keyring-3.6.0-1  libnice-0.1.3-1  librsvg-2.36.4-1  libsoup-2.40.1-1  libsoup-gnome-2.40.1-1  libxklavier-5.3-1             
                 lvm2-2.02.98-1  nvidia-304.60-1  nvidia-ck-corex-304.60-1  nvidia-utils-304.60-1  pango-1.32.1-1  polkit-0.107-4                     
                 telepathy-farstream-0.6.0-1  telepathy-glib-0.20.0-1  tzdata-2012g-1  udisks2-1.99.0-1   
    Maybe this helps.
    Harvey

Maybe you are looking for

  • Unable to send any email from my brand new ipad 2 and my iphone 3gs lately

    Lately I found that my Iphone & my brand new ipad2 are unable to send out any email. it keep mentioning about the outgoing setting.."the connection to the outgoing server"webmail..." failed.Additional Outgoing mail servers can be configures in settin

  • Sales orders report?

    HI all,, Can anybody please suggest How can we come to know which Sales Orders have stock allocation but have not yet shipped. Regards, Sachin

  • "Permissions differ on usr/share/derby"

    Hi, After some strange behavior on my MacPro I verified disk permissions and got: Permissions differ on "usr/share/derby" should be drwxr-xr-x, they are lrwxr-xr-x and Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Cont

  • Cannot create Trusted System in NW 7.1 CE

    Hey to all, I've installed NetWeaver Composition Environment 7.1 SP 4. Now I want to set up single sign-on between my Java Stack and an ABAP system. When I try to create a trusted System in NWA after choosing the system (which is provided from SLD on

  • Cleaned Open With menu, now can't mount images

    I just cleaned up the "Open With" contextual menu using a Terminal command suggested in another thread. Now that menu is much shorter and everything is fine, except with some formats, which don't seem to have a default application. Not sure if it's a