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 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] How to set a background in FLEX 2 Beta 2

2006-03-22 Thread Dion Mendel
On Wed, Mar 22, 2006 at 02:26:04PM +0530, Manish Jethani wrote: There's no backgroud-repeat in Flex yet. So you'll have to either make your SWF repeat the pattern, or you'll have to write a programmatic skin and go about repeating the pattern in the skin's updateDisplayList method. What

[flexcoders] Flex2 bug report: TabBar selectedIndex

2006-02-28 Thread Dion Mendel
Hi All, Firstly, is there more appropriate place to report bugs with Flex2 other than here or the web form at http://www.macromedia.com/cfusion/mmform/index.cfm?name=wishform Flex 2 beta1 - TabBar bug report. The code below should create a TabBar with the 2nd tab selected. The TabBar is

[flexcoders] Flex 2.0 Remote database sorting

2006-01-10 Thread Dion Mendel
Hi All, I have a database with a large list of records that I want to access from Flex. I wrote a custom class based on mx.collections.IList that retrieves the data in pages, handles caching and recycling of old items. Everything works fine so far. I've used a technique similar to Matt Chotin