forked from: TextField_backgroundColor

by hacker_u_yjm2r7 forked from TextField_backgroundColor (diff: 2)
♥0 | Line 17 | Modified 2010-02-13 00:45:38 | MIT License
play

ActionScript3 source code

/**
 * Copyright hacker_u_yjm2r7 ( http://wonderfl.net/user/hacker_u_yjm2r7 )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/lp166
 */

// forked from oshige's TextField_backgroundColor
package {
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;

	public class MyTextField extends Sprite {
		public function MyTextField(){
			var fld:TextField = new TextField();
			fld.text = "楽しいActionScriptの世界へ";
			fld.x = 100;
			fld.y = 200;
			fld.autoSize = TextFieldAutoSize.LEFT;
			fld.background = true;
			fld.backgroundColor = 0xFFFF00;
			addChild(fld);
		}
	}
}