Can I provide array like access to a custom collection object? E.g.
Class MyClass { private var myArray:Array; public function getArray():Array { return this.myArray; } } This would allow access to the array items as so: var someClass:MyClass = new MyClass; thisItem = someClass.getArray[0]; How can I change it so I can achieve the same thing but with access to the items like this: var someClass:MyClass = new MyClass; thisItem = someClass[0]; Hope that makes some sort of sense? Cheers, DannyT This message and any attachments should only be read by those persons to whom it is addressed and be used by them for its intended purpose. It must not otherwise be reproduced, modified, distributed, published or actioned. If you have received this e-mail in error, please notify us immediately by telephone on 01202 237000 and delete it from your computer immediately. This e-mail address must not be passed to any third party or be used for any other purpose. Every reasonable precaution has been taken to ensure that this e-mail, including attachments, does not contain any viruses. However, no liability can be accepted for any damage sustained as a result of such viruses, and recipients are advised to carry out their own checks. Moov2 Ltd cannot accept liability for statements made which are clearly the senders own and not made on behalf of the Moov2 Ltd. An e-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business purposes. _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders