Success

Notes

Error

 
 
 
 
Budget

Small project <800

Posted on

2011-10-22 05:18:31.0

Buyer:

spl***

This project has expired

Why don't you register anyway? We are sure that you will find many similar projects out of the thousands waiting for you!

Post similar project now

Description

I am looking to add a module to an existing application.  The goal is to use the URLoader command in AS3 Flash to download a list of variables from a data.txt file that is located in a 2007 Sharepoint site that is on a HTTPS secure server.  I will need to pass username, password, and domain variables to the site within the script and have the application grab and open the data.txt file.  The connection would then be terminated.  If I compile the application and use it on a mac or pc, it works fine.  The application will prompt me for my username and password.  Once I enter, it will allow the file to be opened.  Once compiled into an android or iOS application, the code I am using fails.  I need someone to help write a script that can complete this task for me.  Can you help?

Here is the code I am using.

/* Load External Data */

var nTextLoader:URLLoader = new URLLoader();

nTextLoader.dataFormat=URLLoaderDataFormat.VARIABLES;

var nTextURLRequest:URLRequest = new URLRequest("https://Yourlink.com/data.txt");

 

nTextLoader.addEventListener(Event.COMPLETE, nCompleteHandler);

 

function nCompleteHandler(event:Event):void

{

          var textData:String = new String(nTextLoader.data);

          trace(event.target.data.update_dt);

          gphSuccess = true;

          Update_dt = event.target.data.update_dt;

          gotoAndPlay(2);

}

 

 

nTextLoader.load(nTextURLRequest);