you can store the width and height of the window in the share object.
In your close handler save the window height and width into the shared
objects.
use the creationComplete or initialize functions of the
WindowedApplication to set the width and height to the value read from
the shared objects.

On Dec 1, 4:19 am, AIR - Remember WindowSize From Previous Run
<[email protected]> wrote:
> I have written an FLEX AIR app that runs fine. Is there a way I can
> remember the users window size when the user closed the window. So
> next time when the user starts the window it should start with that
> window size. Is this something I can do using 'SharedObject' or
> something else.
>
> Example :
>
> In simple case if I have the below code . After the user opens it the
> first time and resizes the window and closes the app. How can the
> user  open the app again with the window sized to be the same as it
> was when he closed the app.
>
> Thx.
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="vertical" width="300" height="300">
>         <mx:Label id="id1" text="Hello World"/>
> </mx:WindowedApplication>

--

You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.


Reply via email to