Have you looked into describeType()?  I understand it is 'expensive'
from a computational perspective, but might avoid the problem you are
having.  It returns xml describing the object.

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of pratikshah83
Sent: Tuesday, September 23, 2008 6:53 PM
To: [email protected]
Subject: [flexcoders] Any other alternative to find the type of an
object (object is oftype)

 

Hi Guys, 

I would like to know if there is any other way to find out if the
object is of a particular type. 

I am currently using the "IS" keyword to check if the object is of a
particular type. (Object is Type)

But doing that is loading the complete class in the swf file which if
increasing the size of the swf to a great extend and affecting the
performance of the application. 

Can you suggest me any way to check for an object is of some type
which would not increase the swf size of than (Object is Type).

Thanks
Pratik

 

Reply via email to