Stop and play a sound

Hi all

I need to be able to stop and play a flash slide show with mp3 voice via. The stop button works fine, but as soon as I push the game, only the slide show continues. I need to keep the voices and synchronized images.

All advice is appreciated.

Thank you

The first solution solved the problem for me. Thank you.

The latter sounds like something I would like to deepen further. Any recommended places to learn more about the sound objects?

Tags: Adobe Animate

Similar Questions

  • Library CC animate sounds how to tie and how to stop and play?

    Library CC animate sounds how to tie and how to stop and play?

    for example:

    allSounds = ["snd_1", "snd_2"]; ("snd_1" - the name of link)

    myInstance = createjs. Sound.Play(allSounds[0]);

    allSounds = ["snd_1", "snd_2"];

    allInstances = [];

    allSounds.forEach (function (item) {}

    var audioInstance = playSound (item);

    allInstances.push (audioInstance);

    });

  • need help to create a stop and play in AS3 button?

    Hello. I'm using Flash CS5 and our school teacher has asked us to do a simple project for this weekend but I had trouble so I don't know what to do. Want to create a flash animation and use the 2 buttons ch us. The one who stops the animation and the other who will play the animation. So this way the animation plays I can click on stop and then click play at random times and the animation will stop or play.

    I have a layer of buttons with 2 buttons on the same layer. One is called the beginning and the other is called stop. I have a separate layer with a clip that I created a mobile polygon that goes from one side of the screen to the other. After you have created the clip I double clicked on the subject and created my animation in the new viewer who displayed. Now, I clicked on stage 1 and it took back me to my main timeline.

    Finally, I have a layer actions with nothing but code. I made sure to type all my code by clicking on this 1 framework and go click actions. Then I typed in my code. Please note that each layer has only 1 frame that they were all published individually by double me clicking on the object.

    After inserting the code I I go to test the movie but get all these compiler errors. What I am doing wrong? Here is my code and errors that I keep.

    start_btn.addEventListener (MouseEvent.CLICK, startPolygon);

    stop_btn.addEventListener (MouseEvent.CLICK, stopPolygon);

    function startPolygon(e:MouseEvent):void {}

    Polygon.Play ();

    }

    function stopPolygon(e:MouseEvent):void {}

    Polygon.Stop ();

    }

    My mistakes are as follows:

    Scene 1, Layer 'actions', image1, 9 1120 of the polygon of undefined property online access

    Scene 1, Layer 'actions', image1, 15 1120 of the polygon of undefined property online access

    Scene 1, Layer 'actions', frame 1, line 1 1120 access of undefined property start_btn

    Scene 1, Layer 'actions', frame 1, line 5 1120 access of undefined property stop_btn

    in the main scenario where you have your 3 objects, click your stop button.  on the contextual Control Panel affect the instance name, stop_btn.  Click on the play button and in the properties panel, set to stop_btn.  Finally, click on your polygon, and in the properties panel, set the polygon.

  • Stop and play nested MovieClip problem

    I'm doing a falling bomb and the effect of the explosion. I created bomb1 with a nested motion tween and then I created bomb2 with explosion effect nested in another deep level inside bomb1. My hope was that when the bomb hit the target down, the movement stops and at the same time, there will be an explosion.  The problem is that I can't do two actions, which happened at the same time, it is blocking the movement completely or have the explosion then the bomb keep going down. I can't do two things happened at the same time.  bomb1. Stop(); must stop the movement down and bomb1.bomb2.gotoAndPlay (31); should make the effect of the explosion. Any idea?


    import flash.events.Event;

    var bombPlaying: Boolean = true;

    this.addEventListener (Event.ENTER_FRAME, handleCollision);

    function handleCollision(evt: Event): void {}

    If (bomb1.hitTestObject (gLine1)) {}

    bomb1. Stop();

    bomb1.bomb2.gotoAndPlay (31);

    }

    }

    I had the problem solved. The eventListener would be removed before "bomb1.stop (); bomb1.bomb2.gotoAndPlay (31);

    import flash.events.Event;

           

    bomb1.gotoAndStop (1);

       

    myButton.addEventListener (MouseEvent.CLICK, fl_MouseClickHandler);

       

    function fl_MouseClickHandler(event: MouseEvent): void {}

    bomb1.gotoAndPlay (1);

    this.addEventListener (Event.ENTER_FRAME, handleCollision);

    }

    function handleCollision(evt: Event): void {}

    If (bomb1.hitTestObject (gLine1)) {}

    this.removeEventListener (Event.ENTER_FRAME, handleCollision);

    bomb1. Stop();

    bomb1.bomb2.gotoAndPlay (31);

    }

    }

  • Help to add music, stop and play buttons

    Hey

    I need help, I have my video mp3 audio and fact my game and stop button. IM using cs4 and as3. I want to have the game and stop on my main page button, but still have the piece of music when the user clicks on a button that takes them to a new page. So if someone could show me what to do, that would be much appreciated!

    Thank you

    assign a class to your mp3, instantiate with the 'new' constructor and the method of reading to your sound instance:

    var s:YourSoundClass = new YourSoundClass();

    var sc:SoundChannel=s.play();

    When you want to stop your sound, use:

    TCI Stop();

  • How to record and play Audio

    Hello

    I want a code example to learn how to record audio and play audio recorded

    Can anyone help me regarding this?

    Thank you

    Pounet

    Try this code, it works for me.

    To record the audio. Note that this code records audio in the device memory. Just change the url to save the code in the sd card.

    try {}
    Reader = Manager.createPlayer ("capture://audio?encoding=amr");
    Player.Realize ();
                
    RC = (RecordControl) player.getControl ("RecordControl");
    BT = new ByteArrayOutputStream();
    rc.setRecordStream (bt);
    FC = (FileConnection)Connector.open("file:///store/home/user/RecordedFiles/audio1.amr");
    {if (!) FC. Exists())}
    FC. Create();
    }
    OT = fc.openDataOutputStream ();
    rc.setRecordStream (ot);
    rc.startRecord ();
    Player.Start ();

    } catch (Exception e) {}
    e.printStackTrace ();
    }

    To stop and play the audio. Copy the following code,

    try {}
    RC.Commit ();
                
    data = bt.toByteArray ();
    BT. Close();
    Player.Close ();
              
                
    BI = new ByteArrayInputStream (data);
                
                
    Player = Manager.createPlayer (bi, "audio/amr");

    Player.Realize ();

    Player.Start ();

    } catch (Exception e) {}
    e.printStackTrace ();
    }

  • Flash 11 and 5.1 sound

    Hello

    Question is what is the best way to create and play a sound with flash 11 5.1?

    -What formats are supported by flash 11: aac, dts, wma professional or other?

    -Which of the supported formats is cheaper to create without spending a fortune on the patented encoders?

    -3rd party software for the creation of the soundchannels recommended? I know adobe first and other but more often too heavy, I want just the different sound channels.

    -Flash cs4 does support 5.1 soundformat files that can be exported as swf which are later played in 11 flash?

    I guess that's it

    Thank you!

    Hello

    Unfortunately, we do not support multichannel audio in 11 Flash for the Desktop and Mobile of the Runtime Flash versions.  It is only supported in the AIR for TVs.

    Flash Player 11 on the desktop supports the following codecs: ADPCM, MP3 and AAC.  AIR for TV will support a wider range of codecs such as multichannel support

    PCM, ADPCM, MP3, PCM has, NellyMoser 16 kHz mono, NellyMoser 8 kHz mono, NellyMoser, G711A, G711U, AAC, Speex, MP3 - 8 kHz and sound device.  I don't know which of the formats is the least expensive to create, but I recommend encoding with Flash Media Encoder or Adobe Premiere.  Those are the only 2 pieces of software, I have the experience to help.  Sorry, but I do not know the 3rd party software enough to give you advice on that.  I don't know if Flash CS4 supports files to 5.1 audio.  This question might be directed to the Flash Authoring team instead.

    I hope that this info helps out you.

    -Robert

  • Help! my Windows media player plays my AVI files but stops and closes at random!

    my Windows media player plays my AVI files but stops and closes at random after about 20 minutes... its only recently started to do this in the last week or 2?

    Hello

    Follow these steps to remove corruption and missing/damaged file system repair or replacement.

    Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN

    sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Then, run checkdisk - schedule it to run at next boot, then apply OK your way out, then restart.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    ===============================

    After the above - your codec may be damaged or need to be modernised.

    Determine if 32 or 64 bits.

    Start - type in the search box-> Winver find upstairs and double-click on - check version (64-bit will tell 64bits)

    After that the foregoing, add codec - get these 32 bit if:

    -Free - CCCP also get free tool of insurgents
    http://CCCP-project.NET/
    http://www.freewaregenius.com/2007/02/09/CCCP-codec-pack/

    FFDSHOW - free
    http://sourceforge.NET/projects/ffdshow/

    Check here:

    Plug-ins for Windows Media Player
    http://www.Microsoft.com/windows/windowsmedia/player/plugins.aspx

    ============================================
    ============================================

    If 64-bit:

    Read this 1st and go that route, or use the one below.

    http://www.Vistax64.com/sound-audio/152850-Vista-codec-pack-32bit-64bit-Media-Player-codecs.html

    --------------------------------------------------------------------

    If 64-bit Vista - can run WMP in 32 or 64 bit mode.

    Or try these: download - SAVE - go to the place where your put them RIGHT CLICK – RUN AS ADMIN.

    For 32-bit use these - OR those listed above that I prefer.

    K - Lite Codec Pack 5.0.5 & K-Lite Codec Pack 5.0.5 update
    http://www.codecguide.com/

    Use them for 64-bit:

    K - Lite Codec Pack (64-bit) 2.6.0
    http://www.codecguide.com/

    -------------------------------------------------------------

    You know that you use WMP 32 or 64

    Change, change or set 64 - Bit Windows Media Player 11 (WMP11) in Windows Vista x 64 as default
    http://www.mydigitallife.info/2007/01/19/switch-change-or-set-64-bit-Windows-Media-Player-11-WMP11-in-Windows-Vista-x64-as-default/

    ------------------------------------------------------------

    VLC needs, of no use so usually Codec as a backup when asked to support associations of files just say no.

    VLC - free
    http://www.videolan.org/VLC/

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • 9650 blackBerry smartphones began to play the sounds of start/stop

    My phone has decided to start playing the sound at startup, shutdown and when I plug in my headphones.  It will do in silence and all alerts off profile as well.  No idea how I can get it to stop?

    Thanks in advance...

    Hi jhanka and welcome to the community of BlackBerry Support Forums!

    It seems that you have sound enabled on your BlackBerry® smartphone event.  To disable this feature, go to Options > Advanced Options > accessibility and change sounds event at no.

    Let me know if this worked for you.

    Thank you

  • Expert overview stopped playing the sound on track 1.  How it went?

    Expert overview stopped playing the sound on track 1.  How it went?

    Michael Lewin-Harris

    I do not see your post 3 up to what I had posted the message 4.

    Very important information that this current audio problem is not be seen in other new projects.

    Because you use first items 12 and because of the involvement of the narration in the symptoms, I tend to believe that your question is related to that of Llamadude and others described in the blog post link in post 4. Try focusing on this factor to rule it in or out.

    Despite these reports and comments that the fix described works, I was never able to reproduce the problem so that I can study to get the reasons why.

    Looking forward to your results according to your schedule.

    Thank you.

    RTA

  • In fact, I have problem in adding music to be played across all folios, the problem happened when I simply lock the ipad and open it, the publication is always open and I can browse, but the music stops and cann't continue. How can I solve this t

    In fact, I have problem in adding music to be played across all folios, the problem happened when I simply lock the ipad and open it, the publication is always open and I can browse, but the music stops and cann't continue. How can I solve this problem to continue after the opening of the ipad and continue to navigate the digital publication.

    The background sound plays only if the application is open. Once the device is locked or the user switches to another application the audio will stop.

  • Is it possible to play different sounds for the emails and instant messages?

    Hello

    I was wondering if it was possible to play different sounds for the emails and instant messages. I use Thunderbird quite often with emails and instant messages imported from Gtalk.

    I think it would be very convenient to be able to distinguish the two sounds, because they do not involve the same things.

    Thank you very much.

    Olivier Hubert.

    There are only six modules of cat, three of them are on notifications. Choose the one you think will do the job for you. https://addons.Mozilla.org/en-us/Thunderbird/Extensions/chat/?sort=popular

  • I can't stop links integrated Youtube auto buffering and playing

    How tabs open it often incorporated links to Youtube that will automatically set buffer and play. I have only 4 GB of data per month, so I'm very annoyed with the data that I do not choose to download! Too many multiple links tabs can all start playing at once, which is horrible to listen to, and it takes time to find the links and stop.

    You can watch Adblock Plus.

    You must subscribe to a list of filters (for example the EasyList).

  • Apple music stops after playing a song! I use windows 10 and the new itunes. He stops playing after one, sometimes two song... radio too... Please help. I installed and all new authorized...

    Apple music stops after playing a song!

    I use windows 10 and the latest itunes on my laptop. He stops playing after one, sometimes two songs... radio too... Please help.

    I installed and all new authorized...

    Thank you...

    Markus

    same thing here for all my Mac or PC windows... they are "working" 8 months later... unreal

  • How to play image sound and moving of AVI file

    Hello

    I'm using LabVIEW 2010 and making the program to play image sound and moving to AVI file at the same time.

    I could play animated image of AVI file using "AVI OPEN.vi".

    However I couldn't play the sound file to AVI.

    Please give me an opinion on this issue.

    Hi yosuke

    If am not wrong you can do with the Windows Media Player ActiveX control.

Maybe you are looking for