Creating a mute button for video in as3

I would like to create my own mute button in as3. I have created a video object which plays my video fine. I'm having trouble finding information on how to create a mute button that mutes the audio but the video continues to play. All documentation that I've read relates to controlling sound from an loaded .mp3 file. Does anyone know how I can do this? The gotoandlearn.com site explains it using as2 only.
Thanks

I figured it out:
sound_mc.addEventListener(MouseEvent.CLICK, soundOFF);
function soundOFF(e:MouseEvent) {
     var transform:SoundTransform = new SoundTransform();
     transform.volume = 0;
     stream.soundTransform = transform;
Thanks for all your help on this. You'll probably see more of my post as I struggle with AS3 and my flash project.

Similar Messages

  • Mute button for video.

    I am using this code:
    var vid=sym.$("Holder");vid.html('<video width="444" height="250" src="video/video4.mp4" type="video/mp4" controls ="controls" autoplay ="autoplay" muted ="muted"</video>');
    to bring a video in. What I want to do is turn the controls on and have  mute button on the stage that will mute and unmute the video.

    with edgehero.js its pretty easy to do with class mute_videolink
    Edgehero.com

  • Create a Mute Button

    Is there a way to create a "mute" button using iWeb v. 2.0.3? I want to create a button so that the visitor can click it and silence the sound playing from a quicktime movie. I realize they could click and drag the volume control down, but I'm looking for a simple button to turn sound on and off. Any ideas?
    massachi

    If you use the movie control, they can also stop the music with it. I was on a site recently where the music was rather annoying but he had an arrow pointing to the stop control and a little line telling people to click to stop the music. It was rather well done.
    Mireille

  • How To Create On Submit Button For Master_detail Page ?

    I have adf page that is master And detail view.
    i want to have one submit button for master and detail block

    Duplicate of  How To Create On Submit Button For Master_detail Page ?
    Please don'r post your question multiple times.
    Timo

  • How to create a help button for downloading a help file in OA Framework

    Hi all
    I want to create a help button for downloading a help document.Plz suggest me how to do it.
    Thanks
    Bhupendra

    Create a button of type "button",set the destination url property to the place u have kept the file.But ur file should be anywhere in Common_top.If this file is stored as blob u can use messagedownload bean.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How can we create a OCA button for Overview page?

    Hi Experts,
       Please help me with all the steps for creating an OCA button for Overview page. I have already tried it for table view in Viewset and it is working fine but how to do that in Overview page.
    Thanks and Regard,
    Pranoy Kumar

    Hi Pranoy,
    You need to redefine two methods of OVP view's _IMPL class and paste this code:
    METHOD if_bsp_wd_toolbar_callback~get_buttons.
      DATA:  ls_button    TYPE  crmt_thtmlb_button_ext.
    Ls_button-on_click = 'EDIT'.
         ls_button-type = cl_thtmlb_util=>gc_icon_edit.
         ls_button-page_id = me->component_id.
         ls_button-enabled = abap_true.
        APPEND ls_button TO rt_buttons.
      ENDMETHOD.                    "if_bsp_wd_toolbar_callbacku2014get_buttons
    method IF_BSP_WD_TOOLBAR_CALLBACK~GET_NUMBER_OF_VISIBLE_BUTTONS.
    *CALL METHOD SUPER->IF_BSP_WD_TOOLBAR_CALLBACK~GET_NUMBER_OF_VISIBLE_BUTTONS
    *  RECEIVING
        RV_RESULT = 6.
    endmethod.
    And write the event handler method for here in my case EDIT, or you can write depending on your requirement.
    Regards,
    Vishal.

  • How to create a flash button, for mobile phones?

    i want to know the way how i can create a flash button for mobile in flash CS4.

    Create a button of type "button",set the destination url property to the place u have kept the file.But ur file should be anywhere in Common_top.If this file is stored as blob u can use messagedownload bean.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Creating a cusotm button for Portlet Titlebar

    I am trying to create a custom button for our help system. The Help System is being
    hosted external to the portal. Ideally when a user clicks on the help icon a new
    window will appear with help relevant to that portlet.
    I can update a skeleton's titlebar.jsp to add this button and pull details from
    the portlet preferences to makes sure the relevant url is generated. The issues
    i see with my code are that they may not leverage the skin api very well to retreive
    the correct help images or apply the correct style to the border of the image.
    I see there are objects out there like ButtonPresentationContext and ToggleButtonPresentationContext
    that appear to retrieve look-and-feel information. Is there a way for me to populate
    my own ButtonPresentationContext to represent this custom button?

    I am currently trying to implement the help button on the title bar (I have suppressed the portlet title bar). I am able to add the portlet button, but am not able to get the help URL specified in the webservices advanced url settings page.
    Sample code
    <TABLE cellSpacing="0" cellPadding="0" width="100%">
         <TR>
              <TD class="platportletHeaderBg platportletWideHeader portletTitle" vAlign="middle" align="left">Test Page</TD>
              <TD align="right" valign="middle" nowrap class="platportletHeaderBg customappText portletButtons">
                   <span class="portletHelpButton"><img src="images/action_portlet_help.gif" alt="Test Help." border="0" align="absMiddle"
                             height="13" width="13"></A></span>
              </TD>
         </TR>
    </TABLE>

  • How do I create a submit button for my form? I would like it to send the completed PDF to an email address

    Hi everyone,
    I recently upgraded to Adobe XI and I can't find a "submit by email" button for my form. I created a button and tried to set up some actions but, I can only get the button to direct the user to a URL. How do I make it send the completed PDF to our designated company email address? I'm not too familiar with JAVASCRIPTS so I haven't tried that plus I heard it may not work with users with adobe reader.
    Any help would be appreciated.
    Thanks,
    Matt

    Thanks for the input. I think you might have a different version of LiveCycle than the copy I have since it looks a little different. However, I found the answer in Adobe help. I had to type "mailto:" before the email address to indicate it's an email and not a URL. See below.
    To collect form data as attachments to email, type mailto: followed by the email address. For example, mailto:[email protected]

  • Specs and workflow for creating opening/closing titles for video

    I'm trying to create specs/workflow for videos that I will be adding opening and closing titles to (black background with colored text), using QuickTime Player 7 (Pro).
    The videos are .mov, AVC coding, 1280x720, millions, 30fps, a sample video had a data rate of 7,463 kbits/second.
    I created 1280x720 300dpi (perhaps I should have used 72dpi?), saved as a .jpg (highest quality), then copied the .jpg contents into a QuickTime Player 7 (Pro) blank document multiple times until I had enough frames for my need. The resultant video was very large; 339,743 kbps/second. I then exported to H.264, which brings the data rate down to only 214 kbits/second (and looks fine) and then copied that into the head of my AVC coding video.
    Questions:
    1) When I exported to H.264, the x pixels increased by 6, to 1286. After pasting that video into the AVC coding (1280x720) video, the resultant movie is 1280x720. Did my graphic get compressed by 6 pixels horizontally?
    2) Does my method of converting the huge graphic movie to H.264, and then pasting it into the AVC coding make sense? The combined video has AVC coding, according to Movie Inspector; does the H.264 of the graphic get converted automatically? Any better way to approach creating my titles?
    Note: these AVC coding videos may get converted to H.264 for some use, but for now, I'm keeping the highest quality (source) video I have to work with.
    Thanks,
    Bob

    "First, tell use why you're not using FCP's titling and keying capabilities."
    I don't own FCP.
    "Then, explain why you're doing it this way."
    I'm able to create graphics with plenty of control in a graphics program (PhotoShop in this case).
    "There is no dpi in video, there are only pixels."
    Sorry, I posted my thread then realized I left out a bit of info, but couldn't edit the post. I should have written that I created my graphics file in PhotoShop, hence the dpi reference.
    "A black background for text is not the same as using an alpha channel."
    OK. The portion of my video with titling stands by itself; that is, I'm not overlaying titles on existing video. Is there a use for alpha channel if I'm working up standalone title video frames? Uses less data rate?
    It seems from your inference I would be best served by purchasing FCP, so I'll probably take that advice and buy it.
    From a general video production point of view, I'd still like to learn more about creating titles in a graphics app and bringing them into QT Player; what format to bring them in as (e.g., H.264 into an AVC coding video, as I've done, or ?), and what happens when my graphics video gets converted from 1280x720 to 1286x780 (AVC export to H.264), and then brought into an AVC codec movie, and the movie remains at 1280x720-- does the graphic get horizontally widened, or the vertical compressed? Thanks.
    Bob

  • How can I create an HTML gallery for video? (in Lightroom..?)

    Hi,
    I use Lightroom for photography and am able to create HTML and Flash web galleries using the Web module.  I find this very useful. However, my day job requires I shoot video and needs a way to create HTML galleries that will play video (.mov) files when the thumbnail image is clicked.  I can import the videos to LR and it creates the gallery happily but only goes as far as showing the thumbnail image. It doesn't handle the video at all it seems.
    Is there a way to do this? If not in LR, in Bridge or something else?
    Many thanks

    You may need JavaScript/HTML5.
    The landscape is changing for video including 14k as an advance on 1080p.
    LR6 may have some advances, when launched although unlikely to usurp Premiere Pro/After Effects/Speed Grade.

  • How can I create a custom button for opening a form?

    I have a parent form having child forms. In my main form I want to create custom buttons for opening child forms. I want to use master-detail form but there are more than one child forms, and in master-detail form I can only create one detail form. So I will create a form based on a table and in that form I will call the child forms by custom buttons. Can I do that?
    Thanx,
    Gulsah.

    This can be easily done. First open up two instances of your Portal. In one window, you will need to go into your component you wish to link FROM. In the other window you will need to go into your component you wish to link TO. In the component you wish to link TO there will be a moduleid. Note this somewhere. Then, you will see an area that says: "Call Interface: Show". Click on this. (In the window you are linking to.). In this window, you will see a bunch of stuff. At the bottom you will see a URL call. This is the call you need to use. At the top, it explains each piece of the URL call. Just subsitute YOUR appropriate information into the URL call. In the form you wish to link FROM, create a button. Once you create this button, it will appear at the bottom, click on it and you will see an area to insert a Javascript. Click the onClick and insert:
    //this is the variable you want to pass from one form to the other
    get_field_name = getField(this.form,'COLUMN_NAME_IN_DATABASE');
    //this is so you can open the "child" form
    window.open('/pls/cc_prod/DAD_NAME.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=MOD_ID_HERE&p_arg_names=_sessionid&p_arg_values=&p_arg_names=COLUMN_NAME_IN_DATABASE&p_arg values='+GETFIELD_NAME+'&p_arg_names=_COLUMN_NAME_IN_DATABASE_cond&p_arg_values=%3D');
    In the fourth tab, where it says, "....before displaying form" insert the following: (This will tell the form how to handle the getField function.)
    htp.p('<script language="JavaScript1.3">
    < !--
    function getField(form,fieldName)
    var objName = "";
    var tmp = "";
    var dAction = "";
    var sel_idx = 0;
    var cnt = 0;
    var instance = 0;
    var slicedName;
    var fillData = new Array();
    for (var i = 0; i < form.length; i++)
    slicedName = form.elements.name.split(".");
    tmp = slicedName[2];
    instance = parseInt(slicedName[3],10);
    if (!tmp)
    continue;
    objName = tmp;
    if (objName == fieldName)
    return form.elements[i].value;
    //-->
    </script>');
    I hope this helps.
    null

  • The "i" button for Videos in Description field

    Is there a way to get the "i" button in the description field (to show description in a separate pop up window) to show up for videos (the video icon under in Source area)?
    They show up in the iTunes video store and for downloaded Podcasts (under the Podcast icon in Source area not Library), but do not for up for dowloaded Videos (or even for dowloaded podcasts when looking at them through library (main library in Source). The descriptions of some of the TV Shows I have bought through iTunes are very long sometimes and have almost found it easier to just find the show again on the iTunes store and click on the "i" there instead of trying to spread the description column at wide enough to be able to see enough to make sense of what it is saying. But that still should not have to be done, so I am wondering if I am missing a preference setting somewhere or if it can be done through terminal or editing the iTunes preference file. I have sent it off as a suggestion, but I wanted to see if there was a quick solution that I am just over looking.
    thanks

    Well all I can say is that after the 10.6 update, I too lost my Get and Subscribe buttons once again. I downloaded and ran the install procedure and used the Repair option within it and that solved the issue. I only had to run it once though.
    If you've done this twice without the problem being fixed, I don't know what else to suggest.
    Sorry.

  • Create custom Edit button for list on SharePoint 2013 page

    Hi
    I have a custom list which holds contact information such as name, telephone, address.  I am displaying the custom list webpart with using a custom view on the site home page which only shows name and telephone.  It should only
    have 1 item so 'New Item' is not needed.  However I still need to be able to edit the item.  If I click 'Edit' on the list view on the home page, it will open a quick edit box only showing name and telephone. 
    How can I create a custom button on the home page that will open the custom list item form instead?  Therefore all columns will be editable and I can remove the "New and Edit" toolbar from the webpart.
    Marc Collins www.QGate.co.uk

    Hi,
    According to your post, my understanding is that you want to open the custom list item form.
    Per my knowledge, there is out of box method to achieve it.
    After you insert the web part to a page, you need to edit the web part and change List Views as below, then it will remove the "New and Edit" toolbar from the webpart.
    In the page, if you click the web part , the ribbon will appear. After you select the item and click Edit Item, the edit form with all fields will be displayed.
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Can I create a disjointed rollover for videos?

    I am working on a webpage that I created a disjointed rollover for thumbnails that I want individuals to see a larger image of.
    While I was working, I wondered if I could create a disjointed rollover for a video? I would use thumbnails for the viewer to rollover and when they do rollover I would want a swf video to play. Is this possible? Any suggestions on how to go about it?
    Thank You.

    I would not let anyone else determine whether your choice is wrong or right without knowing all of the details. Let's consider that you've made the considerations already and for anything else you're simply asking to see if it's possible or not and you're looking for suggestions on how to go about it. I mean, that is what you asked in your original post isn't it? I re-read your original post and I didn't see anywhere in there where you were asking others whether they thought this was the right choice or not...
    Perhaps you want to save the mouseclick so the user can click the thumbnail and view the entire video while mouseover plays a small preview in disjointed? The other poster probably didn't think too much about it though.
    To directly answer your question: yes, it's possible to mouseover a thumbnail to play a video. Depending on the intended use a method like this is not only acceptable, it's expected. Many highly-regarded websites use this technique including http://videocopilot.net and http://istockphoto.com to name a few. A method like this allows for faster browsing and preview of videos instead of requiring a user to not only mouseover the thumbnail, but then continue to click once to display preview and then click once again to close the lightbox. That's a cumbersome method for the user if they want to preview many videos.
    View source on the websites mentioned in this post to see how it's accomplished.

Maybe you are looking for