GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   actionscript + php question (https://gfy.com/showthread.php?t=924873)

fris 08-31-2009 07:43 AM

actionscript + php question
 
Is it possible to pass a variable used by a php script in actionscript, even though its not defined in the actionscript, but in the actual external php script?

Im trying to pass the wordpress plugin path to a video plugin that requires a script, normally it has to be put in the root directory, I want it in the plugin directory instead.

any help is greatful.

:thumbsup

quantum-x 08-31-2009 07:53 AM

You can communicate between flash/AS and PHP in a few ways.

The most simple is to just pass the variable as a flashvar.
IE, in your embed src.... foo.swf?varname=<?=$value?>
Obviously depending on your embed method (swfobject etc) the implementation will change.

Failing that, you can use AS to do a datapost to a URL, and receive back information.

I'm assuming the first will be what you're looking for.

nation-x 08-31-2009 08:11 AM

Quote:

Originally Posted by fris (Post 16257295)
Is it possible to pass a variable used by a php script in actionscript, even though its not defined in the actionscript, but in the actual external php script?

Im trying to pass the wordpress plugin path to a video plugin that requires a script, normally it has to be put in the root directory, I want it in the plugin directory instead.

any help is greatful.

:thumbsup

You can actually call a javascript function that uses ajax to retrive the value from php.

http://snipplr.com/view/2946/call-an...ript-function/


All times are GMT -7. The time now is 05:55 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123