forked from: Vivid Text
forked from Vivid Text (diff: 5)
BradSedito 2011
ActionScript3 source code
/**
* Copyright s8t1h12akj ( http://wonderfl.net/user/s8t1h12akj )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/crfI
*/
// forked from bradsedito's Vivid Text
// 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", 38, null, true);
var tfm2:TextFormat = new TextFormat("sans", 38, null, true);
var tf:TextField = new TextField();
var tf2:TextField = new TextField();
tf.defaultTextFormat = tfm;
tf.width = 456;
tf.type = TextFieldType.INPUT;
tf.text = "転居して函館@あき爺から";
addChild(tf);
tf2.y = stage.stageHeight - 390;
tf2.defaultTextFormat = tfm2;
tf2.width = 456;
tf2.type = TextFieldType.INPUT;
tf2.text = "札幌@あき爺へ戻りました.";
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;
}
}
}