Can’t figure out how to use the code I have to load two or more fonts, and how to use them in a swf when loaded.
I know how top embed a font and share it with another swf but…
- how do you use it in the swf that loads it?
- can you show me using two or more fonts?
heres what i have so far to load 1 font:
var fontLoader:Loader = new Loader();
var fontLoaderInfo:LoaderInfo = fontLoader.contentLoaderInfo;
fontLoaderInfo.addEventListener(Event.COMPLETE, onFontLoaded);
fontLoader.load(new URLRequest("fonts/ArialRegular.swf"));
fontLoaderInfo.addEventListener(Event.COMPLETE, onFontLoaded);
function onFontLoaded (e:Event):void {
trace("finished loading");
}