PHP 和 FlashVars 通信
这是我需要维护的一个简单问题。我需要将 PHP 变量传递到 FlashVars 中。
<param name=FlashVars value='sourceUrl=<?php echo $fileName;?>'>
如果我使用 其中
videoSource = $fileName
和 $fileName
类似于(视频/video.flv)它不会工作。非常感谢任何帮助
Here is a simple problem I need to maintain. I need to pass PHP variable into FlashVars.
<param name=FlashVars value='sourceUrl=<?php echo $fileName;?>'>
If I use <param name=FlashVars value='sourceUrl=videoSource'>
where videoSource = $fileName
and $fileName
is something like(Video/video.flv) it won't work. Any help is greatly appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许您需要
在操作脚本中使用转储 flash var - 如果它显示正确,则问题出在操作脚本代码的其他位置。或者在这种情况下,可能是文件路径问题或文件权限问题。
将 flashvar 传递到 flash 中不太可能出现问题。
Perhaps you need to use
Dump the flash var in action script - if it appears correctly, then the issue is elsewhere in your action script code. Or in this case it could be a filepath issue or a file permissions issue.
It is unlikely to be an issue with passing the flashvar into flash.
videoSource
采用这种方式$fileName
的值var videoSource="";
问题解决了。videoSource
takes value of$fileName
this wayvar videoSource="<?php echo $fileName;?>";
Problem solved.