How stop ambient sound when video sound starts?

I play ambient background music in my movie. I've written
Actionscript to attach an mp3 and control the overall sound volume.
The code to control the overall sound is:
_global.allSounds = new Sound ();
_global.allSounds.setVolume(50); for example
However, in my movie there are also video clips (w/sound)
that I have embedded using the FLVPlayback component and one of the
designer skins. The problem? I don't know how to stop the ambient
music when the user clicks the "Play" button on the skin. Both the
ambient sound and video sound play at the same time creating a
cacophony. And if the user happens to click the "mute" button on
the skin, my _global.allSounds.setVolume() commands have no effect.
How do I integrate the way sound is controlled by
Actionscript vs. the way it is controlled by video components?
Thanks.

The obvious answer would be: remove the Beep VI that's probably in there. Please show us your code.

Similar Messages

  • How to start and stop sapmmc server when windows is started and shutdown

    Hi,
    May i know how i can make sure the sapmmc server for ECC 6.0 to start when the windows 2003 server is started. I know i need to add this as a service in the windows service manager but i dont know how to do that.
    Please advise me on how to add a service to start the sapmmc server when windows is started and how to stop the sapmmc server automatically when windows is shutdown.

    Hi Raja
    checkout this document m sure it will help you in configuration
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0512c790-0201-0010-72b7-886677ad7955
    also check
    /message/6511605#6511605 [original link is broken]
    All the best ,,
    Cheers
    dEE

  • How can i control when my animation starts/stops with external JS

    I am making a web app that will allow you to go through "pages" by clicking and dragging or sliding your finger (touch devices).
    I am wanting to make a seperate animation on Edge for each page and play it when the current page is on witht the relevant edge comp.
    So far my code allows me to know what page is being viewed and that the animation should be played, however I can not figure out how to play the comp.
    ie.
    WHEN page = 1, play composition "page1".
         If currentPage is not currentPage, stop composition "page 1".
    Please could you help me as I've been racking my brain all day to figure this out.

    Hi,
    You'll find a tutoriel here.
    Then, example #1 and example #2.

  • How can I control the video playback start and end time?

    I'd like to be able to start a video/audio playback at a particular point in time say 3 seconds from the starts of the video and play it for only 3 seconds. How can I set the unique start and end points rather than play the whole video. I'd also like to be able to do this using the SeriesElement so I can set the start and end play points for a series of stacked videos. How can this be achieved?

    Not sure I understand the question.  Can't you just append the param to the URL?  Like so:
    var url = new URL("http://video-research/video.f4v?start_time=500");
    If your question is more about playing a subclip of a progressive video, that's not something OSMF has support for.  You'd need to write a server script which checks for that parameter and then returns the relevant portion of the requested file.  (This is typically referred to as "pseudo-streaming", if you Google that term you'll find a wealth of info.)

  • How to close dialogbox when next thread starts?.

    Hello,
    For my application, I want to scan an table entries through SNMP connection.The entries are in MIB in a external device.
    So, when I press scan button, it will take some time to get the table entries from MIB thro' SNMP protocol.Heres the problem. Till to get datas, the screen get idel.
    So, I want to use a Dialog box that displays " you are in scanning mode.Please wait". and this dialog box automatically closed when the user get datas.
    How can i fix this problem?.
    please, if possible give me the prgram code examples.
    Thanks in advance.

    public interface ThreadStoppedListener{
    public void threadStopped();
    public class MyFrame extends JFrame implements ThreadStoppedListener{
       MyDialog dialog;
       private void startProcessing(){
           new Thread(new MyThread(this)).start();
           dialog = new ....;
           dialog.setVisible(true);
       public void threadStopped(){
          dialog.setVisible(false);
    public class MyThread implements Runnable{
       ThreadStoppedListener listener;
       public MyThread (ThreadStoppedListener listener){
             this.listener = listener;
      public void run(){
          // do work here
          // when work is done
          SwingUtilities.invokeLater(new Runnable(){
              public void run(){
                  listener.threadStopped();
          return;
    }Message was edited by:
    BaltimoreJohn

  • How do you time when 2nd mp3 starts playing

    I have a client who built a Java app to compose music tracks.
    They have mp3 files broken down into segments (intro, verse,
    chorus, turnaround, etc) that the user can piece together to form
    complete songs.
    My job is to find a way to preview their selections in a
    Flash player. Their Java app does a great job at building the
    composed mp3's, but they still need a way to preview their
    selections when the user is composing.
    So far I've been unable to get the mp3's to playback
    seamlessly. I've tried to preload progressive downloads and I've
    tried streaming. I can get the mp3's to preload but I can't get the
    player to play them without a pause.
    Any ideas?

    I don't think Flash is the way to go here. I'd stick with
    Java and if necessary look at a 3rd party sound tool for Java's
    API.
    In order for Flash to play the sound like you want, you need
    Java to have created a temp file of the current composition. This
    file would not be a break down of the individual parts but a
    rastered final of the current state of the comp. If you can get it
    this far, my question would be why would you need Flash? If Java
    can raster the separate tracks together, why can't you save the
    comp into memory and build a sound player in Java that previews the
    selection?
    Is there more to the project that you aren't
    explaining?

  • Is there any way to definitely tell when video play starts?

    I find that when you have a video element with a buffer - the PlayTrait.playState says playing while the video is buffering? Is there any way to have or know when the play actually does start?

    Hi,
    You could listen for BUFFER_FULL event. There are very rare cases when the video starts playing and the player never gets to a BUFFER_FULL, though we have not met one in normal use.
    The measurement values actually reflect close enough the start of the playback.
    Using the PLAYING event will not help you so much, since it will be triggered when the video starts to load.

  • Skype crashing when video is started

    Skype consistently crashes as soon as video contact is made. Yosemite 10.10 (it behaved the same on maverick), 2.4Ghz Intel Core 2 Duo, 
    I have tried to re-download the Skype SW. Removed the com.skype.skype.plist . Nothing seems to help
     Attached is the SkypeFirstAid Report
    I have none of the list of applications listed as being harmful. as per
    http://community.skype.com/t5/Mac/Skype-crashing-not-starting-Check-here/td-p/1468175
    Solved!
    Go to Solution.
    Attachments:
    SkypeFirstAid Report 2014-10-25 114849.zip ‏1577 KB

    Hi,
    Please help me check the problem too. Ive been having issues of logging out automatically after 5 secs of login in. Ive attached the report and my OS. Ive tried the 6.15.0.355 from the link provided. Also included is the report. Apparently I cant access even from Windows as well, so is it my account issue? If resetted my password too. Please help. Thanks.
    Attachments:
    SkypeFirstAid Report 2014-11-10 225915.zip ‏904 KB
    Screen Shot 2014-11-10 at 11.00.36 PM.png ‏32 KB

  • Videos start but stop although sound continues

    Videos will start along with sound but the video will stop although sound continues.If I move my pointer over the video it will jump to where the progress bar indicates where the video is at it's current playback time.How can I fix this problem?

    Let me revise this question.Same problem with YouTube vids on Facebook/YouTube ect as stated above with the problem being video hangups.If I wave my mouse pointer over the video in progress the video proceeds but will stop if I don't wave the pointer over the vid.The vid will load and I can hear audio playback but the image will just stop while the audio is still playing.

  • How can I email a video clip I downloaded into my iPhoto library to my friends? I tried creating an email and attaching the clip but there is no sound and no picture when the 5 minute attachment "plays." How can I file= export it to them from iPhoto?

    How can I email a video clip I downloaded into my iPhoto library to my friends? I tried creating an email and attaching the clip but there is no sound and no picture when the 5 minute attachment "plays." How can I file=>export it to them from iPhoto?

    Have them install Quicktime on their PC's from Apple's website, that's the easiest fix.

  • How can I remove a child swf and stop all sounds when parent closes?

    Hi All,
    I am new to actionscript 3 and trying to learn as I go. The problem I am having is the following:
    I have a carousel of images that load an external swf movie with a FLVPlayback component on it. The problem is that when the external swf unloads the sound of the FLVPlayback component continues to play. I am using a carousel component I found online to load the images and each image loads an external swf file. here is the code for it.
    import com.carousel.DegreeCarousel;
    import com.carousel.data.CarouselDO;
    import com.carousel.data.AngleDO;
    import com.carousel.data.ItemDO;
    // DEFINING THE CAROUSEL OBJECT
    var carouselSettings:CarouselDO = new CarouselDO();
    carouselSettings.radiusX = 300;
    carouselSettings.radiusY = 0;
    carouselSettings.fov = 50;
    carouselSettings.transitionTime = 1;
    carouselSettings.ease = "easeInOutQuint";
    carouselSettings.useToolTip = 0;
    carouselSettings.useBlur = 1;
    carouselSettings.maxBlur = 8;
    carouselSettings.reflectionAlpha = 0.2;
    // DEFINING ANGLES SETTINGS
    var angleSettings_arr:Array = new Array();
    angleSettings_arr[0] = new AngleDO({angle:0,alpha:1,scale:0.5});
    angleSettings_arr[1] = new AngleDO({angle:90,alpha:1,scale:1});
    angleSettings_arr[2] = new AngleDO({angle:180,alpha:1,scale:0.5});
    // DEFINING THE ITEMS
    var prefix = "content/thumbs/"
    var galleryItems:Array = new Array();
    galleryItems[0] = new ItemDO({thumb:prefix + "image_1.jpg", content:prefix + "swf1.swf", contentType: "flash"});
    galleryItems[1] = new ItemDO({thumb:prefix + "image_2.jpg", content:prefix + "swf1.swf", contentType: "flash"});
    galleryItems[2] = new ItemDO({thumb:prefix + "image_3.jpg", content:prefix + "swf1.swf", contentType: "flash"});
    // PLACING THE CAROUSEL TO STAGE
    var carousel:DegreeCarousel = new DegreeCarousel(carouselSettings,angleSettings_arr,galleryItems);
    carousel.x = stage.stageWidth * .5;
    carousel.y = stage.stageHeight * .5;
    this.addChild(carousel);   
    // KEYBOARD NAVIGATION
    // KEYBOARD EVENTS
    stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);   
    function keyDownHandler(e:KeyboardEvent):void
        // left
        if(e.keyCode == 37)
            carousel.left(1);
        // right
        if(e.keyCode == 39)
            carousel.right(1);
        // top
        if(e.keyCode == 38)
            carousel.prevCycle();
        // Down
        if(e.keyCode == 40)
            carousel.nextCycle();
        // Space
        if(e.keyCode == 32)
    The external movie loads fine. Then the external swf calls for a second swf containing a video. This is the code that is used to load the swf:
    import flash.net.URLRequest;
    import flash.display.Loader;
    import flash.events.Event;
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    var myVideo:URLRequest = new URLRequest("myvideo.swf");
    var video:Loader = new Loader();
    video.load(myVideo);
    this.addChild(video);
    When the carousel unloads, it unloads both movies but the sound keeps on playing.
    Is there any way to stop the sound from keep playing?
    Thank you very much!!
    -M

    You want to stop the audio from playing and also downloading more video/audio if it is still downloading when you go to a new keyframe where the video display/component or mp3 player is removed from the stage because it's keyframe ended or do not exist anymore but you still hear the audio.
    Add an event listener to your video playback component that calls a function when the flash player tries to remove the video plaer from the stage that stops the netstream or at least stops/pauses the video playback.
    [link removed]
    //sample NetConnection and NetStream classes when the video player is removed from the stage tell the NetStream to stop playing or downloading the content with .close();
    var connection:NetConnection = new NetConnection();
    connection.connect(null);
    var stream:NetStream = new NetStream(connection);
    addEventListener(Event.REMOVED_FROM_STAGE, videoRemovedFromStage);
    function videoRemovedFromStage(e:Event){
       stream.close();

  • How do I stop system sounds when using AirPlay on my MacBook Pro?

    Hi all,
    Probably a quick question, but I'm fairly new to Macs. I've a Macbook Pro 13 Late 2011 and now I've got an Apple TV, I use AirPlay. But how do I stop system sounds when using AirPlay?
    Many thanks in advance, Jon.

    Open AirPort Utility located in HD > Applications > Utilities
    From the AirPort Utility menu bar click AirPort Utility > Preferences
    Deselect:   Monitor AirPort base stations for problems

  • How do I stop the sound (bong) when i receive a new email even though my settings are set to vibrate only?

    how do I stop the sound (bong) when i receive a new email even though my settings are set to vibrate only?

    Opening in the sidebar is the default for bookmarks that are created via a link or button on a website.
    You can check the properties of a bookmark via the right-click context menu in the sidebar (Ctrl+B; Command+B on Mac).
    In the Bookmarks Manager (Bookmarks > Show All Bookmarks) you can click the More button in the Details pane at the bottom right.
    Make sure that "Load this bookmark in the sidebar" is not selected.

  • I get an audio sound when my S5 connects to a wifi source.  How do I stop the sound?

    I get an audio sound when my S5 connects to a wifi source.  How do I stop the sound?

        Let's see if we can get that notification sound off treecastle! Please try going into Settings> Sound> Notifications> select Silent> Apply. This should get rid of that notification.
    Thank you,
    VanessaS_VZW
    Follow us on Twitter @VZWSupport

  • When I start the firefox browser since afternoon a pac man sound starts coming and doesnot stop

    when i started the browser today early morning us time, a strange ambulance/police siren type of sound started coming and would not stop. It stops and starts with shutting down firefox. I have tried to uninstall and install but no effect
    == This happened ==
    Every time Firefox opened
    == today early morning us time

    I contacted the supplier, Cooliris. They gave me a link to an updated cool previews that solved the probelm for me:
    Hi there!
    Thanks for your email.
    We are aware of this issue and have issued a version upgrade that fixes the issue.
    You can download it here:
    http://www.coolpreviews.com
    If you still have issues after you restart Firefox please let me know.
    Cheers,
    Jeff & the Cooliris Team

Maybe you are looking for