----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, June 28, 2008 7:09 PM
Subject: Re: [flexcoders] synchronous events in flex
> 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.
Views should be bound to the model or respond to events. Your command class
doesn't need to poke around in views.
Paul
> ,
> ----- 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
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>