/ Published in: ActionScript

Expand |
Embed | Plain Text
//A. Create CSS as a String var css:String = ".headline {color: #FFCCCC; font-size: 18px}, p {color: #666666; font-size: 14px; font-weight: bold;}"; //B. Create a new Style Sheet & Parse the CSS var ss = new TextField.StyleSheet(); ss.parseCSS(css); //C. Create Some Strings var headline:String = "<span class='headline'>Header 1</span><br>"; var p:String = "<p>lorem ipsum.....</p>"; //D. Create a Dynamic Text Field var text_txt:TextField = this.createTextField("text_txt", this.getNextHighestDepth(), 0, 0, 100, 50); text_txt.multiline = true; text_txt.wordWrap = true; text_txt.html = true; text_txt.styleSheet = ss; //E. Bind text_txt.htmlText = headline + p;
Comments

You need to login to post a comment.
review blowtorch torch inflame butane culinary kitchen with creme http://blowtorchreviews.com/review/review-blowtorch-torch-inflame-butane-culinary-kitchen-torch-with-creme