<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
<mx:Script>
<![CDATA[
import mx.events.NumericStepperEvent;
private function numericStepper_change(evt:NumericStepperEvent):void {
numericStepper.setStyle("focusThickness", evt.value);
focusManager.setFocus(btn);
focusManager.setFocus(numericStepper);
}
]]>
</mx:Script>
<mx:ApplicationControlBar dock="true">
<mx:Button id="btn"
label="click here to remove focus" />
</mx:ApplicationControlBar>
<mx:Form>
<mx:FormItem label="focusThickness:">
<mx:NumericStepper id="numericStepper"
minimum="0"
maximum="10"
change="numericStepper_change(event);" />
</mx:FormItem>
</mx:Form>
</mx:Application>