A simple example to demonstrate my idea, it's a stupid example :) ##app.mxml##
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" marginLeft="0" marginRight="0" marginTop="0" backgroundColor="#FFFFFF" creationComplete="startListening();"> <mx:Script> <![CDATA[ var _lc:LocalConnection; function setDate(param1:String) { date_ti.text = param1; } function startListening() { _lc = new LocalConnection(); _lc.setDate = mx.utils.Delegate.create(this, setDate); _lc.connect("mainApp"); } function openPopup() { getURL('javascript:window.open("popupApp.mxml",null, "height=400,width=400,status=yes,toolbar=no,menubar=no,location=no");void(0) '); } ]]> </mx:Script> <mx:TextInput id="date_ti" text=""/> <mx:Button label="Choose Date" click="openPopup()"/> </mx:Application> ##popupApp.mxml## <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" marginLeft="0" marginRight="0" marginTop="0" backgroundColor="#FFFFFF" initialize="startConnection();"> <mx:Script> var _lc:LocalConnection; function startConnection() { _lc = new LocalConnection(); } function setDate(param1:Date) { var date_str = (param1.getMonth() + 1) + "-" + param1.getDate() + "-" + param1.getFullYear(); _lc.send("mainApp", "setDate", date_str); getURL("javascript:window.close();void(0)"); } </mx:Script> <mx:DateChooser id="_dc"></mx:DateChooser> <mx:Button label="Select this date" click="setDate(_dc.selectedDate);"/> </mx:Application> -abdul -----Original Message----- From: Abdul Qabiz [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 09, 2005 7:27 PM To: [email protected] Subject: RE: [flexcoders] more on popup Hi, You can open a new browser window using javascript. Communication between parent & popup window happens over LocalConnection. So flow is this:- - user clicks on a button - a javascript function is executed to open a new popup window - new popup window loads another flex application - Both (popup & parent) flex applications communicate using LocalConnection We have had a discussion on the same topic, please search the archives. If you still have any specific question, do ask here.. -abdul -----Original Message----- From: Doodi, Hari - BLS CTR [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 09, 2005 7:13 PM To: '[email protected]' Subject: [flexcoders] more on popup Hi all, is it possible to have a stand alone popup , may be can not call it a popup, means when user click on a button my application should open an other part of application in a brand new browser window. This second window should appear even if main parent window is minimized but should be closed when parent is closed. Any guidance or suggestions! Please help. Thanks! Hari Yahoo! Groups Links Yahoo! Groups Links

