![]() |
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 |
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. |
Quote:
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