cómo hacer estoAS3 argumento de longitud variable ampliar a llamar a otra función con argumentos de longitud var
function foo(x:*, ...args):* {
}
function bar(x:*, ...args):* {
foo(x, args); // how to expand args ? the args is an array now
}
cómo ampliar args? cuando llamo bar(1,2,3)
, me gustaría que llamar foo(1,2,3)
, pero llamo foo(1,[2,3])