3: 2016-02-12 (金) 22:33:57 njf[4] [5] [6] | 現: 2018-04-14 (土) 02:59:27 njf[4] [7] [8] | ||
---|---|---|---|
Line 1: | Line 1: | ||
StarlingのTextFieldを使うとAS3と同様にしてテキストを表示できる。 | StarlingのTextFieldを使うとAS3と同様にしてテキストを表示できる。 | ||
+ | |||
+ | (&font(Red){以下の内容はver1.xのみに対応しています。ver.2以降からTextFieldは大幅に変更されました};) | ||
var tf:TextField = new TextField(200, 30, "test",FONT_NAME,26,0xff0000); | var tf:TextField = new TextField(200, 30, "test",FONT_NAME,26,0xff0000); | ||
Line 27: | Line 29: | ||
public function MultiLineTextField (width:int, height:int, text:String, fontName:String = "Verdana", fontSize:Number = 12, color:uint = 0, bold:Boolean = false) { | public function MultiLineTextField (width:int, height:int, text:String, fontName:String = "Verdana", fontSize:Number = 12, color:uint = 0, bold:Boolean = false) { | ||
super(width, height, text, fontName, fontSize, color, bold); | super(width, height, text, fontName, fontSize, color, bold); | ||
+ | |||
} | } | ||
override protected function formatText(textField:flash.text.TextField, textFormat:TextFormat):void | override protected function formatText(textField:flash.text.TextField, textFormat:TextFormat):void |
(This host) = https://njf.jp