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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:17:13+00:00 2026-05-27T09:17:13+00:00

I have 2 VBox inside a tabNavigator. The code snippet of VBox I am

  • 0

I have 2 VBox inside a tabNavigator.

The code snippet of VBox I am interested is as below

<mx:TabNavigator  id ="tabNav">

<mx:VBox label="Class Details" name="clsDetail" id="ClsDetails" height="301" width="300" >
       <mx:FormItem label="PropID"  name="PropoId" id="propoIDForm" direction="horizontal">
            <mx:NumericStepper id="propagatedIDInput" name ="objId"  minimum="0" maximum="100" stepSize="1" width="65"/>
       </mx:FormItem>

<mx:FormItem label="Difficulty" direction="horizontal">
                    <mx:RadioButtonGroup id="difficulty"/>
                    <mx:RadioButton label="Easy" groupName="difficulty" value="1"/>
                    <mx:RadioButton label="Medium" groupName="difficulty" value="2"/>
                    <mx:RadioButton label="Hard" groupName="difficulty" value="3"/>
          </mx:FormItem>

</mx:VBox>
</mx:TabNavigator>

I am trying to set the Numeric stepper runtime and I am not able to do it. Tried 2 approaches

Approach 1: iterate through children and get the one

   var VBoxChildren:Array = ClsDetails.getChildren();
   for each(var currentFormItem:FormItem in VBoxChildren)
    {
     var FormChildren:Array = currentFormItem.getChildren(); //somehow it is becoming null
       for each(var currentItem:* in FormChildren) //doesn't go in since the array is null)
            {
              if(currentItem is NumericStepper)
                {
                 (currentItem as NumericStepper).value = int(markedObject.propagatedID);
                }
            }
      }

Approach 2: try to get children byname

  var myVBox:VBox = tabNav.getChildByName("clsDetail") as VBox;

   var frmItem:FormItem = myVBox.getChildByName("PropoId") as FormItem;//issue it becomes null ..somhownot able to get this children even though it is visible when I debug

    var  objId:NumericStepper = frmItem.getChildByName("objId") as NumericStepper; undefined as above is null

I am not sure what am I missing here …suggestions most appreciated!!

Thanks
Akshay
  • 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-27T09:17:14+00:00Added an answer on May 27, 2026 at 9:17 am

    I posted my question on adobe forum and the response solved it…actually the issue of deffered instantiation was not setting my child components inside a tabnavigator and were setting just VBox ( the first child)…

    All I was missing was to set creationPolicy = all(as explained by my comments above) …and it worked like charm..

    Here’s a good read on PureMVC about deffered instatiation of Flex components http://puremvc.org/content/view/91/188/

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

Sidebar

Related Questions

I Have a VBox, and set the verticleGap = 0. Inside the VBox I
I have a VBox, I assigned a handler to click, and inside the VBox
I have three datagrids inside VBox container. Since I don't want scrollbar in my
I have an mx:vbox and inside i have several mx:text elements. how do i
children inside hbox and vbox have spacing between them, how do you remove this
I have the below function creating new panels inside my ViewStack.. This works fine
I have a VBox inside a Canvas. The 'red bars' are custom components based
I have a VBox inside which I have 4 HBoxes. The second level HBox
I have problem while adding a child to a GtkVBox. The VBox is inside
I have strange problem with XUL layouts. My current code: <xul:vbox> <xul:hbox> .. some

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.