Home
HomeFlexible, Lightweight and Truly Skinnable Flash ComponentsPHPObject and other Flash ExtensionsForumsBlog JournalLinks
Buy Flash Components
  GhostWire Components - Flash Components for RIAs
redhand 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);
}

submenu2 = main.getPaneContent(2).menu;
submenu2.onCollapse =
submenu2.onExpand = function()
{
main.setPaneSize(main.width,this.getSize().height+main.pad*2,2);
}

submenu1.expandAll();
submenu2.expandAll();
 

Flash Components
Button :: CheckBox :: CollapsibleMenu :: CollapsiblePane :: ColorPicker :: ComboBox :: ContextMenu :: DialogBox :: InputField :: ListBox :: Loader :: Menu :: SlideMenu :: NumericBox :: Panel :: ProgressBar :: RadioButton :: ScrollBar :: ScrollPane :: SlidePane :: Slider :: TabView :: TextArea :: TreeView :: Window

See also
Documentation :: FAQs :: Testimonials
 
Contact UsSite Map
Copyright © 2003-2006 GhostWire Studios