How do i disable a movieclip after clicking it?

Hi,
I am very new to Flash, and I would really appreciate your help with my website. I am using Adobe Flash CS5, Action Script 3.0, and I want to disable my "home" movieclip after it has been clicked, so it stays a certain color or design that can't be clicked anymore. I already created the _up, _over, _down, and _disabled in the "home" timeline, and I don't know what to do after that.... i tried    home.enabled = false, but it's already disabled when I hover to it. These are my codes so far:
stop();
home.stop();
home.buttonMode = true;
home.addEventListener( MouseEvent.CLICK, click_home );
function click_home(e):void{
gotoAndStop("home");
Thank you very much... and hope to hear from someone
-Cedrik

the code i showed will make your button not-function after it's clicked.  if you want your button to also not look like it's clickable, , use:
stop();
home.stop();
home.buttonMode = true;
home.addEventListener( MouseEvent.CLICK, click_home );
function click_home(e):void{
home.removeEventListener( MouseEvent.CLICK, click_home );
home.buttonMode=false;
home.alpha=.5
gotoAndStop("home");

Similar Messages

  • How to properly disable a button after click or can an event disable itself?

    Can I disable  MouseEvent.CLICK after I clicked it?
    I am relatively new to coding and it seems to me as a mistake that an event will disable itself?
    Is it ok or is it prone to some mistakes?
    mainNav_buttonsGroup_mc.Products_btn_mc.addEventListener(MouseEvent.CLICK, onClick_Products_btn);
              function onClick_Products_btn(event:MouseEvent) :void {
                        gotoAndPlay("products");
                        mainNav_buttonsGroup_mc.Products_btn_mc.removeEventListener(MouseEvent.CLICK, onClick_Products_btn);
      Products_btn_timeLine.play();
    The idea is that I want to disable a button after it is clicked.

    The approach will work.  The event is not disabling itself.  The event is the occurence of the CLICK interaction.  The event listener is designated to detect that happening.  The event handler function for that listener is disabling the event listener.

  • How do I disable resuming downloads after restarting the browser?

    I did find how to prevent resuming downloads after a crash. But how can I disable resuming downloads after a manual resart of the browser?

    Hi,
    You can try to set [http://kb.mozillazine.org/index.php?title=Browser.download.manager.quitBehavior&redirect=no browser.download.manager.quitBehavior] to '''1''' in [http://kb.mozillazine.org/About:config about:config].
    # In the [[Location bar autocomplete|Location bar]], type '''about:config''' and press '''Enter'''. The about:config "''This might void your warranty!''" warning page may appear.
    # Click '''I'll be careful, I promise!''', to continue to the about:config page.
    [http://kb.mozillazine.org/About:config_entries about:config Entries]
    The [https://services.addons.mozilla.org/en-US/firefox/discovery/addon/config-descriptions/ Config Descriptions] add-on adds helpful source comments in about:config.
    [https://developer.mozilla.org/en-US/docs/Download_Manager_preferences Download Manager prefs]

  • How can I disable the camera's clicking sound?

    That click is irritating and pointless to me. I understand they don't want people surreptiously photographing women's beavers on subways in Tokyo and such, but that is easily overridden by simply by turning off all the iPhone's sounds completely each time with the little button on the top of the left side of the phone.
    My point is, I don't want to have to silence my phone each time, and then turn it back on again after taking some pictures, which I often forget to do. So how can I disable the silly camera sound without muting the entire iPhone each and every time I use the camera?

    Actually in other countries, even on silent it will not mute the camera as it is their law to have camera sound.
    As for here, that is only option, silent mode.

  • Disable submit button after clicking on it

    Hi all,
    I m beginner at working with JHeadstart.
    I searched through this forum but I couldn't find any solution for my problem,
    Now, i want to know how i can disable save button (or any other button) after clicking on it.
    I dont know, but It can be done by writing .vm, do u have an idea?
    Thanks for ur kind replies:)

    Hi,
    If you only want to be able to submit once you can add the following disabled property with EL expression to your save button in the jspx page.
    disabled="#{adfFacesContext.postback}"
    The save button will only be clickable upon initial entry of the page.
    To persist this change when generating your application you can use a custom velocity template. Have a look at the JHeadstart developers guide, paragraph 4.7
    http://download.oracle.com/consulting/jhsdevguide1013.pdf
    If you want to have an insert only form you can also use an insert only View Object (go to the view object editor and select the tuning tab and the "No rows" option)
    Regards,
    Ruud Bijkerk
    JHeadstart team

  • How can I disable the touchpad right click feature?

    I don't know how exactly, but I believe that on my Pavilion 15 laptop it is possible to right click by doing some weird tap thing on the touchpad. I only want to right click using the right click button and find it annoying when I try to use the touchpad to normal click but it right clicks instead.
    When I go to the synaptics settings panel I can't see anything about disabling the right click on the touchpad feature. ANy idea how I can disable it? The touchpad is the same texture/look for all of it - I can't see or feel any designated right click zone. Thanks

    Hi,
    This depend on the make/model of your hardware, and, the software/drivers currently installed, the steps will vary.
    For your model, i search the information from Lenovo website:
    You could have a try. For more further information, i suggest you ask Lenovo support for help.
    Karen Hu
    TechNet Community Support

  • How to disable button immediately after click?

    Hello,
    I'm using JDeveloper 11.1.1.4.0
    On my screen is an 'Add' button that calls specific method written in bean (addAction). Following are actions in addAction():
    1. Disable Add button
    2. Execute 'CreateInsert'
    3. adfContext.addPartialTarget(corresponding adf table)
    This works fine when user clicks on 'Add' and waits for couple of seconds, till the 'Add' button gets disabled
    However, if the user keeps on clicking 'Add' button, it sends multiple requests to server and adds those many records in 'adf table'.
    Is there any way to stop user input till the response is received for the previous request?
    I tried setting up 'blocking' property of the button. But it did not work.
    I also tried using 'unsecure' property of the button for disabled property and call setProperty('disabled',true) in javascript. In this case server request is not sent.
    Appreciate your help in this regard.
    Amar

    hi user,
    i cant undertud ur problem.. but i understud that something disabing the button.
    <af:commandButton text="Entry completed" id="cb23"
    binding="#{pageFlowScope.managedbean_GeneralLedger.cb23}"
    action="#{pageFlowScope.managedbean_GeneralLedger.cb23_action2}"
    disabled+="#{bindings.GlLvlAccounts1.estimatedRowCount eq 0 ? 'true' : 'false'}" // here whatever ur condition.
    partialSubmit="true"
    />
    af:command button disabled

  • JMenu:How to keep popup menu open after clicking disabled JMenuItem

    A menu usually shows all options, even those that are for some reason disabled. When clicking on a disabled option, nothing should happen. Unfortunately, the JMenu does not follow this philosophy: clicking on a disabled option fires no action, but the popup menu closes. It is a minor problem but I prefer the standard behaviour. Any ideas ?
    Thanks
    Cyril Mrazek

    I am also having the same problem, if any one find out solution for this mail me . My mail Id is [email protected]

  • How to send a predefined email after clicking on an Insert button in a Form?

    Hi,
    I created my form ( three fields) where I enter a three values.
    I want an email be sent every time new values are entered and the insert button clicked.
    Do you know a way on how to do it please?
    Thanks
    Khaled.

    Hi,
    I do not know of a way within Portal to automatically send an email, but the database has a utility (utl_smtp) that will allow you to do so very easily. You can use Portal to insert your data and then put a trigger on your table that fires after the data is inserted that calls a procedure that will send the mail.
    Here is an example of a procedure that I have used to send mail (you can get all of the info on utl_smtp in the Oracle docs). I have a Portal form that allows the user to input three values and once they click 'insert' and the data goes into the table, I have a trigger that fires 'after insert' and runs this procedure:
    PROCEDURE send_register_mail (sender in varchar2,
    email varchar2,
    date_of_class date)
    IS
    mailhost VARCHAR2(30) := 'my.mailserver.com';
    mail_conn utl_smtp.connection;
    BEGIN
    mail_conn := utl_smtp.open_connection(mailhost, 25);
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, email);
    utl_smtp.rcpt(mail_conn, '[email protected]');
    utl_smtp.open_data(mail_conn);
    utl_smtp.write_data(mail_conn, 'Subject: Platform Training registration request'||utl_tcp.crlf||'Content-Type:text/html;'||utl_tcp.crlf||utl_tcp.crlf);
    utl_smtp.write_data(mail_conn, sender||' would like to attend the POC training scheduled for '|| date_of_class);
    utl_smtp.close_data(mail_conn);
    utl_smtp.quit(mail_conn);
    EXCEPTION
    WHEN OTHERS THEN
    -- Handle the error
    htp.p('There was an error processing your registration. Please contact the site administrator');
    END;
    Hope this helps.
    -melissa

  • Want to run a cleanup - need to stop firefox until I do...how do I disable it until after the cleanup?

    Want to run a program called CCleanup. Firefox has to be shut down prior to using it. How do I turn it off and then on again after I run CCleanup?

    I do not use the product, but:
    Roboform 7 is compatible with Firefox 5: http://www.roboform.com/support/news
    You may be eligible for a free Roboform 6 to 7 upgrade: https://secure.roboform.com/php/pums/pums_usrlogfrm_upgrade.php
    <br />
    <br />
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • How to set focus on MessageTextInput after clicking submit button

    Hi All,
    I have submit button and MessageTextInput, by clicking submit button i have to focus on MessageTextInput control.
    can any one tell me how to do this?
    Thanks
    Laukik Pachanekar

    Hi,
    As the submit button is clicked redirect the page to itself using
    pageContext.forwardimmediatelytocurrentpage(null,false,null);
    Now in process request use:
    import oracle.apps.fnd.framework.webui.beans.OABodyBean;
    OABodyBean oabean = (OABodyBean)pageContext.getRootWebBean();
    oabean.setInitialFocusId("<id of messsage text input>");
    Thanks,
    Gaurav

  • How do I disable "play on single-click" from iTunes search?

    Just downloaded iTunes 12.1.1.4 (Windows 8, 64-bit) in order for it to sync with my iPhone.
    I see that now when I search for an artist, clicking on the album (or any search result, ***???) will start playing that album automatically. I don't want to play it. I want to look at it. When I want to play, I double-click.
    Can someone please explain how to get this back to the way it was? (Single click to view, double click to play.) It's driving me nuts.

    Plug in your iPhone. Choose your device in iTunes, then
    1. Choose the music tab
    2. Uncheck the music you don’t want from Playlists, Artists, Genres, and Albums
    3. In Manually Added Songs, choose the songs you don’t want and click Remove at the bottom right corner
    4. Click Apply and you’re done!!

  • How can I open a popup after clicking in a table cell using Web Dynpro?

    Hello,
    I am using Web Dynpro to create an application and I would like to click in a table cell and then a popup with confirmation appears.
    I already have a table with the information that is displayed in the browser. In fact, I just added a column with images that are print icons.
    My problem is that I don't know how to implement the method to set the action: when clicking on the print icon, a popup appears.
    Thank you very much in advance.

    HI Rafael,
    Please check the below sample code
      To quickly create dialog boxes of a standardized layout (for example, for the confirmation of changes to current data) you can call the CREATE_POPUP_TO_CONFIRM method of the IF_WD_WINDOW_MANAGER. You do not need to create a separate window for this. The dialog box is created automatically by the runtime.
    ●      The CREATE_POPUP_TO_CONFIRM method creates an object of the type IF_WD_WINDOW; the dialog box can be created using its parameters.
    method onactionpopup4_1 .
      data: l_cmp_api          type ref to if_wd_component,
            l_window_manager   type ref to if_wd_window_manager,
            l_popup            type ref to if_wd_window,
            l_text             type string_table,
            l_api              type ref to if_wd_view_controller.
      l_cmp_api        = wd_comp_controller->wd_get_api( ).
      l_window_manager = l_cmp_api->get_window_manager( ).
      insert `Data where changed` into table l_text.    "#EC *
      insert `Do you want to save?`        into table l_text.    "#EC *
      l_popup = l_window_manager->create_popup_to_confirm(
                    text            = l_text
                    button_kind     = if_wd_window=>co_buttons_yesnocancel
                    message_type    = if_wd_window=>co_msg_type_question
                    window_title    = 'Test: Popup to confirm'
                    window_position = if_wd_window=>co_center )."#EC *
      l_api = wd_this->wd_get_api( ).
      l_popup->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_yes
                   action_name       = 'YES'
                   action_view       = l_api
                   is_default_button = abap_true ).
      l_popup->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_no
                   action_name       = 'NO'
                   action_view       = l_api
                   is_default_button = abap_false ).
      l_popup->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_cancel
                   action_name       = 'CANCEL'
                   action_view       = l_api
                   is_default_button = abap_false ).
      l_popup->open( ).
    endmethod.
    The SUBSCRIBE_TO_BUTTON_EVENT method of IF_WD_WINDOW assigns the actions to the appropriate buttons
    Thanks
    Vinay

  • How to Change URL of BPA after clicking on Open Document in PO Notification for India Localization?

    In the Purchase Order Approval workflow notification , there are two links at the bottom of page under heading REFERENCES,
    - view PDF
    - open document
    So when we click on open document, the Oracle Forms loads and  purchase order screen will appear in the screen.
    In case of India localization, for standard PO the India local screen opens, where we can see the taxes by clicking on Taxes Button.
    But in case of blanket purchase agreements, when we click on open document link from the notification,we are routed to the application with the screen of global purchase order, instead it
    should go to Purchase Orders(Localization).
    We want to move to the India local po screen for BPA.
    So please let me know, where I can change the URL for Blanket Purchase Agreements.
    Regards
    Sandeep

    Hi kalyani,
    Please check my inbound plug code...tell me what changes wee need to do and where wee need to add this code...once again thanks for your reply..
    METHOD
    ip_inboundplug.
    **CALL METHOD SUPER->IP_INBOUNDPLUG
    ** EXPORTING
    ** iv_collection = iv_collection.
    DATA: lt_ivr_url_param TYPE tihttpnvp,
    ls_ivr_url_param TYPE ihttpnvp,
    lr_searchcustomer TYPE REF TO if_bol_bo_property_access,
    ls_searchcustomer TYPE crmt_bupa_il_header_search.
    CALL METHOD cl_crm_ui_session_manager=>get_initial_form_fields
    CHANGING
    cv_fields = lt_ivr_url_param.
    lr_searchcustomer ?= me->typed_context->searchcustomer->collection_wrapper->get_current( ).
    CHECK lr_searchcustomer IS BOUND.
    READ TABLE lt_ivr_url_param INTO ls_ivr_url_param WITH KEY name = 'sap-phoneno'. "'sap-phoneno'.
    IF ls_ivr_url_param-value IS NOT INITIAL.
    ls_searchcustomer-telephone = ls_ivr_url_param-value.
    CALL METHOD lr_searchcustomer->set_properties( EXPORTING is_attributes = ls_searchcustomer ).
    eh_onsearch( ).
    ENDIF.
    ENDMETHOD

  • How do I disable Yahoo BH after uninstalling Yahoo and clearing BHOs from registry?

    I have uninstalled a yahoo toolbar and other yohoo items listed in programs and features, I have run Hijack This and hunted for references to Yahoo BHO's, I have looked for yahoo BHO's in the registry and found nothing, but still, when my internet connection goes on the blink, Firefoxe redirects me to a web address that begins with:
    http://au.data.toolbar.yahoo.com/bh/v1/epa/?...
    It is annoying, and I'd be grateful for instructions on how to stop it.
    I am running Windows Vista SP2 and Firefox 6.0.2

    Hi gunnermac,
    You should take a look at the Knowledge Base article [[How to set the home page]]. Your homepage might have been changed by a particular site. Sites like MSN, Yahoo, etc have been know to ask to become your homepage.
    There are steps in that article to reset your homepage preferences to default. I would try that first to clear out any strangeness. If that works, you can try setting your homepage again to your personal preference.
    If Yahoo has been set as the default search in the search bar, you should take a look at the Knowledge Base article [[Search bar]].
    If the address bar search has been changed as well, you might want to take a look at [[Location bar search]].
    If that doesn't work you should look at the article [[Preferences are not saved]].
    Finally, your issue may be because you've been hit with some [https://support.mozilla.org/en-US/kb/Is%20my%20Firefox%20problem%20a%20result%20of%20malware?s=malware&r=0&e=sph&as=s#w_how-do-i-get-rid-of-malware Malware].
    Hopefully this helps!

Maybe you are looking for

  • How to restore macbook pro?

    I want to reset my macbook pro to change its keyboard settings. But i just want to know how to change the forward/backward,play/pause and volume keys to normal because they will not work now. HELP!!!!

  • Carriage Return ignored in ABAP Created HTML?

    We are in the pre-production box for an upgrade. We have ABAP source code that generates HTML logic. It worked fine in 4.6. The carriage return/line feeds are being ignored. I have already tried all the cl_abap_char_utilities=>NEWLINE                

  • SD: Service tax and sales tax

    Dear All My client has 3 plants in different states and in to erection activities. while configuring the service tax and sales tax i have created  single G/L accounts for the service tax and sales tax based on tax code. Now my client is asking how ca

  • APP RUN Based on document type

    HI SAP Gurus. While invoice posting(F-43/MIRO) User use Doc type KR & RE(may be different doc type instead of KR).. Now he want run APP for only KR document type....   Please give me solution......

  • After update Application manager shows app as not installed

    Hi, I've installed almost all creative cloud apps since day one and everything is ok. But, after the last Adobe application manager update, I see "install" beside each app in application manager. I installed two apps after the update (lightroom and a