2 Replies Latest reply on Jun 10, 2008 8:35 AM by Scott McAllister

    RemoteObject order of Operations

    Scott McAllister Level 1
      I need some help understanding the order of operations in Flex. I have an initApp() function that is being called from the creationComplete attribute of the Application tag. Inside that function I'm trying to call four different methods from a single RemoteObject, and then pass the arrays returned from each RO function to another function that combines all of the arrays.

      (see code below)

      The problem occurs in the assembleTreeArray function because none of the arrays being passed in have anything in them.

      When I throw in a bunch of breakpoints and step through the application I notice that the entire initApp() function executes before the RO result handler functions are called. With that being the case, when can I execute the assembleTreeArray function?

      Thanks for any tips or nudges in the right direction.