将 xml 作为变量从 php 发送到 flash
我有一个 Flash 文件,可以从文件中传递 xml:
script type="text/javascript">
var flashvars = {};
flashvars.xmlSource = "XML.xml";
...- /脚本>
我可以将 xml 从 php 以变量形式发送到 flash 示例:
$xml = "?xml version="1.0 ...";
- script type="text/javascript">
- var flashvars = {};
- flashvars.xmlSource = ?php echo $xml; ...
- /脚本>
谢谢
I have a flash file where I can pass xml from file :
script type="text/javascript">
var flashvars = {};
flashvars.xmlSource = "XML.xml";
...- /script>
Can I send xml from php in varible to flash example:
$xml = "?xml version="1.0 ...";
- script type="text/javascript">
- var flashvars = {};
- flashvars.xmlSource = ?php echo $xml; ?>;
... - /script>
thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与第一个示例一样,但让 XML.xml 实际上是一个回显 XML 内容的 PHP 文件。 (或者将其命名为 xml.php 并将其作为 xml 文件名传递)
Do like in your first example, but let XML.xml actually be a PHP file that echoes out the XML content. (Or call it xml.php and pass that as the xml filename)