flash on 2010-3-16
♥0 |
Line 15 |
Modified 2010-03-16 15:39:14 |
MIT License
archived:2017-03-09 16:16:49
ActionScript3 source code
/**
* Copyright hoshito ( http://wonderfl.net/user/hoshito )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/8kKY
*/
package {
import flash.display.Sprite;
import flash.text.TextField;
public class HelloWorld extends Sprite {
public function HelloWorld() {
// write as3 code here..
var tf:TextField = new TextField();
//text naiyou
tf.text = "Hello World!!";
//text ichi
tf.x = tf.y = 100;
//tate haba
tf.height = 20;
//text background
tf.background = true;
tf.backgroundColor = 0xdddd;
addChild(tf);
}
}
}