Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

shared fonts and usage in child movies

Status
Not open for further replies.

swathik

Programmer
Jul 18, 2006
4
0
0
US
Hi All,
Have not been successful in make shared fonts work across swf's .

Setup is like this

main.swf -> contains font symbol in library (made export to runtime sharing with identifier as say "fontSym"), contains a window on stage and its contentPath set to child.swf, contains a loadLib symbol in library with its export to runtime sharing set.

child.swf -> contains just a label component (using prototype of setText method , i have done embedFonts to true and fontFamily to "fontSym"

I am not able to see the label pick the font symbol in child.swf loaded in the window of main.swf .Label component placed in main.swf shows the font picked up.

Any help is appreciated.


-swami


 
Make sure of the following:

- "fontSym" in main.swf Library
[ul]
[li]Identifier is set to "fontSym"[/li]
[li]"Export for ActionScript" is checked[/li]
[li]"Export for runtime sharing" is checked[/li]
[li]"Export in first frame" is checked[/li]
[li]URL is set to "main.swf"[/li]
[/ul]
- "fontSym" in child.swf Library
[ul]
[li]Identifier is set to "fontSym"[/li]
[li]"Import for runtime sharing" is checked[/li]
[li]URL is set to "main.swf"[/li]
[/ul]
- Label Component in child.swf
[ul]
[li]embedFonts = true[/li]
[li]setStyle("fontFamily", "fontSym")[/li]
[/ul]

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top