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;


wrapping a pre tag using css3 in ie, opera, mozilla firefox

Filed under: web — rudyegenias @ 7:52 am
Tags: , , , , ,

pre {
white-space: pre-wrap;       /* css-3 */
white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
white-space: -pre-wrap;      /* Opera 4-6 */
white-space: -o-pre-wrap;    /* Opera 7 */
word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

src: http://ajaxian.com/archives/wrapping-the-pre-tag

Blog at WordPress.com.