3 Replies Latest reply on Jun 26, 2009 7:24 AM by Vanden_B

    How to stop the Flex application when user clicks on Cancel button from JS-confirm message?


      Hi All,


      I use the next code when a user clicks on a link:


      private function clickHandler():void


            ExternalInterface.call('confirm', 'Of course you want to go to the Adobe forums!');

            navigateToURL(new URLRequest('http://forums.adobe.com'), '_self');



      This will show up the javascript confimation box. But when the cancel-button is clicked, the user goes straightly to http://forums.adobe.com...

      How to stop Flex performing the next code when a user clicks on the Cancel button?


      Or, how to catch which button is clicked by a user in Flex?