muting a streamed sound with a button

Ask a Question related to Macromedia Flash Sitedesign, Design and Development.

  1. #1

    Default muting a streamed sound with a button

    Another scripting question.

    I've got a photo slide show with a soundtrack that is streamed, so it stays syched to the images.

    I'd like to have a button set-up that could mute and 'unmute' the sound as it plays. I was thinking of a movie clip with two buttons - 'silence' and 'listen'. The 'silence' button would drop the volume of the sound to zero. The listen button would restore it to 100.

    But I just can't it to work.

    Is the theory sound? And if so, any help in getting there? I've looked at some similar sound tutorials and tried to rework them to do what I want but I clearly am getting something wrong cuz it doesn't work.

    many thanks
    will


    Will Y. webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Muting sound in flash.ocx from either Javascript or Delphi/C#
      I know this question seems to have been asked from a number of different fronts, and I'm hoping to ask it a different way and hopefully find an...
    2. Controlling sound (ideally muting) in Flash.ocx (I've got v9) via other languages?
      I've got a Delphi program that's embedding the Flash.ocx to display various SWF files - files that I do not create and have no control over. As a...
    3. Sound problems - new instance of sound starts each time a button is clicke
      Everything in my site works fine, until the navigation buttons are clicked a few times, then the background music restarts and plays over the music...
    4. Muting the sound while Fast Forwarding
      Good morning everyone! I Currently wrote a volume slider for my videos, and thanks to Chuck Neal (woo hoo,all in one video slider) I have a video...
    5. Mute - toggle sound - single button - streaming sound
      After researching the Flash Boards for awhile and gathering info, no one (that I found) had a quick simple solution for a single button to mute and...
  3. #2

    Default Re: muting a streamed sound with a button

    You can do this with just one button
    try this:-

    mySound = new Sound();
    mySound.loadSound("sound1.mp3", false);
    myButton.onRelease = function() {
    (playing=!playing) ? mySound.start(0, 5) : mySound.stop();
    };

    Certified but not by Macromedia!
    myurl
    stwingy webforumsuser@macromedia.com Guest

  4. #3

    Default Re: muting a streamed sound with a button

    [url]http://www.actionscripts.org/tutorials/beginner/volume_slider/index.shtml[/url]

    shows u how to make play/pause buttons and volume slider.


    "Will Y." <webforumsuser@macromedia.com> wrote in message
    news:bl5lcc$7cv$1@forums.macromedia.com...
    > Another scripting question.
    >
    > I've got a photo slide show with a soundtrack that is streamed, so it
    stays syched to the images.
    >
    > I'd like to have a button set-up that could mute and 'unmute' the sound as
    it plays. I was thinking of a movie clip with two buttons - 'silence' and
    'listen'. The 'silence' button would drop the volume of the sound to zero.
    The listen button would restore it to 100.
    >
    > But I just can't it to work.
    >
    > Is the theory sound? And if so, any help in getting there? I've looked at
    some similar sound tutorials and tried to rework them to do what I want but
    I clearly am getting something wrong cuz it doesn't work.
    >
    > many thanks
    > will
    >
    >

    flashnoob Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139