Button Click event sets TextArea test : TextArea « Components « Flex






Button Click event sets TextArea test

Button Click event sets TextArea test
   
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Panel title="My Application" paddingTop="10" paddingBottom="10"
        paddingLeft="10" paddingRight="10">
        <mx:TextArea id="textarea1" />
        <mx:Button label="Submit" click="textarea1.text='Hello World';" />
    </mx:Panel>
</mx:Application>

   
    
    
  








Related examples in the same category

1.On value commit in a TextArea, display value by reference its idOn value commit in a TextArea, display value by reference its id
2.Retrieving the current color of the TextArea programmaticallyRetrieving the current color of the TextArea programmatically
3.Binding data between TextInput and TextAreaBinding data between TextInput and TextArea
4.Update TextArea with an ActionScript function when clicking the ButtonUpdate TextArea with an ActionScript function when clicking the Button
5.Use click event to change the TextArea control's background colorUse click event to change the TextArea control's background color
6.Introspect Button control and prints details to TextArea controlsIntrospect Button control and prints details to TextArea controls
7.Creating a TextArea control with Creating a TextArea control with <mx:TextArea>
8.Pop up a TextArea control.Pop up a TextArea control.
9.Add click event for TextAreaAdd click event for TextArea
10.Set style for TextArea vertical scrollbarSet style for TextArea vertical scrollbar
11.Set text value to TextArea with MXMLSet text value to TextArea with MXML
12.HTML text inside TextAreaHTML text inside TextArea
13.Value inside curly braces {} binds the text property of a TextArea controlValue inside curly braces {} binds the text property of a TextArea control
14.Introspects the Button control and prints the details to TextArea controls:Introspects the Button control and prints the details to TextArea controls:
15.Set font style for TextArea and Button
16.Use FormItem to wrap TextAreaUse FormItem to wrap TextArea
17.Not editable TextAreaNot editable TextArea
18.Introspect a TextArea for its method name and return typeIntrospect a TextArea for its method name and return type
19.TextArea control is the binding destination, and both input1.text and input2.text are its binding sourcesTextArea control is the binding destination, and both input1.text and input2.text are its binding sources
20.Bind a source to TextAreaBind a source to TextArea
21.Enter text in TextInput control, text is converted to upper case as it is copied to TextAreaEnter text in TextInput control, text is converted to upper case as it is copied to TextArea
22.TextArea is for long textTextArea is for long text
23.Synchronize TextInput and TextArea with data bindingSynchronize TextInput and TextArea with data binding
24.Creating a TextArea control in MXML by using the tagCreating a TextArea control in MXML by using the <s:TextArea> tag
25.Add a block of TLF-formatted text to the TextArea controlAdd a block of TLF-formatted text to the TextArea control
26.TextArea StylesTextArea Styles
27.difference between correctly and incorrectly applying a non-inheriting style property to a pair of TextArea controlsdifference between correctly and incorrectly applying a non-inheriting style property to a pair of TextArea controls
28.Use styled text inside an MX TextArea controlUse styled text inside an MX TextArea control
29.TextArea ControlTextArea Control
30.TextArea slowly wipes in on mouseDownTextArea slowly wipes in on mouseDown
31.Using enterState and exitState events to update two TextArea controls with the name of the new state and of the old stateUsing enterState and exitState events to update two TextArea controls with the name of the new state and of the old state
32.Get text indexesGet text indexes