  | |  | What am i doing wrong -- NEVERMIND | What am i doing wrong -- NEVERMIND 2004-02-18 - By Justin Watkins
Back Doh, it was the lack of sleep. I wasn't writing to the SharedObject from within the client, but sending it with nc.call to the server and letting the server write it to the shared object.
When the object was being deserialized by the server, since I didn't have the same corresponding class registered there, the object lost it's association with my class and became an anonymous object, doh.
I had to create a dummy class on the server and register it under the same class name in order to keep the association with the class name.
function Ball () {} application.registerClass("Ball", Ball);
-justin
-- -- Original Message -- -- From: "Justin Watkins" <justin@(protected)> To: <flashcomm@(protected)> Sent: Wednesday, February 18, 2004 12:11 PM Subject: [FlashComm] What am i doing wrong
> Maybe it's the fact that I haven't slept much in like a month, but why can't > I send a class instance to a remote shared object and have it come back as > an instance of that class. > > It's an AS2 class, and I'm registering it in the client code with > Object.registerClass. It seems to function properly from the client code, > but when it comes back, it's a generic object and not an instance of the > class. > > -justin > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > Supported by Fig Leaf Software > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > Lower Prices for Certified Training! Check out new lower prices for > Certified Macromedia Training from Fig Leaf Software. Expand your > skill set with courses in ColdFusion, Flash, Rich Internet > Applications and .NET in the new year. Fig Leaf Software provides > the highest caliber instruction at our training centers in Washington > D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at > your location. > > Get the details at http://training.figleaf.com/ > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > To unsubscribe, e-mail: flashcomm-unsubscribe@(protected) > For additional commands, e-mail: flashcomm-help@(protected) > >
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: flashcomm-unsubscribe@(protected) For additional commands, e-mail: flashcomm-help@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |