GlowFilterの勉強
/**
* Copyright 110R ( http://wonderfl.net/user/110R )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/zYwX
*/
package{
import flash.display.*;
import flash.filters.GlowFilter;
import flash.text.*;
public class EasyFilter extends Sprite{
public function EasyFilter(){
var bmp:Bitmap = addChild(new Bitmap()) as Bitmap;
var text:TextField = new TextField();
text.autoSize="center";
text.type = "input";
text.x = (stage.stageWidth - text.width) / 2;
text.y = (stage.stageHeight - text.height) / 3;
text.htmlText = <font size="50" color="#ffffff">
mr_trainee3</font>.toXMLString();
addChild(text);
text.filters = [new GlowFilter(0x000000, 1.0, 2, 5, 10)];
}
}
}