import mx.utils.Iterator; import mx.utils.IteratorImpl; import MyType; import MyTypeCollection; class MyTypeIterator extends IteratorImpl { public function MyTypeIterator(coll:MyTypeCollection) { super(coll); } public function next():MyType { trace("calling MyTypeIterator.next()"); return MyType(super.next()); } }