 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;

        return widgetIconPath;
    }

    /**
     * This will go through all sub folders in 'modules' looking for .swf files.
     */
    private function getSWFList(parentFile:File, arr:Array):void
    {
        const moduleFileName:RegExp = /^.*Module\.swf$/;
        const list:Array = parentFile.getDirectoryListing();
        list.forEach(function(file:File, index:int, source:Array):void
        {
            if (file.isDirectory)
            {
                getSWFList(file, arr);
            }
            else if (moduleFileName.test(file.name))
            {
                arr.push(file);
            }
        }
        );
    }

    private function moduleInfo_readyHandler(event:ModuleEvent):void

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

        const swfList:Array = getModuleSWFs(modulesDirectory);

        // Load the found modules.
        swfList.forEach(function(file:File, index:int, source:Array):void
        {
