    package com.bluefire.flexDemo.control
    {
        import com.adobe.cairngorm.control.FrontController;
        import com.bluefire.flexDemo.command.MenuBtnClickCommand;
        import com.bluefire.flexDemo.command.TreeNavClickCommand;
        import com.bluefire.flexDemo.command.SlideshowNavClickCommand;
        import com.bluefire.flexDemo.command.AutoCloseSidePanelCommand;

        public class DemoFrontController extends FrontController
        {
            public static const EVENT_MENU_BTN_CLICK:String = "MenuBtnClick";
            public static const EVENT_TREE_NAV_CLICK:String = "TreeNavClick";
            public static const EVENT_SLIDESHOW_NAV_CLICK:String = "SlideshowNavClick";
            public static const EVENT_AUTO_CLOSE_SIDE_PANEL:String = "autoCloseSidePanel";

            function DemoFrontController()
            {
                initializeCommands();
            }

            private function initializeCommands():void
            {
                addCommand(EVENT_MENU_BTN_CLICK, MenuBtnClickCommand);
                addCommand(EVENT_TREE_NAV_CLICK, TreeNavClickCommand);
                addCommand(EVENT_SLIDESHOW_NAV_CLICK, SlideshowNavClickCommand);
                addCommand(EVENT_AUTO_CLOSE_SIDE_PANEL, AutoCloseSidePanelCommand);
            }
        }
    }