Hi,
Yes is goojul is very useful at times, but here is also an answering place but from time to time a lot of us post a link instead.
here are a couple of ways, basically the same as each other just different usage
PHP Code:
_global.items = [0, 1, 1, 2, 3, 6, 4, 8, 3, 2];
function numberSplice(whichArray, numberToSplice)
{
for (var i:Number = 0; i < whichArray.length; i++)
{
if (whichArray[i] == numberToSplice)
{
whichArray.splice(i,1);
break;
}
}
return whichArray;
}
trace(numberSplice(items, 4));
//-------------------------------------