Mercurial > hg > audiodb
view bindings/as3/ext/asunit/util/ArrayIterator.as @ 735:c625f52cf9b4
* Querier -> Bridge
* Added getSound to Bridge - fetched a slice of audio
* Initial hooks for getSound tests - needs some buffering thought.
author | mas01mj |
---|---|
date | Wed, 15 Sep 2010 15:09:13 +0000 |
parents | 3a0b9700b3d2 |
children |
line wrap: on
line source
package asunit.util { import asunit.util.Iterator; [ExcludeClass] public class ArrayIterator implements Iterator { private var list:Array; private var index:Number = 0; public function ArrayIterator(list:Array) { this.list = list; } public function hasNext():Boolean { return list[index] != null; } public function next():Object { return list[index++]; } public function reset():void { index = 0; } } }