易截截图软件、单文件、免安装、纯绿色、仅160KB

用flash调用VC打开文件对话框,取得路径。

    本来想用flash的as2调用html+javascript的方法取得本地路径,但项目催得紧,没有时间研究基本不会的html了。只好使用熟悉的vc,捣鼓了一整天,凑合出一个解决方法来。不罗嗦了,见正文。
======================flash端的as2脚本如下:
//call Open file dialog
//fscommand("exec", "deleteFile.exe");
//fscommand("exec", "forFlash.exe");
System.useCodepage = true;
//System.setClipboard( "Hello   world ");
var gFilePath:String;
function btn1_fun() {
var my_lv:LoadVars = new LoadVars();
var bIsStopWait:Boolean = false;
var intervalId:Number;
var duration:Number = 300000;//5 minus
fscommand("exec", "openFile.exe");
intervalId = setInterval(timerEvent, duration);
my_lv.load("fscommand/filePath.txt",my_lv,"GET");
function timerEvent():Void {
bIsStopWait = true;
clearInterval(intervalId);
title_txt.text = "Time is over.";
//my_lv.load("fscommand/filePath.txt",my_lv,"GET");
}
my_lv.onData = function(src:String) {
if (src == undefined) {
trace("Error loading title.");
title_txt.text = "loading...";
if (true == bIsStopWait) {
title_txt.text = "Time is over.";
bIsStopWait = false;
return;
}
my_lv.load("fscommand/filePath.txt",my_lv,"GET");
return;
} else {
clearInterval(intervalId);
if ("Error_Or_Cancel" == src) {
title_txt.text = "User not open a file.";
} else {
title_txt.text = src;
loadContent(src);

//file path process
gFilePath=src;
}
//call  delete path file
fscommand("exec", "deleteFile.exe");
return;
}
};
}
function loadContent(pCon:String) {
var my2_lv:LoadVars = new LoadVars();
my2_lv.onData = function(src:String) {
if (src == undefined) {
trace("Error loading content.");
return;
}
content_txt.text = src;
};
my2_lv.load(pCon,my_lv,"GET");
}
//------------------background-------------------------
function btn2_fun() {
var my_lv:LoadVars = new LoadVars();
var bIsStopWait:Boolean =


相关文档:

提供FLASH文件保护

联系QQ:787135989
提供FLASH文件保护.
可以最大限度保护你的FLASH的安全!
防止闪客精灵还原你的SWF文件
中断Action Script Viewer查看脚本资源!
也提供手工破解FLASH
防止非法分配你的个人资源.
                  ------- ......

64位linux安装adobe flash play插件

1.打开
http://labs.adobe.com/downloads/flashplayer10_64bit.html 
下载 Flash Player 10 for 64-bit Linux
2.解压后复制到/usr/lib64/mozilla/plugins
mv libflashplayer.so  /usr/lib64/mozilla/plugins/libflashplayer.so
3.重启firefox,可以修改flash默认字体
vi /etc/fonts/conf.d/49-sansserif ......

flash插入页面后在IE下stageWidth为0的bug

用SWFObject,将swf文件嵌入网页后,在IE浏览器中首次浏览正常,刷新后,stageWidth就为0了,swf中基于stageWidth定位的元素,就会错乱。
转自(ljhzzyx 2009-09-24 14:44:20)
首先区分一下stage的stageWidth和width属性。stage.stageWidth是flash player的宽度,stage.width是指stage里content的宽度,如果这个舞台(sta ......

解决div被flash遮挡问题


很多时候,当你有一个层是需要漂浮在页面之上显示的时候,而你的页面里又存在FLASH,这个时候,漂浮层会被FLASH遮挡住,那么解决办法就是给FLASH设置透明属性。
添加参数<param name="wmode"
value="transparent"> 
//可很好的被IE浏览器所支持
将 wmode="transparent"
加 ......

nor flash 与 nand flash 的区别

Beside the different silicon cell design, the most important difference between NAND and NOR Flash is the bus interface. NOR Flash is connected to a address / data bus direct like other memory devices as SRAM etc. NAND Flash uses a multiplexed I/O Interface with some additional control pins. NAND fl ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号