[Embed(source='Assets/attack-on.png')] private var myImg:Class; TextField.htmlText = "<img src='myImg'>";