一,文本控件


1 <?xml version="1.0" encoding="utf-8"?>
2 <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
3 layout="horizontal" horizontalAlign="center" verticalAlign="middle"
4 >
5 <mx:Panel title="Leave a comment" paddingBottom="10"
6 paddingLeft="10" paddingRight="10" paddingTop="10"
7 >
8
9 <mx:Text text="Fill out this form to leave us a comment"
10 width="100%">
11 </mx:Text>
12 <mx:Label text="Name" />
13 <mx:TextInput id="myName" />
14 <mx:Label text="Phone" />
15 <mx:TextInput id="myPhone" />
16 <mx:Label text="Comment" />
17 <mx:TextArea id="myComment" width="100%" />
18 </mx:Panel>
19
20 </mx:Application>
21
2 <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
3 layout="horizontal" horizontalAlign="center" verticalAlign="middle"
4 >
5 <mx:Panel title="Leave a comment" paddingBottom="10"
6 paddingLeft="10" paddingRight="10" paddingTop="10"
7 >
8
9 <mx:Text text="Fill out this form to leave us a comment"
10 width="100%">
11 </mx:Text>
12 <mx:Label text="Name" />
13 <mx:TextInput id="myName" />
14 <mx:Label text="Phone" />
15 <mx:TextInput id="myPhone" />
16 <mx:Label text="Comment" />
17 <mx:TextArea id="myComment" width="100%" />
18 </mx:Panel>
19
20 </mx:Application>
21