New MXML Component dialog
Use this dialog to specify the settings for an MXML component to be created. You can also create a new package if you specify the package that doesn't yet exist.
Item | Description |
---|---|
Name | Specify the name of the component. This is the name of the .mxml file which will be created. When the cursor is in this field, you can use the Up and Down arrow keys to browse the contents of the Template list. |
Package | Specify the fully qualified name of the package in which the component should be created. To do that, you can:
This field may be left blank. In this case, the component will be created in the default root package (usually corresponds to the If you type the name of a package that doesn't yet exist (the name in this case is shown red), the corresponding package will be created. You can create more than one package at once. For example, if you type |
Template | Select the file template to be used. Initially, there is only one choice which is different depending on the Flex SDK version associated with the active build configuration (MXML 4 Component for Flex SDK 4 or MXML 3 Component for Flex SDK 3).
To edit an existing file template or to create a new one, click If the selected template contains variables whose values are undefined, the Next button appears in the dialog instead of the Create button. In such a case, if you click Next, an additional dialog opens in which you can set the variable values. (This may happen if a custom template that contains custom variables is used.) See also, Predefined file template variables for ActionScript and Flex and An example of creating a custom file template for an MXML component. |
Parent component | Specify a parent component for the component that you are creating. The parent component defines the root tag of the new MXML component, e.g. <s:Application> , <s:Module> , <s:ComboBox> . To specify the parent component, you can:
|