Applying behaviors in MXML using styles type selector
<?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>