Mega Code Archive
Load a simple image from a local location
import flashx.textLayout.elements.*;
import flashx.textLayout.*;
[Bindable]
private var textFlow:TextFlow;
private var img:InlineGraphicElement;
private function doSomething():void {
textFlow = new TextFlow();
var p:ParagraphElement = new ParagraphElement();
img = new InlineGraphicElement();
img.source = "a.gif";
img.height = 100;
img.width = 100;
p.addChild(img);
textFlow.addChild(p);
}