If the else statement when click the button

Hello all;

I ran into a project, I'm having a problem on how to encode.

Scenario.

You have 3 States of a button.

MouseOver

Mouseout/mouseouthandler()

Mouse click

Now.

When the click of the mouse is done, I need to do the following.

Under the MouseOver and mouseout/mouseouthandler().

IF THEN MouseClick

(Check if the button has been clicked or not)

Preserve the State of the button

ON THE OTHER

(If has not clicked on the button, then change its status)

Change the State of the button

How do I d code this?

Thank you

Wayne

Update of productivity: I added a second file (same link: see previous post).

Productivity means that I then use a symbol.

  • ==> right click and then convert to symbol.
  • use ==> drag and drop library to the stage.

Tags: Edge Animate

Similar Questions

  • How to prevent the menu instance when click a button?

    Hi all

    My screen has added a button and I put in place for processing when the user clicks on this button.

    When I click on this button, my treatment of click event code has will work perfectly. But after the click, a menu always occur an inconvenience to the user. This menu contains the elements 'Application Switch' and «Full Menu»

    How to prevent this, thank you!

    use CONSUME_CLICK

    ButtonField sample = new ButtonField("Test",ButtonField.CONSUME_CLICK);
    
  • Script to make the button stay on State hit until the other is clicked!

    Hello

    Got a little problem that I can't solve.

    I have a line of 5 buttons including each links to a different page. These buttons are currently in a clip.

    However, I would like to create an effect where when a user clicks on it remains highlighted. that is still on the State of success, until the user clicks one of the buttons.

    I would have thought it would be somethink that I could find online, but carnt seem to find anywhere.

    I found the code to make a point to stay on when you click on it, but it works on its own in the entire movie clip, so it has no effect when you click on other buttons on!

    Have tried the script below, but I'm sure that this will not work because it is not a link to the other buttons at all.

    on {(press)

    if (this ._currentframe == 1) {}
    this.gotoAndStop (2);
    { } else {}
    this.gotoAndStop (1);
    }
    }
    Thanks for any help!

    You are welcome.  Here is a slightly condensed version of the same thing...

    var lastBtnUsed;

    Btn1.onRelease = btn2.onRelease = btn3.onRelease = btn4.onRelease = function() {}
    processBtns (this);
    }

    function processBtns (newBtn) {}
    If (lastBtnUsed! = null & lastBtnUsed! = newBtn) {}
    lastBtnUsed.gotoAndStop (1);
    }
    lastBtnUsed = newBtn;
    newBtn.gotoAndStop (2);
    }

  • When asked "do you want to enable Network Service list? I continue to by clicking on the button "Activate this", and yet I am not able to see the activities or connections to all networks.

    When asked "do you want to enable Network Service list? I continue to by clicking on the button "Activate this", and yet I am not able to see the activities or connections to all networks. My internet works fine, I just can't see if I am connected or not. Help?

    original title: list of Network Service does not illuminate

    Hi SikDude,

    Please use the Forum of the community for Vista.

    Opening of services by typing services.msc in the search bar and find the list of Network Service. Under properties, set it to automatic.

    Please let us know if we can do something else.

    Matt
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Unable to connect to the Internet using Auntie Photon, it shows the device has been disconnected or is not available when clicking on the button connect

    Original title: Auntie Photon

    Hi all

    I use Auntie Photon on windows platform 8, and it shows the device has been disconnected or is not available when clicking on the button connect. For this reason, I am not able to use internet on my Laptop.I also in contact with the customer service and they told me to take the laptop to any engineer to solve this problem.

    Help, please.

    Hi Varun,

    Thanks for posting on Microsoft Community. I understand that you are not able to connect to the Internet using the dongle Auntie Photon. Let us work together as a team and try to get this fixed number.

    Please help me with the following information related to this issue:

    1. You have installed the required software on your computer which came with Auntie Photon?
    2. Do you see an error or exclamation point in Device Manager when you connect Auntie Photon dongle? See the steps to check:
    • Press Windows Key + X.
    • Select Device Manager.
    • Check if there is no error or exclamation point under Auntie Photon.

    This problem can occur if device drivers are not get detected or due to missing/corrupt device drivers.

    Please follow the steps mentioned below:

    Method 1: Run the hardware troubleshooter

    The convenience store is an automated tool that checks the hardware attached to the computer for known problems and provides details on how to correct them. Follow these steps to run the troubleshooter.

    1. Press Windows key + W on the keyboard.
    2. Type the Troubleshooting in the search bar and press Enter.
    3. In the Troubleshooting window, click show all in the left pane.
    4. Click hardware and devices.
    5. Click right on material and devices and and select run as administrator.
    6. Click Next and follow the on-screen instructions to complete the process troubleshooting.

    If the troubleshooter could not find and fix the problem, I would suggest trying the following method and check.

    Method 2:

    Note: Make sure that the Auntie Photon dongle is plugged.

    Step 1: You can try to uninstall and reinstall the drivers of Auntie Photon and check. Follow these steps:

    1. Press Windows key + X on the screen.
    2. Select Device Manager.
    3. Expand the network adapter and right click on driver and select Uninstall.
    4. Restart the computer.
    5. Windows will automatically load the drivers.

    Step 2:

    You can also try to launch the Windows updates and install all the updates that are available including the driver in option and the updates of the firmware.

    Windows Update: frequently asked Questions

    You can also get in touch with Auntie Support and check the updates to driver for Windows 8.

    Please answer us on the State of the question to help you further.

  • can you put a line autour just the button to active state when you land on this page

    I have a site and I use a very subtle color for my active state. Can I put a line autour just the button to active state when you land on this page? I thought it would be useful to highlight the button without killing the color.

    Site = www.nelsonatnite.com

    Hi Nelson,.

    Yes, you can STROKE around the button of the active state. You must select the button, then go to the States, click on 'Active' and add STROKE.

    Kind regards

    Aish

  • Back on the tree Page when click the button cancel on a Page called

    Hello

    I develop an application that uses the Application Express 4.1.1.00.23, I developed a tree similar to the APEX tree, Example of Application of database (i.e. reports > shaft of product).
    When I click on a specific node of the tree, it navigates to another page in the existing application (such as tree of the database Application example).

    Example of Application of database does not return to the called Page (so called from reports > shaft of product).

    I have an obligation to come back on the tree of the Page when I click the button cancel on a Page called.

    Please advice. Thanks in advance.

    tnvrahmd wrote:
    Hi Rohit,

    Thanks for the reply. If you look under query (query Sample Application tree), clicking on a tree node, it opens the page 3, 6 or 29 based on link_type = am ", 'C', 'P' or 'o' and the constructed url."

    In this case just a tree node gets selected and should capture the number of the called page.
    As there are 4 urls and 3 pages being called, how do I capture the page given in hidden element or application,

    Thank you.

    I understand the code of the tree. But I'm not clear on what you mean by "How can I capture page reset hidden element or application". Do you mean that you need to store the page in a hidden page element numbers? If so, you can set the value in the URL that you generate in the tree. For example,.

     case when link_type = 'M'
                 then 'f?p='||:APP_ID||':3:'||:APP_SESSION||'::NO:RIR:P1_HIDDEN_PAGE_ITEM:'||3
                 when link_type = 'C'
                 then 'f?p='||:APP_ID||':3:'||:APP_SESSION||'::NO:CIR:IR_CATEGORY,P1_HIDDEN_PAGE_ITEM:'||name||','||3
                 when link_type = 'P'
                 then 'f?p='||:APP_ID||':6:'||:APP_SESSION||'::NO::P6_PRODUCT_ID,P1_HIDDEN_PAGE_ITEM:'||sub_id||','||6
                 when link_type = 'O'
                 then 'f?p='||:APP_ID||':29:'||:APP_SESSION||'::NO::P29_ORDER_ID,P1_HIDDEN_PAGE_ITEM:'|| sub_id||','||29
                 else null
                 end as link 
    

    where P1_HIDDEN_PAGE_ITEM is your element on the page where you have the tree.

    >

    -Application of tree-
    with the data as)
    Select'm ' as link_type,.
    NULL as parent,
    "All categories" as id,.
    'All categories' as the name.
    NULL as sub_id
    of demo_product_info
    Union
    Select distinct('C') as link_type,
    'All categories' as a parent,.
    category such as id,
    category name,
    NULL as sub_id
    of demo_product_info
    Union
    Select 'P' as link_type,
    parent category,
    TO_CHAR (product_id) id,
    product_name as the name,
    product_id as sub_id
    of demo_product_info
    Union
    Select 'o' in the link_type,
    TO_CHAR (product_id) as a parent,
    NULL as id,
    (select c.cust_first_name |) ' ' || c.cust_last_name
    of demo_customers c, demo_orders o
    where c.customer_id = o.customer_id
    and o.order_id = oi.order_id). ', ordered ' | TO_CHAR (OI. Quantity) as the name.
    order_id as sub_id
    of demo_order_items oi
    )
    Select case when connect_by_isleaf = 1 then 0
    When level = 1 then 1
    of another-1
    end the status,
    level,
    name as title,
    NULL as an icon,
    ID as the value,
    'See' as ToolTip,
    -case when link_type = am'
    then ' f? p ='|| : APP_ID | » : 3 :'|| : APP_SESSION. ': NO:RIR '.
    When link_type = 'C '.
    then ' f? p ='|| : APP_ID | » : 3 :'|| : APP_SESSION |':NO:CIR:IR_CATEGORY:'
    || name
    When link_type = 'P '.
    then ' f? p ='|| : APP_ID | » : 6 :'|| : APP_SESSION |': NO::P6_PRODUCT_ID:'
    || sub_id
    When link_type = 'o'
    then ' f? p ='|| : APP_ID | » : 29 :'|| : APP_SESSION |': NO::P29_ORDER_ID:'
    || sub_id
    Another null
    end as link
    from the data
    Start with the parent is set to null
    connect by prior id = parent
    siblings arrested by name

  • With the help of A6, must create menu screen which allows the user to click a button creates a branch to other screens and return to the main menu. When returning to the main screen on which button will be gray or inactive.  How can I do this?  I created

    I am trying to imitate a piece of equipment.  I need the user to be able to click on the specific buttons that have the user to another or screens.  After viewing these screens that will be the user to the main screen where the user which buttons were pressed and which still needed to be pressed.  I create buttons image with the 3 States - who has worked except when the user returns to that slide is reset to zero, and if the user does not see the 3rd State of the button.  How can I get this 3rd State of stay after the user returns to the main screen?

    You can not 'keep' a State, that's what I said in my first answer: "you can create an image with that look of '3' State, make it invisible and show it with the same action when a button is triggered. You will need to insert extra that third picture, first hide it out and make it visible to the advanced action, which I explained. I called this additional 'Done_one' image in the example. The three States you're talking about are in a totally different way to Captivate: for down, more and up-state. You can just tell Captivate to keep a low State, it will be down when the button is pressed. Where my explanation of an additional image.

    No need for all the variables. Looks like you have a lot to learn about variables and advanced actions. I don't see another easy way to achieve what you want. It is not so difficult, tons of examples on my blog.

  • Make objects appear on stage only when the button is clicked?

    In CS5, I want to have a frame with buttons that when clicked, reveal the different graphic symbols or clips video (I don't know what to use?). Symbols will be revealing text and graphic information and could fade when you click on, however will not move or do something else.

    1. is it better to do these graphcis and text in video clips or graphics?

    2. how they hide on the scene up to what a user clicks on a button to reveal?

    3. with the help of Code snippets, which option will do this job?

    Thank you!!!

    to turn on/off:

    yourbutton.addEventListener (MouseEvent.CLICK, f);

    yourmovieclip. Visible = false;

    function f(e:MouseEvent):void {}

    yourmovieclip.visible =! yourmovieclip.visible;

    }

  • button refresh Foxfire did not work when clicked on for the past two weeks

    button refresh Foxfire did not work when clicked on for the past two weeks

    Hi, see controls customize Firefox, buttons and toolbarsand click on restore default settings.

    If this does not help, Try Firefox Safe Mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • My Firefox interface is messed up. When I hover over or click a button, it becomes all the pixlated, blocks move and lines appear around the buttons.

    When I hover over or click a button in the toolbar it is messed up. Blocks, or more like pixels, appear on the buttons. They are white and they move. Few black lines appear too around the buttons. I tried to uninstall and re - download Firefox, a complete reset, etc. Nothing has worked so far. To see the pictures of the problem to use this URL (it will take you to Imgur): http://imgur.com/a/LXHQg

    Hi, try updating your graphic driver - this should be the correct link for your system: http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y & DwnldID = 22375

  • How is it when I click on the buttons to exit, or the new tab open or any other button button are not repsond? I have to close the program down to get a new page.

    I can't get anything to respond when I click on the buttons. I can't go out the window, the back or forward buttons are unresponsive ect... I have to get out of the whole thins just to get a new page. I have uninstalled several times but it didn't seem to help.

    Hello

    Please check if this occurs in Safe Mode

    Extensions of the issues

    Troubleshooting Extensions and themes

    Uninstalling the modules

    Uninstalling toolbars

  • My DVD player does not open when I click on the button

    Hello

    I hope someone can help me.
    My DVD player does not open when I click on the button.

    I tried clicking on eject on the DVD drive icon in my computer and it comes up with an error message.
    I think I deleted the cookies the other day. Who would have something to do with the problem?

    Any help would be greatly appreciated that I really don't want to send my phone to a technician.

    Hello

    Try to manually open the CD/DVD drive.
    Near the eject button, you will find a small hole.

    You can use a small object like staple and could push gently into this hole.

    Usually, this should help to open the drive manually.

  • How to stop up to generate a waveform of the entire cycle when click on the stop button

    Dear engineer OR,.

    I have generated three AO signals to control my scanner and data acquisition. Two ramp signals is to control the galvanometric scanner (x and y). A TTL signal is to trigger the acquisition of data. Whenever I click on stop, the ramp stops every time that it is when the button is clicked, what causes a voltage jump when will resume the program again because the ramp will start in the place original (this jump of fast voltage can damage the galvanometric scanner). Could you please give me some suggestions on how to stop after only a waveform of cycle whol's over? The VI I used is attached. The FLIM control.vi is the main vi include Subvi Galvo control.vi

    Thank you very much!!

    Hello, dgql!

    From a point of view purely programming, there are a few ways you could implement this.

    (1) create a conditional stay:

    You can add features to the code such that, once you reach the stop button, the code checks the value of your signal before you actually stop the VI. In pseudo-code: "If the signal is > 0 and less than a certain value, stop." Otherwise, keep the control of signal until the value lies in this range. »

    (2) to reset the signal from the ramp at each start of your VI. This may or may not work with your application, depending on whether you must have the previous value of the ramp carried over.

    Let me know if these are of no help!

  • Is there a way to put a button on the front panel only when clicked gives a pop-up dialog box with more information on it?

    Hello world

    The simulations that I create are very simple themselves but are intended to use in the classroom to help students learn more about the proven theory.  I hope to be able to place a 'help' or 'other info' button on the front panel that rises wants more info on theory, they can click on it and a pop up appears with background information on it.  It should also have a second button to close it and return to the main façade.  Can anyone lead me in the right direction?

    Thank you!

    Use a structure of the event on the main vi when the button is clicked, launches a "help" void / vi. On the inside of the Sub vi (with the set properties to load the front when it is called, of course), use another structure of the event to wait until then click on the button of the Subvi, you can return to the main VI. Do you need assistance on using the structures of the event?

    Charles

