Error #2101 The String Passed To Urlvariables.decode
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error #2101: The String passed to URLVariables.decode() must be a URL-encoded up vote 0 down vote favorite I have a problem in my code that I have no ideia how to fix. I have a AS file that needs to get variables out of a php form, and I keep getting this error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. Ill transcript the snippet of text that I believe isn't working correctly. var myTextLoader:URLLoader = new URLLoader(); myTextLoader.dataFormat=URLLoaderDataFormat.VARIABLES; myTextLoader.addEventListener(Event.COMPLETE, onLoaded); function onLoaded(e:Event):void { trace(e.target.data.ID); } myTextLoader.load(new URLRequest("http://www.converter-vhs-para-dvd-video.info/GestaoCCBS/GetInfo.php")); (If you need the full code, please tell me and I'll edit) If you open the URL on the browser you'll see that its a simple string, connnected to a Database (php/mySQL) and is returning a set of variables in this format " ID=1&Nome=Marco&Tipo=Revendedor", etc, so I believe that part is in working order. I already tried not using variables and the connection works (just tracing e.target.data), so Im a bit confused now. And yes, I am a newby AS3 wannabe programmer, so please have patience with me :) Thank you. php mysql actionscript-3 share|improve this question edited Apr 1 '11 at 20
using your existing account on the new forums, check out this thread. Register Help Remember Me? Forum Today's Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links View Forum Leaders What's New? Advanced Search Forum Flash ActionScript 3 [Flash] Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded Results 1 to 2 of 2 Thread: Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded Thread http://stackoverflow.com/questions/5505720/error-2101-the-string-passed-to-urlvariables-decode-must-be-a-url-encoded Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode July 7th, 2011,05:37 AM #1 flashPhp View Profile View Forum Posts 1 posts Registered User Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded I don't know why https://www.kirupa.com/forum/showthread.php?366738-Error-Error-2101-The-String-passed-to-URLVariables-decode()-must-be-a-URL-encoded but i always get this error everytime I will get a dynamic value in my file.php. Or it's just that my file.php has many echos in it and FLASH can get the exact thing im looking for. PHP Code: $fName="nuno";
but in the next lines I also have echos.. Reply With Quote July 7th, 2011,01:05 PM #2 creatify View Profile View Forum Posts Visit Homepage 3,667 posts Registered User If you're using URLLoader to get the variables from PHP, try setting the loader's dataFormat to TEXT: PHP Code:
$lname="mira";
$age=24;
//echoorprintthevariables
echo'fName='.$fName;
?> var_uLoader:URLLoader=newURLLoader(
ElementsAdobe Dreamweaver Adobe MuseAdobe Animate CCAdobe Premiere ProAdobe After EffectsAdobe IllustratorAdobe InDesignView all communitiesExplore Menu beginsMeet the expertsLearn our productsConnect with https://forums.adobe.com/thread/875411 your peersError: You don't have JavaScript enabled. This http://greensock.com/forums/topic/12483-dataloader-error-trapping-for-error-2101/ tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page. Please enter a title. You can not post a blank error #2101 message. Please type your message and try again. More discussions in ActionScript 3 All CommunitiesAdobe Animate CC - HomeActionScript 3 10 Replies Latest reply on Jan 17, 2014 3:58 AM by ThalesOstapiuk Error #2101: The String passed to URLVariables.decode() must be a error #2101 the URL-encoded query string containin Scotty1313 Jul 10, 2011 12:13 AM Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete() _________________________________________________________________________________________ ____________ stop(); var DepartVars:URLVariables = new URLVariables(); var DepartURL:URLRequest = new URLRequest("scripts/www.mywebsite.com/depart.php"); DepartURL.method = URLRequestMethod.POST; DepartURL.data = DepartVars; var DepartLoader:URLLoader = new URLLoader; DepartLoader.dataFormat = URLLoaderDataFormat.VARIABLES; DepartLoader.addEventListener(Event.COMPLETE, completeDepart); depart_btn.addEventListener(MouseEvent.CLICK, DepartUser); // Function to run when the Depart button is pressed function DepartUser (event:MouseEvent):void{ // Ready the variables here for sending to PHP DepartVars.post_code = "Depart"; // Send the data to the php file DepartLoader.load(DepartURL); welcome_txt.text = "Processing request...Bon Voyage"; } // Close DepartUser function /////////////////////////////////////// // Function for when the PHP file talks back to flash function co
Extras Plugins By using GreenSock code, you agree to the terms of use. Events About Licensing Blog Learning Club GreenSock Support Support Docs Forums FAQ's Examples Products Products HTML5 / JSGSAPDraggableSplitTextPlugins for GSAPFlashGSAP Jump to content Codepen Notification You didn't provide a codepen sample that illustrates the problem. It really helps us quickly identify problems. This isn't mandatory, but it will get you better/faster results. Would you like to add one? Submit Post Add Codepen LEARN HOW GreenSock Forums Flash / ActionScript Archive Loading (Flash) View New Content Javascript Disabled Detected You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access full functionality. DataLoader: error trapping for error #2101 Started by adventmedia, Sep 21 2015 11:08 PM Please log in to reply 1 reply to this topic adventmedia adventmedia 1 Like 29 posts Post #1 by adventmedia , 21 September 2015 - 11:08 PM using DataLoader — can't figure out how to trap for error #2101: Exception fault: Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete() The problem is that the url is wrong so the server is returning a standard 401 error page instead of the expected URL-encoded variables (the format of the call is set to "variables" since that is what is expected) I've set every setting for DataLoaderVars for callbacks, and put in try/catch statements wherever possible, but the error is not being trapped. Back to top Carl Carl 4,862 Likes (Superhero) 7,442 posts Post #2 by Carl , 22 September 2015 - 05:40 PM Yeah it looks like DataLoaderVars will see that as success as you are getting something back. You requested something, and the server is returning something. I don't think we can change anything in DataLoaderVars. Can you access the string passed to URLVariables.decode()? GreenSock now offers on-site training. Get your whole team up and running with GSAP quickly.http://greensock.com/training/ Back to top Please log in to reply Back to Loading (Flash) 0 user(s) are reading this topic 0 members, 0 guests, 0 anonymous users Reply to quoted postsClear 3rd Par