Knowledge Base


Important! All new questions are usually answered within the next business day.

Accordion Panel V3

(views: 12981)

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

(2008-10-29 - views: 1778)

Q: Is there a way to know which one of the panels was selected, to get its contents ?
A: Yes, it is. First of all, to get the panel's contents, simply use the content property of the panel. When a panel is selected, you can use the onPress or onRelease events to know about it (depending on the navigation mode - "press" or "release") and get the reference to the panel itself (evtObj.item). Next, get the contents of the panel: evtObj.item.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 


User Comments

How can i get the index from the selected panel in ActionScript 3.0
posted by GWVFachverlageGmbH on 2009-09-20

Hi,

can you explain how i can get the index of the selected item in actionscript 3.0?

Many thanks
Get selected panel and content AS3
posted by florodebat on 2009-09-23

The code is similar to the AS2 example excepting the event code. Please find bellow the AS3 code you will have to use in order to get the selected panel.

import com.jumpeye.Events.AccordionPanelEvents;
accordionPanel.addEventListener(AccordionPanelEvents. ITEM_RELEASE, releaseHdl);

function releaseHdl (evt:AccordionPanelEvents):void {

trace(evt.item.content+" -- is the same as -- "+menuItemsList[getItemIndex(evt.item)].content);

}


I hope this helps


Login to post your comment login to post your comment

Other questions in this item:

Installing the Accordion Panel V3 Open the accordion panels automatically Vertical title for horizontal accordion panel Use the Accordion Panel without external XML file Accordion Panel communicates with a loader Use HandCursor on Accordion Panel's items Auto open a panel on startup the title isn't showing in the horizontal mode Load different kind of data into AccordionPanelV3 Dimensions Stopping video content when changing the panel Open the Accordion Panel upwards Panel opens only after content is loaded, when loadExpandedItemsOnly is true Access header title and panel content Access accordion panel loaded with loadMovie inside container clip Non Latin characters Panel opens only after content is loaded, when loadExpandedItemsOnly is true Get the size of panel's content Rotate the direction of the text on horizontal Accordion TEXTU appears in my file HyperLinking panels Getting accurate accordion height Flv playback inside accordion Open URL from panel content, not from panel header Open URL from panel content, not from panel header Load new content without XML Graphics below the accordion panel Acces accordion panel from content Access header title and panel content Acces accordion panel from content Open panels from bottom to top and left to right Non Latin characters Accordion Panel slide show Accordion Panel communicates with a loader Open panels upward for vertical accoirdion and to the left for horizontal accordion Panels with different sizes Load new content without XML Open Accordion panels automatically (slide show)


Back

Knowledge Base Search

Enter keywords below:
Advanced Search
FlashEff 2.0
Create professional flash photo slideshows online

FREE Flash Stuff

Check out these free, fully functional AS3.0 Flash components by Jumpeye:

FlashEff 2.0 Free
(free for non-commercial use)

JC Panorama
(free for non-commercial use)

JC Play List
(fully free)

Basic Menu Pack V3
(free AS3 version)

MCTE V3
(free AS3 version)

JC Player
(free for non-commercial use)

JC Flash Map
(free for non-commercial use)

Flash Bookmarks
(fully free)

ActionScript Bridge AS2-AS3
(fully free)

JS Charts
(free for non-commercial use)

Free Trial Versions

The trial versions do have a major limitation. They will ONLY run into debugger flash player versions, such as the Flash IDE player and the activeX FP used by developers.

Switch from Free Trial version to Full version.

You can switch from Trial to Full versions in a blink of an eye.
See this tutorial in order to find out how.

We accept Google Checkout

Google Checkout Acceptance Mark

Secured by VeriSign