Hi Paul,

if [Bindable] works just for initialization, then I think it is loosing it's
existence altogether.

At least I think it this way.. that [Bindable] changes with every change
that it is bind to. And not just it's initialization.

Waiting for expert comments..

Thanks,
Manu.


Paul Andrews-4 wrote:
> 
> ----- Original Message ----- 
> From: "Manu Dhanda" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Monday, September 22, 2008 3:08 AM
> Subject: [flexcoders] [Bindable] is not getting updated..
> 
> 
>>
>> Hii Guyz,
>>
>> Although it's very strange (even for me), but this [Bindable] tag is not
>> working for me.
>>
>> I am following the cairngorm structure and storing a variable in Model.
>>
>> Now, in one of my code file, if I 'll create a local bindable variable, 
>> that
>> binds to model.. then it is not being updated with the changes in model.
>>
>> [Bindable] private var xyz:String = MyModel.getInstance().someVar;
>>
>> Now, if I use xyz in my code then it is not updated. Where as if i use
>> 'MyModel.getInstance().someVar' then I am getting perfect result.
>>
>> Any thoughts here...
> 
> Yes, some thoughts.
> 
> [Bindable] private var xyz:String = MyModel.getInstance().someVar
> 
> Means that xyz is bindable and is initialised with the value of 
> MyModel.getInstance().someVar   .
> 
> It does not mean that xyz changes with the value of 
> MyModel.getInstance().someVar .
> 
> If you wish to have a binding in an mxml file to 
> MyModel.getInstance().someVar  then use "{MyModel.getInstance().someVar
> }", 
> alternatively in actionscript you'll have to specifically set up a binding 
> for it.
> 
> Paul
> 
> 
> 
> 
>>
>> Regards,
>> Manu.
>> -- 
>> View this message in context: 
>> http://www.nabble.com/-Bindable--is-not-getting-updated..-tp19600797p19600797.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Alternative FAQ location: 
>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> Search Archives: 
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
>> Links
>>
>>
>>
>> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Bindable--is-not-getting-updated..-tp19600797p19601220.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to