wordpress使用固定網址
要啟動rewrite模組
2011年8月1日 星期一
最基本的路徑概念
以資料夾名稱開頭 表示以該檔案為中心出發,底下即是跟該檔案同一層的img資料夾
img/
以 / 開頭表示以伺服器下 找目錄wordpress 底下的img資料夾
/wordpress/img
img/
以 / 開頭表示以伺服器下 找目錄wordpress 底下的img資料夾
/wordpress/img
2011年7月21日 星期四
透明PNG也可以當遮色片(透明區域不遮會不顯示,不透明區域遮到會顯示)
lumos_pic.cacheAsBitmap = true;//被mask的對象要cache
//mask區域
lumos_mask.filters = [new BlurFilter(0,0,0)]//給mask加上filter
//設定mask
lumos_pic.mask = lumos_mask;
//mask區域
lumos_mask.filters = [new BlurFilter(0,0,0)]//給mask加上filter
//設定mask
lumos_pic.mask = lumos_mask;
2011年7月20日 星期三
AS3 跳外部連結navigateToURL
my_btn.addEventListener(MouseEvent.MOUSE_DOWN, opneNewPage);
function opneNewPage(e:MouseEvent){
var targetURL:URLRequest = new URLRequest('http://tw.yahoo.com');
navigateToURL(targetURL , "_Blank");
}
function opneNewPage(e:MouseEvent){
var targetURL:URLRequest = new URLRequest('http://tw.yahoo.com');
navigateToURL(targetURL , "_Blank");
}
2011年7月19日 星期二
BitmapData移動也可以平滑
//##bg就是要使用的MOVIECLIP或物件 什麼鬼loder之類的
var bitmap:BitmapData=new BitmapData(bg.width, bg.height);
bm = new Bitmap(bitmap);
bm.pixelSnapping = 'auto';
bm.smoothing = true;
//設定matrix來縮放原圖大小
//var matrix:Matrix = new Matrix();
//等比縮放
//var scale:Number = p_width / _ldr.content.width;
//matrix.scale(scale, scale);
//強致縮放
//var scaleX:Number = p_width / _ldr.content.width;
//var scaleY:Number = 44 / _ldr.content.height;
//matrix.scale(scaleX, scaleY);
//畫出來
//bitmap.draw(_ldr,matrix);
bitmap.draw(bg);
addChild(bm);
var bitmap:BitmapData=new BitmapData(bg.width, bg.height);
bm = new Bitmap(bitmap);
bm.pixelSnapping = 'auto';
bm.smoothing = true;
//設定matrix來縮放原圖大小
//var matrix:Matrix = new Matrix();
//等比縮放
//var scale:Number = p_width / _ldr.content.width;
//matrix.scale(scale, scale);
//強致縮放
//var scaleX:Number = p_width / _ldr.content.width;
//var scaleY:Number = 44 / _ldr.content.height;
//matrix.scale(scaleX, scaleY);
//畫出來
//bitmap.draw(_ldr,matrix);
bitmap.draw(bg);
addChild(bm);
2011年7月1日 星期五
訂閱:
文章 (Atom)