-
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
-
What problem do you have with .sendAndLoad?
Are you loading this with XML data?
Thanks
Luke
-
I'm not sure how to write it?
I'm using PHP
-
How about having a look at the Flash-XML FAQ:
http://www.tupps.com/flash/faq/xml.html
Thanks
Luke
-
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?
-
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
-
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!
:)
-
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