http://www.action-scripter.com/blog/trackback/780
arguments.length를 이용하면 사용자가 설정한 함수에 전달되는 매개변수의 길이를 알아낼 수 있습니다.

// funNumber 함수 지정
MovieClip.prototype.funNumber = function(a,b,c){
    trace(arguments.length);
}

// Test 1 - funNumber 함수 호출
test.onRelease = function(){
     this.funNumber(value);
}

// trace 결과
1

// Test 2 - funNumber 함수 호출
test.onRelease = function(){
     this.funNumber(value,value,value);
}

// trace 결과
3
2004/09/03 15:12 2004/09/03 15:12
   1   ... 711  712  713  714  715  716  717  718  719   ... 1103    
  믹시