if you just want to store the data between user clicks you dont need to use shared objects. you can use a in memory object. it will be faster and you wont face type casting issues.
---> Akshar Kaul <--- On Thu, May 26, 2011 at 10:28, Abhilash Nagar <[email protected]> wrote: > Hello Akshar, > Thanks for the response.I didn't iterated over vector but i directly used > as keyword on the vector but the value it was finally assigning was null.Yes > you are right- want to store data across user clicks (user going to a > different node and coming back) > > Also there is some link here- > > http://cookbooks.adobe.com/post_How_to_keep_the_type_of_your_objects_when_serializ-8323.html > > > which says if we make a class as remote or use a tag over a class as remote > class and than if we use that shared objects keeps the same types as before > but this option also we tried,it is not giving the result as required. > > Please do suggest. > > Thanks. > > Abhilash > > On Thu, May 26, 2011 at 8:26 AM, Akshar Kaul <[email protected]>wrote: > >> try explicitly type casting it to Feature. >> after you get vector from shared object you can iterate over it and >> convert each element to the Feature type using "as" keyword. >> >> BTW:- from your requirements it looks like you want to store data across >> user clicks (user going to a different node and coming back). is it correct >> or do you want the data to be stored across application reloads as well ? >> >> ---> Akshar Kaul <--- >> >> >> >> On Wed, May 25, 2011 at 17:24, Abhilash Nagar <[email protected]>wrote: >> >>> Hello Akshar, >>> Thanks for your time and response.Yes you are right in that >>> sense.Exploring it further i got the reason. >>> I am using a thirdparty tool called "Openscale".Now when i use shared >>> object on load than what happened is that - >>> >>> As the shared object is stored as type object and not as the original >>> type so when i try to recall it on the load than it need type converstion >>> from Vector.<Object> which is flex shared object to the Vector.<Feature> >>> which is openscale object (at this point it is failing to proceed further. >>> >>> So my next question is if there is anyway i can typecast a >>> flexsharedobject (Type:Object) to openscale thrid party tool object? >>> >>> Please do suggest if you have any options. >>> >>> Thanks. >>> >>> Abhilash >>> >>> On Wed, May 25, 2011 at 5:20 PM, Akshar Kaul <[email protected]>wrote: >>> >>>> As per my understanding you want to store different data for each tree >>>> node. >>>> so you can use different shared object for each tree node, otherwise >>>> when you go to new node the old value will be overwrtiten by the new node . >>>> >>>> ---> Akshar Kaul <--- >>>> >>>> >>>> >>>> On Wed, May 25, 2011 at 12:10, Abhilash Nagar <[email protected]>wrote: >>>> >>>>> Hello vikas, >>>>> >>>>> Thanks for the response. >>>>> >>>>> Saving Vector object data >>>>> >>>>> sharedObj=SharedObject.getLocal("savedData"); >>>>> sharedObj.data.savedArray=vectorobjectlist >>>>> >>>>> sharedObj.flush(); >>>>> >>>>> >>>>> >>>>> Retrieve same data while edit- >>>>> >>>>> >>>>> sharedObj=SharedObject.getLocal("savedData"); >>>>> vectorobjectlist=sharedObj.data.savedArray; >>>>> >>>>> >>>>> Basically this is for one sitetreenode,so when i go to next site tree >>>>> node and return back to this one,i need to reload this data. >>>>> >>>>> >>>>> Thanks >>>>> >>>>> >>>>> Abhilash >>>>> >>>>> >>>>> >>>>> On Wed, May 25, 2011 at 12:02 PM, Vikas Madan <[email protected] >>>>> > wrote: >>>>> >>>>>> If possible throw in your code, so that others can have a look at it. >>>>>> What Akshar meant is you might be flushing out the shared object >>>>>> everytime >>>>>> you reload the page or at the initialization of the app. >>>>>> >>>>>> On Tue, May 24, 2011 at 11:11 PM, Abhilash Nagar < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Hello Akshar, >>>>>>> >>>>>>> Thanks for the response.Not sure resetting means but this is what i >>>>>>> am doing - >>>>>>> >>>>>>> Once the content is loaded,i save it in the shared object and than >>>>>>> again for that particular tree node i again retrieve it as required.But >>>>>>> as i >>>>>>> jump on the next tree node the whole page gets loaded and than again if >>>>>>> i >>>>>>> revert back to the old node than the information is lost. >>>>>>> >>>>>>> Please do suggest. >>>>>>> >>>>>>> Thanks. >>>>>>> >>>>>>> On Wed, May 25, 2011 at 11:12 AM, Akshar Kaul <[email protected] >>>>>>> > wrote: >>>>>>> >>>>>>>> shared object should solve your problems. check your code to make >>>>>>>> sure you are not resetting shared objects on loading.that way every >>>>>>>> time you >>>>>>>> reload you will loose information. >>>>>>>> >>>>>>>> ---> Akshar Kaul <--- >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Wed, May 25, 2011 at 10:38, Abhilash Nagar < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> I tried shared objects but as i reload page the previous >>>>>>>>> information is still lost,so basically on reload i am loosing the >>>>>>>>> information even after using the shared objects. >>>>>>>>> >>>>>>>>> Please do suggest. >>>>>>>>> >>>>>>>>> Thanks. >>>>>>>>> >>>>>>>>> Abhilash >>>>>>>>> >>>>>>>>> On Fri, May 20, 2011 at 10:12 AM, Shalu >>>>>>>>> <[email protected]>wrote: >>>>>>>>> >>>>>>>>>> use shared objects >>>>>>>>>> >>>>>>>>>> On May 18, 3:40 pm, Flex based developments < >>>>>>>>>> [email protected]> >>>>>>>>>> wrote: >>>>>>>>>> > Anyone please suggest how can i maintain sessions in the flex >>>>>>>>>> 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. >>>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> 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. >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Vikas >>>>>> >>>>>> -- >>>>>> 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. >>>>> >>>> >>>> -- >>>> 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. >>> >> >> -- >> 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. > -- 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.

