
• One or more child controls or containers, such as input
controls
You can also insert other types of components into a Form con-
tainer.
The code in Example 4-7 demonstrates use of a Form container
control.
Example 4-7. CommentForm.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" backgroundColor="#FFFFFF"
backgroundAlpha="0">
<mx:Form x="50" y="50" verticalGap="15">
<mx:FormHeading label="Send us comments" />
<mx:FormItem label="Full Name:">
<mx:TextInput id="fullName" />
</mx:FormItem>
<mx:FormItem label="Email:">
<mx:TextInput id="email" />
</mx:FormItem>
<mx:FormItem label="Comments:">
<mx:TextArea id="comments" />
</mx:FormItem>
<mx:FormItem>
<mx:Button id="submit" label="submit" />
</mx:FormItem>
</mx:Form>
</mx:Application>
Figure 4-7 shows the result of this code.
The Form Container | 45
Komentarze do niniejszej Instrukcji