HTTPService and ResultEvent execution order

Hello

I have a function that I call to get data using a HTTPService, that has an eventlistener that calls another function to manage the data of the service receives.

I wish I had my function that contains the function that returns a Boolean value based on whether the data has loaded the service. Something like:

        public function serviceFunction():Boolean 
        {
            ...
            service.addEventListener(ResultEvent.RESULT, dataFunction);
            ...
            service.send();
            return this.loaded;
            
        }          

        private function dataFunction(e:ResultEvent):void 
        {
                if(e.result.data == loaded) {
                    this.loaded= true;                    
                } else {
                    this.loaded= false;                    
                }

            }

When doing it this way, I find that the return statement is executed before the code within the function data.

Is there a way to be able to return the Boolean value, updated in the first function?

Thank you

Alex.

In short, no.. You're stuck with the asynchronous event in Flex. However, if you go out into the realm of JavaScript using the ExternalInterface, you can remove the synchronous data calls. However, there are not a lot of value to it. If you want to lock the State of your application while you wait for some kind of answer, just do this through the user interface.

Tags: Flex

Similar Questions

  • The OSM language, how to cancel and suspend execution by the billing for the order.

    I have 2 simple questions:
    1. can I change the language of the OSM in Spanish? I've seen instructions on guide/location OSM developer but I can´t do.

    2. I know that I can suspend and cancel an order whit the help of 'OrderManagementWS.wsdl' or with the Web Client. But how can I suspend that part of the order of the order, for example in a single order can came with elements of different order which will create the various tasks depending on the granularity, but the spouse that I need to suspend only the execution of a product that is entered into the order, how can I do this? Or I just can´t?

    Thank´s for your help.

    Lucas.

    Lucas;

    Thanks for the additional information. I have read the document, it helped me to understand your scenario.

    You still wonder if what is the business scenario which triggers the need to suspend a specific agenda item.

    The challenge in doing that is that an element of order may appear in a part of the order as well as many other items of the order. This is why the Act to suspend any treatment about to an order can affect makes many other items order up to and including the entire order.

  • Test suite execution order

    Hi friends,

    I need to run a Suite of 5 tries. I created a Suite with these 5 trials. Trials are appearing in alphabetical order. When I run it, it runs in a random order (not included).

    I want to run it in the order indicated (for example, Test_3, Test_2, Test_4, Test_1, Test_5). How can I achieve this?

    Thanks in advance!

    Hi James,

    Thanks for the clarification.  I could be wrong, but I do not believe there have been complaints on test item out of sequence - that is, there is a SEQUENCE column in the SUITE_ITEM table in order to control the order of execution of test in the suite.  If you run a query similar to the following in a worksheet (or as a user-defined report) against your unit test repository, the execution order corresponds to the order of the sequence columns?

    SELECT UT_SUITE.NAME AS NOM_SUITE,

    UT_TEST.NAME ACE TEST_NAME,

    UT_SUITE_ITEMS. SEQUENCE,

    UT_SUITE_ITEMS. RUN_START,

    UT_SUITE_ITEMS. RUN_TEAR

    OF UT_SUITE_ITEMS

    JOIN INTERNAL UT_SUITE

    ON UT_SUITE_ITEMS. UT_SID = UT_SUITE. UT_SID

    JOIN INTERNAL UT_TEST

    ON UT_TEST. UT_ID = UT_SUITE_ITEMS. UT_ID

    ORDER OF NOM_SUITE, UT_SUITE_ITEMS. SEQUENCE;

    In any case, the point of confusion is perhaps alphabetical list of tests in a suite does not expose the order of creation (sequence).  So if I have...

    1. create 10 tests: test_0, test_2,..., test_9

    2. Add all to suite_1 in ascending order.

    3. run the above query.  It shows the sequence numbers the suffix of test matches

    4. remove the tests with a numbered suffix even.

    5. Add in trials with pairs suffixes, but in descending order.

    6. run the above query.  He then shows the tests, in the order 0,..., 9, as tests_ 1, 3, 5, 7, 9, 8, 6, 4, 2, 0

    Who help me?   I guess listing tests in a suite in the order of creation (sequence) and allowing to make drag & drop reorganization could be more intuitive.

    Kind regards

    Gary

  • Calculation actual and average execution time

    Hi guru,.

    I have a scenario where I connect my moment of execution in a Table, and my batch


    Batch_id Scenario_Name

    1 Scen1

    1 Scen2

    1 Scen3

    2 Scen1

    2 Scen2

    2 Scen3

    3 Scen1

    3 Scen2

    3 Scen3

    Now my question is I want to calculate the duration of actual execution and the execution time of the Avg, while Avg running time calculation, I current Batch_ID to exclusion of

    Select scenario_name, count (scenario_name).

    sum (MOD (FLOOR ((END_DATE-START_DATE) * 24 * 60 * 60), 60)) Total.

    sum (MOD (FLOOR ((date_fin-START_DATE) * 24 * 60 * 60), 60)) count (scenario_name) Avg

    of Execution_Log

    -where batch_id = 1

    Scenario_name group

    This query will give me the result, but it's also including current Batch_Id

    OK, try this query. I dropped the group by clause as the avg is the only present aggregation, and who is now handled through the analytical counterpart (with more partition by clause).

    SELECT

    A.BATCH_ID,

    A.SCENARIO_NO,

    A.SCENARIO_NAME,

    C.TGT_TABLE_NAME,

    A.START_DATE,

    A.END_DATE,

    A.EXECUTION_STATUS,

    Decode(A.EXECUTION_STATUS,'COMPLETED','No Error','FAILED',A.ERROR_MESSAGE,null) ERROR_MESSAGE

    MOD (G ((A.END_DATE-A.)) START_DATE) * 24 * 60 * 60), 60) TEMPS_REEL.

    AVG (MOD (FLOOR ((A.END_DATE-A.START_DATE) * 24 * 60 * 60), 60)) on (A.scenario_name partition) AVG_TIME

    To exec_log1 A

    INNER JOIN exec_log2 B

    ON A.BATCH_ID = B.BATCH_ID

    AND A.BATCH_ID = 2

    INNER exec_log3 C

    ON A.SCENARIO_NO = C.SCENARIO_NO

    AND A.SCENARIO_NAME = C.SCENARIO_NAME

    ORDER BY A.SCENARIO_NAME ASC

    I hope this helps.

  • difference btw dbms_sql.execution and immediate execution

    Hello

    IAM using 10g, difference btw immediate.please dbms_sql.execution and execution to tell me.

    797525 wrote:

    IAM using 10g, difference btw immediate.please dbms_sql.execution and execution to tell me.

    SQL all (and all the anonymous PL/SQL blocks) are analyzed by Oracle as a SQL cursors. These cursor structures are stored in the Shared Pool in the SGA (shared memory area which are essentially the "brain" of the database instance).

    Once a cursor was created for a statement SQL, how to use and interface with this SQL cursor on the server (from the point of view of the customer)?

    We use on the client side, a calling interface (or API) that allows our code to interact with this SQL cursor on the server. This interface can be ODBC. Or BDE. Or ADO. Or many other 3-4 letters for database interfaces.

    PL/SQL is also a language of 'customer' from a SQL perspective. Such as Java and c#, the code PL/SQL will be calls to the SQL engine to analyze and create SQL cursors.

    Of course, PL/SQL differs in 2 areas. It runs in the process of the Oracle server. It is the neighbour of the SQL engine.

    For this reason, PL/SQL is much more perfectly integrated with the SQL than Java or c#.

    But even in spite of this integration, you still need an interface in the client (PL/SQL) to interact with the SQL cursor, that you have created. In PL/SQL, there are a number of such interfaces customer.

    There are explicit and implicit cursors. And there are sliders DBMS_SQL and reference. And there are implicit cursors created through immediate enforcement.

    The difference between DBMS_SQL and immediate execution is therefore a difference in customer language interface. The SQL cursor on the server (in the shared Pool) doesn't know what customer interface is used. He cares not.

    Client side, each of these client interfaces to a SQL cursor has a different function. And determines which one to use.

    run immediately , it's fast and easy for dynamic SQL, but it cannot be used to determine the structure (called projection SQL) returned by a cursor to Select . So despite the dynamic SQL code, we must always know the encoding of time, just what this slider will return to consume its production.

    DBMS_SQL to 'describe' the cursor SQL projection. So, we can create a dynamic Select SQL cursor. We can question its interface describe in order to determine the number, names and the data types of the columns returned. It can be removed these column values dynamically and consume the cursor.

    There are therefore a major difference in the two feature sets. Tools for interfacing with the same SQL cursor.

    So the main points to remember are:
    -all SQL liquidation as SQL cursors on the server
    -you have different interfaces in the language of the client to interact with a SQL cursor

    ++

    Your mission as a programmer, if you choose to accept it, is to determine which of these client interfaces is better suited to meet the requirements in your code.

    This message will self-destruct in... 5.4.3 2...

  • Read and understand execution Plans

    Hello
    in 10g R2 documentation (Database Performance Tuning Guide)
    I read:
     
    13.4.2 Reading and Understanding Execution Plans 
    
    The execution order in EXPLAIN PLAN output begins with the line that is the furthest indented to the right. The next step is the parent of that line. If two lines are indented equally, then the top line is normally executed first. 
    
    Example 13-2 EXPLAIN PLAN Output 
    
    ----------------------------------------------------------------------------------- 
    | Id  | Operation                     |  Name        | Rows  | Bytes | Cost (%CPU)| 
    ----------------------------------------------------------------------------------- 
    |   0 | SELECT STATEMENT              |              |     3 |   189 |    10  (10)| 
    |   1 |  NESTED LOOPS                 |              |     3 |   189 |    10  (10)| 
    |   2 |   NESTED LOOPS                |              |     3 |   141 |     7  (15)| 
    |*  3 |    TABLE ACCESS FULL          | EMPLOYEES    |     3 |    60 |     4  (25)| 
    |   4 |    TABLE ACCESS BY INDEX ROWID| JOBS         |    19 |   513 |     2  (50)| 
    |*  5 |     INDEX UNIQUE SCAN         | JOB_ID_PK    |     1 |       |            | 
    |   6 |   TABLE ACCESS BY INDEX ROWID | DEPARTMENTS  |    27 |   432 |     2  (50)| 
    |*  7 |    INDEX UNIQUE SCAN          | DEPT_ID_PK   |     1 |       |            | 
    ----------------------------------------------------------------------------------- 
    You would be kind to tell me:
    In the example above:

    Is step 5 in the first run because it is the most right?

    Step 4 is the parent of step 5?

    Step 4 is executed just after step 5 as its parent?

    If I'm totally wrong:
    What stage is executed first?
    The two steps are PARENT/CHILD?

    Thank you.

    Step 3, the FullTableScan of EMPLOYEES would be the first step must be performed. The results of EMPLOYEES joined JOBS in step 2 by analyzing the OFFERS by JOB_ID_PK.
    Therefore, step 5, the Index Scan of JOB_ID_PK would be the second step must be performed.
    Step 4, access to the WORK of the Table would be the third step must be performed.
    Due to PreFetching implemented in 10 g, step 7 and 6 DEPARTMENTS is also from 'start' to be ready to join in the result set of the join of the EMPLOYEES JOBS.

    Hemant K Collette
    http://hemantoracledba.blogspot.com

  • VI main and void / execution of vi

    I'm fighting a lot with my hand vi and Subvi execution problems a lot!

    I have a complicated system. To explain this, I create a simple main vi and 2 subvis. Please take a look at the attachment.

    It works as expected. The Boolean button in main vi is active when the Sub-VI-s do not run. But while the sub live run I can't access the Boolean button. I understand why it's happening. Execution is stuck in the Subvi and can not see any new entry in the main vi.

    My question is how can I solve this problem?

    What I want is,

    1 when the Subvi is running, I still want the Boolean button in the main to behave the same way vi compared to when the Subvi is not running.

    2. I would also be able to run the 2nd Subvi when the 1st Subvi is still running.

    Please help me out (I'm using Labview 2010.)

    Oh I'm sorry, I thought I saved them to LV2010, but I guess I've recompiled accidentally their latest version... VI joint for 2010.

    Seems I can't edit my previous post so forgive me for sending VI twice and if the moderators happen to see this, do not hesitate to remove from the VI in previous message...

  • XP - cannot install Service Pack 2 and 3 in order to install anti-virus protection.

    I need to install Service Pack 2 and 3, in order to install a virus program.  I currently do not have one, as my Norton Antivirus program should be uninstalled.  I can't get the Windows Update page to download.  Is there another way to get to this download?  I want to get do it as fast as possible, as I am currently without any virus/spyware protection.

    Thank you!!

    If SP2 to SP3, is not installed, you could not possibly have a functional application of the antivirus installed and missing a value of more than four years of critical security updates! It is not a chance in h * that SP2 & SP3 will install with your computer in its current state, Erica.

    See...

    Cleaning a compromised system
         http://TechNet.Microsoft.com/en-us/library/cc700813.aspx

    Follow the instructions in this post of mine in another forum (to-the-letter & in order!) to restore your computer to a State course: http://aumha.net/viewtopic.php?f=62&t=44636

    If you need additional assistance with the clean install, please start a new thread in this forum: http://social.answers.microsoft.com/Forums/en-US/xprepair/threads

    Wish I had better news for you.  Good luck!

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Gmail button (in internet explorer) keeps having moved to the right in my taskbar when I wasn't staying on the left (that's why I first open). How can I get the taskbar buttons to stop randomly to reorganize and stay in order?

    Gmail button (in internet explorer) keeps having moved to the right in my taskbar when I want to keep it on the left (that's why I first open).  How can I get the taskbar buttons to stop randomly to reorganize and stay in order?  I'm talking about the buttons on list of my open applications and documents in Windows Vista.  The bar tasks are "locked", but the button of the window open with gmail in internet explore reappears suddenly in the good moments apparently random.

    It is in the middle part of the taskbar (what I found online so far is on the start menu, the quick launch area or area/system tray of notification, the location of the taskbar in full, either about grouping taskbar - I disabled because I would like to separate).  Can anyone help?  I don't understand why this is happening (or why microsoft would never do).

    Lock the taskbar that it prevents to be moved elsewhere on the office and maintains the different sections where they are - it does not block the tabs showing what is open where they were when they were opened.  There is no control for this function.  Maybe if you uncheck similar taskbar buttons group it will help, but I honestly don't know (and fear he won't make any difference - it may even make things worse).  This also happens to me and I was unable to find an answer.  I think that there are more than just random, but I can't telll you why he moves the legs periodically (sometimes it works fine all day and other days it happens almost immediately).  But still, there is no control for this function, so there is no way to tell him to keep a specific order or to lock an established order, once it has been created.  I suspect that it happens because the notification area icons appear and hide and new programs open and close and which changes the amount of space available and so he rearranges things so that they match and apparently does not always consider the original sequence in which the elements have been added.  Maybe if you remove the Quick Launch toolbar and then add again, the order will reset (but that I know not - probably not in the original sequence, which I doubt is logged nowhere - it did not work when I tried it).

    Unfortunately, I don't have a solution to this problem (and I spend a little time looking for even before myselff posed the question) and do not believe that there is a.  It is also unfortunate that you can't move them so they can be put back in the right order if they change.  I don't think that there is nothing wrong with your system or that it is something that can be repaired or fixed - it's just the way it is and we just have to live with it.  I don't know any 3rd party software that controls the order of tabs open in the taskbar program (but you can check out Bing, Gooogle,www.tucows.comand www.download.com to see if I'm wrong on this - here n "t all when I looked trying to solve this problem for my own system).

    I'm sorry it wasn't what you wanted to hear, but it's like that.  I don't know if it's different in Windows 7.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • I'm Italian and I just ordered photoshop and elements first. I've already paid for, but there is no file to download. I have a mac and there is for windows. What should I do?

    I'm Italian and I jI'm Italian and I just ordered photoshop and first elements. I've already paid for, but there is no file to download. I have a mac and there is for windows. What should I do? oI TEU am Italian and I just ordered photoshop and first elements. I've already paid for, but there is no file to download. I have a mac and there is for windows. What should I do? photoshop and elements first rdered. I've already paid for, but there is no file to download. I have a mac and there is for windows. What should I do?

    You must ensure that you ordered for a Mac.

    If not,

    To the link below, click on the still need help? option in the blue box below and choose the option to chat (or phone)...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Get help from cat with orders, refunds and exchanges (non - CC)

    http://helpx.Adobe.com/x-productkb/global/service-b.html ( http://adobe.ly/1d3k3a5 )

    Here are a few download links:

    Download and Installation Help-

    https://helpx.Adobe.com/download-install.html

    PES 10, 11, 12, 13, 14 - https://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-downloads.html

    You can also download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    Photoshop/Premiere Elements 14: http://prodesigntools.com/photoshop-elements-14-direct-download-links-premiere.html

  • I am trying to re-download Lightroom and when I hit the download button begin who appear in my email and enter the order number and the password, it says no order found. Help please... Urgent

    I am trying to re-download Lightroom and when I hit the download button begin who appear in my email and enter the order number and the password, it says no order found. Help please... Urgent

    Chances are th eemail link is a download option once.  After that, you probably need to go to your Adobe account online and look for an option to download it.

    Depending on the version it is, you might be able to find a download link through one of the following links...

    Lightroom - all versions

    Windows

    http://www.Adobe.com/support/downloads/product.jsp?product=113&platform=Windows

    Mac

    http://www.Adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh

  • a fatal error has occurred and the execution of the application took end. Adobe Captivate one attempts to save all of your work in the respective folders of the project as files cpbackup

    Hello

    We have Adobe Captivate installed 8.0.0.145 Windows 7 x 64 v.

    Activate Adobe crashes with the following error: a fatal error has occurred and the execution of the application took end. Adobe Captivate one attempts to save all of your work in the respective folders of the project as cpbackup files.

    I uninstalled Adobe Acptivate, rebooted the PC and reinstalled activate Adobe - unresolved error.

    I have cleared the cache under settings, clear the cache - unresolved error.

    Please notify.

    Kind regards

    George


    The update should be available to help, updated. It is available since October 2014.

    Being administrator is not the same thing as Captivate running as an administrator that must be put in place in the menu right click on the shortcut that launches Captivate. You have restricted functionality if this is not done.

    I told you how to clear preferences, with the file Utils. First close Captivate, when you restart CP will create a new preferences folder.

    If you have a lot of customization that you will lose when the erasing of the preferences. To keep them, have a look at my blog:

    Captivate 8.0.1 Install? Keep your customization! -Captivate Blog

    Layouts folder is located in the public Documents. It is a copy of the original folder in the gallery. Same thing with the Interactions.

  • I bought Photoshop and elements of order #AD003212006UK. When I try to download I am informed that the software is not suitable for my system (new iMac, retina) Please help

    I bought Photoshop and elements of order #AD003212006UK. When I try to download I am informed that the software is not suitable for my system (new iMac, retina) Please help

    You are 100% sure that you are clicking to download the Mac version and not the version of Windows?

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific time) <===> NOTE DAYS AND TIME
    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html
    -or by phone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • I imported the images in my lightroom library catalog.  All the images are numbered 001, 002, 003, etc. and downloaded in order.  I want to make a collection of web.  I clicked on the tap WEB and then clicked on the button "Import" in the lower left.  All

    I imported the images in my lightroom library catalog.  All the images are numbered 001, 002, 003, etc. and downloaded in order.

    I want to make a collection of web.  I clicked on the WEB site tab and then click on the button "Import" in the lower left.  All the images changed position.  Anyone know what I did wrong?

    Hi Peter,.

    If some how changed the order sorted, you can go back sorting to 'Added A order' in the toolbar.

    or, choose all the photos and click the view menu and sort to choose the sort order.

    Also, here is the tutorial link to learn more about creating web gallery in Lightroom:

    https://helpx.Adobe.com/Lightroom/help/creating-web-galleries-basic-workflow.html

    Kind regards

    Claes

  • The standardization of the distributed and unit-of-order ISSUE

    Hello

    I will in the following document and I have a few questions on this basis
    http://docs.Oracle.com/CD/E17904_01/Web.1111/e13727/uoo.htm

    1.
    Based on the above, if a unit-of-order jms message is sent to a uniform distributed topic, Weblogic sends the message that one of the members of destination topic. Is it also correct to assume that messages will not be transmitted to other members of topic destination even if the redirection policy is set to "REPLICATED"?


    2.
    In addition, the document above (http://docs.oracle.com/cd/E17904_01/web.1111/e13727/uoo.htm#i1041061) mentions a limitation when using uniform distributed QUEUE and unit-of-order with hash routing function. That is to say
    + "If a member of queues distributed has a unit-of-control partner and is inaccessible, the producer sends the message will throw a JMSOrderException and messages are not routed to other distributed queue members. +.

    However, the document does not mention what would be a behavior under the same scenario when using uniform distributed TOPIC (the use of hash-based routing)? will it be the same behavior with uniform SUBJECT distributed as well? Can you please clarify this


    3 Please refer to the section of the document http://docs.oracle.com/cd/E17904_01/web.1111/e13727/uoo.htm#i1044686, where it is said that + 'unit-of-Order messages are processed one at a time' +. This means that any operation batch parameter specified on the MDB (listening on the subject) will be ignored and that a message will be processed at a time?


    Kind regards
    Arif

    Published by: user602479 on January 11, 2012 12:15 AM

    I somehow implies that the behavior of publish/subscribe violates the contract PUA? In an RTD or a PDT, messages for the same AUP can of course be copied on multiple subscriptions. The ranking of the AUP of transformation within a given subscription is maintained.

    That said, there are only two cases where I remember off-the-top of my head that PUA command can easily be violated:

    -As you mentioned, no transactional section BMD in compatibility mode that max-beans-in free-pool greater than 1 more run in a thread pool with more than 1 thread available in the MDB. IIRC, compatibility mode is not supported with Stdp, this restriction does not apply to the Stdp. It's good to know you already noticed this in the docs.

    -Distributed queues that allow "transfer queue". I know it's documented too, but I don't remember where.

    I do not remember the existence of special restrictions on the use of PUA in combination with the PDT. Hash-based routing applies on the way of the shipment and has the same behavior on a like on a TDR or a UDQ TMP. Ditto for the track of basis of Routing Service.

    Kind regards

    Tom

    Published by: falls on January 11, 2012 17:29

Maybe you are looking for