Thank you for your reply!
Even though that worked, I wonder if there is a "better solution" out there, since this requires me to go to every single textfield and embed the font manually. You can see my example here: http://markstar.x10hosting.com/test/sidemenu03.html
... two of the default states work, but the third, as well as the submenus and the mouseovers still display the "default" font.
Since in this example alone I would have to change hundreds of textfields, I would be really happy if there is a "global" solution to my problem.
Thank you again for your time!
The only global solution is to code the whole thing with actionscript, you can embed fonts on multiple textfield at once.. sorry
Wow, this sucks!
But why can I add a font to the library then if there is no way to use it.
that functionality is there for the actionscript coders, where you need to import fonts to be used in actionscripted textfields.
There are various tutorials around about this issue.
Alright. Again, thanks!
Even though I know C++ and Assembler, as well as some PHP, JS, and others, building the menus from scratch via AS seems quite a lot of effort (especially since I want to add some more effects to it, some of which will require AS). I guess I'll just have to change all the textfields that I've done so far and keep this in mind for the future.
But seriously...why is something like this not implemented yet?
Well, I don't see a benefit on having all textfields with the same font, sometimes you have to use multiple fonts / font styles (italic, bold) if you would have all the textfields with the same font that wouldn't work anymore. Maybe they will change something now that CS5 is integrating the new Text Layout Framework.
I'm not sure what you mean. Why wouldn't you want to be able include a font so that all textfields that use that font can automatically use it? In my example, all I want is to have all the menus use the same font. The font itself is 20k, surely there is an (efficient) way to include it once for a whole website (I know MS does it via "WEFT"). I don't see a technical reason for not being able to embed a font and then use it in all Flash animations on that site.
Oh well, I'm changing it manually right now. Maybe I will try to solve this with AS3 (much) later.
1 person found this helpful
welcome to the world of flash. you are not alone in your distress over font embedding.
you would think that if a font is embedded for one textfield it would be accessible to any other textfield that required it. the internet is plagued with blog posts / tutorials about "flash font trouble". To add to the confusion there are multiple ways via the IDE and actionscript to embed fonts and each of them has certain limitations. For one, creating a font symbol in the library doesn't allow you to select a range of characters to embed, so you are stuck embedding characters you may not need.
i came across this solution recently:
Thank you for the link, meglomor! This is indeed a sad situation - let's hope they fix it in the next version of Flash!
Edit: I just watched part of the sneak peak of CS5 (http://www.gotoandlearn.com/play?id=118) and got very excited when he started talking about embedding fonts (5:10+). However, it seems that the basic problem remains, just that you have an overview of the embedded fonts so far.