[flexcoders] Re: Remote Objects - a reflective way to determine class?

2007-08-27 Thread Libby
Yeah, I tried that - it returns Object.

--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote:

 See: flash.utils.getQualifiedClassName()
 
 http://livedocs.adobe.com/flex/2/langref/flash/utils/package.html#getQua
 lifiedClassName()
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Libby
 Sent: Monday, August 27, 2007 8:50 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Remote Objects - a reflective way to determine
 class?
 
 Does anyone know of a technique to determine the true class of an object
 returned via remoting when Flex only knows it as an Object? I have tried
 if(Object is ClassName) and if(Object instanceOf
 ClassName) and also tried various casting combinations but so far I
 cannot determine what my returned Object is without parsing it to look
 for a specific field - not very object-oriented : (
 
 Thanks,
 Libby
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links





RE: [flexcoders] Re: Remote Objects - a reflective way to determine class?

2007-08-27 Thread Peter Farland
Assuming that a typed object was returned via AMF, this means that the
Flash Player did not find the class definition for the alias reported in
the typed object in the AMF response.

Ensure that the alias registered for your remote object is correct and
that it is imported and a dependency exists on the type somewhere in
your code so that it is linked into the SWF.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Libby
Sent: Monday, August 27, 2007 12:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Remote Objects - a reflective way to determine
class?

Yeah, I tried that - it returns Object.

--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote:

 See: flash.utils.getQualifiedClassName()
 
 http://livedocs.adobe.com/flex/2/langref/flash/utils/package.html#getQ
 ua
 lifiedClassName()