The variable embeddedFont is the class you want to pass into registerFont. No need for all that getDefinition stuff.
Thank you for your help.
I agree that the embeddedFont class is what I am after but I thought I had to do the getDefinition call to get access to the FontLibrary object inside hte loaded SWF which contains the class. I am happy enough not to use the getDefinition call but I am afraid I don't know how to get to the embeddedFont class any other way.
Could I please ask you for a little more detail on how to access the class from the external SWF without using the getDefinition call.
Sorry, it is hard to read code snippets. I would call registerFont from within the module. Then embeddedFont should be in scope.
Thank you for your reply to my post last week, and my apologies for the delayed follow up.
Whilst I was moving the registerFont code from the master SWF to the embedded one, I discovered an error in the code I had originally posted as a snippet here. For some reason the code I had moved to the external font SWF had lost its static modifier (should have been public static const embeddedFont:Class). That was the reason it was not present when I did the getDefinition on the class. After going back to the original code with the static keyword in place, all began to work properly.
Thank you for your help and my apologies for the confusion.