I have a flex app that draws a chart, from data in a DB. The data set retrieved is determined by 4 seperate parameters, such as start month, warehouse. The possible values for these 4 parameters are retrieved from the same DB.
So before the chart is drawn, the 4 sets of parameter data are retrieved by 4 remote objects. This is actioned on the initialise event in 2 trees and 2 combo. The parameters can be manipulated and a button is be clicked to have the chart redrawn. This works fine. What I want to happen is when the app starts up, I want the 4 different parameters to be set to a default value, which is the first value in each retrieved list. Then the chart can be drawn automatically. The problem is where to put the function call to draw the chart. I need one single event that will be fired when everything is ready, but I don't think that exists. One way I thought of was to remove the parameter data retieval from the initialise event of the component and put them in an AS function, and trigger the next one off when the previous result has been returned, then when the 4 result has beed returned call the display chart code. Can anybody think of a more generic way. Andrew -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

