-
dynamic text font issue
Hi,
I am using dynamic text to load text from a file (txt or xml) but everytime I embed the font the text wont load but when I dont embed works fine ... what's the deal with embeding with loading from external files and how to overcome this ? I use
loadVariables (_root.pathToText, "about"); this is just the basic one for loading. Any ideas?
Also what's the trick for "input" fonts? i used pixel fonts as input fields for a form but the advice that works for dynamic fonts (from sticky - embed, position x,y, .0,.0 etc) doesn't apply , fonts are always blury and bold??? any ideas ?
Cheers
Last edited by Trippin13; 09-27-2004 at 11:30 PM.
-
Senior Member
Sounds as if something is wrong with your code. Please show us your code and we can try to help you out.
-
uh
But that is the whole thing
_root.pathToText = "mycontent/about.txt";
myInterval1 = setInterval (checkLoadStatus1,1000);
function checkLoadStatus1(){
if (true){ loadVariables (_root.pathToText, "about");
}
}
Loads text fine from a .txt file but if I try to embed font it wont work ... I embed through flash , option - character - embed range and that's it ... works if dynamic field contains text in flash but when it pulls the text from the file suddenly the field is blank.
I thought it might be that I need to embed via actionscript which I tried as well but it didn't work.
myText.embedFonts = true;
var tf = new TextFormat();
tf.font = "microN55";
// in library there is a Font symbol with this export id.
tf.size = 8;
text formating works for the text that was manually put in the dynamic field (like "loading...") and then when it pulls the text from a file it switches back to default ...?
Any ideas ? Thanks for your help
Last edited by Trippin13; 09-29-2004 at 07:51 PM.
-
Senior Member
Try load the text into the textfield using the textfield's text property.
For example:
myTextfield.text = dynamic text;
Does it work now?
-
point
u mean myText.text = "dynamic text"; ?
But that's not the point my question was how can u embed font with loading content from external files ???
I need to keep external files there is a lot of content ...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|