Knowledge Base |
Important! All new questions are usually answered within the next business day.
Accordion Panel V3
(views: 13027)
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.
Open Accordion panels automatically (slide show)
(2009-10-28 - views: 586)
Q: Is there a possibility to create a slide show by opening automatically the panels, one by one, after a timed delay ?
A: You can use the Timer class to create the timed delay between opening panels and the panels can be opened "automatically" by calling the expand(panel_id) method of the component. Please refer to the sample files for more details.
Files: AccPanel_SlideShow_AS3.zip
Files: AccPanel_SlideShow_AS3.zip
User Comments
End after last slide is played
rckeeler,
To achieve that you will have to stop the timer after the last panel was opened. So the "if" statement from the openNextPanel function should look like bellow:
function openNextPanel(evtObj:TimerEvent):void {
currentPanelIndex++;
if (currentPanelIndex >= totalPanels)
{
timerObj.stop();
}
else
{
myAccPanel.expand(currentPanelIndex);
}
}
I hope this helps
posted by florodebat on 2009-11-04
rckeeler,
To achieve that you will have to stop the timer after the last panel was opened. So the "if" statement from the openNextPanel function should look like bellow:
function openNextPanel(evtObj:TimerEvent):void {
currentPanelIndex++;
if (currentPanelIndex >= totalPanels)
{
timerObj.stop();
}
else
{
myAccPanel.expand(currentPanelIndex);
}
}
I hope this helps
Login to post your comment



Thanks for the AS3. Works great. However is it possible to have the accordion stop once it plays the last slide? In other words, not return to slide 1 and loop, etc. Thx!