Currently I found this code and adapted it to my document.
var myLoader:Loader = new Loader();
var myUrlReq:URLRequest = new URLRequest("web11.swf");
myLoader.load(myUrlReq);
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaded);
function onLoaded(event:Event):void
{
var Buttongroup:Class = event.target.applicationDomain.getDefinition("Buttongroup") as Class
var mySquare:MovieClip = new Buttongroup() as MovieClip;
addChild(mySquare);
}
This works if I wanted to load the class “Buttongroup” but I want to load the movieClip ‘clipHolder’ which is a new instance of buttonclass (with functions applied to it) Any help is really appreciated :love_heart: