Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

2032 error when downloading mp4 from server

$
0
0

HI,

 

I have an application that allows users to update certain content by downloading it from a server.  The content came in 2 flavors, swf and flv, but we recently updated the application to uses mp4s instead of flvs.

 

Now, I receive a 2032 error whenever a mp4 file is encountered.  I tested other file formats (png, xml, pdf) and even changed the mp4 file extension to txt and receive no error.

 

Here's the code:

 

function loadFileFromServer(): void {

  urlString = "http://theAddress.com/" + targetServerDir + "/" + filesToDownload[fileCount];

  trace("1087 and urlString = " + urlString);

  urlReq = new URLRequest(urlString);

  urlStream = new URLStream();

  fileData = new ByteArray();

  urlStream.addEventListener(Event.COMPLETE, loaded);

  urlStream.load(urlReq);

}

Any ideas will be greatly appreciated.

 

Best,

 

 

Chris McLaughlin


Viewing all articles
Browse latest Browse all 2954

Trending Articles