Welcome to my actionscript snippet library!

Actionscript Snips is a small repository of actionscript code that aims to save developers and designers time when developing a website.  

Create Dynamic Textfield


var exampleTextField:TextField = new TextField();
exampleTextField.text = "your text goes here";
exampleTextField.width = 200;
addChild(exampleTextField);
exampleTextField.autoSize = TextFieldAutoSize.LEFT;

var format:TextFormat = new TextFormat();
format.color = 0x990000;
format.size = 20;
exampleTextField.setTextFormat(format);

0 comments:

Post a Comment