/** * 判断数值类型数组的值与影片剪辑类型数组的帧数是否一致 * @param arr1 * @param arr2 * @return */ public function judgeAllArr(num_arr:Array, mc_arr:Array):Boolean { var len1:int = num_arr.length; var len2:int = mc_arr.length; if (len1 != len2) { return false; } else { for (var i:int = 0; i < len1; i++) { //trace(arr1[i], arr2[i].currentFrame); if (arr1[i] != arr2[i].currentFrame) { return false; } } return true; } }