Making a button stop a specific sound

how do i make a button have a behavior to stop sound?

dantair wrote:
> i start off with a slide presentation
> in the presentation timeline i have objects and graphics
with sounds come in
> and end at frame 55
> i put a layer with a stop action at frame 55
> i put another layer with a keyframe at frame 55 and i
attach a music beat to
> loop to it
> i want the music beat to turn off when my users navigate
to the slides
> or i want to have buttons to stop the music beat loop
for your case you could have the sound attach to whatever
frame you going next.
Set it to loop 0 (zero) and SYNC to STOP. It will stop the
sound once you enter the
frame.
You could as well attach stopAllSounds action but it works
like purge and you might
not be able to play it again unless you reload the movie.
Than there is a movie clip. You can place the sound in movie
clip frame 2
and in frame 3 just like above, loop zero and sync STOP and
have alternate ON OFF sound
clip but going to frame 2 or 3 from button or frame.
Regards
Urami
Happy New Year guys - all the best there is in the 2006 :)
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free>

Similar Messages

  • Making nav buttons "STOP" ...

    Hi. I have a question about a couple of things with AS3. And,
    I am really excited about my energy towards wrapping up my first
    Flash CS3 site.
    First off, is it possible to make nav buttons stop a Flash
    video from playing (without pressing stop directly from the
    component). I've made numerous attempts, but I have decided to just
    start from scratch. If so, how is it done?
    All the AS3 I have done has most been on the top layers of
    the main timelines. I get a little confused about public and
    private and sprite, but I do know how to paste that content into a
    .AS class file and test it.
    What is a Sprite? Is it difficult to learn and use
    comfortably? Can I use it with the actionscript on the top layer of
    the timeline. I just made a scrolling thumbnail panel. But, now I
    am thinking about turning it into a photo gallery, so I can display
    larger images.
    Jntspecialty

    I see the flvplayback class in the help files, with all the
    methods and properties listed in one spot. I even tested the
    example code and got it to work.
    So, for me, 1st develop the .swf file with the nav buttons
    and be sure to include
    " import fl.video.FLVPlayback;
    trace(FLVPlayback.VERSION);"
    on that page. Right?
    2nd- Then, make a page called "PressToPlayVideoPage.swf" and
    "ThePageWithTheFlvComponent.swf", and on this page drag the flv
    component, set the parameters to a flv named "anything.flv" and
    give it an instance name of "MyVideoWhichWillBeStopped".
    *Basically, the page that is accessed from the nav bar will
    have a button to load the page with the flv component
    /"MyVideoWhichWillBeStopped". Okay?
    3rd - Do what ??? To make the two "nav buttons" (which are in
    a different file) stop the the video from playing, even once
    unloaded or on the bottom stack, from that point on.

  • My iphone 4 wont turn on after hours of charging, normally i would press the lock button and home button together but my lock button stopped working afue weeks ago. Help!

    My iphone 4 wont turn on after hours of charging, normally i would press the lock button and home button together but my lock button stopped working afue weeks ago. Help!

    Hello Kimbo1991,
    It sounds like your phone is not successfully booting even though you have reset the device. I would next recommend attempting a backup and restore to iTunes with this article:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/ht1766
    If you are unable to restore with iTunes I would next put the device into recovery mode, and attempt the restore again:
    If you can't update or restore your iOS device
    http://support.apple.com/kb/ht1808
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • Stop/Play All Sounds Too

    Hi There,
    The play / stop button I have works...but the sound files
    continue playing.
    This is the script I have:
    button1.onPress = function() {
    MovieClip.prototype.onEnterFrame = function() {
    if (_root.direction == "stop"){
    this.stop();
    }else {
    this.play();
    _root.direction = "stop";
    button2.onPress = function() {
    _root.direction = "go";
    //delete MovieClip.prototype.onEnterFrame;
    is there any way to stop/play the sound files (in the current
    frame) also?

    David Stiller wrote:
    > cyphernic,
    >
    >> The play / stop button I have works...but the sound
    >> files continue playing.
    >
    > Heh, so does it work? ;)
    >
    >> This is the script I have:
    >>
    >> button1.onPress = function() {
    >> MovieClip.prototype.onEnterFrame = function() {
    >> // etc.
    >
    > That's a bit more complicated than you actually need, I
    think. Give
    > this article a shot, and write back if you still have
    trouble. :)
    >
    >
    http://www.quip.net/blog/2006/flash/how-to-toggle-sound-globally
    Solution is simple and ok but you don't actually stop the
    sound, just mute
    it so it continue to play tho you just don't hear it.
    You can toggle stop start using simple boolean
    buttonName.onPress = function() {
    (playing=!playing) ? sound1.stop() : sound1.start(0, 999);
    Assuming the sound was attach using something like :
    sound1 = new Sound(this);
    sound1.attachSound("loopSound");
    sound1.start(0, 999);

  • My iphone 4 speakers stopped giving me sounds when i play audio or video even while gaming. It works fine when ringing tunes of for voice mails. What is wrong with it?

    My iphone 4 speakers stopped giving me sounds when i play audio or video even while gaming. It works fine when ringing tunes of for voice mails, even works fine with headsets. What is wrong with it?

    well i'd seriosly say point a hot hair drier at the speakers as water has entered the phone most commonly via the home button but avoid getting it too hot let it cool every 3 minutes after constant drying. Don't worry I have honestly dont this with my iPhone 4 GSM 16GB. For future reference avoid letting it get wet.

  • Earphone buttons stopped working on multiple devices

    Hi,
    So I recently purchased an iPhone 5 and the store gave me a pair of additional earphones with the deal. All new products. Earphones that came with the phone works fine across multiple devices and so did the extra pair, until earlier today.
    When I plugged in the extra pair into my macbook, the volume/pause button suddenly stopped responding. Sound works perfectly fine but the buttons don't. After this happened I tried plugging the earphones back into the iphone and the issue remains. Even tried them with my old 3GS, same problem there. Original earphones still work flawlessly.
    Why can this be? The earphones are new and the buttons worked fine until I plugged them into the macbook. Is there anyway I can "reset" these earphones?

    HI,
    had the same problem.  Apparently the last segment of the jack controls the remote so it needs to be properly inserted.  I realized that I had somehow bent the jack so I just yanked it straight and it works fine.  Apparently another possibility is you have lint round the base you need to scrape off.  I don't think this is a technical os problem

  • Can someone provide a simple button which plays a sound for ios?

    I need a sample fla or the code for a button that plays a sound when touched, adobe air for ios.
    I have tried multiple tutorials and nothing seems to go right.
    a sample fla would be awesome.
    i used to be an actionscript 2 programmer so everything is new to me in actionscript 3.

    actually i just seen you cant put actionscript for iOS...is that true?
    well to develop this for android i have this code.
    but when i hit the button nothing plays, yet it plays find on the computer.
    import flash.events.MouseEvent;
    import flash.media.Sound;
    import flash.net.URLRequest;
    Multitouch.inputMode=MultitouchInputMode.TOUCH_POINT;
    var mySound1:Sound = new Sound();
    var mySound2:Sound = new Sound();
    var myChannel:SoundChannel = new SoundChannel();
    mySound1.load(new URLRequest("myFavSong.mp3"));
    mySound2.load(new URLRequest("myFavSong2.mp3"));
    mission_btn.addEventListener(TouchEvent.TOUCH_TAP, onClickPlay1);
    stop_btn.addEventListener(TouchEvent.TOUCH_TAP, onClickStop);
    ntl_btn.addEventListener(TouchEvent.TOUCH_TAP, onClickPlay2);
    function onClickPlay1(e:TouchEvent):void{
              myChannel.stop();
              myChannel = mySound1.play();
    function onClickPlay2(e:TouchEvent):void{
              myChannel.stop();
              myChannel = mySound2.play();
    function onClickStop(e:TouchEvent):void{
    myChannel.stop();

  • My macbook doesn't work. After pressing down the power button I hear the sound from starting the apple symbol appears and after a while a sign prohibited appears on the place of the apple symbol

    My macbook doesn't work. After pressing down the power button I hear the sound from starting the apple symbol appears and after a while a sign prohibited appears on the place of the apple symbol

    Hi Kappy Thanks for your answer. I did a reboot on my Macbook as suggested and this operation is going on non stop for 14 hours and on the screen always appears the same message that you can see in the picture in attachment. Any ideas?

  • How do i actionscript my flash button to play the sound while being transfered to another url?

    Hi!
    As the title says:
    How do i get my flash button to play my sound when i click on
    it while being transfered to another url?
    I did get it to work, but only when i set the script to
    "_BLANK". When i clicked the button then it played the sound and
    opened the url in a new window. I want it to be in the same window
    and still play the whole sound.
    Now i get just 1 or 2 sec then when im transfered, it stops
    playing the sound.
    I hope this explains it..... if any typo....its because im
    Swedish =)
    Thanks in advance!

    If you are jumping to another URL using the same window you
    cannot have a sound start on the press of a button and that sound
    to continue on.
    Reason
    You are removing all trace of the sound and the swf that
    contains that sound file.
    Work arounds
    1.Take a look at "frames". This way you are keeping the
    container page and opening another page inside of that page.
    2. Div's. again you are importing a page into a particular
    area yet keeping the swf, with the sound playing, in the parent
    frame.

  • Satellite A300-211 - illumination button stopped working

    Hi
    How are you people ?
    I have an annoying problem with my Toshiba Satellite A300-211.
    I had windows vista home premium 32 bits installed on it but then i removed it and started using windows 7 ultimate 64 bits and a result of that one of the touch media buttons that is used to turn the led light on and off changed its function and started turn the sound on and off.
    When i installed the value added package because the function key was not working the button stopped working. It does not turn the led light on or off or turn the sound on or off any more.
    It is blinking but not working .
    Can any one help ?

    Hi
    You can try to install the VAP using the Advanced Option.
    During the installation in Advanced Option, you can unchecked the Toshiba Multimedia Button support and could try to install the VAP without this further option.
    I read somewhere in this forum that this could help
    However, usually the common VAP installation should fix this if it does not fix then I assume that the registry is corrupt as already mentioned by Tonny
    So what to say using CCleaner might help, if not. Try to use Toshiba recovery

  • HP Pavilion dv7 2230ev , quick launch touch buttons stopped working

    Hi, i own a HP Pavilion dv7 2230ev  for th past month and one day the quick launch touch buttons stopped working(sound volume,wifi,music player). i used them for a month with no problem and suddently -no fall or software change- they stopped working, i even did the HP recovery to factory settings from the backup partition and still no change.99% its a hardware fail but i want to avoid giving it to hp service center,i was told they had a 20day wait,just to look at it...any ideas?

    Hi,
    You're welcome and I'm glad it helped
    All the best,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • All of a sudden my iPhone 4 stopped giving out sound... I can change d ringtone n speaker works fine but no sound for incoming calls... No click sound... No keyboard sound...

    my iPhone 4 stopped giving out sound..

    On the left side of the phone above the volume + and - buttons there should be a toggle switch (silence switch) if you see orange/red that means your iPhone is in vibrate mode and will be quiet.
    Switch the toggle so it shows no orange/red and that should correct the issue.
    If you still get no sound after that you may want to check your bluetooth to make sure its not connected to another device (sound is being sent there) ...
    If that doesn't work, stick some headphones into the headphone jack and see if you can hear the sounds from the headphones... the device may also think there is headphones plug'd in which can also be the issue
    If the issue persists past that explore the option of restoring the device from the last time it did make sound and if that doesn't work you may need to contact Apple for other options
    Hope this helps!
    GL!

  • 'Charger unplugged. Tap ok to stop this annoying sound'....

    Last night I plugged my Q10 in and suddenly it starts wailing like a siren.... I look at the phone and see the message 'Charger unplugged/. Tap ok to stop this annoying sound'... Thing is, the charger was NOT unplugged and I have NO IDEA what is making this noise...
    SAME thing happened again just now when I plugged it into my work computer...
    Is this a virus?? is that even possible? I haven't downloaded any new apps or anything..
    Quite confused. 

    That alert is alarming. I had it go off for a severe weather alert and the office started to clear out as it was same sound for the building alert to exit. Didn't know about it and took me a few seconds to tap it out and corral the office mates who were abandoning ship. I thought that alert for the charger was an app designed to alert you if someone tries to pinch your phone while it is on charger and then taken off without your knowledge. Sounds like your phone is malfunctioning for this alert. Dunno the fix other than tapping, maybe someone else will chime in.

  • Every time I open Mozilla Firefox, there is an annoying sound that won't stop, and it sounds kind of like pac man. I t won't stop, and I have no idea where it is coming from. I have tried everything. Any suggestions on what I should do?

    Every time I open Mozilla Firefox, there is an annoying sound that won't stop, and it sounds kind of like pac man. I t won't stop, and I have no idea where it is coming from. I have tried everything. Any suggestions on what I should do?
    == This happened ==
    Every time Firefox opened
    == I opened firefox today, and it won't stop.

    It's just the Google homepage tribute to Pacman turning 30 today. A playable game starts up automatically, use the arrow keys to move Pacman. It's fun!
    You can get Ms Pacman to appear in that game by clicking the "insert coin" button twice and using the WASD keys to move :)
    You can also just change your homepage to something other than google until tomorrow.

  • After plug to the charger i'phone 5 home button stop working

    I have purchased Iphone 5. After the battery went off I try to charge and synchronize with ITune. Problem occurred. The Home button stopped working after first attempt to charge. OS has been replaced and Iphon returned to factory setting. I does no help. Self diagnostic online helped, however when I try plug again to the charger the same story. Home button off?

    Hiya, siwynavline.
    You might try following the following steps to see if they may help sort your home button.
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    Specifically the following sections:
    The Home button is slow to respond
    If the Home button is slow to respond when exiting one application, try another application.
    If the issue exists only in certain applications, try removing and reinstalling those applications. For further assistance in installing and troubleshooting applications see this article
    If the issue continues, Try turning iPhone off and then on again. If the iPhone will not restart, try resetting it.
    If the issue is still happening, try to restore the iPhone
    Seek service is the issue is still occurring.
    The Home button is not working
    Put the iPhone to sleep.
    Wait a couple of seconds.
    Press the Home button.
    iPhone should wake up.
    If iPhone does not wake up, then iPhone should be serviced.
    If these steps don't resolve the issue, you can seek service via our Contact Apple Support webpage:
    Contact Apple Support
    http://expresslane.apple.com
    Best regards,
    Allen

Maybe you are looking for

  • Regarding Movement type 601 and 602

    Hi, We need to copy movement types 601 and 602. I would request to please provide me the configuration settings and all integration settings. Thank You, Waiting for your reply. Regards, Usha.

  • Unable to upload file more than 1 MB

    Hi, I am using the iPlanet web server for my web application. I am not able to upload a file of size greater than 1MB. Are there any settings on the iplanet server made that limit the file size for the uploading? Regards, Manasi

  • Using BlurFilter

    Hi, I'm trying to create a "motion blur" effect on a movie clip that contains a child clip/ sprite whose child clips/ sprite contain bitmap data using this function quote: private function dispatchOnEnterFrame(e) { if (Math.round(Math.abs(finalX-cX))

  • Iphone 3GS not turning ON? Please help

    My Iphone 3GS is not turning ON.I have tried doing everything(pressing POwer and Home Button for long time etc) Can anyone please help me in this regard?

  • Changing delivey dates on schedule line level in Purchase order in IS AFS

    Hi, I want to know if there is any standard transaction or enhancements to change the delivery dates in purchase order on schedule line level in IS AFS scenario on mass. Thanks, Kumar