And what would be the point of that? You can use an ArrayCollection as a
substitute for Array in just about any situation and it will take care of
the problem. If he could swap the original Array for a different class, just
swap it for ArrayCollection and be done. That's what I would recommend
anyway.

If you extend Array to dispatch events on changes then you just wrote
ArrayCollection again. It would support the methods on Array that aren't on
ArrayCollection. This is assuming you can override the [] access using the
flash_proxy methods, but I'm not sure if that works.... Array isn't a
subclass of Proxy but it overrides their behavior. I'm not sure if you can
do this or if its just magic (ie Flash internals)?

On Fri, Jun 27, 2008 at 2:37 PM, Amy <[EMAIL PROTECTED]> wrote:

> --- In flexcoders@yahoogroups.com, "Jonathan Branam"
> <[EMAIL PROTECTED]> wrote:
> >
> > How would you do that, exactly? How could your extended
> ArrayCollection know
> > the Array had changed? It's just not possible.
>
> Extend Array as well...?
>
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>

Reply via email to