これはユーザー定義型にも使用できます。
正しい構文は次のようになります。
var myVar1:MyClass;
var myVar2:OtherClass;
if ( myVar1 is MyClass ) trace("myClass");//this trace executes.
if ( myVar1 is OtherClass ) trace("true");//this trace does not execute (if OtherClass does not extend MyClass