Skip to main content
Inspiring
October 8, 2015
Question

2032 error when downloading mp4 from server

  • October 8, 2015
  • 1 reply
  • 523 views

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

This topic has been closed for replies.

1 reply

Inspiring
October 9, 2015

Thanks for your reply.  It turns out it was a server setting.  I had a MS server set-up for this client and according to my colleague who manages that side of things...

You have to go into the control panel and setup a MIME type for MP4’s as an “application/octet-stream” which forces the download