I have a Flex problem. I have a Java app and a Flex app that calls to a Java app method to get some data.
So in my Flex class I have a method that calls the Java app method, something like this:
ObjectThatInvokesJavaMethod.getDataFromJavaApp(param1, setData);
setData is where the Java app method returns the array with the info, the callback.
The problem is that this method (setData) goes to a stack or something like that and the rest of code is executed, but in 'the rest of the code I need the data requested from the Java app but the setData method is not executed until the rest finish... so Im operating with old and deprecated data. Any idea how to solve this?
Thanks in advance.