Flex初学笔记之控件篇
一,文本控件
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
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
posted on 2010-10-15 10:40 Joshua Leung 阅读(127) 评论(0) 编辑 收藏 举报