Once of the things I’ve been trying to achieve for a long time is the ability to load fonts dynamically in Flash and track it with a preloader. Anyone who has spend any time with flash knows that if you want to embed fonts into the file, you need to include the font in the library. If you need a dozen or so fonts for whatever reason, then you’re basically out of luck since it will skyrocket your file size to 500Kb just for the fonts alone.
What you say? Just use loadMovie as you need it! No dice. With loadMovie to bring in the font, it will not registered as embedded and therefor will not format the font. Well, then, why don’t you just use as a shared asset? Forget it. Shared Assent need to be loaded at runtime, so you end up dealing with the heavy front load anyway.
After dealing with this ridiculous problem for a long time and searching high and low all over the internet for anyone that has solved this problem, I found some people who have. I’ve build my own little version here of which you can download all the source files.
It seems that Wordpress is messing with my .swf path information. If the above doesn’t work, then view the .swf directly
I am no Actionscript guru. I feel like a caveman chiseling this stuff out of stone. Most of the advances I’ve made are because there are kind souls out there who are willing to help and post their work for you to download and tinker with. I thought I might type up this tutorial to try and return the favor, or help someone else out for a change.
Read more »