var request:URLRequest = new URLRequest(urlString);
Then I got the message: SecurityError: Error #2121: Security sandbox violation: navigateToURL
Is there a way to solve the problem or should I use another way to close the current application from AS.
I have try your code and I got the message:
Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.
at Maj_Temps_SouthShore_Desktop/keyPressed()[C:\Projets Développement Flex\Maj_Temps_SouthShore_Desktop\src\Maj_Temps_SouthShore_Desktop.mx ml:215]