How to disable a button when you click on another and vice versa in busy border?

Hi guys!

I have a question about the buttons!

I'm not an expert in coding, but I managed to create buttons with actions, but the question is how do I deactivate (deselect) a button by clicking on another and how to activate it when clicking on it?

I would really appreciate your help!

Thank you!

composition of loan:

button_1 = 0;

button_2 = 0;

in the click event of button 1

If (button_1 == 0)
{
button_1 = 1;
sym.getSymbol("button_1").play (0);  play anything, this button is

If (button_2 == 1)
{
sym.getSymbol("button_2").playReverse ();   Reset everything that made the other button
button_2 = 0;
}
}

in the click event of button 2

If (button_2 == 0)
{
button_2 = 1;
sym.getSymbol("button_2").play (0);  play anything, this button is

If (button_1 == 1)
{
sym.getSymbol("button_1").playReverse ();   Reset everything that made the other button
button_1 = 0;
}
}

Tags: Edge Animate

Similar Questions

  • How to get the event when you click Add another button in a table.

    Hello
    How to recognize the event in processFormRequest click on the button Add another line of the footer of a table?

    Suppose if the ID is anotherRow (I mean ID of the button to add another line of the footer)

    If I give if (pageContext.getParameter ("anotherRow")! = null)... its not recognizing the event that is returning null only...

    I want to perform certain actions when the user clicks Add another line of footer. Please let me know the details of how identify when add another line is clicked...

    Thank you
    Srikanth

    Hello

    If you have only one table with add_row_button, and then copy the following code works perfectly

    If (tableBean.getName () .equals (pageContext.getParameter (SOURCE_PARAM)))
    (& ADD_ROWS_EVENT.equals (pageContext.getParameter (EVENT_PARAM)))
    {
    ...
    }

    tableBean is the Handle for your advanced table, hope, it will help you.

    Kind regards
    Out Sharma

  • Show/hide elements - how to hide an image when you click on another

    I have a page of the library of photo with 10 pictures on it. I organized it where there is a large image on the left side of the page and 10 thumbnails of turning on the right. I put larger images in separate AP div tags hidden. I want the big picture is displayed when the user clicks on the corresponding thumbnail. This works well, but how to make the image of 'hide' when the user clicks on a different thumbnail.

    Can you help me?

    Here is my code:

    < div id = 'eau1"style =" position: absolute; " Left: 20px; top: 50px; Width: 630px; height: 491px; z-index: 100; visibility: hidden; "" "> < img src ="... / media/images/water/water1.jpg "width ="650"height ="500"alt ="eau1"> < / div >
    < div id = "water2" style = "position: absolute;" Left: 20px; top: 50px; Width: 630px; height: 491px; z index: 103; visibility: hidden; "" "> < img src ="... / media/images/water/water2.jpg "width ="650"height ="500"alt ="water2"> < / div >
    < table width = "100%" border = "0" cellspacing = "0" cellpadding = "0" >
    < b >
    < td width = "20" height = "20" > < table >
    < td > < table >
    < td > < table >
    < td > < table >
    < td width = "20" > < table >
    < /tr >
    < b >
    < height td = "20" > < table >
    < height td = '30' class = "copy18grey" > water Applications < table >
    < td > < table >
    < td > < table >
    < td > < table >
    < /tr >
    < b >
    < td > < table >
    "" < td width = "650" height = "500" rowspan = "5" valign = "top" > < img src = "... / media/images/water/water1.jpg" width = "650" height = "500" alt = 'eau1' > < table >
    "" < td = '100' height > < a href = "#" onMouseOver = "MM_swapImage ('Image12 '", '... / media/images/water/water1_thmb_over.jpg',1) "Mm_swapimgrestore" > < img src = "... / media/images/water/water1_thmb.jpg" name = 'Image12' width = "160" height = "100" border = "0" onClick = "MM_showHideLayers ('eau1',", 'show') ' onDblClick = "MM_showHideLayers ('eau1',", 'hide') "" > < /a > < table > "
    "" < td > < img src = "... / media/images/test.jpg" alt = "" width = "160" height = "100" > < table > "
    < td > < table >
    < /tr >
    < b >
    < td > < table >
    "" < td = '100' height > < a href = "#" onMouseOver = "MM_swapImage ('Image13 '", '... / media/images/water/water2_thmb_over.jpg',1) "Mm_swapimgrestore" > < img src = "... / media/images/water/water2_thmb.jpg" name = "Image13" width = "160" height = "100" border = "0" onClick = "MM_showHideLayers ('water2',", 'show') ' onDblClick = "MM_showHideLayers ('water2',", 'hide') "" > < /a > < table > "
    "" < td > < img src = "... / media/images/test.jpg" alt = "" width = "160" height = "100" > < table > "
    < td > < table >
    < /tr >
    < b >
    < td > < table >
    "" < td = '100' height > < img src = "... / media/images/test.jpg" alt = "" width = "160" height = "100" > < table > "
    "" < td > < img src = "... / media/images/test.jpg" alt = "" width = "160" height = "100" > < table > "
    < td > < table >
    < /tr >
    < b >
    < td > < table >
    "" < td = '100' height > < img src = "... / media/images/test.jpg" alt = "" width = "160" height = "100" > < table > "
    "" < td > < img src = "... / media/images/test.jpg" alt = "" width = "160" height = "100" > < table > "
    < td > < table >
    < /tr >
    < b >
    < td > < table >
    "" < td = '100' height > < img src = "... / media/images/test.jpg" alt = "" width = "160" height = "100" > < table > "
    "" < td > < img src = "... / media/images/test.jpg" alt = "" width = "160" height = "100" > < table > "
    < td > < table >
    < /tr >
    < b >
    < td > < table >
    < td > < table >
    < td > < table >
    < td > < table >
    < td > < table >
    < /tr >
    < /table >

    Show/hide behavior is not just for a single element.  With a single application of the behavior, you can display an image and 24 other people hide.  The trick is to keep by selecting the named items and their visibility, that is, to select "img1" and click display, then select "img2" and click Hide, etc.

  • I created a form to complete 4 page. I would like to place a button at the bottom of page 4 when you click inserts another copy of the form in the existing file. I have the user to have the ability to easily create muliple copies of the same 4 pages in

    I created a form to complete 4 page in Acrobat. I would like to place a button at the bottom of page 4 when you click inserts another copy of the form in the existing file. I want the user to have the ability to easily create multiple copies of the same 4 pages in a single file. It is possible with Acrobat? I use a PC.

    It is possible using models and JavaScript, but if it is to work with the player, users will need to use the desktop version (Windows/Mac) of 11 Reader or CD player. Here is a link to an older article which explains the basics: Planet PDF - a lesson in the templates for Adobe Acrobat

    Note that this is a bit outdated, but it should help you get started. If you have any other questions, post them in the Acrobat JavaScript here forum: JavaScript

  • How to hide a TextField when you click another button

    Hello!

    I was able to generate a TextField appear when you click a button, but when I click on another button, to display further information, I have still the first TextField shows.  I had a quick glance, but not managed to find something to help me get the first to disappear.  Can anyone provide ideas for this?

    The code I am using to display the TextField object is:

    Button10.addEventListener (MouseEvent.CLICK, fl_ClickToPosition);

    var fl_TF:TextField;
    var fl_TextToDisplay:String = "send the right projector/screen disply";

    function fl_ClickToPosition(event:MouseEvent):void
    {
    fl_TF = new TextField();
    fl_TF. AutoSize = TextFieldAutoSize.LEFT;
    fl_TF. Background = true;
    fl_TF. Border = true;
    fl_TF.x = 300;
    fl_TF.y = 100;
    fl_TF. Text = fl_TextToDisplay;
    addChild (fl_TF);
    }

    Thanks in advance

    use:

    Button10.addEventListener (MouseEvent.CLICK, fl_ClickToPosition);

    var fl_TF:TextField;
    var fl_TextToDisplay:String = "send the right projector/screen disply";

    function fl_ClickToPosition(event:MouseEvent):void
    {

    if(fl_TF&&fl_TF.parent) {/}

    fl_TF.parent.removeChild (fl_TF);

    fl_TF = null

    }

    fl_TF = new TextField();
    fl_TF. AutoSize = TextFieldAutoSize.LEFT;
    fl_TF. Background = true;
    fl_TF. Border = true;
    fl_TF.x = 300;
    fl_TF.y = 100;
    fl_TF. Text = fl_TextToDisplay;
    addChild (fl_TF);
    }

    Thanks in advance

  • How to open an image when you click in a Word.

    Im working in a demo for an interactive book for ipad with the Digital Publishing Suite > Folio Builder and I need to be able to open a specific image when you click in a Word. I have not found a tutorial which shows how to do this can point me to it someone in the right direction please?  THX so much

    Simply put a box above the word. Then convert the box to a button with the action "go State" that points to a specific State in MSO with your image. While an invisible button (no fill and no stroke). Probably the ASM must be first vacuum State.

  • Dynamically replace the spark icon button when you click on

    I'm looking to turn 'play' and the button icons 'pause' button in a video player, I developed.  It is a packaged application IOS so "ToggleButton" use is not recommended by Adobe. It is not mobile optimized.

    When you click on the button of the current icon should be replaced by another dynamically.

    How to do that generically - in essence, with traces hard coding to the assets inside the skin?

    I see a lot of examples where you can move an icon to a skin - like this http://blog.flexwiz.net/tip-easy-spark-icon-button/instance.

    But how did you then fail over to another icon on the fly when the user clicks on the button?

    Think I see how.  The value of the element of style "icon" in the AS button click handler.

    btnPlyPause.setStyle ("icon", "path_to_asset");

    Now just the logic of maintaining awareness of the State in which I am currently in - play or pause so I can choose the icon on the right.

    Cool.

  • Change the color of the text to the previous button when you click on a button

    Hi all

    If I said 7 buttons, each with text that changes color on turnover by using 'Up' 'Over' and 'Down' of the keyframes in the timeline buttons.  Is there a simple way to get the text of the button changes color when you click on it, stay that way, and then back to the original color once one of the other 6 buttons are engaged?

    The only thing I can get to prepare code pages for each button that changes the color of every other button regardless of whether it was active.

    See the code example would help a lot!

    Thank you!

    use:

    var previouslyClickedBtn:MovieClip
    var buttonA:Array = [content_mc.work_btn, next button and the rest of your buttons];
    var targetA:Array = [work_mc, etc.];

    for (var i: uint = 0; i<>
    .Ivar Button [i] = i;
    buttonA [i] .addEventListener (MouseEvent.CLICK, clickF);
    buttonA [i] .addEventListener (MouseEvent.MOUSE_OVER, overF);
    buttonA [i] .addEventListener (MouseEvent.MOUSE_OVER, overF);
    }

    function workOver(e:MouseEvent):void {}
    e.currentTarget.gotoAndStop ("over");
    }

    function workClick(e:MouseEvent):void {}

    {if(previouslyClickedBtn!=null)}

    previouslyClickedBtn.gotoAndStop ("up");

    }

    e.currentTarget.gotoAndStop ("down");

    previouslyClickedBtn = e.currentTarget;

    targetA [e.currentTarget.ivar] .gotoAndPlay ("enter");
    }

    function workOut(e:MouseEvent):void {}
    content_mc.work_btn.gotoAndStop ("up");
    }

  • Disabling a button when you press it...

    Hello
    I want to disable a button pressing (to be more precise the last command to run...).
    Although the syntax... the name of push button... etc, I've written are correct:
    set_item_property ('test.psh_button', Enabled, property_false);

    the error that arises is: ORA-06502
    When I comment on this line of the source code is executed without error...

    Can you think of another way to accomplish this duty...?


    Note: I use Dev/2000 v.6i with patch12
    Thank you
    SIM

    You cannot disable the current element, if you need to access a different element and then disable the button

    WHEN BUTTON PRESSED

    do_key ('next_item');  -- navigate to another item so we can disable the buttonset_item_property ('BLOCK.BUTTON_ITEM', enabled, property_false);  -- disable the button
    

    Otherwise... as said previously, you should be able to disable the button if you
    Set the properties to be nonnavigable by mouse and press

  • SE error message "Windows Explorer has stopped working" when you click on network and sharing Center

    Original title: Windows Explorer has stopped working when I click on network and sharing and also...

    Hello technical savvy people!

    Windows Explorer stops working when I click on network and sharing, and also when I click on system.

    -Otherwise, I rarely get this little automatic.
    But when I do she translates these windows endangered; and then I can't find my connection to the local network, or my IP address,
    nor know how my system!

    Can you suggest healings?
    Thank you for your attention,
    marlem388

    Hello

    Were there any changes (hardware or software) to the computer before the show?

    Perform the steps from the link below and see if it helps.

    Error: Windows Explorer has stopped working

    Hope this information helps.

  • Bin icon diseappear when changing my computer icon and vice versa

    Problem: When I change the icon of my computer icon changes, but bin icon diseappears and vice versa. Funny thing - in the folder "Desktop" icon all still exist with the new image.

    Help, what do I do that two icons visible not only in the "Desktop" folder, but also real desktop?

    Hi SigdisWotansson,

    See if clearing the cache of the help icon.

    How do I rebuild the icon Cache in Windows Vista and Windows 7
    http://www.Winhelponline.com/blog/how-to-rebuild-the-icon-cache-in-Windows-Vista/

  • How to disable direct sound when you use a plugin for guitar?

    I use the Waves GTR plugin for recording guitar in Logic Pro X, but because it puts a lot of pressure on the CPU, I tried he governs through a "bus" instead of having the plugin separately on every guitar track. The difference is that when I use the bus option, I can't seem to get rid of dry direct sound which is obviously very embarrassing. The only way for me to get rid of the direct sound is to use the RTM plugin on every guitar track that quickly causes the overload program when using several of these titles.

    Anyone know how to get rid of the direct sound when you use the alternative of bus for the guitar tracks?

    just at the exit of the guitar channel strip no output. This way you won't hear at the follow (because the dry track will not be transmitted to any output)

  • How to disable pop ups when you hover the mouse.

    Separated from this thread.

    There is nothing for windows 8... pop ups everywhere.

    Hello

    Please contact Microsoft Community.

    I would ask details you below to help you better.

    • Do you get pop ups when you're online or when you use other applications?

    If the problem is through the use of the internet, then I ask to perform the steps in the Microsoft Help article below and check if it helps.

    http://Windows.Microsoft.com/en-us/Internet-Explorer/IE-security-privacy-settings#IE=ie-11

    Hope this information helps you. If the problem persists, then answer to help us with the results for you the best.

  • Error "Could not load the page" when you click the backup and Restore Center

    Original title: Save reestore center problems

    OK so I need to restore my pc and when I click on the backup center and restoration he always says "Unable to load the page"... . How can I fix

    try to reinstall the backup files if you have a windows disk to use to reinstall or if your computer has windows factory preintalled windows, you could reinstall striehgt from your computer

  • SWF inside the Accordion widget Muse continues to play when you click on another tab.

    I placed a swf inside a Muse Accordion widget. I would like that to stop and return to the beginning, when I click on a button on the widget. Is this possible? Thank you... and besides, I can do a bit of copy and paste javascript, but I'm not a coder.

    Please try to use the composition with video container.

    Thank you

    Sanjit

