Sound of different scenes, playing on top of eachother

My project consists of multiple audio files with different MP3 for different scenes.

In two of my scenes - stage 3 and 4, I have movieclips in which contains various elements, including videos. In these clips, there are buttons which load the videos to play. In order to stop the background music while playing these videos, I use a "SoundMixer.stopAll" - before the framework where videos start - so playback is fine and dandy.

By clicking the video button output then leads to a frame where I inserted the audio again, who also does the job - it is a framework that are not accessible when met tests UNLESS you click on this button and other parameters, as there is a stop() command in front of her.

This all works when you test the different scenes.

However, when I test the entire film, this part sounds

By clicking the video button output then leads to a frame where I inserted the audio again, who also does the job - it's a framework that are not available during the test UNLESS the user clicks on this button and other parameters are met

Overlap and play on the sounds of the scene 5.

Is there a solution? I realize that I'm probably a very cheap way audio management, but I'm no expert.

I should add that my project is not online, it is transferred via USB key.

message from kglad with the three lines of code may have seemed like it was too short, but really, that's all there is to it. You get a new sound by using its name of link library, when you play you store the string sound in a variable, and then you use the same variable when you want to stop the sound.

If you use Flash Pro you can also look in the window of Code snippets, there is this code, which sometimes play an external sound (sometimes it is an easier way to work), but it includes the basics to start and stop the same sound. For my version below, I got a movieclip on the stage which has been named "box":

/ * Click to play/stop sound

By clicking on the bed symbol instance in the specified.

By clicking on the symbol a second time instance, stops the sound.

Directions for use:

1. replace "http://www.helpexamples.com/flash/sound/song1.mp3" below with the URL of your audio file that you want. Keep the quotation marks ("").

*/

box.addEventListener (MouseEvent.CLICK, fl_ClickToPlayStopSound);

var fl_SC: SoundChannel;

This variable keeps track of whether you want to start or stop the sound

var fl_ToPlay: Boolean = true;

function fl_ClickToPlayStopSound(evt: MouseEvent): void {}

If {(fl_ToPlay)

var s: Sound = new Sound (new URLRequest ("http://www.helpexamples.com/flash/sound/song1.mp3"));

fl_SC = s.play ();

} else {}

fl_SC. Stop();

}

fl_ToPlay =! fl_ToPlay;

}

Tags: Adobe Animate

