Ubuntu下Flash中将汉字显示为方格的解决办法
Ubuntu下装完Adobe的Flash插件后,浏览器里可以播放Flash动画了。但是还存在一个问题就是汉字无法正确显示,显示为方格
解决办法:
修改这个配置文件
/etc/fonts/conf.d/49-sansserif.conf
把其中所有的字体名替换为中文字体名即可,我这里用的是“微软雅黑”和“Consolas“。
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
If the font still has no generic name, add sans-serif
-->
<match target="pattern">
<test qual="all" name="family" compare="not_eq">
<string>微软雅黑</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>微软雅黑</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>Consolas</string>
</test>
<edit name="family" mode="append_last">
<string>微软雅黑</string>
</edit>
</match>
</fontconfig>
相关文档:
ExternalInterface
ExternalInterface 类是外部 API,在 ActionScript 和 Flash Player 的容器之间实现直接通讯的应用程序编程接口,
例如,含有 JavaScript 的 HTML 页。 推荐对所有 JavaScript 与 ActionScript 之间的通信使用 ExternalInterface。
在 HTML 页中使用 JavaScript,可以调用 Flash Player 中的 Actio ......
1.首先下载FusionCharts 和 jquery相关的jar包
2.在WebRoot(MyEclipse)下新建script文件夹,放入jquery.js。新建FusionCharts,将fusionCharts包下的Charts文件夹粘贴过来(里面为各种图像报表的模板:如FCF_Area2D.swf、FCF_Bar2D.swf等等),将FusionCharts.js拷入FusionCharts目录下。
3.准备工作完毕、编写 ......
var aa:Boolean = true;
my_btn.onPress = function() {
if (aa == true) {
fscommand("fullscreen", true);
aa = false;
} else {
fscommand("fullscreen", false);
aa = true;
}
};
my_btn是一个按钮 ......
Main.cpp (Win/*nix)
#include "FlexSecurityBox.h"
int main(int argc, char ** argv) {
char * address;
short port;
if (argc == 2)
{
address = "0.0.0.0";
port = atoi(argv[1]);
} else if (argc == 3)
{
address = argv[1];
port = atoi(argv[2]);
} else
{
printf("Y ......
HTML clipboardThese days a
16GB USB thumb drive
is as necessary as your house keys. Whether you are
taking large work files back and forth from the office or are sharing pictures,
videos, and music with friends, nothing beats the convenience of a USB storage
drive. Well, why not make sure t ......