Hello,World.
just shows 'Hello,world.'
@author Esukei
♥0 |
Line 21 |
Modified 2008-12-19 11:12:04 |
MIT License
archived:2017-03-09 23:35:41
ActionScript3 source code
/**
* Copyright esukei ( http://wonderfl.net/user/esukei )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/mDMF
*/
package
{
import flash.display.MovieClip;
import flash.text.TextField;
import flash.text.TextFormat;
[SWF(width="465", height="465", backgroundColor="0x000000", frameRate="30")]
/**
* just shows 'Hello,world.'
* @author Esukei
*/
public class HelloWorld extends MovieClip
{
private var textField:TextField = new TextField();
private var textFormat:TextFormat = new TextFormat();
public function HelloWorld()
{
textFormat.font = "Arial";
textFormat.color = 0xFFFFFF;
textFormat.size = 10;
textField.defaultTextFormat = textFormat;
textField.text = 'Hello,world.';
addChild(textField);
}
}
}