forked from: TextField_wordWrap
/**
* 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);
}
}
}