How to CUT a sound embedded in a layer of Timeline


I'm developing a site web flash using ACTIONSCRIPT 3. There is a menu of small icons that, when one of them turned on, the program loads the corresponding SWF in a charger and it then presents a 'virtual' screen (a rectangular area) in the web page. The problem is that some of these child SWFs have a built-in background noise and I DON'T KNOW how to cut the main SWF when a user decides to do so by clicking on a button "mute".

Each integrated SWF its has its own layer in the timeline and is defined as the synchronization: event, Repeat: 1.

Any idea?

If the sound of the timeline is a streaming sound, stop the timeline stops the sound. otherwise, there is no control (it of to say, stop some and keep others) individual sounds attached to fixtures.

Tags: Adobe Animate

Similar Questions

  • How not cut excerpts sound?

    I have an application that reads the sounds based on the accelerometer. I use this code below

    Manager.createPlayer(getClass().getResourceAsStream("/sound1.mp3"), "audio/mpeg");
    Manager.createPlayer(getClass().getResourceAsStream("/sound2.mp3"), "audio/mpeg");
    

    But whenever new data are presented on the screen it cuts the old sound to halfway through the new part. Y at - there I way I can overlap eachother?

    Since you said accelerometer, I'm going to guess that you develop for the storm.  And as you encounter this problem, I'll also guess it's the 9530.

    CDMA devices can have only a single active audio player at the time.  If you attach a listener to player, your player will receive a "deviceUnavailable" when he is interrupted and a "deviceAvailable" event when it is free to read the audio again.

    If I asked me to find a solution, the best thing I could think of would be to create a third mp3 (sound1 - 2.mp3) who disappears to the sound1.mp3 and going to sound2.mp3.  So, if sound1.mp3 is active and you are wanting to play sound2.mp3, you would rather 2.mp3 - sound1.

    (That the solution is based on the assumption you develop a lightsaber-like app and the sounds are quite similar in their all - IE, is not a human speaking, but a certain similar tone throughout the mp3 might work well).

  • AS3: How to access and control embedded sounds in an external swf?

    I rarely use the sounds in AS3/Flash. I use Flash Pro CS6, but I can't seem to understand how access control (play, stop, etc) sounds embedded in a SWF external loading in the main SWF file.

    It is easy to control them when they are incorporated on the main swf. However, on a responsible external SWR, I get all sorts of errors. For this application, I really need to incorporate in the external SWF file.

    I've read several solutions, but none seems not to work.

    I integrate the sound file mp3 called soundSegment1.mp3 tool to import Flash CS6 and then open the properties panel actionscript Flash select the name of the class: SoundSegment1. Can I change the class ID and create a file named SoundSegment1.as, and it saved right next to my document class main.as in the same directory. The code for the SoundSegment1 class looks like this:

    package  {

       
    import flash.media.*;


       
    public class SoundSegment1 extends Sound
       
    {

           
    public function SoundSegment1 ()
           
    {
               
    // no code in here
           
    }


           
    public function playSound()
           
    {
               
    var soundSegment1:Sound = new SoundSegment1();
               
    var channel:SoundChannel = soundSegment1.play();
           
    }
       
    }
    }

    Then, in my main.as, I made several attempts to play this sound such as:

    var fileLocation:URLRequest = new URLRequest(SWFToLoad);

    loader.load(fileLocation);

    loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener);

    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeListener);

    loader.contentLoaderInfo.addEventListener(Event.INIT, initListener); 


    function initListener(e:Event):void // I also placed this code on the completeListener and it didn't work

    {

         loader.content.soundSegment1.playSound(); // doesn't work. 

    }

    I get:

    Line XXX 1061: Call to a possibly undefined method playSound through a reference with static type flash.display:DisplayObject.

    Otherwise, I also read that I should be able to do something like this anywhere in the Main.as file:

    var theClass:Class = Class(loader.content.getDefinitionByName("SoundSegment1")); var theSound:theClass = new theClass(); theSound.play()  //doesn't work either.

    I also tried on the completeListener:

    var TheClass:Class = e.target.applicationDomain.getDefinition("SoundSegment1") as Class;

    var theSound:TheClass = new TheClass();
    theSound
    .play()  //doesn't work either.

    I get:

    ReferenceError: Error #1065: Variable SoundSegment1 is not defined. at flash.system::ApplicationDomain/getDefinition()

    I'm stuck and I really need this to work. I would really appreciate your help.

    Thanks in advance for any help provided. I really need to make it work, because I can not simply incorporate into the main SWF or load them individually outside one by one.

    Thanks again!


    You can use the load and loadCompleteF below:

    var SWFToLoad: String =...;

    var s:String = "SoundSegment1";

    Load (SWFToLoad, s);

    function load (urlS:String, classS:String) {}

    var ldr:Loader = new Loader();

    ldr.contentLoaderInfo.addEventListener (Event.COMPLETE, function(e:Event){loadCompleteF(e,classS);});)

    LDR. Load (new URLRequest (URL));

    }

    function loadCompleteF(e:Event,classS:String):void {}

    var loadedAppDomain:ApplicationDomain = e.target.content.loaderInfo.applicationDomain;

    var C: Class = loadedAppDomain.getDefinition (classS) in class;

    var instance: * = new C();

    Sound (instance). Play();

    }

  • How to cut sounds using the Commons of edges?

    Does anyone know how to cut sounds or raise the volume to 0 and save using the http://www.edgedocks.com/edgecommons#anchor_edgecommons_20

    Its a great way to use soundJS on board, but it is a bit incomplete, since it contains only play

    I tried to look in the API for using setMute (true); but I don't get a lot of mistakes in the edge when I try to do

    Anyone know a solve?

    To turn on or off the mute button click - the best way to do is to switch a variable to hold the mute State:

    code on Stage.compositionReady

    isMuted var = false;

    Call this function in your silent btn click event

    sym.onClickMuteBtn = function()

    {

    isMuted =! isMuted; / / Toggle the variable

    createjs. Sound.setMute (isMuted); / / set silent status toggled variable-based

    }

    If you really want to know if the sound is playing, see the documentation for SoundJS in SoundInstance:

    http://www.createjs.com/docs/SoundJS/classes/SoundInstance.html

  • How do cut you the notification

    How can I go by cutting the sound for the notification sound, because he go all nite and its hard.

    You don't have to go to messaging widget. You can simply open the text messaging application, press the menu key (4 places) and select the option "e-mail settings." Can you tell us the specific app notifications have been bothering you?

  • How to cut certain frequencies

    Hello!

    My question is, how to cut certain frequencies (sound of machine). The problem is im recording of the sounds, but have a noise in the background, who is always there, because of the machinery around the subject of the test. So I want to cut frequency of 1300-1500 Hz (in the example). How do I do that?

    I'm using labview 2010 sound & vibration toolkit. I found a few fast .vi which attenuates frequencies in example of 1000 Hz upwards or downwards, but no .vi is there that cuts between the two.

    Hello!

    You must create a bandstop filter. There are a few examples in this forum. You can also view and change this: https://decibel.ni.com/content/blogs/Simon/2010/06/16/world-cup-2010--filtering-the-annoying-vuvuzel...

    PS Sorry for the long link. Opera seems only I would like to create a link in the mail.

  • How to adjust the sound to play continuously when you listen to the Radio station

    When I play a radio station on computer it keeps cutting off after that about 15 minutes and then I have to move the mouse to start the music

    When I play a radio station on computer it keeps cutting off after that about 15 minutes and then I have to move the mouse to start the music.  How to adjust the sound so that it can play continuousley?  Thank you

    Check the control panel | Power options and try to disable the screen saver and see if that fixes the problem.  If not, try to address some of the other power options to keep things to turn off automatically if the computer is not in use (if it's just to play music with no user interactivity, and which is considered to be not used by power options).

    Steve

  • On movie maker how to cut movie in two parts on separate disks

    movie maker how to cut film into two parts and then burn each part on a different DVD

    Hello

    My friend John Papa - MVP - is the expert on Windows Movie Maker.

    PapaJohn.org
    http://Papajohn.org/

    PapaJohn - online tutorials
    http://www.Papajohn.org/mm2-online-tutorials.html

    Windows Movie Maker Tutorials - check the sounds of the addition in the left menu and others on the
    main screen.
    http://www.windowsmoviemakers.NET/tutorials/

    Windows Live Movie Maker help & how-to and Forums are good sources of information:

    Windows Essential - Movie Maker help
    http://Windows.Microsoft.com/en-us/Windows-Live/Essentials-Help-Center?T1=T3

    Answers - Windows Essentials - Microsoft Windows Movie Maker Forums
    http://answers.Microsoft.com/en-us/windowslive/Forum/MovieMaker?tab=threads
    ====================

    These might help:

    Getting started with Windows Movie Maker

    Import video, photos and audio on Windows Movie Maker

    Import video from a videotape

    Get a movie in Windows Movie Maker

    Make a movie quickly in Windows Movie Maker (AutoMovie)

    Publish a movie in Windows Movie Maker

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How to cut and paste ppt slides in presentations?

    How to cut and paste ppt slides in presentations?

    File > open

    and it should do the conversion for you.

  • How to cut audio tracks with tool blade?

    Hello

    I recently made the switch from fcp7 to fcpx and I'm having a real hard time! There are many things that I can't understand how to do, and it's just one of them:

    Solo Cup audio tracks with the blade tool (or another medium, if there is). Can I cut the audio clips on one side, but how I cut a piece in the middle of the clip?

    Thank you!

    YYou can't cut with the blade tool? Or select it, and press Cmd - B of type point skimmer/reading

  • Satellite A200 - how to get the sound on the TV?

    Hello

    Im trying to set up my laptop through the TV so I can watch videos via my TV, I have the part well display using an S-video cable but I do not know how to switch the sound of the TV/Surround Sound System.

    Someone can give me a guide or helps to do this?

    Thank you

    Merrry Christmas and happy new year

    Very interesting thread about a similar problem that you find under http://forums.computers.toshiba-europe.com/forums/thread.jspa?messageID=69026

    Check what Miro wrote and what he uses to get the transfer of audio and video signals to external devices.
    If you still have any questions please let us know.

  • How do I get sound through my iMac with a USB turntable?

    How do I get sound through my iMac with a USB turntable?

    You need something like this:

    https://griffintechnology.com/us/iMic

  • How to get virtual sound on Satellite M50

    How to make virtual sound to work on my Windows XP Pro system (installed instead of the home edition - English) the Machine is a Satlellite M50 (European - Italian)

    When I turn it on it has no effect. I use a small set of external speakers (Harmon/Kardon - tubes clear plastic containing four speaker units in a vertical arrangement)) connected to the front Conncetion (hole - no usb).
    I downloaded the English website of Toshiba drivers - drivers are correctly installed.

    Appreciate any guidance on this... Thanks PDegenova

    Hello

    There are two important things that you must follow.
    First of all, all Toshiba drivers must be installed in the correct order.
    And secondly all MS QFEs must be installed.
    I found a long list of XP QFE on the European driver Toshiba page.

    Please make sure that everything has been installed in the right direction.

  • How do you get sound on safe mode if it has not told!

    How do you get sound on safe mode if it has not told? He didn't use to say! It is possible a hacker has stolen the sound and typed it is? It could have been someone who was company or seized that they work in or landed a job at the company laptop I have! phyllisfc

    Frankly I doubt that you ever had its Mode without failure.  Safe mode is a specially designed Windows state that charge only a very minimal set of very generic for devices drivers, so that you can resolve problems or solve problems that cannot be solved with the full software and driver responsible.  Sound is one of the first things that gets tossed by the window, as improved video drivers, network drivers and so on.

  • How can I get sound from my desktop to my TV Toshba pc?

    His record game

    How can I get sound from my desktop pc to my TV Toshba, that Iam currently using as my monitor...  Thank you

    You need to run a separate cable for audio.

    See the following Note of http://windows.microsoft.com/en-US/windows7/Connect-your-computer-to-a-TV

    Cables VGA, DVI and component video don't support audio signals. However, HDMI cables are supported, but not all, audio signals compatible HDMI video audio support cards. If your TV has an audio input, you might be able to connect an audio cable separate from their computer directly to the TV card. Otherwise, you need to connect the audio signal to a different device, such as external speakers or your stereo. For more information about sound cards, see sound cards: frequently asked questions.

Maybe you are looking for