Modal alert waiting for the user, click

Hello

I used program InDesign plugins in C++. There are modal alert with YES/NO buttons, which stops execution until the user presses one of the buttons.

Now to my question. I know that this alert does exist here in Flex. Flex shows alert and continues with the execution of the following code. I know that there is closeHandleFunction that I should use to deal with. ActionScript is the language of piloted by events and we should use ActionScript in this regard. So my question is perhaps more hypotetical. Is very bad idea to create this category MyAlert who wait in a loop up to push the button? You know, sometimes, it would be useful to have this alert.

Thank you

pyso

There is probably a better way to do this. I think that spring actionscipt provides tools to do such things, and it would be nice to be able to do it without tips...

In any case, I was thinking about an alternative, something like this:

private var i:int;

private function lookForDisplayObjectsToRemove():void {
     for ( j:int = i ; i < whatEverYouIterateOn.lenght ; j++ ) {
          if ( /* condition to remove object here */ ) {
               i = j;
               var popUp:YourYesOrNoPopUp; // pop your yes or no alert here
               popUp.displayObjectToRemove = whateverYouIterateOn[j];
               popUp.functionOnYesClick = removeDisplayObject;
               popUp.functionOnNoClick = lookForDisplayObjectsToRemove;
               return;
          }
     }
}

private function removeDisplayObject( object:DisplayObject ):void {
     // remove object here
     lookForDisplayObjectsToRemove();
}

Tags: Flex

