Embed a SWF file : HtmlText : TextField Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » TextField » HtmlText »

 

Embed a SWF file


 

package{
  import flash.display.Sprite;
  import flash.text.*;
  public class Main extends Sprite{
    public function Main(){
        var txt:TextField = new TextField();
        txt.htmlText = '<img src="Movie.swf" id=" textMovie"  width="100" height="100" /> some text around our image';
        addChild(txt);
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo TextField
» HtmlText