3 Replies Latest reply on Nov 3, 2010 12:17 PM by Flex harUI

    Check broken links


      I have an application that shows through a DataGrid component, table fields, for this is using a HTTPService, which has a field that is a link to a document. Pdf.
      The count is over 2000 of whichsome are available and others not. To get access to files that are not shown in the link generated an error like this "Not Found The requested URL / file/Res018_99.pdf was not found on this server."
      I wish I could control the message and therefore to generate your own.


      Sin título-1.jpg

        • 1. Re: Check broken links
          Flex harUI Adobe Employee

          You should be able to capture the error.  There may be an ioError or failure


          • 2. Re: Check broken links
            chacal.net@gmail.com Level 1

            I can not catch the error, which may be the problem.
            This is my source code:

            <?xml version="1.0" encoding="utf-8"?>
            <mx:Label xmlns:mx="http://www.adobe.com/2006/mxml" text="{data.NUMERO}"
                 click="linkListener(event)" mouseOver="mouseOver(event)" 
                      import flash.errors.IOError;
                         import mx.controls.Alert;
                      private function mouseOver(event:MouseEvent):void {
                       private function mouseOut(event:MouseEvent):void {
                      private function linkListener(event:MouseEvent):void {
                         var request:URLRequest = new URLRequest(event.currentTarget.data.UBICACION_ARCHIVO); 
                         navigateToURL(request, "_blank");
                            catch (error:IOError)



            • 3. Re: Check broken links
              Flex harUI Adobe Employee

              You could try loading the url yourself