all groups > flash data integration > may 2005 >
You're in the

flash data integration

group:

php mysql and flash


php mysql and flash FromAutumn
5/19/2005 4:20:39 PM
flash data integration:
I want to be able to enter a value into flash in a dynamic txt and have it go
through php to mysql. i have the php and mysql stuff written, I just don't know
flash well enough to know how to input a value and have it go through all that.
I also need to know how to have it display back into flash. thanks for any help
Re: php mysql and flash v_teo
5/19/2005 4:24:25 PM
Re: php mysql and flash Joaquim Lopes
5/21/2005 12:00:00 AM
On the Flash side do this:

var dataToSend:LoadVars = new LoadVars();
var answer:LoadVars = new LoadVars();

dataToSend.userName = userName.text;
dataToSend.sendAndLoad("http://webaddress/phpfile.php", answer, "POST");

answer.onLoad = function(success)
{
if(success)
{
//do whatever...
}
}

Hope this helps.
AddThis Social Bookmark Button