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

2007-08-27 Thread Libby
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



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

2007-08-27 Thread Peter Farland
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