Similar Questions

  • An unknown audio program plays on top of the outhers. It starts on its own. She disappears for a while if I reboot. How to kill this nuisance.

    An unknown audio program plays on top of the outhers. It starts on its own. She disappears for a while if I reboot. How to kill this nuisance.

    The first Question of troubleshooting: If the problem is new, what has changed between the time things worked and the time they do not have?

    The second issue of Windows troubleshooting: what is the status of virus/malware of the machine? If you think it's clean, what programs (and versions) allows you to determine this?

    Make sure that the computer is clean:
    http://www.elephantboycomputers.com/page2.html#Removing_Malware

    If the computer is clean, use the the Task Manager or Process Manager to find out what is running if you can identify the program 'song' for you. MS - MVP - Elephant Boy computers - don't panic!

  • I can't play any Top Game casinos or betting on soft casinos!

    I CAN'T PLAY ANY TOP CASINOS GAME OR BET ON CASINOS SOFT THAT ARE LEGAL IN THE UNITED STATES! MY COMPUTER SAYS GAMECLIENT STOPPED WORK OR THE INSTALLATION PROGRAM. EXE HAS CLOSED AND WINDOWS WILL LET YOU KNOW IF THERE IS A SOLUTION!   Help

    Hello

    What browser you use on the computer?

    If you use Internet Explorer, I suggest you to reset the settings of Internet explore and check.

    How to reset Internet Explorer settings

    http://support.Microsoft.com/kb/923737

     

    Note: "Please note that the reset Internet Explorer (IE) resets all of the settings defined by the user, including those established by the installed extensions, toolbars and other add-ons for IE by default. This includes all the security, privacy and settings area. Also this will erase browsing history, delete all temporary Internet, cookies, form data files and especially all the passwords. »

  • Sound problems. When I try to test my sound in the Control Panel, it says "the test sound could not be played."

    For about two days, my sound is really starting to * me off. = D now, the problem is that it seems to you that it works (its icon in the lower-right corner is white and with three soundwaves), however, there just not sound at all. When I try to test my sound in Control Panel, it says "the test sound could not be played." When I go into the Device Manager, it says that everything is up to date and working correctly. Also, when I try to play any audio or video file in WMV, he said is a problem and it stops at the video. I tried deleting and reinstalling all audio drivers and then it works for about two minutes, but then it stops working again.

    The following article might be worth a visit:

    Windows 7 - no sound in Windows
    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows
    (valid for XP - Vista - 7)

  • You can adjust the opacity in Adobe video? My goal is to have a clip playing on top of another, similar to a double exposure. If not, is there an iOS application that can?

    You can adjust the opacity in Adobe video? My goal is to have a clip playing on top of another, similar to a double exposure. If not, is there an iOS application that can?

    I dug around and found that imovie 9 will do, not elegant, but looks like it will work for this experience.1

  • creation of different scenes for different document formats

    Hello

    is it possible to create different document sizes for different scenes in Flash?

    Kind regards

    Aron

    NO.

  • go to a different scene

    Hello

    Sorry I'm a complete noob, but what code should I use for a different scene?

    (in this case, "Scene 2" to "scene 13")

    gotoAndPlay ("label image or number", "stage name");

    so to go to the first image in Scene13:

    gotoAndPlay(1,"Scene13");

  • gotoAndPlay different scene

    I train for a tic tac toe game and each button is a clip, and I want the program when a player wins to go to the next section in scene 1
    coding is in the frame within the clip on a chart, that appears when a player won this place.
    ttone, tttwo and ttthree are the variables that are made 1 when x 1 2 and 3 places
    _Global.TTX is the player x score
    gotoAndStop (1) it takes back so that the square is empty (the first frame of the clip is a white square)

    I'm not sure why the "scene 1" doesn't work, cause it's just goes to the last frame of the clip square, which is the frame of 5th?

    Any help,
    Thank you
    Aaron

    I guess that you do not really have more of a scene and not referring to a different scene than the one you are in? in this case, you should rather find the chronology in the hierarchy first and then just tell him where to go. so if your code is on an image in a clip that comes off the main timeline, then refer to the main timeline first with this ._parent. If you want something more like

    This._parent.gotoAndStop (193)

    Craig

  • With the help of a keyboard event to play a different scene

    I want the user of my game to be able to press the space bar and to be considered as a new scene. I know how to do this with a button, but I can't understand the code to use for a keyboard event.

    Can someone help me understand how pressing the SPACEBAR reading a new scene?

    If the intention is really to stop at these images, use gotoAndStop(), gotoAndPlay() instead.  If you say something to gotoAndPlay where it already, is any stop() command that you could have in this context is already sold out, to run.

  • Windows Movie Maker-how add two or more music/songs to different scenes in a film

    Director of Windows (audio / music), two or more pieces to add to the same film. a part of a song to be added as the Crter trim option but for music files

    1. how to add two or more music/songs on different places in a movie?

    2. do movie maker has the possibility to take part of a file of music/song to be added to a scene (like the trim option behind the scenes clip), for example if I imported an entire song but I need a specific part to be included in a scene, filmmaker support this or I need to do it on another software before in movie maker?

    1. how to add two or more music/songs on different places in a movie?

    2. do movie maker has the possibility to take part of a file of music/song to be added to a scene (like the trim option behind the scenes clip), for example if I imported an entire song but I need a specific part to be included in a scene, filmmaker support this or I need to do it on another software before in movie maker?

    ====================================
    The layer of the audio files on a single clip... Add an audio file...
    Save the project as a WMV video file, re-import the WMV
    film of the file and add another audio file.

    To save in a .wmv movie file...
    Type of... CTRL + P to open the movie recording Wizard.
    Choose... My computer.
    Next /.
    Enter a name and a location.
    Next /.
    ICT... "Best quality for my computer.
    Next /.
    Wait while the movie is saved.
    Finishing...

    To add a specific part of an audio file... divide and
    delete the unwanted part.

    "Split a Clip.

    Drag the video/audio clip to the
    Timeline.

    Read the video/audio by clicking on the
    "Play" button under the display screen.

    You will see the playback indicator
    (vertical line), advancing through the
    timeline.

    Click on the button "Pause" to the point
    where you want to split and type...
    CTRL + L or click the "Split" button to the
    at the bottom of the display screen.
    (you can also make adjustments to)
    Drag the playback indicator)

    Make splits as much as you want and
    remove unwanted in law clips
    Click on / delete.

    And... Movie Maker 2.1 one poster each
    another framework. To see all the images, the
    PapaJohn information suite may be useful:

    ===

    Movie Maker 2 shows you all-other-frame
    When you perform the installation of project. MM1 and film
    Machine running Vista show you each image.

    It is usually not a problem when ignoring him
    Middle managers, but sometimes you
    Note a flickering image in a clip that is a "stray,"
    and you can not see or cut it out.

    If you apply the Slow - Down - half video effect
    to an item in the timeline panel, you will see
    each image rather than everyone. You
    can see the frame problem and divide it out.
    Remove the effect of the clamp to return
    It's normal.

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Problems of his Toshiba laptop watching video files (videos, when sound becomes stronger) or play a game of cards simple (audio clicks).

    I have a laptop Toshiba Satellite, with 2 GB of RAM, and I have strange problems with the audio. If I use the internal soundboard, asio drivers or my external soundboard.

    (1) when I'm watching a video in any player, or edit a video, if the sound is too loud the video begins to leaf through.  For example, if I'm watching a movie and there only dialogues, everything goes smoothly, but if there is a scene with the loud music and sfx, video films.

    (2) when I play a simple as solitaire card game, I just can't listen to any music because any time I do a movement with cards audio just getting clicks in all directions. I tried to reduce the animations, all animations, even the Visual fx of Vista, I used the basic Windows interface, and it's going better but not perfect. But of course, I don't want to do that just to play a game of cards and listening to music.

    Sorry for my English and thanks for any help you can give me.

    Miguel

    Hi reinaldes,

    1 when was the last time it was working fine?

    2. you receive an error message?

    Method 1

    I suggest that reduce you the hardware acceleration on your computer and check if it works.

    (a) open settings display by clicking the Start button, clicking Control Panel, appearance and personalization, customization, and then clicking display settings.

    (b) click on Advanced settings, click the Troubleshooting tab, and then click change settings.

    (c) note that some video card drivers do not allow allows you to change the settings.

    (d) move the hardware acceleration slider to zero to reduce or turn off video hardware acceleration.

    Method 2

    If the previous step fails then I suggest that you update the drivers for the sound card driver and the graphics driver by visiting the manufacturer's Web site.

    Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Sound in different ears

    When I play music and move the volume, the volume is different in each ear.

    ex: I put the volume at 16, but left is stronger than the law. I go to advanced options in the volume bar, we're at 16 and the other is at 17. Can I move the master volume or both at the same time with normal bar and it goes back to normal. This occurs in different locations across the main volume bar.

    Hello

    Sorry for the late reply. To fix the audio on your computer, please follow the steps below and check the issue.

     

    Method 1:

    I suggest you to connect the headset to another computer and check if that helps.

    This will help us know if the problem is with the head set or with parameters of the system.


    Method 2:

    I suggest you run the Audio troubleshooter and check if that helps.

    The audio troubleshooting check the common problems with your volume settings, your sound card or driver and your speakers or a headset.

    See the link below:

    http://Windows.Microsoft.com/en-us/Windows7/open-the-playing-audio-Troubleshooter

    Method 3:

    If the problem persists, I suggest you uninstall and reinstall the sound drivers and check if that helps.

    Follow the steps below:

    To uninstall the Audio driver.

    1. Press the Windows key + R key.
    2. Type devmgmt.msc , and then click Ok.
    3. Develop the Audio driver option.
    4. Right click on the audio and the Uninstall.
    5. Your system restart and let the legit drivers to install on your computer through Windows Update.

    Note: You can also visit the manufacturer's Web site to install the network card and Bluetooth drivers. In case you are unable to get the updates through Windows Update.

    Please answer us with the State of the question so that we can help you.

  • My iPad is one sound alarming when I played one of my gammyes now I find that it's not hot.  Could I have a virus?

    My iPad is a scary sound alarm when I was playing a game and now it's getting hot.  Could I have picked up a virus in the game that I was playing?  I've never heard of an iPad for a virus, but I fear that it is the only thing that could explain what happened.  I have not used since it happened last night.  I won't be able to get an an Apple dealer until the end of the week.  Anyone had this happen with their iPad?

    Unless you jailbroken your device and also long as you download only games on the app store, there is no possible virus.

    so, what kind of sound was it? Could we have your game?

  • Satellite P200-1JV of music rises like a sound card will not play

    I have a toshiba Satellite P200-1JV and I'm on spotify (music player)
    Music is coming as a flaw of the sound card and will not play. Little play and it's a little bit distorted.

    Are there updates/drivers sound card I should be downloading?

    Sorry to be thick. And thanks for any answers

    Stretchmo

    Hello!

    To be honest, it looks like bad equalizer settings, so try to reset as Akuma said.
    And by the way, do you have the same problem with external speakers?

    In your case, I will try to update the audio drivers. You can find it on the Toshiba site:
    http://EU.computers.Toshiba-Europe.com-online decision-making supported Downloads & => Download drivers

    I hope it works for you!

    Good bye

  • Static instead of sound - whenever I'm playing the sound, all I get is static

    Whenever I'm playing the sound, all I get is static, if the volume is 100 or 5. What can I do to recover my sound?

    Hello

    1. what operating system do you use?
    2. you use headphones?
    3. the problem happens on the speakers and the headphones?

    Check what operating system you are using. See the link below:
    http://Windows.Microsoft.com/en-us/Windows7/help/which-version-of-the-Windows-operating-system-am-i-running

    If you use Windows 7, then follow these steps:


    Step 2
    : try using the troubleshooting of Audio playback and check if it detects the problem.

    To open the troubleshooter of Audio playback:
    a. click the Start button and then click Control Panel.
    (b) in the search box, type troubleshooting and then click Troubleshooting.
    c. under hardware and sound, click on the audio playback problems.
    d. follow the instructions contained in the resolution of the problems.

    Refer to this article:
    http://Windows.Microsoft.com/en-us/Windows7/open-the-playing-audio-Troubleshooter


    Step 3:
    disable the optional speaker effects that are known as improvements and test

    Follow the steps below to disable the improvements:
    a. Click Start, and then go to the control panel.
    b. click sound.
    c. Select the playback tab.
    d. Enter select speakers/headphones
    e. click Properties
    f. Select enhancements tab
    g. disable all improvements
    h. restart the computer

    Refer to this article for help:

    Tips for solving common audio problems
    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-sound-problems

    Kind regards
    Afzal Taher
    Microsoft technical support engineer

