Mega Code Archive

 
Categories / Flash ActionScript / TextField
 

Embedding Content in Text

package{   import flash.display.Sprite;   import flash.text.*;     public class Main extends Sprite{     public function Main(){         var tContent:TextField = new TextField();         tContent.border = true;         tContent.htmlText = "A picture of a lake: <img width='180' height='120' src='http://www.rntsoft.com/asb/image2.jpg'>";         addChild(tContent);     }   } }