03 2015 档案

flash系统奔溃的主要原因
摘要:1.内存泄露(内存超过系统允许的最大限制,11.4版本为2G)2.脚本死循环3.舞台内元件的大小超出了系统限制 阅读全文

posted @ 2015-03-23 18:03 飞舞的蒲公英

WinRAR(WinZip)压缩与解压实现(C#版Window平台)
摘要:本文的原理是借助Windows平台安装的WinRAR(WinZip)实现C#程序的调用(注:WinRAR压缩解压WinZip同样适用)。先来看WinRAR(WinZip)自身的支持调用命令:压缩命令:a{0}{1}-r【{0}:压缩后文件名|{1}:待压缩的文件物理路径】ex:"a你妹.rarf:\... 阅读全文

posted @ 2015-03-20 22:04 飞舞的蒲公英

c#真正判断文件类型
摘要://真正判断文件类型的关键函数 public static bool IsAllowedExtension2(FileUpload hifile) { if (hifile != null) { System.IO.FileStream ... 阅读全文

posted @ 2015-03-20 21:41 飞舞的蒲公英

winform文件拖入
摘要://view.AllowDrop = true;----------------------------------------private void view_DragEnter(DragEventArgs drgevent){if (m_allowdrop){if (drgevent.Data... 阅读全文

posted @ 2015-03-20 21:40 飞舞的蒲公英

c#winform选择文件,文件夹,打开指定目录方法
摘要:private void btnFile_Click(object sender, EventArgs e){OpenFileDialog fileDialog = new OpenFileDialog();fileDialog.Multiselect = true;fileDialog.Title... 阅读全文

posted @ 2015-03-20 20:26 飞舞的蒲公英

C#图片无损压缩
摘要:/引用命名空间using System.Drawing.Imaging;using System.Drawing;using System.Drawing.Drawing2D;#region GetPicThumbnail/// /// 无损压缩图片/// /// 原图片/// 压缩后保存位置///... 阅读全文

posted @ 2015-03-20 20:24 飞舞的蒲公英

as3.0 动态文本属性大全
摘要:var my_fmt = new TextFormat();//常用样式my_fmt.align = "center";my_fmt.blockIndent = 50; //区块缩进my_fmt.bold = true;my_fmt.bullet = true;my_fmt.color = 0xff... 阅读全文

posted @ 2015-03-11 16:26 飞舞的蒲公英