AS Test
♥0 |
Line 19 |
Modified 2009-12-14 22:34:09 |
MIT License
archived:2017-03-20 20:09:59
ActionScript3 source code
/**
* Copyright silvercat ( http://wonderfl.net/user/silvercat )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/jk4u
*/
package {
import flash.display.*;
import flash.text.*;
public class Main extends Sprite {
public function Main() {
var format:TextFormat = new TextFormat();
format.color = 0x0000ff;
format.size = 40;
var textField:TextField = new TextField();
textField.text= "SilverCat!!";
textField.width = 200;
textField.height = 50;
textField.background = true;
textField.backgroundColor = 0x909090;
textField.setTextFormat(format);
this.addChild(textField);
}
}
}