Loving Coding & Visual Design

20090514学习

1. getDefinistionByName as Class
import flash.utils.getDefinitionByName;
var className:Class = getDefinistionByName( StringName ) as Class;
var foo:Sprite = new className();

source

2. BitmapDataUnlimited
import com.formatlos.as3.lib.display.BitmapDataUnlimited;
import com.formatlos.as3.lib.display.events.BitmapDataUnlimitedEvent;

var bdu:BitmapDataUnlimited = new BitmapDataUnlimited();
bdu.addEventListener(BitmapDataUnlimitedEvent.COMPLETE, onBmpReady);
bdu.create(5000, 5000, true);

var hugeBmp : BitmapData;

function onBmpReady(event : BitmapDataUnlimitedEvent) : void
{
hugeBmp = bdu.bitmapData;
trace("BitmapData: w=" + hugeBmp.width + " h=" + hugeBmp.height);
}

e.g. a BitmapData with 12000 x 12000 px needs more than 1GB.

3、Photoshop技巧:提高截屏图片打印的分辨率 - PS普通截屏图片到300dpi的分辨率



下一页


最 近 文 章

  1. Flash导入动态三维DAE文件 - Thu, 27 Aug 2009 05:37:59 +0000
  2. 2009-08-24存档 - Mon, 24 Aug 2009 14:14:22 +0000
  3. 2009-08-19存档 - Wed, 19 Aug 2009 02:32:46 +0000
  4. 电脑遭遇战 - Fri, 14 Aug 2009 04:11:27 +0000
  5. 电脑遭遇战 - Thu, 13 Aug 2009 16:11:00 +0000
  6. 用Google Docs快速创建联系表单 - Fri, 07 Aug 2009 06:01:00 +0000
  7. PHP5.3.0==deprecated ^_^! - Fri, 24 Jul 2009 08:53:00 +0000
  8. Windows下快速安装Subversion的Apache服务器 - Thu, 23 Jul 2009 16:07:00 +0000
  9. 2009-7-16记号:三维相关 - Thu, 16 Jul 2009 04:53:00 +0000
  10. Unity3D确实很酷 - Fri, 29 May 2009 07:12:00 +0000