rendering html/css in Flash
Are there any libraries for rendering HTML/CSS in Flash? Basically, I would like to be able to load in an external ht开发者_高级运维ml file (nothing fancy, just some text, images and hyperlinks) and then render them to a Sprite.
With Flash you can render a limited set of HTML within a flash.text.TextField via its htmlText property. Adobe AIR can utilize WebKit via mx.controls.HTML.
Check out my tutorial, Master HTML Formatted Text in Flash for a closer look at working with html/css in AS3:
http://active.tutsplus.com/tutorials/design/master-html-formatted-text-in-flash/
精彩评论