kishua
03-29-2003, 09:47 AM
is the following code is a standard and legal way for sending array refernce to a function in flash actionscripts?
function f(arrayObj,i)
{
arrayObj[i]=5;
}
a=new Array(4,4,4,4,4,4);
f(a,2);
I expect to get the array a [4,4,5,4,4,4]
function f(arrayObj,i)
{
arrayObj[i]=5;
}
a=new Array(4,4,4,4,4,4);
f(a,2);
I expect to get the array a [4,4,5,4,4,4]