me looking so small in this world

29 2009f July, 2009

Flash CS3 and AS3 Error message

Filed under: web — rudyegenias @ 8:08 am
Tags: , ,

Error message: String passed to URLVariables.decode() must be a URL-encoded query string It’s been long since I’ve got my foot soaked in flash and this time it’s ActionScript 3.

I then got this error message from a callback function that’s supposed to say if the input has been processed successfully. Been pondering about why that could happen and has reverted back the code to it’s original format. This time I did check the PHP file on the server and see it’s code if it’s the main culprit. Alas, it is the main problem. A missing semi-colon made PHP throw an error message in front of the status (query string).

The status should be:

success=true or success=false

This status has been pre-pended with an error that Flash intercepted before the accepted value.

Other say that this code fixed the problem (source):

loaderFunction.dataFormat = URLLoaderDataFormat.TEXT;


No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.