Flash Kerning
Out of context: Reply #22
- Started
- Last post
- 31 Responses
- 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…...