Use this version to avoid the Warning/Prompt

 

                                    private function closeApp():void

                                    {

                                                //

                                                var urlString:String = "_javascript_:window.opener = self; self.close();";

                                                var request:URLRequest = new URLRequest(urlString);

                                                navigateToURL(request, "_self");                                               

                                    }

 


From: Bill Sahlas
Sent: Friday, May 12, 2006 5:55 PM
To: '[email protected]'
Subject: RE: [flexcoders] Close a flex app

 

Try adding this

 

                                    private function closeApp():void

                                    {

                                                //

                                                var urlString:String = "_javascript_:self.close()";

                                                var request:URLRequest = new URLRequest(urlString);

                                                navigateToURL(request, "_self");

                                    }

                                    <mx:LinkButton id="CloseApp" label="Close Application" click="closeApp();"/>

 


From: [email protected] [mailto:[email protected]] On Behalf Of christopherjdunn
Sent: Friday, May 12, 2006 5:28 PM
To: [email protected]
Subject: [flexcoders] Close a flex app

 

What i'm looking to do in f2b3 is create a logout button that closes
the flex app & html windows completly. Is there a simple way of doing
this?

Chris








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to