4 Replies Latest reply on Aug 15, 2010 6:13 AM by welcomecan

    i need crossdomain pgm

    welcomecan Level 1

      hai friends,

                 i am  doing flecoludfusion project. i retrive file from other server.so i need it.

       

       

      here my code:

       

      <s:RemoteObject destination="ColdFusion" id="Logon" source="IST_Business_Applications.IST_Docstor.file_access.display_filedowntest" >

      <s:method name="downl" fault="handlelogonFault(event)" result="handlelogonResult(event)" />

      </s:RemoteObject>

       

      Logon.downl("1","4563","","file_view_iframe","Download");

       

      private

       

       

      function handlelogonResult(event):

      void

      {

       

      if(event.result)

      {

      var resdata:ArrayCollection=event.result;

      var i:int;

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

      {

       

      docname=resdata[0].document_name;

       

      fileurl="http:"+resdata[0].storage_location_path + "\\" + docname;

       

      }

      }

      }

       

       

      var

       

       

       

       

       

      fr:FileReference=new FileReference();

       

      var request : URLRequest = new URLRequest(fileurl);

      fr.download(request);