I use this piece of code:

BindingUtils.bindProperty(
                    fiUsername,
                    "label",
                    ResourceManager.getInstance(),
                    {    name: "getString",
                        getter: function(resMan:IResourceManager):String {
                        return resMan.getString("myResources",
"LBL_USERNAME");}
                    });

with fiUsername as a formItem

grtz

2009/1/30 Amy <[email protected]>

>   --- In [email protected] <flexcoders%40yahoogroups.com>,
> "Thomas, Erik" <erik_tho...@...>
> wrote:
>
> >
> > Thanks for the suggestions, Johannes. Unfortunately, using an
> explicit
> > event won't scale well in a big application since every access of a
> > resource string from ActionScript will require this treatment.
> >
> > I've done a -keep-generated-actionscript and tried to grok the
> > ActionScript code the Flex compiler generates when specifying a data
> > binding in MXML and it just doesn't make sense to me just yet.
> >
> > I'm still on the hunt for a code sample using a ChangeWatcher or
> some
> > means to set up the binding without explicit events. My objective
> is a
> > single line of code just like using BindingUtils.bindProperty. It
> seems
> > like I should be able to write a similar class as BindingUtils and
> > expose an API that takes a Function as the chain property, instead
> of an
> > Object.
> >
> > Anyway, thanks for your suggestion.
>
> Have you seen this presentation? http://tinyurl.com/databinding
>
> I've found it really useful.
>
> HTH;
>
> Amy
>
>  
>

Reply via email to