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 continuously mesh synergistic eyeballs
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


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 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 container's addChild and/or addChildAt methods:






 



[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 container's addChild and/or addChildAt methods:



   




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
thisclass I wrote
actually could make it. Will think on this some more.


04 Apr 2007 07:24:22 -0700, craig.drabik <[EMAIL PROTECTED]>:


  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 refreshed.

 



[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 refreshed.