AS3在Flex中嵌入系统字体
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了AS3在Flex中嵌入系统字体相关的知识,希望对你有一定的参考价值。
package { import flash.display.Sprite; import flash.text.Font; [SWF(width='600', height='400', frameRate='30', backgroundColor='#000000')] public class App extends Sprite { [Embed(systemFont='Arial',fontName='Arial',mimeType='application/x-font')] private var arialFont:Class; public function App() { init(); } private function init():void { Font.registerFont( arialFont ); } } }
以上是关于AS3在Flex中嵌入系统字体的主要内容,如果未能解决你的问题,请参考以下文章
ActionScript 3 在Flex 3上的AS3中嵌入字体
ActionScript 3 AS3使用flex SDK嵌入字体
在 AS3 Flash/Flex 项目中嵌入 wav 文件?