Hi Ben,

That's what I'm doing currently, but it's not ideal because I have to instantiate my class each time I want to use the methods which detracts somewhat from the convenience factor. Perhaps something cleaver can be done with proxies?

Cheers,
Lach


On 14/12/2006, at 11:46 PM, ben.clinkinbeard wrote:

You could write a completely separate utility class that uses Arrays
and ArrayCollections thru composition.

HTH,
Ben

--- In flexcoders@yahoogroups.com, Lachlan Cotter <[EMAIL PROTECTED]> wrote:
>
> Is there any way in ActionScript 3 that you can add methods to an
> existing class short of declaring a new subclass? Something akin to
> Ruby's open classes or Objective-C categories, or the _prototype
> property in ActionScript 2. Anything like that?
>
> In particular, I want to add some methods to Array and
> ArrayCollection to do enumerations, searches and the like.
>
> Cheers,
> Lach

Reply via email to