Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-27-2004, 02:18 AM   #1
Registered User
Join Date: Jun 2004
Posts: 40
Default Shared fonts and the new components...

Well, it's nice that I can use CSS to format the text in the new components, however that assumes that I want to use a font that everyone has on their system (since CSS draws from the clients fonts). However, I have been desperately searching for a way to embed the fonts that I want in the TextArea component.

Of course, I can do it fine by setting the component instance "embed" attribute to true, however this is not a feasible solution. The project that I am working on will load many SWF's with many more TextArea instances in them. Ideally I could use a shared font to get the font to download once. However I am lost on getting this one to work. Been trying for days now.

Embedding the font in each component instance makes my file size shoot up, and they are still not available in loaded SWF's. While there are problems with shared fonts, I think that I can get it to work with what I have planned. I have also come across some info about something called Font Manager, which is exactly what I need. However, the web site is poor at best, and does not have links to the download, demo, or purchase of this product (despite saying that it does). At $15 per commercial site, I can deal with that, and it appears to be my solution, if it were available.

Anyone have anything that might help me? Anyone with experience using Font Manager? Am I the only stupid one that can't find the demo of this, or how to buy it?

Thanks, all...
bgetting is offline   Reply With Quote
Old 06-28-2004, 03:56 AM   #2
Registered User
Join Date: Jan 2003
Posts: 397
Send a message via ICQ to yorkeylady Send a message via AIM to yorkeylady Send a message via Yahoo to yorkeylady

I've successfully used shared fonts. But it was with Flash MX. I haven't tried it yet with 2004. It's very easy once you know how.
step 1
Put the font in an swf and put an mc with a shape in the same swf. In the library select linkage for the mc. Check export and export for actionscript. Type in the relative or absolute url of the swf of this swf in the field that says URL. You can just type in the name of the file in most instances. ( by file I'm refering to the same swf that you're typing in , I got that confused with the file that's loading the exported movie when I started learning flash mx.) And put in an identifier name for both the font and the mc, then publish the swf.

step 2
Then in the movie that's loading the font (import movie) put an mc offscreen and in the library the linkage identifier for the mc with the shape must have the same name as in the MC that you put in the export movie. Click import for runtime sharing and the absolute or relative URL of the swf in step 1.

Be sure to test that it has loaded before using the font identifier in actionscript. You could use setInterval for testing if the font identifier is undefined and clear the interval if it's defined. I have a demo fla here somewhere that I will upload if I can find it.

I just typed this in off the top of my head. Please forgive me for any mistakes.
I'm usually on ICQ, or you can correspond through email if you need more help
yorkeylady is offline   Reply With Quote
Old 06-28-2004, 06:02 AM   #3
Registered User
Join Date: Jun 2004
Posts: 40
Default Thanks

Thanks for that, however I have been using shared fonts in MX for a while now. That is why I am suddenly up against this TextArea wall. I would like to use it due to the scale of the project and the amount of components that I will be using. It's much easier to just create a new theme than to do it the old way.

If you have the time, check out the TextArea component in 2004, and see if you can figure a way to attach a shared font to it.

Thanks again.
bgetting is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 02:38 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.