dcsimg
A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: senaAndLoad help...

  1. #1
    Senior Member
    Join Date
    Oct 2000
    Location
    California
    Posts
    149
    I am building a Flash MX site where a section of the site will have Bios of people.
    I have a database built out using MySQL and PHP.
    I created this button function in my Flash movie

    randall.onRelease = function() {
    getBio = new LoadVars();
    getBio.memberName = this._name;
    getBio.send("php/bios.php", "_blank", "POST");
    };

    This works perfectly! My PHP echoes the info exactly how I need it. URL encoded and all!

    randallBio=Randy+was+born+and+raised+in... etc

    Now that I know the info is being interpreted correctly, I need to get it back into Flash.
    Can anyone help me with converting my current send function into sendAndLoad?
    That would be SWEEEEEET!

    Thanks in advance!
    - Patrick

  2. #2
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    What problem do you have with .sendAndLoad?

    Are you loading this with XML data?

    Thanks

    Luke

  3. #3
    Senior Member
    Join Date
    Oct 2000
    Location
    California
    Posts
    149
    I'm not sure how to write it?
    I'm using PHP

  4. #4
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    How about having a look at the Flash-XML FAQ:

    http://www.tupps.com/flash/faq/xml.html

    Thanks

    Luke

  5. #5
    Senior Member
    Join Date
    Oct 2000
    Location
    California
    Posts
    149
    I actually have the Load working now in Flash.
    The problem I have now is that the text is not encoded correctly. I have this line in my database:
    I am testing this character!

    This is what shows up in Flash:
    I20am20testing20this20character210D0AonLoad5Btype2 0Function5DmemberNamerandall

    Any ideas where I set the encoding?

  6. #6
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    Where is that being encoded? Is it being done on the server side or by flash???

    You can also use the escape function in flash:

    http://www.macromedia.com/support/fl.../unescape.html

    Thanks

    Luke

  7. #7
    Senior Member
    Join Date
    Oct 2000
    Location
    California
    Posts
    149
    YES!!!
    That was it. Thanks so much.

    Any ideas how to get rid of the info that is tagged at the end?
    onLoadtypeFunctionmemberNamerandall

    Thanks so much for this, I have been sweating over this all day!





  8. #8
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    When you say get rid of the information that is tagged on the end, what are you talking about? The XML?

    I haven't noticed this myself before. By the looks of it some flash code is getting tacked on the end.


    Thanks

    Luke

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