Flash AS3 光暈濾鏡
因為設計師設計在點了某一個物件要有發光的效果,就去找AS3的filter,把樣都設定好再套到想要套的物件上就好了。
ActionScript 3.0 光暈濾鏡
- import flash.display.Sprite;
- import flash.filters.BitmapFilterQuality;
- import flash.filters.GlowFilter;
- var glow:GlowFilter = new GlowFilter();
- glow.color = 0x009922;
- glow.alpha = 1;
- glow.blurX = 25;
- glow.blurY = 25;
- glow.quality = BitmapFilterQuality.MEDIUM;
- mc.filters = [glow]; //加到要套的mc上
ActionScript 3.0 光暈濾鏡
留言