我'寻找如何从一个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文档 livedocs'loaderinfo swfobjec docs livedocs'loaderinfo上一篇:卡插槽安全提示?插槽、提示、安全
下一篇:通过调用名字变色名字