Open GoogleCodeExporter opened 8 years ago
index.mxml: open MdiWindows 1 var Window:MDIWindow = new MDIWindow(); var Module:ModuleLoader = new ModuleLoader(); Module.id = "Module" + String (mdiCanvas.windowManager.windowList.length + 1); Module.percentWidth = 100; Module.percentHeight = 100; Module.url = "login.swf"; Module.loadModule(); Window.width = 350; Window.height = 500; Window.title = "Window " + String (mdiCanvas.windowManager.windowList.length + 1); Window.resizable=true; Window.mouseEnabled=false; Window.addChild(Module); Window.titleIcon=showIcon; //PopUpManager.addPopUp(Window, this, true); mdiCanvas.windowManager.add(Window); } login.mxml: Module file. <?xml version="1.0" encoding="utf-8"?> <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="100%" height="100%"> <mx:Canvas width="100%" height="100%"> <mx:FormItem label="Label" horizontalCenter="-39" verticalCenter="-41"> <mx:TextInput/> </mx:FormItem> <mx:FormItem label="Label" horizontalCenter="-39" verticalCenter="-11"> <mx:TextInput/> </mx:FormItem> <mx:Button label="Button" horizontalCenter="120" verticalCenter="-41"/> <mx:Button label="Button" horizontalCenter="120" verticalCenter="-11"/> <mx:Text text="Text" width="296" horizontalCenter="5" verticalCenter="17"/> </mx:Canvas> </mx:Module> ############################ How do I turn close Mdiwindows in index.mxml
Original issue reported on code.google.com by phpr...@gmail.com on 1 Sep 2008 at 10:51
phpr...@gmail.com
sorry ,i'm from china.english is not good.
Original comment by phpr...@gmail.com on 1 Sep 2008 at 10:53
Original issue reported on code.google.com by
phpr...@gmail.com
on 1 Sep 2008 at 10:51