Dynamically loaded fonts

This is an interesting problem to which I don’t think there is a solution. So here it goes.

The normal way to load a dynamic font library would be to create a shared doc and drag the items into the main project. The choice of font would be controlled through actionscript and everything would be peachy; however, we’re looking for a way to load font libraries dynamically without having to recompile the main document.
As far as I know there must be a predifined linkage and a recompile of the main swf, but if anyone has managed to do this another way I would appreciate your help.

Thanks in advance for your response.