Mega Code Archive

 
Categories / Flash ActionScript / TextField
 

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);     }   } }