使用Flash和PHP的用户之间的数据共享 [英] Data sharing between users using flash and php
问题描述
我'寻找如何从一个PHP网页,Flash动画,这将被整合到另一个网页发送变量 小例子:一个用户在输入一个PHP页面然后当他点击提交按钮,他的名字将在Flash动画显示出来输入他的名字
I'am searching how to send variables from a php webpage to a flash animation that it will be integrated into another webpage Little example : An user enter his name in an input in a php page then when he clicks submit button, his name will be shown in a flash animation
有什么建议?
推荐答案
如果我理解正确的,你想拥有某种形式的用户数据进行处理,然后提交加载不同的页面,拥有Flash动画需要的用户数据,对吧?
If I understood right, you want to have some sort of form processed with user data, then on submit load a different page that holds a flash animation that needs the user data,right?
您可以看看Flash变量。基本上,你可以通过任何数量的键值对(在64K)当您嵌入Flash对象,他们将在根装载器信息对象可用。
You can look into flashvars. Basically you can pass any number of key value pairs ( under 64K ) when you embed a flash object and they will be available in the root loader info object.
//access flashvars
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
您添加embeding瑞士法郎时,Flash变量。您可以使用SWFObject的。一个小片段:
You add the flash vars when embeding the swf. You can use SWFObject. A little snippet:
<script type="text/javascript">
var flashvars = false;
var params = {
menu: "false",
flashvars: "name1=hello&name2=world&name3=foobar"
};
var attributes = {
id: "myDynamicContent",
name: "myDynamicContent"
};
swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0","expressInstall.swf", flashvars, params, attributes);
</script>
您可以检查:
- swfobjec文档
- <一个href="http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/display/LoaderInfo.html#parameters"相对=nofollow> livedocs'loaderinfo
- swfobjec docs
- livedocs'loaderinfo
这篇关于使用Flash和PHP的用户之间的数据共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!