Hello Kronos,
Thanks for a very detail and nice reply.I got the options clear in my mind
as per your suggestions.Let me explain you bit more,the maps or the layer
which we are loading in the flex container is of third party tool called
"openscale".
Openscale is having a drawing tool,which allows a user to click and than
draw shape on the map layer.
Currently what i did is that for a single session i stored the  openscale
draw layer into a variable and rather than redrawing ,i am readding fresh
layer.

As soon as layer is drawn and press the add button the openscalelayer clears
the shapes and a row is added in the .NET datagrid.

Now again user draws another layer in openscale and press add so a new row
 is added in the .NET grid.Now the main requirement is that i need to store
the layer data for each row so that when user click a row in the grid that
particular draw layer is restored.

Hopefully i am able to clear you more in depth.Please do let me know if you
are not really clear about something.

Thanks.

Abhilash

On Thu, May 19, 2011 at 5:52 PM, Kronos <[email protected]> wrote:

> What is the technique that u have used to display data from one node
> to another ???
>
> Have u used modules to reload the entire screen with the new node map
> details or are u just overwriting the existing screen with the new
> information???
> In either case u will have to store the data temporarily in the
> application and redraw the polygons on reload.
> If the data is small (since u mentioned 3 polygons) u can store this
> information in the application itself to some persistent variable that
> u can access later even when the old node is reverted.
> If the data is medium then u should use shared objects as they allow
> to save upto 100 MB data on the client machine (provided the user has
> allowed it) But then again the user can disable shared objects or
> reduce the size limit for it thus causing u problems.
> If the data is large u have to go for a server side data storage
> approach. There is no other alternative.
>
> But i feel the first approach should suite u fine if u only need to
> store the data of the previous node & the current node. If u want to
> maintain all history then try the other 2 options. FYI ... I have used
> the first approach in my project on medium size data.
>
> On May 18, 3:45 pm, Flex based developments <[email protected]>
> wrote:
> > Hello,
> >
> > Thanks for the response.Currently I am using some collection of sprite
> > objects,drawn on a map.Now when use goes to a next node the whole
> > application is refreshed and also the new map image loads.If i again
> > revert back to previous node so i should see the old shapes drawn.
> > For example I draw three polygons on the node 1 link and than goes to
> > node 2 link.now again when i want to revert to node 1 the whole page
> > gets refreshed and the shapes are gone.I am trying for redraw as not
> > really clear how to redraw the bunch of shapes.
> >
> > Also if there is any other approach such as Sessions please do
> > suggest.
> >
> > Thanks.
> >
> > Abhilash
> >
> > On May 18, 11:46 am, Kronos <[email protected]> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > What do u mean by page refresh ???
> > > If you are reloading the page from the browser then there is nothing
> > > that u can do to prevent it.
> >
> > > If not, you will have to redraw the polygons every time the page is
> > > refreshed.
> > > You could move the code to the creationComplete of the page (unless
> > > the code is user event driven) that way the code will get executed
> > > every time the page loads.
> >
> > > If u can gimme some details regarding what it is u mean by page
> > > refresh I will be able to help u better.
> >
> > > On May 17, 11:21 am, Flex based developments <[email protected]>
> > > wrote:
> >
> > > > I got some sprite objects(polygon) on a mxml page.The problem is as
> > > > soon as the page is refreshed the sprite is cleared.
> > > > Can anyone suggest how to keep or stop the clearing of sprite objects
> > > > on refresh.
> >
> > > > Thanks.
> >
> > > > Abhilash
>
> --
> 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.
>
>

-- 
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