Use getStyle() with behaviors defined in MXML : Style Get Set « Style « 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 » Style » Style Get SetScreenshots 
Use getStyle() with behaviors defined in MXML
Use getStyle() with behaviors defined in MXML
           

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:WipeLeft id="slowWipe" duration="5000" />
    <mx:Button id="myB" mouseDownEffect="{slowWipe}" />
    <mx:Button label="get style" click="myTA.text=String(myB.getStyle('mouseDownEffect').duration);" />
    <mx:TextArea id="myTA" />
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Use setStyle() method, set it inline, or use Cascading Style Sheets (CSS)Use setStyle() method, set it inline, or use Cascading Style Sheets (CSS)
2.Using setStyle to programmatically manipulate a style propertyUsing setStyle to programmatically manipulate a style property
3.Use setStyle to change font sizeUse setStyle to change font size
4.Use setStyle to change font styleUse setStyle to change font style
5.Cast target to a UIComponent before calling the setStyle() methodCast target to a UIComponent before calling the setStyle() method
6.Use setStyle() methodUse setStyle() method
7.Using the setStyle() method to apply graphical skinsUsing the setStyle() method to apply graphical skins
8.Using setStyle() method with a triggerUsing setStyle() method with a trigger
9.Use the setStyle() method to apply the custom class to the item renderer.Use the setStyle() method to apply the custom class to the item renderer.
10.Use getStyle() with effects defined in MXMLUse getStyle() with effects defined in MXML
11.Set a style property inline, and then reads that property with the getStyle() methodSet a style property inline, and then reads that property with the getStyle() method
w_w__w___.___j___a__va__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.