is : 判断数据类型
var a:int = 1 ;
trace(a is int); //判断a是否是int类型,返回TRUE 或者 FALSE
trace(a is Object); //多态
as :
var a:int = 1 ;
trace(a as int); //1
trace(a as String) ; //null
trace(a as Object); // 1
解决办法:
if( a is int)
{
trace( a as int);
}