I have created few fonts css and compiled them into swf to load them
at run time.

There is one custom component Card, is placed into a Module and this
Module is loaded by main application.

The Card component contains TextArea, MyTextArea(custom component) and
ComboBox (which display font list).

Now when user select any font from ComboBox, Card component load css
and when it get loaded, it updates fontFamily of TextArea and
MyTextArea. But only TextArea updated with new fonts while MyTextArea
is not getting update anytime.

Can anyone help me to figure out this.

I am using following code to load css run time.

var myEvent:IEventDispatcher =
StyleManager.loadStyleDeclarations(fontSource[0].src,true,false,ApplicationDomain.currentDomain);
myEvent.addEventListener(StyleEvent.COMPLETE,fontComplete);
myEvent.addEventListener(StyleEvent.ERROR,fontError);

Any help is appreciated, Thanks


Reply via email to