Or just use the wrapping Application tag's events to reset a timeout counter.
<mx:Application mouseDown="resetTimeoutCounter()" keyDown="resetTimeoutCounter()" ... > Use setInterval() to setup a timer function that increments the counter and fires a timeout function at the appropriate count, and have resetTimeoutCounter() set the counter to 0. - Doug --- In [email protected], Dominick Accattato <[EMAIL PROTECTED]> wrote: > > I would create a class... call it something like ApplicationTimeOut. Then > inside the class, I would initialize it by registering for a number of > events such as the MouseEvent.* etc.. Then I would also allow the class to > broadcast events that call for timedout views which could just be a screen > asking the user to relogin. > > On 2/8/06, northwood Lee <[EMAIL PROTECTED]> wrote: > > > > I am trying to build a app that run in the browser, I want it functions > > like this: if the user has not do anything in 20 min, the app will lock and > > tell the user timeout. > > and a prompt module TitleWindow jump out ask the user to input password > > again. > > > > the problem is how to listen all the user actions (for example, mouse > > movement , keyboard input. ) > > > > > > Thanks > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com > > > > > > > > SPONSORED LINKS > > Web site design development<http://groups.yahoo.com/gads? t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2= Computer+software+development&w3=Software+design+and+development&w4=M acromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L -4QTvxB_quFDtMyhrQaHQ> Computer > > software development<http://groups.yahoo.com/gads? t=ms&k=Computer+software+development&w1=Web+site+design+development&w 2=Computer+software+development&w3=Software+design+and+development&w4 =Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig =lvQjSRfQDfWudJSe1lLjHw> Software > > design and development<http://groups.yahoo.com/gads? t=ms&k=Software+design+and+development&w1=Web+site+design+development &w2=Computer+software+development&w3=Software+design+and+development& w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.s ig=1pMBCdo3DsJbuU9AEmO1oQ> Macromedia > > flex<http://groups.yahoo.com/gads? t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+sof tware+development&w3=Software+design+and+development&w4=Macromedia+fl ex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZ I36cYzBjw> Software > > development best practice<http://groups.yahoo.com/gads? t=ms&k=Software+development+best+practice&w1=Web+site+design+developm ent&w2=Computer+software+development&w3=Software+design+and+developme nt&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166 &.sig=f89quyyulIDsnABLD6IXIw> > > ------------------------------ > > YAHOO! GROUPS LINKS > > > > > > - Visit your group "flexcoders<http://groups.yahoo.com/group/flexcoders>" > > on the web. > > > > - To unsubscribe from this group, send an email to: > > [EMAIL PROTECTED]<flexcoders- [EMAIL PROTECTED]> > > > > - Your use of Yahoo! Groups is subject to the Yahoo! Terms of > > Service <http://docs.yahoo.com/info/terms/>. > > > > > > ------------------------------ > > > -- 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/

