PDA

View Full Version : Calling a PHP-function from a flash-application?



Danneman
December 5th, 2006, 07:38 AM
Im wondering if its possible to call a PHP-function from a flash-application?

If so, what is the simplest way to do so? Example?

Sinister Rouge
December 5th, 2006, 07:40 AM
Quick answer is yes. Look here (http://www.kirupa.com/developer/actionscript/flashphpxml_integration.htm) for more information...

Danneman
December 5th, 2006, 08:03 AM
Ok, that article deals with LoadVars.load()-function (which loads data INTO flash-app, not the other way around). But using LoadVars.send()-function I would be able to:
1) Load a php-webpage containing the php-function I want to execute, and
2) Send variables to that webpage which the php-function could use.

?

Sinister Rouge
December 5th, 2006, 08:09 AM
Kirupa has probably 20 tutorials outlining this. check here (http://www.kirupa.com/web/index.htm). For instance, the form submission submits the flash data to a PHP script that emails the content...

this too... (http://www.kirupa.com/developer/actionscript/displayinphp.htm)

Okay, i see what you're asking now. You want to call a specific function within a PHP page from flash, correct?