GhostWire CollapsibleMenu/Pane Example Overview
The Collapsible Menu component can only provide one level of menu system, and there is no intention to extend this to provide for additional submenus.
Collapsible Menu/Pane Combination
Nevertheless, using both the Collapsible Menu and Collapsible Pane components, we can simulate the submenus. Example (filesize 9KB):
Here are the steps for creating the above:
(1) Create the submenus using Collapsible Menu component
(2) Name the instance 'menu' and convert to a movieclip (to be exported)
(3) Create the Collapsible Pane, name it 'main'
(4) Specify the contents to be loaded into the 'main' Collapsible Pane using the Properties Panel of the component
(5) Enter the following actionscript in the frame submenu1 = main.getPaneContent(1).menu;
submenu1.onCollapse =
submenu1.onExpand = function()
{
main.setPaneSize(main.width,this.getSize().height+main.pad*2,1);
}