I'm trying to see if a passed object is an instance of a specific class.

Code:
function setActiveChild(child:MovieClip):void{
  trace(child); //outputs [object MyClass]
  trace(child is MyClass); //outputs false
}
Why does (child is MyClass) trace false?
How do I get it to be true?