Warning: opendir(/var/www/html/wp-content/mu-plugins): Failed to open directory: Permission denied in /var/www/html/wp-includes/load.php on line 981
Comments on: AS3: Passing an array into a function using the …rest parameter
https://sewonist.com/as3-passing-an-array-into-a-function-using-the-rest-parameter/
sewonist = sewon + artistFri, 10 Apr 2020 03:41:18 +0000
hourly
1 https://wordpress.org/?v=6.9.4
By: hika
https://sewonist.com/as3-passing-an-array-into-a-function-using-the-rest-parameter/#comment-330
Wed, 23 Feb 2011 02:39:33 +0000https://sewonist.com/?p=2021#comment-330ㅎㅎ 코드를 잘보세요. rest를 처리하는 이슈와 함수내부의 함수를 apply와 무관해요.
external에 apply하기전에 rest를 strip하는건 무관한 이슈에요.
]]>
By: sewonist
https://sewonist.com/as3-passing-an-array-into-a-function-using-the-rest-parameter/#comment-329
Wed, 23 Feb 2011 01:04:22 +0000https://sewonist.com/?p=2021#comment-329In reply to hika.
호~ 분명 그런 케이스도 있을 수 있겠군요. 하지만 예와 같이 ExternalInterface.call 처럼 수정 할 수 없는 함수에 대해서는 apply 해야 되지 않을까요?
]]>
By: hika
https://sewonist.com/as3-passing-an-array-into-a-function-using-the-rest-parameter/#comment-328
Wed, 23 Feb 2011 00:52:43 +0000https://sewonist.com/?p=2021#comment-328하지만 실제 상황은 둘다 보내고 싶을때가 많다는거에요.
인자로 보낸 모든 녀석을 전부 visible false로 해주는 함수가 있다고 해봐요.
visibleFalse( getGroup1(), child1, menuItems )
요개 현실이죠. 배열과 그냥 요소가 같이 날아가요.
따라서 해결방법은 apply가 아니라 arrayStrip을 구현하는거죠.
arrayStrip( [a,4,7], 6 ) = [a,4,7,6]
이 함수를 구현하셔서 rest사용함수 내부에 배치하세요.
function visibleFalse( …param ):void{
param = arrayStrip( param );
…,.
]]>
By: sewonist
https://sewonist.com/as3-passing-an-array-into-a-function-using-the-rest-parameter/#comment-327
Tue, 22 Feb 2011 12:53:47 +0000https://sewonist.com/?p=2021#comment-327AS3: Passing an array into a function using the …rest parameter – https://sewonist.com/2011/02/as3-passing-…
]]>