make uid as Bindable like this - [Bindable] private var uid:Number;
I hope it'll solve .Try and reply if it works . On Mar 9, 11:59 am, tyagi <[email protected]> wrote: > Hi all, > I am a newbie to flex and am currently doing a project using flex.. > It involves a login module and I am using a singleton class to store > the logged in user details for further reference.. But the problem I > am facing is that the values of attributes of the class are not > getting updated.. > The singleton class code is: > > package classes{ > import mx.controls.Alert; > > public final class LoginAuth{ > private static var instance:LoginAuth = new LoginAuth(); > private var uid:Number; > private var name:String; > > public function LoginAuth(){ > uid=0; > name=""; > } > public static function getInstance():LoginAuth{ > if(instance==null){ > Alert.show("wrong"); > } > return instance; > } > > public function get Userid():Number{ > return uid; > } > public function set Userid(value:Number):void{ > uid = value; > } > public function get UserName():String{ > return name; > } > public function set UserName(value:String):void{ > name=value; > } > } > > } > > and the variable created in one of the mxml file is: > private var auth:LoginAuth = LoginAuth.getInstance(); > > But the problem is if I update the 'uid' value by using auth.Userid=2; > and access that value in a different mxml page then it gives the value > as 0.. > Can you please help me out with this.. > Thanks in advance > > Regards, > Tyagi > > On Mar 2, 11:58 am, Ramesh A <[email protected]> wrote: > > > Dear sudhi > > > declare popup file . public var PopIpSample pop; > > > create the popup window in some method when u call popup window. > > > pop= > > PopIpSample (PopUpManager.createPopUp(this, PopIpSample , false)); > > > then check whether the popup is open or not.. > > if(pop==null) > > create and open > > else > > nothing.. > > > try this and let me know any problem. > > > On Mon, Mar 2, 2009 at 9:37 AM, sudhi <[email protected]> wrote: > > > > Dear Anand, > > > > Thanks a lot for your reply... > > > But you didn tell me why i am geting the error when i click on > > > the datapoint which has already opened a nonModal popup window.. > > > > Thanks and Regards > > > Sudhi --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

