I have successfully used this exact technique when targeting Flash 6 but, as
I think about it, I haven't used it in any Flash 7 projects yet. That said,
due to a quirk in the way a current project has evolved, it has ended up
using this technique but with the addition of identical Symbols in the
library of 'base.fla' and every child .fla.

So, base.fla has 2 Font Symbols in the library for the Normal and Bold
versions of the Font. 2 text fields exist on stage with the fonts embedded
(we've assigned the Font name given to the Symbols to the text field, not
the original font). The font symbols are then duplicated in each sub library
but the text fields are not.

This seems to be working with no problems.

I'm doing a bit of optimisation at the moment and was considering using a
Shared Font Library to tidy things up but you hav me worried now :)

HTH
Adrian

On 7/26/06, Raymond Simmons <[EMAIL PROTECTED]> wrote:

In Flash 6, I was able to embed a font in an FLA (we'll call it base.fla),
load into base.swf an external SWF (we'll call it main.swf), and create a
text field in main.swf using the font embedded in base.swf.  However, I
can't seem to get this approach to work in Flash 7.  More specifically, in
Flash 6, I can add a text field off stage in base.fla, and embed the font.
Let's say the font is "Proxima Nova Bold."  In main.fla, I can create a
text
field using the Proxima Nova Bold font with the following code:

createTextField("myText",1,0,0,100,25);
var myStyle = new TextFormat();
myStyle.font = "Proxima Nova Bold";
myText.setNewTextFormat(myStyle);
myText.embedFonts = true;
myText.text = "Hello World!";

But if I export main.fla as Flash 7, the technique no longer works.  Has
anyone else used this approach successfully in Flash 6, and found that it
does not work in Flash 7?  Or is it possible I'm missing something.  I
would
rather avoid the use of a shared font library, because I've heard they
have
the potential to corrupt FLAs.  However, if anyone would like to convince
me
my fears are unfounded, I'm open to being convinced.

Thanks,
Raymond Simmons

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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