On 07/05/2010, Alex Harui <aha...@adobe.com> wrote:
> I think I would make the font swf do the registration.  That’s how I did it
> recently.  And I always wait for INIT before doing things like that.

There's also a very clear example of loading fonts for TLF at runtime on the
docs for the ISWFContext interface, on the callInContext method description:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/compose/ISWFContext.html#callInContext()

... with all the tricky bits, i.e.,

> package flashx.textLayout.compose.examples {
> public class EmbeddedFontLineCreator extends Sprite implements ISWFContext
> {

[...]

> var embeddedFontLineCreator:Class = 
> fontSWF.contentLoaderInfo.applicationDomain.getDefinition( 
> "flashx.textLayout.compose.examples.EmbeddedFontLineCreator" ) as Class;
> flow.flowComposer.swfContext = new embeddedFontLineCreator();

hth,
gabriel

-- 
gabriel montagné láscaris comneno
http://rojored.com
+44 (0) 7500 709 209

Reply via email to