ApplicationDomain problems

[SIZE=2]I have some fonts stored in SWF’s that load at startup and then are registered with registerFont. It works perfectly well, unless the application that is doing the loading is itself loaded by another application using SWFLoader into a seperate ApplicationDomain. Then registerFont stops working. Has anybody encountered this and knows what the problem is. [/SIZE]

[SIZE=2]Here’s the code (actually part of a test program to isolate the problem):[/SIZE]

 
private function InitApp():void { 
  var ldr:Loader= new Loader();
  ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, regfont);
  ldr.load(new URLRequest("Bogusflow.swf"));
}
 
private function regfont(event:Event):void {
  var Bogusflow:Class = Class(LoaderInfo(event.target).applicationDomain.getDefinition
    ("Bogusflow"));
  Font.registerFont(Bogusflow.wrFont); 
}

[SIZE=2](Works fine unless the SWF containing the above is itself loaded via SWFLoader into a seperate ApplicationDomain.)[/SIZE]

[SIZE=2]Here is the font file:[/SIZE]

 
package {
  import flash.display.Sprite;
  public class Bogusflow extends Sprite {
    [Embed(systemFont='Bogusflow', fontName='Bogusflow', fontStyle='normal',
      fontWeight='normal',
    mimeType='application/x-font')]
    public static var wrFont:Class;
  }
}

[SIZE=2]And the code that loads the application:[/SIZE]

 
private function InitApp():void {
 
  var swf:SWFLoader = new SWFLoader();
 
  swf.scaleContent = false;
 
 
  //comment this out and the problem goes away:
  //(it needs to stay in though)
  swf.autoLoad = false; 
  swf.loaderContext = 
  new LoaderContext(false,new ApplicationDomain(null));
  swf.trustContent = true;
  ////
 
  Application.application.addChild(swf); 
 
  swf.load("test.swf");
}