flash on 2009-11-17
♥0 |
Line 23 |
Modified 2009-11-17 20:01:12 |
MIT License
archived:2017-03-20 17:02:24
ActionScript3 source code
/**
* Copyright fantasista ( http://wonderfl.net/user/fantasista )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/v2Da
*/
package {
import flash.display.Sprite;
import flash.filters.*;
import flash.text.*;
public class FlashTest extends Sprite {
public function FlashTest() {
var txt:TextField = new TextField();
txt.text = "ARADAS.NET";
txt.width = 300;
txt.x = stage.stageWidth/2-50;
txt.y = stage.stageWidth/2-50;
var fmt:TextFormat = new TextFormat();
fmt.size = 30;
fmt.color = 0xFF901F;
txt.setTextFormat(fmt);
var gl:GlowFilter = new GlowFilter(0xFF0000, 1, 4, 4, 10, 1, false, false);
var myFilters:Array = txt.filters;
myFilters.push(gl);
txt.filters = myFilters;
addChild(txt);
}
}
}