I have compiled some common AS3 utility APIs for public use as specified under the MIT license.
The utilities APIs are comprised of the following:
DeepCopy:
Creates a Deep Copy of an object reference to a new memory address and returns the cloned object
HashMap:
Creates a HashMap of object key / values as well as provides a standard API for working with a HashMap
ICollectionViewSortHelper:
Provides an API for collection alpha / numerical, ascending / descending sorting
Introspection:
Provides a robust API which performs detailed object introspection on a specified type
IteratorFactory:
Factory Pattern implementation which provides an API for Iterator instantiation
ObjectIterator:
Iterator implementation which provides methods for iterating over an object
ArrayCollectionIterator:
Iterator implementation which provides methods for iterating over a Collection
ArrayIterator:
Iterator implementation which provides methods for iterating over an array
StringUtil:
All static class which extends mx.utils.StringUtil to add additional methods for working with Strings
AVM2MemoryUtil:
All static class which returns the current memory allocated to a Flash Player instance in bytes, kilobytes or megabytes
I will continue to add to the utils package and make the updates regularly available. You can download the swc as well as view the ASDoc
Thanks alot for the contribution Eric.
No problem, I recently added an Introspection / Reflection API which I will publish shortly.
Enjoy,
Eric
thanks a lot eric, this has really saved my time.
I am getting error on getValues() function of HashMap. Can you please post the latest swc file.
Regards,
Sachin.