Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-09-2004, 07:34 PM   #1
Registered User
Join Date: Jan 2004
Posts: 11
Question problem! embed font TextArea in flash 2004

hi. i'm using scrollable TextArea components in a flash mx 2004 fla. they are pulling in text from xml and are formatted to use css.

my problem is that i can't get the font to be embedded. i'm using the "syntax" font. the actionscript to set the font and component styles reads:

ActionScript Code:
_global.setStyle("embedFonts", true); _global.setStyle("fontFamily", "Syntax") _global.style.setStyle("themeColor",0xF0B3B3); _global.style.setStyle("borderColor",0xFFFFFF); _global.style.setStyle("highlightColor",0xFFFFFF); _global.style.setStyle("shadowColor",0xFFFFFF); _global.style.setStyle("borderCapColor",0xFFFFFF); _global.style.setStyle("shadowCapColor",0xFFFFFF);

please can someone help...i'm going crazy. i tried a couple variations of the code above and included the font in the library; but i still can't get this to work. posting a simple fla with a working example of a font embed script would be of tremendous help. i can also link to my fla file if anyone would like to check it out. thanks!!!
teambonzai123 is offline   Reply With Quote
Old 01-10-2004, 04:42 AM   #2
Registered User
Join Date: Jan 2002
Location: Tokyo Japan
Posts: 74
Send a message via ICQ to motionid
Default stupid question

I know this is probably a stupid question but have you just tried addressing the textArea component by name instead of calling a _global.setstyle ? i.e. myTextArea.setStyle("embedFonts", true); Just to see if that too is working / not working.

motionid is offline   Reply With Quote
Old 08-23-2004, 03:56 PM   #3
Registered User
Join Date: Aug 2004
Posts: 1

Here's my work around . . . .

keep this part:

In other words, leave out specific font info.
Then, embed your font like you usually do (library, new font, etc.)
Finally, in your text area where you are loading your CSS formatted text,
select your embeded font as the defualt.
arosano is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 04:40 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.