application.registerClass
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Macromedia Flash Server > application.registerClass




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    application.registerClass  
JesterXL


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-24-06 12:11 AM

Can someone elaborate on this method or show a working example?

I've used this technique client side with AMFPHP & OpenAMF via Flash
Remoting and it works.  I'm guessing my class package is somehow messing it
up but not sure.

Ex.

application.registerClass("com.jxl.vidconverter.vo.fcs.FCEncodeInfo",
FCEncodeInfo);

Error registering class: name mismatch
(com.jxl.vidconverter.vo.fcs.FCEncodeInfo, FCEncodeInfo).


If I just make it FCEncodeInfo, my client just gets back [object Object]
,
and his instanceof != FCEncodeInfo.

--JesterXL

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






[ Post a follow-up to this message ]



    RE: application.registerClass  
Stephen Beattie


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-26-06 12:11 AM

Hi Jester,

You using arguments in your constructor? - try removing them.

I've no real experience with FlashComm but I had a similar problems with =
OpenAMF/AMFPHP with arguments in my client-side constructor.

Failing that does your custom class pass back o.k. if you use a global =
name rather than a namespace ?

Stephen



-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.
org]On Behalf Of JesterXL
Sent: 24 July 2006 00:02
To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
Subject: [FlashComm] application.registerClass


Can someone elaborate on this method or show a working example?

I've used this technique client side with AMFPHP & OpenAMF via Flash=20
Remoting and it works.  I'm guessing my class package is somehow messing =
it=20
up but not sure.

Ex.

application.registerClass("com.jxl.vidconverter.vo.fcs.FCEncodeInfo",=20
FCEncodeInfo);

Error registering class: name mismatch=20
(com.jxl.vidconverter.vo.fcs.FCEncodeInfo, FCEncodeInfo).


If I just make it FCEncodeInfo, my client just gets back [object =
Object],=20
and his instanceof !=3D FCEncodeInfo.

--JesterXL=20

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






[ Post a follow-up to this message ]



    Re: application.registerClass  
JesterXL


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-26-06 12:11 AM

Me too, lol!  I only added them because the docs said to.

It's kind of hard to test the global namespace because I'm using AS2
packages, so.... at this point, not sure if it's even worth the effort for
the strict typing.  I'll give it 20 minutes though.  Thanks for the tip!

----- Original Message -----
From: "Stephen Beattie" <stephen.beattie-E1mXTKFkLPNuDX9a5hOMvNBPR1lH4CV8@pu
blic.gmane.org>
To: "FlashComm Mailing List" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@pub
lic.gmane.org>
Sent: Tuesday, July 25, 2006 7:04 PM
Subject: RE: [FlashComm] application.registerClass


Hi Jester,

You using arguments in your constructor? - try removing them.

I've no real experience with FlashComm but I had a similar problems with
OpenAMF/AMFPHP with arguments in my client-side constructor.

Failing that does your custom class pass back o.k. if you use a global name
rather than a namespace ?

Stephen



-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.
org]On Behalf Of JesterXL
Sent: 24 July 2006 00:02
To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
Subject: [FlashComm] application.registerClass


Can someone elaborate on this method or show a working example?

I've used this technique client side with AMFPHP & OpenAMF via Flash
Remoting and it works.  I'm guessing my class package is somehow messing it
up but not sure.

Ex.

application.registerClass("com.jxl.vidconverter.vo.fcs.FCEncodeInfo",
FCEncodeInfo);

Error registering class: name mismatch
(com.jxl.vidconverter.vo.fcs.FCEncodeInfo, FCEncodeInfo).


If I just make it FCEncodeInfo, my client just gets back [object Object]
,
and his instanceof != FCEncodeInfo.

--JesterXL

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

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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:37 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register