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.
Accordion Panel communicates with a loader
You'll need to have an AS3 accordion panel component on the stage, with an instance name of "accPanel" and a LoaderProV3AS3 component, with the instance name of "ldr". Here is the code to do it:
import com.jumpeye.Events.AccordionPanelEvents;
// We need to listen for the "onExpand" event, so when one of the items
// is selected, the corresponding image loads into the loader object.
accPanel.addEventListener(AccordionPanelEvents.EXPAND, expandHandler);
function expandHandler(evtObj:AccordionPanelEvents):void {
// evtObj.item - is the item that has just been expanded
// the "largeImage" attribute from the xml file is added as property on the item
ldr.source = evtObj.item.largeImage;
}