Tag Archives: arrays

Shuffle/Randomize Array/Vector in AS3

As3 Array/Vector classes don’t provide an implemented method to shuffle/randomize them. However, that’s not a hard task to do and there are quite a few methods to implement such an algorithm. One of the easiest methods is called Fisher-Yates shuffle. Probably it’s not the fastest way to shuffle an array,… Read more »

How to Remove an Item from an Array in AS3

      No Comments on How to Remove an Item from an Array in AS3

The Array class in actionscript 3 don’t provide a method to remove a specified object. ┬áTo achieve it we have to search and get the index of the object in the array using indexOf method and to remove it using splice method: