How do i mute the sound in a movie clip using action script?

assuming my movie clip is named "movie"

You should use SoundTranfrom object and soundTransform property of your movieClip.
At first you have to instantiate soundTransform object and assign value of 1 to it's volume property:
var soundTr:SoundTransform = new SoundTransform();
soundTr.volume = 1;
Than a simple toggle function, which changes volume property of soundTr and assigns the object soundTr to your movie's soundTransform property.
function toggleMute():void
    if(soundTr.volume == 1)
        soundTr.volume = 0;
    }else{
        soundTr.volume = 1;
    movie.soundTransform = soundTr;
Regards,
gc

Similar Messages

  • How do I mute the sound on a movie clip that I'm using in iphoto slide show?

    I cant get rid of the sound on a movie clip I'm using in an iphoto slide show. I want to mute it as I'm using music on the slideshow. Thanks!

    Did your Mac come with iMovie preinstalled?
    Then you could export your video, import it to iMovie and remove the audio track. iMovie has two methods to silence a video clip - you can either select the clip in the project and use the command "Detach audio" or chance the audio settings of the clip and set the volume to zero. Then render the video new and import the silent version to iPhoto to use in the slideshow.
    Regards
    Léonie

  • How can I improve the sound in final cut express using my mic?

    How can I improve the sound in final cut express using my mic?

    I think you're in the wrong forum. This is the LiveType forum. There is no sound in LT.

  • How do I mute the audio of a video clip in PS 6

    I have video clips on several layers in the timeline and want to mute the audio of specific video clips - they are on video lines, not the audio line

    an interesting development as I proceed with the video. I guess I'm missing an integral concept here. It appears that some of my cideo clips import into the project and the segments have a blue color. These offer an option to fade in or out the audio, to mute the audio or adjust the volume.
    Other vidoe clips import purple, like the still image files, and hence these do not offer any audio options, just motion objects.
    So, what am I doing wrong? Why do some video clips import (purple) as image files?

  • How can i delete the duplicate pictures and movie clips on my macbook pro

    how can i delete all the duplicate pictures and movie clips on my macbook pro. it is telling me i have no memory

    By 'no memory' may I assume you are out of space on your hard drive?
    Obviously you can delete them one by one, but this is tedious and will take a long time and you wish to do this quickly and efficiently.
    This is my suggestion and it may not be worth a lot:
    If all of your duplicates have a unique characteristic common to them that the originals do not, this MIGHT work.  For example if you make a duplicate of an image, it will have the same title as the original, but will insert the word 'copy' in its' title.  (It should do some thing similar with movie clips).
    Go to Spotlight in System Preferences.  Click on Privacy (near the top of the pane) and then the + sign (near the lower left hand corner).  This will result in a drop down menu.  Select all the places you do not want Spotlight to search.  You should leave only Music and Movies unless you have pictures/movie clips in other places.
    Enter into spotlight the unique characteristic (ie; copy) and it should (I hope) list all your duplicates.  Perform a Select All, and put them in Trash.
    Otherwise do them one by one or write an Apple Script Program.
    If my convoluted idea does not work, perhaps you will be lucky and a more savvy person with a real solution will come forth!
    Caio.

  • How do I mute the sound from the video camera when burning a DVD

    Hi there.  I'm a new user of Elements 8.  I have compiled some clips and added a soundtrack to the movie,  When you preview the file you don't hear the sound from the video camera but when I burn it to a DVD you still hear the video background.  How do I burn the DVD without the background sound from the video camera?  On the DVD I only want to hear the soundtrack I added.
    Thank you,
    Doug

    Thanks guys.  Both options worked.  Dowside to deleting audio (option I went with) appears to be that you lose the audio forever.  So if I ever wanted to bring the audio back I wouldn't be able to.
    You are partially correct in that the Audio is no longer on your Timeline. It is still in your Project Panel, and you can move it back to your Timeline if ever needed. The complete removal from the Timeline is why I work with the Audio Mixer in cases like this. Also, on could alter the Gain on a Clip by Clip basis.
    With using the audio mixer it appeared I had to mute each clip separately.  When I highlighted all the clips and selected mute for audio 1 it wouldn't mute all of the selected clips.
    The Audio Mixer works at the Track-level, and not at the Clip-level. That is why I use it so often - one click, or slider adjustment affects the entire chosen Track. If it did not work at a Track-level for you, something is wrong. Now, if one has Clips on different Tracks, then Muting of all of those would be required, or one would have address things on a Clip-level basis.
    Any way to use the audio mixer to mute the clips in mass?
    See above for how it should work, and also the exceptions - Audio on several Audio Tracks.
    Good luck, and remember that your Audio still resides in the Project Panel, should you ever need it again.
    Hunt

  • How can I restore the sound in my iPad after using my head phones in it?

    I have lost sound on my iPad after taking out the earphones. Please tell me anything I can do to restore that. This is the second time it has happened. I cannot figure it out. The keys on my keyboard don't click nor the sounds on games. Thanks

    Have you got notifications muted ? Only notifications (including games) get muted, so the iPod and Videos apps, and headphones, still get sound.
    Depending on what you've got Settings > General > Use Side Switch To set to (mute or rotation lock), then you can mute notifications by the switch on the right hand side of the iPad, or via the taskbar : double-click the home button; slide from the left; and it's the icon far left; press home again to exit the taskbar. The function that isn't on the side switch is set via the taskbar instead : http://support.apple.com/kb/HT4085
    If you haven't got notifications muted then try inserting and removing the headphones again

  • How can I fix the sound cutting out when I use the dashboard?

    When I use the dashboard feature to look at the calendar etc. the sound on my computer cuts out. It is not on mute, it shows as high volume but when I use the volume buttons to turn it up, they make no noise and if I am trying to listen to music, no noise comes out the computer. I have to restart the computer ever time this happens before the sound comes back.
    Any ideas what the problem might be??

    I convert old vynal records to c d but i have problem with the sound setting

  • Newbie: How to go to the next frame after movie clip is complete

    I know this should be the simplest thing to do, but I can't
    figure it out. I have a movie clip on my timeline. I want it to
    play completely before the timeline moves to the next frame. Can
    someone point me in the right direction?

    On the last frame in the movieclip, place this code (it's
    Actionscript 2).
    _parent.nextFrame();

  • How do I create a play button for movie clip using AS3

    Hello.
    Bit new to this and have been searching the adobe forums and google. I am trying to create a button that will play an imported MovieClip.
    I have a movie clip that I've imported into it's own layer (Layer1) Frame 1.  I've given the MovieClip an instance name of foundationMovie.
    I've created a button and have that on its own layer(Layer2) above layer1, it is also in Frame 1.
    I've added a
    stop (); action to layer2
    The video is not set to autoplay.
    I want the video to start playing when the viewer clicks the button.  I know I've got to put some kind of event listener using AS3 in my timeline somewhere.
    I've found some code and I've been trying to work with it.  I'm sure I've mutilated it beyond usability but this is what I've got.
    stop ();
    player.addEventListener(MouseEvent.CLICK,play);
    function play(event:MouseEvent)
    gotoAndPlay("foundationMovie");
    If someone could point me the right direction or help me with my code I would really appreciate it.  Thanks.

    First, you need to clear up what you are working with... a movieclip and a video are usually entirely different things.
    Next, your code may get you started on your way with some changes.   You shouldn't use "play" as a function name due to there already being a play() method/function in Flash.
    If the movieclip is a movieclip and has an instance name of "foundationMovie", and your button has an instance name of "player" then the following adjusted code would normally work...
    stop ();
    player.addEventListener(MouseEvent.CLICK,playMovie);
    function playMovie(event:MouseEvent)
         foundationMovie.play();

  • How can I change the date of a movie clip?

    I just digitized some Video8 analog tapes into iMovie and iMovie filed them under 2012 category (since analog tapes have no metadata I suppose). Is there any way to assign the correct year (i.e. 1998) to the clips so they will be filed under the correct year?

    Hi Karsten
    Me just adding in - tried this date and time change and as I get it
    • iMovie'08 - can't be done - Right-Click or Shift-Click or whatever-Click - just don't work
    • iMovie'09 (and most probably iM'11) - Exactly as describet - BUT one must ctrl-Click on one CLIP at a time - Can't be done to a full Event in one stroke (at least I can not figure out how)
    (Now I did figure it out - Select Clip one - keep Shift-key down and select last clip in Event - then when all is selected ctrl-Click in one of them and Change Date & Time and all will change)
    Yours Bengt W

  • How to stop the animation at a certain frame using action script 3.0 .

    How to stop on a frame to stop the animtion using adobe flash cc.

    Either put a stop(); command in the desired frame of the animation's timeline, or have an ENTER_FRAME event listener working who's event handler function constantly check the currentFrame value of the animation and issues an animation.stop(); command when the desired frame is reached

  • How can i change the date of imported movie clips from mini dv?

    i imported 1 hour of video from the same tape and created 1 event for all of them.but the date of it is today so imovie is showing it under 2011 when it is 2008? i tried the terminal command touch -t 200806061200 and then draging the event from movies-imovie events to the terminal, i also tried the touch -mt but its not working The folder itself changed dates but not all the clips inside it?

    Hi Karsten
    Me just adding in - tried this date and time change and as I get it
    • iMovie'08 - can't be done - Right-Click or Shift-Click or whatever-Click - just don't work
    • iMovie'09 (and most probably iM'11) - Exactly as describet - BUT one must ctrl-Click on one CLIP at a time - Can't be done to a full Event in one stroke (at least I can not figure out how)
    (Now I did figure it out - Select Clip one - keep Shift-key down and select last clip in Event - then when all is selected ctrl-Click in one of them and Change Date & Time and all will change)
    Yours Bengt W

  • How do I mute the startup sound

    How do I mute the startup sound on my imac

    The start up sound is there for specific reasons, for example if you do a Safe Boot or PRAM reset  you need the start up sound to do those key functions. I would recommend against masking it and follow Apple's suggestions.  Please read your owners manual, where Apple states:
    Putting Your iMac to Sleep
    If you‘ll be away from your iMac for less than a few days, put it to sleep. When your iMac is in sleep, its screen is dark. You can quickly wake your iMac and bypass the startup process.
    This means don't turn it off, my iMac is about 5 years old now. The only time it's restarted is when I'm doing updates, it has reliably that way and has never given me any problems. In short, let it sleep when it's not being used.

  • Just got fcp, how do mute the sound on the video clip so it does not come through the audio track?

    just got fcp, how do mute the sound on the video clip so it does not come through the audio track?
    Please help

    Don't edit the audio into the timeline. Or pull the audio level down to zero in the inspector or on the audio waveform in the timeline.

