RE: [flexcoders] Flex2: getters, setters and function literals

2006-05-01 Thread Gordon Smith
: Friday, April 28, 2006 6:41 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex2: getters, setters and function literals On Fri, Apr 28, 2006 at 01:09:59PM -0700, Gordon Smith wrote: I suppose this is perhaps a religious issue, but I think dynamic objects also hurt programmer

Re: [flexcoders] Flex2: getters, setters and function literals

2006-04-28 Thread Dion Mendel
On Thu, Apr 27, 2006 at 03:08:20PM -0700, Gordon Smith wrote: Sorry, you can't dynamically add a getter/setter in AS3. In general, we recommend using non-dynamic classes when possible because they have better performance. What's your use case for wanting dynamic addition of

RE: [flexcoders] Flex2: getters, setters and function literals

2006-04-28 Thread Gordon Smith
something with the resulting 'undefined' value. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dion Mendel Sent: Friday, April 28, 2006 3:14 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex2: getters, setters and function

Re: [flexcoders] Flex2: getters, setters and function literals

2006-04-28 Thread Dion Mendel
On Fri, Apr 28, 2006 at 01:09:59PM -0700, Gordon Smith wrote: I suppose this is perhaps a religious issue, but I think dynamic objects also hurt programmer efficiency. To give an example, the project I am currently working on is using a Ruby on Rails backend and a Flex frontend. The backend

[flexcoders] Flex2: getters, setters and function literals

2006-04-27 Thread Dion Mendel
Hi all, I can dynamically add a property with: this.[prop1] = 3; I can dynamically add a function with: this.[getProp1] = function():int { return 3 } How do I dynamically add a getter/setter? Is it possible in AS3? What I'd like is a way to dynamically do the following: private var

RE: [flexcoders] Flex2: getters, setters and function literals

2006-04-27 Thread Gordon Smith
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dion Mendel Sent: Thursday, April 27, 2006 1:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2: getters, setters and function literals Hi all, I can dynamically add a property with: this.[prop1] = 3; I can dynamically add a function