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

Accordion Panel V3

(views: 4638)

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: 562)

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/.


Login to post your comment login to post your comment



Back

Knowledge Base Search

Enter keywords bellow:
Advanced Search

Menu

Special Offer

Special Offer - All in one Jumpeye Components bundle!

Get the JC Master Collection Now!

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