all groups > flash actionscript > march 2004 >
You're in the

flash actionscript

group:

echo function in php


echo function in php 8mycsh
3/25/2004 9:36:32 PM
flash actionscript:
I am creating a flash baner with buttons and it appears on a php script. I need
to use the php echo function in the flash button can I use the echo function or
do I have to use some function in the actionscript menu?

Thanks for oyur help.
Re: echo function in php jon j
3/26/2004 12:04:48 AM
Hi,
You need to use the "LoadVars()" object in flash. Here is an example:
myVars = new LoadVars();
// call the load method to load my php page
myVars.load("http://yourDomain.com/thePhpFile.php");
////////////////////////////////////////////////////////
myVars.onLoad = function (success) {
if (success) {
trace (" variables loaded ");

} else {
trace (" Error loading variables ");
}
}
The echo or print is the Name=Value pair Flash will load. Try some simple
tests and read the help files.
The sendAndLoad is very cool :)
Jon
AddThis Social Bookmark Button