reduxdj
|
|
« on: March 19, 2008, 04:21:31 » |
|
HI,
I am having a difficult time of passing the data parameter of an object in my proxy at creation time. I am new at this so I am trying to work from the documentation.
public function LoginProxy ( data:Object = null) {
how do I create a loginVO object on my main application and then make sure that when I create my loginProxy - I have my loginVO created in the constructor as "data", data is always null for me.
Inside my LoginMediator, i am getting the result and I am working it like this...
// User clicked Login Button; try to log in private function onTryLogin ( event:Event ) : void { sendNotification( ApplicationFacade.LOGIN, UrLogin.loginVO ); //trace (UrLogin.loginVO.username); loginProxy.login(UrLogin.loginVO); }
Is the preceding best practice? or am i missing a step.
Thanks, Patrick
|