Title: Newbie Question about Proxys and User Authentication Post by: skasssam on May 28, 2008, 11:50:33 I am finally starting to get my application off the ground. I am still trying to wrap my heard around all this since I am new to puremvc and flex.
I am authenticating a user using a remoteobject. All that works, I am able to authenticate and change my viewstack if the authentication is successful. On my view that is displayed after the user logs in I want to display a simple "Welcome, <username>" How do I access my user object from an arbitrary view? Here is my code for the loginProxy: public class LoginProxy extends Proxy implements IProxy The loginProxy is called from a notification that is handled by my loginMediator: private function onMouseClick(e:Event):void { I thought that my alert in the mediator should show the user that was authenticated but it returns null. Any help is appreciated. TIA, Shinan Title: Re: Newbie Question about Proxys and User Authentication Post by: puremvc on May 29, 2008, 05:31:45 Have the proxy send a notification with the data as the body Have the appropriate mediator list tha( notification as an interest and respond by taking the data and setting it on the view component.
-=Cliff> Title: Re: Newbie Question about Proxys and User Authentication Post by: skasssam on May 29, 2008, 05:35:13 Yes, indeed. That occurred to me late yesterday after pouring through the forums and documentation. It worked. It is all starting to make more sense to me now.
Thanks Cliff for pureMVC and for taking the time to help us newbies out in the forums. I appreciate it. Regards. |