So I have a swf file with an embedded font I made in Flash Pro.
What I'm trying to do is dynamically load this swf into my project using LoaderMax and SWFLoader, then register that font so it can be used later. The swf is downloaded and stored locally beforehand. It seems to be loading the swf fine, the problem is when I try to register the font, it throws an error saying the class from the swf is invalid.
Code to load the SWF:
FontLoader = new LoaderMax( { onComplete: fontsLoaded, skipFailed: true } );
for(var i:int=0; i < mainXML.Fonts.Font.length(); i++)
{
name = mainXML.Fonts.