<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2009/04/22/looping-through-buttons-in-a-spark-buttonbar-control-in-flex-gumbo/ -->
<s:Application name="Spark_NumericStepper_arrowKeysWrapFocus_test"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/halo">

    <fx:Script>
        <![CDATA[
            protected function checkBox_change(evt:Event):void {
                btnBar.arrowKeysWrapFocus = checkBox.selected;
            }
        ]]>
    </fx:Script>

    <mx:Form>
        <mx:FormItem label="arrowKeysWrapFocus:">
            <s:CheckBox id="checkBox"
                    change="checkBox_change(event);" />
        </mx:FormItem>
    </mx:Form>

    <s:ButtonBar id="btnBar"
            horizontalCenter="0"
            verticalCenter="0">
        <s:dataProvider>
            <s:ArrayList source="[Red,Orange,Yellow,Green,Blue]" />
        </s:dataProvider>
    </s:ButtonBar>    

</s:Application>