hi all,
Maybe someone could help me !
it’s possible to do this ?
I have an array with some values and i want to pass this values to a function arguments.
example
var theArray:Array = new Array(“test1”,“teste2”,“teste3”);
function hello(t:Number,a:Array){
// do something
test(a)
}
hello(5,theArray)
function test(arg1,arg2,arg3){
// do something
}
I now that i can do like this:
test(theArray[0],theArray[1],theArray[2])
but there is another way to do that ?
thanks in advance,