Several examples are coded where the Main.mxml base state is empty and
there is a child state called e.g. main App (start) containing the
initial gui components. (Examples are based on the Flex multi-window
architectures).

Does this make cleaner coding? Because one could obviously jump
straight into things without the extra child state? TIA.



<mx:Application 
....... >

  <mx:states>
    <mx:State name="mainApp">
      <mx:AddChild position="lastChild">
        <comp:WindowedApp top="0" left="0" right="0" bottom="0"/>
      </mx:AddChild>
    </mx:State>
  </mx:states>
</mx:Application>

as compared to

<mx:Application
 .....>
      
     <comp:WindowedApp top="0" left="0" right="0" bottom="0"/>
     
</mx:Application>

Reply via email to