Luar's Flash Playground
//www.luar.com.hk/flashbook/
en-us2015-08-10T01:29:19+08:00BitmapData QRCode Scanner
//www.luar.com.hk/flashbook/archives/001433.php
我測試過不同免費或收費的QRCode AIR Native Extension, 都是打開相機全熒幕拍攝, 既不可以自訂界面, 也不可以加額外設計在影像上面, 所以只好自己寫一個ANE, 可以直接傳入BitmapData進行QRCode解碼, 速度當然比AS3寫的QRCode decoder快很多 https://github.com/luarpro/BitmapDataQRCodeScanner...Componentluar2014-06-24T02:15:00+08:00[JSFL] 切換Bitmap使用文件壓縮質素或自訂壓縮質素
//www.luar.com.hk/flashbook/archives/001419.php
寫了一個JSFL,能夠快速將Library中的Bitmap,如果是以Photo(JPEG)壓縮的,可以是用文件壓縮質素,統一處理;或者自訂壓縮質素之間切換,順道設定了使用Allow smoothing...Componentluar2009-05-30T06:01:44+08:00DoubleClickDispatcher - 替組件加入double click事件
//www.luar.com.hk/flashbook/archives/001237.php
Flash組件一直缺少偵測double click事件的功能,所以我很快地寫了這個DoubleClickDispatcher,主要比較跟Mouse click有關的事件,例如:click, change兩者之間時間差距來決定是否有double click...Componentluar2005-08-15T17:14:19+08:003D旋轉組件
//www.luar.com.hk/flashbook/archives/001085.php
3D旋轉Menu改成的組件版...]]>Componentluar2005-01-19T21:05:30+08:00伸縮Menu中文版
//www.luar.com.hk/flashbook/archives/001038.php
《AS2與RIA》書5.3.4.3的範例(第5-246頁),如果嵌入中文字體,請先建立一個Dynamic TextField,才可以指定中文字,至於Library中的字體,就要刪去...FlashBookluar2004-11-02T15:27:36+08:00將Tree組件改成熱門的伸縮Menu
//www.luar.com.hk/flashbook/archives/000952.php
這是我第2本書其中一個範例,只是用CellRenderer API和XML文件,動態產生以下伸縮Menu,這樣Menu,一直是網頁設計上熱門的東西,如果自己做,都起碼花上三四天時間,現在只要用Tree組件,每次修改XML文件便可,Menu上背景,都是Movie Clip Linkage,美工很容易修改,歡迎大家隨便使用...Componentluar2004-07-23T10:26:53+08:00擴展Accordion組件:置中、滾動條
//www.luar.com.hk/flashbook/archives/000949.php
這是我第2本書其中一個範例,將功能簡陋的Accordion組件加入內容Movie Clip置中、設置內容Movie Clip與邊框距離,自動出現滾動條的功能。第2本書包含很多使用組件的知識,包括我的獨家技巧,好像這個,就算是國外英文書都是找不到的...Componentluar2004-07-11T05:02:57+08:00最簡單方法修改組件外觀
//www.luar.com.hk/flashbook/archives/000944.php
這是我第2本書其中一個範例,將ScrollBar改成MacOS X風格...Componentluar2004-06-27T08:06:11+08:00FlashCom Bandwidth Meter
//www.luar.com.hk/flashbook/archives/000885.php
FlashCom提供的Communication App Inspector功能太簡單,對監察每個Instance佔去多少Bandwidth非常不便,所以我特別寫了這個Bandwidth Meter,主要方便自己平日工作的...FlashComluar2004-03-10T02:37:54+08:00prepareFLA
//www.luar.com.hk/flashbook/archives/000876.php
我的所有FLA都非常有系統,Timeline的Layers都有命名,Library的Symbols都分類放好。每次開始一個新FLA都要做一次,不如寫了一個Command方便自己,自動在Timeline上建立一個script和label的Layers,自動在Library中建立好各種分類的Folder...Componentluar2004-02-25T18:23:55+08:00Publish Template:將Flash影片置中
//www.luar.com.hk/flashbook/archives/000854.php
平日用Flash的Publish產生的HTML,Flash影片是靠左上角,每次我都要改HTML,用一個Table將Flash影片包圍,然後將它置中,這樣無論什麼Resolution下的Browser看出來,Flash影片都是在正中央...Componentluar2004-01-15T17:55:43+08:00Layer to Frame / Frame to Layer
//www.luar.com.hk/flashbook/archives/000805.php
Just learn JSFL and XUL, write this little command as practice. It can help you distribute multiple Layers into seperate Frames in a same new Layer, or distribute multiple Frames in the same Layer to seperate different new Layers...Componentluar2003-10-06T03:38:39+08:00顏色選取組件
//www.luar.com.hk/flashbook/archives/000713.php
利用顏色色板控制Movie Clip的顏色...Componentluar2003-04-19T20:22:47+08:00拖動條Slider
//www.luar.com.hk/flashbook/archives/000712.php
拖動方式控制一個Variable數值...Componentluar2003-04-19T20:20:55+08:00計時器
//www.luar.com.hk/flashbook/archives/000671.php
向前或倒數計時...Componentluar2002-12-06T22:27:56+08:00方向鍵控制
//www.luar.com.hk/flashbook/archives/000670.php
利用鍵盤控制Movie Clip移動...Componentluar2002-12-05T22:27:24+08:00自定鼠標
//www.luar.com.hk/flashbook/archives/000669.php
將任何Movie Clip轉為鼠標...Componentluar2002-12-05T14:48:15+08:00