logs the change event to flashlog.txt each time the user changes panels
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Accordion id="accordion1" height="450"
change="trace('change');">
<mx:Form id="shippingAddress" label="Address">
<mx:FormItem id="sfirstNameItem" label="First Name">
<mx:TextInput id="sfirstName" />
</mx:FormItem>
</mx:Form>
<mx:Form id="billingAddress" label="Address">
</mx:Form>
<mx:Form id="creditCardInfo" label="Information">
</mx:Form>
<mx:Form id="submitOrder" label="Submit">
<mx:Button id="lastButton" label="Last" click="accordion1.selectedIndex = accordion1.numChildren - 1;" />
</mx:Form>
</mx:Accordion>
</mx:Application>
Related examples in the same category