From what I have seen, there is some way to auto fit text in flash. Say you have something that involves user input, and then displaying that in a text field. well Say the put a BUNCH of text in there, I was wondering if there was a way to make flash say HEY our text box is too small, Lets get bigger to conform the text ! ? Well something like that, I don’t really know if flash would be that happy to do it, however i did find some code that sort of looked like what I wanted, but I just don’t know how to implement it , if I am say using a local shared object to save some user input, and then displaying that in nice neet little package no matter how much they input.
here is the random sections of code that I think mean something.
topic.titleformat = new TextFormat();
with(topic.titleFormat) {
color = 0xcc0000; // deep red
font = “Genetica”;
bold = false;
leftMargin = 3; // testing
size = 10;
}
topic.title.setTextFormat(topic.titleformat);
AND
this.createTextField(“tfNewfield”,1,10,10,150,30);
tfNewfield.text = “Here’s some text”;
fmtEmphasis = new TextFormat();
fmtEmphasis.bold = true;
fmtEmphasis.size = 16;
fmtEmphasis.font = “Georgia”;
tfNewfield.setTextFormat(fmtEmphasis);
I have no clue how to integrate these, so if anyone could please help me I’d be verrrrrry thankfull !