PDA

View Full Version : not sure how to title this.



spootneek
May 12th, 2005, 01:29 PM
I have included my fla at http://www.geocities.com/paulbiondi@rogers.com/test1.fla

What I want is when you click on a bar it expand and pushes the ones below down. That has been accomplished. However, I want the expanded bar to close when a different bar is clicked. Right now that doesn't happen. The only way to close an expanded bar is to click on itself.

I should add that there is code on an invisible button that resides inside the bar movie clip.

Can anyone offer any suggestions?

Thank you very much in advance.

Smee
May 12th, 2005, 02:03 PM
I didn't get to look at the fla long, but I noticed you're using a function with an "open" or "close" argument, so that's should make it easy. You can try recording which bar was opened by putting in the button something like



_root.runMenu(_root.barThatIsOpen, "closeit");
_root.runMenu(this._name, "openit");
_root.barThatIsOpen = this._name;


Hope that helps!

spootneek
May 13th, 2005, 11:43 AM
Hey thanks Smee,

I haven't had enough of a chance to fiddle with it yet, but what I did is add the code to the else part of the statement in the button and unfortunately it made no change...