Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
issues with local SharedObject
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Vijay Khambalkar  
View profile  
 More options Jul 17 2007, 1:04 am
From: "Vijay Khambalkar" <vkhambal...@gmail.com>
Date: Tue, 17 Jul 2007 10:34:40 +0530
Local: Tues, Jul 17 2007 1:04 am
Subject: issues with local SharedObject

Hi all,
I am facing issues with local SharedObject. I have code like this

loginDetails = SharedObject.getLocal("loginDetails");
var voUser:UserVO;
loginDetails.data.loginDetails = voUser;

I am storing the UserVO object into the data property of SharedObject. But
when I tried it to get it back from the property in the following way

var newVOUser:UserVO = UserVO(loginDetails.data.loginDetails);

Its giving me the typecasting error. Why? any workaround to this problem?

Thanks in advance
Vijay Khambalkar


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
karan  
View profile  
 More options Jul 17 2007, 3:31 am
From: karan <karan.pra...@gmail.com>
Date: Tue, 17 Jul 2007 13:01:10 +0530
Local: Tues, Jul 17 2007 3:31 am
Subject: Re: [flex_india:1590] issues with local SharedObject

Did you try this one
var newVOUser:UserVO = loginDetails.data.loginDetails as UserVO;

On 7/17/07, Vijay Khambalkar <vkhambal...@gmail.com> wrote:

--
regards
karan
mindrulers.blogspot.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Abdul Qabiz  
View profile  
 More options Jul 17 2007, 7:23 am
From: "Abdul Qabiz" <abdul.qa...@gmail.com>
Date: Tue, 17 Jul 2007 16:53:22 +0530
Local: Tues, Jul 17 2007 7:23 am
Subject: Re: [flex_india:1598] Re: issues with local SharedObject

Hi,

If you try to serialize a custom-class-instance to SharedObject, it is
serialized as AMF. Type information is lost so while retrieving the object
it is returned as Anonymous Object. To allow SharedObject return object as
instance of a class, you need to register the class-alias using
flash.net.registerClassAlias (..).  This API was known as
Object.registerClass (..) in AS2.

registerClassAlias (..) -
http://livedocs.adobe.com/flex/201/langref/flash/net/package.html#reg...()

I searched to see if someone has used before writing some code, I found an
entry on Tushar's blog:-

http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-class...

-abdul

On 7/17/07, karan <karan.pra...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vijay  
View profile  
 More options Jul 17 2007, 11:58 pm
From: Vijay <vkhambal...@gmail.com>
Date: Tue, 17 Jul 2007 20:58:13 -0700
Local: Tues, Jul 17 2007 11:58 pm
Subject: Re: issues with local SharedObject
Thanks alot, It solved my problem, registerClassAlias(aliasName,
class) Where aliasName is the object where we are holding this
property. :)

On Jul 17, 4:23 pm, "Abdul Qabiz" <abdul.qa...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google