Re: [flexcoders] Bringing application to front

2009-09-16 Thread nhid
Ian,

No, it's not an AIR application.  I'm using Flexbuilder 3, lifecycle 2.5.
Is there a way to get around to it?

Thanks
nhid

On Tue, Sep 15, 2009 at 6:19 PM, Ian Thomas i...@eirias.net wrote:



 If it's an AIR application, you can use the .orderToFront() method of your
 WindowedApplication.


 http://livedocs.adobe.com/flex/3/langref/mx/core/WindowedApplication.html#orderToFront%28%29

 Ian


 On Tue, Sep 15, 2009 at 10:03 PM, nhid nhi...@gmail.com wrote:



 Hi,

 How should I go about implementing the following case:

 There's a timer on my application which will give an alert to the user 5
 minutes before the session times out.  It's working, but the problem is
 since the alert is a popup window, it appears inside the application and
 when the application is behind another application (browser, etc) or is
 minimized, the user won't see the alert and the applicaiton logs the user
 out because no action was taken.  How can I bring the application to the
 front (to focus) or maximize it so the user will see the alert?

 Any suggestion is appreciated.  Thank you!


  



[flexcoders] Bringing application to front

2009-09-15 Thread nhid
Hi,

How should I go about implementing the following case:

There's a timer on my application which will give an alert to the user 5
minutes before the session times out.  It's working, but the problem is
since the alert is a popup window, it appears inside the application and
when the application is behind another application (browser, etc) or is
minimized, the user won't see the alert and the applicaiton logs the user
out because no action was taken.  How can I bring the application to the
front (to focus) or maximize it so the user will see the alert?

Any suggestion is appreciated.  Thank you!


Re: [flexcoders] Bringing application to front

2009-09-15 Thread Ian Thomas
If it's an AIR application, you can use the .orderToFront() method of your
WindowedApplication.

http://livedocs.adobe.com/flex/3/langref/mx/core/WindowedApplication.html#orderToFront%28%29

Ian

On Tue, Sep 15, 2009 at 10:03 PM, nhid nhi...@gmail.com wrote:



 Hi,

 How should I go about implementing the following case:

 There's a timer on my application which will give an alert to the user 5
 minutes before the session times out.  It's working, but the problem is
 since the alert is a popup window, it appears inside the application and
 when the application is behind another application (browser, etc) or is
 minimized, the user won't see the alert and the applicaiton logs the user
 out because no action was taken.  How can I bring the application to the
 front (to focus) or maximize it so the user will see the alert?

 Any suggestion is appreciated.  Thank you!