Maybe you are looking for

  • Vendor spend by plant

    hi SAP Gurus, is there a way we can try to find out how much we are spending against a vendor or a list of vendors for a given plant. Also this spend should cover all types of PO's like stock PO's, Non stock Po's, service entry sheets, etc thanks Anu

  • Displaying more than one column in TreeControl

    Hi, I have three tables ( LaborOperation, LaborIndex, LaborData). In TreeControl, i am displaying the following table columns, LaborOperation ->operationid, LaborIndex -> indexid, LaborData -> date, value. i want to be like this. + Operation Id(Singl

  • ASA 5512-X DHCP Backup ISP

    I installed a new ASA 5512-X over the weekend for a client.  Their backup ISP connection is DHCP based.  I need to use the 'dhcp client route track' command on the interface, but it is not available.  However according the all the documentation I am

  • How efi firmware password macbook pro luck I forget password and I want rest this password

    I updated my MacBook Pro to the last update two days ago and when you activate served Aye Claude lock the device and the back of my four secret numbers I do not know. When you do Recovery Mode BIOS lock what is the solution

  • BB DM 7.0.43 Hangs on Contact Synch - Preparing Sync Preview

    A number of people are reporting this at Crackberry.  Any ideas from the support here.  BB9930 opn 7.1, Lotus Notes.  Stinsonddog