A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Flash sendAndLoad problem?

  1. #1
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976

    Flash sendAndLoad problem?

    Just curious as to way this would happen? I have one send and load that looks like this
    PHP Code:
    function checkDetails() {
        
    loginDets.user mc_login.txt_username.text;
        
    loginDets.pwd mc_login.txt_password.text;
        
    _root.acDetails = [mc_login.txt_username.text,mc_login.txt_password.text];
        
    loginDets.sendAndLoad("http://localhost/test/process.php?ck="+new Date().getTime(), loginResponse);
    }
    //sender
    loginDets = new LoadVars();
    //reciever
    loginResponse = new LoadVars();

    loginResponse.onLoad = function() {
        if(
    this.authen == "ok") {
            
    //load the users data in
            
    _root.userDetails = [this.petnamethis.petlvlthis.petexpthis.usermoneythis.userskill];
            
    this.inventory.split(",");
            
    this.stat.split(",");
            
    SplitUserItems();
            
    SplitUserStrength();
            
    play();
        }else if(
    this.msg == undefined){
            
    _root.error("Message recieved - cannot find page");
        }else{
            
    _root.error("Message recieved - "+this.msg);
        }

    and then a php script that finds the user name and pass and returns their details. Now this works perfectly fine. But now I tried to implement a new sendAndload so save user details that they may have change to the database, it doesn’t work. Not matter what I try it doesn’t get any returned variables. The scripts are pretty much identical. Cant figure out why.

    Can you have more then one sendAndLoad in the same swf that request a different page?

    And is their a max number of variables that can be sent?

    What are the basic problems to be aware of when using sendAndLoad ?

  2. #2
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976
    Never mind i got it to work.

    Please delete this thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center