Hi,

Our app has grown to the point that we would like to use modules to
streamline loading, development, etc.  I have created an application
shell that will load my modules as necessary.  The shell contains a
menu bar at the top and a status bar along the bottom.  What I would
like to do is allow each module to integrate with the menu and add
visual components to the status bar.  I envision defining an interface
that all my modules implement like the one below.  The shell would
call the interface methods and insert the components in the
appropriate place when the module is loaded.  From a big picture
perspective this seems reasonable but something tells me it won't work
or I am missing something obvious.  Has anyone done what I am trying
to do and made it work?  Is there a better solution?  This is my first
venture into modules so I know there is much to learn. Any thoughts
and ideas are welcome.


package com.xxxx
{
        import flash.display.DisplayObject;
        
        /**
         * 
         * @author Jim Boone
         * 
         */
        public interface IModuleIntegration
        {
                function getButtonBarComponent():DisplayObject;
                
                function getMenuItems():XML;
                
                function getStatusBarComponent():DisplayObject;
                
        }
}


Reply via email to