You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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());
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion. Sure, we can make that change in the next push. Disclaimer: we're no longer developing LoaderMax (or any of our ActionScript tools), as our customers have largely moved to the open web and our focus is on supporting them with the JavaScript tools. Thanks again!
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.decode
results 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());
The text was updated successfully, but these errors were encountered: