Just wondering if anyone can help me with this.
I have an array containing single alphabet in every index
and some of them in the array are duplicates. I’m trying to pick an alphabet and if there is an alphabet in that array, I want it remove from the array.
so lets say if i have 3 “a” in the array, I want all 3 to be remove. But my function only remove one alphabet. How do i make it remove all 3?
Also another question is, if i reach the end of the array how to i remove it? if i use splice it doesnt seem that it will remove the last item in the array.
THanks
can anyone help me pls~~~~~Thanks
my code is very simple
for (var i:int = 0; i<alphabetArrayLength; i++) {
if (singleAlphabet_arr* == alphabetPicked) {
answer = singleAlphabet_arr.splice(i,1);
}
}