/ Published in: ActionScript
                    
                                        I needed a way to dynamically space out letters. Here's an example using style sheets in Flash.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 _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>';
Comments
                    Subscribe to comments
                
                