hi, please forgive this if it is a dumb question, but I am new to actionscript and would like to use as2lib as a core framework and have searched extensively on this topic, but what I need to know is probably pretty simple.
Does as2lib provide classes for Strongly Typed Collection classes (and of less importance but I'm curious, does it also support Enumerated Datatypes so one can create strongly typed properties whose datatype is an Enumerated type)?
I have found a brief article on some ways to create a collection class in actionscript 2, but it wasn't clear nor would I like to attempt to implement it if it exists in as2lib.
basically, what I am looking for is the correct way to be able to create strongly typed collection classes of my own classes with the following methods: addItem, removeItem, item(), count, clear and accessible by index and key (it would be great but not necessary if the collection was also accessible by key not only index) and work with some kind of a "for each item in collection" statement.
If as2lib does not do this, can someone please suggest where I can look or how I can achieve this?
thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi, please forgive this if it is a dumb question, but I am new to actionscript and would like to use as2lib as a core framework and have searched extensively on this topic, but what I need to know is probably pretty simple.
Does as2lib provide classes for Strongly Typed Collection classes (and of less importance but I'm curious, does it also support Enumerated Datatypes so one can create strongly typed properties whose datatype is an Enumerated type)?
I have found a brief article on some ways to create a collection class in actionscript 2, but it wasn't clear nor would I like to attempt to implement it if it exists in as2lib.
basically, what I am looking for is the correct way to be able to create strongly typed collection classes of my own classes with the following methods: addItem, removeItem, item(), count, clear and accessible by index and key (it would be great but not necessary if the collection was also accessible by key not only index) and work with some kind of a "for each item in collection" statement.
If as2lib does not do this, can someone please suggest where I can look or how I can achieve this?
thanks!