Index: lams_common/src/flash/org/lamsfoundation/lams/common/ui/Dialog.as =================================================================== diff -u --- lams_common/src/flash/org/lamsfoundation/lams/common/ui/Dialog.as (revision 0) +++ lams_common/src/flash/org/lamsfoundation/lams/common/ui/Dialog.as (revision 3b29021db2d5fecaef45ead9d595d73c6f0e3881) @@ -0,0 +1,44 @@ +/** + * Dialog class for creating and managing dialogs. + * Usage - Create a new dialog passing in the linkage ID of the symbol that makes it's contents + * + * @author DI + */ + +import org.lamsfoundation.lams.common.ui.* +import mx.containers.* +import mx.managers.* + +class Dialog { + +// + //private static var _dialogInstances:Array; + //private static var _currentIndex:Number; +// + ///** + //* This will return a reference to the Dialog that is currently in focus. If there are none in focus is will return null + //*/ + //public static function getDialogWithFocus():Object{ + //_dialogInstances = []; + //_currentIndex = null; + //return null; + //} +// +// + ///** + //* Constuctor + //* @param target The target movieclip in which + //*/ + //function Dialog(target:MovieClip,linkageId:String,x:Number,y:Number,w:Number,h:Number){ + ////Create a new window for the dialog + //trace('Dialog'); + ////componentInstance.createClassObject(linkageName, instanceName, depth, initObject); + //} +// + + static function createPopUp(path:MovieClip,cls:Object, initobj:Object):MovieClip{ + return path.createClassChildAtDepth(cls, DepthManager.kTopmost, initobj); + } + + +} \ No newline at end of file