You could either set a bindable property on your model,
or pass in a object, which does the result handling.

Cheers
Ralf.

On Sat, Jun 28, 2008 at 8:09 PM,  <[EMAIL PROTECTED]> wrote:
> You mean if i have to display an alert message 'Customer name already
> exists' them i have to put this code in result method as follows, Basically
> this is Command class which implements IResponder .
>
> public function result( event : Object ) : void
> {
> // Some processing
> Alert.show( 'Name XYZ Already Exists' ) ;
> CursorManager.removeBusyCursor();
> Application.application.enabled =true ;
> }
> If you meant this then don't you think it is not good design , now suppose
> if instead of Alert message i am going to display inline error message on
> the view then i have to access view in my command class to display error
> message.
> ,
>
> ----- Original Message -----
> From: "Paul Andrews" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Sat, 28 Jun 2008 19:00:07 +0100
> Subject: Re: [flexcoders] synchronous events in flex
>
>> ----- Original Message -----
>> From: <[EMAIL PROTECTED]>
>> To: <[email protected]>
>> Sent: Saturday, June 28, 2008 2:54 PM
>> Subject: [flexcoders] synchronous events in flex
>>
>>
>> > Hi
>> > Can anyone tell me how to write synchronous events in flex application?
>>
>> There are no synchronous events.
>>
>> > I am calling an Httpservice on focus out event of text field this
>> > service
>> > checks name duplication. I want my application to wait for service to
>> > finish and then do some processing
>>
>> Supply a result handler for the httpservice and put your code in that. It
>> will be called asynchronously when the result is ready.
>>
>> Flex doesn't do waiting, except through event handlers.
>>
>> > Thanks in advance
>>
>> Paul
> 

Reply via email to