Re: [flexcoders] Re: Scriptable data binding

2007-04-05 Thread Tom Chiverton
On Wednesday 04 Apr 2007, Janis Radins wrote: I know all that. Problem with [Bindable] keyword is that i can't use it with custom number of values I receive from server side. You can mark an Array bindable, and write the logic to handle the items yourself. -- Tom Chiverton Helping to

[flexcoders] Re: Scriptable data binding

2007-04-04 Thread craig.drabik
I should also mention you're going to want to be careful with this, because if you're binding a lot of strings and then you change the model they're bound to you're going to take a big lump on performance when those strings change and every label in the application has to have it's label property

Re: [flexcoders] Re: Scriptable data binding

2007-04-04 Thread Janis Radins
thanks for reply Yeah you're right. no matter how fast AVM2 is it could cause a problems. Guess I will go with reloading app on language change. On other hand I just realize that thishttp://www.mediaverk.lv/trash/LabelCollection.asclass I wrote actually could make it. Will think on this some

[flexcoders] Re: Scriptable data binding

2007-04-04 Thread craig.drabik
Have a look at the BindingUtils in the flex docs. That will enable you to programatically bind properties in actionscript. Make sure the properties you're binding to in your model are marked [Bindable]. As for creating buttons in actionscript, you create them like any other object and use the

Re: [flexcoders] Re: Scriptable data binding

2007-04-04 Thread Janis Radins
I know all that. Problem with [Bindable] keyword is that i can't use it with custom number of values I receive from server side. I suppose [Bindable] is managed at compile time. 04 Apr 2007 11:09:30 -0700, craig.drabik [EMAIL PROTECTED]: Have a look at the BindingUtils in the flex docs. That