Re: [問題] 組件的字型大小可以更改嗎?

看板Flash作者 (uu)時間17年前 (2008/09/26 14:12), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串2/2 (看更多)
※ 引述《isavia (uu)》之銘言: : 請問組件的字型大小可以更改嗎? : 像是 RadioButton or NumericStepper 的 : 如果可以~要怎麼設定呢? 感謝~依cj大所說的設定~我用以下的方法 var format:TextFormat = new TextFormat(); format.size = 24; format.font = "MV boli"; format.color = 0xFF0000; my_txt.setTextFormat(format); //work NS.textField.textField.setTextFormat(format); //can't work my_txt 是動態文字,以上述方法設定可以work 但 NS 是NumericStepper就不wrok了說.... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.166.135.215

10/01 08:12, , 1F
原來是要換成 NS.setStyle("textFormat", format); 就可以
10/01 08:12, 1F

10/01 11:18, , 2F
噢,原來如此。是我搞錯了,sorry
10/01 11:18, 2F
文章代碼(AID): #18t7r1M4 (Flash)
討論串 (同標題文章)
文章代碼(AID): #18t7r1M4 (Flash)