Flash call PHP & wait for return variables

Posted 29 August, 2007 in Other Stuff

url = “something.php?variable=number”;

_root.myLoadVars = new LoadVars();
myLoadVars.place = place; // place is an example variable returned by PHP
_root.myLoadVars.onLoad = function(succes)
{
 if(succes)
 {
  for(var i in this)
  {
   trace(i+” = “+this[i]);

   
  }
 }
 else
 {
  trace(“error”);
 }
};
_root.myLoadVars.load(url);

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Reddit
  • StumbleUpon
  • Twitter
  • Yahoo! Buzz

Your comment: