4 Replies Latest reply on Oct 6, 2009 1:46 PM by SiHoop

    How to add a container to the stage

    SiHoop Level 1

      The code below fails to add Test.mxml to the stage. If I change Test.mxml to be an HBox instead of a UIComponent, it works.What do I have to do to make the contents of Test show up in the TabNavigator if I keep Test as a UIComponent?

      Thank you!


      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:local="*" layout="vertical" creationComplete="init()">
              private function init():void{
          <mx:Panel >        
               <mx:TabNavigator width="300" height="225">
                  <mx:VBox label="Login">
                      <mx:Text text="Instructions go here..." />
                  <mx:VBox label="Instructor">
                      <local:Test id="test" />



      <mx:UIComponent xmlns:mx="http://www.adobe.com/2006/mxml">
          <mx:HBox  id="scoreCard" >
              <mx:Text   text="Total Correct"/>