Macromedia Flash Server - application.registerClass with packages?

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > August 2006 > application.registerClass with packages?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author application.registerClass with packages?
Brian Lesser

2006-08-05, 1:12 am

Hi,
I have some client side classes in packages (AS2). For example a class:
myPackage.MyClass. On the client side I seem to be able to register the
class for serialization:

Object.registerClass("myPackage.MyClass", myPackage.MyClass);

But I can't seem to do the same thing on the server. There seems to be
no way to setup:

application.registerClass("myPackage.MyClass", myPackage.MyClass);

without getting some sort of error.

Does anyone know if there is a workaround for what appears to be a
AS2/JavaScript 1.5 mismatch?

Yours truly,
-Brian

--
________________________________________
______________________________
Brian Lesser
Assistant Director, Teaching and Technology Support
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario Phone: (416) 979-5000 ext. 6835
M5B 2K3 Fax: (416) 979-5220
Office: AB48D E-mail: blesser-6s6ziW1YCwCw5LPnMra/2Q@public.gmane.org
(Enter through LB66) Web: http://www.ryerson.ca/~blesser
________________________________________
______________________________

________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Bill Sanders

2006-08-05, 7:11 am

Hi Brian,

This may seem like a bruttish solution (and probably defeat the whole
purpose of setting up the package/class structure), but wouldn't you
have to build some kind of "translator" that would first pass it off
as variables and then to the server-side? On the server-side instead
of having a package/class, the information would be kept in an array.

if that idea just seems dumb, forget where you heard it....
Bill
On Aug 3, 2006, at 12:35 AM, Brian Lesser wrote:

> Hi,
> I have some client side classes in packages (AS2). For example a
> class: myPackage.MyClass. On the client side I seem to be able to
> register the class for serialization:
>
> Object.registerClass("myPackage.MyClass", myPackage.MyClass);
>
> But I can't seem to do the same thing on the server. There seems to
> be no way to setup:
>
> application.registerClass("myPackage.MyClass", myPackage.MyClass);
>
> without getting some sort of error.
>
> Does anyone know if there is a workaround for what appears to be a
> AS2/JavaScript 1.5 mismatch?
>
> Yours truly,
> -Brian
>
> --
> ________________________________________
______________________________
> Brian Lesser
> Assistant Director, Teaching and Technology Support
> Computing and Communications Services
> Ryerson University
> 350 Victoria St.
> Toronto, Ontario Phone: (416) 979-5000 ext. 6835
> M5B 2K3 Fax: (416) 979-5220
> Office: AB48D E-mail: blesser-6s6ziW1YCwCw5LPnMra/2Q@public.gmane.org
> (Enter through LB66) Web: http://www.ryerson.ca/~blesser
> ________________________________________
______________________________
>
> ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com


bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260


________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Brian Lesser

2006-08-05, 7:11 pm

Thanks Bill,
No, that's not what I'm looking for. I want to serialize an object of a
certain class/type that is automatically instantiated when it is
delivered to other clients so I can call its methods. I'm looking for a
simple hack if there is one to make this work with classes in packages.
Yours truly,
-Brian

Bill Sanders wrote:

> Hi Brian,
>
> This may seem like a bruttish solution (and probably defeat the whole
> purpose of setting up the package/class structure), but wouldn't you
> have to build some kind of "translator" that would first pass it off
> as variables and then to the server-side? On the server-side instead
> of having a package/class, the information would be kept in an array.
>
> if that idea just seems dumb, forget where you heard it....
> Bill
> On Aug 3, 2006, at 12:35 AM, Brian Lesser wrote:
>
>
>
> bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260
>
>
> ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com




--
________________________________________
______________________________
Brian Lesser
Assistant Director, Teaching and Technology Support
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario Phone: (416) 979-5000 ext. 6835
M5B 2K3 Fax: (416) 979-5220
Office: AB48D E-mail: blesser-6s6ziW1YCwCw5LPnMra/2Q@public.gmane.org
(Enter through LB66) Web: http://www.ryerson.ca/~blesser
________________________________________
______________________________

________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com