# Access a movieClip within a different swf?

**URL:** <https://forum.kirupa.com/t/access-a-movieclip-within-a-different-swf/298055>\
**Category:** flash\
**Created:** [October 13, 2009, 6:35am UTC](https://forum.kirupa.com/t/access-a-movieclip-within-a-different-swf/298055 "2009-10-13T06:35:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dawn\_99](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@dawn\_99](https://forum.kirupa.com/u/dawn_99)\
**Post date:** [October 13, 2009, 6:35am UTC](https://forum.kirupa.com/t/access-a-movieclip-within-a-different-swf/298055/1 "2009-10-13T06:35:48Z")

</div>

Currently I found this code and adapted it to my document.

```auto
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:
