修改Tree組件支持中文 | (29-05-2003) |
Macromedia的組件一向在支持中文方面都相當理想,可惜在Flash UI Components Set 2中的Tree組件,卻不能支持中文,因為它Embed了英文字體Arial。 一般情況下,Macromedia的組件都可以用以下ActionScript,控制組件是否Embed Font: myStyleFormat = new FStyleFormat(); 可惜這對Tree組件無效,解決方法,只好直接修改組件裡ActionScript,打開Library,修改Flash UI Components>Core Assets - Developer Only>FUIComponent Class Tree>FUIComponent SubClasses>FSelectableItem SubClasses>FTreeSelectableItem。 Layer "Actions : Class",第21行,將: 刪除,或者轉為註釋: 另外,可以對Tree組件進行額外改造,就是刪除水平Scroll Bar。 打開Library,修改Flash UI Components>Tree Layer "Actions : Class",第630行,將: 刪除,或者轉為註釋: 結果就如這樣: |
|||||||
本文章由發表。 |
意見 | |
沒有意見。 |
|
同組文章 |