Embedding fonts at runtime

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…

  1. how do you use it in the swf that loads it?
  2. 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");
}
function onFontLoaded (event:Event):void {
        Font.registerFont(Class(getDefinitionByName(nameOfFont)));
        trace("finished loading");
}