Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-19-2006, 01:39 PM   #1
shahid634
Registered User
 
Join Date: Mar 2004
Posts: 24
Unhappy Dynamic Font Display Problem!

Hi,

I'm having problems with dynamic font embedding/displaying. I've read thru earlier posts but none of them have helped!

here's my problem:

firstly, im using flash mx 2004. i've created a dynamic text field, embedded a font(so it gets a * next to it in the dropdown list) then assign that font to my text box. it ype some text into it and it looks like its suppose to. it works all good on my pc but if i look at it on a pc without the font installed on it, the font changes to 'times new roman' ?!

i dunno wat im doing wrong?!

im pulling my hair out so help me please!

thanks,
shahid
shahid634 is offline   Reply With Quote
Old 03-19-2006, 02:02 PM   #2
Xeef
Off-Line
 
Xeef's Avatar
 
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
Default

Hmmm

coud you upload the FLA

i not realy use the ide so not realy know what you do (woud need to see it)

Quote:
(so it gets a * next to it in the dropdown list)
what dropdown list ??
__________________

test your self -->http://www.actionscript.org/forums/s...86&postcount=8
Xeef is offline   Reply With Quote
Old 03-19-2006, 02:14 PM   #3
shahid634
Registered User
 
Join Date: Mar 2004
Posts: 24
Default

by drop down list i meant the font drop sown list.

below is a test url:

http://www.hampsteadinteriors.com/flash/test.htm

and i've attached the .fla

thanks
Attached Files
File Type: zip test.zip (10.2 KB, 149 views)
shahid634 is offline   Reply With Quote
Old 03-19-2006, 02:31 PM   #4
Xeef
Off-Line
 
Xeef's Avatar
 
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
Default

Hmmm

to say the truht enever did thisin this way

so no idea how to set it up corectly (if you can att all)

here how to do it whit AS


ActionScript Code:
Stage.align = "LT"; Stage.scaleMode = "noScale"; //gieve your text field an instance name (_txt) _txt.embedFonts=true; var my_fmt:TextFormat = new TextFormat(); //linkage name of the font in the library (pixelade1) my_fmt.font = "pixelade1"; _txt.setTextFormat(my_fmt); stop();
__________________

test your self -->http://www.actionscript.org/forums/s...86&postcount=8
Xeef is offline   Reply With Quote
Old 03-19-2006, 06:24 PM   #5
shahid634
Registered User
 
Join Date: Mar 2004
Posts: 24
Default

thanks for that. it worked well!

is that the only way in MX 2004 to apply an embedded font to a dynamic text box by using actionscript?? or is there a simple non-actionscript way???

let me know,

Shahid
shahid634 is offline   Reply With Quote
Old 03-19-2006, 09:24 PM   #6
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,533
Default

...Firstly, im using flash mx 2004. i've created a dynamic text field, embedded a font(so it gets a * next to it in the dropdown list) then assign that font to my text box. it ype some text into it and it looks like its suppose to. it works all good on my pc but if i look at it on a pc without the font installed on it, the font changes to 'times new roman' ?!...

How did you embed the font in the first place? Did you set up a new font in the Library, exported it for actionscript and given it a font ID? What code did you use to embed this font? That * bit has nothing to do with embedding a font!

Check this out...
Notice there are 2 was of embedding a font in a dynamically created textfield...
The new font in the Library method, and the one that I often suggest which is easier, creating off-stage textfields to embed fonts & styles if necessary.

http://flash-creations.com/notes/dynamic_createtext.php
oldnewbie is offline   Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Text Display Problem Mac-PC kravik Other Flash General Questions 1 08-28-2005 07:50 AM
problem with dynamic text box grumpmonkey ActionScript 2.0 1 07-05-2005 07:08 PM
problem embedding font for dynamic field chelnov63 ActionScript 2.0 0 06-28-2005 12:31 AM
AHH ... embedded font & dynamic text field problem! brian_griffith ActionScript 1.0 (and below) 0 01-02-2004 11:43 PM


All times are GMT. The time now is 10:28 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.