 import com.esri.builder.supportClasses.LogUtil;
 import com.esri.builder.views.BuilderAlert;
 
-import flash.events.Event;
 import flash.events.EventDispatcher;
 import flash.filesystem.File;
 import flash.filesystem.FileMode;

        const modulesDirectory:File = WellKnownDirectories.getInstance().bundledModules;
        loadCustomWidgetTypes(WellKnownDirectories.getInstance().customModules);

        // Find all swf files under the modules folder.
        const swfList:Array = [];
        if (modulesDirectory.isDirectory)
        {
            getSWFList(modulesDirectory, swfList);
        }
        // Load the found modules.
        swfList.forEach(function(file:File, index:int, source:Array):void
        {

        return widgetIconPath;
    }

    /* Finds module SWF files at the parent-directory level */
    private function getModuleSWFs(directory:File):Array
    {
        var swfFiles:Array = [];

        if (directory.isDirectory)
        {
            const moduleFileName:RegExp = /^.*Module\.swf$/;
            const files:Array = directory.getDirectoryListing();

            for each (var file:File in files)
            {
                if (!file.isDirectory && moduleFileName.test(file.name))
                {
                    swfFiles.push(file);
                }
            }
        }

        return swfFiles;
    }

    private function moduleInfo_readyHandler(event:ModuleEvent):void
