5 Replies Latest reply on Aug 13, 2010 3:38 AM by welcomecan

    what is this error?

    welcomecan Level 1

      my code is below

       

       

       

      public function search_click()

      {

       

      Logon.downl(

      "1","4563","","file_view_iframe","Download");

      }

       

       

      private function handlelogonResult(event):void

      {

       

       

      //Alert.show("welcome","Alert");

       

       

       

       

      if(event.result)

      {

       

      var resdata:ArrayCollection=event.result;

       

      var i:int;

       

      for(i=0;i<resdata.length;i++)

      {

       

      docname=resdata[0].document_name;                              //   New Text Document_20100323003136805.txt

       

      fileurl=resdata[0].storage_location_path +

      "\\" + docname;  //   \\test-sql-01\DD\F8M\Root

       

      }

      }

       

       

      //navigateToURL(request );

       

       

       

      /* var oApplication=new ActiveXObject("Word.Application");

      oApplication.Documents.Open(request); */

       

       

       

       

      /* pdf = new HTTPLoader();

      pdf.height = 800;

      pdf.width = 600;

      pdf.load(request);

      container.addChild(pdf); */

      }

       

       

       

      private function handlelogonFault(event):void

      {

       

      Alert.show(event.fault.message);

       

      //Alert.show("Incorrect","Alert");

      }

       

       

      public function down_click():void

      {

       

       

      var fr:FileReference=new FileReference();

       

      var request : URLRequest = new URLRequest(fileurl);

      fr.download(request);

      }

       

      Give solution friends:

       

       

       

       

       

      Error #2044: Unhandled SecurityErrorEvent:.

       

      text=Error #2048: Security sandbox violation:

      http://istdocstor-1722772105/Flex_TestIST/TestFile.swf

       

      cannot load data from

      \\test-sql-01\DD\F8M\Root\New Text Document_20100323003136805.txt.