[flexcoders] Closures in ActionScript 3?

2009-06-05 Thread Keith Hughitt
Could someone please explain to me how closures work in ActionScript? I am attempting to create a set of Flex Form fields, and assign an event-handler to each of them, however, it seems that after creation, all of the fields have the same event handler. For example: var i:int = 0; for

Re: [flexcoders] Closures in ActionScript 3?

2009-06-05 Thread Dave Cates
...@gmail.com Reply-To: flexcoders@yahoogroups.com Date: Fri, 05 Jun 2009 14:28:43 - To: flexcoders@yahoogroups.com Subject: [flexcoders] Closures in ActionScript 3? Could someone please explain to me how closures work in ActionScript? I am attempting to create a set of Flex Form fields

Re: [flexcoders] Closures in ActionScript 3?

2009-06-05 Thread Manish Jethani
On Fri, Jun 5, 2009 at 7:58 PM, Keith Hughittkeith.hugh...@gmail.com wrote: Could someone please explain to me how closures work in ActionScript? I am attempting to create a set of Flex Form fields, and assign an event-handler to each of them, however, it seems that after creation, all of the