flash on 2010-4-6
♥0 |
Line 21 |
Modified 2010-04-07 00:07:00 |
MIT License
archived:2017-03-20 01:09:10
ActionScript3 source code
/**
* Copyright kazuyuki ( http://wonderfl.net/user/kazuyuki )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/14Ov
*/
package {
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFormat;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var myText:TextField = new TextField();
myText.x = 0;
myText.y = 0;
myText.width = 500;
myText.height = 100;
var format:TextFormat = new TextFormat();
format.font = "_ゴシック";
format.color = 0xff0000;
format.size = 50;
myText.defaultTextFormat = format;
myText.text = "hogehogehogehoge";
addChild(myText);
}
}
}