Stop & Start Sound

I created a flash presentation with voice over and animated
graphics. I want to add "start" and "stop" buttons that start and
stop both the graphics and sound.
So far I can only:
1. start and stop frames, but the sound keep going or
2. start and stop the frame animation and stop all sounds but
when it starts again the sound isn't there.
So, all I want to do is be able to do is start and stop the
presentation and have the sound and animation continue from exactly
where I stopped it.
Any suggestions?
Thank you!

well you probably have the sound on the timeline correct?
this will make it hard to control the sounds in the application
just as you are experiencing here, and perhaps you should consider
using a Sound Object instead. using the Sound class you can start
and stop the sound(s) at any time, track the position of the sound
and restart it again from that position using methods of the class,
it will take a little more doing but it's the way to go.
HERE
is some basic information on the Sound class, but in addition look
it up in the Flash Help Manual>ActionScript>AS language
Reference>AS classes>Sound - here you will find infomation on
the Sound.position property, that you will 'read' and assign to a
variable when the sound is stopped - however the return is in
milliseconds - so when using the Sound.start() method - you will
also want to pass the first parameter in seconds (so divide by
1000) as in Sound.start(pos/1000); this will restart the sound at
the last position. call these types of methods from your buttons as
you stop and restart the timeline.

Similar Messages

  • Toogle button to stop/start sound

    I'm looking for code to create toggle button that will start
    and stop sound.
    thank you

    http://www.kennybellew.com/tutorial/
    Chris Georgenes
    Adobe Community Expert
    www.mudbubble.com
    www.keyframer.com
    www.howtocheatinflash.com
    pmck wrote:
    > I'm looking for code to create toggle button that will
    start and stop sound.
    >
    > thank you

  • Stop and Start sounds

    Good morning All,
    I have a Flash presentation that has some music and various sounds throughout the presentation.
    I want to have a btn stop all the sounds, but if clicked again it will enable all the sounds again.
    Is this possible? I can get the btn to stop the sounds, but cannot get the music to enable after.
    Any help is greatly appreciated,
    Cheers-
    Graeme

    if you're using stopAllSounds(), all sounds are enabled after that executes.  they won't restart but they're enabled.
    if you want to re-start all stopped sounds, you'll need to explicitly do that for each sound instance.

  • 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.

  • My iPhone stopped making sounds - can't hear the music on the speaker, no click sounds when I type, nothing. Just started happening today, was fine earlier. any ideas?

    my iPhone stopped making sounds - can't hear the music on the speaker, no click sounds when I type, nothing. Just started happening today, was fine earlier. any ideas?

    Hey Uttej Shas!
    I have an article fro you that can help you troubleshoot this issue with your iOS device:
    iPhone: Receiver and call audio quality issues
    http://support.apple.com/kb/ts5196
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • I just took in my macbook to the apple store to clean the fan because it was starting make a little noise but instead of making it stop it sounds like an airplane about to take off all the time, it doesn't matter what i'm doing. I dont know what to do now

    I just took in my macbook to the apple store to clean the fan because it was starting make a little noise but instead of making it stop it sounds like an airplane about to take off all the time, it doesn't matter what i'm doing. I dont know what to do now? any ideas on how to make it stop?

    take it back asap.  If it wasn't doing it before they cleaned the fans, they may have accidentally done something that is causing this behavior.

  • Video keeps stopping, but sound continues

    Recording works fine, but when I try to play videos it keeps stopping but the sound continues. Tried som other programs from google play, and they work tiny bit better... they also stop (makes a loading sign), but also stops the sounds, before continuing after a second or two. But on a film lasting 1 minute it will stop more or less every 4 seconds for more "loading". I've had a Sony Xperia before where there never was a problem, but this on (got a new one last week) has had a problem right form the start. Any suggestions?

     Settings > apps > all > camera > clear data > restart the phone  record a new video BUT make sure to save the video on the internal storage and then try to play it  I've seen this before and it's a SD card issue. 

  • How do I stop a sound file that is playing while Firefox is open that sounds like a PacMan Game?

    How do I stop a sound file that is playing while Firefox is open that sounds like a PacMan Game? It started when I downloaded the current Adobe DLM, but continues when disable. It begins playing each time I open FireFox, but gets interferred with when opening a web page.
    == This happened ==
    Every time Firefox opened
    == 1520 hours, Central Time

    See [[Firefox makes random sounds]]

  • How do I Stop 'Start up Chime' on OSx 10.8.5

    How do I Stop 'Start up Chime' on OSx 10.8.5
    I used to have it disabled on previous mac systems fine.
    I want system sounds to still hear email alerts and facetime calls, but stop the annoying loud startup chime.
    Any suggestions please. (startninka app didnt work!!)
    Andy
    OSX 10.8.5

    CHIME CRIME update
    no luck as yet! Working at home office and early starts are awful with the Chime so loud!!!!
    I tired the adding programme to Terminal...did not work.
    Also 'Chime Stopper'- (yet to test) https://www.macupdate.com/app/mac/13170/startup-chime-stopper
    But...
    I found last night the 'Startup Pref Pane' in System Prefs... this should stop the 'Chime Crime'
    so i can only test this and see what happens
    This could be the answer for OSX 10.8.5....
    Will update you all if it works

  • For certain songs on my iPhone 4s with iOS7 some songs stop playing audio but continue playing the song almost as if it were muted. Where can I fix this? Say "Stronger" by Kanye West stops playing sound after 2:25 but it is 5 minutes long.

    Basically it is just like it says. Certain songs stop playing sound after a certain point in the song but the song continues playing and ticking down like it normally would. Does anyone else have this problem?

    Hi I found the answer from another post. So far everything is working find. I been trying to fix this since march,
    from
    Mike N. (nahyun...
    Posts: 2,814
    From: New York, NY
    Registered: Oct 1, 2003
    Re: itune application and itune folder
    Posted: Jun 27, 2007 7:16 AM in response to: Austin Smith2
    Solved
    Reply Email
    Deleting the application rarely solves anything on Macs. A better starting point is normally to delete the preference file for the application (in Users/~/Library/Preferences/com.apple.itunes.plist) or see if you have the same problem in another user account on the computer.
    PM MDD(1.25GHz 1.25G-RAM 320G-HD) Mac OS X (10.4.10) 20"ACD USB2Connect MacBook (2.0 White)-2GB Report this post
    Austin Smith2
    Posts: 118
    Registered: Oct 31, 2001
    Re: itune application and itune folder
    Posted: Jun 27, 2007 12:51 PM in response to: Mike N. (nahyun...
    Reply Email
    Mike, deleting the preferences did the trick, but I don't know why. Itunes downloaded 5 days of podcast! Hurray!! Thank you!!!!!!!!!

  • HT201401 Hi my 4s has all of a sudden stopped playing sound.

    Hi my 4s has all of a sudden stopped playing sound. I have a ringtone but no sound for music/movies etc. tried turning on and of and letting bat go flat then recharging. Sound came back for a while then went again. I noticed this started soon after I upgraded to 5.1.1 . Ive also looked at the error reports the phone generates for apple and there are a few memory low notes.  Any help would be appreciated.

    We have a WHOLE discussion about the issue over here:
    Re: IOS 5.1.1. update bug (Volume Control)
    So far Apple is not doing anything to fix the bug with 5.1.1 It's really annoying!

  • Stop all sounds as3? Help

    When the game starts. I have toggle button. I can play a sound or stop sound. When i play the sound, of course its not muted so even if i go to the next page. I can reason out that the sounds will still play.
    But if i press the no sound,so it means it must be muted.. on the first screen, the sound stops. But when I go the next frames and to others. The sounds are playing. The sound on the starting screen
    was like
    var test:Sound = new NameOfSound();
    but in the next frames.. the sound is in the frame itself.. no declaring like the first screen..
    and also some sounds is playing when something happens or for example if the bullet hits the target collsion..sound play..
    i tried to have solution like on the first screen if for example it is muted.. ill set it to trueStop.. then on the next frames.. i would put:
    if(trueStop == true){
         SoundMixer.stopAll();
    that way the frame sounds stopped and working.. but the sounds attach to the function when like i said if a collision happens,, the sound is still playing.. arrgghh i cant explain clearly.. i hope you understand my problem..
    any ideas?

    if you need to stop individual sounds, assign a soundchannel to the instance returned by your play method and apply a stop method to that soundchannel.
    for example:
    var s1:Sound=new S1();
    var sc1:SoundChannel=s1.play();
    // now at any time you can use:
    sc1.stop();  // to stop s1 only.

  • Stop avi sound

    Hi
    I'm a student and i'm trying to building a program that play's some *.avi files.
    I've got a class named PLAY_MOVIE.
    This class has 2 methods:
    public Component PLAY_MOVIE_avi()
    public void setVolume(String volume)
    The constructor of this class initiates a String that contains the name of the *.avi file i want to play.
    The PLAY_MOVIE_avi() code is this, and it's working well:
    package xpto;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.String;
    import java.net.*;
    import java.net.MalformedURLException;
    import java.io.IOException;
    import java.util.Properties;
    import javax.media.*;
    import javax.swing.JOptionPane;
    import javax.media.protocol.*;
    import java.io.*;
    import javax.swing.*;
      public Component PLAY_MOVIE_avi()
        Component VC=null;
        try
          Player player;
          File MovieFile = new File(aux);
          player = Manager.createRealizedPlayer(MovieFile.toURL());
          VC = player.getVisualComponent();
          player.start();
        catch (Exception e)
          JOptionPane.showMessageDialog(null,"Inappropriate AVI data was encountered. Verify MOVIE files. The program will now
    close.");
          System.exit(0);
        return VC;
    The setVolume(String volume) function, is to regulate the volume of the playing avi file, through the String volume.
    My main goal is to set the volume to 0, cause when i use this class, a music is beeing played, so the music from the avi isn't desired.
    I use this class in another class, named VisualCT, which is responsible for the construction of GUI, etc.
    Next is a part of the VisualCT code:
    package xpto;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.sound.midi.*;
    import java.io.*;
    public class VisualCT extends JFrame implements ActionListener
      private Container c;
      private JMenuBar MB;
      private JMenu M1;
      private JPanel P;
      private JPanel P1;
      private JPanel P2;
        //PLAY_MUSIC m= new PLAY_MUSIC("MUSIC/Win.mid");
        PLAY_MUSIC m= new PLAY_MUSIC("MUSIC/Debriefing.mp3");
        m.PLAY_MUSIC_mp3();
        P1=new JPanel();
        P1.add(w);                       // w is an ImageIcon
        PLAY_MOVIE n1= new PLAY_MOVIE("MOVIES/camelrace-avi.avi");
        PLAY_MOVIE n2= new PLAY_MOVIE("MOVIES/SMB_AVI3_Export_lo.avi");
        P2=new JPanel();
        P2.add(n1.PLAY_MOVIE_avi());
        P2.add(n2.PLAY_MOVIE_avi());
        c.add(P1, BorderLayout.CENTER);
        c.add(P2, BorderLayout.SOUTH);
      public void actionPerformed(ActionEvent e)
        if(e.getSource() == MI1)
          c.remove(P1);
          c.remove(P2);
          //m.stopMusic();
          MI2.setEnabled(false);
          c.repaint();
        if(e.getSource() == MI11)
          System.exit(0);
    public static void main(String[] args)
       VisualCT VCT = new VisualCT();
    My idea is, when i create the n1 and n2 movies, next i want to call the n1.setVolume("0") and n2.setVolume("0") methods, to
    stop the sound.
    The problem is that i don't know how to do this.
    Another problem i have, is very similar to the first:
    I also have a PLAY_MUSIC class, which is able to play mp3 and midi files.
    For example, when i click a MenuItem i have the ActionListener interface ready to catch the event, and in this situation i
    want to stop the music, by calling m.stopMusic();
    How can i do this?
    If it's possible, i would like that someone would help me in these two situations.
    Sorry about my english. (I'm portuguese)
    Thanks.

    Please!!! I really need help in doing this.
    Give some ideas at least.

  • TS3694 My Ipod is not recognized by Itunes with my Windows 8 PC. Works fine with Windows 7 PC. Device sync test says "No device found". Already performed all of the Ipod device troubleshooting including reload Itunes, stop start Ipod device, changed drive

    Need help? Some of my Ipods are not recognized by Itunes with my Windows 8 PC. (Ipod Nano 4th gen  and Ipod Nano 6th gen), but on my Windows 7 PC, they work fine.  My Ipod 3rd gen and Ipod shuffle work both on Windows 8 and 7 PC's.  On the non-working Ipods, the  Device sync test says "No device found". Already performed all of the Ipod device troubleshooting including reload Itunes, stop start Ipod device, changed drive letter...
    any help is appreciated. Chris4sail

    Hello there, chris4sail.
    The following Knowledge Base article offers up some great step-by-step instructions on troubleshooting your iPod not being recognized in iTunes:
    iPod not recognized in My Computer and in iTunes for Windows
    http://support.apple.com/kb/ts1369
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Essbase Dimension build error and Unable to Stop/Start Application

    Hi All,
    I am trying to build the dimendion in the ASO application it is throwing the Error meaasage " Dimension Biuld failed , ther may be problem in allocating memory".
    While i am trying to and Start/Stop my respective Application it is throwing the below error meaasge
    I tried to debug this issue by checking the Locked objects, and asked my Admin to close my sessions forcebully if any running and also checking all rules files . But i didn't get any clue/solution from them.
    Please help me out from this issue
    ***ess-dev.ASOAPP     Stop application     April 15, 2009 4:15:08 PM IST     Failed***
    ***Error: 1013018 Cannot unload database [Sample] while user [ASDF] is performing database operation. Wait for user [ASDF] to complete the operation, or ask the user to abort it. Log out all users and then unload the database.***
    ***     MaxL Command     April 15, 2009 4:40:52 PM IST***
    ***Error: 1053012: Object [Sample] is locked by user [ASDF]***
    ***Error: 1013100: User [ASDF] is Active on Database [Sample]***
    ***Error: 1013132: Cannot build dimensions. There are other active users on database [Sample]***
    ***Error: 1241101: Unexpected Essbase error 1013132***
    ***Error: 1053013: Object [Sample] unlocked by user [ASDF]***
    ***     MaxL Command     April 15, 2009 4:43:28 PM IST***
    ***Error: 1270040: Data load buffer [2] does not exist***
    Regards

    Hi,
    Thanks for your answer friend. My admin has successfully killed my session forcebully. And he doubted that i may not have enough rights to Stop/Start application and he provided me the required rights. After that also the error is repeating as below. we two are not getting where we went wrong.
    ss-dev.ASOAPP     Stop application     April 15, 2009 8:19:35 PM IST     Failed
    Error: 1013018 Cannot unload database [Sample] while user [ASDF] is performing database operation. Wait for user [ASDF] to complete the operation, or ask the user to abort it. Log out all users and then unload the database.
    Help me out from this issue

Maybe you are looking for

  • Master/detail issue

    I have a tricky if convoluted implementation issue and hope you can assist with resolution. I have a form with a master/detail relationship. The master block has a primary key called master_id and the detail block has three foreign keys (caller_id, r

  • Session creation failed

    I recently received a phone from ebay, Casio G'zon Commando. I am not yet eligible for a phone upgrade. Works great, as a phone. Eventhough I am connected to a wireless network, when I try to set up facebook or news and weather, I get the same respon

  • Sluggish Leopard Font Selection Window

    Hi @ all! Recently whenever I use Leopard's built-in font selection tool in iWeb, Pages, Numbers, Mail (Or any other Application that uses it) it behaves extremely sluggish. Sometimes taking as much as 30 seconds before it updates when I for example

  • Replicated Partition - overwrite

    Has anyone heard of this?I have cube2 that gets data from cube1 via a replicated partition.The user wants the flexibility to override a member after replication.Problem:After the first time that replication is run, the member cannot be altered in any

  • AirPort Extreme  Would like to eliminate comcast netgear router. Flashing amber light.

    Hi. I have Comcast service for TV and Internet. The provided Comcast modem is an Aries and the router is a Netgear.  Both are located on my garage at a panel box where all cables come in and get distributed around the house with an 8 port switch (lar