Easy Open-Face with GlowFilter 2 (GlowFilterで簡単影付袋文字)
forked from Easy Open-Face with GlowFilter (GlowFilterで簡単袋文字) (diff: 8)
Easy Open Face with GlowFilter and DropShadowFilter # you can edit the text. -------------------------------------------------- GlowFilter と DropShadowFilter で簡単影付袋文字
ActionScript3 source code
/**
* Copyright nitoyon ( http://wonderfl.net/user/nitoyon )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/douY
*/
// forked from nitoyon's Easy Open-Face with GlowFilter (GlowFilterで簡単袋文字)
// Easy Open Face with GlowFilter and DropShadowFilter
// # you can edit the text.
//--------------------------------------------------
// GlowFilter と DropShadowFilter で簡単影付袋文字
package{
import flash.display.*;
import flash.filters.GlowFilter;
import flash.filters.DropShadowFilter;
import flash.text.*;
[SWF(backgroundColor="#ffffff", width="450", height="80")]
public class EasyOpenFaceWithGlowFilter extends Sprite{
public function EasyOpenFaceWithGlowFilter(){
stage.scaleMode = "noScale";
// initialize canvas.
var bmp:Bitmap = addChild(new Bitmap()) as Bitmap;
// Show original text (input)
var text:TextField = new TextField();
text.autoSize = "left";
text.type = "input";
text.htmlText = <font size="50" color="#ffffff">HELLO WORLD</font>.toXMLString();
addChild(text);
// Glow it
text.filters = [
new GlowFilter(0x000000, 1, 4, 4, 16, 1),
new DropShadowFilter(4, 45, 0x000000, 1, 4, 4, 16)
];
}
}
}