• Application of HTML and CSS in flash


    Application of HTML and CSS in flash:I accidentally saw my colleague den making a small thing: Using HTML and CSS in flash. The code is as follows:var myStyle:TextField.StyleSheet = new TextField.StyleSheet();myStyle.load(“sample.css“);content_txt.styleSheet = myStyle;content_txt.multiline= true;content_txt.wordWrap = true;content_txt.html = true;var story:XML = new XML();story.ignoreWhite = true;story.load(“sample.html”);story.onLoad = function () {content_txt.htmlText = story;} This is to load external […]