You can also use instanceof operator to compare the type of objects..
 
var a:Array = new Array();
 
if(a instanceof Array)
{
    //true
}
 
-abdul


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin
Sent: Thursday, October 13, 2005 6:05 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Object properties

I think we also have a className property that you can use since typeof won’t give you any details beyond “object” for a class.

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Derrick Grigg
Sent: Thursday, October 13, 2005 9:01 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Object properties

 

Try the code below, you'll need to put a TextArea somewhere on screen
with the id="trace_txt".

trace_txt.text = 'Object type: ' + typeof(obj) + '\n';
for (var p in obj){
      trace_txt.text += p + ' - ' + obj[p] + '\n';
}

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Alban Soupper
Sent: Thursday, October 13, 2005 8:14 AM
To: Flexcoders (E-mail)
Subject: [flexcoders] Object properties

Hi all,
is there a way to get the property list and the type of an object?

Best regards,
Alban.


************************************************************************
***********

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager to [EMAIL PROTECTED]

************************************************************************
***********




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












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to