Hi List,

I've created a dynamic class that extends Array.
What i want to do is pass through items in the constructor just like i do with array ( var blah:Array = new Array("one", "two", "three"); ) What happens now; is that every item i have to push in my self, like so: blah.push("one"). If i push my values; my class returns that current item, if i pass it through the constructor i get back an array. I want to be able to do both; push items seperately and pass through an whole array in its constructor.

Is there something i can like super.apply(this, args) ?

public dynamic class ArrayIterator extends Array
{
        //
        protected var _index:int;
        
        public function ArrayIterator(...args)
        {
                super(args);
                _index = 0;
        }

What am i doing wrong here and what can i do to solve this?

Thanks in advance,

Sidney de Koning
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to