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

  • Home
  • SEARCH
  • 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 7024255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:49:01+00:00 2026-05-27T23:49:01+00:00

This will be a really easy one for someone i’m sure. I just need

  • 0

This will be a really easy one for someone i’m sure. I just need to know the event that will allow me to call a funciton every time the pop up window is opened.

<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"  width="400" 
height="120" title="Change Offer/Event Name" showCloseButton="true" close="PopUpManager.removePopUp(this)"
horizontalScrollPolicy="off" verticalScrollPolicy="off" creationComplete="init()">
<mx:Script>
    <![CDATA[
        import mx.controls.Alert;
        import mx.events.CloseEvent;
        import mx.managers.PopUpManager;

        private function init():void{
            txtNewName.text = parentApplication.cmbOfferName.selectedItem.TEMPLATENAME;
        }
    ]]>
</mx:Script>

<mx:Canvas width="374" height="74" horizontalScrollPolicy="off" verticalScrollPolicy="off">
    <mx:TextInput id="txtNewName" x="72" y="16" width="240"/>
    <mx:Label x="6" y="18" text="New Name"/>
    <mx:Button x="317" y="16" label="Ok" width="47" click="checkName()"/>
</mx:Canvas>

I have the init() function called in creationComplete which will bring in the value the first time the window is opened but I need it to call the function every time the popup is opened. I have tried, activate, creationComplete, addedToStage, which all dont work.

Oh just to note as well, I cant just set the text input’s text property to be bindable to the combobox as I will potentially be selecting from multiple comboboxes depending on what canvas i am viewing.

Thanks in Advance

  • 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-05-27T23:49:01+00:00Added an answer on May 27, 2026 at 11:49 pm

    I managed to solve it myself. I did in fact use ‘addedToStage’ in the TitleWindow Component. The only problem with using addedToStage is that I was trying to populate a textinput in the popup window so this had not been rendered yet. To get round this I simply added a bindable variable which I added the selected combobox value to and added the variable as the dataprovider for the text field on the textInput.

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

Sidebar

Related Questions

this one is really easy. I'm trying to create a Regular Expression that will
This is a really easy one that I thought would be easily found on
This will surely be an easy one but it is really bugging me. I
This will hopefully be an easy one. I have an F# project (latest F#
I'm sure there's a really easy way of doing this. I'm trying to take
Hopefully this will be an easy one for anyone with any Django experience. I'm
This will hopefully be an easy one, but I'm lacking the skills! <select name=search_category
I'm sure this is an easy one, but I've been looking at it for
I feel like this question has a really easy answer and I'm just overlooking
This will require a little setup. Trust me that this is for a good

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.