偶尔在flashseer上讨论起来的,delete与前版本的有很大区别代码:var var1:Boolean=truetrace("var1="+var1)//truedelete var1trace("var1="+var1)truedelete在as2无所不能,到了as3,连个简单变量也不能删除,其实,delete只能删除动态创建的变量var arr:Array=[0,1]trace("arr="+arr,"length="+arr.length)//arr=0,1 length=2delete arrtrace("arr="+arr,"length="+arr.length)//arr=0,1 length=2delete arr[0]trace("arr="+arr,"length="+arr.length)//arr=,1 length=2也就是说,动态类(Object,Array,MovieClip等)的实例动态添加的变量可以用delete删除