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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:01:56+00:00 2026-05-23T04:01:56+00:00

I have a popup that contains a TabNavigator control. The tabs are dynamically added

  • 0

I have a popup that contains a TabNavigator control. The tabs are dynamically added to the TabNavigator when the popup loads. Is there a good way to tell when one of the tabs is loaded, from the tab itself?

I have a tab that requires a service call to be made, and I don’t want the service call to be made unless the user actually goes and clicks the tab to view it. I could notify the tab from the popup control itself when the TabNavigator index was changed, but that doesn’t seem like a good way to go about doing it. I’m wondering if there’s an event or something I could hook to that would let me know the tab needed to be rendered for the first time (from within the tab control itself). 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-23T04:01:57+00:00Added an answer on May 23, 2026 at 4:01 am

    I think I didn’t quite understand the question, so I’m trying again. I think this code will address your problem.

    The trick is setting the creation policy to “none” for the component. Flex will create the tab, but not the component itself.

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="onCreationComplete()" layout="vertical" minWidth="955" minHeight="600">
    <mx:TextArea id="log" width="100%" height="500"/>
    
    <mx:Script>
        <![CDATA[
            import mx.containers.Canvas;
            import mx.events.FlexEvent;
            private function onCreationComplete():void{
                var canv:Canvas = new Canvas();
                canv.label = "One";
                canv.addEventListener(FlexEvent.CREATION_COMPLETE,onCreateTab);
                canv.creationPolicy="none";
                tn.addChild(canv);
                canv = new Canvas();
                canv.label = "Two";
                canv.addEventListener(FlexEvent.CREATION_COMPLETE,onCreateTab);
                canv.creationPolicy="none";
                tn.addChild(canv);
                canv = new Canvas();
                canv.label = "Three";
                canv.addEventListener(FlexEvent.CREATION_COMPLETE,onCreateTab);
                canv.creationPolicy="none";
                tn.addChild(canv);
            }
    
            private function onCreateTab(event:Event):void{
                log.text+=event.currentTarget.label+ " created for the very first time\n";
            }
        ]]>
    </mx:Script>    
    <mx:TabNavigator id="tn" width="500"/>
    </mx:Application>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form in my jsf page(a popup) that I used to upload
I am creating a popup JFrame that will have a message and yes/no buttons.
I am having the following problem under Internet Explorer 7/8: I have a popup
i have a drop down list contains the name of reports and each report
I'm currently building an air app with FB 4. I have a custom control
I am programming a database. I have one requirement, I am unsure how to
<a href=tags.php onclick=return popitup('tags.php')>tags</a> I have this line of code that runs the javascript
How can I use JavaScript/jQuery to populate a popup-window with data from JS-variables in
How should I go about customising the AutoCompleteBox in Silverlight so that while typing
My scenario: Windows Forms Application with a base master (mdi) form. An Interface that

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.