colorTransform
colorMatrixFilter
ColorTransform is like color multiply (疊加)
ColorMatrix is like Color Overlay but still hv the color depth or gradient 係到
colorTransform
colorMatrixFilter
ColorTransform is like color multiply (疊加)
ColorMatrix is like Color Overlay but still hv the color depth or gradient 係到
http://www.ultrashock.com/forums/actionscript/as3-global-stage-singleton-96247.html
this is an example of stageReference singleton
but it is also a good example using static var instance to store itself,
so a class (with static function use) can run a constructor first
http://asgamer.com/2009/using-string-variables-to-call-functions-in-as3
同場加映 apply function (try it)
Tweenlite.to(mc, ….)
個 mc 都係玩 apply 咋
http://troyworks.com/blog/2008/01/03/as3-functionapply/
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/Function.html
http://rhinotw.blogspot.com/2009/01/as3mask.html
AS3的mask並不會改變原物件的長寬;
舉例來說,一個長寬500×500的A_mc,被一個200×200的B_mc所mask,
AS2的時候,trace會發現A_mc的長寬變成200×200了,
但AS3則仍然trace出500×500。
這問題在需要對A_mc縮放的時候,會有大麻煩,
例如我想放大到寬度是1000px,則AS2會放大5倍,但AS3只會放大2倍;
試過DisplayObject的getRect()跟getBounds(),都是trace出500×500,
Vanilla找到一個怪招:
bitmapData.draw(A_mc);
trace(bitmapData.getColorBoundsRect(0xff000000,0xff000000,true));
就會回報正確的長寬了!
感謝Vanilla!
find these jsfl ! this would be good to u and faster development
http://blog.johannest.com/2010/06/22/runtime-font-publisher-a-tool-for-runtime-font-sharing/
http://www.darkthread.net/MiniJQueryLab/
http://clockmaker.jp/
http://ryobicity.100th.jp/
http://www.kepco.co.jp/pr/elcity/top.html
某某科學展。 3d pixel is used!