FlashVars的查询字符串 [英] FlashVars QueryString
本文介绍了FlashVars的查询字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不清楚传递一个使用查询字符串值Flash变量正确的格式,这就是我想要
< PARAM NAME =Flash变量值=部分=<%=的Request.QueryString [部分]%>中/>
不过这会导致一个解析/ EN code错误和swf犯规负荷,同样的,如果我使用单引号,即
< PARAM NAME =Flash变量值=部分=<%=的Request.QueryString ['部分']%>中/>
任何考生?
干杯
解决方案
如果您正在使用的HTML,使用变量本身:
< PARAM NAME =Flash变量值=部分= valueOfPartGoesHere和放大器; anotherPart = anotherPartValueGoesHere/>
有关嵌入标签(用于FF等浏览器):
<嵌入Flash变量=部分= valueOfPartGoesHere和放大器; anotherPart = anotherPartValueGoesHere/>
FOT这一点,你必须运行PHP,ASP或其他动态语言/平台是动态的。
如果您使用的是PHP,使用方法:
<?PHP的echo $ _ GET ['部分']; ?>
而不是
<%=的Request.QueryString ['部分']%>
有关ASP:
<%=的Request.QueryString(部分)%>
等等...
I'm unclear on the proper format for passing a QueryString Value using FlashVars, this is what I'm trying
<param name="FlashVars" value="part=<%= Request.QueryString["part"] %>" />
but this causes a parse/encode error and the swf doesnt load, same if I use single quotes ie
<param name="FlashVars" value="part=<%= Request.QueryString['part'] %>" />
Any takers?
Cheers
解决方案
If you are working with HTML, use the variable itself:
<param name="FlashVars" value="part=valueOfPartGoesHere&anotherPart=anotherPartValueGoesHere" />
For embed tags (required for FF and other browsers):
<embed flashvars="part=valueOfPartGoesHere&anotherPart=anotherPartValueGoesHere" />
Fot this to be dynamic you have to run a PHP, ASP or other dynamic language/platform.
If you are using PHP, use:
<?php echo $_GET['part']; ?>
instead of
<%= Request.QueryString['part'] %>
For ASP:
<%= Request.QueryString("part") %>
And so on...
这篇关于FlashVars的查询字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文