*I am using Flash8*

Is there a way to keep fonts in an external movie and load them
dynamically into a movie when needed?

The flash movie I am currently working on is a text editor that is all
generated dynamically.  A text box is generated on the main movie like
this:

this.createTextField("message_txt", 200, 10, 10, 560, 200);
message_txt.embedFonts = true;

The main text box is styled using TextFormat.

var messageformat:TextFormat;
meassageformat = new TextFormat();
messageformat.size = 20;
messageformat.font = "hightower_font";

I have a button that calls in an external SWF that contains a list of
different fonts for the text box.  The fonts are embedded in the movie
and exported for action script and runtime sharing.   They change the
font like this:

this.aucion_mc.onRelease = function () {
        messageformat = new TextFormat();
        messageformat.font = "aucion_font";
        _root.message_txt.setTextFormat(messageformat);
}

The fonts show up in the external SWF as it is loaded into the main
movie but when one of the bottons is presssed, the text in the text
box disappears.

If I embed the fonts in the main movie, I have no problems. 
Everything works fine.  But that defeats the purpose of having the
fonts exist externally.  I only want them to load if the user wants to
change fonts.
_______________________________________________
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