I have found that you cannot bind through a singleton (using a static)
where the the binding gets created before the singleton.  There is no
object to listen to in order to tell when the value of 'getInstance()'
changes. 

-Peter


--- In [email protected], "Paolo Bernardini" 


<[EMAIL PROTECTED]> wrote:
>
> Hi I have a problem:
> 
> When I add a ModelLocator to an mxml page like this:
> 
> [Bindable] private var model:ModelLocator = ModelLocator.getInstance();
> 
> I get a warning that Data binding will not be able to detect
assignments to
> "someProperty".
> 
> this is true for all the properties that use data binding, to get
rid of the
> message I need to specifies "this." before the properties I need to
bind.
> For example this.someProperty and the message goes away.
> Even though it is weird, using "this." solve the problem and I can keep
> working. The problem rise if I'm using states, in the sense that if
I go to
> design view in flexbuilder I wont be able to see the changes on
different
> states, because apparently flexbuilder doesn't understand that
> this.someComponet refers to someComponet on the page an doesn't
update the
> view.
> If I remove the reference to the modelLocator everything go back to
normal.
> Does anyone can explain this odd behavior?
>


Reply via email to