Applying behaviors in MXML using styles : Style « Style « Flex
- Flex
- Style
- Style
Applying behaviors in MXML using styles

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Style>
@namespace mx "http://www.adobe.com/2006/mxml";
mx|TextArea {
mouseDownEffect: slowWipe;
}
</mx:Style>
<mx:WipeLeft id="slowWipe" duration="5000" />
<mx:TextArea id="myTA" />
<mx:TextArea id="myTA2" mouseDownEffect="none" />
</mx:Application>
Related examples in the same category