In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

GlowFilterの勉強

Get Adobe Flash player
by 110R 08 Mar 2010
    Embed
/**
 * 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)];
    }
}
}