| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
|
ahoy!
am dynamically creating a textField. ActionScript Code:
but, even when i do place the embed call text still vanishes. am unsure as to what might be the problem. any ideas? Last edited by CyanBlue; 09-20-2005 at 04:22 PM.. Reason: AS tag is applied |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Oct 2001
Posts: 2
|
In order to use embedFonts, you first have to add the font to your library. (Add Fonts from the library menu). Then, make sure the linkage of the font is set to "Export for ActionScript"
|
|
|
|
|
|
|
|
|
#3 |
|
Test 123
Join Date: May 2002
Location: USA, Florida
Posts: 51
|
Blooo,
I've been having the same issue as Taldos. Thanks for clearing it up for me (and hopefully him as well)! ![]() Good luck on your proj. Taldos! Thanks, --FADE |
|
|
|
|
|
#4 |
|
Oops I did it again
Join Date: Oct 2001
Location: Melbourne
Posts: 8,578
|
I can't get this to work properly
I have added a font to my library (checked the boxes for bold and italic as well), set its linkage name as "thaFont" and am try to use it in a text box with Code:
_root.createTextField("newText",1,50,50,100,300);
newText.text="hi";
newText.font="thaFont";
newText.embedFonts=true;
what am I doing wrong? Thanks
__________________
Billy Online Galleries Free Flash Video Tutorials Photo Website Template Don't email or PM me questions... |
|
|
|
|
|
#5 |
|
Oops I did it again
Join Date: Oct 2001
Location: Melbourne
Posts: 8,578
|
ok I figured it out
the link to the font in the library has to be done within a TextFormat object If anyone wants an example see attached cheers
__________________
Billy Online Galleries Free Flash Video Tutorials Photo Website Template Don't email or PM me questions... |
|
|
|
|
|
#6 |
|
done
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
|
thanks billyt... this helped me out a bunch.
__________________
tg --- what the hell was i thinking? |
|
|
|
|
|
#7 |
|
Oops I did it again
Join Date: Oct 2001
Location: Melbourne
Posts: 8,578
|
you're more than welcome
![]()
__________________
Billy Online Galleries Free Flash Video Tutorials Photo Website Template Don't email or PM me questions... |
|
|
|
|
|
#8 |
|
Registered User
Join Date: Oct 2002
Posts: 54
|
I'm having a similar problem. I want to do the same but draw the text box dynamically and have it be an input box, set to HTML true and display htmlText, and I can't get it to work. It just disappears. I put the font in the library, to no avail so far. Here's my code...
ActionScript Code:
Last edited by CyanBlue; 09-20-2005 at 04:22 PM.. Reason: AS tag is applied |
|
|
|
|
|
#9 |
|
done
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
|
if you've put your font in your library, then set up a linkage for it... use a linkage name like 'myFont'
then in your code: ActionScript Code:
__________________
tg --- what the hell was i thinking? |
|
|
|
|
|
#10 |
|
Registered User
Join Date: Oct 2002
Posts: 54
|
I put in the fonts (several of them) and gave them names, and did one as you say, "myFont". I have linkage set up to export for actionscript, first frame. I have a trace that even shows that the font name is beeing seen by flash without a problem, but yet the face on screen at runtime is still Times Roman, and jagged too, when it should be smooth.
Here is my current code: ActionScript Code:
Doug Last edited by CyanBlue; 09-20-2005 at 04:23 PM.. Reason: AS tag is applied |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Any one heard of problems with the flash player 7.0.14? | needMoreCowBell | Other Flash General Questions | 1 | 10-22-2004 10:58 PM |
| Problems for customers in the Czech Republic | Marianne | Other Flash General Questions | 4 | 08-24-2004 06:57 PM |
| wordwrap problems in a textfield caused by embedFonts | TheLostMarble | ActionScript 1.0 (and below) | 15 | 08-16-2004 08:50 AM |
| Problems with Loading Text Into a Textbox | holdaway | ActionScript 2.0 | 6 | 02-03-2004 05:21 AM |
| levels, linkage of audio, and load movie problems to a specfic frame problems | ooolie | ActionScript 1.0 (and below) | 0 | 12-05-2002 08:54 PM |