Similar Questions

  • HP laserjet 1022 does not wait for the user to turn the pages when printing double-sided

    My Hp laserjet 1022 printer working properly for years.

    So far, when he executed more paper he tried a couple of times to get more paper and then stops with a message on the PC it is out of paper.

    Very annoyingly, this has changed recently, now when it is out of paper, he tries a couple of times to get more paper and watch the message on the PC, saying that it is paper and then again, try a couple of times to get more paper and again shows the same message on the PC and him back... This continues to go on and on.

    It's especially annoying when trying to print double-sided. Before he used to stop and ask you to turn the pages to print the other side. Now the previous behavior overrides the break to turn the pages and keeps it will try to get more paper. As now, it does not wait for the user to turn the pages, in general it spoils the impression out by getting another paper that is not what I wanted, he drives me crazy! It's really hard to print anything double face now.

    All solutions?

    Operating system is Windows 7, I just downloaded and installed the latest driver for this printer "2013-01-09, Version: 20120918" and I get the same behavior. In the properties of the printer that I put some State Messages to Off and at least I don't get the full windows message screen poping up every time the printer is trying again to get more paper. I have not found all the other parameters that may affect this behavior.

    Help!

    Hello

    I solved the problem! I found the original CD for the printer. I uninstall the current driver and then install CD and now when the printer is out of paper trying to get paper a couple of times and then stops, as it used to be.

    Thanks for your help.

    Martin

  • Wait for the user to select the OK button

    For my application, I can't use a simple MessagePopup where the user must select the OK button to continue.

    I created a new Panel with just a text message and an OK button to act as a MessagePopup.

    When I call InstallPopup and the box pops up that I have to wait until the user selects OK before continuing as the MessagePopup.

    How can I accomplish this?

    Thank you!

    John W.

    The popup has no effect on the mouse: it can happen that you have a function that manipulates the cursor before the popup is displayed? A SetWaitCursor (1); would be sufficient.

  • HumanTaskActivity does not wait for the user to act

    Hello

    Proc2 I stole the activity of each of the branches, I invoke another process called PROC3 from the e-mail as PROC3 entry.

    PROC3 contains only HumanTaskActivity.

    By the time wherever I start my PROC2, he calls PROC3, but in HumanTaskActivity PROC3 does not wait for the response, it gets full without sending email.

    Any help would be very handful for me.

    Thank you
    VIKI

    VIKI,

    You can run just PROC3? It work? Except that there is a problem with the assignment of the user / group in this task? Users of human tasks has the correct permissions / roles?

    Marc

  • Make a phone call by program - the wait for the user to input?

    Hello

    I use the following code to place a phone call from my application:

    Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, new PhoneArguments(PhoneArguments.ARG_CALL, phoneNumber));
    

    and it seems to work, at least in the Simulator.  However, when this line running the Simulator dials the number immediately.  Peux-I rather the phone displays the number and wait that the user press 'call '?

    I know that I can warn the user with Dialog.ask (...), and if it's the only thing to do I will do.  I'm just curious to know if I can get the phone to do so.

    arkadyz wrote: instead can have the phone displays the number and wait that the user press 'call '?

    No, this is not currently supported.  You can use a dialog box inside your own application as you describe.

  • How can I get the vi to wait for the user to select a COM port?

    It is a problem when I run the application.  If the selected COM port is not currently connected to the material, then I get an error.  I can then select the COM port, rerun the application and everything is fine.  But I want the application to run when it is called by the user and wait until the correct COM port is selected.  I'll settle for any COM port selection and put the responsibility for the adequate selection on the user.  Thank you all.

    Of course.  It works fine now.  Thanks MikeS81!

  • Waiting for the user?

    Is it possible to have a dialog box that comes with (with an "Ok" button, for example) in the middle of a script that allows the user to work in the background before pressing it to execute the rest of the script?

    I just put a footprint in the the first round document metadata because it not there the first round. In the second inning of his there so I remove and run the second process. In this way, you can run it on any document and run it on more than one open document...

  • Pause until the user clicks

    This follows a question I asked earlier. On each slide I REPLAY, BACK and intelligent forms that FOLLOWING the user can click on.

    I've now set up so that the user must click on a button to go to the next slide. I did it by the NEXT smart form is inactive for the last seconds of the blade until it locks. Now my smart shape of BACK and my REPLAY intelligent forms do not work if they are clicked in the last seconds of the slide when the break until the NEXT clicked smartshape is active.

    How can I set up so that the reading and back buttons function always even when the blade is suspended waiting for the user by clicking the next button?

    You guys are amazing... Thanks for all the help I've gotten already!

    For all but one of the smart shape buttons, deselect the Properties tab > Timing > break after option.  This means only one of the shape buttons is a break from the timeline.  Others will be active all the way until the end of the slide.

  • Wait for the entry?

    Hi all

    I need to create a custom entry dialog box and the problem I encountered is that I can't figure out how to make my request to wait for the user to complete the entries in the framework. When you use a JDialog or JOptionPane application will stop running and wait for the dialog box to close. My question is how to do something similar without using a JOptionPane or JDialog. I just can't figure out how to get the same effect by using a JFrame or other component. I know I could just use a JDialog or JOptionPane to get input from the user, but I'm just curious to know how I can stop running and wait for the entry as the JOptionPane allows you to do, but without using a JOptionPane or JDialog.

    Thank you for your help :)
    Nathan D.

    -----
    : Edit:
    I forgot to mention that the reason main I avoids JDialogs is I need the entry dialog box to be internal not external application I use mode exclusive fullscreen. And a JOptionPane does not allow me to add the other components too it such as JLabels and other GUI. I just need a way to get input from a component or internal window and wait for the entry as a JOptionPane or JDialog.
    -----

    A NBS are:

    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    
    
    
    public class Main extends JFrame implements ActionListener {
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            new Main();
        }
    
    
        JButton go = new JButton("Show custom input dialog");
    
        public Main() {
            setSize(300,150);
            setLocationRelativeTo(null);
            setLayout(new FlowLayout());
            go.addActionListener(this);
            add(go);
            setVisible(true);
        }
    
        public void actionPerformed(ActionEvent e) {
            InputDialog d = new InputDialog();
    
            /*
             * Here is the problem it is necessary that I create a
             * custom input dialog to allow further modifications however
             * i'm not sure how to wait for the user to enter text and press
             * continue in that input dialog. Unlike JOptionPane the code executes
             * before the user presses continue. My question is how do I wait for the user
             * to press continue in the InputDialog before I call d.getString(); without making the main
             * application unresponsive.
             */
    
            String returnValue = d.getString();
            System.out.println("return value "+returnValue); //will be null or empty because application doesn't wait for input.
        }
    
    
        class InputDialog extends JFrame implements ActionListener {
            JTextField f = new JTextField();
            JButton go = new JButton("Continue");
    
            public InputDialog() {
                setTitle("Custom Input Dialog");
                setSize(300,150);
                setLocationRelativeTo(null);
                setLayout(new FlowLayout());
                f.setPreferredSize(new Dimension(100,25));
                go.addActionListener(this);
                add(f);
                add(go);
                setVisible(true);
            }
    
            public void actionPerformed(ActionEvent e) {
    
            }
    
            public String getString() {
                return f.getText();
            }
        }
    }
    Published by: neptune692 on January 3, 2011 13:25

    neptune692 wrote:
    .. a JOptionPane does not allow me to add the other components too it such as JLabels and other GUI. ..

    Of course, it does!

    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    
    public class DumbNameMain extends JFrame implements ActionListener {
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            new DumbNameMain();
        }
    
        JButton go = new JButton("Show custom input dialog");
    
        public DumbNameMain() {
            setSize(300,150);
            setLocationRelativeTo(null);
            setLayout(new FlowLayout());
            go.addActionListener(this);
            add(go);
            setVisible(true);
        }
    
        public void actionPerformed(ActionEvent e) {
            JTextField f = new JTextField(10);
            JButton go = new JButton("Continue");
            JPanel p = new JPanel(new FlowLayout());
            p.add(f);
            p.add(go);
            JOptionPane.showMessageDialog( this, p );
    
            String returnValue = f.getText();
            System.out.println("return value "+returnValue);
        }
    }
    
  • Password for the user: ASADMIN is not configured error clicking on the deployed webservice

    Hello

    By clicking on the deployed webservice, getting the error below.

    Password for the user: ASADMIN is not configured.

    As mentioned in the doc https://support.oracle.com/rs?type=doc & id = 1311068.1 followed the steps.

    After recording there is a warning stating"

    "Role data updates will be not visible in the application until the following processes are started: Workflow background engine.

    Then I restarted the Workflow Agent listening Service. But when I integrated soa gateway connection again I get the same error as "password for the user: ASADMIN is not configured.

    Can someone help me with the problem?

    BR

    Magali

    When you run this script, make sure you pay attention to the case of your users.

    So, when running:

    Ant f $JAVA_TOP/oracle/apps/fnd/txk/util/txkSoaConfigUtility.xml addASADMINToFNDVault

    Make sure you use 'ASADMIN' and NOT 'asadmin' when it prompts you for the username ASADMIN.

  • Delete record behavior does not wait for the "submit" button

    I have master / detail pages as a whole.  Of all the detail, there are links to delete or update a record.  When I click the link to delete the folder, it goes to the confirmation page with the correct record.  Now, when I add the behavior delete record server and a button "submit", it is what is happening.  As soon as I click on the link to access the Delete Confirm page, deletes the record and the page redirects to the page that I put in the server behavior.  It does not display the confirmation page and does not wait for me to hit the button confirm.  The page runs and removes the page from the database.

    How can I get to wait until I hit the submit button?

    You must surround your request deletion with an "If" statement seeking a confirmation variable, then when the user clicks the confirmation link, you can pass the necessary variable and the ID of the record that the delete request is pregnant.

    As an alternative, you can use a JS alert fuction to ask if they are sure they want to delete the folder, and then delet allwo runs after confirmation to the user. To do this, you can use code like this...


    onclick = "return ('are you SURE you want to DELETE this record? confirm")">

    --
    Lawrence * Adobe Community Expert *.
    www.Cartweaver.com
    All Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF
    www.twitter.com/LawrenceCramer

  • How to make a slide to wait until the user has answered a question correctly, even after activation of a smartshape?

    Background:

    I created a questionnaire in which the user must answer each question correctly before to proceed to the next slide. That's what I did:


    • Set preferences Settings > required > respond to everything - the user must answer each question to continue
    • Set the number of attempts at the level of the question to infinity
    • Made the Next invisible button and disabled the PlayBar

    In this way, the user can proceed to the next slide in the issue with the submission process - and, since attempts are endless, this means that after having answered the question correctly.

    Current objective:

    I want the user to be able to click on a prompt for a hint. To configure this, I did the following:

    • Created a smartshape titled 'click_for_hint' to display the text that says: "click here for a tip.
    • Created a smartshape labelled 'hint' text display
    • Show "hint" success value "click_for_hint".

    Now, when the user clicks on the text that says: "Click here for a hint," the suspicion appears. So it works - great! However, once the indicator is activated, I would like to for the user to continue endless attempts until respondent correctly to the question... and then only after answering correctly, proceed to the next slide.

    The problem:

    If the user has submitted one or more wrong answers, and then activates the indicator, the slide just waiting until the user has answered the question correctly. Instead, it will be set in playing, proceeding to the next slide. I tried the smartshape 'hint' to take a break on the success of adjustment, but it does not work.

    Is there a way to make the slide to wait until the answer to the question correctly before moving on to the next slide, even after the indicator has been activated?

    Are you aware that your required parameter can cause problems, the blocking of the user? It is also completely useless because you have unlimited attempts at the level of the issue and hid the next button (hope, you don't need review, otherwise, I would recommend not to hide this button but slide it under the Clear key: the Question slides in Captivate - Captivate blog)

    The index problem is related to the fact that a simple gesture going out of reading. I would like to see the timeline of the slide, to compare the points of suspension form and the question slide button. And maybe this blog can also clarify difference between simple/advanced: Why choose Standard Simple action?-Captivate blog

    Regarding the buttons on question slides form: buttons on slides of Question/Score of Captivate 6?-Captivate blog

  • How to make a text field required at run time when the user clicks on the box?

    I had a form, there are several checkboxes fields and the text associated with the check boxes. If the use clicks on the checkbox then partner

    text fields should become mandatory. I tried the change event and the click event of the boxes. There is error in the onChnage event and I got some odd results in the click event on. Sometimes, if the user clicks the check box, then for the 1st time the field is not required, then the user onclicks the box and when the user clicks the check box for the second time the field becomes necessary, but if I turns off the option highlight the field and selects the field becomes necessary even if the user onchecks I am totally confused! To add that I have also written an incorrect code always I reached the goal? How it can be possible. I write the codes below, please help me because I am working under a deadline from the client.

    onChange event:

    var = this.boundItem (xfa.event.newText) newVal;
    if(newVal == 0)
    {
    xfa.resolveNode ("form1. Subform0.Subform1.Subform9.Subform10.Table48.Row4.Purchasecost3_1'). validate.nullTest = "disabled";
    }
    on the other
    {
    xfa.resolveNode ("form1. Subform0.Subform1.Subform9.Subform10.Table48.Row4.Purchasecost3_1'). validate.nullTest = 'error ';
    }*/

    For the onClick event:

    var a = xfa.resolveNode ("form1..") RawValue Subform0.Subform1.Subform9.Subform10.Table48.row2.CostItemRecovere d_OnlyEnergyCharges");
    App.Alert (a);
    if(a == 0)
    {
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck__L1_1").validate.nullTest = 'error ';
    }
    if(a == 1)
    {
    xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck__L1_1").validate.nullTest = "disabled";
    }

    Please help someone!

    Hello

    You may need this resolved at this point, but here are a few tips.

    An example of a loop in a dynamic array is here: Re: how to make invisible/visible or hidden columns with checkbox?

    You are usually not necessary to resolve the nodes, especially when the script object is in the same table as the target objects.

    For example if the table was not static your script could be simplified:

    if (this.rawValue == "1")  // this object is in Row2
    {
         Row4.ComplianceCheck_L1_1.mandatory= "error";
    ...
    }
    

    However because you will be to loop through all the rows in the table repeatable instances / then you need to resolve the nodes. Take a look at the example above.

    In your script, you have to Row8 Row4. I don't know if this is repeatable or just some of them. If we take Row4 as being repetitive, then you can apply the following to all repeatable lines.

    var vRow4 = Table48._Row4.count;
    console.println("Row4: " + vRow4); // You can delete this or comment it out after testing
    
    if (this.rawValue == "1")  // this object is in Row2
    {
         for (var i=0; i
    

    I have not tested, but it should be close to work.

    Good luck

    Niall

  • Report - Warning Message When the user clicks on the link with the value 0

    Hello

    I have a report with several areas, for example. Year, high priority project manager, County of medium priority project, project manager of low priority.
    I used column attributes to bind the data of the report on page 22.



    Now, some cells in the report have 0. Isn't it possible that when the user clicks on 0 binding doesn't to page 22, but see the window alert javascript indicating no data.


    Any help will be much appreciated.


    Kind regards
    Shijesh

    You can take a look at the following page

    http://HTMLDB.Oracle.com/pls/OTN/f?p=31517:228

    to see how this is possible.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Download firefox 10, Setup asked for the user account, enter the type of w/admin myPC, firefox exit installtion (Toshiba A665/I7/windoe 7)

    My computer is Toshiba A665 w/Intel core I7 and Windows 7 installed. When I run the installer of firefox 10, he asked for the user account ID and password. I entered the name of the computer that is mine with admin enter the account and a correct password. Installation of Firefox to quit smoking. No screen / another reply?

    Hello

    Please try a right click on the downloaded file and select run as administrator.

Maybe you are looking for

  • When I go to the school Web site I get this: "... must use a browser supporting JavaScript ' FF says it does.?

    All of a sudden will not work the usual procedure to get to the class of the school system. Web address: <www.fordhamprep.org>, you change to <"rel = 'nofollow' > powerschool.fordhamprep.org/teachers > and then ask user name and password." Worked wel

  • x 240-Activation of Windows 8

    Hello Just got my x 240-everything works as expected. However, I get a notification to activate my windows? It came preloaded with windows 8 and is currently on - but says that it will be completed in November. Everytime I try and turn it on I get th

  • Cannot install silverlights 5

    Original title: Reinstall silverlights 5 I removed silverlights 5 to reinstall the microsoft security essentials and now I can't reinstall silverlights 5 because that my computer thinks it's still there. What to do or how can I reinstall silverlights

  • Error code: 0 x 80070005 (cannot install KB898461)

    I restored my HP Pavilion with Windows XP Home SP3 and used a different username. Now, it will not be installed upgrading Windows KB898461 and gives the error code 0x80070005.  I think it has to do with the change of the user name.  All solutions?

  • Internet Explorer 9 does not load desktop H8 - 1080t

    I have a HP H8 - 1080t of office running Windows 7.  I was not able to run Internet Explorer 9 (installed at the factory) for several months. When you try to access with IE9, I'd get a blank white screen.   I've been using google chrome to access the