Set Button label with SetProperty : SetProperty « Development « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Development » SetPropertyScreenshots 
Set Button label with SetProperty
Set Button label with SetProperty
       

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:states>
        <mx:State name="enabled">
            <mx:SetProperty target="{textinput}" name="enabled" value="{true}" />
            <mx:SetEventHandler target="{button}" name="click" handler="currentState=''" />
            <mx:SetProperty target="{button}" name="label" value="Disable" />
        </mx:State>
    </mx:states>
    <mx:HBox id="hbox">
        <mx:Button id="button" label="Enable" click="currentState='enabled'" />
        <mx:TextInput id="textinput" enabled="false" text="example text" />
    </mx:HBox>
</mx:Application>

   
    
    
    
    
    
    
  
Related examples in the same category
w__w__w___.j___ava___2__s___.___c_o___m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.