Do you need to put addToContainer() in the timeline?
I would consider removing your code entirely from the timeline, and creating a "Document class" with addToContainer in it instead. That makes it easier to keep track of what you're looking at.
public class FunctionTest extends MovieClip {
protected static var _this:FunctionTest;
function FunctionTest() { _this = this; }
public static function get application_root():FunctionTest { return _this; }
public function addToContainer():void { trace("Called"); }
}
Now you have two ways of writing loadImage. If it's within a DisplayObject (as per Marty Wallace's earlier comment), you can say something like
(this.root as FunctionTest).addToContainer();
If not, you have an alternative you can use from anywhere:
FunctionTest.application_root.addToContainer();
If you really have to define addToContainer() in the timeline, then you will need to initialize the external class with a link to the display root. Do something like:
public class LoadImageClass {
protected var _stored_root:MovieClip;
function LoadImageClass(new_root:MovieClip) { this._stored_root = new_root; }
public function loadImage():void {
this._stored_root.addToContainer();
}
}