--- In [email protected], "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> Are you asking "Why doesn't Sprite have a 'children' Array rather than a
> numChildren property and a getChildAt() method?". The answer to that is
> that AS3 lacks strongly typed Arrays, and lacks a way to know when
> you've modified an Array. For example, if you pushed a Sprite onto the
> Array, the Player wouldn't know to add it to the display list.
>  
> Gordon Smith
> Adobe Flex SDK Team
> 

Oh, OK. That is a bit annoying though.

So how come you don't sub class Array and add an 'on added' event that
tells the Player when something is added?

Who cares if Array isn't strongly typed? So long as the Player finds
something that looks and smells like a DisplayObject, wouldn't that be
enough?

Cheers,

monk.e.boy

Reply via email to