You can use navigateToURL( new URLRequest( 'javascript:window.close()' ), "_self" );
to execute the javascript. Alternatively, write the javascript in your HTML wrapper and call it through ExternalInterface. http://livedocs.adobe.com/flex/201/langref/flash/external/ExternalInterf ace.html Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk <blocked::http://www.inps.co.uk/> The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED] ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of markflex2007 Sent: 15 April 2008 20:33 To: [email protected] Subject: [flexcoders] How to close current windows? Hi, Javascript 'window.close()' will close current. I need close current window from Flex.that mean I need a function in Flex to the javascript. Please give me a idea how to do this. Thanks Mark

