Stylesheet in as3
hi friends,
today I have found a different but important method of using stylesheet(CSS) in as3.
Here i have given you the basic of using stylesheets. it has the lots of fun. I’ll update given you later.
here is the sample of styleshhet using in as3.
var style:StyleSheet = new StyleSheet(); style.parseCSS("h4{color:#ff0000; fontWeight:bold; fontSize:18; text-align:left}h2{color:#000000; text-align:right; fontSize:18}h3{color:#000000; text-align:center; fontSize:18}h{color:#000000; fontWeight:bold; text-align:center; fontSize:18}"); var __textField:TextField = new TextField; __textField.styleSheet = style __textField.width = 150 __textField.height = 150 __textField.htmlText = "<h4>Suresh</h4>\n<h2>David</h2>\n<h3>is here as</h3>Flashyhawk" __textField.border = true addChild(__textField)