In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

forked from: TextField_wordWrap

Get Adobe Flash player
by hacker_n96o8lrr 22 Mar 2010
    Embed
/**
 * Copyright hacker_n96o8lrr ( http://wonderfl.net/user/hacker_n96o8lrr )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/rpFS
 */

// forked from oshige's TextField_wordWrap
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.x = 100;
			fld.y = 50;
			fld.autoSize = TextFieldAutoSize.LEFT;
			fld.wordWrap = true;
			fld.width = 70;
			fld.border = true;
			fld.borderColor = 0xFF0000;
			fld.text = "楽しいActionScriptの世界へ";
			addChild(fld);
		}
	}
}