通过PHP检索GET变量发送到SWF在相同的脚本?发送到、变量、脚本、PHP

由网友(吥崾銩丅莪、ぬ庅)分享简介:是否有可能在PHP脚本检索一个GET变量,随后送出可变数据,主权财富基金在相同的脚本/文件?Is it possible to retrieve a GET variable within a PHP script and subsequently send the variable data to an SWF o...

是否有可能在PHP脚本检索一个GET变量,随后送出可变数据,主权财富基金在相同的脚本/文件?

Is it possible to retrieve a GET variable within a PHP script and subsequently send the variable data to an SWF on the same script/document?

我希望用户在一个PHP文件中选择一个项目,然后用一个Flash应用程序,我正在开发以操纵数据。

I want the user to select an item on a PHP document and then use a Flash application I am developing to manipulate that data.

我知道如何从一个PHP脚本将数据加载到通过的URLLoader主权财富基金,但只能从SWF内启动加载过程。于是,我问是否有可能到PHP的数据发送到外部源的SWF。请问SWF需要以某种方式来听? JavaScript是必要的吗?

I know how to load data from a PHP script into an SWF via URLLoader, but only by initiating the loading process from within the SWF. So, I am asking if it's possible to send the PHP data to the SWF from external source. Would the SWF need to listen in some manner? Is Javascript necessary here?

任何意见大大AP preciated!

Any advice is greatly appreciated!

推荐答案

我相信你正在寻找的FlashVars。它基本上是一个参数,你把什么看起来像一个查询字符串到对象/嵌入标记。查询字符串,然后通过flash对象访问。

i believe you're looking for flashvars. its basically a parameter for the object/embed tag that you put what looks like a querystring into. the querystring is then accessible through the flash object.

看看本教程以深入解释了。

阅读全文

相关推荐

最新文章