Maybe you are looking for

  • Download recovery

    I accidentally activate my recovery partition, and now everytime I open it goes to the recovery section, I can't open my windows and the bad news is the recovery of original settings I disabled I can't click on it, what is the best option to fix this

  • peaks of waveform AVERAGEING

    I take the data resulting in a form of variable amplitude sine wave, as seen in the joint. I want to normalize the wave to have an amplitude equal to the average of the peaks but cannot figure out how. If possible, I'm hoping to get a solution with c

  • Enter 'My videos' in XP MCE 2005 causes ehshell.exe operate at 100% cpu.

    I am running XP, MCE 2005.  Media Center works well EXCEPT when I go to "my videos".  When I do the computer slows down to almost completely stopped.  The ehshell.exe file begins with almost all of the cpu by itself - Power Manager tasks shows the CP

  • Update for Windows XP Media Center Edition 2005 Rollup2

    Received the following error message when you try to connect to XBox Live. "There is a problem with the installation of Windows XP Media Center Edition 2005.  Uninstall the update for Media Center Edition 2005, and then re - install the update from t

  • 'Error 2 (Windows error 5)' - while reinstalling iTunes

    I have Windows Vista Home Basic on an eMachines t5082. I just bought an iPhone 4 two days ago, so I downloaded and installed itunes. (As a backdrop, I had iTunes on my computer 3 years ago and has never been able to sync my old iPod friend on this on