You could read the SharedObject during the application "initialize" 
event, and then apply its data to the Panel during the 
application "creationComplete" event.

--- In flexcoders@yahoogroups.com, "thelordsince1984" <lore...@...> 
wrote:
>
> Hi,
> 
> suppose that i have a main application and here i can create three
> differents type of panels (mypanel extend Panel)...
> 
> then i have a button that permits to save the current pèanel inside
> the app and its position into the screen..this is made by getting
> parameters for each panel...for example their position on the main 
app...
> 
> the panel name and his parameters are saved into a shared object...
> the shared object is an array collection of objects, for example
> 
> <mx:Object id="panel1" x="3" y="5" />
> 
> so when i open the second time my application, i read the shared
> object i would retrieve the panel that i saved in the same position.
> in this case panel1 in the position 3-5.
> note the panel is created at startup for each time i launch the
> application. i don't want to save the entire panel object into the
> shared object.
> how can i do this?
> 
> Thanks in advance 
> Regards Lorenzo
>


Reply via email to