<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
width="230" height="120"
viewSourceURL="srcview/index.html">
<fx:Script>
private function focusHandler(event:Event):void
{
glowAnim.end();
glowAnim.play([event.currentTarget]);
}
</fx:Script>
<fx:Declarations>
<s:GlowFilter id="glow" color="0x00ffff" blurX="8" blurY="8"/>
<s:AnimateFilter id="glowAnim" bitmapFilter="{glow}"
repeatCount="0" repeatBehavior="reverse">
<s:SimpleMotionPath property="alpha" valueFrom="0" valueTo="1"/>
</s:AnimateFilter>
</fx:Declarations>
<s:VGroup x="5" y="5">
<s:HGroup>
<s:Button label="Button" focusIn="focusHandler(event)"/>
<s:Button label="Button" focusIn="focusHandler(event)"/>
<s:Button label="Button" focusIn="focusHandler(event)"/>
</s:HGroup>
<s:HGroup>
<s:Button label="Button" focusIn="focusHandler(event)"/>
<s:Button label="Button" focusIn="focusHandler(event)"/>
<s:Button label="Button" focusIn="focusHandler(event)"/>
</s:HGroup>
<s:HGroup>
<s:Button label="Button" focusIn="focusHandler(event)"/>
<s:Button label="Button" focusIn="focusHandler(event)"/>
<s:Button label="Button" focusIn="focusHandler(event)"/>
</s:HGroup>
<s:HGroup>
<s:Button label="Button" focusIn="focusHandler(event)"/>
<s:Button label="Button" focusIn="focusHandler(event)"/>
<s:Button label="Button" focusIn="focusHandler(event)"/>
</s:HGroup>
</s:VGroup>
</s:Application>