融合图表未显示Flash

融合图表未显示Flash

本文介绍了融合图表未显示Flash Player警告消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Fusion Charts 3.2.1.当我的Flash Player未在浏览器中启用或未安装时,我想显示一条警告消息.我怎么做?奇怪的是,即使禁用了Flash,即使在官方网站上,图表面板也完全空白.

I'm using Fusion Charts 3.2.1. I want to show a warning message when my flash player isn't enabled in browser or installed. How do I do that? Is strange that even on the official site the chart panel is completely blank when flash is disabled.

推荐答案

如果使用JavaScript代码呈现图表,则可以使用detectFlashVersion和autoInstallRedirect构造函数参数(将它们设置为1)来显示警报消息和重定向进入Flash Player下载页面.

If you are using JavaScript code to render the chart, you can use detectFlashVersion and autoInstallRedirect constructor parameters (set them to 1) to show an alert message and a redirection to flash player download page.

示例:

var myChart = new FusionCharts({ swfUrl : "FusionCharts/Column3D.swf", id : "myChartId", renderAt : "chartContainer", dataSource : "Data.xml", "detectFlashVersion": 1, "autoInstallRedirect": 1 });

查看最后两个构造函数属性.

Check out the last two constructor properties.

var myChart = new FusionCharts("FusionCharts/Column3D.swf", "myChartId", "400", "300", 0, 0, "", "noScale", "", 1, 1);

检查以上代码中的最后两个参数(作为1传递)

Check out the last two parameters (passed as 1) in the above code

这篇关于融合图表未显示Flash Player警告消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 13:35