This error can be caused by requesting a URL that is over the maximum length supported by Internet Explorer, which is 2083. This can be confusing, because if you copy a URL you are trying to load in Flex with a URLRequest into Internet Explorer, IE will truncate the URL itself, and appear to load properly.
This is especially important for REST API's that can take a long string variable.
The following code will avoid this issue.
var URL_MAX_LENGTH:int = 2083;
var request:URLRequest = new URLRequest(url.substr(0, URL_MAX_LENGTH));
Written
by
Matthew Casperson
(4,880
pts
)
in
Matthew Casperson Blog
Last Edited
on
Oct 23 2009, 06:35 PM