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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:28:24+00:00 2026-05-24T14:28:24+00:00

I am using the flex 4 popup manager to popup a panel, but the

  • 0

I am using the flex 4 popup manager to popup a panel, but the children of the panel are not staying inside the panel. But when i close the popup the children are being removed.

Like this: (sorry i can’t post pics)

           ----------
           l________l
           l        l
  ..... please enterl
           l--------1

Anybody know why? Here’s my code:

var forgotPopup:Panel = PopUpManager.createPopUp(this, forgottenForm, true) as Panel;
        PopUpManager.centerPopUp(forgotPopup);

And here’s what i’m popping up:

<?xml version="1.0" encoding="utf-8"?>
<s:Panel xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/mx" width="218" height="168" skinClass="PanelSkin" title="Reset Details">


    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>

    <fx:Script>
        <![CDATA[

            import mx.controls.Alert;
            import mx.events.FlexEvent;
            import mx.managers.PopUpManager;

            // Handle the close button and Cancel button.
            private function handleCloseEvent():void {
                PopUpManager.removePopUp(this);
            }

        ]]>
    </fx:Script>

    <mx:Form horizontalCenter="0" verticalCenter="0">
        <mx:FormHeading label="Please enter your e-mail address and your login details will be e-mailed to you"/>
        <mx:FormItem label="E-mail">
            <s:TextInput id="userInput" x="78" y="49"/>
        </mx:FormItem>
        <mx:FormItem direction="horizontal">
            <s:Button id="okButton" label="Submit" skinClass="ButtonSkin" />
            <s:Button id="cancelButton" label="Cancel" skinClass="ButtonSkin"/>
        </mx:FormItem>  
    </mx:Form>

</s:Panel>

Any help on this would be brilliant, 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-24T14:28:25+00:00Added an answer on May 24, 2026 at 2:28 pm

    Try to use the following:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Panel xmlns:fx="http://ns.adobe.com/mxml/2009" 
                   xmlns:s="library://ns.adobe.com/flex/spark" 
                   xmlns:mx="library://ns.adobe.com/flex/mx" width="218" height="168" skinClass="PanelSkin" title="Reset Details">
    
    
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
    
        <fx:Script>
            <![CDATA[
    
                import mx.controls.Alert;
                import mx.events.FlexEvent;
                import mx.managers.PopUpManager;
    
                // Handle the close button and Cancel button.
                private function handleCloseEvent():void {
                    PopUpManager.removePopUp(this);
                }
    
            ]]>
        </fx:Script>
    
        <mx:Form left="10" right="10" top="10" bottom="10">
            <mx:FormHeading label="Please enter your e-mail address and your login details will be e-mailed to you"/>
            <mx:FormItem label="E-mail">
                <s:TextInput id="userInput" x="78" y="49"/>
            </mx:FormItem>
            <mx:FormItem direction="horizontal">
                <s:Button id="okButton" label="Submit" skinClass="ButtonSkin" />
                <s:Button id="cancelButton" label="Cancel" skinClass="ButtonSkin"/>
            </mx:FormItem>  
        </mx:Form>
    
    </s:Panel>
    

    If you need to have header word wrapped you should reject standard FormHeading and replace it with Label:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Panel xmlns:fx="http://ns.adobe.com/mxml/2009" 
                   xmlns:s="library://ns.adobe.com/flex/spark" 
                   xmlns:mx="library://ns.adobe.com/flex/mx" width="218" height="168" skinClass="PanelSkin" title="Reset Details">
    
    
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
    
        <fx:Script>
            <![CDATA[
    
                import mx.controls.Alert;
                import mx.events.FlexEvent;
                import mx.managers.PopUpManager;
    
                // Handle the close button and Cancel button.
                private function handleCloseEvent():void {
                    PopUpManager.removePopUp(this);
                }
    
            ]]>
        </fx:Script>
    
        <mx:Form left="10" right="10" top="10" bottom="10">
            <s:Label width="100%" text="Please enter your e-mail address and your login details will be e-mailed to you" fontWeight="bold" />
            <mx:FormItem label="E-mail">
                <s:TextInput id="userInput" x="78" y="49"/>
            </mx:FormItem>
            <mx:FormItem direction="horizontal">
                <s:Button id="okButton" label="Submit" skinClass="ButtonSkin" />
                <s:Button id="cancelButton" label="Cancel" skinClass="ButtonSkin"/>
            </mx:FormItem>  
        </mx:Form>
    
    </s:Panel>
    

    But the best way is to switch to Spark Form which is available since Flex 4.5.

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

Sidebar

Related Questions

Using Flex 3, I would like to take an image snapshot such as this:
Using Flex 3.2, I have a object which extends a TitleWindow. In this TitleWindow
I'm using Flex and Bison for a parser generator, but having problems with the
I'm using flex (lexical analyzer, not Adobe Flex) on a project. However, I want
I need to create a flex popup which would be a single instance but
Using Flex Builder 3 : I have been getting this problem in every single
i am using flex as lexical analyzer and bison as parser generator , but
Im using flex 4 While running a application i got this error Flash Builder
Using Flex 3, I have a Button which is skinned using PNGs specified in
Using Flex and Bison, I have a grammar specification for a boolean query language,

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.