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 8812299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:34:26+00:00 2026-06-14T03:34:26+00:00

I am facing an issue in retrieving value in ActionScript from TitleWindow mxml. Following

  • 0

I am facing an issue in retrieving value in ActionScript from TitleWindow mxml. Following is the UpdateRelease.mxml

<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" 
            title="Title Window" x="168" y="86">
<mx:Script>
    <![CDATA[
        import com.paul.data.ReleaseVO;
        import mx.controls.Alert;
        import mx.controls.Text;
        import mx.managers.PopUpManager;

        [Bindable]
        public var i_ReleaseVO:ReleaseVO = null;

        // Event handler for the OK button.
        protected function updateReleaseData(): void {
            if(releaseName.text == '')
                Alert.show("Release Name cannot be null");
            else if(releaseDate.text == '')
                Alert.show('Release Date cannot be null');
            else
                (parentApplication as Main).mainScreen.updateReleaseEvent();
        }
    ]]>
</mx:Script>
<mx:Canvas>
    <mx:VBox>
    <mx:HBox>
        <mx:Label text="Release Name"/>
        <mx:TextInput id="releaseName" width="100%" text="{i_ReleaseVO.release}"/>
    </mx:HBox>
    <mx:HBox>
        <mx:Label text="Release Date"/>
        <mx:DateField id="releaseDate" width="100%" selectedDate="{DateField.stringToDate(i_ReleaseVO.relDate, 'YYYY/MM/DD')}"/>
    </mx:HBox>
    <mx:HBox>
        <mx:Label text="Other Info"/>
        <mx:TextInput id="relOtherInfo" width="100%" text="{i_ReleaseVO.otherInfo}"/>
    </mx:HBox>
    <mx:HBox>
        <mx:Button label="OK" click="updateReleaseData();"/>
        <mx:Button label="Cancel" click="PopUpManager.removePopUp(this);"/>
    </mx:HBox>
    </mx:VBox>
</mx:Canvas>

Following is ActionScript code snippet

    public function updateReleaseEventHandler( pEvent:Event ): void {

        if(i_RequestServiceProxy != null) {
            var i_RequestParams:Object ={};
            i_HttpXMLRequest = new HttpXMLRequest();
            var obj:Object = new Object();
            obj["release"] = this.mainView.updateReleaseValueView.releaseName.text;
            obj["releaseDate"] = this.mainView.updateReleaseValueView.releaseDate.text;
            obj["otherInfo"] = this.mainView.updateReleaseValueView.relOtherInfo.text;
            i_RequestParams = i_HttpXMLRequest.getUpdateReleaseParams( obj );
            i_RequestServiceProxy.updateRelease( i_RequestParams );
        } else {
            Alert.show("i_RequestServiceProxy is NULL");
        }
    }

Following is MainView.mxml showing the inclusion of UpdateRelease.mxml

<s:VGroup width="100%" height="100%" >
    <mx:ViewStack id="vs">
        <views:UpdateRelease id="updateReleaseValueView" width="100%" height="100%"/>
    </mx:ViewStack>
</s:VGroup>

The issue is in the following statement in ActionScript file.
I found that the following statements don’t work as expected. The execution fails at the first one below. Can someone point out what is the mistake here?

            obj["release"] = this.mainView.updateReleaseValueView.releaseName.text;
            obj["releaseDate"] = this.mainView.updateReleaseValueView.releaseDate.text;
            obj["otherInfo"] = this.mainView.updateReleaseValueView.relOtherInfo.text;
  • 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-14T03:34:27+00:00Added an answer on June 14, 2026 at 3:34 am

    I couldn’t figure out the problem yet. But I found a different way to get around this. I declared some variables in the parent mxml (from where I launch the popup) and set those variables with values from pop-up when “OK” button click is handled. It works now. I don’t think this is a good idea, but I am going to ahead with this approach until I figure out the problem with the above code.

    And, I thank those who spent their time reading the question to find the problem 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm facing an issue with character encoding in linux. I'm retrieving a content from
Facing some issue in Talend Admin Console, the jobs that are running from IDE
Im facing an issue with The following: public class Person { private long id;
I am facing issue with the following Json reponse object in the javascript eval
I am facing an issue with setting a value of Excel Cell. I get
I am facing some issues while retrieving data from a doctrine pager object! Let
We are facing an issue where the following check fails intermittently in IE: pseudocode:
I am facing strange issue. I have wep-part that reads data from user's profile.
I am facing issue in looping in the following code,i am passing a list
issue facing while loading the messages in to mq channel, recieving an error like

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.