Line 89: var data:URLVariables = new URLVariables( ((request.data is URLVariables) ? request.data.toString() : null) );
A problem occurs if request.data is null or an empty URLVariables object. This happens if you assign a URLVariables object to the URLRequest of the Loader(item), with no parameters passed into it.
.toString() renders an empty string which in URLVariables.decoderesults in an error thrown.
My suggestion is to keep the existing URLVariables object if present, or create a new one from parsing arbitrary data if not:
var data:URLVariables = (request.data is URLVariables) : request.data : new URLVariables(request.data.toString());
Line 89:
var data:URLVariables = new URLVariables( ((request.data is URLVariables) ? request.data.toString() : null) );A problem occurs if request.data is null or an empty URLVariables object. This happens if you assign a URLVariables object to the URLRequest of the Loader(item), with no parameters passed into it.
.toString()renders an empty string which inURLVariables.decoderesults in an error thrown.My suggestion is to keep the existing URLVariables object if present, or create a new one from parsing arbitrary data if not:
var data:URLVariables = (request.data is URLVariables) : request.data : new URLVariables(request.data.toString());