as3-collections
as3-collections copied to clipboard
Collection Bindings
Collections should be able to support dispatching notifications when a collection changes.
One way to accomplish this is to create a set of wrapper classes for each base type of collection (i.e. Map
, List
, Set
). These wrappers will delegate functionality to their wrapped collection. Modification methods will dispatch a notification.
Example var map:HashMap = new HashMap(); map = new BindableMap(map);
+1 very useful feature