View Full Version : Resolved Trigger drop down panel from flash

07-30-2009, 05:19 AM
1) Script Title: DD Drop Down Panel

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/dddropdownpanel.htm

3) Describe problem:

Hi All,

I am using this drop down panel on my page and I want to trigger it from within a flash file that is above the panel on the page.

I'm using the following command in the flash file but i'm not sure what the default panelinstance name is. Can anyone suggest anything?

on(press) {


07-31-2009, 03:51 AM
There is no default panelinstance variable in that it's user assigned when you first initialized the panel in question. For example:

var defaultpanel=new ddpanel({
ids: ["mypanel", "mypanelcontent", "mypaneltab"], // id of main panel DIV, content DIV, and tab DIV
stateconfig: {initial: "5px", persiststate: true}, // initial: initial reveal amount in pixels (ie: 5px)
animate: {enabled: true, steps: 5}, //steps: number of animation steps. Int between 1-20. Smaller=faster.
pointerimage: {enabled: true, src: ["arrow-down.gif", "arrow-up.gif"]},
closepanelonclick: {enabled: true} // close panel when links or elements with CSS class="closepanel" within container is clicked on?

The variable in red would be this particular panel's panelinstance variable.

07-31-2009, 06:08 AM
Thanks so much! It now works perfectly