Follow Flex After Dark on Twitter

Anatomy of an MXML File

The "anatomy" of MXML components and applications...

MXML elements:

  • <mx:Application> -
  • <mx:Style> -
  • <mx:Metadata> -
  • <mx:Script> -
  • Other components -
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
   layout="vertical"
   name="Application Name"
   width="100%" height="100%"
   applicationComplete="init()"
>
   
   <mx:Style>
      
   </mx:Style>
   
   <mx:Metadata>
      
   </mx:Metadata>
   
   <mx:Script>
      <![CDATA[
      
      ]]>
   </mx:Script>
   
   <!-- Other Components -->
   
</mx:Application>

layout

Related Links:

Related Docs
Recent Docs
Random Docs
  • ActionScript Dynamic Classes Dynamic classes in ActionScript can have properties and functions assigned at run-time.
  • MXML Language Overview of the MXML programming language used by Flex.
  • Flex Date Controls Flex Date Controls allow users to select dates and date ranges with DateField and DateChooser.
  • Flex Events Events drive Flex applications. See how to register listeners and dispatch events.
  • Flex Collection Sorting Sorting Collections with the Sort and SortField objects.