Ad
3: 2016-02-12 (Fri) 22:33:57 njf source Edit Backup No.3 as current. Cur: 2018-04-14 (Sat) 01:59:27 njf source Edit
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


Front page   Edit Diff Backup Upload Copy Rename ReloadPrint View   New Page Page list Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom) Powered by xpWiki
Counter: 1731, today: 1, yesterday: 0
広告

ログイン

ユーザー名:


パスワード:





パスワード紛失


NJF