Jiri,
What version of Flash are you using?
What version of the Flex sdk?
Does the swf you are loading use timeline code?
Have you tried putting in some traces?
var tField:TextField = _sprite.getChildByName("field") as TextField;
trace("tField =", tField);
I did not notice before but, based on
i've also found problems if you don't use the actual names (which can be
viewed in the flash ide) for the font (which can be the same as long as the
weights are different and matching the names in )
here is a sample from a font embed class that i used on a recent project
note: the fontName for th
Hi,
I have had lots of problems with this in the past - be careful you
are not embedding the font in the IDE for any of your text fields, I
think it clashes.
Where is "MyriadProFont" coming from in your App?
Glen
On 15/09/2010 08:46, Jiri wrote:
He Keith,
thanks for pointing
He Keith,
thanks for pointing that out to me. I tried and it still wont show any text.
When I enumerate the fonts, and using the code provided by Keith I get
this output
embeddedFonts Array (@367abf39)
[0] flash.text.Font (@369a56c1)
fontName"
The fontNames for each embedded font need to be distinct from one another.
Use Font.registerFont(Class); to make the embedded fonts available to loaded
swfs.
Use the fontName when assigning format.font;
[Embed( source='../../../../../fonts/myriad
pro/MyriadPro-Bold.otf',
5 matches
Mail list logo