I'm trying to see if a passed object is an instance of a specific class.
Why does (child is MyClass) trace false?Code:function setActiveChild(child:MovieClip):void{ trace(child); //outputs [object MyClass] trace(child is MyClass); //outputs false }
How do I get it to be true?




Reply With Quote