So your problem fixed or you still having it? -abdul
-----Original Message----- From: Doodi, Hari - BLS CTR [mailto:[EMAIL PROTECTED] Sent: Friday, April 01, 2005 12:07 AM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] making synchronous method calls ? Thanks for the response I did try with statement receiver_lc.send("scheduleViewer", "rec_setFileName", fnameArray); at the end of setvalues() function. I was trying different ideas to make it work and that is one of it. I do apologies for not correcting my tried code. Thanks! Hari -----Original Message----- From: Abdul Qabiz [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 1:28 PM To: flexcoders@yahoogroups.com; 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] making synchronous method calls ? Hi Hari, I see your calling(sending values) reciever_lc.send(...) method before setting "fnameArray" array... See the first line of setValues() function, Remove it and then try..... function setValues() { --> receiver_lc.send("scheduleViewer", "rec_setFileName", fnameArray); <--- total = scheduleList_do.length; schedule = scheduleList_do[index]; reportersid.text = schedule.reporter_sid; schedulesid.text = schedule.schedule_sid; status.text = schedule.schedule_status; analystid.text = schedule.analyst_id; reviewerid.text = schedule.reviewer_id; receivedon.text = schedule.received_date; schedulefname.text = schedule.schedule_file_name; continuationfname.text = schedule.continuation_file_name; attachmentfname.text = schedule.attachment_file_name; fnameArray[0] = schedulefname.text; fnameArray[1] = continuationfname.text; fnameArray[2] = attachmentfname.text; Alert.show(schedulefname.text+" "+continuationfname.text+" "+attachmentfname.text,"file names"); receiver_lc.send("scheduleViewer", "rec_setFileName", fnameArray); } -abdul -----Original Message----- From: Doodi, Hari - BLS CTR [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 11:02 PM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] making synchronous method calls ? Hi, I have a situation where in I have to make function call in sequence (synchronous method calls). I am getting image file names along with product information by making RemoteObject call. I am making a function call on result event. Inside that function I am setting individual data to corresponding textinputs and then at the end I am constructing an array to hold image file names ( more than one value). After creating the array I have to pass this array as an argument to a function call which passes the array to other browser window already opened. What I found was the method is called before completion of data setting, means array is blank and the image browser window is not displaying any images. If I hard code values in array then I can see images on the image browser window. Please help me out in How to make synchronous method calls in flex? In the following file you can see I tried different way but no successes. <<ScheduleProcessor.as>> Here is RemoteObject method syntax from my mxml <mx:method name="getSchedules" result="scheduleList_do=event.result;setValues()" fault="mx.controls.Alert.show(event.fault.faultstring, 'Remote Call Error')"> <mx:arguments> <arg1>4</arg1> </mx:arguments> </mx:method> Thanks! Hari Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links 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/