Flash Kerning
- Started
- Last post
- 31 Responses
- craighooper0
Yep, what he said above (if you must use Verdana and a dynamic txt field). You'll get better results (as w/ anything done w/ code as opposed to manual/timeline).
- PonyBoy0
Do it dynamically:
Create a 'new Object' and edit the 'letterSpacing' properties of that object... then create a 'new TextField.StyleSheet' and apply that new Object using 'setStyle'.
ie:
var letterSpacing_var:Object = new Object();
letterSpacing_var.letterSpacing = "-1"; //this is touchy!!... use decimal points ie:1.2
var myCSS:TextField.StyleSheet = new TextField.StyleSheet();
myCSS.setStyle("format",letterSp... //'format' is what you need to label the tags your text sits between - anything inside these tags will have your formatting applied to it.var myText_var:String = "<format>"+This is my content text that sits between two tags+"</format>"; //see the 'format' tags? :)
//
myText_txt.html = true; //gotta make the text field html for the 'format' tags / CSS
myText_txt.htmlText = dateCSS; // use 'htmlText' as apposed to just '.text'
myText_txt.htmlText = myText_var; //once the above is done... fill the text field w/your text. :)Reference you'll need to fully understand:
Style Sheets:http://livedocs.adobe.com…...
- PonyBoy0
that got a little screwy w/my notes.
Create a textfield on your timeline named: myText_txt
Make it dynamic and be sure to embed the fonts using the Properties panel...... add this actionscript:
var l_Spacing:Object = new Object();
l_Spacing.letterSpacing = "0";
var myCSS:TextField.StyleSheet = new TextField.StyleSheet();
myCSS.setStyle("format",l_Spacin...var myText_var:String = "<format>"+This is my content text that sits between two tags+"</format>";
myText_txt.html = true;
myText_txt.htmlText = myCSS;
myText_txt.htmlText = myText_var;
- PonyBoy0
DAMNIT, QBN. :(
I can't finish that 'myCSS.setStyle' line... :(
myCSS.setStyle ( "format" , l_Spacing ) ;
- ********0
yeah.. .as ponyboy said... a lot of kerning etc gets lost in a dynamic field as soon as you apply a new value to the variable... so letterspacing is your friend
- kelpie0
haha, we had this problem last week. one wee mail to a fellow forum member got us this link:
http://craiggrummitt.blogspot.co…
which I believe sorted it, or just about - the kerning works perfectly in our thing now.
- was that me being helpful? must have been drunk.********
- aye, thought you might have beenkelpie
- was that me being helpful? must have been drunk.
- PonyBoy0
i believe using textFormat ^^ is only for dynamically generated text fields... if the textfield was created in the IDE... uhhh... doesn't always (if ever) work correctly... you have to go the object/styleSheet route.
- ********0
You should probably cease helping me now because I'm (stupidly?) just clicking that handy little type tool and expecting it to work.
- PonyBoy0
check your email, moth
- ********0
would mind ccing me, pony?
many thanks