Iterator Patterns are a great way to extend your toolset when
working with Data Collections such as ArrayCollection.

Pick up this great book: Advanced Actionscript 3: Design Patterns

<http://www.amazon.com/Advanced-ActionScript-3-Design-Patterns/dp/0321426568/sr=8-1/qid=1166103490/ref=sr_1_1/104-3042257-9422300?ie=UTF8&s=books>example
from the book to create an ArrayCollection that only accepts the uint
datatype.

package collections
{
  public class UIntCollection{
    private var _data:Array;
  }

  public function addElement( value:uint ):void
  {
    _data.push( value );
  }
}

Reply via email to