Maybe you are looking for

  • Apps don't redownloading not after updating iOS 10.

    Hello So until I updated to iOS 10 asked me if I would like to uninstall some applications and then they would be uploaded once the update has been completed. It's because I didn't have enough storage. In any case, I pressed 'yes '. So update to iOS

  • Why don't blgs not load correctly the first time

    Why are there several "refreshes" to properly load the pages for blogs?

  • How can I copy and burn a cd? HP Pavilion g7z B7M25AV Windows

    How can I copy and burn a cd?     HP Pavilion g7z B7M25AV Window7 I don't see any software for it on the new PC listed in the list of programs. Thank you

  • Satellite A300 PSAGCE CPU upgrade

    I want to spend the CPU on my Satellite A300-PSAGCE, BIOS 2.20. Now I have Core 2 Duo CPU T5800 @ 2.00GHz - PPGA478 (Socket M)PM45 (review / Stepping 07 / B3) + Intel 82801IM ICH9M (review / Stepping 93 / A3) Website of Intel - Compatible processors

  • What is the ETA on PALM 1.03?

    Anyone working for Palm, you have a guess on when 1.0.3 released?  How many times you guys are going to have press releases for bugs and bugs?  I'm hoping to God that Sprint lift the pre as they did to the touch and the touch diamond.  The touch had