i thought i had figured out how Flash handled fonts and how to work in the program when using pixel fonts…but apparently, Flash thinks otherwise.
i’m inserting dynamic text boxes to be filled with text from a txt file. the first two worked just fine, using the same technique i’ve always used…then i added four more and it all hit the fan.
the text boxes are set at 8pt…but the text is coming up somewhere around, i dont know, 250!!! thats a guess. its huge. i’m using the same exact code and the same exact setup as the other two, but the text is going crazy.
you can see what i mean by going here (its a big file, 4mb)
http://substancedesigns.com/topsecret/
click home to see the two that work(link:news/blog), click bio to see the four that dont(link:names at bottom)
and then it gets better
the small dynamic text box on the “home” page is making the text fuzzy and not pixel-font-like at all. cant for the life of me figure out why, when the big one right above it is working fine. its loading the text from actionscript string literals.
can anyone figure out whats causing these problems? i’ve tried everything i know.
code to load text from file:
manifesto1.html=true;
ash1.html=true;
nolan1.html=true;
jay1.html=true;
myLoadVar = new LoadVars ();
myLoadVar.load("bio.txt", 0);
myLoadVar.onLoad = function (success){
if (success == true) {
manifesto1.htmlText = myLoadVar.manifesto1;
ash1.htmlText = myLoadVar.ash1;
nolan1.htmlText = myLoadVar.nolan1;
jay1.htmlText = myLoadVar.jay1;
}
}
code to load text from actionscript:
var seed=0;
function changeTXT() {
seed = random(7)+1;
switch (seed) {
case 1:
tip_txt.htmlText="check out the media section for pictures, wallpaper and more different drum goodies!";
break;
case 2:
tip_txt.htmlText="find out where the hell we came from...in the bio section!";
break;
case 3:
tip_txt.htmlText="see what the media has to say about different drum...check out the press section.";
break;
case 4:
tip_txt.htmlText="there's an exclusive track for download in the music section, as well as lyrics and original artwork.";
break;
case 5:
tip_txt.htmlText="stay as long as you like...but when you decide to leave, check out the links section for other places to go";
break;
case 6:
tip_txt.htmlText="we know you want to talk to us. don't lie. just visit the contact page and leave us some love.";
break;
case 7:
tip_txt.htmlText="the new album, music for people like yourself, is out. if you want it, visit the music page.";
break;
}
}
setInterval(changeTXT,10000);