Ask Experts Questions for FREE Help !
Ask
    Scotty13's Avatar
    Scotty13 Posts: 120, Reputation: 1
    Junior Member
     
    #1

    Jul 9, 2011, 04:52 PM
    Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query s
    I've tried everything, please help.

    Error...

    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()


    Flash...

    stop();

    var DepartVars:URLVariables = new URLVariables();

    var DepartURL:URLRequest = new URLRequest("scripts/www.myglobalpnr.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 completedepart(event:Event):void{

    if (event.target.data.replyMsg == "success") {

    var refreshPage:URLRequest = new URLRequest("javascript:NewWindow=window.location.r eload(); NewWindow.focus(); void(0);");
    navigateToURL(refreshPage, "_self");

    } // Close completeDepart function //////////////////////////////

    // Code for the View res Button
    var viewRes:URLRequest = new URLRequest("view_res.php");
    viewRES_btn.addEventListener(MouseEvent.CLICK, viewResClick);

    function viewResClick(event:MouseEvent):void {
    navigateToURL(viewRes, "_self");
    }

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // Code for the Edit Res profile Button
    var editRes:URLRequest = new URLRequest("edit_res.php");
    editRES_btn.addEventListener(MouseEvent.CLICK, editResClick);

    function editResClick(event:MouseEvent):void {
    navigateToURL(editRes, "_self");
    }
    }

Check out some similar questions!

I have a old T.V its Admiral Model # 26X66A Chassis-2101 or 21D1 [ 0 Answers ]

Would like any help with this if

Oracle a query the error ORA-01445 [ 1 Answers ]

ORA-01445: cannot select ROWID from, or sample, a join view without a key-preserved table I am running a query on Oracle 10G database. Why this error occurs and what is a key-preserved table. If I run the query without the view it runs. When I join the view to the query I get the error. Can...

How to get rid of "unterminated string" error? [ 1 Answers ]

I was told to delete cookies and internet temporary files to get rid of this error. How do I do that?

Run Time Error'3075': Syntax Error(Missing Operator) in query expression [ 6 Answers ]

I am running a database using MS Access 2000 along with Visual Basic. Inside the database I am running a specific tracking summary form that takes information from a populated main table. Inside the tracking summary form I have three combo boxes; Status, Fiscal Year and Province, with their...

Isass.exe - System Error. An invalid parameter was passed to a service or function." [ 2 Answers ]

Hello, I have a windows XP (With service pack 1) and it has been working fine for for the last couple of days... YEah! None of those SP1 horror stories for me! But when I turn on my computer this morning right before the login screen would come up, I get: "Isass.exe - System Error. An invalid...


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.