TextInput
編集可能な単一行のテキストフィールドを表示するコンポーネントである。
まずは簡単なMXMLからの利用例を記述しておく。
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="256" height="128">
<mx:TextInput x="10" y="10" id="textInput1" width="140" />
<mx:Button x="170" y="10" label="送信" width="68" click="onClick();" />
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function onClick():void {
Alert.show(textInput1.text);
}
]]>
</mx:Script>
</mx:Application>
索引
- Button
- CheckBox
- ColorPicker
- DateChooser
- DataField
- HSlider
- HorizontalList
- Image
- Label
- LinkButton
- List
- NumericStepper
- PopUpButton
- PopUpMenuButton
- ProgressBar
- RadioButton
- RadioButtonGroup
- RichTextEditor
- SWFLoader
- Text
- TextArea
- TextInput
- TileList
- Tree
- VSlider
- VideoDisplay
- HBox
- VBox
- HDividedBox
- VDividedBox
- Grid
- TabNavigator
- Accordion
- MenuBar

