HelloWorld on 2009-3-17
HelloWorld こんにちは
♥0 |
Line 19 |
Modified 2009-06-07 09:56:30 |
MIT License
archived:2017-03-10 15:33:42
ActionScript3 source code
/**
* Copyright nilab ( http://wonderfl.net/user/nilab )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/f3rm
*/
package {
import flash.display.*;
import flash.text.*;
[SWF(backgroundColor="#000000", frameRate=30)]
//HelloWorld こんにちは
public class HelloWorld extends Sprite {
public function HelloWorld() {
var textFormat:TextFormat = new TextFormat();
textFormat.color = 0xFFFFFF;
textFormat.size = 48;
textFormat.underline = false;
textFormat.font = "_等幅";
var textField:TextField = new TextField();
textField.text = "hello, world\nこんにちは、世界♪";
textField.autoSize = TextFieldAutoSize.LEFT;
textField.setTextFormat(textFormat);
addChild(textField);
}
}
}