Maybe you are looking for

  • Can not recover the laptop using the recovery disk

    Hello. I want to reboot my Toshiba laptop and I inserted the "Recovery" CD and you press F8 and went on the Help menu, and when the list came I clicked on one who said about to restart my PC and lose all the data and then I clicked on "Restart" and r

  • P50 boot Workstation Dock problems

    I have a P50 with i7-6820, M2000M, 16GB. If I have the laptop docked and boot restart or cold it won't start, fans throw high and the screen remains black. I can turn off or unplug the monitors when it's like this and it's not helping, the caps lock

  • Edge transport server

    Hello Please note that when I try to remove the edge transport server, I got an error to remove the Edge subscription, and when I try to delete it, I got the below error: [PS] Aspire c:\Windows\System32>Remove-EdgeSubscription-identite - ex01.aspire

  • Windows XP cannot find NTLDR on PC Windows XP-Win7 dual-boot

    I have a PC that has been working fine until yesterday.  I booted into Win7... and he locked himself more tight as a drum... has not identified ctrl-alt-del, esc or a right click on the start bar.  The only option was to make a difficult stop holding

  • Received a phone call from someone who said he could help me because his company had received the error messages from my computer - XINFINITY?

    So I recently received calls from this guy who claims to be with Microsoft Error Reporting service, but I thought something was fishy when he couldn't tell me anything specific on my computer, which he would be able to know right away. Also, he could