Actually in my Flex sample applicaion have Main mxml called Demo.mxml..
in the main mxml file have login button when we click login button Login.mxml file called
protected function button2_clickHandler(event:MouseEvent):void
{
PopUpManager.createPopUp(this,Login);
}
In Login.mxml file doing some authetication useing java..
public var userService:UserService = new UserService();
[Bindable] public var userVO:UserVO = new UserVO();
protected function loginUser(event:MouseEvent):void
{
var rpcAuthenticateUser:AsyncToken = userService.authenticateUser(userid_id.text, password_id.text);
rpcAuthenticateUser.addResponder(new mx.rpc.Responder(handle_authenticate_success, handler_failure));
}
........
userVO=userService.getUser();
......
All are done in Login.mxml file correctly Now i am getting value.
How to get userVO object in Demo.mxml file ?
Actually i’m trying but it give some Null values……Plz help me
Thanks in Advance...
create a model class that is a singleton See my answer here about making a singleton.
then in your Demo.mxml
then in your login form
then when you get the response from the service:
now in your Demo.mxml, userVO is now populated and usable there.