I'm working on an all-Flash site that will use a single swf to display many "pages" of information about manufactured products. Regarding text functionality, I'm not sure what combination of textFormat, CSS, and font embedding to use. I want to achieve the following:

1. Dynamic text fields that display text from an xml file.
2. Embedding several fonts, but not the entire character sets.
3. Allowing the user to modify the point size of the text (for accessibility).
4. Controlling a:hover and a:link properties from a central location so that I can apply color and underline effects to links.

#1: This is no problem for me.

#2: The issue is that if I use CSS rather than TextFormat, the embedded fonts aren't accessed by Flash, so the font must reside on the user's system, which is no good.

#3: I wonder if there's a way to trap the browser text-size controls and send a message to Flash so I can modify the TextFormat object and reformat the text when the user uses the browser controls to affect text size. Sort of like trapping the Forward and Back buttons in the browser. But that could be too complicated, especially if the different browsers use different methods to resize the text. In that case, I also wonder if I can modify the right-click (context) menu to include items for "Increase Text Size" and "Decrease Text Size," but then how do I trap user clicks on the context menu?

#4: Can CSS be used at the same time as TextFormat? If so, how?

Many thanks!

Marc Hoffman


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to