I'd like to embed an elastic list in my own project. I tried to embed it using the following as3 code on frame 1 in my main timeline:
var swfLoader:Loader = new Loader();
var bgURL:URLRequest = new URLRequest("datenbank/bin/elastic-lists-from-fla-sample.swf");
swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadProdComplete);
swfLoader.load(bgURL);
function loadProdComplete(e:Event):void
{
loadSWF.addChild(swfLoader);
trace("file loaded");
}
loadSWF is a movieclip which i intended to use as a container.
I did some research on the problem but wasn't able to figure out a working solution.