Why databinding is not working? User class in bindable. When I set the new user, with setUser the fullname in Myapp in not changed.
In User.AS
public static function setUser(u:User):void{
loggedUser=u;
}
public static function getInstance():User{
if(loggedUser==null){
loggedUser= new User(0,"Pas","
}
return loggedUser;
}
In Myapp.mxml
<mx:Button id="btConnection" label="{User.getInstance().fullname}"
click="openLoginWindow()" />

