Knowledge Base |
Accordion Panel V3
Accordion Panel V3 is a professional accordion component that loads movies and movieclips and supports both horizontal and vertical orientation, it supports customized tweens, states and visual styles. Here are all known issues for Accordion Panel V3. If you have any questions that you think we should discuss here please let us know.
Get selected panel and content
myEventListener = new Object();
myEventListener.onRelease= function(evtObj:Object):Void {
trace("onRelease event on panel: " + evtObj.item);
}
componentInstance.addEventListener("onRelease",myEventListener);
To know which one of the panels has been selected, place all the panels inside a list (an Array object) and compare the selected panel to the ones from the list, until you get to the panel you want and retrieve its index.
The attached files might help you understand this procedure.
Files: AccPanel_SelectedItem.zip