Binding does not work with generic Objects when referencing their
properties. You will have to create a class that has Bindable
properties or that uses a get/set function pair to dispatch events to
allow binding to work. 

Also, even though your example won't work, you need to be in the habit
of adding [Bindable] before variables that you are expecting to be
bindable.

--- In [email protected], "peuga" <[EMAIL PROTECTED]> wrote:
>
> hello coders.
> 
> i'm trying to bind an associative array to some component property,
> something like:
> 
> - - -
> <mx:Script>
>       <![CDATA[
>               [Bindable]
>               public var monitorInfo:Object = new Object();
> 
>               public function click():void{
>                       monitorInfo["sum"] = "hello";
>               }                       
>               
> 
>       ]]>
> </mx:Script>
> <mx:Button label="{monitorInfo['sum']}" click="click();"/>
> - - -
> 
> but flex can't bind this, even with monitorInfo.getItemAt('sum').
> can anyone one help me whith this??
> 
> thanks a lot.
>


Reply via email to