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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:42:55+00:00 2026-05-27T20:42:55+00:00

I need to create a flex popup which would be a single instance but

  • 0

I need to create a flex popup which would be a single instance but we can make it visible and invisible whenver we want to display it. I am not sure we can implement this kind of functionality using createPopup or addpopup method. Instance must be one and need to update it every time some event happen and make it visible or invisible.

thanks

  • 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-27T20:42:56+00:00Added an answer on May 27, 2026 at 8:42 pm

    createPopUp requires a class name. All the internals of creating the popup are in that method. You won’t be able to use createPopUp with an existing instance of a window. However, when you call createPopUp, the results you get will be the instance of the new popup you just created.

    However, addPopUp does accept an instance of an already creating component. You’ll want to proceed in one of a few ways:

    1) if the popup instance exists; use addPopUp; otherwise use createPopUp:

    if(myPopUp){
     PopUpManager.addPopUp(myPopUp, etc...)
    } else {
     myPopUp = PopUpManager.createPopUp(this, myPopUpClassName, etc..);
    }
    

    2) Create the popup yourself and always use addPopUp

    if(!myPopUp){
     myPopUp = new myPopUpClass();
    }
    PopUpManager.addPopUp(myPopUp, etc...);
    

    Whenever you want to hide the pop up, do so using the removePopUp() method. This method will not destroy the pop up instance, just remove it from view.

    PopUpManager.removePopUp(myPopUp);
    

    You’re going to have to figure out how to store the reference to your popup outside of the PopUpManager.

    And I warn you that all the code I wrote here is psuedo code.

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

Sidebar

Related Questions

I need to create an extension of a Flex component, which (obviously) means that
I need to know how can we create a exe using flex and air
I need to create a installer package which application i developed using flex air.
Need to create a custom DNS name server using C which will check against
I need to create an ASP page (classic, not ASP.NET) which runs remote shell
I am new to flex and as3 and I need to create a workaround
Something that is very handy in flex is that you can create a component,
I am trying to create a XML variable but I need to include a
I need to popup some buttons in Flex 4. Users should be able to
I need to create an application that will use Flex on the client side

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.