Vivid Text

by bradsedito
BradSedito 2011
♥0 | Line 37 | Modified 2011-04-28 23:55:47 | MIT License
play

ActionScript3 source code

/**
 * Copyright bradsedito ( http://wonderfl.net/user/bradsedito )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/vRZ4
 */



// BradSedito 2011


package  
{
    import flash.display.Bitmap;
    import flash.display.BitmapData;
    import flash.display.BlendMode;
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    import flash.text.TextFieldType;
    import flash.text.TextFormat;
    public class TempTest2 extends Sprite
    {
        public function TempTest2() 
        {
            
            var tfm :TextFormat = new TextFormat("sans", 80, null, true);
            var tfm2:TextFormat = new TextFormat("sans", 50, null, true);
            var   tf:TextField = new TextField();
            var  tf2:TextField = new TextField();

            tf.defaultTextFormat = tfm;
            tf.width = 456;
            tf.type = TextFieldType.INPUT;
            tf.text = "WonderFl!";
            addChild(tf);
            
            tf2.y = stage.stageHeight - 390;
            tf2.defaultTextFormat = tfm2;
            tf2.width = 456;
            tf2.type = TextFieldType.INPUT;
            tf2.text = "[ VividText ]";
            addChild(tf2);
         
            var bmd:BitmapData = new BitmapData(465, 465);
            bmd.perlinNoise(100, 100, 2, 2, true, true);
            var image:Bitmap = new Bitmap(bmd);
            addChild(image);
            image.blendMode = BlendMode.HARDLIGHT;
        }
    }
}

Forked