Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8922817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:56:35+00:00 2026-06-15T06:56:35+00:00

In my Application using Flex-Blazeds-java…,in my Flex application side have two mxml file Main.mxml

  • 0

In my Application using Flex-Blazeds-java…,in my Flex application side have two mxml file

  1. Main.mxml
  2. Login.mxml

In Main.mxml file have button called Login click this button one popup open that is called Login.mxml
in this File i have authentication logic to connect java…sample code`

public var userService:UserService = new UserService();
[Bindable] public var userVO1:UserVO = new UserVO();
protected function loginUser(event:MouseEvent):void
{

var rpcAuthenticateUser:AsyncToken = userService.authenticateUser(userid_id.text, password_id.text);//Hear authenticateUser(-,-) is a java method it return UserVO object
rpcAuthenticateUser.addResponder(new mx.rpc.Responder(handler_success, handler_failure));

}
private function handler_failure(event:FaultEvent): void {
Alert.show("in handler_failure :" + event.message);

}


   private function handler_success(event:ResultEvent): void {
    userVO = event.result as UserVO;
     Alert.show("test "+userVO.loginId);
        }

Hear Login Working Perfectly according my Database logic and also if it is ResultEvent the Alert box show correct value (for ex:loginId is ‘narasimham‘)…and everthing working perfectly no default in Login.mxml

Now The Problem Start...

I want to Use UserVO object in Main.mxml file so in that i’m using following code..

     public var loginUserVar:Login = new Login();
  protected function afterLoginUser(event:FlexEvent):void
   {
    Alert.show("LoginId ="+loginUserVar.userVO.loginId);        
   }

Actually my thinking this Alert box giving value narasimham but it is giving null value.

Why it is giving Null value?Is their any Scope specify to create variable?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:56:36+00:00Added an answer on June 15, 2026 at 6:56 am

    Correct Ethrbunny i’m not store the value of userVO object so it is not available to Out side mxml file….

    That’s way in Flex(3.5) Application in Login.mxml file i’m adding following code…

    Application.application.userVO = event.result as UserVO;
    //Hear userVO is Object defined in Main.mxml file....
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to develop one simple application using Java, Flex and Blazeds. I
I'm writing a Flex app on top of a Java web application using BlazeDS.
im developing a simple Mxml application using flex 3. I have used simple text
I am building flex application and using blazeDS to pass objects between java and
I need to develop the HTTPS application using Flex and Java. But i have
I am building a Flex application which communicates with a Java server using BlazeDS.
I have a Flex application that connects to a BlazeDS server using the StreamingAMF
I have created an application using Adobe Flex. I took all the files from
I have a Flex application in which I draw a rectangle using: <s:Rect height=20
I've created a facebook application using flex. i tried server side both with apache-tomcat

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.