那就是它! 我需要从外部网站上加载不同HTML文件的图表。我复制了flash对象的嵌入代码并更改了路径和源代码。但是,flash嵌入会给我以下信息:
加载文件时出错:/reports/settings.xml
我无法摆脱这种局面。我尝试输入完整的src,甚至自己创建文件,从检查器的网络窗口中取出它,但这似乎都不起作用。闪光灯不会显示。在这里,我列出了嵌入对象的代码:
<embed type="application/x-shockwave-flash" src="https://www.website.com/reports/amline" width="100%" height="400" style="undefined" id="am_chart" name="am_chart" bgcolor="#FFFFFF" quality="high" wmode="transparent" flashvars="path=http://www.website.com/external/amline/&data_file=http://www.website.com/reports/748c120eb849d2436b5eeaa852d2df5c/data.xml&settings_file=/reports/settings.xml&preloader_color=#000000">
还有这个脚本似乎是flash变量的加载器:
<script type="text/javascript">
// <![CDATA[
so = new SWFObject("/reports/amline", "am_chart", "100%", 400, "8", "#FFFFFF");
so.addVariable("path", "/external/amline/");
so.addVariable("data_file", "/reports/3b34fac79ddaa7876a7ea4408ae80092/data.xml");
so.addVariable("settings_file", "/reports/settings.xml");
so.addVariable("preloader_color", "#000000");
so.addParam('wmode', 'transparent');
so.write("am_chart");
function resizeFlashDiv() {
so.write("am_chart");
// this is to help browsers repaint the div.
document.getElementById('am_chart').style.display = 'none';
document.getElementById('am_chart').style.display = '';
}
window.addEventListener('resize', resizeFlashDiv, false);
// ]]>
</script>
我只是坚持这个如何正确嵌入flash图表的任何帮助真的很感激。谢谢!