So you could probably add a event listener to the button on Click then create a 
timer
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.controls.Text;
private function initApp():void{
this.sbnButton.addEventListener(MouseEvent.CLICK,onFormClick);
}
private function onFormClick(event:MouseEvent):void{
var timer:Timer = new Timer(1000,15);
timer.addEventListener(TimerEvent.TIMER_COMPLETE,onTimerComplete);
timer.start();
}
private function onTimerComplete(event:TimerEvent):void{
Alert.show("Wrong Password etc..");
//clean up and remove the listener you could disable the app and stuff
}
]]>
</mx:Script>
<mx:Button id="sbnButton"/>


Is that what you want kind of?
----- Original Message ----
From: markcavins <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, January 16, 2008 6:15:50 PM
Subject: [flexcoders] Re: Refresh login screen

I can do that.

I have a form that has three form variables

customer, username, password.

When the user has succesfully entered information in all three forms
the user clicks submit and the the form will try to authenticate the
user. Now because the url is created dynamically and part of the url
is the field customer the server seems to take a long time to try and
auth them if they enter in the wrong customer number so I want the app
to time out after 10 to 15 seconds and create a alert that tells them
to check their username.

--- In [EMAIL PROTECTED] ups.com, Sherif Abdou <[EMAIL PROTECTED] ..> wrote:
>
> like reset the entire form? give an example
> 
> 
> ----- Original Message ----
> From: markcavins <markcavins@ ...>
> To: [EMAIL PROTECTED] ups.com
> Sent: Wednesday, January 16, 2008 6:07:09 PM
> Subject: [flexcoders] Refresh login screen
> 
> Hey all,
> 
> Is it possible to refresh the login in page if a user's credentials
> have not been verified in a certain time frame (say 10 to 15 seconds)?
> 
> 
> 
> 
> 
> 
____________ _________ _________ _________ _________ _________ _
> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile. Try it now. 
http://mobile. yahoo.com/ ;_ylt=Ahu06i62sR 8HDtDypao8Wcj9tA cJ
>





      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

Reply via email to