My account
Shopping cart
Knowledge base
Support

Knowledge Base

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

Accordion Panel V3

(views: 18958)

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.



Getting accurate accordion height

(2008-03-28 - views: 4687)
Q: Is it possible to get the height of the component? accordionInstance.height returns the height plus content height. So if the accordion is 400 and content height is 150 then the returned height is 550 - even though all headers are collapsed.
A: There's an undocumented event called "onMotionFinished", dispatched when the component finishes the expand or collapse tween. The event object received by the event handler has a property called totalHeight, which represents the final height of the component (after the tween is complete):

import com.jumpeye.Events.AccordionPanelEvents;

myAccPanel.addEventListener("onMotionFinished", motionHandler);

function motionHandler(evt:AccordionPanelEvents):void {
    trace("Accordion panel height :: "+evt.totalHeight);
}


User Comments

That sounds good but...
posted by sammi on 2008-04-07
What if I need to check the size while it is expanding? I have some graphics below the accordion that needs to follow it as it expands or collapses. I am using a trick now where I actually add a dummy accordion item at the bottom with no header height (so it is invisible) and then onEnterFrame I check the y position of that element - and position my graphics there. That can not be the best way ;)
Graphics below the accordion panel
posted by negush on 2008-04-10
Your solution for getting the height actually is not so bad, but if you need to have some graphics below the component, there is another solution to it: http://www.jumpeyecomponents.com/knowledgebase/Accordion-Panel-V3/Graphics-below-the-accordion-panel~466/.
AS3?
posted by themick88 on 2009-11-11
This solution doesn't seem to work for AS3. I get an error: "1046: Type was not found or was not a compile-time constant: AccordionPanelEvents..
AS3
posted by florodebat on 2009-11-12
Most probable that error occurs because you forgot to import the AccordionPanelEvents.
You will have to add to your code the bellow line of code in order to get rid of that error.

import com.jumpeye.Events.AccordionPanelEvents;

I hope this helped you out.


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

Back