Hi Mike - sorry, you've lost me there... The few tests I've done show that "obj is cls" is what I need. Are you saying that does not work?
Michael Schmalle 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. > > > Mike > -- View this message in context: http://www.nabble.com/Equivalent-to-Java%27s-Class.isInstance%28Object%29-instance-method--tp20171501p20190188.html Sent from the FlexCoders mailing list archive at Nabble.com.