DescribeType is part of the binding process, so anything that has any bindings will give you a free pass at describetype via the cache. But unless you're doing it inside some complex animation, who gives a toss how long it takes? It's sure as hell not going to be long enough to bother your users unless you're doing a hojillion classes at once and not using the cache.
-Josh On Tue, Oct 28, 2008 at 5:06 AM, Amy <[EMAIL PROTECTED]> wrote: > --- In [email protected], "Michael Schmalle" > <[EMAIL PROTECTED]> wrote: > > > > Adding to the insight, if you wanted to use the 'is' operator with > those two > > arguments, you need to create an instance of the Class and then use > the 'is' > > operator. > > This would let you know if it is an instance of the object passed. > > > > public static function > > isObjectInstanceOfClass(obj:Object, cls:Class):Boolean > > { > > return obj is new cls(); > > } > > > > We have asked the player engineers about the performance hit on > this is not > > as bad as describeType in some instances. > > How bout describeTypeCache? > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/

