Home : Projects : Flex Builder
Control Text Based Application
.mxml code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal"
width="380" height="320"
horizontalAlign="center" verticalAlign="middle"
>
<mx:Panel
title="Leave a comment"
paddingBottom="10" paddingTop="10"
paddingLeft="10" paddingRight="10"
>
<mx:Text
text="Fill out this form to leave a comment:"
width="100%"
/>
<mx:Label text="Name:" />
<mx:TextInput id="userName" />
<mx:Label text="Email:" />
<mx:TextInput id="userEmail" />
<mx:Label text="Comment:" />
<mx:TextArea id="userComment" width="100%" />
</mx:Panel>
</mx:Application>
html code: