Ad
3: 2016-02-12 (金) 22:33:57 njf ソース バックアップ No.3 を復元して編集 現: 2018-04-14 (土) 02:59:27 njf ソース 編集
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


トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード印刷に適した表示   ページ新規作成 全ページ一覧 単語検索 最新ページの一覧   ヘルプ   最新ページのRSS 1.0 最新ページのRSS 2.0 最新ページのRSS Atom Powered by xpWiki
Counter: 3117, today: 1, yesterday: 1
MenuBar
広告

ログイン

ユーザー名:


パスワード:





パスワード紛失

Portuguese | English | German | Greek | Japanese | Korean | Russian | T-Chinese top
NJF