Return to Snippet

Revision: 2448
at February 20, 2007 19:14 by chrisaiv


Initial Code
_root.createTextField("test_txt", this.getNextHighestDepth(), 0, 0, 400, 100);
var myCSS:TextField.StyleSheet = new TextField.StyleSheet();
myCSS.setStyle(".display", {letterSpacing:'15px'});
test_txt.styleSheet = myCSS;
test_txt.text = '<span class="display">red_________red</span>';

Initial URL

                                

Initial Description
I needed a way to dynamically space out letters. Here's an example using style sheets in Flash.

Initial Title
AS2: Dynamically space out letters

Initial Tags

                                

Initial Language
ActionScript