Hi Raymond,

I missed your reply to this. You're absolutely right, it's less than ideal
but I thought I'd mention it because it works :)

The onnly reason our project is structured in this way was because several
people were working on various child .swfs in various locations. I haven't
been given the time to rationalise it all.

I intended to try removing all the symbols in the child clips as a test for
you but haven't had a chance yet. I'll try this this afternoon and report
back to you what my findings are.

Cheers
Adrian

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

Adrian,

Thanks for your reply.  I'm afraid I might be missing something, but with
the technique you described for Flash 7, wouldn't the end result be that
the
child FLAs are exported with the font as well?  By adding the font symbols
to the libraries of the child FLAs, that's causing the font to be included
in the both the base SWF and the child SWFs, which would explain why the
technique works :(  Please help me see if I've missed something.

My hope is to avoid embedding the font in the child FLAs.  That way if the
font changes, I only have to change it in one place.  Also, if we have to
work with a Mac-only font, it can be embedded in base.fla, and the folks
working on PCs can still develop the child FLAs even though they don't
have
the font.

Kind regards,
Raymond Simmons


----- Original Message -----
From: "Adrian Park" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
Sent: Wednesday, July 26, 2006 12:55 AM
Subject: Re: [Flashcoders] Creating dynamic text field using font embedded
inparent movie clip


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

_______________________________________________
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